& Construction

Integrated BIM tools, including Revit, AutoCAD, and Civil 3D
& Manufacturing

Professional CAD/CAM tools built on Inventor and AutoCAD
Integrated BIM tools, including Revit, AutoCAD, and Civil 3D
Professional CAD/CAM tools built on Inventor and AutoCAD
[ FlexSim 21.0.10 ]
"createvent: event time is in past: event time changed to present. Object: Source1 advancetime: -11.368785, time: 14109.910037 "
I'm getting an error like this.
There seems to be no way to resolve this error in the "Inter-Arrival time" setting.
How can I set it to avoid this error?
The same question was confirmed, but I couldn't find a specific solution.
https://answers.flexsim.com/questions/27196/system-error-createvent-event-time-is-in-past-even.html
https://answers.flexsim.com/questions/115443/understanding-error-event-time-changed-to-present.html
https://answers.flexsim.com/questions/77339/system-console-createvent-error.html
Solved! Go to Solution.
Math.max(0.01, normal(90,36.6,getstream(current))
a normal distribution can return negative values. Then tey are in the past.
You can prevent it with a mathematical function returning a value near zero if the result gets negative.
if you choose deviation parameter value, which is larger than 3 sigma interval in comparison to your mean value, you get negative values.
normal(90,15) chance to get only positive values is ok.
normal(90,60) chance to get some negative values is an reasonable assumption.
>Math.max(0.01, normal(90,36.6,getstream(current))
My sample model seems to automatically convert negative values to zero without using this code.
However, the error continues to occur.
- Math.max(0.01, normal(90,36.6,getstream(current)))
You were missing a close parenthesis character. There are no errors when using this expression.
Hi @Yt6155mail, was Joerg Vogel's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.
If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.
How to buy
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © 2025 Autodesk Inc. All rights reserved
Type a product name