Search code examples
anylogic

Exception during discrete event execution


I am measuring time of two paths separately by adding timeMeasure blocks as i shown in the image below. I want to calculate average time spent in the system of this two paths by adding time measure. but a error will occur as follows; Error

enter image description here


Solution

  • It is because you are mixing the agents that passed through timeMeasureStart and timeMeasureStart1. Either you can duplicate your flow starting from delay block below and bring the timeMeasureEnd1 there, or split the time measurement process into two parts. One until the delay block, the other after that.