Hello Everybody,

I have a question about the internal working of the doLoop() method 
together with the -repeat option.

The manual (e.g. 4.2.1) seems to say that only once an instance of my 
model is created and then the repetitions are done inside a loop that 
repeatedly calls state.start() and state.finish(). However, when I run 
my simulation it seems that in reality for each repetition a new 
instance is created (i.e. the constructor is called) that is run until 
the end !?
I would like to do multiple runs and collect information from each run, 
which are then analysed at the end. But if each time a new instance is 
created the variables that hold my data are reset...

I also noticed that the doLoop() never returns.
Does this mean that the program is actually terminated (after the last 
repetition) inside the doLoop() ??
That also makes it impossible to perform calculations on collected data 
at the end of the simulation !?

Any idea what I'm doing wrong?

Many thanks,