Hi Mohammed,
See the attached version of your script. I moved the section that reads SAM outputs inside the loop just after the call to simulate(). Each time you simulate, you need to read the outputs.
I also moved the section that displays the results to inside the loop so you see the results for each simulation.
You can find the sections that I moved by searching the script for "**".
I also fixed the indentation to make it easier to read the script.
Best regards,
Paul.