question

Matheus Coelho avatar image
0 Likes"
Matheus Coelho asked Jeanette F commented

Model with random problem

Hi,

I'm working on a project and encountering a random issue in my model. For example, if I run the same model twice, I get two different results. This happens even when the Model Stream is locked or while using the Experimenter.

Here are the steps to reproduce the issue:

  1. Restart the computer.
  2. Open the same FlexSim project file twice (the one with the random problem).
  3. Restart the model.
  4. Run the model for 1 month.
  5. Get different results.

Note: The model stream is locked.

To debug this problem, here’s what I’ve done so far:

  1. Checked all globalTables after resetting the model (all were identical).
  2. Checked all labels of 3D objects and Process Flows (all were identical).
  3. Checked all nodes and sub-nodes in the main tree (all were identical).

To ensure the issue is consistently reproducible, I followed these steps:

  1. Restart the computer.
  2. Open the same FlexSim project file twice (the one with the random problem).
  3. Restart the model.
  4. Ran a script to print all nodes and sub-nodes in the main tree for each model instance.
  5. Compared the outputs in WinMerge (both trees were identical).
  6. Ran the model for 1 month.
  7. Got different results again.

Since this project is confidential, I cannot share the file. However, I would like to know if there are other methods or best practices to troubleshoot and resolve this type of random issue.

FlexSim 24.0.6
randommaintreerandom problem
· 3
5 |100000

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

Felix Möhlmann avatar image Felix Möhlmann commented ·

Based on your description, the only possible causes left from the repeatability article are declared variables without a default value or what is mentioned under "Non-repeatable data" such as the using the real clock time or memory addresses.

As described there, to debug the model you should take an event log from two runs and compare those to find where they start to diverge.

1 Like 1 ·
Matheus Coelho avatar image Matheus Coelho Felix Möhlmann commented ·

Thank you, Felix. I'm going to take a look at this material and try to identify the problem using this topic.

0 Likes 0 ·
Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Matheus Coelho,

We haven't heard back from you. Were you able to solve your problem? If so, please add and accept an answer to let others know the solution. Or please respond to the previous comment so that we can continue to help you.

If we don't hear back in the next 3 business days, we'll assume you were able to solve your problem and we'll close this case in our tracker. You can always comment back at any time to reopen your question, or you can contact your local FlexSim distributor for phone or email help.

0 Likes 0 ·

0 Answers