Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.Controller.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.Controller,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.Controller") translateModel(Buildings.Fluid.CHPs.BaseClasses.Validation.Controller,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.CHPs.BaseClasses.Validation.Controller") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001281/0.001281, allocations: 105.5 kB / 16.38 MB, free: 6.48 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.001293/0.001294, allocations: 192.7 kB / 17.32 MB, free: 5.797 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.442/1.442, allocations: 205.1 MB / 223.2 MB, free: 12.27 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.722/1.722, allocations: 292.3 MB / 0.5496 GB, free: 17.59 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.605e-05/2.641e-05, allocations: 6.219 kB / 0.6729 GB, free: 5.852 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.Controller): time 0.006304/0.006346, allocations: 4.552 MB / 0.6773 GB, free: 1.27 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.005131/0.01152, allocations: 2.976 MB / 0.6802 GB, free: 14.28 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008358/0.01239, allocations: 31.81 kB / 0.6802 GB, free: 14.25 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001701/0.0141, allocations: 0.6754 MB / 0.6809 GB, free: 13.57 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.001006/0.01516, allocations: 417.7 kB / 0.6813 GB, free: 13.16 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001934/0.01711, allocations: 0.883 MB / 0.6822 GB, free: 12.29 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.002136/0.01925, allocations: 1.911 MB / 0.684 GB, free: 10.37 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001448/0.02071, allocations: 1.195 MB / 0.6852 GB, free: 9.148 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000858/0.02158, allocations: 0.7631 MB / 0.6859 GB, free: 8.383 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000678/0.02227, allocations: 0.7352 MB / 0.6867 GB, free: 7.645 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001908/0.02247, allocations: 176 kB / 0.6868 GB, free: 7.473 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007171/0.02319, allocations: 359.7 kB / 0.6872 GB, free: 7.121 MB / 0.5606 GB Notification: Performance of combineBinaries: time 0.001361/0.02456, allocations: 2.151 MB / 0.6893 GB, free: 4.945 MB / 0.5606 GB Notification: Performance of replaceArrayConstructors: time 0.0007416/0.02531, allocations: 1.351 MB / 0.6906 GB, free: 3.574 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0002721/0.02559, allocations: 219.3 kB / 0.6908 GB, free: 3.359 MB / 0.5606 GB Notification: Performance of FrontEnd: time 0.0003143/0.02591, allocations: 123.1 kB / 0.6909 GB, free: 3.238 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: 305 (289) * Number of variables: 285 (269) Notification: Performance of Bindings: time 0.006534/0.03245, allocations: 6.691 MB / 0.6975 GB, free: 12.32 MB / 0.5762 GB Notification: Performance of FunctionAlias: time 0.0006684/0.03313, allocations: 0.61 MB / 0.698 GB, free: 11.7 MB / 0.5762 GB Notification: Performance of Early Inline: time 0.004199/0.03734, allocations: 4.18 MB / 0.7021 GB, free: 7.465 MB / 0.5762 GB Notification: Performance of simplify1: time 0.0002968/0.03765, allocations: 231.7 kB / 0.7023 GB, free: 7.238 MB / 0.5762 GB Notification: Performance of Alias: time 0.007203/0.04486, allocations: 5.972 MB / 0.7082 GB, free: 0.6836 MB / 0.5762 GB Notification: Performance of simplify2: time 0.000257/0.04515, allocations: 163.8 kB / 0.7083 GB, free: 0.5234 MB / 0.5762 GB Notification: Performance of Events: time 0.00134/0.0465, allocations: 1.044 MB / 0.7094 GB, free: 15.45 MB / 0.5919 GB Notification: Performance of Detect States: time 0.001374/0.04788, allocations: 1.515 MB / 0.7108 GB, free: 13.89 MB / 0.5919 GB Notification: Performance of Partitioning: time 0.00136/0.04925, allocations: 1.316 MB / 0.7121 GB, free: 12.49 MB / 0.5919 GB Error: Internal error NBSorting.tarjan failed to sort system: system vars Variables (203/230) ********************************* (1) [DISC] (1) Boolean $SEV_29 (2) [DISC] (1) Boolean $SEV_28 (3) [DISC] (1) Boolean $SEV_27 (4) [DISC] (3) protected Boolean[3] con.plaOff.inPort.occupied (5) [DISC] (1) Boolean $SEV_26 (6) [DISC] (1) protected Boolean con.transition8.outPort.set (7) [DISC] (1) Boolean $SEV_25 (8) [DISC] (1) Boolean $SEV_24 (9) [DISC] (1) Boolean $SEV_23 (10) [DISC] (1) Boolean $SEV_22 (11) [DISC] (1) Boolean $SEV_21 (12) [DISC] (1) Boolean $SEV_20 (13) [DISC] (1) Boolean $TEV_9 (14) [DISC] (1) Boolean[1] con.pumOn.inPort.set (15) [DISC] (1) Boolean $TEV_8 (16) [DISC] (1) Boolean $TEV_7 (17) [DISC] (3) protected Boolean[3] con.plaOff.inPort.set (18) [DISC] (1) Boolean $TEV_6 (19) [DISC] (1) protected Boolean con.transition1.outPort.set (20) [DISC] (1) protected Boolean con.transition7.inPort.available (21) [DISC] (1) Boolean $TEV_5 (22) [DISC] (1) Boolean $TEV_4 (23) [DISC] (1) Boolean $TEV_3 (24) [DISC] (1) protected Boolean con.transition6.outPort.set (25) [DISC] (1) Boolean $TEV_2 (26) [DISC] (1) Boolean $TEV_1 (27) [DISC] (1) Boolean $TEV_0 (28) [DISC] (1) protected Boolean con.transition7.outPort.occupied (29) [ALGB] (1) protected Real con.transition4.t_dummy (30) [DISC] (1) Boolean $TEV_36 (31) [DISC] (1) Boolean $TEV_35 (32) [DISC] (1) protected Boolean con.transition6.outPort.occupied (33) [DISC] (1) protected Boolean con.transition3.outPort.set (34) [DISC] (1) Boolean $TEV_34 (35) [DISC] (1) Boolean $TEV_33 (36) [DISC] (1) Boolean $TEV_32 (37) [DISC] (2) Boolean[2] con.cooDow.inPort.set (38) [DISC] (1) Boolean $TEV_31 (39) [DISC] (1) Boolean[1] con.staBy.inPort.set (40) [DISC] (1) Boolean $TEV_30 (41) [DISC] (1) Boolean $SEV_19 (42) [DISC] (2) Boolean[2] $SEV_36[$i1] (43) [DISC] (1) Boolean $SEV_18 (44) [DISC] (1) Boolean $SEV_17 (45) [DISS] (1) protected Boolean con.and1.u2 (46) [DISC] (1) Boolean $SEV_16 (47) [DISC] (1) Boolean $SEV_15 (48) [DISC] (1) protected final Boolean con.transition9.localCondition = con.transition9.localCondition (49) [DISC] (3) Boolean[3] $SEV_14[$i1] (50) [DISC] (1) Boolean $SEV_12 (51) [DISC] (1) Boolean $SEV_11 (52) [DISC] (1) Boolean $SEV_10 (53) [DISS] (1) protected discrete Real avaSig.combiTimeTable.nextTimeEvent (fixed = true, start = 0.0) (54) [DISC] (1) protected Boolean con.staBy.newActive (55) [DISS] (1) protected discrete Real avaSig.combiTimeTable.nextTimeEventScaled (fixed = true, start = 0.0) (56) [DISC] (1) Boolean $TEV_29 (57) [DISC] (1) Boolean $TEV_28 (58) [DISC] (1) protected Boolean con.plaOff.outerStatePort.localActive = con.plaOff.outerStatePort.localActive (59) [DISC] (1) Boolean $TEV_27 (60) [DISC] (1) Boolean $TEV_26 (61) [DISC] (1) Boolean $TEV_25 (62) [DISS] (1) protected discrete Real runSig.combiTimeTable.nextTimeEvent (fixed = true, start = 0.0) (63) [DISC] (1) Boolean $TEV_24 (64) [DISS] (1) protected Boolean con.pumOn.oldActive (65) [DISC] (1) Boolean $TEV_23 (66) [DISC] (1) protected Boolean[1] con.nor.outPort.reset (67) [ALGB] (1) protected flow Real con.staBy.outerStatePort.subgraphStatePort.activeSteps (68) [DISC] (1) Boolean $TEV_22 (69) [DISC] (1) Boolean $TEV_21 (70) [DISC] (1) Boolean $TEV_20 (71) [DISC] (1) protected Boolean[1] con.plaOff.outPort.available (72) [DISC] (1) protected Boolean con.warUp.outerStatePort.localActive = con.warUp.outerStatePort.localActive (73) [DISC] (1) protected Boolean[1] con.nor.inPort.set (74) [ALGB] (1) protected flow Real con.pumOn.outerStatePort.subgraphStatePort.activeSteps (75) [DISC] (2) Boolean[2] con.cooDow.outPort.reset (76) [DISS] (1) protected Boolean con.nor.oldActive (77) [DISS] (1) protected Boolean con.staBy.oldActive (78) [ALGB] (1) Real[1] avaSig.combiTimeTable.y (79) [ALGB] (1) protected Real[1] mWat_flow.tab.y (80) [DISC] (1) Boolean $FUN_9 (81) [DISC] (1) Boolean $FUN_8 (82) [DISC] (1) Boolean $FUN_7 (83) [DISC] (1) protected Boolean con.transition2.outPort.set (84) [DISC] (1) Boolean $FUN_6 (85) [DISC] (1) Boolean $FUN_5 (86) [DISC] (1) Boolean $FUN_4 (87) [ALGB] (1) Real avaSig.realToBoolean.u (88) [DISC] (1) protected Boolean con.transition3.outPort.occupied (89) [DISC] (1) Boolean $FUN_3 (90) [DISC] (1) Boolean $TEV_19 (91) [DISC] (1) Boolean $FUN_2 (92) [DISC] (2) Boolean[2] $SEV_35[$i1] (93) [DISC] (1) Boolean $TEV_18 (94) [DISC] (1) protected Boolean con.pumOn.newActive (95) [DISC] (1) Boolean $FUN_1 (96) [DISC] (1) Boolean $TEV_17 (97) [DISS] (1) protected discrete Real runSig.combiTimeTable.nextTimeEventScaled (fixed = true, start = 0.0) (98) [DISC] (1) Boolean $TEV_16 (99) [DISC] (1) Boolean $TEV_15 (100) [DISC] (1) Boolean $TEV_14 (101) [DISC] (1) enumeration Buildings.Fluid.CHPs.BaseClasses.Types.Mode(Off, StandBy, PumpOn, WarmUp, Normal, CoolDown) con.opeMod (102) [DISC] (2) Boolean[2] $SEV_41[$i1] (103) [DISC] (1) Boolean $TEV_13 (104) [DISC] (1) protected final Boolean con.transition6.localCondition = con.transition6.localCondition (105) [DISC] (3) Boolean[3] $SEV_13[$i1] (106) [DISC] (1) Boolean $TEV_12 (107) [DISC] (1) Boolean $TEV_11 (108) [DISC] (1) protected Boolean con.transition4.outPort.set (109) [DISC] (1) Boolean $TEV_10 (110) [DISC] (1) protected Boolean con.transition10.outPort.set (111) [DISC] (1) protected Boolean con.nor.newActive (112) [DISC] (1) protected Boolean con.transition10.inPort.available (113) [DISS] (1) protected discrete Real mWat_flow.tab.nextTimeEvent (fixed = true, start = 0.0) (114) [ALGB] (1) protected Real con.warUpCtr.timer.y (115) [DISC] (1) protected final Boolean con.transition3.localCondition = con.transition3.localCondition (116) [ALGB] (1) protected flow Real con.plaOff.outerStatePort.subgraphStatePort.activeSteps (117) [DISC] (1) protected Boolean con.transition9.outPort.occupied (118) [DISC] (1) protected Boolean[1] con.nor.inPort.occupied (119) [DISS] (1) protected discrete Real con.timer.entryTime (120) [ALGB] (1) protected flow Real con.cooDow.outerStatePort.subgraphStatePort.activeSteps (121) [DISC] (2) Boolean[2] con.pumOn.outPort.reset (122) [DISC] (1) protected Boolean con.hys.y (123) [DISC] (1) protected Boolean con.transition4.inPort.available (124) [DISC] (2) Boolean[2] con.warUp.outPort.available (125) [ALGB] (1) protected Real con.transition4.t (126) [DISC] (1) protected Boolean con.transition2.inPort.available (127) [DISC] (1) Boolean $FUN_12 (128) [DISC] (1) protected Boolean con.assWatMas.not1.u (129) [DISC] (1) Boolean $FUN_11 (130) [DISC] (1) Boolean $FUN_10 (131) [DISC] (1) protected Boolean con.transition3.inPort.available (132) [ALGB] (1) Real runSig.realToBoolean.u (133) [DISC] (1) Boolean[1] con.pumOn.inPort.occupied (134) [DISC] (2) Boolean[2] $SEV_39[$i1] (135) [DISC] (1) Boolean $SEV_9 (136) [DISS] (1) protected discrete Real con.warUpCtr.timer.entryTime (137) [DISC] (1) Boolean $SEV_8 (138) [DISC] (1) Boolean $SEV_6 (139) [ALGB] (1) protected flow Real con.nor.outerStatePort.subgraphStatePort.activeSteps (140) [ALGB] (1) protected flow Real stateGraphRoot.subgraphStatePort.activeSteps (141) [DISC] (2) Boolean[2] $SEV_34[$i1] (142) [DISC] (1) protected Boolean con.plaOff.newActive (143) [ALGB] (1) Real[1] mWat_flow.y (144) [DISC] (1) protected Boolean con.transition8.inPort.available (145) [DISC] (1) protected Boolean con.transition8.outPort.occupied (146) [DISC] (1) protected Boolean con.transition9.inPort.available (147) [DISS] (1) protected Boolean con.warUp.oldActive (148) [DISC] (1) Boolean[1] con.staBy.inPort.occupied (149) [DISC] (1) protected Boolean con.transition5.outPort.set (150) [DISC] (1) protected Boolean con.nor.outerStatePort.localActive = con.nor.outerStatePort.localActive (151) [DISC] (1) protected Boolean con.transition2.outPort.occupied (152) [DISC] (1) protected Boolean con.staBy.outerStatePort.localActive = con.staBy.outerStatePort.localActive (153) [DISS] (1) protected Boolean con.plaOff.oldActive (154) [DISC] (1) protected Boolean con.transition1.outPort.occupied (155) [DISC] (1) protected final Boolean con.transition7.localCondition = con.transition7.localCondition (156) [DISS] (1) protected Boolean con.cooDow.oldActive (157) [DISC] (2) Boolean[2] con.cooDow.outPort.available (158) [DISC] (1) protected Boolean con.warUp.newActive (159) [DISC] (1) protected Boolean con.pumOn.outerStatePort.localActive = con.pumOn.outerStatePort.localActive (160) [DISC] (1) protected Boolean con.transition4.enableFire (161) [ALGB] (1) protected Real con.add2.y (162) [DISC] (2) Boolean[2] con.warUp.inPort.set (163) [DISC] (2) Boolean[2] $SEV_38[$i1] (164) [DISC] (1) protected Boolean con.transition10.outPort.occupied (165) [DISS] (1) protected discrete Real mWat_flow.tab.nextTimeEventScaled (fixed = true, start = 0.0) (166) [DISC] (1) protected Boolean con.transition9.outPort.set (167) [DISC] (1) Boolean $SEV_47 (168) [DISC] (1) Boolean $SEV_46 (169) [DISC] (2) Boolean[2] con.pumOn.outPort.available (170) [DISC] (1) protected Boolean[1] con.nor.outPort.available (171) [ALGB] (1) Real[1] runSig.combiTimeTable.y (172) [DISC] (1) Boolean $SEV_44 (173) [DISC] (1) Boolean $SEV_42 (174) [ALGB] (1) protected Real con.timer.y (175) [DISC] (1) Boolean $SEV_40 (176) [DISC] (2) Boolean[2] con.cooDow.inPort.occupied (177) [DISC] (2) Boolean[2] con.staBy.outPort.available (178) [DISC] (2) Boolean[2] con.staBy.outPort.reset (179) [DISC] (1) protected Boolean con.transition7.outPort.set (180) [DISC] (2) Boolean[2] con.warUp.inPort.occupied (181) [DISC] (1) protected Boolean con.cooDow.outerStatePort.localActive = con.cooDow.outerStatePort.localActive (182) [DISC] (1) protected Boolean con.cooDow.newActive (183) [ALGB] (1) protected flow Real con.warUp.outerStatePort.subgraphStatePort.activeSteps (184) [DISC] (1) protected Boolean[1] con.plaOff.outPort.reset (185) [DISC] (1) protected Boolean con.transition4.outPort.occupied (186) [ALGB] (1) protected Real con.assWatMas.hys.u (187) [DISC] (1) protected Boolean con.transition5.outPort.occupied (188) [ALGB] (1) protected Real con.max.y (189) [DISC] (1) Boolean $SEV_37 (190) [DISS] (1) protected Boolean con.timer.passed (191) [DISC] (1) Boolean $SEV_33 (192) [DISC] (1) Boolean $SEV_32 (193) [DISC] (1) Boolean $SEV_31 (194) [DISC] (1) protected Boolean con.assWatMas.nand.y (195) [DISC] (1) Boolean $SEV_30 (196) [DISC] (2) Boolean[2] con.warUp.outPort.reset (197) [DISC] (1) protected final Boolean con.transition5.localCondition = con.transition5.localCondition (198) [DISC] (1) protected final Boolean con.transition10.localCondition = con.transition10.localCondition (199) [DISC] (1) protected Boolean con.transition6.inPort.available (200) [DISC] (2) Boolean[2] $SEV_43[$i1] (201) [DISC] (1) protected Boolean con.transition5.inPort.available (202) [DISC] (1) protected Boolean con.transition1.inPort.available (203) [DISC] (1) protected Integer stateGraphRoot.activeSteps system eqns Equations (223/250) ********************************* (1) [SCAL] (1) con.pumOn.inPort[1].set = false ($RES_SIM_204) (2) [FOR-] (2) ($RES_SIM_205) (2) [----] for $i1 in 1:2 loop (2) [----] [SCAL] (1) con.pumOn.outPort[$i1].available = if $SEV_34[$i1] then con.pumOn.outerStatePort.localActive else $SEV_41[$i1] ($RES_SIM_206) (2) [----] end for; (3) [WHEN] (1)when false then (3) [----] con.plaOff.oldActive := con.plaOff.outerStatePort.localActive (3) [----] end when; (4) [SCAL] (1) con.plaOff.newActive = $SEV_15 ($RES_SIM_81) (5) [SCAL] (1) con.transition1.outPort.set = $SEV_21 ($RES_SIM_121) (6) [SCAL] (1) con.pumOn.inPort[1].occupied = con.pumOn.outerStatePort.localActive ($RES_SIM_207) (7) [SCAL] (1) con.plaOff.outerStatePort.localActive = $TEV_5 ($RES_SIM_82) (8) [WHEN] (1)when false then (8) [----] con.pumOn.oldActive := con.pumOn.outerStatePort.localActive (8) [----] end when; (9) [SCAL] (1) con.pumOn.newActive = $SEV_42 ($RES_SIM_209) (10) [SCAL] (1) con.plaOff.outerStatePort.subgraphStatePort.activeSteps = if con.plaOff.outerStatePort.localActive then 1.0 else 0.0 ($RES_SIM_84) (11) [SCAL] (1) con.transition6.outPort.set = $SEV_16 ($RES_SIM_87) (12) [SCAL] (1) con.assWatMas.not1.u = $SEV_22 ($RES_SIM_127) (13) [SCAL] (1) con.assWatMas.nand.y = not $SEV_23 ($RES_SIM_128) (14) [FOR-] (2) ($RES_EVT_450) (14) [----] for $i1 in 1:2 loop (14) [----] [SCAL] (1) $SEV_41[$i1] = con.pumOn.outPort[$i1 - 1].available and not con.pumOn.outPort[$i1 - 1].reset ($RES_EVT_451) (14) [----] end for; (15) [SCAL] (1) $FUN_1 = Modelica.StateGraph.Temporary.anyTrue(con.staBy.inPort.set) ($RES_$AUX_363) (16) [SCAL] (1) $SEV_42 = $FUN_3 or con.pumOn.outerStatePort.localActive and not $FUN_4 ($RES_EVT_452) (17) [SCAL] (1) $FUN_2 = Modelica.StateGraph.Temporary.anyTrue(con.staBy.outPort.reset) ($RES_$AUX_362) (18) [FOR-] (2) ($RES_EVT_453) (18) [----] for $i1 in 1:2 loop (18) [----] [SCAL] (1) $SEV_43[$i1] = con.staBy.outPort[$i1 - 1].available and not con.staBy.outPort[$i1 - 1].reset ($RES_EVT_454) (18) [----] end for; (19) [SCAL] (1) $FUN_3 = Modelica.StateGraph.Temporary.anyTrue(con.pumOn.inPort.set) ($RES_$AUX_361) (20) [SCAL] (1) $FUN_4 = Modelica.StateGraph.Temporary.anyTrue(con.pumOn.outPort.reset) ($RES_$AUX_360) (21) [SCAL] (1) $SEV_44 = $FUN_1 or con.staBy.outerStatePort.localActive and not $FUN_2 ($RES_EVT_455) (22) [SCAL] (1) $TEV_5 = $PRE.con.plaOff.newActive ($RES_EVT_370) (23) [SCAL] (1) $TEV_6 = $PRE.con.transition6.outPort.set ($RES_EVT_371) (24) [SCAL] (1) $SEV_46 = runSig.realToBoolean.u >= runSig.realToBoolean.threshold ($RES_EVT_457) (25) [SCAL] (1) $TEV_7 = $PRE.con.and1.u2 ($RES_EVT_372) (26) [SCAL] (1) $SEV_47 = time >= $PRE.runSig.combiTimeTable.nextTimeEvent ($RES_EVT_458) (27) [SCAL] (1) $TEV_8 = $PRE.con.warUpCtr.timer.entryTime ($RES_EVT_373) (28) [SCAL] (1) $TEV_9 = $PRE.con.transition8.outPort.set ($RES_EVT_374) (29) [SCAL] (1) $TEV_10 = $PRE.con.nor.oldActive ($RES_EVT_375) (30) [SCAL] (1) $TEV_11 = $PRE.con.nor.outerStatePort.localActive ($RES_EVT_376) (31) [SCAL] (1) $TEV_12 = $PRE.con.nor.newActive ($RES_EVT_377) (32) [SCAL] (1) $TEV_13 = $PRE.con.transition2.outPort.set ($RES_EVT_378) (33) [SCAL] (1) $TEV_14 = $PRE.con.transition1.outPort.set ($RES_EVT_379) (34) [SCAL] (1) con.pumOn.outerStatePort.localActive = $TEV_30 ($RES_SIM_210) (35) [SCAL] (1) con.pumOn.outerStatePort.subgraphStatePort.activeSteps = if con.pumOn.outerStatePort.localActive then 1.0 else 0.0 ($RES_SIM_212) (36) [FOR-] (2) ($RES_SIM_213) (36) [----] for $i1 in 1:2 loop (36) [----] [SCAL] (1) con.staBy.outPort[$i1].reset = false ($RES_SIM_214) (36) [----] end for; (37) [SCAL] (1) con.transition10.localCondition = $SEV_24 ($RES_SIM_130) (38) [SCAL] (1) con.staBy.inPort[1].set = false ($RES_SIM_215) (39) [FOR-] (2) ($RES_SIM_216) (39) [----] for $i1 in 1:2 loop (39) [----] [SCAL] (1) con.staBy.outPort[$i1].available = if $SEV_34[$i1] then con.staBy.outerStatePort.localActive else $SEV_43[$i1] ($RES_SIM_217) (39) [----] end for; (40) [SCAL] (1) con.staBy.inPort[1].occupied = con.staBy.outerStatePort.localActive ($RES_SIM_218) (41) [SCAL] (1) con.warUpCtr.timer.y = if con.warUp.outerStatePort.localActive then time - con.warUpCtr.timer.entryTime else 0.0 ($RES_SIM_93) (42) [SCAL] (1) con.transition10.outPort.set = $SEV_25 ($RES_SIM_133) (43) [WHEN] (1)when false then (43) [----] con.staBy.oldActive := con.staBy.outerStatePort.localActive (43) [----] end when; (44) [WHEN] (1)when not con.warUp.outerStatePort.localActive then (44) [----] con.warUpCtr.timer.entryTime := $PRE.con.warUpCtr.timer.entryTime (44) [----] else when $SEV_17 then (44) [----] con.warUpCtr.timer.entryTime := $PRE.con.warUpCtr.timer.entryTime (44) [----] else when con.warUp.outerStatePort.localActive then (44) [----] con.warUpCtr.timer.entryTime := time (44) [----] end when; (45) [WHEN] (1)when not con.warUp.outerStatePort.localActive then (45) [----] con.and1.u2 := false (45) [----] else when $SEV_17 then (45) [----] con.and1.u2 := true (45) [----] else when con.warUp.outerStatePort.localActive then (45) [----] con.and1.u2 := con.warUpCtr.timer.t <= 0.0 (45) [----] end when; (46) [SCAL] (1) $FUN_5 = Modelica.StateGraph.Temporary.anyTrue(con.warUp.inPort.set) ($RES_$AUX_359) (47) [SCAL] (1) con.transition8.outPort.set = $SEV_18 ($RES_SIM_98) (48) [SCAL] (1) con.transition7.localCondition = $SEV_26 ($RES_SIM_138) (49) [SCAL] (1) $FUN_6 = Modelica.StateGraph.Temporary.anyTrue(con.warUp.outPort.reset) ($RES_$AUX_358) (50) [SCAL] (1) $FUN_7 = Modelica.StateGraph.Temporary.anyTrue(con.cooDow.inPort.set) ($RES_$AUX_357) (51) [SCAL] (1) $FUN_8 = Modelica.StateGraph.Temporary.anyTrue(con.cooDow.outPort.reset) ($RES_$AUX_356) (52) [SCAL] (1) $FUN_9 = Modelica.StateGraph.Temporary.anyTrue(con.nor.inPort.set) ($RES_$AUX_355) (53) [SCAL] (1) $FUN_10 = Modelica.StateGraph.Temporary.anyTrue(con.nor.outPort.reset) ($RES_$AUX_354) (54) [SCAL] (1) $FUN_11 = Modelica.StateGraph.Temporary.anyTrue(con.plaOff.inPort.set) ($RES_$AUX_353) (55) [SCAL] (1) $FUN_12 = Modelica.StateGraph.Temporary.anyTrue(con.plaOff.outPort.reset) ($RES_$AUX_352) (56) [SCAL] (1) $TEV_15 = $PRE.con.assWatMas.not1.u ($RES_EVT_380) (57) [SCAL] (1) $TEV_16 = $PRE.con.transition10.outPort.set ($RES_EVT_381) (58) [SCAL] (1) $TEV_17 = $PRE.con.transition7.outPort.set ($RES_EVT_382) (59) [SCAL] (1) $TEV_18 = $PRE.con.transition9.outPort.set ($RES_EVT_383) (60) [SCAL] (1) $TEV_19 = $PRE.con.transition5.outPort.set ($RES_EVT_384) (61) [SCAL] (1) $TEV_20 = $PRE.con.transition3.outPort.set ($RES_EVT_385) (62) [SCAL] (1) $TEV_21 = $PRE.con.hys.y ($RES_EVT_386) (63) [SCAL] (1) $TEV_22 = $PRE.con.cooDow.oldActive ($RES_EVT_387) (64) [SCAL] (1) con.transition6.outPort.set = con.nor.inPort[1].set ($RES_SIM_301) (65) [SCAL] (1) $TEV_23 = $PRE.con.cooDow.outerStatePort.localActive ($RES_EVT_388) (66) [SCAL] (1) con.transition6.outPort.occupied = con.nor.inPort[1].occupied ($RES_SIM_302) (67) [SCAL] (1) $TEV_24 = $PRE.con.cooDow.newActive ($RES_EVT_389) (68) [SCAL] (1) con.plaOff.outPort[1].reset = con.transition1.outPort.set ($RES_SIM_303) (69) [SCAL] (1) con.plaOff.outPort[1].available = con.transition1.inPort.available ($RES_SIM_304) (70) [SCAL] (1) con.nor.outPort[1].reset = con.transition8.outPort.set ($RES_SIM_305) (71) [SCAL] (1) con.staBy.newActive = $SEV_44 ($RES_SIM_220) (72) [SCAL] (1) con.nor.outPort[1].available = con.transition8.inPort.available ($RES_SIM_306) (73) [SCAL] (1) con.staBy.outerStatePort.localActive = $TEV_33 ($RES_SIM_221) (74) [SCAL] (1) con.staBy.outerStatePort.subgraphStatePort.activeSteps = if con.staBy.outerStatePort.localActive then 1.0 else 0.0 ($RES_SIM_223) (75) [SCAL] (1) not con.transition5.localCondition = $SEV_46 ($RES_SIM_225) (76) [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_36) ($RES_SIM_226) (77) [SCAL] (1) con.transition7.outPort.set = $SEV_27 ($RES_SIM_141) (78) [WHEN] (1)when {$SEV_47, initial()} then (78) [----] runSig.combiTimeTable.nextTimeEventScaled := Modelica.Blocks.Tables.Internal.getNextTimeEvent(runSig.combiTimeTable.tableID, time) (78) [----] end when; (79) [WHEN] (1)when {$SEV_47, initial()} then (79) [----] runSig.combiTimeTable.nextTimeEvent := if runSig.combiTimeTable.nextTimeEventScaled < 1e60 then runSig.combiTimeTable.nextTimeEventScaled else 1e60 (79) [----] end when; (80) [SCAL] (1) con.transition9.outPort.set = $SEV_28 ($RES_SIM_148) (81) [SCAL] (1) $TEV_25 = $PRE.con.warUp.oldActive ($RES_EVT_390) (82) [SCAL] (1) $TEV_26 = $PRE.con.warUp.outerStatePort.localActive ($RES_EVT_391) (83) [SCAL] (1) $TEV_27 = $PRE.con.warUp.newActive ($RES_EVT_392) (84) [SCAL] (1) $TEV_28 = $PRE.con.pumOn.oldActive ($RES_EVT_393) (85) [SCAL] (1) $TEV_29 = $PRE.con.pumOn.outerStatePort.localActive ($RES_EVT_394) (86) [SCAL] (1) $TEV_30 = $PRE.con.pumOn.newActive ($RES_EVT_395) (87) [SCAL] (1) $TEV_31 = $PRE.con.staBy.oldActive ($RES_EVT_396) (88) [SCAL] (1) $TEV_32 = $PRE.con.staBy.outerStatePort.localActive ($RES_EVT_397) (89) [SCAL] (1) $TEV_33 = $PRE.con.staBy.newActive ($RES_EVT_398) (90) [SCAL] (1) $TEV_34 = $PRE.mWat_flow.tab.nextTimeEventScaled ($RES_EVT_399) (91) [SCAL] (1) con.pumOn.outerStatePort.subgraphStatePort.activeSteps + con.warUp.outerStatePort.subgraphStatePort.activeSteps + con.cooDow.outerStatePort.subgraphStatePort.activeSteps + con.nor.outerStatePort.subgraphStatePort.activeSteps + con.plaOff.outerStatePort.subgraphStatePort.activeSteps + stateGraphRoot.subgraphStatePort.activeSteps + con.staBy.outerStatePort.subgraphStatePort.activeSteps = 0.0 ($RES_SIM_230) (92) [SCAL] (1) mWat_flow.y[1] = con.assWatMas.hys.u ($RES_SIM_231) (93) [ARRY] (1) mWat_flow.tab.y = mWat_flow.y ($RES_SIM_234) (94) [SCAL] (1) avaSig.combiTimeTable.y[1] = avaSig.realToBoolean.u ($RES_SIM_236) (95) [SCAL] (1) $TEV_35 = $PRE.avaSig.combiTimeTable.nextTimeEventScaled ($RES_EVT_400) (96) [SCAL] (1) con.transition5.outPort.set = $SEV_29 ($RES_SIM_155) (97) [SCAL] (1) $TEV_36 = $PRE.runSig.combiTimeTable.nextTimeEventScaled ($RES_EVT_401) (98) [SCAL] (1) $SEV_6 = time >= $PRE.mWat_flow.tab.nextTimeEvent ($RES_EVT_408) (99) [SCAL] (1) stateGraphRoot.activeSteps = -integer(stateGraphRoot.subgraphStatePort.activeSteps) ($RES_SIM_43) (100) [SCAL] (1) mWat_flow.tab.y[1] = mWat_flow.tab.p_offset[1] + Modelica.Blocks.Tables.Internal.getTimeTableValueNoDer(mWat_flow.tab.tableID, 1, time, mWat_flow.tab.nextTimeEventScaled, $TEV_34) ($RES_SIM_44) (101) [SCAL] (1) con.cooDow.outPort[2].reset = con.transition7.outPort.set ($RES_SIM_243) (102) [WHEN] (1)when {$SEV_6, initial()} then (102) [----] mWat_flow.tab.nextTimeEvent := if mWat_flow.tab.nextTimeEventScaled < 1e60 then mWat_flow.tab.nextTimeEventScaled else 1e60 (102) [----] end when; (103) [SCAL] (1) con.cooDow.outPort[2].available = con.transition7.inPort.available ($RES_SIM_244) (104) [WHEN] (1)when {$SEV_6, initial()} then (104) [----] mWat_flow.tab.nextTimeEventScaled := Modelica.Blocks.Tables.Internal.getNextTimeEvent(mWat_flow.tab.tableID, time) (104) [----] end when; (105) [SCAL] (1) con.cooDow.outPort[1].reset = con.transition10.outPort.set ($RES_SIM_245) (106) [SCAL] (1) con.cooDow.outPort[1].available = con.transition10.inPort.available ($RES_SIM_246) (107) [SCAL] (1) con.transition9.outPort.set = con.cooDow.inPort[2].set ($RES_SIM_247) (108) [SCAL] (1) con.transition3.outPort.set = $SEV_30 ($RES_SIM_162) (109) [SCAL] (1) not con.transition3.localCondition = $SEV_8 ($RES_SIM_49) (110) [SCAL] (1) con.transition9.outPort.occupied = con.cooDow.inPort[2].occupied ($RES_SIM_248) (111) [SCAL] (1) con.transition8.outPort.set = con.cooDow.inPort[1].set ($RES_SIM_249) (112) [SCAL] (1) $SEV_8 = avaSig.realToBoolean.u >= avaSig.realToBoolean.threshold ($RES_EVT_410) (113) [SCAL] (1) $SEV_9 = time >= $PRE.avaSig.combiTimeTable.nextTimeEvent ($RES_EVT_411) (114) [SCAL] (1) $SEV_10 = con.cooDow.outerStatePort.localActive and time >= (con.timer.t + $PRE.con.timer.entryTime) ($RES_EVT_412) (115) [SCAL] (1) con.transition6.localCondition = $SEV_31 ($RES_SIM_167) (116) [SCAL] (1) $SEV_11 = (not con.transition9.localCondition and con.transition4.inPort.available) and not con.transition4.outPort.occupied ($RES_EVT_413) (117) [SCAL] (1) $SEV_12 = con.transition4.enableFire and time >= ((time - con.transition4.t_dummy) + con.transition4.waitTime) ($RES_EVT_414) (118) [FOR-] (3) ($RES_EVT_415) (118) [----] for $i1 in 1:3 loop (118) [----] [SCAL] (1) $SEV_13[$i1] = $i1 == 1 ($RES_EVT_416) (118) [----] end for; (119) [FOR-] (3) ($RES_EVT_417) (119) [----] for $i1 in 1:3 loop (119) [----] [SCAL] (1) $SEV_14[$i1] = con.plaOff.inPort[$i1 - 1].occupied or con.plaOff.inPort[$i1 - 1].set ($RES_EVT_418) (119) [----] end for; (120) [SCAL] (1) $SEV_15 = $FUN_11 or con.plaOff.outerStatePort.localActive and not $FUN_12 ($RES_EVT_419) (121) [SCAL] (1) runSig.combiTimeTable.y[1] = runSig.realToBoolean.u ($RES_SIM_333) (122) [SCAL] (1) avaSig.combiTimeTable.y[1] = avaSig.combiTimeTable.p_offset[1] + Modelica.Blocks.Tables.Internal.getTimeTableValueNoDer(avaSig.combiTimeTable.tableID, 1, time, avaSig.combiTimeTable.nextTimeEventScaled, $TEV_35) ($RES_SIM_50) (123) [WHEN] (1)when {$SEV_9, initial()} then (123) [----] avaSig.combiTimeTable.nextTimeEventScaled := Modelica.Blocks.Tables.Internal.getNextTimeEvent(avaSig.combiTimeTable.tableID, time) (123) [----] end when; (124) [SCAL] (1) con.transition8.outPort.occupied = con.cooDow.inPort[1].occupied ($RES_SIM_250) (125) [WHEN] (1)when {$SEV_9, initial()} then (125) [----] avaSig.combiTimeTable.nextTimeEvent := if avaSig.combiTimeTable.nextTimeEventScaled < 1e60 then avaSig.combiTimeTable.nextTimeEventScaled else 1e60 (125) [----] end when; (126) [SCAL] (1) con.transition7.outPort.set = con.warUp.inPort[2].set ($RES_SIM_251) (127) [SCAL] (1) con.transition7.outPort.occupied = con.warUp.inPort[2].occupied ($RES_SIM_252) (128) [SCAL] (1) con.transition4.outPort.set = con.warUp.inPort[1].set ($RES_SIM_253) (129) [-IF-] (1)if con.plaOff.outerStatePort.localActive then (129) [----] [SCAL] (1) con.opeMod = Buildings.Fluid.CHPs.BaseClasses.Types.Mode.Off ($RES_SIM_56) (129) [----] elseif con.staBy.outerStatePort.localActive then (129) [----] [SCAL] (1) con.opeMod = Buildings.Fluid.CHPs.BaseClasses.Types.Mode.StandBy ($RES_SIM_57) (129) [----] elseif con.pumOn.outerStatePort.localActive then (129) [----] [SCAL] (1) con.opeMod = Buildings.Fluid.CHPs.BaseClasses.Types.Mode.PumpOn ($RES_SIM_58) (129) [----] elseif con.warUp.outerStatePort.localActive then (129) [----] [SCAL] (1) con.opeMod = Buildings.Fluid.CHPs.BaseClasses.Types.Mode.WarmUp ($RES_SIM_59) (129) [----] elseif con.nor.outerStatePort.localActive then (129) [----] [SCAL] (1) con.opeMod = Buildings.Fluid.CHPs.BaseClasses.Types.Mode.Normal ($RES_SIM_60) (129) [----] else (129) [----] [SCAL] (1) con.opeMod = Buildings.Fluid.CHPs.BaseClasses.Types.Mode.CoolDown ($RES_SIM_61) (129) [----] end if; (130) [SCAL] (1) con.transition4.outPort.occupied = con.warUp.inPort[1].occupied ($RES_SIM_254) (131) [SCAL] (1) not con.transition9.localCondition = $SEV_32 ($RES_SIM_170) (132) [SCAL] (1) con.hys.y = $SEV_33 ($RES_SIM_171) (133) [SCAL] (1) con.warUp.outPort[2].reset = con.transition9.outPort.set ($RES_SIM_257) (134) [SCAL] (1) con.add2.y = con.add2.k1 * con.max.y + con.add2.k2 * con.assWatMas.hys.u ($RES_SIM_172) (135) [SCAL] (1) con.warUp.outPort[2].available = con.transition9.inPort.available ($RES_SIM_258) (136) [SCAL] (1) con.max.y = max(con.minWatFlo.k, con.con.k) ($RES_SIM_173) (137) [SCAL] (1) con.warUp.outPort[1].reset = con.transition6.outPort.set ($RES_SIM_259) (138) [SCAL] (1) $SEV_16 = (con.transition6.localCondition and con.transition6.inPort.available) and not con.transition6.outPort.occupied ($RES_EVT_420) (139) [SCAL] (1) $SEV_17 = con.warUp.outerStatePort.localActive and time >= (con.warUpCtr.timer.t + $PRE.con.warUpCtr.timer.entryTime) ($RES_EVT_421) (140) [FOR-] (2) ($RES_SIM_176) (140) [----] for $i1 in 1:2 loop (140) [----] [SCAL] (1) con.cooDow.outPort[$i1].reset = false ($RES_SIM_177) (140) [----] end for; (141) [SCAL] (1) $SEV_18 = (con.transition9.localCondition and con.transition8.inPort.available) and not con.transition8.outPort.occupied ($RES_EVT_422) (142) [SCAL] (1) $SEV_19 = $FUN_9 or con.nor.outerStatePort.localActive and not $FUN_10 ($RES_EVT_423) (143) [FOR-] (2) ($RES_SIM_178) (143) [----] for $i1 in 1:2 loop (143) [----] [SCAL] (1) con.cooDow.inPort[$i1].set = false ($RES_SIM_179) (143) [----] end for; (144) [SCAL] (1) $SEV_20 = (not con.transition5.localCondition and con.transition2.inPort.available) and not con.transition2.outPort.occupied ($RES_EVT_424) (145) [SCAL] (1) $SEV_21 = (not con.transition3.localCondition and con.transition1.inPort.available) and not con.transition1.outPort.occupied ($RES_EVT_425) (146) [SCAL] (1) $SEV_22 = not $PRE.con.assWatMas.not1.u and con.assWatMas.hys.u > con.assWatMas.hys.uHigh or $PRE.con.assWatMas.not1.u and con.assWatMas.hys.u >= con.assWatMas.hys.uLow ($RES_EVT_426) (147) [SCAL] (1) $SEV_23 = not con.transition5.localCondition and not con.assWatMas.not1.u ($RES_EVT_427) (148) [SCAL] (1) $SEV_24 = con.timer.passed and con.transition9.localCondition ($RES_EVT_428) (149) [SCAL] (1) $SEV_25 = (con.transition10.localCondition and con.transition10.inPort.available) and not con.transition10.outPort.occupied ($RES_EVT_429) (150) [SCAL] (1) con.warUp.outPort[1].available = con.transition6.inPort.available ($RES_SIM_260) (151) [SCAL] (1) con.pumOn.outPort[2].reset = con.transition5.outPort.set ($RES_SIM_261) (152) [SCAL] (1) con.timer.y = if con.cooDow.outerStatePort.localActive then time - con.timer.entryTime else 0.0 ($RES_SIM_63) (153) [SCAL] (1) con.nor.outPort[1].reset = false ($RES_SIM_103) (154) [SCAL] (1) con.pumOn.outPort[2].available = con.transition5.inPort.available ($RES_SIM_262) (155) [WHEN] (1)when not con.cooDow.outerStatePort.localActive then (155) [----] con.timer.passed := false (155) [----] else when $SEV_10 then (155) [----] con.timer.passed := true (155) [----] else when con.cooDow.outerStatePort.localActive then (155) [----] con.timer.passed := con.timer.t <= 0.0 (155) [----] end when; (156) [SCAL] (1) con.nor.inPort[1].set = false ($RES_SIM_104) (157) [SCAL] (1) con.pumOn.outPort[1].reset = con.transition4.outPort.set ($RES_SIM_263) (158) [WHEN] (1)when not con.cooDow.outerStatePort.localActive then (158) [----] con.timer.entryTime := $PRE.con.timer.entryTime (158) [----] else when $SEV_10 then (158) [----] con.timer.entryTime := $PRE.con.timer.entryTime (158) [----] else when con.cooDow.outerStatePort.localActive then (158) [----] con.timer.entryTime := time (158) [----] end when; (159) [SCAL] (1) con.nor.outPort[1].available = con.nor.outerStatePort.localActive ($RES_SIM_105) (160) [SCAL] (1) con.pumOn.outPort[1].available = con.transition4.inPort.available ($RES_SIM_264) (161) [SCAL] (1) con.nor.inPort[1].occupied = con.nor.outerStatePort.localActive ($RES_SIM_106) (162) [SCAL] (1) con.transition2.outPort.set = con.pumOn.inPort[1].set ($RES_SIM_265) (163) [FOR-] (2) ($RES_SIM_180) (163) [----] for $i1 in 1:2 loop (163) [----] [SCAL] (1) con.cooDow.outPort[$i1].available = if $SEV_34[$i1] then con.cooDow.outerStatePort.localActive else $SEV_35[$i1] ($RES_SIM_181) (163) [----] end for; (164) [WHEN] (1)when false then (164) [----] con.nor.oldActive := con.nor.outerStatePort.localActive (164) [----] end when; (165) [SCAL] (1) con.transition2.outPort.occupied = con.pumOn.inPort[1].occupied ($RES_SIM_266) (166) [SCAL] (1) con.nor.newActive = $SEV_19 ($RES_SIM_108) (167) [SCAL] (1) con.staBy.outPort[2].reset = con.transition3.outPort.set ($RES_SIM_267) (168) [SCAL] (1) con.transition4.enableFire = $SEV_11 ($RES_SIM_69) (169) [FOR-] (2) ($RES_SIM_182) (169) [----] for $i1 in 1:2 loop (169) [----] [SCAL] (1) con.cooDow.inPort[$i1].occupied = if $SEV_34[$i1] then con.cooDow.outerStatePort.localActive else $SEV_36[$i1] ($RES_SIM_183) (169) [----] end for; (170) [SCAL] (1) con.nor.outerStatePort.localActive = $TEV_12 ($RES_SIM_109) (171) [SCAL] (1) con.staBy.outPort[2].available = con.transition3.inPort.available ($RES_SIM_268) (172) [SCAL] (1) con.staBy.outPort[1].reset = con.transition2.outPort.set ($RES_SIM_269) (173) [WHEN] (1)when false then (173) [----] con.cooDow.oldActive := con.cooDow.outerStatePort.localActive (173) [----] end when; (174) [SCAL] (1) $SEV_26 = con.optCooDow.k and not con.transition9.localCondition ($RES_EVT_430) (175) [SCAL] (1) con.cooDow.newActive = $SEV_37 ($RES_SIM_185) (176) [SCAL] (1) $SEV_27 = (con.transition7.localCondition and con.transition7.inPort.available) and not con.transition7.outPort.occupied ($RES_EVT_431) (177) [SCAL] (1) con.cooDow.outerStatePort.localActive = $TEV_24 ($RES_SIM_186) (178) [SCAL] (1) $SEV_28 = (con.transition9.localCondition and con.transition9.inPort.available) and not con.transition9.outPort.occupied ($RES_EVT_432) (179) [SCAL] (1) $SEV_29 = (con.transition5.localCondition and con.transition5.inPort.available) and not con.transition5.outPort.occupied ($RES_EVT_433) (180) [SCAL] (1) con.cooDow.outerStatePort.subgraphStatePort.activeSteps = if con.cooDow.outerStatePort.localActive then 1.0 else 0.0 ($RES_SIM_188) (181) [SCAL] (1) $SEV_30 = (con.transition3.localCondition and con.transition3.inPort.available) and not con.transition3.outPort.occupied ($RES_EVT_434) (182) [FOR-] (2) ($RES_SIM_189) (182) [----] for $i1 in 1:2 loop (182) [----] [SCAL] (1) con.warUp.outPort[$i1].reset = false ($RES_SIM_190) (182) [----] end for; (183) [SCAL] (1) $SEV_31 = not con.transition9.localCondition and con.and1.u2 ($RES_EVT_435) (184) [SCAL] (1) $SEV_32 = con.hys.y and not con.transition5.localCondition ($RES_EVT_436) (185) [SCAL] (1) $SEV_33 = not $PRE.con.hys.y and con.add2.y > con.hys.uHigh or $PRE.con.hys.y and con.add2.y >= con.hys.uLow ($RES_EVT_437) (186) [FOR-] (2) ($RES_EVT_438) (186) [----] for $i1 in 1:2 loop (186) [----] [SCAL] (1) $SEV_34[$i1] = $i1 == 1 ($RES_EVT_439) (186) [----] end for; (187) [SCAL] (1) con.transition4.outPort.set = $SEV_12 ($RES_SIM_70) (188) [SCAL] (1) con.transition4.t = if con.transition4.enableFire then con.transition4.t_dummy else 0.0 ($RES_SIM_71) (189) [SCAL] (1) con.nor.outerStatePort.subgraphStatePort.activeSteps = if con.nor.outerStatePort.localActive then 1.0 else 0.0 ($RES_SIM_111) (190) [SCAL] (1) con.staBy.outPort[1].available = con.transition2.inPort.available ($RES_SIM_270) (191) [SCAL] (1) con.transition1.outPort.set = con.staBy.inPort[1].set ($RES_SIM_271) (192) [WHEN] (1)when con.transition4.enableFire then (192) [----] time - con.transition4.t_dummy := time (192) [----] end when; (193) [SCAL] (1) con.transition1.outPort.occupied = con.staBy.inPort[1].occupied ($RES_SIM_272) (194) [SCAL] (1) con.plaOff.outPort[1].reset = false ($RES_SIM_74) (195) [SCAL] (1) con.transition2.outPort.set = $SEV_20 ($RES_SIM_114) (196) [FOR-] (3) ($RES_SIM_75) (196) [----] for $i1 in 1:3 loop (196) [----] [SCAL] (1) con.plaOff.inPort[$i1].set = false ($RES_SIM_76) (196) [----] end for; (197) [SCAL] (1) con.transition10.outPort.set = con.plaOff.inPort[3].set ($RES_SIM_274) (198) [SCAL] (1) con.transition10.outPort.occupied = con.plaOff.inPort[3].occupied ($RES_SIM_275) (199) [SCAL] (1) con.plaOff.outPort[1].available = con.plaOff.outerStatePort.localActive ($RES_SIM_77) (200) [SCAL] (1) con.transition5.outPort.set = con.plaOff.inPort[2].set ($RES_SIM_276) (201) [FOR-] (3) ($RES_SIM_78) (201) [----] for $i1 in 1:3 loop (201) [----] [SCAL] (1) con.plaOff.inPort[$i1].occupied = if $SEV_13[$i1] then con.plaOff.outerStatePort.localActive else $SEV_14[$i1] ($RES_SIM_79) (201) [----] end for; (202) [FOR-] (2) ($RES_SIM_191) (202) [----] for $i1 in 1:2 loop (202) [----] [SCAL] (1) con.warUp.inPort[$i1].set = false ($RES_SIM_192) (202) [----] end for; (203) [SCAL] (1) con.transition5.outPort.occupied = con.plaOff.inPort[2].occupied ($RES_SIM_277) (204) [SCAL] (1) con.transition3.outPort.set = con.plaOff.inPort[1].set ($RES_SIM_278) (205) [FOR-] (2) ($RES_SIM_193) (205) [----] for $i1 in 1:2 loop (205) [----] [SCAL] (1) con.warUp.outPort[$i1].available = if $SEV_34[$i1] then con.warUp.outerStatePort.localActive else $SEV_38[$i1] ($RES_SIM_194) (205) [----] end for; (206) [SCAL] (1) con.transition3.outPort.occupied = con.plaOff.inPort[1].occupied ($RES_SIM_279) (207) [FOR-] (2) ($RES_EVT_440) (207) [----] for $i1 in 1:2 loop (207) [----] [SCAL] (1) $SEV_35[$i1] = con.cooDow.outPort[$i1 - 1].available and not con.cooDow.outPort[$i1 - 1].reset ($RES_EVT_441) (207) [----] end for; (208) [FOR-] (2) ($RES_SIM_195) (208) [----] for $i1 in 1:2 loop (208) [----] [SCAL] (1) con.warUp.inPort[$i1].occupied = if $SEV_34[$i1] then con.warUp.outerStatePort.localActive else $SEV_39[$i1] ($RES_SIM_196) (208) [----] end for; (209) [FOR-] (2) ($RES_EVT_442) (209) [----] for $i1 in 1:2 loop (209) [----] [SCAL] (1) $SEV_36[$i1] = con.cooDow.inPort[$i1 - 1].occupied or con.cooDow.inPort[$i1 - 1].set ($RES_EVT_443) (209) [----] end for; (210) [WHEN] (1)when false then (210) [----] con.warUp.oldActive := con.warUp.outerStatePort.localActive (210) [----] end when; (211) [SCAL] (1) con.warUp.newActive = $SEV_40 ($RES_SIM_198) (212) [SCAL] (1) $SEV_37 = $FUN_7 or con.cooDow.outerStatePort.localActive and not $FUN_8 ($RES_EVT_444) (213) [SCAL] (1) con.warUp.outerStatePort.localActive = $TEV_27 ($RES_SIM_199) (214) [FOR-] (2) ($RES_EVT_445) (214) [----] for $i1 in 1:2 loop (214) [----] [SCAL] (1) $SEV_38[$i1] = con.warUp.outPort[$i1 - 1].available and not con.warUp.outPort[$i1 - 1].reset ($RES_EVT_446) (214) [----] end for; (215) [FOR-] (2) ($RES_EVT_447) (215) [----] for $i1 in 1:2 loop (215) [----] [SCAL] (1) $SEV_39[$i1] = con.warUp.inPort[$i1 - 1].occupied or con.warUp.inPort[$i1 - 1].set ($RES_EVT_448) (215) [----] end for; (216) [SCAL] (1) $SEV_40 = $FUN_5 or con.warUp.outerStatePort.localActive and not $FUN_6 ($RES_EVT_449) (217) [SCAL] (1) $TEV_0 = $PRE.con.timer.passed ($RES_EVT_365) (218) [SCAL] (1) $TEV_1 = $PRE.con.timer.entryTime ($RES_EVT_366) (219) [SCAL] (1) $TEV_2 = $PRE.con.transition4.enableFire ($RES_EVT_367) (220) [SCAL] (1) $TEV_3 = $PRE.con.plaOff.oldActive ($RES_EVT_368) (221) [SCAL] (1) $TEV_4 = $PRE.con.plaOff.outerStatePort.localActive ($RES_EVT_369) (222) [SCAL] (1) con.warUp.outerStatePort.subgraphStatePort.activeSteps = if con.warUp.outerStatePort.localActive then 1.0 else 0.0 ($RES_SIM_201) (223) [FOR-] (2) ($RES_SIM_202) (223) [----] for $i1 in 1:2 loop (223) [----] [SCAL] (1) con.pumOn.outPort[$i1].reset = false ($RES_SIM_203) (223) [----] end for; =================== Scalar Matching =================== variable to equation ********************** var 1 --> eqn 192 var 2 --> eqn 191 var 3 --> eqn 189 var 4 --> eqn 218 var 5 --> eqn 219 var 6 --> eqn 220 var 7 --> eqn 187 var 8 --> eqn 52 var 9 --> eqn 160 var 10 --> eqn 159 var 11 --> eqn 158 var 12 --> eqn 157 var 13 --> eqn 156 var 14 --> eqn 155 var 15 --> eqn 31 var 16 --> eqn 1 var 17 --> eqn 30 var 18 --> eqn 28 var 19 --> eqn 211 var 20 --> eqn 212 var 21 --> eqn 213 var 22 --> eqn 26 var 23 --> eqn 6 var 24 --> eqn 108 var 25 --> eqn 25 var 26 --> eqn 247 var 27 --> eqn 246 var 28 --> eqn 12 var 29 --> eqn 245 var 30 --> eqn 244 var 31 --> eqn 243 var 32 --> eqn 136 var 33 --> eqn 207 var 34 --> eqn 102 var 35 --> eqn 100 var 36 --> eqn 71 var 37 --> eqn 179 var 38 --> eqn 95 var 39 --> eqn 94 var 40 --> eqn 93 var 41 --> eqn 116 var 42 --> eqn 112 var 43 --> eqn 92 var 44 --> eqn 42 var 45 --> eqn 91 var 46 --> eqn 152 var 47 --> eqn 232 var 48 --> eqn 233 var 49 --> eqn 151 var 50 --> eqn 148 var 51 --> eqn 50 var 52 --> eqn 147 var 53 --> eqn 129 var 54 --> eqn 140 var 55 --> eqn 126 var 56 --> eqn 127 var 57 --> eqn 128 var 58 --> eqn 122 var 59 --> eqn 121 var 60 --> eqn 119 var 61 --> eqn 134 var 62 --> eqn 76 var 63 --> eqn 132 var 64 --> eqn 90 var 65 --> eqn 89 var 66 --> eqn 8 var 67 --> eqn 88 var 68 --> eqn 87 var 69 --> eqn 86 var 70 --> eqn 84 var 71 --> eqn 72 var 72 --> eqn 9 var 73 --> eqn 70 var 74 --> eqn 75 var 75 --> eqn 79 var 76 --> eqn 68 var 77 --> eqn 67 var 78 --> eqn 66 var 79 --> eqn 216 var 80 --> eqn 237 var 81 --> eqn 69 var 82 --> eqn 38 var 83 --> eqn 110 var 84 --> eqn 106 var 85 --> eqn 176 var 86 --> eqn 48 var 87 --> eqn 131 var 88 --> eqn 105 var 89 --> eqn 57 var 90 --> eqn 56 var 91 --> eqn 55 var 92 --> eqn 173 var 93 --> eqn 54 var 94 --> eqn 51 var 95 --> eqn 23 var 96 --> eqn 99 var 97 --> eqn 227 var 98 --> eqn 22 var 99 --> eqn 65 var 100 --> eqn 19 var 101 --> eqn 228 var 102 --> eqn 229 var 103 --> eqn 64 var 104 --> eqn 10 var 105 --> eqn 17 var 106 --> eqn 63 var 107 --> eqn 83 var 108 --> eqn 62 var 109 --> eqn 61 var 110 --> eqn 36 var 111 --> eqn 138 var 112 --> eqn 15 var 113 --> eqn 16 var 114 --> eqn 35 var 115 --> eqn 120 var 116 --> eqn 123 var 117 --> eqn 124 var 118 --> eqn 125 var 119 --> eqn 34 var 120 --> eqn 33 var 121 --> eqn 202 var 122 --> eqn 32 var 123 --> eqn 47 var 124 --> eqn 178 var 125 --> eqn 111 var 126 --> eqn 107 var 127 --> eqn 46 var 128 --> eqn 114 var 129 --> eqn 11 var 130 --> eqn 115 var 131 --> eqn 172 var 132 --> eqn 169 var 133 --> eqn 193 var 134 --> eqn 168 var 135 --> eqn 162 var 136 --> eqn 141 var 137 --> eqn 171 var 138 --> eqn 225 var 139 --> eqn 226 var 140 --> eqn 203 var 141 --> eqn 205 var 142 --> eqn 60 var 143 --> eqn 13 var 144 --> eqn 59 var 145 --> eqn 58 var 146 --> eqn 184 var 147 --> eqn 130 var 148 --> eqn 7 var 149 --> eqn 240 var 150 --> eqn 241 var 151 --> eqn 118 var 152 --> eqn 49 var 153 --> eqn 117 var 154 --> eqn 103 var 155 --> eqn 204 var 156 --> eqn 96 var 157 --> eqn 200 var 158 --> eqn 201 var 159 --> eqn 5 var 160 --> eqn 98 var 161 --> eqn 77 var 162 --> eqn 133 var 163 --> eqn 144 var 164 --> eqn 234 var 165 --> eqn 45 var 166 --> eqn 101 var 167 --> eqn 183 var 168 --> eqn 177 var 169 --> eqn 78 var 170 --> eqn 4 var 171 --> eqn 208 var 172 --> eqn 53 var 173 --> eqn 186 var 174 --> eqn 174 var 175 --> eqn 175 var 176 --> eqn 235 var 177 --> eqn 37 var 178 --> eqn 180 var 179 --> eqn 143 var 180 --> eqn 137 var 181 --> eqn 135 var 182 --> eqn 238 var 183 --> eqn 239 var 184 --> eqn 215 var 185 --> eqn 109 var 186 --> eqn 85 var 187 --> eqn 29 var 188 --> eqn 27 var 189 --> eqn 2 var 190 --> eqn 3 var 191 --> eqn 170 var 192 --> eqn 81 var 193 --> eqn 24 var 194 --> eqn 18 var 195 --> eqn 163 var 196 --> eqn 242 var 197 --> eqn 181 var 198 --> eqn 182 var 199 --> eqn 43 var 200 --> eqn 44 var 201 --> eqn 39 var 202 --> eqn 40 var 203 --> eqn 82 var 204 --> eqn 230 var 205 --> eqn 231 var 206 --> eqn 190 var 207 --> eqn 188 var 208 --> eqn 248 var 209 --> eqn 73 var 210 --> eqn 139 var 211 --> eqn 97 var 212 --> eqn 223 var 213 --> eqn 145 var 214 --> eqn 236 var 215 --> eqn 166 var 216 --> eqn 199 var 217 --> eqn 198 var 218 --> eqn 197 var 219 --> eqn 14 var 220 --> eqn 113 var 221 --> eqn 146 var 222 --> eqn 142 var 223 --> eqn 80 var 224 --> eqn 41 var 225 --> eqn 161 var 226 --> eqn 20 var 227 --> eqn 21 var 228 --> eqn 165 var 229 --> eqn 74 var 230 --> eqn 104 equation to variable ********************** eqn 1 --> var 16 eqn 2 --> var 189 eqn 3 --> var 190 eqn 4 --> var 170 eqn 5 --> var 159 eqn 6 --> var 23 eqn 7 --> var 148 eqn 8 --> var 66 eqn 9 --> var 72 eqn 10 --> var 104 eqn 11 --> var 129 eqn 12 --> var 28 eqn 13 --> var 143 eqn 14 --> var 219 eqn 15 --> var 112 eqn 16 --> var 113 eqn 17 --> var 105 eqn 18 --> var 194 eqn 19 --> var 100 eqn 20 --> var 226 eqn 21 --> var 227 eqn 22 --> var 98 eqn 23 --> var 95 eqn 24 --> var 193 eqn 25 --> var 25 eqn 26 --> var 22 eqn 27 --> var 188 eqn 28 --> var 18 eqn 29 --> var 187 eqn 30 --> var 17 eqn 31 --> var 15 eqn 32 --> var 122 eqn 33 --> var 120 eqn 34 --> var 119 eqn 35 --> var 114 eqn 36 --> var 110 eqn 37 --> var 177 eqn 38 --> var 82 eqn 39 --> var 201 eqn 40 --> var 202 eqn 41 --> var 224 eqn 42 --> var 44 eqn 43 --> var 199 eqn 44 --> var 200 eqn 45 --> var 165 eqn 46 --> var 127 eqn 47 --> var 123 eqn 48 --> var 86 eqn 49 --> var 152 eqn 50 --> var 51 eqn 51 --> var 94 eqn 52 --> var 8 eqn 53 --> var 172 eqn 54 --> var 93 eqn 55 --> var 91 eqn 56 --> var 90 eqn 57 --> var 89 eqn 58 --> var 145 eqn 59 --> var 144 eqn 60 --> var 142 eqn 61 --> var 109 eqn 62 --> var 108 eqn 63 --> var 106 eqn 64 --> var 103 eqn 65 --> var 99 eqn 66 --> var 78 eqn 67 --> var 77 eqn 68 --> var 76 eqn 69 --> var 81 eqn 70 --> var 73 eqn 71 --> var 36 eqn 72 --> var 71 eqn 73 --> var 209 eqn 74 --> var 229 eqn 75 --> var 74 eqn 76 --> var 62 eqn 77 --> var 161 eqn 78 --> var 169 eqn 79 --> var 75 eqn 80 --> var 223 eqn 81 --> var 192 eqn 82 --> var 203 eqn 83 --> var 107 eqn 84 --> var 70 eqn 85 --> var 186 eqn 86 --> var 69 eqn 87 --> var 68 eqn 88 --> var 67 eqn 89 --> var 65 eqn 90 --> var 64 eqn 91 --> var 45 eqn 92 --> var 43 eqn 93 --> var 40 eqn 94 --> var 39 eqn 95 --> var 38 eqn 96 --> var 156 eqn 97 --> var 211 eqn 98 --> var 160 eqn 99 --> var 96 eqn 100 --> var 35 eqn 101 --> var 166 eqn 102 --> var 34 eqn 103 --> var 154 eqn 104 --> var 230 eqn 105 --> var 88 eqn 106 --> var 84 eqn 107 --> var 126 eqn 108 --> var 24 eqn 109 --> var 185 eqn 110 --> var 83 eqn 111 --> var 125 eqn 112 --> var 42 eqn 113 --> var 220 eqn 114 --> var 128 eqn 115 --> var 130 eqn 116 --> var 41 eqn 117 --> var 153 eqn 118 --> var 151 eqn 119 --> var 60 eqn 120 --> var 115 eqn 121 --> var 59 eqn 122 --> var 58 eqn 123 --> var 116 eqn 124 --> var 117 eqn 125 --> var 118 eqn 126 --> var 55 eqn 127 --> var 56 eqn 128 --> var 57 eqn 129 --> var 53 eqn 130 --> var 147 eqn 131 --> var 87 eqn 132 --> var 63 eqn 133 --> var 162 eqn 134 --> var 61 eqn 135 --> var 181 eqn 136 --> var 32 eqn 137 --> var 180 eqn 138 --> var 111 eqn 139 --> var 210 eqn 140 --> var 54 eqn 141 --> var 136 eqn 142 --> var 222 eqn 143 --> var 179 eqn 144 --> var 163 eqn 145 --> var 213 eqn 146 --> var 221 eqn 147 --> var 52 eqn 148 --> var 50 eqn 149 --> var -1 eqn 150 --> var -1 eqn 151 --> var 49 eqn 152 --> var 46 eqn 153 --> var -1 eqn 154 --> var -1 eqn 155 --> var 14 eqn 156 --> var 13 eqn 157 --> var 12 eqn 158 --> var 11 eqn 159 --> var 10 eqn 160 --> var 9 eqn 161 --> var 225 eqn 162 --> var 135 eqn 163 --> var 195 eqn 164 --> var -1 eqn 165 --> var 228 eqn 166 --> var 215 eqn 167 --> var -1 eqn 168 --> var 134 eqn 169 --> var 132 eqn 170 --> var 191 eqn 171 --> var 137 eqn 172 --> var 131 eqn 173 --> var 92 eqn 174 --> var 174 eqn 175 --> var 175 eqn 176 --> var 85 eqn 177 --> var 168 eqn 178 --> var 124 eqn 179 --> var 37 eqn 180 --> var 178 eqn 181 --> var 197 eqn 182 --> var 198 eqn 183 --> var 167 eqn 184 --> var 146 eqn 185 --> var -1 eqn 186 --> var 173 eqn 187 --> var 7 eqn 188 --> var 207 eqn 189 --> var 3 eqn 190 --> var 206 eqn 191 --> var 2 eqn 192 --> var 1 eqn 193 --> var 133 eqn 194 --> var -1 eqn 195 --> var -1 eqn 196 --> var -1 eqn 197 --> var 218 eqn 198 --> var 217 eqn 199 --> var 216 eqn 200 --> var 157 eqn 201 --> var 158 eqn 202 --> var 121 eqn 203 --> var 140 eqn 204 --> var 155 eqn 205 --> var 141 eqn 206 --> var -1 eqn 207 --> var 33 eqn 208 --> var 171 eqn 209 --> var -1 eqn 210 --> var -1 eqn 211 --> var 19 eqn 212 --> var 20 eqn 213 --> var 21 eqn 214 --> var -1 eqn 215 --> var 184 eqn 216 --> var 79 eqn 217 --> var -1 eqn 218 --> var 4 eqn 219 --> var 5 eqn 220 --> var 6 eqn 221 --> var -1 eqn 222 --> var -1 eqn 223 --> var 212 eqn 224 --> var -1 eqn 225 --> var 138 eqn 226 --> var 139 eqn 227 --> var 97 eqn 228 --> var 101 eqn 229 --> var 102 eqn 230 --> var 204 eqn 231 --> var 205 eqn 232 --> var 47 eqn 233 --> var 48 eqn 234 --> var 164 eqn 235 --> var 176 eqn 236 --> var 214 eqn 237 --> var 80 eqn 238 --> var 182 eqn 239 --> var 183 eqn 240 --> var 149 eqn 241 --> var 150 eqn 242 --> var 196 eqn 243 --> var 31 eqn 244 --> var 30 eqn 245 --> var 29 eqn 246 --> var 27 eqn 247 --> var 26 eqn 248 --> var 208 eqn 249 --> var -1 eqn 250 --> var -1