Hi,
Issue: I'm doing an experiment, but 1 replication got stuck somewhere and doesn't finish. Therefore, my "End Of Experiment trigger" is not being fired. Is there a way where I can force this to be fired?
Cheers
Jarek
RHDHV
Hi,
Issue: I'm doing an experiment, but 1 replication got stuck somewhere and doesn't finish. Therefore, my "End Of Experiment trigger" is not being fired. Is there a way where I can force this to be fired?
Cheers
Jarek
RHDHV
Is there a way you can use this code
endreplication(1);
where you know the model might be failing, some sort of trigger? This would allow the Experimenter to display the data for all the replications, and be able to draw data from the failed replication as well.
Hi @Joshua S,
Thanks for your reply. No, unfortunately the model doesn't know when it is failing (it goes into an eternal loop I believe, because the processor keeps on running but the replication never finishes). It is also not reproducable but happens every now and then ad random. I was hoping to have an internal command like:
Applicationcommand("EndExperiment");
I could try to catch the replication to finish maybe if it took too long to terminate. Is there a way where I can access the system time from Flexsim?
Thanks
jarek
RHDHV
Unfortunately there is no way to end the experiment and dump the bad replication, or gain data from the replication without using the command I mentioned previously. time(); returns the simulation time, but again you would have to incorporate it into something that would return that value if it got stuck in a loop.
Hi @Joshua S,
Understood. I thought I could maybe implement a check in the model with system time (not model time), that if the run is taking longer than x amount of time, the run will terminate itself. But I actually realized that wouldn't work because the run got stuck in a loop, so it wouldn't execute the check in that case.
Maybe a forced endexperiment command would be useful in future releases?
Cheers
Jarek
RHDHV
10 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