endreplication command not stopping an experiment

endreplication command not stopping an experiment

wproctorPG49C
Explorer Explorer
5 Views
1 Reply
Message 1 of 2

endreplication command not stopping an experiment

wproctorPG49C
Explorer
Explorer

[ FlexSim 18.0.3 ]

I have an issue where the EndReplication is not always stopping an individual experiment. I can see that the line item with the command is being executed when running an individual model run but some experiments won't end after completing the model scenario (run to completion when running a single model).

0 Likes
Accepted solutions (1)
6 Views
1 Reply
Reply (1)
Message 2 of 2

philboboADSK
Autodesk
Autodesk
Accepted solution

endreplication() destroys all the pending events. In the Experimenter, when the simulation has no more events to process, the replication ends.

If you are calling endreplication() from a trigger that creates a subsequent event after that trigger finishes, it won't actually end the replication immediately.

Try sending a delayed message in 0 time and calling endreplication() from an OnMessage trigger.



Phil BoBo
Sr. Manager, Software Development