Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Experimental.DHC.CentralPlants.Cooling.Controls.Validation.ChillerStage.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Experimental.DHC.CentralPlants.Cooling.Controls.Validation.ChillerStage,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Experimental.DHC.CentralPlants.Cooling.Controls.Validation.ChillerStage") translateModel(Buildings.Experimental.DHC.CentralPlants.Cooling.Controls.Validation.ChillerStage,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Experimental.DHC.CentralPlants.Cooling.Controls.Validation.ChillerStage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001114/0.001114, allocations: 106.4 kB / 16.38 MB, free: 6.43 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.001054/0.001054, allocations: 186.5 kB / 17.31 MB, free: 5.777 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.137/1.137, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.506/1.506, allocations: 292.3 MB / 0.5496 GB, free: 17.51 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.815e-05/1.817e-05, allocations: 2.281 kB / 0.6729 GB, free: 5.895 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Experimental.DHC.CentralPlants.Cooling.Controls.Validation.ChillerStage): time 0.006059/0.00609, allocations: 5.634 MB / 0.6784 GB, free: 228 kB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.001701/0.007804, allocations: 1.317 MB / 0.6797 GB, free: 14.9 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001351/0.00795, allocations: 11.94 kB / 0.6797 GB, free: 14.89 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0005595/0.008515, allocations: 222.8 kB / 0.6799 GB, free: 14.67 MB / 0.5606 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0004005/0.008925, allocations: 214.8 kB / 0.6801 GB, free: 14.46 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005885/0.00953, allocations: 386.1 kB / 0.6805 GB, free: 14.09 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0006885/0.01023, allocations: 0.8309 MB / 0.6813 GB, free: 13.25 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005097/0.01075, allocations: 0.549 MB / 0.6818 GB, free: 12.7 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003363/0.01109, allocations: 350.9 kB / 0.6821 GB, free: 12.35 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003578/0.01146, allocations: 330.7 kB / 0.6825 GB, free: 12.03 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 8.504e-05/0.01155, allocations: 84 kB / 0.6825 GB, free: 11.95 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002038/0.01176, allocations: 155.9 kB / 0.6827 GB, free: 11.79 MB / 0.5606 GB Notification: Performance of combineBinaries: time 0.0005443/0.01231, allocations: 0.9079 MB / 0.6836 GB, free: 10.88 MB / 0.5606 GB Notification: Performance of replaceArrayConstructors: time 0.0002347/0.01256, allocations: 0.5504 MB / 0.6841 GB, free: 10.32 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 8.577e-05/0.01265, allocations: 95.69 kB / 0.6842 GB, free: 10.22 MB / 0.5606 GB Notification: Performance of FrontEnd: time 5.619e-05/0.01271, allocations: 51.62 kB / 0.6843 GB, free: 10.17 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 138 (134) * Number of variables: 130 (125) Notification: Performance of Bindings: time 0.002239/0.01495, allocations: 2.663 MB / 0.6869 GB, free: 7.387 MB / 0.5606 GB Notification: Performance of FunctionAlias: time 0.0001774/0.01513, allocations: 183.8 kB / 0.687 GB, free: 7.199 MB / 0.5606 GB Notification: Performance of Early Inline: time 0.001602/0.01674, allocations: 1.957 MB / 0.6889 GB, free: 5.203 MB / 0.5606 GB Notification: Performance of simplify1: time 9.653e-05/0.01685, allocations: 119.8 kB / 0.6891 GB, free: 5.086 MB / 0.5606 GB Notification: Performance of Alias: time 0.002317/0.01917, allocations: 2.597 MB / 0.6916 GB, free: 2.27 MB / 0.5606 GB Notification: Performance of simplify2: time 6.563e-05/0.01925, allocations: 87.89 kB / 0.6917 GB, free: 2.184 MB / 0.5606 GB Notification: Performance of Events: time 0.0004054/0.01966, allocations: 396.3 kB / 0.6921 GB, free: 1.797 MB / 0.5606 GB Notification: Performance of Detect States: time 0.0006384/0.02031, allocations: 0.655 MB / 0.6927 GB, free: 1.125 MB / 0.5606 GB Notification: Performance of Partitioning: time 0.0006153/0.02093, allocations: 0.6283 MB / 0.6933 GB, free: 488 kB / 0.5606 GB Error: Internal error NBSorting.tarjan failed to sort system: system vars Variables (105/113) ********************************* (1) [ALGB] (1) Real chiStaCon.oneToOff.t (2) [ALGB] (1) Real chiStaCon.twoToOne.t (3) [DISC] (1) Boolean chiStaCon.oneToOff.inPort.available (4) [DISC] (1) Boolean chiStaCon.twoToOne.outPort.set (5) [DISC] (1) protected Boolean chiStaCon.off.newActive (6) [ALGB] (1) protected flow Real chiStaCon.off.outerStatePort.subgraphStatePort.activeSteps (7) [DISC] (1) Boolean chiStaCon.oneToTwo.enableFire (8) [ALGB] (1) protected Real chiStaCon.oneToTwo.t_dummy (9) [DISC] (1) Boolean chiStaCon.Or.y (10) [DISC] (1) protected Boolean chiStaCon.off.outerStatePort.localActive = chiStaCon.off.outerStatePort.localActive (11) [DISC] (2) Boolean[2] $SEV_18[$i1] (12) [DISC] (1) protected Boolean chiStaCon.oneOn.newActive (13) [ALGB] (1) Real chiStaCon.plr.u (14) [DISC] (1) Boolean[1] chiStaCon.twoOn.outPort.reset (15) [ALGB] (1) Real mFlo.y (16) [ALGB] (1) Real chiStaCon.plr.y (17) [DISS] (1) protected Boolean chiStaCon.oneOn.oldActive (18) [DISC] (1) final Boolean chiStaCon.oneToTwo.localCondition = chiStaCon.oneToTwo.localCondition (19) [ALGB] (1) Real chiStaCon.offToOne.t (20) [ALGB] (1) protected Real chiStaCon.twoToOne.t_dummy (21) [ALGB] (1) protected flow Real chiStaCon.twoOn.outerStatePort.subgraphStatePort.activeSteps (22) [DISC] (2) Boolean[2] chiStaCon.y (23) [ALGB] (1) Real $FUN_7 (24) [DISC] (1) final Boolean chiStaCon.offToOne.localCondition = chiStaCon.offToOne.localCondition (25) [DISC] (1) Boolean $FUN_6 (26) [DISC] (1) Boolean $FUN_5 (27) [DISC] (1) Boolean $SEV_20 (28) [DISC] (1) Boolean chiStaCon.oneToTwo.outPort.occupied (29) [DISC] (1) Boolean $FUN_4 (30) [DISC] (1) Boolean chiStaCon.oneToTwo.inPort.available (31) [DISC] (1) Boolean $FUN_3 (32) [DISC] (1) Boolean $FUN_2 (33) [DISC] (1) Boolean[1] chiStaCon.twoOn.outPort.available (34) [DISC] (1) Boolean chiStaCon.oneToOff.outPort.set (35) [DISC] (1) Boolean $FUN_1 (36) [DISC] (2) Boolean[2] $SEV_17[$i1] (37) [DISC] (1) Boolean chiStaCon.offToOne.outPort.set (38) [DISS] (1) protected discrete Real on.combiTimeTable.nextTimeEvent (fixed = true, start = 0.0) (39) [DISC] (1) Boolean chiStaCon.twoToOne.enableFire (40) [ALGB] (1) Real[1] on.combiTimeTable.y (41) [DISC] (1) protected Boolean chiStaCon.oneOn.outerStatePort.localActive = chiStaCon.oneOn.outerStatePort.localActive (42) [DISC] (2) Boolean[2] chiStaCon.oneOn.inPort.set (43) [DISC] (1) Boolean chiStaCon.offToOne.inPort.available (44) [DISC] (1) Boolean chiStaCon.offToOne.outPort.occupied (45) [DISC] (1) Boolean chiStaCon.oneToOff.enableFire (46) [DISC] (1) Boolean[1] chiStaCon.twoOn.inPort.set (47) [DISC] (2) Boolean[2] chiStaCon.oneOn.inPort.occupied (48) [DISC] (1) Boolean[1] chiStaCon.off.outPort.reset (49) [DISC] (1) Boolean chiStaCon.oneToTwo.outPort.set (50) [DISC] (1) Boolean $SEV_19 (51) [ALGB] (1) protected Real chiStaCon.offToOne.t_dummy (52) [DISC] (1) Boolean[1] chiStaCon.off.outPort.available (53) [DISC] (1) protected Boolean chiStaCon.twoOn.outerStatePort.localActive = chiStaCon.twoOn.outerStatePort.localActive (54) [ALGB] (1) Real chiStaCon.oneToTwo.t (55) [DISC] (1) Boolean $SEV_15 (56) [DISC] (1) Boolean $SEV_14 (57) [DISC] (1) Boolean $SEV_13 (58) [DISC] (1) Boolean $SEV_12 (59) [DISC] (1) Boolean $SEV_11 (60) [DISC] (1) Boolean $SEV_10 (61) [DISC] (1) Boolean chiStaCon.twoToOne.inPort.available (62) [DISS] (1) protected discrete Real on.combiTimeTable.nextTimeEventScaled (fixed = true, start = 0.0) (63) [DISC] (1) Boolean chiStaCon.twoToOne.outPort.occupied (64) [DISC] (2) Boolean[2] $SEV_16[$i1] (65) [DISC] (2) Boolean[2] chiStaCon.oneOn.outPort.available (66) [ALGB] (1) flow Real chiStaCon.stateGraphRoot.subgraphStatePort.activeSteps (67) [DISC] (1) protected Boolean chiStaCon.twoOn.newActive (68) [DISC] (1) Boolean $SEV_9 (69) [DISC] (1) Boolean $SEV_8 (70) [DISC] (1) Boolean $SEV_7 (71) [ALGB] (1) Real on.realToBoolean.u (72) [DISC] (1) Boolean $SEV_6 (73) [DISC] (1) Boolean $SEV_5 (74) [DISC] (1) Boolean $SEV_4 (75) [DISC] (1) Boolean $TEV_9 (76) [DISC] (1) Boolean $SEV_3 (77) [DISC] (1) Boolean $TEV_8 (78) [DISC] (1) Boolean $SEV_2 (79) [DISC] (1) Boolean $TEV_7 (80) [DISC] (1) Boolean $TEV_6 (81) [DISC] (1) Boolean $TEV_5 (82) [DISC] (1) Boolean chiStaCon.offToOne.enableFire (83) [DISC] (1) Boolean $TEV_4 (84) [DISC] (1) Boolean $TEV_3 (85) [DISS] (1) protected Boolean chiStaCon.twoOn.oldActive (86) [DISC] (1) Boolean $TEV_2 (87) [DISC] (1) Boolean $TEV_1 (88) [DISC] (1) Boolean $TEV_0 (89) [DISC] (1) Boolean $TEV_15 (90) [DISC] (1) Boolean $TEV_14 (91) [DISC] (1) Boolean $TEV_13 (92) [DISC] (1) Boolean $TEV_12 (93) [DISC] (1) Boolean[1] chiStaCon.off.inPort.occupied (94) [DISC] (1) Boolean $TEV_11 (95) [DISC] (1) Boolean $TEV_10 (96) [DISC] (1) Boolean[1] chiStaCon.off.inPort.set (97) [DISS] (1) protected Boolean chiStaCon.off.oldActive (98) [DISC] (1) Integer chiStaCon.stateGraphRoot.activeSteps (99) [DISC] (1) Boolean chiStaCon.oneToOff.outPort.occupied (100) [ALGB] (1) protected flow Real chiStaCon.oneOn.outerStatePort.subgraphStatePort.activeSteps (101) [ALGB] (1) Real chiStaCon.dT.y (102) [ALGB] (1) protected Real chiStaCon.oneToOff.t_dummy (103) [DISC] (2) Boolean[2] chiStaCon.oneOn.outPort.reset (104) [DISC] (1) Boolean[1] chiStaCon.twoOn.inPort.occupied (105) [DISC] (1) final Boolean chiStaCon.twoToOne.localCondition = chiStaCon.twoToOne.localCondition system eqns Equations (114/121) ********************************* (1) [SCAL] (1) chiStaCon.oneOn.outPort[1].available = chiStaCon.oneToTwo.inPort.available ($RES_SIM_132) (2) [WHEN] (1)when chiStaCon.twoToOne.enableFire then (2) [----] time - chiStaCon.twoToOne.t_dummy := time (2) [----] end when; (3) [SCAL] (1) chiStaCon.oneOn.outPort[2].reset = chiStaCon.oneToOff.outPort.set ($RES_SIM_133) (4) [SCAL] (1) chiStaCon.oneOn.outPort[2].available = chiStaCon.oneToOff.inPort.available ($RES_SIM_134) (5) [SCAL] (1) chiStaCon.twoToOne.outPort.set = chiStaCon.oneOn.inPort[2].set ($RES_SIM_135) (6) [SCAL] (1) chiStaCon.oneToTwo.enableFire = $SEV_11 ($RES_SIM_53) (7) [SCAL] (1) chiStaCon.twoToOne.outPort.occupied = chiStaCon.oneOn.inPort[2].occupied ($RES_SIM_136) (8) [SCAL] (1) chiStaCon.oneToTwo.outPort.set = $SEV_12 ($RES_SIM_54) (9) [SCAL] (1) chiStaCon.oneToTwo.outPort.set = chiStaCon.twoOn.inPort[1].set ($RES_SIM_137) (10) [SCAL] (1) chiStaCon.off.inPort[1].occupied = chiStaCon.off.outerStatePort.localActive ($RES_SIM_90) (11) [SCAL] (1) chiStaCon.oneToTwo.t = if chiStaCon.oneToTwo.enableFire then chiStaCon.oneToTwo.t_dummy else 0.0 ($RES_SIM_55) (12) [SCAL] (1) chiStaCon.oneToTwo.outPort.occupied = chiStaCon.twoOn.inPort[1].occupied ($RES_SIM_138) (13) [WHEN] (1)when false then (13) [----] chiStaCon.off.oldActive := chiStaCon.off.outerStatePort.localActive (13) [----] end when; (14) [SCAL] (1) chiStaCon.off.outPort[1].reset = chiStaCon.offToOne.outPort.set ($RES_SIM_139) (15) [SCAL] (1) chiStaCon.off.newActive = $SEV_20 ($RES_SIM_92) (16) [WHEN] (1)when chiStaCon.oneToTwo.enableFire then (16) [----] time - chiStaCon.oneToTwo.t_dummy := time (16) [----] end when; (17) [SCAL] (1) chiStaCon.off.outerStatePort.localActive = $TEV_13 ($RES_SIM_93) (18) [SCAL] (1) chiStaCon.off.outerStatePort.subgraphStatePort.activeSteps = if chiStaCon.off.outerStatePort.localActive then 1.0 else 0.0 ($RES_SIM_95) (19) [SCAL] (1) $TEV_0 = $PRE.chiStaCon.oneToTwo.localCondition ($RES_EVT_170) (20) [SCAL] (1) $TEV_1 = $PRE.chiStaCon.oneToOff.enableFire ($RES_EVT_171) (21) [SCAL] (1) chiStaCon.stateGraphRoot.activeSteps = -integer(chiStaCon.stateGraphRoot.subgraphStatePort.activeSteps) ($RES_SIM_99) (22) [SCAL] (1) $TEV_2 = $PRE.chiStaCon.twoToOne.enableFire ($RES_EVT_172) (23) [SCAL] (1) $TEV_3 = $PRE.chiStaCon.oneToTwo.enableFire ($RES_EVT_173) (24) [SCAL] (1) $TEV_4 = $PRE.chiStaCon.offToOne.enableFire ($RES_EVT_174) (25) [SCAL] (1) $TEV_5 = $PRE.chiStaCon.twoOn.oldActive ($RES_EVT_175) (26) [SCAL] (1) $TEV_6 = $PRE.chiStaCon.twoOn.outerStatePort.localActive ($RES_EVT_176) (27) [SCAL] (1) $TEV_7 = $PRE.chiStaCon.twoOn.newActive ($RES_EVT_177) (28) [SCAL] (1) $TEV_8 = $PRE.chiStaCon.oneOn.oldActive ($RES_EVT_178) (29) [SCAL] (1) $TEV_9 = $PRE.chiStaCon.oneOn.outerStatePort.localActive ($RES_EVT_179) (30) [SCAL] (1) chiStaCon.off.outerStatePort.subgraphStatePort.activeSteps + chiStaCon.oneOn.outerStatePort.subgraphStatePort.activeSteps + chiStaCon.twoOn.outerStatePort.subgraphStatePort.activeSteps + chiStaCon.stateGraphRoot.subgraphStatePort.activeSteps = 0.0 ($RES_SIM_100) (31) [SCAL] (1) mFlo.y = mFlo.offset + (if $TEV_14 then 0.0 else mFlo.amplitude * $FUN_7) ($RES_SIM_20) (32) [SCAL] (1) chiStaCon.off.outPort[1].available = chiStaCon.offToOne.inPort.available ($RES_SIM_140) (33) [SCAL] (1) on.combiTimeTable.y[1] = on.realToBoolean.u ($RES_SIM_106) (34) [SCAL] (1) chiStaCon.offToOne.localCondition = $SEV_2 ($RES_SIM_24) (35) [SCAL] (1) chiStaCon.offToOne.enableFire = $SEV_13 ($RES_SIM_60) (36) [SCAL] (1) on.combiTimeTable.y[1] = on.combiTimeTable.p_offset[1] + Modelica.Blocks.Tables.Internal.getTimeTableValueNoDer(on.combiTimeTable.tableID, 1, time, on.combiTimeTable.nextTimeEventScaled, $TEV_15) ($RES_SIM_25) (37) [SCAL] (1) chiStaCon.offToOne.outPort.set = $SEV_14 ($RES_SIM_61) (38) [WHEN] (1)when {$SEV_3, initial()} then (38) [----] on.combiTimeTable.nextTimeEvent := if on.combiTimeTable.nextTimeEventScaled < 1e60 then on.combiTimeTable.nextTimeEventScaled else 1e60 (38) [----] end when; (39) [SCAL] (1) chiStaCon.offToOne.t = if chiStaCon.offToOne.enableFire then chiStaCon.offToOne.t_dummy else 0.0 ($RES_SIM_62) (40) [WHEN] (1)when {$SEV_3, initial()} then (40) [----] on.combiTimeTable.nextTimeEventScaled := Modelica.Blocks.Tables.Internal.getNextTimeEvent(on.combiTimeTable.tableID, time) (40) [----] end when; (41) [WHEN] (1)when chiStaCon.offToOne.enableFire then (41) [----] time - chiStaCon.offToOne.t_dummy := time (41) [----] end when; (42) [SCAL] (1) chiStaCon.twoToOne.localCondition = $SEV_4 ($RES_SIM_29) (43) [SCAL] (1) chiStaCon.twoOn.outPort[1].reset = false ($RES_SIM_65) (44) [SCAL] (1) chiStaCon.twoOn.inPort[1].set = false ($RES_SIM_66) (45) [SCAL] (1) chiStaCon.twoOn.outPort[1].available = chiStaCon.twoOn.outerStatePort.localActive ($RES_SIM_67) (46) [SCAL] (1) chiStaCon.twoOn.inPort[1].occupied = chiStaCon.twoOn.outerStatePort.localActive ($RES_SIM_68) (47) [WHEN] (1)when false then (47) [----] chiStaCon.twoOn.oldActive := chiStaCon.twoOn.outerStatePort.localActive (47) [----] end when; (48) [SCAL] (1) $TEV_10 = $PRE.chiStaCon.oneOn.newActive ($RES_EVT_180) (49) [SCAL] (1) $TEV_11 = $PRE.chiStaCon.off.oldActive ($RES_EVT_181) (50) [SCAL] (1) $TEV_12 = $PRE.chiStaCon.off.outerStatePort.localActive ($RES_EVT_182) (51) [SCAL] (1) $TEV_13 = $PRE.chiStaCon.off.newActive ($RES_EVT_183) (52) [SCAL] (1) $TEV_14 = time < mFlo.startTime ($RES_EVT_184) (53) [SCAL] (1) $TEV_15 = $PRE.on.combiTimeTable.nextTimeEventScaled ($RES_EVT_185) (54) [SCAL] (1) $SEV_2 = on.realToBoolean.u >= on.realToBoolean.threshold ($RES_EVT_188) (55) [SCAL] (1) $SEV_3 = time >= $PRE.on.combiTimeTable.nextTimeEvent ($RES_EVT_189) (56) [SCAL] (1) chiStaCon.oneToOff.outPort.set = chiStaCon.off.inPort[1].set ($RES_SIM_111) (57) [SCAL] (1) $FUN_1 = Modelica.StateGraph.Temporary.anyTrue(chiStaCon.off.inPort.set) ($RES_$AUX_165) (58) [SCAL] (1) chiStaCon.oneToOff.outPort.occupied = chiStaCon.off.inPort[1].occupied ($RES_SIM_112) (59) [SCAL] (1) $FUN_2 = Modelica.StateGraph.Temporary.anyTrue(chiStaCon.off.outPort.reset) ($RES_$AUX_164) (60) [SCAL] (1) chiStaCon.offToOne.outPort.set = chiStaCon.oneOn.inPort[1].set ($RES_SIM_113) (61) [SCAL] (1) chiStaCon.Or.y = $SEV_5 ($RES_SIM_31) (62) [SCAL] (1) $FUN_3 = Modelica.StateGraph.Temporary.anyTrue(chiStaCon.oneOn.inPort.set) ($RES_$AUX_163) (63) [SCAL] (1) chiStaCon.offToOne.outPort.occupied = chiStaCon.oneOn.inPort[1].occupied ($RES_SIM_114) (64) [SCAL] (1) chiStaCon.plr.y = chiStaCon.plr.k * chiStaCon.plr.u ($RES_SIM_32) (65) [SCAL] (1) $FUN_4 = Modelica.StateGraph.Temporary.anyTrue(chiStaCon.oneOn.outPort.reset) ($RES_$AUX_162) (66) [SCAL] (1) chiStaCon.twoOn.outPort[1].reset = chiStaCon.twoToOne.outPort.set ($RES_SIM_115) (67) [SCAL] (1) chiStaCon.plr.u = chiStaCon.dT.y * mFlo.y ($RES_SIM_33) (68) [SCAL] (1) $FUN_5 = Modelica.StateGraph.Temporary.anyTrue(chiStaCon.twoOn.inPort.set) ($RES_$AUX_161) (69) [SCAL] (1) chiStaCon.twoOn.outPort[1].available = chiStaCon.twoToOne.inPort.available ($RES_SIM_116) (70) [SCAL] (1) chiStaCon.dT.y = chiStaCon.dT.k1 * TRet.k + chiStaCon.dT.k2 * TSup.k ($RES_SIM_34) (71) [SCAL] (1) $FUN_6 = Modelica.StateGraph.Temporary.anyTrue(chiStaCon.twoOn.outPort.reset) ($RES_$AUX_160) (72) [SCAL] (1) chiStaCon.twoOn.newActive = $SEV_15 ($RES_SIM_70) (73) [SCAL] (1) chiStaCon.twoOn.outerStatePort.localActive = $TEV_7 ($RES_SIM_71) (74) [SCAL] (1) chiStaCon.oneToTwo.localCondition = $SEV_6 ($RES_SIM_36) (75) [SCAL] (1) chiStaCon.Or.y = chiStaCon.y[1] ($RES_SIM_119) (76) [SCAL] (1) chiStaCon.twoOn.outerStatePort.subgraphStatePort.activeSteps = if chiStaCon.twoOn.outerStatePort.localActive then 1.0 else 0.0 ($RES_SIM_73) (77) [FOR-] (2) ($RES_SIM_74) (77) [----] for $i1 in 1:2 loop (77) [----] [SCAL] (1) chiStaCon.oneOn.outPort[$i1].reset = false ($RES_SIM_75) (77) [----] end for; (78) [SCAL] (1) chiStaCon.oneToOff.enableFire = $SEV_7 ($RES_SIM_39) (79) [FOR-] (2) ($RES_SIM_76) (79) [----] for $i1 in 1:2 loop (79) [----] [SCAL] (1) chiStaCon.oneOn.inPort[$i1].set = false ($RES_SIM_77) (79) [----] end for; (80) [FOR-] (2) ($RES_SIM_78) (80) [----] for $i1 in 1:2 loop (80) [----] [SCAL] (1) chiStaCon.oneOn.outPort[$i1].available = if $SEV_16[$i1] then chiStaCon.oneOn.outerStatePort.localActive else $SEV_17[$i1] ($RES_SIM_79) (80) [----] end for; (81) [SCAL] (1) $SEV_4 = not chiStaCon.offToOne.localCondition or not chiStaCon.oneToTwo.localCondition ($RES_EVT_190) (82) [SCAL] (1) $SEV_5 = chiStaCon.oneOn.outerStatePort.localActive or chiStaCon.twoOn.outerStatePort.localActive ($RES_EVT_191) (83) [SCAL] (1) $SEV_6 = not $PRE.chiStaCon.oneToTwo.localCondition and chiStaCon.plr.y > chiStaCon.thrOneToTwo.uHigh or $PRE.chiStaCon.oneToTwo.localCondition and chiStaCon.plr.y >= chiStaCon.thrOneToTwo.uLow ($RES_EVT_192) (84) [SCAL] (1) $SEV_7 = (not chiStaCon.offToOne.localCondition and chiStaCon.oneToOff.inPort.available) and not chiStaCon.oneToOff.outPort.occupied ($RES_EVT_193) (85) [SCAL] (1) $SEV_8 = chiStaCon.oneToOff.enableFire and time >= ((time - chiStaCon.oneToOff.t_dummy) + chiStaCon.oneToOff.waitTime) ($RES_EVT_194) (86) [SCAL] (1) $SEV_9 = (chiStaCon.twoToOne.localCondition and chiStaCon.twoToOne.inPort.available) and not chiStaCon.twoToOne.outPort.occupied ($RES_EVT_195) (87) [SCAL] (1) $SEV_10 = chiStaCon.twoToOne.enableFire and time >= ((time - chiStaCon.twoToOne.t_dummy) + chiStaCon.twoToOne.waitTime) ($RES_EVT_196) (88) [SCAL] (1) $SEV_11 = (chiStaCon.oneToTwo.localCondition and chiStaCon.oneToTwo.inPort.available) and not chiStaCon.oneToTwo.outPort.occupied ($RES_EVT_197) (89) [SCAL] (1) $SEV_12 = chiStaCon.oneToTwo.enableFire and time >= ((time - chiStaCon.oneToTwo.t_dummy) + chiStaCon.oneToTwo.waitTime) ($RES_EVT_198) (90) [SCAL] (1) $SEV_13 = (chiStaCon.offToOne.localCondition and chiStaCon.offToOne.inPort.available) and not chiStaCon.offToOne.outPort.occupied ($RES_EVT_199) (91) [SCAL] (1) $FUN_7 = sin(6.283185307179586 * mFlo.freqHz * (time - mFlo.startTime) + mFlo.phase) ($RES_$AUX_159) (92) [SCAL] (1) chiStaCon.twoOn.outerStatePort.localActive = chiStaCon.y[2] ($RES_SIM_121) (93) [SCAL] (1) chiStaCon.oneToOff.outPort.set = $SEV_8 ($RES_SIM_40) (94) [SCAL] (1) chiStaCon.oneToOff.t = if chiStaCon.oneToOff.enableFire then chiStaCon.oneToOff.t_dummy else 0.0 ($RES_SIM_41) (95) [WHEN] (1)when chiStaCon.oneToOff.enableFire then (95) [----] time - chiStaCon.oneToOff.t_dummy := time (95) [----] end when; (96) [FOR-] (2) ($RES_SIM_80) (96) [----] for $i1 in 1:2 loop (96) [----] [SCAL] (1) chiStaCon.oneOn.inPort[$i1].occupied = if $SEV_16[$i1] then chiStaCon.oneOn.outerStatePort.localActive else $SEV_18[$i1] ($RES_SIM_81) (96) [----] end for; (97) [SCAL] (1) chiStaCon.twoToOne.enableFire = $SEV_9 ($RES_SIM_46) (98) [WHEN] (1)when false then (98) [----] chiStaCon.oneOn.oldActive := chiStaCon.oneOn.outerStatePort.localActive (98) [----] end when; (99) [SCAL] (1) chiStaCon.twoToOne.outPort.set = $SEV_10 ($RES_SIM_47) (100) [SCAL] (1) chiStaCon.oneOn.newActive = $SEV_19 ($RES_SIM_83) (101) [SCAL] (1) chiStaCon.twoToOne.t = if chiStaCon.twoToOne.enableFire then chiStaCon.twoToOne.t_dummy else 0.0 ($RES_SIM_48) (102) [SCAL] (1) chiStaCon.oneOn.outerStatePort.localActive = $TEV_10 ($RES_SIM_84) (103) [SCAL] (1) chiStaCon.oneOn.outerStatePort.subgraphStatePort.activeSteps = if chiStaCon.oneOn.outerStatePort.localActive then 1.0 else 0.0 ($RES_SIM_86) (104) [SCAL] (1) chiStaCon.off.outPort[1].reset = false ($RES_SIM_87) (105) [SCAL] (1) chiStaCon.off.inPort[1].set = false ($RES_SIM_88) (106) [SCAL] (1) chiStaCon.off.outPort[1].available = chiStaCon.off.outerStatePort.localActive ($RES_SIM_89) (107) [SCAL] (1) $SEV_14 = chiStaCon.offToOne.enableFire and time >= ((time - chiStaCon.offToOne.t_dummy) + chiStaCon.offToOne.waitTime) ($RES_EVT_200) (108) [SCAL] (1) $SEV_15 = $FUN_5 or chiStaCon.twoOn.outerStatePort.localActive and not $FUN_6 ($RES_EVT_201) (109) [FOR-] (2) ($RES_EVT_202) (109) [----] for $i1 in 1:2 loop (109) [----] [SCAL] (1) $SEV_16[$i1] = $i1 == 1 ($RES_EVT_203) (109) [----] end for; (110) [FOR-] (2) ($RES_EVT_204) (110) [----] for $i1 in 1:2 loop (110) [----] [SCAL] (1) $SEV_17[$i1] = chiStaCon.oneOn.outPort[$i1 - 1].available and not chiStaCon.oneOn.outPort[$i1 - 1].reset ($RES_EVT_205) (110) [----] end for; (111) [FOR-] (2) ($RES_EVT_206) (111) [----] for $i1 in 1:2 loop (111) [----] [SCAL] (1) $SEV_18[$i1] = chiStaCon.oneOn.inPort[$i1 - 1].occupied or chiStaCon.oneOn.inPort[$i1 - 1].set ($RES_EVT_207) (111) [----] end for; (112) [SCAL] (1) $SEV_19 = $FUN_3 or chiStaCon.oneOn.outerStatePort.localActive and not $FUN_4 ($RES_EVT_208) (113) [SCAL] (1) $SEV_20 = $FUN_1 or chiStaCon.off.outerStatePort.localActive and not $FUN_2 ($RES_EVT_209) (114) [SCAL] (1) chiStaCon.oneOn.outPort[1].reset = chiStaCon.oneToTwo.outPort.set ($RES_SIM_131) =================== Scalar Matching =================== variable to equation ********************** var 1 --> eqn 97 var 2 --> eqn 105 var 3 --> eqn 4 var 4 --> eqn 66 var 5 --> eqn 15 var 6 --> eqn 18 var 7 --> eqn 6 var 8 --> eqn 16 var 9 --> eqn 61 var 10 --> eqn 17 var 11 --> eqn 117 var 12 --> eqn 118 var 13 --> eqn 104 var 14 --> eqn 67 var 15 --> eqn 43 var 16 --> eqn 31 var 17 --> eqn 64 var 18 --> eqn 102 var 19 --> eqn 74 var 20 --> eqn 39 var 21 --> eqn 2 var 22 --> eqn 76 var 23 --> eqn 75 var 24 --> eqn 95 var 25 --> eqn 94 var 26 --> eqn 34 var 27 --> eqn 71 var 28 --> eqn 68 var 29 --> eqn 120 var 30 --> eqn 12 var 31 --> eqn 65 var 32 --> eqn 1 var 33 --> eqn 62 var 34 --> eqn 59 var 35 --> eqn 45 var 36 --> eqn 96 var 37 --> eqn 57 var 38 --> eqn 115 var 39 --> eqn 116 var 40 --> eqn 60 var 41 --> eqn 38 var 42 --> eqn 101 var 43 --> eqn 36 var 44 --> eqn 106 var 45 --> eqn 80 var 46 --> eqn 5 var 47 --> eqn 32 var 48 --> eqn 63 var 49 --> eqn 79 var 50 --> eqn 44 var 51 --> eqn 99 var 52 --> eqn 100 var 53 --> eqn 14 var 54 --> eqn 9 var 55 --> eqn 119 var 56 --> eqn 41 var 57 --> eqn 110 var 58 --> eqn 73 var 59 --> eqn 11 var 60 --> eqn 112 var 61 --> eqn 37 var 62 --> eqn 93 var 63 --> eqn 8 var 64 --> eqn 91 var 65 --> eqn 90 var 66 --> eqn 69 var 67 --> eqn 40 var 68 --> eqn 7 var 69 --> eqn 113 var 70 --> eqn 114 var 71 --> eqn 82 var 72 --> eqn 83 var 73 --> eqn 30 var 74 --> eqn 72 var 75 --> eqn 89 var 76 --> eqn 88 var 77 --> eqn 87 var 78 --> eqn 33 var 79 --> eqn 86 var 80 --> eqn 85 var 81 --> eqn 84 var 82 --> eqn 29 var 83 --> eqn 55 var 84 --> eqn 28 var 85 --> eqn 54 var 86 --> eqn 27 var 87 --> eqn 26 var 88 --> eqn 25 var 89 --> eqn 35 var 90 --> eqn 24 var 91 --> eqn 23 var 92 --> eqn 47 var 93 --> eqn 22 var 94 --> eqn 20 var 95 --> eqn 19 var 96 --> eqn 53 var 97 --> eqn 52 var 98 --> eqn 51 var 99 --> eqn 50 var 100 --> eqn 10 var 101 --> eqn 49 var 102 --> eqn 48 var 103 --> eqn 56 var 104 --> eqn 13 var 105 --> eqn 21 var 106 --> eqn 58 var 107 --> eqn 107 var 108 --> eqn 70 var 109 --> eqn 98 var 110 --> eqn 77 var 111 --> eqn 3 var 112 --> eqn 46 var 113 --> eqn 42 equation to variable ********************** eqn 1 --> var 32 eqn 2 --> var 21 eqn 3 --> var 111 eqn 4 --> var 3 eqn 5 --> var 46 eqn 6 --> var 7 eqn 7 --> var 68 eqn 8 --> var 63 eqn 9 --> var 54 eqn 10 --> var 100 eqn 11 --> var 59 eqn 12 --> var 30 eqn 13 --> var 104 eqn 14 --> var 53 eqn 15 --> var 5 eqn 16 --> var 8 eqn 17 --> var 10 eqn 18 --> var 6 eqn 19 --> var 95 eqn 20 --> var 94 eqn 21 --> var 105 eqn 22 --> var 93 eqn 23 --> var 91 eqn 24 --> var 90 eqn 25 --> var 88 eqn 26 --> var 87 eqn 27 --> var 86 eqn 28 --> var 84 eqn 29 --> var 82 eqn 30 --> var 73 eqn 31 --> var 16 eqn 32 --> var 47 eqn 33 --> var 78 eqn 34 --> var 26 eqn 35 --> var 89 eqn 36 --> var 43 eqn 37 --> var 61 eqn 38 --> var 41 eqn 39 --> var 20 eqn 40 --> var 67 eqn 41 --> var 56 eqn 42 --> var 113 eqn 43 --> var 15 eqn 44 --> var 50 eqn 45 --> var 35 eqn 46 --> var 112 eqn 47 --> var 92 eqn 48 --> var 102 eqn 49 --> var 101 eqn 50 --> var 99 eqn 51 --> var 98 eqn 52 --> var 97 eqn 53 --> var 96 eqn 54 --> var 85 eqn 55 --> var 83 eqn 56 --> var 103 eqn 57 --> var 37 eqn 58 --> var 106 eqn 59 --> var 34 eqn 60 --> var 40 eqn 61 --> var 9 eqn 62 --> var 33 eqn 63 --> var 48 eqn 64 --> var 17 eqn 65 --> var 31 eqn 66 --> var 4 eqn 67 --> var 14 eqn 68 --> var 28 eqn 69 --> var 66 eqn 70 --> var 108 eqn 71 --> var 27 eqn 72 --> var 74 eqn 73 --> var 58 eqn 74 --> var 19 eqn 75 --> var 23 eqn 76 --> var 22 eqn 77 --> var 110 eqn 78 --> var -1 eqn 79 --> var 49 eqn 80 --> var 45 eqn 81 --> var -1 eqn 82 --> var 71 eqn 83 --> var 72 eqn 84 --> var 81 eqn 85 --> var 80 eqn 86 --> var 79 eqn 87 --> var 77 eqn 88 --> var 76 eqn 89 --> var 75 eqn 90 --> var 65 eqn 91 --> var 64 eqn 92 --> var -1 eqn 93 --> var 62 eqn 94 --> var 25 eqn 95 --> var 24 eqn 96 --> var 36 eqn 97 --> var 1 eqn 98 --> var 109 eqn 99 --> var 51 eqn 100 --> var 52 eqn 101 --> var 42 eqn 102 --> var 18 eqn 103 --> var -1 eqn 104 --> var 13 eqn 105 --> var 2 eqn 106 --> var 44 eqn 107 --> var 107 eqn 108 --> var -1 eqn 109 --> var -1 eqn 110 --> var 57 eqn 111 --> var -1 eqn 112 --> var 60 eqn 113 --> var 69 eqn 114 --> var 70 eqn 115 --> var 38 eqn 116 --> var 39 eqn 117 --> var 11 eqn 118 --> var 12 eqn 119 --> var 55 eqn 120 --> var 29 eqn 121 --> var -1