question

Ralf Gruber avatar image
0 Likes"
Ralf Gruber asked Ralf Gruber commented

Tracked Variable Histogram Bug

Hi developers, @Jordan Johnson,

one of my clients found a serious bug for getting statistics: In the attached model

Tracked_Variable_Histogram_Bug_20.1.1.fsm

a Time Series Tracked Variable is created just to record a value on exit of the Source. The value is 5 for 100 times before it changes to 10. The upper histogram was created through the Tracked Variable GUI, no changes made. The count for both values is one after 1020s.

The lower histogram is created based on another statistics collector and shows the correct count for each value. On the default SC created automatically with the dashboard chart, the Change Rule is "Cange", while I think it needs to be "Update" for Time Series TVs....

This is easy to identify in this simple model, but VERY hard to find in a real world project. Hence my user's questions:

1. Is this bug effecting other dashboard charts created with the pin as well?

2. With what version has this bug been introduced? My client will have to go back through all projects he built in effected versions to revisit results. Here is another model in 20.0.5 that shows this bug, too:

Tracked_Variable_Histogram_Bug_20.0.5.fsm

Thx

FlexSim 20.1.1
flexsim 20.1.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.

1 Answer

Jordan Johnson avatar image
0 Likes"
Jordan Johnson answered Ralf Gruber commented

Yes, this appears to be a bug with the TrackedVariable histogram, the one you get when you use the pin button in the TrackedVariable properties window. You are correct that its update mode should be set to Update, and not OnChange. I will add it to the dev list.

To answer their questions:

1. No, this bug does not apply to any of the pre-built charts available in FlexSim. The Staytime Histogram in the dashboard library has the correct update mode. The Composite Staytime Histogram and the Staytime By Type Histogram don't listen to TrackedVariables, so they don't have this issue. I'm not currently aware of any other TrackedVariable chart you can pin as a histogram (object Staytime doesn't have this option).

2. This bug is present since 16.2.

· 2
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 Jordan Johnson ♦♦ commented ·
@Ralf Gruber I found another chart with this issued. If you pin a Staytime vs Time chart from the Object Statistics window, that chart has the same trouble.
0 Likes 0 ·
Ralf Gruber avatar image Ralf Gruber ♦ Jordan Johnson ♦♦ commented ·

Thx a lot, @Jordan Johnson

0 Likes 0 ·