Search code examples
anylogic

The simulation model time slows down in virtual mode


I am currently building a model on a manufacture process line and the simulation was running fine without errors. Suddenly when I entered in virtual mode to run quickly the simulation, the model started to slow down although the step is high. I am trying to identify where the issue is but nothing is working. At a certain time , the simulation just stops while the step is still running.

Model time

This is a picture of the pallete, maybe the experiment is causing this.

enter image description here


Solution

  • You created an infinite loop, this can be triggered by various things in your model.

    Likely, you have a ' while' loop not finishing, could also be a condition-based transition.

    You need to find this yourself, though. 3 options:

    1. (easy): Check the model logic yourself and find the problem
    2. (easy): nudge yourself to where it stops with traceln commands (see where they stop showing, getting you closer to the culprit)
    3. (harder): Use a profiler (google "AnyLogic profiling" or similar if you are not familiar)