Staytime chart hanging issue

Staytime chart hanging issue

jon_abbott
Not applicable
17 Views
4 Replies
Message 1 of 5

Staytime chart hanging issue

jon_abbott
Not applicable

[ FlexSim 20.1.2 ]

I have encountered what appears to be a bug in Staytime charts in FlexSim 20.1.2. It causes the application to hang and enter a memory allocation runaway condition. Please try running the attached model. If it doesn't hang, stop and reset the model, then try running it a few more times. It usually hangs within five tries. It only appears to happen when "Repeat random streams" is disabled. After the hang happens, Task Manager can be used to see that the FlexSim process consumes all available system memory in less than a minute. I then do End Task to prevent it from crashing the system. Thanks in advance for your assistance.

Example Model 2.fsm

0 Likes
Accepted solutions (1)
18 Views
4 Replies
Replies (4)
Message 2 of 5

JordanLJohnson
Autodesk
Autodesk
Accepted solution
I was able to replicate this on my computer. That's a bad bug, and I'll get it on the dev list. I haven't figured out a workaround yet, but I'll let you know if I do.
.


Jordan Johnson
Principal Software Engineer
>

0 Likes
Message 3 of 5

jon_abbott
Not applicable

Thanks, @Jordan! That's great that you were able to replicate the issue.

0 Likes
Message 4 of 5

jon_abbott
Not applicable

By the way @Jordan, this appears to happen with FlexSim 20.0 as well. If I had to guess, the fixed process time seems to lead to this chart hanging. If I use uniform(10,10.0001) as the process time instead, it doesn't seem to ever hang. Another curiosity is that if you set the process time to 10 and run it for a while without it hanging, it will sometimes show multiple bars in the histogram, even though there is only one process time value.

0 Likes
Message 5 of 5

JordanLJohnson
Autodesk
Autodesk

In regard to the "mutliple values" question, it depends on your bar boundaries, and on floating point precision. If an item enters the processor at time t1, and the process time is 10, then it exits at time t2. We calculate staytime as t2 - t1, which sometimes has a very slight precision error, 10.000000000001 or something like that, rather than 10.0 exactly.

.


Jordan Johnson
Principal Software Engineer
>

0 Likes