Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.TimerWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Templates.Plants.Controls.Utilities.Validation.TimerWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|noThr.u|res.y|noThr.t|noThr.y|noThrRes.y|noThr.passed|noThrRes.passed|thrTim.u|thrTim.t|thrTim.y|thrTimRes.y|thrTim.passed|thrTimRes.passed|thrTim1.u|thrTim1.t|thrTim1.y|thrTim1Res.y|thrTim1.passed|thrTim1Res.passed",fileNamePrefix="Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.TimerWithReset") translateModel(Buildings.Templates.Plants.Controls.Utilities.Validation.TimerWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|noThr.u|res.y|noThr.t|noThr.y|noThrRes.y|noThr.passed|noThrRes.passed|thrTim.u|thrTim.t|thrTim.y|thrTimRes.y|thrTim.passed|thrTimRes.passed|thrTim1.u|thrTim1.t|thrTim1.y|thrTim1Res.y|thrTim1.passed|thrTim1Res.passed",fileNamePrefix="Buildings_11_Buildings.Templates.Plants.Controls.Utilities.Validation.TimerWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001135/0.001135, allocations: 115.9 kB / 16.43 MB, free: 6.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001095/0.001095, allocations: 182 kB / 17.36 MB, free: 5.746 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.142/1.142, allocations: 222.9 MB / 241.1 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.243/2.243, allocations: 469.8 MB / 0.7431 GB, free: 3.363 MB / 0.6075 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.671e-05/1.674e-05, allocations: 4.531 kB / 1.066 GB, free: 13.62 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.Utilities.Validation.TimerWithReset): time 0.002927/0.002954, allocations: 2.369 MB / 1.068 GB, free: 11.24 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001639/0.004605, allocations: 1.157 MB / 1.069 GB, free: 10.08 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001343/0.00475, allocations: 7.938 kB / 1.069 GB, free: 10.07 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001562/0.004913, allocations: 67.27 kB / 1.069 GB, free: 10 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.000112/0.005031, allocations: 71.25 kB / 1.069 GB, free: 9.934 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009876/0.006029, allocations: 0.5403 MB / 1.07 GB, free: 9.398 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0007847/0.006836, allocations: 0.9793 MB / 1.071 GB, free: 8.418 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004844/0.007329, allocations: 489.8 kB / 1.071 GB, free: 7.934 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003127/0.007649, allocations: 407.1 kB / 1.072 GB, free: 7.535 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003358/0.007991, allocations: 386.6 kB / 1.072 GB, free: 7.156 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0001289/0.008126, allocations: 108 kB / 1.072 GB, free: 7.051 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001804/0.008312, allocations: 135.9 kB / 1.072 GB, free: 6.918 MB / 0.8419 GB Notification: Performance of combineBinaries: time 0.0006645/0.008984, allocations: 0.9941 MB / 1.073 GB, free: 5.914 MB / 0.8419 GB Notification: Performance of replaceArrayConstructors: time 0.0002382/0.00923, allocations: 0.5234 MB / 1.074 GB, free: 5.383 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.000117/0.009352, allocations: 111.7 kB / 1.074 GB, free: 5.273 MB / 0.8419 GB Notification: Performance of FrontEnd: time 9.216e-05/0.009449, allocations: 75.48 kB / 1.074 GB, free: 5.199 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 152 (146) * Number of variables: 144 (138) Notification: Performance of Bindings: time 0.002014/0.01147, allocations: 2.185 MB / 1.076 GB, free: 2.883 MB / 0.8419 GB Notification: Performance of FunctionAlias: time 0.0001914/0.01167, allocations: 175.6 kB / 1.076 GB, free: 2.707 MB / 0.8419 GB Notification: Performance of Early Inline: time 0.002067/0.01374, allocations: 2.338 MB / 1.079 GB, free: 336 kB / 0.8419 GB Notification: Performance of simplify1: time 0.387/0.4007, allocations: 346.8 kB / 1.079 GB, free: 16.5 MB / 0.8419 GB Notification: Performance of Alias: time 0.002653/0.4034, allocations: 2.119 MB / 1.081 GB, free: 15.93 MB / 0.8419 GB Notification: Performance of simplify2: time 0.000273/0.4037, allocations: 280.4 kB / 1.081 GB, free: 15.86 MB / 0.8419 GB Notification: Performance of Detect States: time 0.0007346/0.4044, allocations: 0.821 MB / 1.082 GB, free: 15.82 MB / 0.8419 GB Notification: Performance of Events: time 0.0009115/0.4053, allocations: 0.8804 MB / 1.083 GB, free: 15.62 MB / 0.8419 GB Notification: Performance of Partitioning: time 0.0005726/0.4059, allocations: 0.6479 MB / 1.084 GB, free: 15.36 MB / 0.8419 GB Error: Internal error NBSorting.SuperNode.getEqnIndices failed because elements should not be accessed, only their parents: [130] scalar element of (147) Error: Internal error NBSorting.tarjan failed to sort system: system vars Variables (119/129) ********************************* (1) [DISC] (1) Boolean $SEV_37 (2) [DISC] (1) Boolean $SEV_36 (3) [DISC] (1) Boolean $SEV_35 (4) [DISC] (1) Boolean $SEV_34 (5) [DISC] (1) Boolean $TEV_49 (6) [DISC] (1) Boolean $SEV_33 (7) [DISC] (1) Real $TEV_48 (8) [DISC] (1) Boolean $SEV_32 (9) [DISC] (1) Boolean $TEV_47 (10) [DISC] (1) Boolean $SEV_31 (11) [DISC] (1) Real $TEV_46 (12) [DISC] (1) Boolean $SEV_30 (13) [DISC] (1) Boolean $TEV_45 (14) [ALGB] (1) Real noThrRes.y (15) [DISC] (1) Real $TEV_44 (16) [DISC] (1) Boolean $TEV_43 (17) [DISS] (1) Boolean noThrRes.passed (18) [DISC] (1) Real $TEV_42 (19) [ALGB] (1) Real thrTim1Res.y (20) [DISC] (1) protected Integer res.stateGraphRoot.activeSteps (21) [DISC] (1) protected Boolean res.toFalse1.outPort.set (22) [DISC] (1) Real $TEV_41 (23) [DISC] (1) Boolean $TEV_40 (24) [DISC] (1) protected final Boolean res.toFalse.localCondition = res.toFalse.localCondition (25) [DISC] (2) protected Boolean[2] res.initialStep.outPort.available (26) [ALGB] (1) protected flow Real res.initialStep.outerStatePort.subgraphStatePort.activeSteps (27) [DISS] (1) protected Boolean res.onDel1.y (28) [DISC] (1) protected Boolean res.initialStep.outerStatePort.localActive = res.initialStep.outerStatePort.localActive (29) [DISC] (1) protected Boolean res.toTrue.outPort.occupied (30) [DISS] (1) protected Boolean res.onDel2.y (31) [DISC] (1) protected Boolean res.toTrue1.inPort.available (32) [DISS] (1) Boolean noThr.passed (33) [ALGB] (1) Real thrTim1.y (34) [DISC] (1) Boolean $SEV_29 (35) [DISC] (1) protected Boolean[1] res.outputTrue.outPort.reset (36) [DISC] (1) Boolean $SEV_28 (37) [DISS] (1) Boolean thrTimRes.passed (38) [DISC] (1) protected final Boolean res.toTrue1.localCondition = res.toTrue1.localCondition (39) [DISC] (1) protected Boolean res.outputTrue.newActive (40) [DISC] (1) Boolean $SEV_27 (41) [DISC] (1) Boolean $SEV_26 (42) [DISC] (1) Boolean $SEV_25 (43) [DISC] (2) Boolean[2] $SEV_21[$i1] (44) [DISC] (1) Boolean $TEV_39 (45) [DISC] (1) protected Boolean res.toFalse1.inPort.available (46) [ALGB] (1) Real thrTim.y (47) [DISC] (1) Boolean $SEV_23 (48) [DISC] (1) Boolean $SEV_22 (49) [DISC] (1) Boolean $FUN_6 (50) [DISC] (1) Boolean $TEV_36 (51) [DISS] (1) protected discrete Real thrTim1Res.entryTime (52) [DISC] (1) Boolean $SEV_20 (53) [DISC] (1) Boolean $TEV_35 (54) [ALGB] (1) protected flow Real res.outputFalse.outerStatePort.subgraphStatePort.activeSteps (55) [DISC] (1) protected Boolean res.outputFalse.outerStatePort.localActive = res.outputFalse.outerStatePort.localActive (56) [DISC] (1) Boolean $FUN_4 (57) [DISC] (1) Boolean $TEV_34 (58) [DISS] (1) protected discrete Real noThr.entryTime (59) [DISC] (1) Boolean $FUN_3 (60) [DISC] (1) Boolean $FUN_2 (61) [DISC] (1) Boolean $FUN_1 (62) [DISC] (1) Boolean $TEV_31 (63) [DISC] (1) Boolean $TEV_30 (64) [DISC] (1) protected Boolean[1] res.outputFalse.outPort.available (65) [DISC] (1) protected Boolean res.toFalse.inPort.available (66) [DISC] (2) Boolean[2] $SEV_24[$i1] (67) [ALGB] (1) Real thrTimRes.y (68) [DISS] (1) protected Real res.onDel1.t_next (69) [DISC] (1) protected final Boolean res.toTrue.localCondition = res.toTrue.localCondition (70) [DISS] (1) Boolean thrTim1.passed (71) [DISS] (1) protected Real res.onDel2.t_next (72) [DISC] (1) protected Boolean[1] res.outputTrue.outPort.available (73) [DISC] (2) protected Boolean[2] res.outputFalse.inPort.occupied (74) [DISS] (1) protected discrete Real thrTim1.entryTime (75) [ALGB] (1) protected flow Real res.stateGraphRoot.subgraphStatePort.activeSteps (76) [DISC] (1) protected Boolean res.toTrue1.outPort.set (77) [DISC] (1) Boolean $SEV_19 (78) [DISC] (1) Boolean $SEV_18 (79) [DISS] (1) protected discrete Real noThrRes.entryTime (80) [DISS] (1) protected discrete Real thrTim.entryTime (81) [DISC] (1) Boolean $SEV_17 (82) [DISC] (1) Boolean $SEV_14 (83) [DISC] (1) Boolean $TEV_29 (84) [DISC] (1) protected Boolean res.outputFalse.newActive (85) [DISC] (1) protected Boolean res.toFalse1.outPort.occupied (86) [DISC] (1) Boolean $SEV_13 (87) [DISC] (1) protected Boolean res.toTrue.inPort.available (88) [DISC] (1) protected Boolean[1] res.outputFalse.outPort.reset (89) [DISC] (1) Boolean $TEV_26 (90) [DISC] (1) protected Boolean res.toTrue.outPort.set (91) [DISC] (1) protected Boolean res.toFalse.outPort.occupied (92) [DISS] (1) protected discrete Real thrTimRes.entryTime (93) [DISC] (1) Boolean $TEV_24 (94) [DISC] (1) protected Boolean res.toFalse.outPort.set (95) [DISC] (2) Boolean[2] $SEV_16[$i1] (96) [DISS] (1) Boolean noThr.u (97) [DISC] (1) protected Boolean res.toTrue1.outPort.occupied (98) [DISC] (2) protected Boolean[2] res.outputFalse.inPort.set (99) [DISC] (1) Boolean $TEV_59 (100) [DISC] (1) Boolean $TEV_58 (101) [DISC] (1) Boolean $TEV_57 (102) [DISC] (2) protected Boolean[2] res.outputTrue.inPort.set (103) [DISC] (1) Boolean $TEV_56 (104) [DISC] (1) Boolean $TEV_55 (105) [DISC] (1) Real $TEV_54 (106) [DISC] (1) Boolean $TEV_53 (107) [DISC] (2) protected Boolean[2] res.initialStep.outPort.reset (108) [DISC] (1) Real $TEV_52 (109) [DISC] (1) protected Boolean res.outputTrue.outerStatePort.localActive = res.outputTrue.outerStatePort.localActive (110) [DISC] (1) Boolean $TEV_51 (111) [DISC] (1) Real $TEV_50 (112) [DISC] (1) protected Boolean res.initialStep.newActive (113) [DISS] (1) Boolean thrTim1.u (114) [ALGB] (1) Real noThr.y (115) [DISS] (1) Boolean thrTim1Res.passed (116) [DISC] (2) Boolean[2] $SEV_15[$i1] (117) [ALGB] (1) protected flow Real res.outputTrue.outerStatePort.subgraphStatePort.activeSteps (118) [DISS] (1) Boolean thrTim.passed (119) [DISC] (2) protected Boolean[2] res.outputTrue.inPort.occupied system eqns Equations (127/137) ********************************* (1) [FOR-] (2) ($RES_SIM_52) (1) [----] for $i1 in 1:2 loop (1) [----] [SCAL] (1) res.initialStep.outPort[$i1].reset = false ($RES_SIM_53) (1) [----] end for; (2) [SCAL] (1) res.outputTrue.outPort[1].reset = res.toFalse.outPort.set ($RES_SIM_170) (3) [SCAL] (1) res.outputTrue.outPort[1].available = res.toFalse.inPort.available ($RES_SIM_171) (4) [FOR-] (2) ($RES_SIM_54) (4) [----] for $i1 in 1:2 loop (4) [----] [SCAL] (1) res.initialStep.outPort[$i1].available = if $SEV_15[$i1] then res.initialStep.outerStatePort.localActive else $SEV_16[$i1] ($RES_SIM_55) (4) [----] end for; (5) [FOR-] (2) ($RES_SIM_90) (5) [----] for $i1 in 1:2 loop (5) [----] [SCAL] (1) res.outputFalse.inPort[$i1].set = false ($RES_SIM_91) (5) [----] end for; (6) [SCAL] (1) res.outputFalse.outPort[1].available = res.outputFalse.outerStatePort.localActive ($RES_SIM_92) (7) [SCAL] (1) res.initialStep.newActive = $SEV_17 ($RES_SIM_57) (8) [FOR-] (2) ($RES_SIM_93) (8) [----] for $i1 in 1:2 loop (8) [----] [SCAL] (1) res.outputFalse.inPort[$i1].occupied = if $SEV_15[$i1] then res.outputFalse.outerStatePort.localActive else $SEV_24[$i1] ($RES_SIM_94) (8) [----] end for; (9) [SCAL] (1) res.initialStep.outerStatePort.localActive = $TEV_30 ($RES_SIM_58) (10) [SCAL] (1) res.outputFalse.newActive = $SEV_25 ($RES_SIM_96) (11) [SCAL] (1) res.outputFalse.outerStatePort.localActive = $TEV_40 ($RES_SIM_97) (12) [SCAL] (1) res.outputFalse.outerStatePort.subgraphStatePort.activeSteps = if res.outputFalse.outerStatePort.localActive then 1.0 else 0.0 ($RES_SIM_99) (13) [SCAL] (1) $TEV_39 = $PRE.res.outputFalse.outerStatePort.localActive ($RES_EVT_212) (14) [SCAL] (1) $TEV_40 = $PRE.res.outputFalse.newActive ($RES_EVT_213) (15) [SCAL] (1) $TEV_41 = $PRE.res.onDel2.t_next ($RES_EVT_214) (16) [FOR-] (2) ($RES_EVT_250) (16) [----] for $i1 in 1:2 loop (16) [----] [SCAL] (1) $SEV_21[$i1] = res.outputTrue.inPort[$i1 - 1].occupied or res.outputTrue.inPort[$i1 - 1].set ($RES_EVT_251) (16) [----] end for; (17) [SCAL] (1) $TEV_42 = $PRE.res.onDel1.t_next ($RES_EVT_215) (18) [SCAL] (1) $TEV_43 = $PRE.thrTim1Res.passed ($RES_EVT_216) (19) [SCAL] (1) $SEV_22 = $FUN_3 or res.outputTrue.outerStatePort.localActive and not $FUN_4 ($RES_EVT_252) (20) [SCAL] (1) $TEV_44 = $PRE.thrTim1Res.entryTime ($RES_EVT_217) (21) [SCAL] (1) $SEV_23 = (res.toTrue.localCondition and res.toTrue.inPort.available) and not res.toTrue.outPort.occupied ($RES_EVT_253) (22) [SCAL] (1) $TEV_45 = $PRE.thrTimRes.passed ($RES_EVT_218) (23) [FOR-] (2) ($RES_EVT_254) (23) [----] for $i1 in 1:2 loop (23) [----] [SCAL] (1) $SEV_24[$i1] = res.outputFalse.inPort[$i1 - 1].occupied or res.outputFalse.inPort[$i1 - 1].set ($RES_EVT_255) (23) [----] end for; (24) [SCAL] (1) $TEV_46 = $PRE.thrTimRes.entryTime ($RES_EVT_219) (25) [SCAL] (1) $SEV_25 = $FUN_1 or res.outputFalse.outerStatePort.localActive and not $FUN_2 ($RES_EVT_256) (26) [SCAL] (1) $SEV_26 = time >= $PRE.res.onDel2.t_next ($RES_EVT_257) (27) [SCAL] (1) $SEV_27 = time >= $PRE.res.onDel1.t_next ($RES_EVT_258) (28) [SCAL] (1) $SEV_28 = thrTim1.u and time >= (thrTim1Res.t + $PRE.thrTim1Res.entryTime) ($RES_EVT_259) (29) [SCAL] (1) res.stateGraphRoot.activeSteps = -integer(res.stateGraphRoot.subgraphStatePort.activeSteps) ($RES_SIM_103) (30) [WHEN] (1) ($RES_SIM_104) (30) [----] when $SEV_26 then (30) [----] res.onDel2.y := res.outputTrue.outerStatePort.localActive (30) [----] else when not res.outputTrue.outerStatePort.localActive then (30) [----] res.onDel2.y := false (30) [----] else when res.outputTrue.outerStatePort.localActive then (30) [----] res.onDel2.y := not res.onDel2.delayTime > 0.0 (30) [----] else when initial() then (30) [----] res.onDel2.y := if not (res.onDel2.delayOnInit and res.onDel2.delayTime > 0.0) then res.outputTrue.outerStatePort.localActive else false (30) [----] end when; (31) [WHEN] (1) ($RES_SIM_105) (31) [----] when $SEV_26 then (31) [----] res.onDel2.t_next := res.onDel2.t_past (31) [----] else when not res.outputTrue.outerStatePort.localActive then (31) [----] res.onDel2.t_next := res.onDel2.t_past (31) [----] else when res.outputTrue.outerStatePort.localActive then (31) [----] res.onDel2.t_next := time + res.onDel2.delayTime (31) [----] else when initial() then (31) [----] res.onDel2.t_next := if not res.onDel2.delayOnInit then res.onDel2.t_past else time + res.onDel2.delayTime (31) [----] end when; (32) [WHEN] (1) ($RES_SIM_106) (32) [----] when $SEV_27 then (32) [----] res.onDel1.y := res.outputFalse.outerStatePort.localActive (32) [----] else when not res.outputFalse.outerStatePort.localActive then (32) [----] res.onDel1.y := false (32) [----] else when res.outputFalse.outerStatePort.localActive then (32) [----] res.onDel1.y := not res.onDel1.delayTime > 0.0 (32) [----] else when initial() then (32) [----] res.onDel1.y := if not (res.onDel1.delayOnInit and res.onDel1.delayTime > 0.0) then res.outputFalse.outerStatePort.localActive else false (32) [----] end when; (33) [SCAL] (1) res.initialStep.outerStatePort.subgraphStatePort.activeSteps = if res.initialStep.outerStatePort.localActive then 1.0 else 0.0 ($RES_SIM_60) (34) [WHEN] (1) ($RES_SIM_107) (34) [----] when $SEV_27 then (34) [----] res.onDel1.t_next := res.onDel1.t_past (34) [----] else when not res.outputFalse.outerStatePort.localActive then (34) [----] res.onDel1.t_next := res.onDel1.t_past (34) [----] else when res.outputFalse.outerStatePort.localActive then (34) [----] res.onDel1.t_next := time + res.onDel1.delayTime (34) [----] else when initial() then (34) [----] res.onDel1.t_next := if not res.onDel1.delayOnInit then res.onDel1.t_past else time + res.onDel1.delayTime (34) [----] end when; (35) [SCAL] (1) res.toTrue.localCondition = $SEV_18 ($RES_SIM_61) (36) [SCAL] (1) res.toTrue1.localCondition = $TEV_55 ($RES_SIM_108) (37) [SCAL] (1) res.toFalse.localCondition = $SEV_19 ($RES_SIM_62) (38) [SCAL] (1) thrTim1Res.y = if thrTim1.u then time - thrTim1Res.entryTime else 0.0 ($RES_SIM_109) (39) [SCAL] (1) res.initialStep.outPort[2].reset = res.toFalse1.outPort.set ($RES_SIM_146) (40) [SCAL] (1) res.toFalse.outPort.set = $SEV_20 ($RES_SIM_65) (41) [SCAL] (1) res.initialStep.outPort[2].available = res.toFalse1.inPort.available ($RES_SIM_147) (42) [SCAL] (1) res.initialStep.outPort[1].reset = res.toTrue1.outPort.set ($RES_SIM_148) (43) [SCAL] (1) res.initialStep.outPort[1].available = res.toTrue1.inPort.available ($RES_SIM_149) (44) [SCAL] (1) $TEV_47 = $PRE.noThrRes.passed ($RES_EVT_220) (45) [SCAL] (1) $TEV_48 = $PRE.noThrRes.entryTime ($RES_EVT_221) (46) [SCAL] (1) $TEV_49 = $PRE.thrTim1.passed ($RES_EVT_222) (47) [SCAL] (1) $TEV_50 = $PRE.thrTim1.entryTime ($RES_EVT_223) (48) [SCAL] (1) $TEV_51 = $PRE.thrTim.passed ($RES_EVT_224) (49) [SCAL] (1) $SEV_29 = thrTim1.u and not res.toTrue1.localCondition ($RES_EVT_260) (50) [SCAL] (1) $TEV_52 = $PRE.thrTim.entryTime ($RES_EVT_225) (51) [SCAL] (1) $SEV_30 = noThr.u and time >= (thrTimRes.t + $PRE.thrTimRes.entryTime) ($RES_EVT_261) (52) [SCAL] (1) $TEV_53 = $PRE.noThr.passed ($RES_EVT_226) (53) [SCAL] (1) $SEV_31 = noThr.u and not res.toTrue1.localCondition ($RES_EVT_262) (54) [SCAL] (1) $TEV_54 = $PRE.noThr.entryTime ($RES_EVT_227) (55) [SCAL] (1) $SEV_32 = noThr.u and time >= (noThrRes.t + $PRE.noThrRes.entryTime) ($RES_EVT_263) (56) [SCAL] (1) $TEV_55 = sample(5, samTri.t0, samTri.period) ($RES_EVT_228) (57) [SCAL] (1) $SEV_33 = thrTim1.u and time >= (thrTim1.t + $PRE.thrTim1.entryTime) ($RES_EVT_264) (58) [SCAL] (1) $TEV_56 = sample(6, booPul1.t1, booPul1.period) ($RES_EVT_229) (59) [SCAL] (1) $SEV_34 = thrTim1.u and not con.k ($RES_EVT_265) (60) [SCAL] (1) $SEV_35 = noThr.u and time >= (thrTim.t + $PRE.thrTim.entryTime) ($RES_EVT_266) (61) [WHEN] (1) ($RES_SIM_110) (61) [----] when not thrTim1.u then (61) [----] thrTim1Res.passed := false (61) [----] else when $SEV_28 then (61) [----] thrTim1Res.passed := true (61) [----] else when res.toTrue1.localCondition then (61) [----] thrTim1Res.passed := false (61) [----] else when $SEV_29 then (61) [----] thrTim1Res.passed := thrTim1Res.t <= 0.0 (61) [----] end when; (62) [SCAL] (1) $SEV_36 = noThr.u and not con.k ($RES_EVT_267) (63) [WHEN] (1) ($RES_SIM_111) (63) [----] when not thrTim1.u then (63) [----] thrTim1Res.entryTime := $PRE.thrTim1Res.entryTime (63) [----] else when $SEV_28 then (63) [----] thrTim1Res.entryTime := $PRE.thrTim1Res.entryTime (63) [----] else when res.toTrue1.localCondition then (63) [----] thrTim1Res.entryTime := time (63) [----] else when $SEV_29 then (63) [----] thrTim1Res.entryTime := time (63) [----] end when; (64) [SCAL] (1) $SEV_37 = noThr.u and time >= (noThr.t + $PRE.noThr.entryTime) ($RES_EVT_268) (65) [SCAL] (1) thrTimRes.y = if noThr.u then time - thrTimRes.entryTime else 0.0 ($RES_SIM_112) (66) [WHEN] (1) ($RES_SIM_113) (66) [----] when not noThr.u then (66) [----] thrTimRes.passed := false (66) [----] else when $SEV_30 then (66) [----] thrTimRes.passed := true (66) [----] else when res.toTrue1.localCondition then (66) [----] thrTimRes.passed := false (66) [----] else when $SEV_31 then (66) [----] thrTimRes.passed := thrTimRes.t <= 0.0 (66) [----] end when; (67) [WHEN] (1) ($RES_SIM_114) (67) [----] when not noThr.u then (67) [----] thrTimRes.entryTime := $PRE.thrTimRes.entryTime (67) [----] else when $SEV_30 then (67) [----] thrTimRes.entryTime := $PRE.thrTimRes.entryTime (67) [----] else when res.toTrue1.localCondition then (67) [----] thrTimRes.entryTime := time (67) [----] else when $SEV_31 then (67) [----] thrTimRes.entryTime := time (67) [----] end when; (68) [SCAL] (1) res.toFalse1.outPort.set = res.outputFalse.inPort[2].set ($RES_SIM_150) (69) [SCAL] (1) noThrRes.y = if noThr.u then time - noThrRes.entryTime else 0.0 ($RES_SIM_115) (70) [SCAL] (1) res.toFalse1.outPort.occupied = res.outputFalse.inPort[2].occupied ($RES_SIM_151) (71) [WHEN] (1) ($RES_SIM_116) (71) [----] when not noThr.u then (71) [----] noThrRes.passed := false (71) [----] else when $SEV_32 then (71) [----] noThrRes.passed := true (71) [----] else when res.toTrue1.localCondition then (71) [----] noThrRes.passed := false (71) [----] else when $SEV_31 then (71) [----] noThrRes.passed := noThrRes.t <= 0.0 (71) [----] end when; (72) [SCAL] (1) res.toTrue.outPort.set = res.outputTrue.inPort[2].set ($RES_SIM_152) (73) [WHEN] (1) ($RES_SIM_117) (73) [----] when not noThr.u then (73) [----] noThrRes.entryTime := $PRE.noThrRes.entryTime (73) [----] else when $SEV_32 then (73) [----] noThrRes.entryTime := $PRE.noThrRes.entryTime (73) [----] else when res.toTrue1.localCondition then (73) [----] noThrRes.entryTime := time (73) [----] else when $SEV_31 then (73) [----] noThrRes.entryTime := time (73) [----] end when; (74) [SCAL] (1) res.outputTrue.outPort[1].reset = false ($RES_SIM_70) (75) [SCAL] (1) res.toTrue.outPort.occupied = res.outputTrue.inPort[2].occupied ($RES_SIM_153) (76) [FOR-] (2) ($RES_SIM_71) (76) [----] for $i1 in 1:2 loop (76) [----] [SCAL] (1) res.outputTrue.inPort[$i1].set = false ($RES_SIM_72) (76) [----] end for; (77) [SCAL] (1) res.toTrue1.outPort.set = res.outputTrue.inPort[1].set ($RES_SIM_154) (78) [WHEN] (1) ($RES_SIM_119) (78) [----] when $TEV_56 then (78) [----] thrTim1.u := false (78) [----] else when $TEV_57 then (78) [----] thrTim1.u := true (78) [----] end when; (79) [SCAL] (1) res.outputTrue.outPort[1].available = res.outputTrue.outerStatePort.localActive ($RES_SIM_73) (80) [SCAL] (1) res.toTrue1.outPort.occupied = res.outputTrue.inPort[1].occupied ($RES_SIM_155) (81) [FOR-] (2) ($RES_SIM_74) (81) [----] for $i1 in 1:2 loop (81) [----] [SCAL] (1) res.outputTrue.inPort[$i1].occupied = if $SEV_15[$i1] then res.outputTrue.outerStatePort.localActive else $SEV_21[$i1] ($RES_SIM_75) (81) [----] end for; (82) [SCAL] (1) res.outputTrue.newActive = $SEV_22 ($RES_SIM_77) (83) [SCAL] (1) res.outputTrue.outerStatePort.localActive = $TEV_35 ($RES_SIM_78) (84) [SCAL] (1) $TEV_57 = sample(7, booPul1.t0, booPul1.period) ($RES_EVT_230) (85) [SCAL] (1) $TEV_58 = sample(8, booPul.t1, booPul.period) ($RES_EVT_231) (86) [SCAL] (1) $TEV_59 = sample(9, booPul.t0, booPul.period) ($RES_EVT_232) (87) [SCAL] (1) $TEV_24 = $PRE.res.toFalse1.outPort.set ($RES_EVT_197) (88) [SCAL] (1) $TEV_26 = $PRE.res.toTrue1.outPort.set ($RES_EVT_199) (89) [SCAL] (1) $FUN_1 = Modelica.Math.BooleanVectors.anyTrue(res.outputFalse.inPort.set) ($RES_$AUX_195) (90) [SCAL] (1) $FUN_2 = Modelica.Math.BooleanVectors.anyTrue(res.outputFalse.outPort.reset) ($RES_$AUX_194) (91) [SCAL] (1) $FUN_3 = Modelica.Math.BooleanVectors.anyTrue(res.outputTrue.inPort.set) ($RES_$AUX_193) (92) [SCAL] (1) $FUN_4 = Modelica.Math.BooleanVectors.anyTrue(res.outputTrue.outPort.reset) ($RES_$AUX_192) (93) [WHEN] (1) ($RES_SIM_120) (93) [----] when $TEV_58 then (93) [----] noThr.u := false (93) [----] else when $TEV_59 then (93) [----] noThr.u := true (93) [----] end when; (94) [SCAL] (1) thrTim1.y = if thrTim1.u then time - thrTim1.entryTime else 0.0 ($RES_SIM_121) (95) [SCAL] (1) $FUN_6 = Modelica.Math.BooleanVectors.anyTrue(res.initialStep.outPort.reset) ($RES_$AUX_190) (96) [WHEN] (1) ($RES_SIM_122) (96) [----] when not thrTim1.u then (96) [----] thrTim1.passed := false (96) [----] else when $SEV_33 then (96) [----] thrTim1.passed := true (96) [----] else when con.k then (96) [----] thrTim1.passed := false (96) [----] else when $SEV_34 then (96) [----] thrTim1.passed := thrTim1.t <= 0.0 (96) [----] end when; (97) [SCAL] (1) res.toFalse1.outPort.set = $SEV_13 ($RES_SIM_40) (98) [WHEN] (1) ($RES_SIM_123) (98) [----] when not thrTim1.u then (98) [----] thrTim1.entryTime := $PRE.thrTim1.entryTime (98) [----] else when $SEV_33 then (98) [----] thrTim1.entryTime := $PRE.thrTim1.entryTime (98) [----] else when con.k then (98) [----] thrTim1.entryTime := time (98) [----] else when $SEV_34 then (98) [----] thrTim1.entryTime := time (98) [----] end when; (99) [SCAL] (1) thrTim.y = if noThr.u then time - thrTim.entryTime else 0.0 ($RES_SIM_124) (100) [WHEN] (1) ($RES_SIM_125) (100) [----] when not noThr.u then (100) [----] thrTim.passed := false (100) [----] else when $SEV_35 then (100) [----] thrTim.passed := true (100) [----] else when con.k then (100) [----] thrTim.passed := false (100) [----] else when $SEV_36 then (100) [----] thrTim.passed := thrTim.t <= 0.0 (100) [----] end when; (101) [WHEN] (1) ($RES_SIM_126) (101) [----] when not noThr.u then (101) [----] thrTim.entryTime := $PRE.thrTim.entryTime (101) [----] else when $SEV_35 then (101) [----] thrTim.entryTime := $PRE.thrTim.entryTime (101) [----] else when con.k then (101) [----] thrTim.entryTime := time (101) [----] else when $SEV_36 then (101) [----] thrTim.entryTime := time (101) [----] end when; (102) [SCAL] (1) res.outputTrue.outerStatePort.subgraphStatePort.activeSteps = if res.outputTrue.outerStatePort.localActive then 1.0 else 0.0 ($RES_SIM_80) (103) [SCAL] (1) noThr.y = if noThr.u then time - noThr.entryTime else 0.0 ($RES_SIM_127) (104) [WHEN] (1) ($RES_SIM_128) (104) [----] when not noThr.u then (104) [----] noThr.passed := false (104) [----] else when $SEV_37 then (104) [----] noThr.passed := true (104) [----] else when con.k then (104) [----] noThr.passed := false (104) [----] else when $SEV_36 then (104) [----] noThr.passed := noThr.t <= 0.0 (104) [----] end when; (105) [SCAL] (1) res.toFalse.outPort.set = res.outputFalse.inPort[1].set ($RES_SIM_164) (106) [WHEN] (1) ($RES_SIM_129) (106) [----] when not noThr.u then (106) [----] noThr.entryTime := $PRE.noThr.entryTime (106) [----] else when $SEV_37 then (106) [----] noThr.entryTime := $PRE.noThr.entryTime (106) [----] else when con.k then (106) [----] noThr.entryTime := time (106) [----] else when $SEV_36 then (106) [----] noThr.entryTime := time (106) [----] end when; (107) [SCAL] (1) res.toTrue1.outPort.set = $SEV_14 ($RES_SIM_47) (108) [SCAL] (1) res.toFalse.outPort.occupied = res.outputFalse.inPort[1].occupied ($RES_SIM_165) (109) [SCAL] (1) res.toTrue.outPort.set = $SEV_23 ($RES_SIM_84) (110) [SCAL] (1) res.outputFalse.outPort[1].reset = res.toTrue.outPort.set ($RES_SIM_166) (111) [SCAL] (1) res.outputFalse.outPort[1].available = res.toTrue.inPort.available ($RES_SIM_167) (112) [SCAL] (1) res.outputFalse.outPort[1].reset = false ($RES_SIM_89) (113) [SCAL] (1) $TEV_29 = $PRE.res.initialStep.outerStatePort.localActive ($RES_EVT_202) (114) [SCAL] (1) $TEV_30 = $PRE.res.initialStep.newActive ($RES_EVT_203) (115) [SCAL] (1) $TEV_31 = $PRE.res.toFalse.outPort.set ($RES_EVT_204) (116) [SCAL] (1) $SEV_13 = (not res.toTrue1.localCondition and res.toFalse1.inPort.available) and not res.toFalse1.outPort.occupied ($RES_EVT_240) (117) [SCAL] (1) $SEV_14 = (res.toTrue1.localCondition and res.toTrue1.inPort.available) and not res.toTrue1.outPort.occupied ($RES_EVT_241) (118) [FOR-] (2) ($RES_EVT_242) (118) [----] for $i1 in 1:2 loop (118) [----] [SCAL] (1) $SEV_15[$i1] = $i1 == 1 ($RES_EVT_243) (118) [----] end for; (119) [SCAL] (1) $TEV_34 = $PRE.res.outputTrue.outerStatePort.localActive ($RES_EVT_207) (120) [SCAL] (1) $TEV_35 = $PRE.res.outputTrue.newActive ($RES_EVT_208) (121) [FOR-] (2) ($RES_EVT_244) (121) [----] for $i1 in 1:2 loop (121) [----] [SCAL] (1) $SEV_16[$i1] = res.initialStep.outPort[$i1 - 1].available and not res.initialStep.outPort[$i1 - 1].reset ($RES_EVT_245) (121) [----] end for; (122) [SCAL] (1) $TEV_36 = $PRE.res.toTrue.outPort.set ($RES_EVT_209) (123) [SCAL] (1) $SEV_17 = res.initialStep.outerStatePort.localActive and not $FUN_6 ($RES_EVT_246) (124) [SCAL] (1) $SEV_18 = res.onDel1.y and res.toTrue1.localCondition ($RES_EVT_247) (125) [SCAL] (1) $SEV_19 = res.onDel2.y and not res.toTrue1.localCondition ($RES_EVT_248) (126) [SCAL] (1) $SEV_20 = (res.toFalse.localCondition and res.toFalse.inPort.available) and not res.toFalse.outPort.occupied ($RES_EVT_249) (127) [SCAL] (1) res.outputFalse.outerStatePort.subgraphStatePort.activeSteps + res.outputTrue.outerStatePort.subgraphStatePort.activeSteps + res.initialStep.outerStatePort.subgraphStatePort.activeSteps + res.stateGraphRoot.subgraphStatePort.activeSteps = 0.0 ($RES_SIM_130) =================== Scalar Matching =================== variable to equation ********************** var 1 --> eqn 70 var 2 --> eqn 68 var 3 --> eqn 66 var 4 --> eqn 65 var 5 --> eqn 52 var 6 --> eqn 63 var 7 --> eqn 51 var 8 --> eqn 61 var 9 --> eqn 50 var 10 --> eqn 59 var 11 --> eqn 30 var 12 --> eqn 57 var 13 --> eqn 27 var 14 --> eqn 75 var 15 --> eqn 25 var 16 --> eqn 23 var 17 --> eqn 77 var 18 --> eqn 22 var 19 --> eqn 44 var 20 --> eqn 35 var 21 --> eqn 45 var 22 --> eqn 19 var 23 --> eqn 18 var 24 --> eqn 43 var 25 --> eqn 5 var 26 --> eqn 6 var 27 --> eqn 39 var 28 --> eqn 38 var 29 --> eqn 13 var 30 --> eqn 81 var 31 --> eqn 36 var 32 --> eqn 49 var 33 --> eqn 112 var 34 --> eqn 102 var 35 --> eqn 55 var 36 --> eqn 3 var 37 --> eqn 34 var 38 --> eqn 72 var 39 --> eqn 42 var 40 --> eqn 90 var 41 --> eqn 33 var 42 --> eqn 32 var 43 --> eqn 31 var 44 --> eqn 20 var 45 --> eqn 21 var 46 --> eqn 17 var 47 --> eqn 47 var 48 --> eqn 107 var 49 --> eqn 26 var 50 --> eqn 24 var 51 --> eqn 103 var 52 --> eqn 132 var 53 --> eqn 69 var 54 --> eqn 46 var 55 --> eqn 129 var 56 --> eqn 16 var 57 --> eqn 15 var 58 --> eqn 100 var 59 --> eqn 128 var 60 --> eqn 114 var 61 --> eqn 99 var 62 --> eqn 98 var 63 --> eqn 97 var 64 --> eqn 123 var 65 --> eqn 122 var 66 --> eqn 9 var 67 --> eqn 4 var 68 --> eqn 28 var 69 --> eqn 29 var 70 --> eqn 71 var 71 --> eqn 40 var 72 --> eqn 41 var 73 --> eqn 104 var 74 --> eqn 37 var 75 --> eqn 86 var 76 --> eqn 11 var 77 --> eqn 12 var 78 --> eqn 106 var 79 --> eqn 137 var 80 --> eqn 48 var 81 --> eqn 135 var 82 --> eqn 134 var 83 --> eqn 79 var 84 --> eqn 109 var 85 --> eqn 133 var 86 --> eqn 115 var 87 --> eqn 121 var 88 --> eqn 14 var 89 --> eqn 76 var 90 --> eqn 105 var 91 --> eqn 119 var 92 --> eqn 118 var 93 --> eqn 96 var 94 --> eqn 78 var 95 --> eqn 116 var 96 --> eqn 73 var 97 --> eqn 95 var 98 --> eqn 113 var 99 --> eqn 130 var 100 --> eqn 131 var 101 --> eqn 101 var 102 --> eqn 87 var 103 --> eqn 7 var 104 --> eqn 8 var 105 --> eqn 94 var 106 --> eqn 93 var 107 --> eqn 92 var 108 --> eqn 82 var 109 --> eqn 83 var 110 --> eqn 64 var 111 --> eqn 62 var 112 --> eqn 60 var 113 --> eqn 58 var 114 --> eqn 1 var 115 --> eqn 2 var 116 --> eqn 56 var 117 --> eqn 91 var 118 --> eqn 54 var 119 --> eqn 53 var 120 --> eqn 10 var 121 --> eqn 85 var 122 --> eqn 111 var 123 --> eqn 67 var 124 --> eqn 126 var 125 --> eqn 127 var 126 --> eqn 110 var 127 --> eqn 108 var 128 --> eqn 88 var 129 --> eqn 89 equation to variable ********************** eqn 1 --> var 114 eqn 2 --> var 115 eqn 3 --> var 36 eqn 4 --> var 67 eqn 5 --> var 25 eqn 6 --> var 26 eqn 7 --> var 103 eqn 8 --> var 104 eqn 9 --> var 66 eqn 10 --> var 120 eqn 11 --> var 76 eqn 12 --> var 77 eqn 13 --> var 29 eqn 14 --> var 88 eqn 15 --> var 57 eqn 16 --> var 56 eqn 17 --> var 46 eqn 18 --> var 23 eqn 19 --> var 22 eqn 20 --> var 44 eqn 21 --> var 45 eqn 22 --> var 18 eqn 23 --> var 16 eqn 24 --> var 50 eqn 25 --> var 15 eqn 26 --> var 49 eqn 27 --> var 13 eqn 28 --> var 68 eqn 29 --> var 69 eqn 30 --> var 11 eqn 31 --> var 43 eqn 32 --> var 42 eqn 33 --> var 41 eqn 34 --> var 37 eqn 35 --> var 20 eqn 36 --> var 31 eqn 37 --> var 74 eqn 38 --> var 28 eqn 39 --> var 27 eqn 40 --> var 71 eqn 41 --> var 72 eqn 42 --> var 39 eqn 43 --> var 24 eqn 44 --> var 19 eqn 45 --> var 21 eqn 46 --> var 54 eqn 47 --> var 47 eqn 48 --> var 80 eqn 49 --> var 32 eqn 50 --> var 9 eqn 51 --> var 7 eqn 52 --> var 5 eqn 53 --> var 119 eqn 54 --> var 118 eqn 55 --> var 35 eqn 56 --> var 116 eqn 57 --> var 12 eqn 58 --> var 113 eqn 59 --> var 10 eqn 60 --> var 112 eqn 61 --> var 8 eqn 62 --> var 111 eqn 63 --> var 6 eqn 64 --> var 110 eqn 65 --> var 4 eqn 66 --> var 3 eqn 67 --> var 123 eqn 68 --> var 2 eqn 69 --> var 53 eqn 70 --> var 1 eqn 71 --> var 70 eqn 72 --> var 38 eqn 73 --> var 96 eqn 74 --> var -1 eqn 75 --> var 14 eqn 76 --> var 89 eqn 77 --> var 17 eqn 78 --> var 94 eqn 79 --> var 83 eqn 80 --> var -1 eqn 81 --> var 30 eqn 82 --> var 108 eqn 83 --> var 109 eqn 84 --> var -1 eqn 85 --> var 121 eqn 86 --> var 75 eqn 87 --> var 102 eqn 88 --> var 128 eqn 89 --> var 129 eqn 90 --> var 40 eqn 91 --> var 117 eqn 92 --> var 107 eqn 93 --> var 106 eqn 94 --> var 105 eqn 95 --> var 97 eqn 96 --> var 93 eqn 97 --> var 63 eqn 98 --> var 62 eqn 99 --> var 61 eqn 100 --> var 58 eqn 101 --> var 101 eqn 102 --> var 34 eqn 103 --> var 51 eqn 104 --> var 73 eqn 105 --> var 90 eqn 106 --> var 78 eqn 107 --> var 48 eqn 108 --> var 127 eqn 109 --> var 84 eqn 110 --> var 126 eqn 111 --> var 122 eqn 112 --> var 33 eqn 113 --> var 98 eqn 114 --> var 60 eqn 115 --> var 86 eqn 116 --> var 95 eqn 117 --> var -1 eqn 118 --> var 92 eqn 119 --> var 91 eqn 120 --> var -1 eqn 121 --> var 87 eqn 122 --> var 65 eqn 123 --> var 64 eqn 124 --> var -1 eqn 125 --> var -1 eqn 126 --> var 124 eqn 127 --> var 125 eqn 128 --> var 59 eqn 129 --> var 55 eqn 130 --> var 99 eqn 131 --> var 100 eqn 132 --> var 52 eqn 133 --> var 85 eqn 134 --> var 82 eqn 135 --> var 81 eqn 136 --> var -1 eqn 137 --> var 79