Hi,
We have found a small bug in the getTotalTimeAt function on the trackedVariable. Attached is a model that shows the problem. When you run the model to the stop time (105) the history of the tracked variable will be:
The time at value 1 is correct, 60. The problem is at the value that the tracked variable currently has (in this case 2). Asking the total time at value 2 returns 55, but it should be 25. Testing different situations seems to show that always the current state returns invalid
Thanks,
Patrick