I am running a simulation experiment in a loop. I have written a macro to run simulation for multiple times. The macro runs only once and produces no errors or warnings. I checked the syntax and also spent quite some time on debugging this. Everything seems fine.