Experimenter only works properly for the first batch of child process

Experimenter only works properly for the first batch of child process

hao_zhou
Not applicable
3 Views
4 Replies
Message 1 of 5

Experimenter only works properly for the first batch of child process

hao_zhou
Not applicable

[ FlexSim 16.1.0 ]

I have a model that makes experimenter only works properly for the first batch of child processes. There are totally 81 scenarios in the model. For example, my computer has 12 cores. If I set 1 replication per scenario, then during experimentation, scenario 13 replication 1 and all following replications gives me weird results. If I set 2 replications per scenario, then during experimentation, scenario 7 replication 1 and all following replications gives me weird results.

I did checked the model by specified scenario and replication number, it works properly for single run.

Could you help to provide ideas about the reason for this?

Thanks, Hao

0 Likes
Replies (4)
Message 2 of 5

adrian_haws
Not applicable

@Hao Zhou Would you be able to send your model so we can try to replicate the issue?

0 Likes
Message 3 of 5

hao_zhou
Not applicable

Hi Adrian,

Thanks for the reply. See attached model and a module that the model relies on.

When you run the experimenter, you can look at a PFM called "GATaktTime(secs)". This value should return a number around 160 since this is the return value of single run. However, depending on how many cores you have in your computer, it returns a number around 130 from the first replication of the second batch of child processes.

Thanks, Hao

model.zip

0 Likes
Message 4 of 5

sam_stubbsYXX86
Community Manager
Community Manager
Accepted solution

I'm trying to replicate the issue, sorry it takes a while on my machine. I'm not entirely sure what you mean by "weird results" could you specify? Also have you tried checking the "Restore original state after each replication" box up on the right side? That might be part of the issue.

0 Likes
Message 5 of 5

hao_zhou
Not applicable

Hi @Sam Stubbs,

By saying "weird results" I mean it is a wrong result. As I mentioned in the above comment, it should return a value 160 instead of 130.

I did tried "Restore original state after each replication". It makes experimenter work properly. This checkbox makes the model tree reload for each replication. Does this means I did not reset the model properly? I will double check to see if I do it right or not.

Thank you very much! I really appreciate it.

Hao

0 Likes