question

Tee Hiett avatar image
0 Likes"
Tee Hiett asked Tee Hiett commented

What causes the random errors in the attached model?

Master Clinic Model _14.fsm


occurrences of exception error.jpg

exception error.jpg

I am getting a series of five exception error statements occurring randomly in this model. as shown in the graphic, the error occurred once for each first three scenarios. Sometimes it occurs only in one scenario and sometimes it does not occur at all. The messages are shown in the Exceptions-error graphic. when I examine the length of stay for each of the 3 occurrences shown, the length of stay is zero.

Any help would be appreciated.


Thanks,


Tee


FlexSim 20.1.0
flexsim 20.1.0exception errorrandom errors
· 4
5 |100000

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

Jordan Johnson avatar image
0 Likes"
Jordan Johnson answered Tee Hiett commented

Hi Tee,

Somehow, there are activities outside of a process flow. If you run this script, you can find them. You can also uncomment the line in the script to delete them:

  1. Array badActivities = [];
  2. forobjectlayerunder(model()) {
  3. if (isclasstype(a, "ProcessFlow::ProcessBlock")) {
  4. badActivities.push(a);
  5. }
  6. }
  7.  
  8. for (int i = 1; i <= badActivities.length; i++) {
  9. // uncomment to delete them
  10. // leave commented to see the list of bad activities
  11. // badActivities[i].destroy();
  12. }
  13.  
  14. return badActivities;

I'm not sure how this happened, and why it doesn't create an issue sooner. But removing these activities may fix your issue.

· 1
5 |100000

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

Jordan Johnson avatar image
0 Likes"
Jordan Johnson answered Tee Hiett edited
My guess is that this bug is related to the "Restore original state after each replication" checkbox. With that box unchecked, I was able to run the experiment 5 times in a row, and not see any issues. I would try that. I'll be sure to add this bug to the dev list.
· 6
5 |100000

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