Hi,
I understand you are getting inconsistent scope outputs when you change stop times of your simulation.
I have reproduced the simulation on my end and did not face the problem you stated in your question. Please check the simulation on your end or attach the simulink file for more help. In addition, simulate your model for other stop times such as 15 or 20 seconds and check if you are getting unexpected results.
I've attached my results.