Experimenter only working for first 8 runs?

Experimenter only working for first 8 runs?

craig_dickson
Not applicable
198 Views
7 Replies
Message 1 of 8

Experimenter only working for first 8 runs?

craig_dickson
Not applicable

[ FlexSim 19.1.0 ]

I have a model that behaving strangely in the experimenter. As long as the number of runs in my experiment is not greater than the number of cores in my machine, it works correctly. (My computer has 8 cores). But if it has more than 8 runs, the second pas through for runs > 8 run almost instantaneously and return no results. So if I have 6 scenarios and 1 replication, or 4 scenarios with 2 replications, it's fine. But if I have 9 scenarios with 1 rep, or 6 scenarios with 2 reps, the last runs don't work.

I saw a similar question earlier in the forums, but the suggestion was to check "Restore original state after each replication", and it was already checked in this model.(I actually tried it both ways and neither worked. Also, I tried on a different model to see if it was a FS2019 bug, but the other model seems fine.

The pictures below show the problem:

Six scenarios, 1 rep, all ok:

18868-6-scenarios-1-repok.png

6 scenarios 2 reps: the first 4 scenarios worked; the last 2 scenarios failed. This was run immediately after the above, changing only the number of reps (from 1 to 2):

18869-6-sceanrios-2-repsfailed.png

9 scenarios: the first 8 scenarios worked, the 9th rep failed:

18870-9-scenarios-1-repfailed.png

Experimenter config:

18871-experimentrun-config.png

Scenarios are pretty simple, just a global variable:

18872-scenarios.png

0 Likes
Accepted solutions (1)
199 Views
7 Replies
Replies (7)
Message 2 of 8

london_mt
Not applicable

If you run your model without the experimenter, does it terminate correctly? it seems like your runs are not terminating.

0 Likes
Message 3 of 8

craig_dickson
Not applicable

I purposely set the experimenter time to be slightly less than the expected completion time, to make an apples-to-apples comparison a bit easier. But yes, they all end correctly outside the experimenter.

What I'm struggling with is that I get different results for the same scenario/rep depending on the number of reps. See the scenarios MaxCommon50 and MaxCommon100 in my first two pictures. If I only run one rep, I get valid results for those scenarios (since they are the 5th and 6th runs), but if I run 2 reps, then I don't (because they are now the 9th and 10th runs). Note also that if I then move those scenarios to the left on the scenarios tab, they will work.

In fact, if I have only two scenarios, and I set reps to 4, they'll both get valid results for all reps. But if I set it to 6 reps, then only the first two reps of the second scenario will get valid results. And if I set it to 8 reps, only the first scenario will get any valid runs.

0 Likes
Message 4 of 8

JordanLJohnson
Autodesk
Autodesk

Hi Craig,

If you post your model (perhaps in a private question, if the model is sensitive), we may be able to learn more. If you set the Max Cores (on the Advanced tab of the Experimenter) to 1, can you run more than one replication?

.


Jordan Johnson
Principal Software Engineer
>

0 Likes
Message 5 of 8

craig_dickson
Not applicable

Jordan,

If I set it to 1 core, only the first rep of the first scenario gets a valid answer; if I set it to two cores, then the first two runs are valid, whether that is two scenarios/1 rep or 1 scenario 2 reps.

I'l try to post it; it does depend on some other files (Excel) being in the right place.

0 Likes
Message 6 of 8

braydn_t
Not applicable

Hey @Craig DIckson

Were you able to find a solution to this? If not, please reply with your model and tag me and Jordan to help you find a solution.

0 Likes
Message 7 of 8

craig_dickson
Not applicable

@Braydn T @jordan.johnson

I posted this in a private question "Experimenter misbehaving" in early May.

Thanks

Craig

0 Likes
Message 8 of 8

JordanLJohnson
Autodesk
Autodesk
Accepted solution

@Craig DIckson

Hi Craig, I notice that the child replications are all opening an Excel workbook. The excel connection should not be used for reading or writing during an experiment. You should import all the data you need at the beginning of the run. If you are returning tables from each replication, then you should use the End of Replication trigger to pass the table up to the parent FlexSim, and use the End of Experiment trigger to dump that data from the parent FlexSim to Excel.

.


Jordan Johnson
Principal Software Engineer
>

0 Likes