question

Leo L6 avatar image
0 Likes"
Leo L6 asked Natalie White commented

Experimenter Replications Stuck on 'Recording'

Hello,

What steps shall I take to debug this error? image: 1687284780302.png

When I start the experimenter the progress of each replication seems good until it completes and moves into the 'recording' phase which is when it freezes. Each replication runs fine separately in the model view (no errors), it is just in the experimenter which this happens. Unfortunately I'm not able to post the model file but what steps would I take to start debugging this?

FlexSim 22.0.16
experimenter
1687284780302.png (25.9 KiB)
· 1
5 |100000

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

1 Answer

Jordan Johnson avatar image
1 Like"
Jordan Johnson answered Jordan Johnson commented

During the Recording phase, many things happen:

  • In the child process that ran the model:
    • All Statistics Collectors (including those inside charts) calculate values for any "When value is accessed" column.
    • All Calculated Tables (including those inside charts) are updated, if they were out of date. For Calculated Tables set to "By Lazy Interval" or "Always", this means the query for that table runs again.
    • If you are saving state, the state file is saved at this point.
    • All result data is copied into a special tree, including output/system console stuff.
    • The special tree is saved and send to the main process
  • In the main process that is running the Experimenter:
    • The tree from the child is loaded
    • The result data is copied to the database
    • The status of the replication is changed to Complete
    • The tree from the child is destroyed

Usually, issues with the recording phase happen because of a Calculated Table, or a chart with a Calculated Table inside. If there are issues in that stage, the child process can simply exit before it can transfer results.

To debug the issue, try these steps:

  1. Use the test tube button to apply the replications that get stuck to your model.
  2. Reset and run your model to the end time. Watch for exceptions in the system console.
  3. Once the model stops running, open every dashboard in your model. Watch for exceptions in the system console, or crashing, or any issues. Alternatively, see how long it takes to open the dashboard. There is a chance that some replications generate significantly more data than others, although this seems less likely.
  4. If that doesn't reveal issues, view the table for every calculated table in your model. Again, watch for delays or exceptions.
· 6
5 |100000

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