Ticket #4563: SMGraphicalTestCases_DeepHierarchy.mos

File SMGraphicalTestCases_DeepHierarchy.mos, 719 bytes (added by Bernhard Thiele, 7 years ago)
Line 
1// name: SMGraphicalTestCases_DeepHierarchy
2// keywords: state machines
3// status: correct
4//
5
6loadFile("SMGraphicalTestCases.mo");
7echo(false);
8setCommandLineOptions({"+simCodeTarget=Cpp"}); getErrorString();
9simulate(SMGraphicalTestCases.DeepHierarchy, startTime=0, stopTime=30, numberOfIntervals = 0); getErrorString();
10echo(true);
11val(l1Composite.l2Composite.l3Final.active,4.0);
12val(l1Composite.l2Composite.l3Final.active,5.0);
13val(l1Composite.l2Composite.l3Final.active,6.0);
14val(l1Composite.l2Composite.l3Final.active,28.0);
15val(l1Composite.l2Composite.l3Final.active,29.0);
16val(l1Composite.l2Composite.l3Final.active,30.0);
17
18// Result:
19// true
20// true
21// 0.0
22// 1.0
23// 0.0
24// 0.0
25// 1.0
26// 0.0
27// endResult