question

Mark S2 avatar image
2 Likes"
Mark S2 asked Mark S2 commented

Experimenter Hangs with Longer Runtimes

Hello,

For some reason the experimenter is hanging when I do longer runs of my model (even with just 1 replication). The green progress bar shows 100% complete, the but the FS taskbar icon shows it at half. Short runs of the experimenter works OK, though it does still hang at the end for anything longer than a couple days.

Yesterday it seemed to be working fine. I do have quite a few unused dashboards that I don't know how to clean up and might be causing an issue. I also added some custom code to a delay block that has some if statements, so that could be affecting performance too...it's just strange that the green progress bar is complete but it takes so long to finish (but maybe this is just like a windows update at 100% that takes an 1hr to finish?....I do know coding progress bars accurately is notoriously tricky..)


Thanks,

Mark

FlexSim 21.1.1
flexsim 21.1.1experimenthanging
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
0 Likes"
Jordan Johnson answered Mark S2 commented

I ran the experiment and waited to see if it would eventually finish, and it did. Here's what's happening, as far as I can see.

To run an experiment, the experimenter launches a bunch of background FlexSims, and gets them to run the model. The green progress bar shows the progress of the clock in each background FlexSim. Once the clock is complete, there is some post processing. The post processing is not part of the green progress bar, and in your case, it looks like it's taking a long time.

The post processing has two big components: generating end-of-run data for dashboards, and then transferring all statistics data to the main FlexSim. You may see if you run your model for the same amount of time with your dashboards closed, and then open them at the end, that it takes some time to populate the data. The same thing happens in the background FlexSim; data for the charts is generated. Then, all that data, including all stats collectors and people tables and generated data, is then transferred to the main process.

I can add an item to the dev list to look at this, and see if it can be streamlined, but it looks like it's functional, though slow.

· 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.

Mark S2 avatar image Mark S2 commented ·

Big improvement!! If anyone else has this issue just follow the link and use the first code snippet, and don't forget to 1) close all dashboards, and 2) uncomment the line "statsObject.destroy();" so the unused stats actually get deleted.

1 Like 1 ·
Mark S2 avatar image Mark S2 commented ·

Awesome, thanks for looking into this for me @Jordan Johnson ! I am going to follow this post to see if cleaning up defunct dashboards cuts down on runtime:

https://answers.flexsim.com/questions/78567/cleaning-up-orphaned-statistics-objects.html

I will report back if I see an improvement.

0 Likes 0 ·