Óscar Manuel CMN avatar image
Óscar Manuel CMN asked Cristina Namour commented

the simulation suddenly stops

This model intends for operators to pick up the elements with the shortest setup time from the queue. At 262 seconds the model stops and I don´t know if it is due to my computer or due to a model failure, because it doesn´t give any error message.


FlexSim 20.0.6
stopflexsim 20.0.6
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Cristina Namour avatar image Cristina Namour commented ·


Hi,I've the same problem. When the clock is 08:01:09 my simulation stops and the program gets freezed. I hope someone can help me.

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦ Cristina Namour commented ·
You asked this question here - please avoid duplicating questions.
1 Like 1 ·

1 Answer

Patrick Zweekhorst avatar image
Patrick Zweekhorst answered Óscar Manuel CMN commented

Hi @Óscar Manuel CMN,

You have created an infinite loop in your model and that is why the simulation stops.
At time 262.12 a token enters the decide and is send to port number 2. The delay activity has a delay of 0 seconds, so the token goes back to the decide. Nothing changed in the condition so the token goes to the delay again and again. You will need to change the decide or the logic at the delay if the process needs to continue.

1592203225251.png (45.8 KiB)
· 9
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Óscar Manuel CMN avatar image Óscar Manuel CMN commented ·

but I think it is not infinite, in fact I make that loop in several models and the same does not happen. The operator is supposed to wait there until the destination he has chosen is free. At the moment the processor is not processing any item, it should be able to load it.

-1 Like -1 ·
Óscar Manuel CMN avatar image Óscar Manuel CMN Óscar Manuel CMN commented ·

I have changed the "delay" to "wait for event" and it given me this error message at 12785 seconds:


0 Likes 0 ·
Patrick Zweekhorst avatar image Patrick Zweekhorst Óscar Manuel CMN commented ·

Using the wait for event activity seems to be the correct way to go. Otherwise you will get the infinite loop you had before. Otherwise you will need a delay bigger than 0

1 Like 1 ·
Show more comments