Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown.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.Fluid.CHPs.BaseClasses.Validation.CoolDown,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown") translateModel(Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00142/0.00142, allocations: 107.7 kB / 16.38 MB, free: 5.949 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.001411/0.001411, allocations: 189.9 kB / 17.31 MB, free: 5.582 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.436/1.436, allocations: 205.1 MB / 223.2 MB, free: 12.23 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.753/1.753, allocations: 292.3 MB / 0.5496 GB, free: 17.62 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.979e-05/2.987e-05, allocations: 2.281 kB / 0.6729 GB, free: 5.918 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.CoolDown): time 0.005022/0.005068, allocations: 2.802 MB / 0.6756 GB, free: 3.094 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.002536/0.007619, allocations: 1.604 MB / 0.6772 GB, free: 1.48 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001865/0.007818, allocations: 11.94 kB / 0.6772 GB, free: 1.469 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0008897/0.008714, allocations: 307 kB / 0.6775 GB, free: 1.168 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.0003819/0.009134, allocations: 186.9 kB / 0.6776 GB, free: 0.9844 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006655/0.009811, allocations: 346.3 kB / 0.678 GB, free: 0.6484 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.000658/0.01048, allocations: 0.6784 MB / 0.6786 GB, free: 15.97 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005276/0.01101, allocations: 466.9 kB / 0.6791 GB, free: 15.51 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002873/0.01131, allocations: 303 kB / 0.6794 GB, free: 15.21 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002777/0.0116, allocations: 294.7 kB / 0.6796 GB, free: 14.92 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 7.629e-05/0.01168, allocations: 56 kB / 0.6797 GB, free: 14.87 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002809/0.01197, allocations: 159.9 kB / 0.6799 GB, free: 14.71 MB / 0.5606 GB Notification: Performance of combineBinaries: time 0.0005771/0.01255, allocations: 0.8764 MB / 0.6807 GB, free: 13.82 MB / 0.5606 GB Notification: Performance of replaceArrayConstructors: time 0.0002882/0.01285, allocations: 0.554 MB / 0.6813 GB, free: 13.26 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.000101/0.01296, allocations: 79.75 kB / 0.6813 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of FrontEnd: time 9.794e-05/0.01306, allocations: 55.62 kB / 0.6814 GB, free: 13.13 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: 137 (129) * Number of variables: 127 (119) Notification: Performance of Bindings: time 0.002449/0.01552, allocations: 2.557 MB / 0.6839 GB, free: 10.45 MB / 0.5606 GB Notification: Performance of FunctionAlias: time 0.0001954/0.01572, allocations: 167.7 kB / 0.684 GB, free: 10.28 MB / 0.5606 GB Notification: Performance of Early Inline: time 0.001343/0.01707, allocations: 1.37 MB / 0.6854 GB, free: 8.875 MB / 0.5606 GB Notification: Performance of simplify1: time 9.349e-05/0.01717, allocations: 91.86 kB / 0.6855 GB, free: 8.785 MB / 0.5606 GB Notification: Performance of Alias: time 0.002545/0.01973, allocations: 2.332 MB / 0.6877 GB, free: 6.172 MB / 0.5606 GB Notification: Performance of simplify2: time 6.26e-05/0.0198, allocations: 59.92 kB / 0.6878 GB, free: 6.113 MB / 0.5606 GB Notification: Performance of Events: time 0.0004379/0.02024, allocations: 358.7 kB / 0.6881 GB, free: 5.762 MB / 0.5606 GB Notification: Performance of Detect States: time 0.0005295/0.02078, allocations: 0.5474 MB / 0.6887 GB, free: 5.199 MB / 0.5606 GB Notification: Performance of Partitioning: time 0.0005622/0.02136, allocations: 0.519 MB / 0.6892 GB, free: 4.656 MB / 0.5606 GB Error: Internal error NBSorting.tarjan failed to sort system: system vars Variables (90/103) ******************************** (1) [DISC] (1) protected Boolean transition4.outPort.occupied (2) [DISC] (1) protected Boolean transition4.inPort.available (3) [DISC] (1) protected Boolean[1] off.outPort.reset (4) [DISS] (1) protected discrete Real timer.entryTime (5) [DISC] (2) Boolean[2] cooDow.inPort.set (6) [ALGB] (1) protected flow Real stateGraphRoot.subgraphStatePort.activeSteps (7) [DISC] (1) protected Boolean[1] off.inPort.occupied (8) [DISS] (1) protected final Boolean transition2.localCondition = transition2.localCondition (9) [DISC] (2) Boolean[2] cooDow.outPort.reset (10) [DISC] (2) Boolean[2] $SEV_11[$i1] (11) [DISC] (1) protected Boolean transition3.outPort.occupied (12) [DISC] (1) protected Boolean transition5.outPort.occupied (13) [DISC] (2) Boolean[2] cooDow.inPort.occupied (14) [ALGB] (1) protected flow Real norm.outerStatePort.subgraphStatePort.activeSteps (15) [DISC] (1) protected final Boolean transition4.localCondition = transition4.localCondition (16) [DISC] (1) protected Boolean norm.outerStatePort.localActive = norm.outerStatePort.localActive (17) [DISC] (1) protected Boolean[1] off.inPort.set (18) [ALGB] (1) protected flow Real cooDow.outerStatePort.subgraphStatePort.activeSteps (19) [DISC] (1) Boolean $FUN_6 (20) [DISC] (1) Boolean $FUN_5 (21) [DISC] (1) Boolean $FUN_4 (22) [DISC] (1) Boolean $FUN_3 (23) [DISC] (1) Boolean $FUN_2 (24) [DISC] (2) Boolean[2] cooDow.outPort.available (25) [DISC] (1) protected Boolean cooDow.outerStatePort.localActive = cooDow.outerStatePort.localActive (26) [DISC] (1) Boolean $FUN_1 (27) [DISC] (2) Boolean[2] $SEV_9[$i1] (28) [DISS] (1) protected discrete Real runSig.combiTimeTable.nextTimeEvent (fixed = true, start = 0.0) (29) [ALGB] (1) protected Real timer.y (30) [DISS] (1) protected Boolean norm.oldActive (31) [DISC] (1) protected Boolean transition2.outPort.occupied (32) [ALGB] (1) protected flow Real off.outerStatePort.subgraphStatePort.activeSteps (33) [DISC] (1) protected Integer stateGraphRoot.activeSteps (34) [DISC] (1) protected Boolean transition1.outPort.set (35) [DISC] (1) protected Boolean transition2.outPort.set (36) [DISC] (1) protected Boolean transition2.inPort.available (37) [DISC] (1) protected Boolean transition3.outPort.set (38) [DISC] (1) Boolean $SEV_17 (39) [DISC] (1) protected Boolean norm.newActive (40) [DISC] (1) Boolean $SEV_16 (41) [DISC] (1) protected Boolean transition4.outPort.set (42) [DISC] (1) protected Boolean transition5.outPort.set (43) [DISC] (1) Boolean $SEV_14 (44) [DISC] (1) Boolean $SEV_13 (45) [DISS] (1) protected Boolean cooDow.oldActive (46) [DISC] (1) protected final Boolean transition1.localCondition = transition1.localCondition (47) [DISC] (1) Boolean $SEV_10 (48) [ALGB] (1) Real runSig.realToBoolean.u (49) [ALGB] (1) Real[1] runSig.combiTimeTable.y (50) [DISC] (1) protected Boolean off.outerStatePort.localActive = off.outerStatePort.localActive (51) [DISS] (1) protected discrete Real runSig.combiTimeTable.nextTimeEventScaled (fixed = true, start = 0.0) (52) [DISS] (1) protected Boolean off.oldActive (53) [DISC] (1) protected Boolean cooDow.newActive (54) [DISC] (1) protected Boolean transition1.inPort.available (55) [DISC] (2) Boolean[2] $SEV_8[$i1] (56) [DISC] (2) protected Boolean[2] norm.outPort.available (57) [DISC] (1) protected Boolean transition1.outPort.occupied (58) [DISC] (1) protected Boolean transition5.inPort.available (59) [DISC] (1) Boolean $SEV_6 (60) [DISC] (1) Boolean $SEV_5 (61) [DISC] (2) protected Boolean[2] norm.inPort.set (62) [DISC] (1) enumeration Buildings.Fluid.CHPs.BaseClasses.Types.Mode(Off, StandBy, PumpOn, WarmUp, Normal, CoolDown) actMod = if norm.outerStatePort.localActive then Buildings.Fluid.CHPs.BaseClasses.Types.Mode.Normal else if cooDow.outerStatePort.localActive then Buildings.Fluid.CHPs.BaseClasses.Types.Mode.CoolDown else Buildings.Fluid.CHPs.BaseClasses.Types.Mode.Off (63) [DISC] (1) Boolean $SEV_4 (64) [DISC] (1) Boolean $TEV_9 (65) [DISC] (1) Boolean $SEV_3 (66) [DISC] (1) Boolean $TEV_8 (67) [DISC] (1) protected Boolean off.newActive (68) [DISC] (1) protected Boolean transition3.inPort.available (69) [DISC] (1) Boolean $SEV_2 (70) [DISC] (1) Boolean $TEV_7 (71) [DISC] (1) Boolean $SEV_1 (72) [DISC] (1) Boolean $TEV_6 (73) [DISC] (1) Boolean $TEV_5 (74) [DISC] (1) Boolean $TEV_4 (75) [DISC] (1) Boolean $TEV_3 (76) [DISC] (1) Boolean $TEV_2 (77) [DISC] (1) Boolean $TEV_1 (78) [DISC] (1) Boolean $TEV_0 (79) [DISC] (1) Boolean $TEV_16 (80) [DISC] (2) protected Boolean[2] norm.inPort.occupied (81) [DISC] (1) Boolean $TEV_15 (82) [DISC] (1) Boolean $TEV_14 (83) [DISC] (2) Boolean[2] $SEV_12[$i1] (84) [DISC] (1) Boolean $TEV_13 (85) [DISC] (1) Boolean $TEV_12 (86) [DISC] (1) Boolean $TEV_11 (87) [DISC] (2) protected Boolean[2] norm.outPort.reset (88) [DISC] (1) Boolean $TEV_10 (89) [DISC] (1) protected Boolean[1] off.outPort.available (90) [DISC] (2) Boolean[2] $SEV_7[$i1] system eqns Equations (100/113) ********************************* (1) [SCAL] (1) transition1.outPort.set = $SEV_5 ($RES_SIM_52) (2) [SCAL] (1) timer.y = if cooDow.outerStatePort.localActive then time - timer.entryTime else 0.0 ($RES_SIM_17) (3) [WHEN] (1)when not cooDow.outerStatePort.localActive then (3) [----] timer.entryTime := $PRE.timer.entryTime (3) [----] else when $SEV_1 then (3) [----] timer.entryTime := $PRE.timer.entryTime (3) [----] else when cooDow.outerStatePort.localActive then (3) [----] timer.entryTime := time (3) [----] end when; (4) [WHEN] (1)when not cooDow.outerStatePort.localActive then (4) [----] transition2.localCondition := false (4) [----] else when $SEV_1 then (4) [----] transition2.localCondition := true (4) [----] else when cooDow.outerStatePort.localActive then (4) [----] transition2.localCondition := timer.t <= 0.0 (4) [----] end when; (5) [SCAL] (1) cooDow.newActive = $SEV_13 ($RES_SIM_90) (6) [SCAL] (1) cooDow.outerStatePort.localActive = $TEV_15 ($RES_SIM_91) (7) [SCAL] (1) cooDow.outerStatePort.subgraphStatePort.activeSteps = if cooDow.outerStatePort.localActive then 1.0 else 0.0 ($RES_SIM_93) (8) [SCAL] (1) transition2.outPort.set = $SEV_6 ($RES_SIM_59) (9) [SCAL] (1) transition4.localCondition = $SEV_14 ($RES_SIM_95) (10) [SCAL] (1) $TEV_9 = $PRE.transition2.outPort.set ($RES_EVT_170) (11) [SCAL] (1) not transition1.localCondition = $SEV_16 ($RES_SIM_98) (12) [SCAL] (1) $TEV_10 = $PRE.norm.oldActive ($RES_EVT_171) (13) [SCAL] (1) runSig.combiTimeTable.y[1] = runSig.combiTimeTable.p_offset[1] + Modelica.Blocks.Tables.Internal.getTimeTableValueNoDer(runSig.combiTimeTable.tableID, 1, time, runSig.combiTimeTable.nextTimeEventScaled, $TEV_16) ($RES_SIM_99) (14) [SCAL] (1) $TEV_11 = $PRE.norm.outerStatePort.localActive ($RES_EVT_172) (15) [SCAL] (1) $TEV_12 = $PRE.norm.newActive ($RES_EVT_173) (16) [SCAL] (1) $TEV_13 = $PRE.cooDow.oldActive ($RES_EVT_174) (17) [SCAL] (1) $TEV_14 = $PRE.cooDow.outerStatePort.localActive ($RES_EVT_175) (18) [SCAL] (1) $TEV_15 = $PRE.cooDow.newActive ($RES_EVT_176) (19) [SCAL] (1) $TEV_16 = $PRE.runSig.combiTimeTable.nextTimeEventScaled ($RES_EVT_177) (20) [SCAL] (1) $SEV_1 = cooDow.outerStatePort.localActive and time >= (timer.t + $PRE.timer.entryTime) ($RES_EVT_179) (21) [WHEN] (1)when {$SEV_17, initial()} then (21) [----] runSig.combiTimeTable.nextTimeEventScaled := Modelica.Blocks.Tables.Internal.getNextTimeEvent(runSig.combiTimeTable.tableID, time) (21) [----] end when; (22) [WHEN] (1)when {$SEV_17, initial()} then (22) [----] runSig.combiTimeTable.nextTimeEvent := if runSig.combiTimeTable.nextTimeEventScaled < 1e60 then runSig.combiTimeTable.nextTimeEventScaled else 1e60 (22) [----] end when; (23) [SCAL] (1) norm.outerStatePort.subgraphStatePort.activeSteps + stateGraphRoot.subgraphStatePort.activeSteps + off.outerStatePort.subgraphStatePort.activeSteps + cooDow.outerStatePort.subgraphStatePort.activeSteps = 0.0 ($RES_SIM_103) (24) [SCAL] (1) transition5.outPort.set = false ($RES_SIM_22) (25) [SCAL] (1) transition5.outPort.set = cooDow.inPort[2].set ($RES_SIM_106) (26) [SCAL] (1) runSig.combiTimeTable.y[1] = runSig.realToBoolean.u ($RES_SIM_142) (27) [SCAL] (1) transition5.outPort.occupied = cooDow.inPort[2].occupied ($RES_SIM_107) (28) [SCAL] (1) transition1.outPort.set = cooDow.inPort[1].set ($RES_SIM_108) (29) [SCAL] (1) transition1.outPort.occupied = cooDow.inPort[1].occupied ($RES_SIM_109) (30) [SCAL] (1) transition3.outPort.set = $SEV_2 ($RES_SIM_29) (31) [SCAL] (1) stateGraphRoot.activeSteps = -integer(stateGraphRoot.subgraphStatePort.activeSteps) ($RES_SIM_67) (32) [FOR-] (2) ($RES_SIM_68) (32) [----] for $i1 in 1:2 loop (32) [----] [SCAL] (1) norm.outPort[$i1].reset = false ($RES_SIM_69) (32) [----] end for; (33) [SCAL] (1) $SEV_2 = (not transition1.localCondition and transition3.inPort.available) and not transition3.outPort.occupied ($RES_EVT_180) (34) [SCAL] (1) $SEV_3 = $FUN_5 or off.outerStatePort.localActive and not $FUN_6 ($RES_EVT_181) (35) [SCAL] (1) $SEV_4 = (transition4.localCondition and transition4.inPort.available) and not transition4.outPort.occupied ($RES_EVT_182) (36) [SCAL] (1) $SEV_5 = (transition1.localCondition and transition1.inPort.available) and not transition1.outPort.occupied ($RES_EVT_183) (37) [SCAL] (1) $SEV_6 = (transition2.localCondition and transition2.inPort.available) and not transition2.outPort.occupied ($RES_EVT_184) (38) [FOR-] (2) ($RES_EVT_185) (38) [----] for $i1 in 1:2 loop (38) [----] [SCAL] (1) $SEV_7[$i1] = $i1 == 1 ($RES_EVT_186) (38) [----] end for; (39) [FOR-] (2) ($RES_EVT_187) (39) [----] for $i1 in 1:2 loop (39) [----] [SCAL] (1) $SEV_8[$i1] = norm.outPort[$i1 - 1].available and not norm.outPort[$i1 - 1].reset ($RES_EVT_188) (39) [----] end for; (40) [FOR-] (2) ($RES_EVT_189) (40) [----] for $i1 in 1:2 loop (40) [----] [SCAL] (1) $SEV_9[$i1] = norm.inPort[$i1 - 1].occupied or norm.inPort[$i1 - 1].set ($RES_EVT_190) (40) [----] end for; (41) [SCAL] (1) cooDow.outPort[2].reset = transition4.outPort.set ($RES_SIM_110) (42) [SCAL] (1) cooDow.outPort[2].available = transition4.inPort.available ($RES_SIM_111) (43) [SCAL] (1) cooDow.outPort[1].reset = transition2.outPort.set ($RES_SIM_112) (44) [SCAL] (1) cooDow.outPort[1].available = transition2.inPort.available ($RES_SIM_113) (45) [SCAL] (1) off.outPort[1].reset = false ($RES_SIM_34) (46) [SCAL] (1) $FUN_1 = Modelica.StateGraph.Temporary.anyTrue(cooDow.inPort.set) ($RES_$AUX_160) (47) [FOR-] (2) ($RES_SIM_70) (47) [----] for $i1 in 1:2 loop (47) [----] [SCAL] (1) norm.inPort[$i1].set = false ($RES_SIM_71) (47) [----] end for; (48) [SCAL] (1) off.inPort[1].set = false ($RES_SIM_35) (49) [SCAL] (1) off.outPort[1].available = off.outerStatePort.localActive ($RES_SIM_36) (50) [FOR-] (2) ($RES_SIM_72) (50) [----] for $i1 in 1:2 loop (50) [----] [SCAL] (1) norm.outPort[$i1].available = if $SEV_7[$i1] then norm.outerStatePort.localActive else $SEV_8[$i1] ($RES_SIM_73) (50) [----] end for; (51) [SCAL] (1) off.inPort[1].occupied = off.outerStatePort.localActive ($RES_SIM_37) (52) [WHEN] (1)when false then (52) [----] off.oldActive := off.outerStatePort.localActive (52) [----] end when; (53) [FOR-] (2) ($RES_SIM_74) (53) [----] for $i1 in 1:2 loop (53) [----] [SCAL] (1) norm.inPort[$i1].occupied = if $SEV_7[$i1] then norm.outerStatePort.localActive else $SEV_9[$i1] ($RES_SIM_75) (53) [----] end for; (54) [SCAL] (1) off.newActive = $SEV_3 ($RES_SIM_39) (55) [WHEN] (1)when false then (55) [----] norm.oldActive := norm.outerStatePort.localActive (55) [----] end when; (56) [SCAL] (1) norm.newActive = $SEV_10 ($RES_SIM_77) (57) [SCAL] (1) norm.outerStatePort.localActive = $TEV_12 ($RES_SIM_78) (58) [SCAL] (1) $SEV_10 = $FUN_3 or norm.outerStatePort.localActive and not $FUN_4 ($RES_EVT_191) (59) [FOR-] (2) ($RES_EVT_192) (59) [----] for $i1 in 1:2 loop (59) [----] [SCAL] (1) $SEV_11[$i1] = cooDow.outPort[$i1 - 1].available and not cooDow.outPort[$i1 - 1].reset ($RES_EVT_193) (59) [----] end for; (60) [FOR-] (2) ($RES_EVT_194) (60) [----] for $i1 in 1:2 loop (60) [----] [SCAL] (1) $SEV_12[$i1] = cooDow.inPort[$i1 - 1].occupied or cooDow.inPort[$i1 - 1].set ($RES_EVT_195) (60) [----] end for; (61) [SCAL] (1) $SEV_13 = $FUN_1 or cooDow.outerStatePort.localActive and not $FUN_2 ($RES_EVT_196) (62) [SCAL] (1) $SEV_14 = cooDowOpt.k and not transition1.localCondition ($RES_EVT_197) (63) [SCAL] (1) $SEV_16 = runSig.realToBoolean.u >= runSig.realToBoolean.threshold ($RES_EVT_199) (64) [SCAL] (1) $FUN_2 = Modelica.StateGraph.Temporary.anyTrue(cooDow.outPort.reset) ($RES_$AUX_159) (65) [SCAL] (1) $FUN_3 = Modelica.StateGraph.Temporary.anyTrue(norm.inPort.set) ($RES_$AUX_158) (66) [SCAL] (1) $FUN_4 = Modelica.StateGraph.Temporary.anyTrue(norm.outPort.reset) ($RES_$AUX_157) (67) [SCAL] (1) transition5.outPort.set = norm.outPort[2].reset ($RES_SIM_120) (68) [SCAL] (1) $FUN_5 = Modelica.StateGraph.Temporary.anyTrue(off.inPort.set) ($RES_$AUX_156) (69) [SCAL] (1) transition5.inPort.available = norm.outPort[2].available ($RES_SIM_121) (70) [SCAL] (1) $FUN_6 = Modelica.StateGraph.Temporary.anyTrue(off.outPort.reset) ($RES_$AUX_155) (71) [SCAL] (1) off.outerStatePort.localActive = $TEV_6 ($RES_SIM_40) (72) [SCAL] (1) transition3.outPort.set = norm.inPort[2].set ($RES_SIM_122) (73) [SCAL] (1) transition3.outPort.occupied = norm.inPort[2].occupied ($RES_SIM_123) (74) [SCAL] (1) off.outerStatePort.subgraphStatePort.activeSteps = if off.outerStatePort.localActive then 1.0 else 0.0 ($RES_SIM_42) (75) [SCAL] (1) off.outPort[1].reset = transition3.outPort.set ($RES_SIM_124) (76) [SCAL] (1) off.outPort[1].available = transition3.inPort.available ($RES_SIM_125) (77) [SCAL] (1) off.inPort[1].set = transition2.outPort.set ($RES_SIM_126) (78) [SCAL] (1) norm.outerStatePort.subgraphStatePort.activeSteps = if norm.outerStatePort.localActive then 1.0 else 0.0 ($RES_SIM_80) (79) [SCAL] (1) transition4.outPort.set = $SEV_4 ($RES_SIM_45) (80) [SCAL] (1) off.inPort[1].occupied = transition2.outPort.occupied ($RES_SIM_127) (81) [FOR-] (2) ($RES_SIM_81) (81) [----] for $i1 in 1:2 loop (81) [----] [SCAL] (1) cooDow.outPort[$i1].reset = false ($RES_SIM_82) (81) [----] end for; (82) [SCAL] (1) transition1.outPort.set = norm.outPort[1].reset ($RES_SIM_128) (83) [SCAL] (1) transition1.inPort.available = norm.outPort[1].available ($RES_SIM_129) (84) [FOR-] (2) ($RES_SIM_83) (84) [----] for $i1 in 1:2 loop (84) [----] [SCAL] (1) cooDow.inPort[$i1].set = false ($RES_SIM_84) (84) [----] end for; (85) [FOR-] (2) ($RES_SIM_85) (85) [----] for $i1 in 1:2 loop (85) [----] [SCAL] (1) cooDow.outPort[$i1].available = if $SEV_7[$i1] then cooDow.outerStatePort.localActive else $SEV_11[$i1] ($RES_SIM_86) (85) [----] end for; (86) [FOR-] (2) ($RES_SIM_87) (86) [----] for $i1 in 1:2 loop (86) [----] [SCAL] (1) cooDow.inPort[$i1].occupied = if $SEV_7[$i1] then cooDow.outerStatePort.localActive else $SEV_12[$i1] ($RES_SIM_88) (86) [----] end for; (87) [SCAL] (1) $TEV_0 = $PRE.transition2.localCondition ($RES_EVT_161) (88) [WHEN] (1)when false then (88) [----] cooDow.oldActive := cooDow.outerStatePort.localActive (88) [----] end when; (89) [SCAL] (1) $SEV_17 = time >= $PRE.runSig.combiTimeTable.nextTimeEvent ($RES_EVT_200) (90) [SCAL] (1) $TEV_1 = $PRE.timer.entryTime ($RES_EVT_162) (91) [SCAL] (1) $TEV_2 = $PRE.transition5.outPort.set ($RES_EVT_163) (92) [SCAL] (1) $TEV_3 = $PRE.transition3.outPort.set ($RES_EVT_164) (93) [SCAL] (1) $TEV_4 = $PRE.off.oldActive ($RES_EVT_165) (94) [SCAL] (1) $TEV_5 = $PRE.off.outerStatePort.localActive ($RES_EVT_166) (95) [SCAL] (1) $TEV_6 = $PRE.off.newActive ($RES_EVT_167) (96) [SCAL] (1) $TEV_7 = $PRE.transition4.outPort.set ($RES_EVT_168) (97) [SCAL] (1) $TEV_8 = $PRE.transition1.outPort.set ($RES_EVT_169) (98) [SCAL] (1) transition4.outPort.set = norm.inPort[1].set ($RES_SIM_130) (99) [SCAL] (1) actMod = if norm.outerStatePort.localActive then Buildings.Fluid.CHPs.BaseClasses.Types.Mode.Normal else if cooDow.outerStatePort.localActive then Buildings.Fluid.CHPs.BaseClasses.Types.Mode.CoolDown else Buildings.Fluid.CHPs.BaseClasses.Types.Mode.Off ($RES_BND_143) (100) [SCAL] (1) transition4.outPort.occupied = norm.inPort[1].occupied ($RES_SIM_131) =================== Scalar Matching =================== variable to equation ********************** var 1 --> eqn 113 var 2 --> eqn 46 var 3 --> eqn 49 var 4 --> eqn 3 var 5 --> eqn 94 var 6 --> eqn 25 var 7 --> eqn 23 var 8 --> eqn 57 var 9 --> eqn 4 var 10 --> eqn 90 var 11 --> eqn 91 var 12 --> eqn 66 var 13 --> eqn 67 var 14 --> eqn 82 var 15 --> eqn 27 var 16 --> eqn 98 var 17 --> eqn 99 var 18 --> eqn 87 var 19 --> eqn 9 var 20 --> eqn 64 var 21 --> eqn 53 var 22 --> eqn 7 var 23 --> eqn 79 var 24 --> eqn 77 var 25 --> eqn 75 var 26 --> eqn 74 var 27 --> eqn 73 var 28 --> eqn 96 var 29 --> eqn 97 var 30 --> eqn 6 var 31 --> eqn 50 var 32 --> eqn 43 var 33 --> eqn 44 var 34 --> eqn 22 var 35 --> eqn 2 var 36 --> eqn 62 var 37 --> eqn 89 var 38 --> eqn 83 var 39 --> eqn 31 var 40 --> eqn 28 var 41 --> eqn 47 var 42 --> eqn 48 var 43 --> eqn 81 var 44 --> eqn 102 var 45 --> eqn 63 var 46 --> eqn 72 var 47 --> eqn 45 var 48 --> eqn 24 var 49 --> eqn 71 var 50 --> eqn 70 var 51 --> eqn 101 var 52 --> eqn 11 var 53 --> eqn 65 var 54 --> eqn 26 var 55 --> eqn 13 var 56 --> eqn 80 var 57 --> eqn 21 var 58 --> eqn 58 var 59 --> eqn 5 var 60 --> eqn 93 var 61 --> eqn 41 var 62 --> eqn 42 var 63 --> eqn 55 var 64 --> eqn 56 var 65 --> eqn 29 var 66 --> eqn 78 var 67 --> eqn 8 var 68 --> eqn 1 var 69 --> eqn 51 var 70 --> eqn 52 var 71 --> eqn 112 var 72 --> eqn 36 var 73 --> eqn 10 var 74 --> eqn 35 var 75 --> eqn 110 var 76 --> eqn 61 var 77 --> eqn 85 var 78 --> eqn 30 var 79 --> eqn 109 var 80 --> eqn 20 var 81 --> eqn 108 var 82 --> eqn 107 var 83 --> eqn 106 var 84 --> eqn 105 var 85 --> eqn 104 var 86 --> eqn 103 var 87 --> eqn 100 var 88 --> eqn 19 var 89 --> eqn 59 var 90 --> eqn 60 var 91 --> eqn 18 var 92 --> eqn 17 var 93 --> eqn 68 var 94 --> eqn 69 var 95 --> eqn 16 var 96 --> eqn 15 var 97 --> eqn 14 var 98 --> eqn 32 var 99 --> eqn 33 var 100 --> eqn 12 var 101 --> eqn 54 var 102 --> eqn 39 var 103 --> eqn 40 equation to variable ********************** eqn 1 --> var 68 eqn 2 --> var 35 eqn 3 --> var 4 eqn 4 --> var 9 eqn 5 --> var 59 eqn 6 --> var 30 eqn 7 --> var 22 eqn 8 --> var 67 eqn 9 --> var 19 eqn 10 --> var 73 eqn 11 --> var 52 eqn 12 --> var 100 eqn 13 --> var 55 eqn 14 --> var 97 eqn 15 --> var 96 eqn 16 --> var 95 eqn 17 --> var 92 eqn 18 --> var 91 eqn 19 --> var 88 eqn 20 --> var 80 eqn 21 --> var 57 eqn 22 --> var 34 eqn 23 --> var 7 eqn 24 --> var 48 eqn 25 --> var 6 eqn 26 --> var 54 eqn 27 --> var 15 eqn 28 --> var 40 eqn 29 --> var 65 eqn 30 --> var 78 eqn 31 --> var 39 eqn 32 --> var 98 eqn 33 --> var 99 eqn 34 --> var -1 eqn 35 --> var 74 eqn 36 --> var 72 eqn 37 --> var -1 eqn 38 --> var -1 eqn 39 --> var 102 eqn 40 --> var 103 eqn 41 --> var 61 eqn 42 --> var 62 eqn 43 --> var 32 eqn 44 --> var 33 eqn 45 --> var 47 eqn 46 --> var 2 eqn 47 --> var 41 eqn 48 --> var 42 eqn 49 --> var 3 eqn 50 --> var 31 eqn 51 --> var 69 eqn 52 --> var 70 eqn 53 --> var 21 eqn 54 --> var 101 eqn 55 --> var 63 eqn 56 --> var 64 eqn 57 --> var 8 eqn 58 --> var 58 eqn 59 --> var 89 eqn 60 --> var 90 eqn 61 --> var 76 eqn 62 --> var 36 eqn 63 --> var 45 eqn 64 --> var 20 eqn 65 --> var 53 eqn 66 --> var 12 eqn 67 --> var 13 eqn 68 --> var 93 eqn 69 --> var 94 eqn 70 --> var 50 eqn 71 --> var 49 eqn 72 --> var 46 eqn 73 --> var 27 eqn 74 --> var 26 eqn 75 --> var 25 eqn 76 --> var -1 eqn 77 --> var 24 eqn 78 --> var 66 eqn 79 --> var 23 eqn 80 --> var 56 eqn 81 --> var 43 eqn 82 --> var 14 eqn 83 --> var 38 eqn 84 --> var -1 eqn 85 --> var 77 eqn 86 --> var -1 eqn 87 --> var 18 eqn 88 --> var -1 eqn 89 --> var 37 eqn 90 --> var 10 eqn 91 --> var 11 eqn 92 --> var -1 eqn 93 --> var 60 eqn 94 --> var 5 eqn 95 --> var -1 eqn 96 --> var 28 eqn 97 --> var 29 eqn 98 --> var 16 eqn 99 --> var 17 eqn 100 --> var 87 eqn 101 --> var 51 eqn 102 --> var 44 eqn 103 --> var 86 eqn 104 --> var 85 eqn 105 --> var 84 eqn 106 --> var 83 eqn 107 --> var 82 eqn 108 --> var 81 eqn 109 --> var 79 eqn 110 --> var 75 eqn 111 --> var -1 eqn 112 --> var 71 eqn 113 --> var 1