Model with random problem

Model with random problem

matheus_a4
Not applicable
518 Views
3 Replies
Message 1 of 4

Model with random problem

matheus_a4
Not applicable

[ FlexSim 24.0.6 ]

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.

0 Likes
519 Views
3 Replies
Replies (3)
Message 2 of 4

FelixMoehlmann
Mentor
Mentor

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.

Message 3 of 4

matheus_a4
Not applicable

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

0 Likes
Message 4 of 4

Jeanette_Fullmer
Community Manager
Community Manager

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