In reply to cuonghl:
Now I see that the simulation time advances when executing the instructions inside the forever loop and ultimately the run phase proceeds to the extract phase. Had there been no instructions to execute inside the forever loop (I tried this to check), the simulation time never advances and the forever loop is never exited. Thanks for the replies…:)