Hi Team,
I am using this condition to print some statistics at the end. But my model is cashing due to it.
What is going wrong here?
Thank you!
Hi Team,
I am using this condition to print some statistics at the end. But my model is cashing due to it.
What is going wrong here?
Thank you!
Hi @Ankur A3, was Felix Möhlmann'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.
Could you provide some more information?
- In what context/position are you using that code?
- Are you sure that this is what is causing the crash?
- Could you post the code that would normally be run in the condition? (You can of course alter any variable/table/statistic names)
I can't replicate the issue. When I put your expression into the model OnRunStop trigger and set a stop time at the specified time, nothing happens (as expected).
I am having this code in user event which is occurring every 10080.00 mins. I think there is combination of events creating this issue. But error started occurring after using this code only and it is persisting even after disabling this code. I am not sure how to debug in this case.
Even I can't replicate same issue with standalone code in fresh model.
I am still checking what is causing it. It will be good if you can provide some debugging steps based on your experience.
Thank you!
Crashes without prior error message could be caused by accidentally building an infinite loop somewhere in the logic. In that case FlexSim would first become unresponsive before closing after a couple of seconds. While it is unresponsive you might still be able to abort the model run by hitting Ctrl + Pause.
Generally, try to determine when exactly the crash occurs by moving the time close to when it happens and step through the events one at a time (with the event list open).
Once you have a guess as to which code might cause the issue put a debug break at the start and step through the code line by line. This can also be used to identify a loop. If the code is executed again immediatly after it complete, it might be triggering something which in turn runs the code again.
Really good summary to go forward for debugging.
16 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved