How to end simulation when there are forever-loops in sequence and monitor?

In reply to dave_59:

The statement “don’t use forever statements” is related to the body task of sequences. If your sequence runs forever your simulation will never stop.