Fast restart and inter generation times issue

4 views (last 30 days)
Hi there,
I have an issue when running my SimEvents model with the Fast Restart enabled. The error I get is as follows:
"The 'TestModel/Entity Generator' block has exceeded 5000 simultaneous events at time 8. This likely indicates a livelock condition. Please inspect any loops involving this block that might cause entities to cycle indefinitely."
What I am trying to do is run my SimEvents model "TestModel" 100 times in "fast restart" mode. Each run, 150 entities are generated at time = 8. When I get to the 34th run, I get the error above. After some investigation, I found that Matlab seems to sum the events that occur at a given time step across all runs. In other words, it crashes because just before the start of the the 34th run, matlab has created 150 x 33 = 4950 entities at time 8. After creating the 50th entity on the 34th run at time 8 it crashes, as it seems to believe it exceeded "5000 simultaneous events". I repeated this for good measure by setting each run to create 1500 entities at time = 8 and sure enough it crashed on the 4th run after producing 500 entities.
Is this a bug? Am I somehow using the software the wrong way?
Any help would be greatly appreciated.

Answers (0)

Categories

Find more on Discrete-Event Simulation in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!