event time is in past

yt6155mail
Not applicable
0 Views
5 Replies
Message 1 of 6

event time is in past

yt6155mail
Not applicable

[ FlexSim 21.0.10 ]


"createvent: event time is in past: event time changed to present. Object: Source1 advancetime: -11.368785, time: 14109.910037 "

1650587485991.png


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?

event_time_is_in_past_1.fsm



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




0 Likes
Accepted solutions (1)
1 View
5 Replies
Replies (5)
Message 2 of 6

joerg_vogel
Not applicable
Accepted 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.

0 Likes
Message 3 of 6

joerg_vogel
Not applicable

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.

0 Likes
Message 4 of 6

yt6155mail
Not applicable

>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.


0 Likes
Message 5 of 6

jason_lightfootVL7B4
Autodesk
Autodesk
  1. 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.

0 Likes
Message 6 of 6

logan_gold
Autodesk
Autodesk

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.

0 Likes

Type a product name