Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.VariableSpeedPumpStage.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.Applications.DataCenters.ChillerCooled.Controls.Validation.VariableSpeedPumpStage,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.VariableSpeedPumpStage") translateModel(Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.VariableSpeedPumpStage,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.VariableSpeedPumpStage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001286/0.001286, allocations: 107.6 kB / 16.37 MB, free: 6.367 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.001255/0.001255, allocations: 191 kB / 17.31 MB, free: 5.91 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.491/1.491, allocations: 205.1 MB / 223.2 MB, free: 12.26 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.684/1.684, allocations: 292.3 MB / 0.5496 GB, free: 17.53 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.506e-05/2.507e-05, allocations: 2.281 kB / 0.6729 GB, free: 5.934 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.VariableSpeedPumpStage): time 0.003961/0.004, allocations: 2.406 MB / 0.6752 GB, free: 3.504 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.002077/0.006099, allocations: 1.197 MB / 0.6764 GB, free: 2.297 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002127/0.006326, allocations: 7.938 kB / 0.6764 GB, free: 2.289 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.000379/0.006711, allocations: 107.2 kB / 0.6765 GB, free: 2.184 MB / 0.545 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.0003561/0.007077, allocations: 119.2 kB / 0.6766 GB, free: 2.066 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006514/0.007768, allocations: 303.4 kB / 0.6769 GB, free: 1.77 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0007359/0.008513, allocations: 0.6822 MB / 0.6776 GB, free: 1.086 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00052/0.009045, allocations: 470.8 kB / 0.678 GB, free: 0.6211 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003323/0.009387, allocations: 299.1 kB / 0.6783 GB, free: 336 kB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003389/0.009735, allocations: 294.8 kB / 0.6786 GB, free: 40 kB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 9.714e-05/0.00984, allocations: 75.98 kB / 0.6786 GB, free: 15.96 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002645/0.01011, allocations: 107.9 kB / 0.6787 GB, free: 15.86 MB / 0.5606 GB Notification: Performance of combineBinaries: time 0.0005585/0.01068, allocations: 0.7843 MB / 0.6795 GB, free: 15.07 MB / 0.5606 GB Notification: Performance of replaceArrayConstructors: time 0.0002258/0.01091, allocations: 480.7 kB / 0.68 GB, free: 14.59 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 8.215e-05/0.011, allocations: 79.75 kB / 0.68 GB, free: 14.51 MB / 0.5606 GB Notification: Performance of FrontEnd: time 9.805e-05/0.01111, allocations: 55.61 kB / 0.6801 GB, free: 14.46 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: 123 (117) * Number of variables: 115 (109) Notification: Performance of Bindings: time 0.00219/0.0133, allocations: 2.321 MB / 0.6824 GB, free: 12.02 MB / 0.5606 GB Notification: Performance of FunctionAlias: time 0.0002288/0.01354, allocations: 183.6 kB / 0.6825 GB, free: 11.84 MB / 0.5606 GB Notification: Performance of Early Inline: time 0.00159/0.01514, allocations: 1.612 MB / 0.6841 GB, free: 10.2 MB / 0.5606 GB Notification: Performance of simplify1: time 0.0001044/0.01525, allocations: 103.8 kB / 0.6842 GB, free: 10.1 MB / 0.5606 GB Notification: Performance of Alias: time 0.002657/0.01792, allocations: 2.247 MB / 0.6864 GB, free: 7.637 MB / 0.5606 GB Notification: Performance of simplify2: time 8.939e-05/0.01802, allocations: 87.88 kB / 0.6865 GB, free: 7.551 MB / 0.5606 GB Notification: Performance of Events: time 0.0005155/0.01854, allocations: 413.8 kB / 0.6869 GB, free: 7.145 MB / 0.5606 GB Notification: Performance of Detect States: time 0.0007302/0.01928, allocations: 0.6581 MB / 0.6875 GB, free: 6.473 MB / 0.5606 GB Notification: Performance of Partitioning: time 0.0006893/0.01998, allocations: 0.6125 MB / 0.6881 GB, free: 5.852 MB / 0.5606 GB Error: Internal error NBSorting.tarjan failed to sort system: system vars Variables (106/115) ********************************* (1) [DISC] (1) Boolean varSpePumSta.con4.outPort.set (2) [DISC] (1) protected Boolean varSpePumSta.off.outerStatePort.localActive = varSpePumSta.off.outerStatePort.localActive (3) [ALGB] (2) Real[2] varSpePumSta.combiTable1Ds.y (4) [DISC] (1) Boolean[1] varSpePumSta.off.inPort.occupied (5) [ALGB] (1) Real varSpePumSta.con2.t (6) [DISC] (2) Boolean[2] varSpePumSta.oneOn.outPort.reset (7) [ALGB] (1) protected Real varSpePumSta.con1.t_dummy (8) [DISC] (2) Boolean[2] varSpePumSta.oneOn.inPort.occupied (9) [DISC] (1) Boolean[1] varSpePumSta.off.outPort.available (10) [DISC] (1) Integer varSpePumSta.stateGraphRoot.activeSteps (11) [DISC] (1) Boolean varSpePumSta.con2.enableFire (12) [DISC] (2) Boolean[2] varSpePumSta.oneOn.inPort.set (13) [DISC] (2) Boolean[2] $SEV_11[$i1] (14) [DISC] (1) final Boolean varSpePumSta.con4.localCondition = varSpePumSta.con4.localCondition (15) [ALGB] (1) Real speSig.y (16) [ALGB] (1) Real masFlo.y (17) [DISS] (1) protected Real speSig.T_start (18) [DISC] (1) Boolean varSpePumSta.con3.outPort.occupied (19) [DISC] (1) Boolean varSpePumSta.con1.inPort.available (20) [DISC] (1) protected Boolean varSpePumSta.twoOn.outerStatePort.localActive = varSpePumSta.twoOn.outerStatePort.localActive (21) [ALGB] (1) protected Real varSpePumSta.con2.t_dummy (22) [DISC] (2) Boolean[2] varSpePumSta.oneOn.outPort.available (23) [DISC] (1) Boolean[1] varSpePumSta.off.inPort.set (24) [ALGB] (1) Real $FUN_7 (25) [DISC] (1) Boolean $FUN_6 (26) [DISC] (1) Boolean $FUN_5 (27) [DISC] (1) Boolean $SEV_20 (28) [DISC] (1) Boolean $FUN_4 (29) [DISC] (1) Boolean varSpePumSta.con3.enableFire (30) [DISC] (1) Boolean $FUN_3 (31) [DISC] (1) Boolean $FUN_2 (32) [DISC] (1) Boolean $FUN_1 (33) [DISS] (1) protected Boolean varSpePumSta.twoOn.oldActive (34) [ALGB] (1) Real varSpePumSta.con3.t (35) [ALGB] (1) protected Real varSpePumSta.con3.t_dummy (36) [DISC] (1) Boolean varSpePumSta.con4.inPort.available (37) [DISC] (1) protected Boolean varSpePumSta.twoOn.newActive (38) [DISS] (1) protected Integer speSig.count (39) [DISS] (1) protected Boolean varSpePumSta.off.oldActive (40) [DISC] (1) Boolean varSpePumSta.con4.outPort.occupied (41) [ALGB] (1) protected flow Real varSpePumSta.twoOn.outerStatePort.subgraphStatePort.activeSteps (42) [DISC] (1) Boolean $SEV_19 (43) [DISC] (1) Boolean $SEV_18 (44) [DISC] (1) Boolean $SEV_17 (45) [DISC] (1) final Boolean varSpePumSta.con3.localCondition = varSpePumSta.con3.localCondition (46) [DISC] (1) Boolean $SEV_16 (47) [DISC] (1) Boolean $SEV_15 (48) [DISC] (1) Boolean[1] varSpePumSta.twoOn.inPort.occupied (49) [ALGB] (1) protected Real speSig.T_width = (speSig.width * speSig.period) / 100.0 (50) [DISC] (1) Boolean varSpePumSta.con4.enableFire (51) [DISC] (1) Boolean $SEV_14 (52) [DISC] (2) Boolean[2] $SEV_13[$i1] (53) [DISC] (1) Boolean $SEV_10 (54) [DISC] (1) protected Boolean varSpePumSta.off.newActive (55) [DISC] (1) protected Boolean varSpePumSta.oneOn.outerStatePort.localActive = varSpePumSta.oneOn.outerStatePort.localActive (56) [ALGB] (1) Real varSpePumSta.con1.t (57) [DISC] (1) Integer varSpePumSta.booToInt1.y (58) [DISC] (1) final Boolean varSpePumSta.con2.localCondition = varSpePumSta.con2.localCondition (59) [ALGB] (1) protected Real varSpePumSta.con4.t_dummy (60) [DISC] (1) Boolean[1] varSpePumSta.off.outPort.reset (61) [ALGB] (1) protected flow Real varSpePumSta.oneOn.outerStatePort.subgraphStatePort.activeSteps (62) [DISC] (1) Integer varSpePumSta.booToInt.y (63) [DISC] (1) Boolean $SEV_9 (64) [DISC] (1) Boolean $SEV_8 (65) [DISC] (1) Boolean $SEV_7 (66) [DISC] (1) Boolean $SEV_6 (67) [DISC] (1) Boolean varSpePumSta.con3.inPort.available (68) [DISC] (1) Boolean varSpePumSta.con1.outPort.occupied (69) [DISC] (1) Boolean $SEV_5 (70) [ALGB] (2) Real[2] varSpePumSta.y (71) [DISC] (1) Boolean $SEV_4 (72) [DISC] (1) Boolean $TEV_9 (73) [DISC] (1) Boolean $SEV_3 (74) [DISC] (1) Boolean $TEV_8 (75) [ALGB] (1) protected flow Real varSpePumSta.off.outerStatePort.subgraphStatePort.activeSteps (76) [DISC] (1) Boolean $SEV_2 (77) [DISC] (1) Boolean $TEV_7 (78) [DISC] (1) Integer varSpePumSta.addInt.y (79) [DISC] (1) Boolean $SEV_1 (80) [DISC] (1) Boolean $TEV_6 (81) [ALGB] (1) flow Real varSpePumSta.stateGraphRoot.subgraphStatePort.activeSteps (82) [DISC] (1) Boolean $SEV_0 (83) [DISC] (1) Boolean $TEV_5 (84) [DISC] (1) Boolean[1] varSpePumSta.twoOn.outPort.available (85) [DISC] (1) Boolean $TEV_4 (86) [DISC] (1) Boolean $TEV_3 (87) [DISC] (1) Boolean $TEV_2 (88) [DISC] (1) Boolean $TEV_1 (89) [DISC] (1) Boolean $TEV_0 (90) [DISC] (1) Boolean[1] varSpePumSta.twoOn.inPort.set (91) [DISC] (2) Boolean[2] $SEV_12[$i1] (92) [DISC] (1) Boolean $TEV_13 (93) [DISC] (1) protected Boolean varSpePumSta.oneOn.newActive (94) [DISC] (1) Boolean $TEV_12 (95) [ALGB] (1) Real varSpePumSta.con4.t (96) [DISC] (1) Boolean $TEV_11 (97) [DISC] (1) final Boolean varSpePumSta.con1.localCondition = varSpePumSta.con1.localCondition (98) [DISC] (1) Boolean $TEV_10 (99) [DISC] (1) Boolean[1] varSpePumSta.twoOn.outPort.reset (100) [DISC] (1) Boolean varSpePumSta.con1.enableFire (101) [DISC] (1) Boolean varSpePumSta.con1.outPort.set (102) [DISS] (1) protected Boolean varSpePumSta.oneOn.oldActive (103) [DISC] (1) Boolean varSpePumSta.con2.outPort.set (104) [DISC] (1) Boolean varSpePumSta.con2.outPort.occupied (105) [DISC] (1) Boolean varSpePumSta.con2.inPort.available (106) [DISC] (1) Boolean varSpePumSta.con3.outPort.set system eqns Equations (114/123) ********************************* (1) [SCAL] (1) varSpePumSta.con2.t = if varSpePumSta.con2.enableFire then varSpePumSta.con2.t_dummy else 0.0 ($RES_SIM_50) (2) [SCAL] (1) $FUN_3 = Modelica.StateGraph.Temporary.anyTrue(varSpePumSta.off.inPort.set) ($RES_$AUX_144) (3) [SCAL] (1) $FUN_4 = Modelica.StateGraph.Temporary.anyTrue(varSpePumSta.off.outPort.reset) ($RES_$AUX_143) (4) [WHEN] (1)when varSpePumSta.con2.enableFire then (4) [----] time - varSpePumSta.con2.t_dummy := time (4) [----] end when; (5) [SCAL] (1) $FUN_5 = Modelica.StateGraph.Temporary.anyTrue(varSpePumSta.twoOn.inPort.set) ($RES_$AUX_142) (6) [SCAL] (1) varSpePumSta.twoOn.outPort[1].reset = false ($RES_SIM_53) (7) [SCAL] (1) masFlo.y = masFlo.offset + (if $TEV_13 then 0.0 else masFlo.amplitude * $FUN_7) ($RES_SIM_18) (8) [SCAL] (1) $FUN_6 = Modelica.StateGraph.Temporary.anyTrue(varSpePumSta.twoOn.outPort.reset) ($RES_$AUX_141) (9) [SCAL] (1) varSpePumSta.twoOn.inPort[1].set = false ($RES_SIM_54) (10) [SCAL] (1) speSig.y = speSig.offset + (if $SEV_0 then 0.0 else if $SEV_1 then speSig.amplitude else 0.0) ($RES_SIM_19) (11) [SCAL] (1) $FUN_7 = sin(6.283185307179586 * masFlo.freqHz * (time - masFlo.startTime) + masFlo.phase) ($RES_$AUX_140) (12) [WHEN] (1)when varSpePumSta.con1.enableFire then (12) [----] time - varSpePumSta.con1.t_dummy := time (12) [----] end when; (13) [SCAL] (1) varSpePumSta.twoOn.outPort[1].available = varSpePumSta.twoOn.outerStatePort.localActive ($RES_SIM_55) (14) [SCAL] (1) varSpePumSta.off.outerStatePort.subgraphStatePort.activeSteps + varSpePumSta.twoOn.outerStatePort.subgraphStatePort.activeSteps + varSpePumSta.stateGraphRoot.subgraphStatePort.activeSteps + varSpePumSta.oneOn.outerStatePort.subgraphStatePort.activeSteps = 0.0 ($RES_SIM_91) (15) [SCAL] (1) varSpePumSta.twoOn.inPort[1].occupied = varSpePumSta.twoOn.outerStatePort.localActive ($RES_SIM_56) (16) [WHEN] (1)when false then (16) [----] varSpePumSta.twoOn.oldActive := varSpePumSta.twoOn.outerStatePort.localActive (16) [----] end when; (17) [SCAL] (1) varSpePumSta.twoOn.newActive = $SEV_9 ($RES_SIM_58) (18) [SCAL] (1) varSpePumSta.twoOn.outerStatePort.localActive = $TEV_5 ($RES_SIM_59) (19) [SCAL] (1) $SEV_3 = (varSpePumSta.con4.localCondition and varSpePumSta.con4.inPort.available) and not varSpePumSta.con4.outPort.occupied ($RES_EVT_170) (20) [SCAL] (1) $SEV_4 = varSpePumSta.con4.enableFire and time >= ((time - varSpePumSta.con4.t_dummy) + varSpePumSta.con4.waitTime) ($RES_EVT_171) (21) [SCAL] (1) $SEV_5 = (varSpePumSta.con3.localCondition and varSpePumSta.con3.inPort.available) and not varSpePumSta.con3.outPort.occupied ($RES_EVT_172) (22) [SCAL] (1) $SEV_6 = varSpePumSta.con3.enableFire and time >= ((time - varSpePumSta.con3.t_dummy) + varSpePumSta.con3.waitTime) ($RES_EVT_173) (23) [SCAL] (1) $SEV_7 = (varSpePumSta.con2.localCondition and varSpePumSta.con2.inPort.available) and not varSpePumSta.con2.outPort.occupied ($RES_EVT_174) (24) [SCAL] (1) $SEV_8 = varSpePumSta.con2.enableFire and time >= ((time - varSpePumSta.con2.t_dummy) + varSpePumSta.con2.waitTime) ($RES_EVT_175) (25) [SCAL] (1) $SEV_9 = $FUN_5 or varSpePumSta.twoOn.outerStatePort.localActive and not $FUN_6 ($RES_EVT_176) (26) [SCAL] (1) $SEV_10 = $FUN_3 or varSpePumSta.off.outerStatePort.localActive and not $FUN_4 ($RES_EVT_177) (27) [FOR-] (2) ($RES_EVT_178) (27) [----] for $i1 in 1:2 loop (27) [----] [SCAL] (1) $SEV_11[$i1] = $i1 == 1 ($RES_EVT_179) (27) [----] end for; (28) [ARRY] (2) varSpePumSta.combiTable1Ds.y = varSpePumSta.y ($RES_SIM_100) (29) [SCAL] (1) varSpePumSta.con4.outPort.set = varSpePumSta.oneOn.outPort[2].reset ($RES_SIM_101) (30) [SCAL] (1) varSpePumSta.con4.inPort.available = varSpePumSta.oneOn.outPort[2].available ($RES_SIM_102) (31) [WHEN] (1)when $SEV_2 then (31) [----] speSig.count := $PRE.speSig.count + 1 (31) [----] end when; (32) [SCAL] (1) varSpePumSta.con3.outPort.set = varSpePumSta.oneOn.inPort[2].set ($RES_SIM_103) (33) [WHEN] (1)when $SEV_2 then (33) [----] speSig.T_start := time (33) [----] end when; (34) [SCAL] (1) varSpePumSta.con3.outPort.occupied = varSpePumSta.oneOn.inPort[2].occupied ($RES_SIM_104) (35) [SCAL] (1) varSpePumSta.con4.outPort.set = varSpePumSta.off.inPort[1].set ($RES_SIM_105) (36) [SCAL] (1) varSpePumSta.addInt.y = varSpePumSta.addInt.k1 * varSpePumSta.booToInt.y + varSpePumSta.addInt.k2 * varSpePumSta.booToInt1.y ($RES_SIM_23) (37) [SCAL] (1) varSpePumSta.booToInt1.y = if varSpePumSta.twoOn.outerStatePort.localActive then varSpePumSta.booToInt1.integerTrue else varSpePumSta.booToInt1.integerFalse ($RES_SIM_24) (38) [SCAL] (1) varSpePumSta.con4.outPort.occupied = varSpePumSta.off.inPort[1].occupied ($RES_SIM_106) (39) [SCAL] (1) varSpePumSta.booToInt.y = if varSpePumSta.oneOn.outerStatePort.localActive then varSpePumSta.booToInt.integerTrue else varSpePumSta.booToInt.integerFalse ($RES_SIM_25) (40) [SCAL] (1) varSpePumSta.twoOn.outPort[1].reset = varSpePumSta.con3.outPort.set ($RES_SIM_107) (41) [SCAL] (1) varSpePumSta.twoOn.outerStatePort.subgraphStatePort.activeSteps = if varSpePumSta.twoOn.outerStatePort.localActive then 1.0 else 0.0 ($RES_SIM_61) (42) [FOR-] (2) ($RES_SIM_26) (42) [----] for $i1 in 1:2 loop (42) [----] [SCAL] (1) varSpePumSta.combiTable1Ds.y[$i1] = Modelica.Blocks.Tables.Internal.getTable1DValue(varSpePumSta.combiTable1Ds.tableID, $i1, varSpePumSta.addInt.y) ($RES_SIM_27) (42) [----] end for; (43) [SCAL] (1) varSpePumSta.twoOn.outPort[1].available = varSpePumSta.con3.inPort.available ($RES_SIM_108) (44) [SCAL] (1) varSpePumSta.off.outPort[1].reset = false ($RES_SIM_62) (45) [SCAL] (1) varSpePumSta.con2.outPort.set = varSpePumSta.twoOn.inPort[1].set ($RES_SIM_109) (46) [SCAL] (1) varSpePumSta.off.inPort[1].set = false ($RES_SIM_63) (47) [SCAL] (1) varSpePumSta.off.outPort[1].available = varSpePumSta.off.outerStatePort.localActive ($RES_SIM_64) (48) [SCAL] (1) varSpePumSta.off.inPort[1].occupied = varSpePumSta.off.outerStatePort.localActive ($RES_SIM_65) (49) [WHEN] (1)when false then (49) [----] varSpePumSta.off.oldActive := varSpePumSta.off.outerStatePort.localActive (49) [----] end when; (50) [SCAL] (1) varSpePumSta.off.newActive = $SEV_10 ($RES_SIM_67) (51) [SCAL] (1) varSpePumSta.off.outerStatePort.localActive = $TEV_8 ($RES_SIM_68) (52) [FOR-] (2) ($RES_EVT_180) (52) [----] for $i1 in 1:2 loop (52) [----] [SCAL] (1) $SEV_12[$i1] = varSpePumSta.oneOn.outPort[$i1 - 1].available and not varSpePumSta.oneOn.outPort[$i1 - 1].reset ($RES_EVT_181) (52) [----] end for; (53) [FOR-] (2) ($RES_EVT_182) (53) [----] for $i1 in 1:2 loop (53) [----] [SCAL] (1) $SEV_13[$i1] = varSpePumSta.oneOn.inPort[$i1 - 1].occupied or varSpePumSta.oneOn.inPort[$i1 - 1].set ($RES_EVT_183) (53) [----] end for; (54) [SCAL] (1) $SEV_14 = $FUN_1 or varSpePumSta.oneOn.outerStatePort.localActive and not $FUN_2 ($RES_EVT_184) (55) [SCAL] (1) $SEV_15 = (varSpePumSta.con1.localCondition and varSpePumSta.con1.inPort.available) and not varSpePumSta.con1.outPort.occupied ($RES_EVT_185) (56) [SCAL] (1) $SEV_16 = varSpePumSta.con1.enableFire and time >= ((time - varSpePumSta.con1.t_dummy) + varSpePumSta.con1.waitTime) ($RES_EVT_186) (57) [SCAL] (1) $SEV_17 = speSig.y <= varSpePumSta.minSpe ($RES_EVT_187) (58) [SCAL] (1) $SEV_18 = speSig.y < (varSpePumSta.criPoiSpe - varSpePumSta.deaBanSpe) or masFlo.y < (varSpePumSta.criPoiFlo - varSpePumSta.deaBanFlo) ($RES_EVT_188) (59) [SCAL] (1) $SEV_19 = speSig.y > (varSpePumSta.criPoiSpe + varSpePumSta.deaBanSpe) and masFlo.y > (varSpePumSta.criPoiFlo + varSpePumSta.deaBanFlo) ($RES_EVT_189) (60) [SCAL] (1) varSpePumSta.con2.outPort.occupied = varSpePumSta.twoOn.inPort[1].occupied ($RES_SIM_110) (61) [SCAL] (1) varSpePumSta.con2.outPort.set = varSpePumSta.oneOn.outPort[1].reset ($RES_SIM_111) (62) [SCAL] (1) varSpePumSta.con2.inPort.available = varSpePumSta.oneOn.outPort[1].available ($RES_SIM_112) (63) [SCAL] (1) varSpePumSta.con1.outPort.set = varSpePumSta.oneOn.inPort[1].set ($RES_SIM_113) (64) [SCAL] (1) varSpePumSta.stateGraphRoot.activeSteps = -integer(varSpePumSta.stateGraphRoot.subgraphStatePort.activeSteps) ($RES_SIM_31) (65) [SCAL] (1) varSpePumSta.con1.localCondition = $SEV_20 ($RES_BND_126) (66) [SCAL] (1) varSpePumSta.con1.outPort.occupied = varSpePumSta.oneOn.inPort[1].occupied ($RES_SIM_114) (67) [SCAL] (1) varSpePumSta.off.outPort[1].reset = varSpePumSta.con1.outPort.set ($RES_SIM_115) (68) [SCAL] (1) varSpePumSta.off.outPort[1].available = varSpePumSta.con1.inPort.available ($RES_SIM_116) (69) [SCAL] (1) varSpePumSta.con4.enableFire = $SEV_3 ($RES_SIM_34) (70) [SCAL] (1) varSpePumSta.off.outerStatePort.subgraphStatePort.activeSteps = if varSpePumSta.off.outerStatePort.localActive then 1.0 else 0.0 ($RES_SIM_70) (71) [SCAL] (1) varSpePumSta.con4.outPort.set = $SEV_4 ($RES_SIM_35) (72) [FOR-] (2) ($RES_SIM_71) (72) [----] for $i1 in 1:2 loop (72) [----] [SCAL] (1) varSpePumSta.oneOn.outPort[$i1].reset = false ($RES_SIM_72) (72) [----] end for; (73) [SCAL] (1) varSpePumSta.con4.t = if varSpePumSta.con4.enableFire then varSpePumSta.con4.t_dummy else 0.0 ($RES_SIM_36) (74) [FOR-] (2) ($RES_SIM_73) (74) [----] for $i1 in 1:2 loop (74) [----] [SCAL] (1) varSpePumSta.oneOn.inPort[$i1].set = false ($RES_SIM_74) (74) [----] end for; (75) [WHEN] (1)when varSpePumSta.con4.enableFire then (75) [----] time - varSpePumSta.con4.t_dummy := time (75) [----] end when; (76) [FOR-] (2) ($RES_SIM_75) (76) [----] for $i1 in 1:2 loop (76) [----] [SCAL] (1) varSpePumSta.oneOn.outPort[$i1].available = if $SEV_11[$i1] then varSpePumSta.oneOn.outerStatePort.localActive else $SEV_12[$i1] ($RES_SIM_76) (76) [----] end for; (77) [FOR-] (2) ($RES_SIM_77) (77) [----] for $i1 in 1:2 loop (77) [----] [SCAL] (1) varSpePumSta.oneOn.inPort[$i1].occupied = if $SEV_11[$i1] then varSpePumSta.oneOn.outerStatePort.localActive else $SEV_13[$i1] ($RES_SIM_78) (77) [----] end for; (78) [WHEN] (1)when false then (78) [----] varSpePumSta.oneOn.oldActive := varSpePumSta.oneOn.outerStatePort.localActive (78) [----] end when; (79) [SCAL] (1) $TEV_0 = $PRE.varSpePumSta.con4.enableFire ($RES_EVT_153) (80) [SCAL] (1) $TEV_1 = $PRE.varSpePumSta.con3.enableFire ($RES_EVT_154) (81) [SCAL] (1) $SEV_20 = speSig.y > varSpePumSta.minSpe ($RES_EVT_190) (82) [SCAL] (1) $TEV_2 = $PRE.varSpePumSta.con2.enableFire ($RES_EVT_155) (83) [SCAL] (1) $TEV_3 = $PRE.varSpePumSta.twoOn.oldActive ($RES_EVT_156) (84) [SCAL] (1) $TEV_4 = $PRE.varSpePumSta.twoOn.outerStatePort.localActive ($RES_EVT_157) (85) [SCAL] (1) $TEV_5 = $PRE.varSpePumSta.twoOn.newActive ($RES_EVT_158) (86) [SCAL] (1) $TEV_6 = $PRE.varSpePumSta.off.oldActive ($RES_EVT_159) (87) [SCAL] (1) varSpePumSta.con2.localCondition = $SEV_19 ($RES_BND_131) (88) [SCAL] (1) varSpePumSta.con3.localCondition = $SEV_18 ($RES_BND_133) (89) [SCAL] (1) varSpePumSta.con4.localCondition = $SEV_17 ($RES_BND_135) (90) [SCAL] (1) varSpePumSta.con3.enableFire = $SEV_5 ($RES_SIM_41) (91) [SCAL] (1) varSpePumSta.con3.outPort.set = $SEV_6 ($RES_SIM_42) (92) [SCAL] (1) varSpePumSta.con3.t = if varSpePumSta.con3.enableFire then varSpePumSta.con3.t_dummy else 0.0 ($RES_SIM_43) (93) [SCAL] (1) speSig.T_width = 0.01 * speSig.width * speSig.period ($RES_BND_139) (94) [SCAL] (1) varSpePumSta.oneOn.newActive = $SEV_14 ($RES_SIM_80) (95) [WHEN] (1)when varSpePumSta.con3.enableFire then (95) [----] time - varSpePumSta.con3.t_dummy := time (95) [----] end when; (96) [SCAL] (1) varSpePumSta.oneOn.outerStatePort.localActive = $TEV_11 ($RES_SIM_81) (97) [SCAL] (1) varSpePumSta.oneOn.outerStatePort.subgraphStatePort.activeSteps = if varSpePumSta.oneOn.outerStatePort.localActive then 1.0 else 0.0 ($RES_SIM_83) (98) [SCAL] (1) varSpePumSta.con2.enableFire = $SEV_7 ($RES_SIM_48) (99) [SCAL] (1) varSpePumSta.con2.outPort.set = $SEV_8 ($RES_SIM_49) (100) [SCAL] (1) varSpePumSta.con1.enableFire = $SEV_15 ($RES_SIM_86) (101) [SCAL] (1) varSpePumSta.con1.outPort.set = $SEV_16 ($RES_SIM_87) (102) [SCAL] (1) $TEV_7 = $PRE.varSpePumSta.off.outerStatePort.localActive ($RES_EVT_160) (103) [SCAL] (1) varSpePumSta.con1.t = if varSpePumSta.con1.enableFire then varSpePumSta.con1.t_dummy else 0.0 ($RES_SIM_88) (104) [SCAL] (1) $TEV_8 = $PRE.varSpePumSta.off.newActive ($RES_EVT_161) (105) [SCAL] (1) $TEV_9 = $PRE.varSpePumSta.oneOn.oldActive ($RES_EVT_162) (106) [SCAL] (1) $TEV_10 = $PRE.varSpePumSta.oneOn.outerStatePort.localActive ($RES_EVT_163) (107) [SCAL] (1) $TEV_11 = $PRE.varSpePumSta.oneOn.newActive ($RES_EVT_164) (108) [SCAL] (1) $TEV_12 = $PRE.varSpePumSta.con1.enableFire ($RES_EVT_165) (109) [SCAL] (1) $TEV_13 = time < masFlo.startTime ($RES_EVT_166) (110) [SCAL] (1) $SEV_0 = (time < speSig.startTime or speSig.nperiod == 0) or speSig.nperiod > 0 and speSig.count >= speSig.nperiod ($RES_EVT_167) (111) [SCAL] (1) $SEV_1 = time < (speSig.T_start + speSig.T_width) ($RES_EVT_168) (112) [SCAL] (1) $SEV_2 = integer((time - speSig.startTime) / speSig.period) > $PRE.speSig.count ($RES_EVT_169) (113) [SCAL] (1) $FUN_1 = Modelica.StateGraph.Temporary.anyTrue(varSpePumSta.oneOn.inPort.set) ($RES_$AUX_146) (114) [SCAL] (1) $FUN_2 = Modelica.StateGraph.Temporary.anyTrue(varSpePumSta.oneOn.outPort.reset) ($RES_$AUX_145) =================== Scalar Matching =================== variable to equation ********************** var 1 --> eqn 76 var 2 --> eqn 54 var 3 --> eqn 44 var 4 --> eqn 45 var 5 --> eqn 51 var 6 --> eqn 1 var 7 --> eqn 66 var 8 --> eqn 31 var 9 --> eqn 12 var 10 --> eqn 85 var 11 --> eqn 86 var 12 --> eqn 50 var 13 --> eqn 69 var 14 --> eqn 107 var 15 --> eqn 80 var 16 --> eqn 81 var 17 --> eqn 27 var 18 --> eqn 28 var 19 --> eqn 98 var 20 --> eqn 10 var 21 --> eqn 7 var 22 --> eqn 35 var 23 --> eqn 36 var 24 --> eqn 73 var 25 --> eqn 18 var 26 --> eqn 4 var 27 --> eqn 83 var 28 --> eqn 84 var 29 --> eqn 37 var 30 --> eqn 11 var 31 --> eqn 8 var 32 --> eqn 5 var 33 --> eqn 90 var 34 --> eqn 3 var 35 --> eqn 99 var 36 --> eqn 2 var 37 --> eqn 123 var 38 --> eqn 122 var 39 --> eqn 16 var 40 --> eqn 101 var 41 --> eqn 104 var 42 --> eqn 32 var 43 --> eqn 17 var 44 --> eqn 33 var 45 --> eqn 52 var 46 --> eqn 40 var 47 --> eqn 43 var 48 --> eqn 64 var 49 --> eqn 63 var 50 --> eqn 62 var 51 --> eqn 97 var 52 --> eqn 61 var 53 --> eqn 60 var 54 --> eqn 15 var 55 --> eqn 102 var 56 --> eqn 74 var 57 --> eqn 59 var 58 --> eqn 57 var 59 --> eqn 58 var 60 --> eqn 26 var 61 --> eqn 53 var 62 --> eqn 105 var 63 --> eqn 112 var 64 --> eqn 39 var 65 --> eqn 96 var 66 --> eqn 82 var 67 --> eqn 47 var 68 --> eqn 106 var 69 --> eqn 41 var 70 --> eqn 25 var 71 --> eqn 24 var 72 --> eqn 23 var 73 --> eqn 22 var 74 --> eqn 46 var 75 --> eqn 71 var 76 --> eqn 21 var 77 --> eqn 29 var 78 --> eqn 30 var 79 --> eqn 20 var 80 --> eqn 114 var 81 --> eqn 19 var 82 --> eqn 113 var 83 --> eqn 75 var 84 --> eqn 121 var 85 --> eqn 111 var 86 --> eqn 38 var 87 --> eqn 120 var 88 --> eqn 95 var 89 --> eqn 14 var 90 --> eqn 119 var 91 --> eqn 94 var 92 --> eqn 13 var 93 --> eqn 93 var 94 --> eqn 92 var 95 --> eqn 91 var 96 --> eqn 89 var 97 --> eqn 88 var 98 --> eqn 9 var 99 --> eqn 55 var 100 --> eqn 56 var 101 --> eqn 118 var 102 --> eqn 103 var 103 --> eqn 117 var 104 --> eqn 79 var 105 --> eqn 116 var 106 --> eqn 70 var 107 --> eqn 115 var 108 --> eqn 6 var 109 --> eqn 109 var 110 --> eqn 68 var 111 --> eqn 87 var 112 --> eqn 48 var 113 --> eqn 65 var 114 --> eqn 67 var 115 --> eqn 34 equation to variable ********************** eqn 1 --> var 6 eqn 2 --> var 36 eqn 3 --> var 34 eqn 4 --> var 26 eqn 5 --> var 32 eqn 6 --> var 108 eqn 7 --> var 21 eqn 8 --> var 31 eqn 9 --> var 98 eqn 10 --> var 20 eqn 11 --> var 30 eqn 12 --> var 9 eqn 13 --> var 92 eqn 14 --> var 89 eqn 15 --> var 54 eqn 16 --> var 39 eqn 17 --> var 43 eqn 18 --> var 25 eqn 19 --> var 81 eqn 20 --> var 79 eqn 21 --> var 76 eqn 22 --> var 73 eqn 23 --> var 72 eqn 24 --> var 71 eqn 25 --> var 70 eqn 26 --> var 60 eqn 27 --> var 17 eqn 28 --> var 18 eqn 29 --> var 77 eqn 30 --> var 78 eqn 31 --> var 8 eqn 32 --> var 42 eqn 33 --> var 44 eqn 34 --> var 115 eqn 35 --> var 22 eqn 36 --> var 23 eqn 37 --> var 29 eqn 38 --> var 86 eqn 39 --> var 64 eqn 40 --> var 46 eqn 41 --> var 69 eqn 42 --> var -1 eqn 43 --> var 47 eqn 44 --> var 3 eqn 45 --> var 4 eqn 46 --> var 74 eqn 47 --> var 67 eqn 48 --> var 112 eqn 49 --> var -1 eqn 50 --> var 12 eqn 51 --> var 5 eqn 52 --> var 45 eqn 53 --> var 61 eqn 54 --> var 2 eqn 55 --> var 99 eqn 56 --> var 100 eqn 57 --> var 58 eqn 58 --> var 59 eqn 59 --> var 57 eqn 60 --> var 53 eqn 61 --> var 52 eqn 62 --> var 50 eqn 63 --> var 49 eqn 64 --> var 48 eqn 65 --> var 113 eqn 66 --> var 7 eqn 67 --> var 114 eqn 68 --> var 110 eqn 69 --> var 13 eqn 70 --> var 106 eqn 71 --> var 75 eqn 72 --> var -1 eqn 73 --> var 24 eqn 74 --> var 56 eqn 75 --> var 83 eqn 76 --> var 1 eqn 77 --> var -1 eqn 78 --> var -1 eqn 79 --> var 104 eqn 80 --> var 15 eqn 81 --> var 16 eqn 82 --> var 66 eqn 83 --> var 27 eqn 84 --> var 28 eqn 85 --> var 10 eqn 86 --> var 11 eqn 87 --> var 111 eqn 88 --> var 97 eqn 89 --> var 96 eqn 90 --> var 33 eqn 91 --> var 95 eqn 92 --> var 94 eqn 93 --> var 93 eqn 94 --> var 91 eqn 95 --> var 88 eqn 96 --> var 65 eqn 97 --> var 51 eqn 98 --> var 19 eqn 99 --> var 35 eqn 100 --> var -1 eqn 101 --> var 40 eqn 102 --> var 55 eqn 103 --> var 102 eqn 104 --> var 41 eqn 105 --> var 62 eqn 106 --> var 68 eqn 107 --> var 14 eqn 108 --> var -1 eqn 109 --> var 109 eqn 110 --> var -1 eqn 111 --> var 85 eqn 112 --> var 63 eqn 113 --> var 82 eqn 114 --> var 80 eqn 115 --> var 107 eqn 116 --> var 105 eqn 117 --> var 103 eqn 118 --> var 101 eqn 119 --> var 90 eqn 120 --> var 87 eqn 121 --> var 84 eqn 122 --> var 38 eqn 123 --> var 37