Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.CHPs.Validation.ElectricalFollowing.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.Validation.ElectricalFollowing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.CHPs.Validation.ElectricalFollowing") translateModel(Buildings.Fluid.CHPs.Validation.ElectricalFollowing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.CHPs.Validation.ElectricalFollowing") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001238/0.001238, allocations: 103.5 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.001137/0.001137, allocations: 195.2 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.447/1.447, 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.739/1.739, allocations: 292.3 MB / 0.5496 GB, free: 17.57 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.617e-05/2.651e-05, allocations: 2.281 kB / 0.6728 GB, free: 5.973 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.Validation.ElectricalFollowing): time 0.04007/0.04012, allocations: 41.2 MB / 0.7131 GB, free: 12.62 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.01805/0.05821, allocations: 10.94 MB / 0.7237 GB, free: 1.645 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004436/0.06268, allocations: 83.62 kB / 0.7238 GB, free: 1.562 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.003375/0.06608, allocations: 0.9851 MB / 0.7248 GB, free: 0.5703 MB / 0.5919 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.005832/0.07197, allocations: 1.525 MB / 0.7263 GB, free: 15.04 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.005378/0.07737, allocations: 2.104 MB / 0.7283 GB, free: 12.95 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.008064/0.08545, allocations: 5.469 MB / 0.7337 GB, free: 7.461 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004594/0.09007, allocations: 3.113 MB / 0.7367 GB, free: 4.27 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004054/0.09414, allocations: 1.927 MB / 0.7386 GB, free: 2.336 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002659/0.09681, allocations: 1.723 MB / 0.7403 GB, free: 0.6055 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0005904/0.09742, allocations: 416 kB / 0.7407 GB, free: 204 kB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003367/0.1008, allocations: 1.557 MB / 0.7422 GB, free: 14.64 MB / 0.6231 GB Notification: Performance of combineBinaries: time 0.003511/0.1043, allocations: 5.145 MB / 0.7472 GB, free: 9.438 MB / 0.6231 GB Notification: Performance of replaceArrayConstructors: time 0.001794/0.1061, allocations: 3.264 MB / 0.7504 GB, free: 6.125 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.0009627/0.1071, allocations: 0.5452 MB / 0.7509 GB, free: 5.578 MB / 0.6231 GB Notification: Performance of FrontEnd: time 0.0009396/0.108, allocations: 226.3 kB / 0.7512 GB, free: 5.355 MB / 0.6231 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 659 (628) * Number of variables: 639 (605) Notification: Performance of Bindings: time 0.01592/0.124, allocations: 17.07 MB / 0.7678 GB, free: 3.898 MB / 0.6387 GB Notification: Performance of FunctionAlias: time 0.001979/0.126, allocations: 1.784 MB / 0.7696 GB, free: 2.094 MB / 0.6387 GB Notification: Performance of Early Inline: time 0.0102/0.1362, allocations: 10.31 MB / 0.7796 GB, free: 7.684 MB / 0.6544 GB Notification: Performance of simplify1: time 0.0007795/0.137, allocations: 0.5617 MB / 0.7802 GB, free: 7.121 MB / 0.6544 GB Notification: Performance of Alias: time 0.429/0.566, allocations: 16.02 MB / 0.7958 GB, free: 94.41 MB / 0.6544 GB Notification: Performance of simplify2: time 0.001216/0.5673, allocations: 387.8 kB / 0.7962 GB, free: 94.41 MB / 0.6544 GB Notification: Performance of Events: time 0.002495/0.5698, allocations: 2.051 MB / 0.7982 GB, free: 94.07 MB / 0.6544 GB Notification: Performance of Detect States: time 0.002144/0.5719, allocations: 2.37 MB / 0.8005 GB, free: 93.9 MB / 0.6544 GB Notification: Performance of Partitioning: time 0.003262/0.5752, allocations: 2.508 MB / 0.803 GB, free: 93.34 MB / 0.6544 GB Error: Internal error NBSorting.tarjan failed to sort system: system vars Variables (320/365) ********************************* (1) [DISC] (1) protected Boolean eleFol.opeMod.transition7.outPort.set (2) [DISC] (1) protected final Boolean eleFol.opeMod.transition10.localCondition = eleFol.opeMod.transition10.localCondition (3) [DISS] (1) protected discrete Real avaSig.combiTimeTable.nextTimeEventScaled (fixed = true, start = 0.0) (4) [DISC] (1) protected Boolean eleFol.fil.assPow.nor.y (5) [DER-] (1) Real $DER.EEle.y (6) [DISC] (1) protected Boolean eleFol.opeMod.transition9.inPort.available (7) [ALGB] (1) flow Real[1] sin.ports.m_flow (min = {-1e60}, max = {1e60}) (8) [ALGB] (2) protected flow Real[2] eleFol.vol.dynBal.ports.m_flow (min = {-1e5 for $i1 in 1:2}, max = {1e5 for $i1 in 1:2}) (9) [ALGB] (1) protected Real eleFol.vol.dynBal.medium.p_bar = Modelica.SIunits.Conversions.to_bar(99999.99999999999 * eleFol.vol.dynBal.medium.p_bar) (10) [ALGB] (1) Real QGenVal_flow.u (11) [DISC] (2) Boolean[2] $SEV_60[$i1] (12) [DISC] (1) protected enumeration Buildings.Fluid.CHPs.BaseClasses.Types.Mode(Off, StandBy, PumpOn, WarmUp, Normal, CoolDown) eleFol.opeMod.actMod (13) [DISC] (1) protected Boolean eleFol.opeMod.transition3.inPort.available (14) [ALGB] (1) Real eleFol.dp = eleFol.port_a.p - eleFol.port_b.p (start = eleFol._dp_start) (15) [DISS] (1) protected Boolean eleFol.opeMod.timer.passed (16) [DISS] (1) protected discrete Real eleFol.opeMod.timer.entryTime (17) [ALGB] (1) protected Real cooWat.p_in_internal (18) [DISC] (1) protected Boolean eleFol.opeMod.warUp.outerStatePort.localActive = eleFol.opeMod.warUp.outerStatePort.localActive (19) [DISC] (1) Boolean[1] eleFol.opeMod.staBy.inPort.occupied (20) [ALGB] (1) protected Real eleFol.eneCon.opeModBas.etaQ.y (21) [ALGB] (1) Real EEle.u (22) [ALGB] (1) Real dQWat.y (23) [ALGB] (1) Real eleFol.eng.QGen_flow (24) [DISC] (2) Boolean[2] $SEV_58[$i1] (25) [DISC] (1) protected Boolean eleFol.opeMod.transition1.outPort.set (26) [ALGB] (1) Real dTEng.y (27) [DISC] (3) Boolean[3] $SEV_31[$i1] (28) [ALGB] (1) Real PEleNetVal.u (29) [ALGB] (1) Real dQLos.y (30) [ALGB] (1) protected Real eleFol.opeMod.add2.y (31) [ALGB] (1) protected flow Real eleFol.eng.capTheEng.port.Q_flow (32) [ALGB] (1) protected flow Real eleFol.eng.QGen1.port.Q_flow (33) [DISC] (2) Boolean[2] eleFol.opeMod.warUp.outPort.available (34) [ALGB] (1) Real preTem.T (35) [DISC] (1) protected Boolean eleFol.opeMod.transition8.outPort.set (36) [ALGB] (1) protected Real eleFol.eneCon.opeModBas.etaE.y (37) [ALGB] (1) Real QWatVal_flow.u (38) [DISC] (2) Boolean[2] eleFol.opeMod.pumOn.outPort.available (39) [DISC] (1) protected Boolean eleFol.opeMod.transition6.outPort.set (40) [DISC] (2) Boolean[2] eleFol.opeMod.warUp.inPort.occupied (41) [ALGB] (1) protected Real eleFol.eneCon.switch5.u3 (42) [DISC] (1) protected Boolean eleFol.eneCon.booExp.y = eleFol.opeMod.actMod == Buildings.Fluid.CHPs.BaseClasses.Types.Mode.WarmUp or eleFol.opeMod.actMod == Buildings.Fluid.CHPs.BaseClasses.Types.Mode.Normal (43) [DISC] (1) protected Boolean eleFol.opeMod.nor.newActive (44) [ALGB] (1) stream Real eleFol.preDro.port_b.h_outflow (start = 83680.0, min = -1e10, max = 1e10, nominal = 83680.0) (45) [DISC] (1) protected Boolean eleFol.opeMod.staBy.outerStatePort.localActive = eleFol.opeMod.staBy.outerStatePort.localActive (46) [ALGB] (1) flow Real eleFol.TRoo.Q_flow (47) [ALGB] (1) Real TWatIn.u (48) [ALGB] (1) stream Real eleFol.port_b.h_outflow (start = eleFol.h_outflow_start, min = -1e10, max = 1e10, nominal = 83680.0) (49) [ALGB] (1) Real eleFol.conWat.TWatIn (50) [ALGB] (1) protected Real eleFol.eneCon.switch4.u3 (51) [DISS] (1) protected Boolean eleFol.opeMod.pumOn.oldActive (52) [DISC] (1) protected Boolean eleFol.opeMod.transition4.outPort.set (53) [DISC] (3) Boolean[3] $SEV_30[$i1] (54) [DISC] (2) Boolean[2] eleFol.opeMod.warUp.inPort.set (55) [DISC] (1) Boolean $TEV_9 (56) [DISC] (2) Boolean[2] eleFol.opeMod.warUp.outPort.reset (57) [DISC] (1) protected Boolean eleFol.eneCon.switch3.u2 (58) [DISC] (1) Boolean $TEV_8 (59) [DISS] (1) protected Boolean eleFol.opeMod.staBy.oldActive (60) [ALGB] (1) protected Real eleFol.eneCon.switch3.u3 (61) [DISC] (1) Boolean $TEV_7 (62) [DISC] (1) Boolean $TEV_6 (63) [DISC] (1) protected Boolean eleFol.opeMod.transition7.inPort.available (64) [DISC] (1) Boolean $TEV_5 (65) [DISC] (1) Boolean $TEV_4 (66) [DISC] (1) Boolean $TEV_3 (67) [DISC] (1) protected Boolean eleFol.opeMod.transition1.outPort.occupied (68) [DISC] (1) Boolean $TEV_2 (69) [DISC] (1) protected Boolean eleFol.opeMod.transition5.outPort.occupied (70) [DISC] (1) Boolean $TEV_1 (71) [DISC] (1) Boolean $TEV_0 (72) [DISC] (1) protected Boolean[1] eleFol.opeMod.nor.outPort.reset (73) [DISC] (1) protected Boolean[1] eleFol.opeMod.plaOff.outPort.reset (74) [DISC] (2) Boolean[2] eleFol.opeMod.cooDow.outPort.reset (75) [ALGB] (1) protected Real eleFol.conWat.mWatIntCon.u2 (76) [DISS] (1) protected Boolean eleFol.opeMod.warUp.oldActive (77) [DISC] (2) Boolean[2] $SEV_56[$i1] (78) [ALGB] (1) flow Real[1] cooWat.ports.m_flow (min = {-1e60}, max = {1e60}) (79) [DISC] (1) protected Boolean eleFol.opeMod.assWatMas.nand.y (80) [ALGB] (1) Real cooWat.m_flow_in (81) [DISC] (1) protected Boolean eleFol.opeMod.transition1.inPort.available (82) [ALGB] (1) protected Real eleFol.opeMod.transition4.t_dummy (83) [ALGB] (1) protected Real cooWat.h_internal = Buildings.Fluid.CHPs.Validation.ElectricalFollowing.cooWat.Medium.specificEnthalpy(Buildings.Fluid.CHPs.Validation.ElectricalFollowing.cooWat.Medium.setState_pTX(cooWat.p_in_internal, -2.390057361376673e-4 * ((-1.1428595999999999e6) - cooWat.h_internal), cooWat.X_in_internal)) (84) [DISC] (1) protected Boolean eleFol.opeMod.transition7.outPort.occupied (85) [ALGB] (1) protected Real eleFol.opeMod.timer.y (86) [DISC] (1) protected Boolean eleFol.fil.assPow.maxPow.y (87) [ALGB] (1) protected Real eleFol.eng.capTheEng.der_T (start = 0.0) (88) [DISC] (1) protected Boolean eleFol.conWat.offStaBy.y = eleFol.opeMod.actMod == Buildings.Fluid.CHPs.BaseClasses.Types.Mode.Off or eleFol.opeMod.actMod == Buildings.Fluid.CHPs.BaseClasses.Types.Mode.StandBy (89) [ALGB] (1) protected Real eleFol.fil.dPLim.u (90) [DISS] (1) protected discrete Real valDat.nextTimeEventScaled (fixed = true, start = 0.0) (91) [ALGB] (1) Real dPEleNet.y (92) [ALGB] (1) Real dTEng.u2 (93) [DISC] (1) protected Boolean eleFol.fil.assPow.minPow.y (94) [ALGB] (1) Real dTWatOut.u2 (95) [DISS] (1) protected Boolean eleFol.opeMod.cooDow.oldActive (96) [ALGB] (1) protected Real eleFol.eng.theConHX.dT (97) [DISC] (1) protected Boolean[1] eleFol.opeMod.nor.inPort.set (98) [ALGB] (2) Real[2] eleFol.vol.ports.p (start = {3e5 for $ports1 in 1:2}, min = {0.0 for $i1 in 1:2}, max = {1e8 for $i1 in 1:2}, nominal = {1e5 for $i1 in 1:2}) (99) [DER-] (1) Real $DER.eleFol.fil.dPLim.y (100) [DISC] (2) Boolean[2] $SEV_55[$i1] (101) [DISC] (1) protected Boolean eleFol.opeMod.transition9.outPort.set (102) [DISC] (1) protected Boolean eleFol.opeMod.plaOff.newActive (103) [ALGB] (1) Real TWatOutVal.u (104) [DISS] (1) protected discrete Real avaSig.combiTimeTable.nextTimeEvent (fixed = true, start = 0.0) (105) [ALGB] (1) Real TRoo.u (106) [DISC] (2) Boolean[2] eleFol.opeMod.cooDow.inPort.occupied (107) [DISC] (1) protected Boolean eleFol.opeMod.transition5.outPort.set (108) [ALGB] (1) Real EThe.u (109) [ALGB] (1) stream Real[1] cooWat.ports.h_outflow (min = {-1e10 for $i1 in 1:1}, max = {1e10 for $i1 in 1:1}, nominal = {1e6 for $i1 in 1:1}) (110) [ALGB] (1) Real TEngVal.u (111) [DISC] (1) protected Boolean eleFol.opeMod.transition3.outPort.set (112) [DISC] (1) protected Boolean eleFol.opeMod.nor.outerStatePort.localActive = eleFol.opeMod.nor.outerStatePort.localActive (113) [ALGB] (2) protected Real[2] eleFol.vol.dynBal.ports_H_flow (min = {-1e8 for $i1 in 1:2}, max = {1e8 for $i1 in 1:2}, nominal = {1000.0 for $i1 in 1:2}) (114) [ALGB] (1) Real eleFol.mFue_flow (115) [DISC] (1) protected Boolean eleFol.opeMod.transition8.inPort.available (116) [DER-] (1) Real $DER.eleFol.eng.capTheEng.T (117) [DISC] (1) protected Boolean eleFol.opeMod.transition6.outPort.occupied (118) [DISC] (1) Boolean[1] eleFol.opeMod.pumOn.inPort.occupied (119) [ALGB] (1) protected Real eleFol.vol.dynBal.m (start = eleFol.vol.V * eleFol.vol.rho_start, min = 0.0, StateSelect = default) (120) [ALGB] (1) protected Real eleFol.eneCon.opeModBas.etaQ.eta (121) [ALGB] (1) protected Real eleFol.vol.dynBal.medium.T_degC = Modelica.SIunits.Conversions.to_degC(-((-273.15) - eleFol.vol.dynBal.medium.T_degC)) (122) [DISC] (1) protected final Boolean eleFol.opeMod.transition7.localCondition = eleFol.opeMod.transition7.localCondition (123) [DISC] (1) protected Boolean eleFol.powCon.cooDow.y = eleFol.opeMod.actMod == Buildings.Fluid.CHPs.BaseClasses.Types.Mode.StandBy or eleFol.opeMod.actMod == Buildings.Fluid.CHPs.BaseClasses.Types.Mode.CoolDown (124) [DISC] (1) protected Boolean eleFol.opeMod.plaOff.outerStatePort.localActive = eleFol.opeMod.plaOff.outerStatePort.localActive (125) [DISC] (1) protected final Boolean eleFol.opeMod.transition6.localCondition = eleFol.opeMod.transition6.localCondition (126) [ALGB] (1) Real[1] cooWat.ports.p (start = {3e5}, min = {0.0 for $i1 in 1:1}, max = {1e8 for $i1 in 1:1}, nominal = {1e5 for $i1 in 1:1}) (127) [DISC] (1) Boolean $SEV_73 (128) [DISC] (1) Boolean $SEV_72 (129) [ALGB] (1) protected Real eleFol.eng.conTheLos.dT (130) [DISC] (1) protected Boolean eleFol.opeMod.transition3.outPort.occupied (131) [DISC] (1) Boolean $SEV_71 (132) [DISC] (1) Boolean $SEV_70 (133) [DISC] (1) protected final Boolean eleFol.opeMod.transition5.localCondition = eleFol.opeMod.transition5.localCondition (134) [DISC] (1) protected Boolean eleFol.opeMod.transition5.inPort.available (135) [DISC] (1) protected Boolean eleFol.opeMod.transition2.inPort.available (136) [ALGB] (1) protected Real eleFol.vol.dynBal.U (start = Buildings.Fluid.CHPs.Validation.ElectricalFollowing.eleFol.vol.dynBal.Medium.specificInternalEnergy(Buildings.Fluid.CHPs.Validation.ElectricalFollowing.eleFol.vol.dynBal.Medium.setState_pTX(eleFol.vol.dynBal.p_start, eleFol.vol.dynBal.T_start, {})) * eleFol.vol.dynBal.fluidVolume * eleFol.vol.dynBal.rho_start + eleFol.vol.dynBal.CSen * (eleFol.vol.dynBal.T_start - 273.15), nominal = 1e5) (137) [DISC] (1) protected Boolean eleFol.opeMod.transition9.outPort.occupied (138) [ALGB] (1) protected Real eleFol.eneCon.opeModBas.groHea.u1 (139) [DISC] (1) Boolean $SEV_69 (140) [DISC] (2) Boolean[2] $SEV_53[$i1] (141) [DISC] (1) protected Boolean[1] eleFol.opeMod.nor.outPort.available (142) [ALGB] (1) Real eleFol.PCon (143) [DISC] (1) Boolean $SEV_65 (144) [DISC] (1) Boolean $SEV_64 (145) [ALGB] (1) Real eleFol.vol.p = eleFol.vol.ports[1].p (146) [DISC] (1) Boolean $SEV_63 (147) [DISC] (1) Boolean $SEV_62 (148) [DISC] (1) Boolean $SEV_61 (149) [ALGB] (1) Real eleFol.port_b.p (start = 3e5, min = 0.0, max = 1e8, nominal = 1e5) (150) [ALGB] (1) protected Real eleFol.eneCon.switch4.y (151) [ALGB] (1) protected Real eleFol.powCon.switch.y (152) [DISC] (2) Boolean[2] eleFol.opeMod.staBy.outPort.available (153) [ALGB] (2) stream Real[2] eleFol.vol.ports.h_outflow (min = {-1e10 for $i1 in 1:2}, max = {1e10 for $i1 in 1:2}, nominal = {1e6 for $i1 in 1:2}) (154) [ALGB] (1) protected flow Real eleFol.opeMod.plaOff.outerStatePort.subgraphStatePort.activeSteps (155) [DISC] (1) Integer eleFol.stateGraphRoot.activeSteps (156) [DER-] (1) Real $DER.EEleVal.y (157) [DISC] (1) protected Boolean eleFol.opeMod.transition10.outPort.occupied (158) [ALGB] (1) Real dQGen.y (159) [ALGB] (1) protected Real eleFol.opeMod.max.y (160) [ALGB] (1) Real eleFol.hys.u (161) [ALGB] (1) protected Real eleFol.eneCon.opeModBas.etaE.eta (162) [DISC] (1) Boolean $SEV_59 (163) [DISC] (1) Boolean $SEV_57 (164) [DISC] (1) Boolean eleFol.hys.y (165) [ALGB] (1) Real dTWatOut.y (166) [ALGB] (1) flow Real eleFol.watHea.port_a.Q_flow (167) [DISC] (1) Boolean $SEV_54 (168) [DISC] (1) protected Boolean[1] eleFol.opeMod.plaOff.outPort.available (169) [DISC] (1) Boolean $SEV_50 (170) [DISC] (2) Boolean[2] $SEV_52[$i1] (171) [DISS] (1) protected Boolean eleFol.opeMod.nor.oldActive (172) [ALGB] (1) protected Real eleFol.conWat.mWatIntCon.y (173) [DISC] (1) protected Boolean eleFol.opeMod.transition2.outPort.set (174) [ALGB] (1) Real eleFol.port_a.p (start = 3e5, min = 0.0, max = 1e8, nominal = 1e5) (175) [ALGB] (1) flow Real eleFol.port_b.m_flow (min = -1e5, max = 1e60) (176) [ALGB] (1) Real QLosVal_flow.u (177) [ALGB] (1) stream Real eleFol.preDro.port_a.h_outflow (start = 83680.0, min = -1e10, max = 1e10, nominal = 83680.0) (178) [DISC] (1) Boolean $SEV_49 (179) [DISC] (1) protected Boolean eleFol.opeMod.staBy.newActive (180) [DISC] (1) Boolean $SEV_48 (181) [ALGB] (1) protected Real eleFol.fil.PLim.simplifiedExpr (182) [DISC] (1) Boolean $SEV_47 (183) [DISC] (1) Boolean $SEV_46 (184) [DISC] (1) Boolean $SEV_45 (185) [DISC] (1) protected Boolean[1] eleFol.opeMod.nor.inPort.occupied (186) [DISC] (1) Boolean $SEV_44 (187) [DISC] (1) Boolean $SEV_43 (188) [DISC] (1) Boolean $SEV_42 (189) [ALGB] (1) flow Real eleFol.vol.heatPort.Q_flow (190) [DISC] (1) Boolean $SEV_41 (191) [DISC] (1) Boolean $SEV_40 (192) [DISC] (1) Boolean[1] eleFol.opeMod.pumOn.inPort.set (193) [ALGB] (1) protected Real eleFol.opeMod.transition4.t (194) [DISC] (1) protected Boolean eleFol.opeMod.transition2.outPort.occupied (195) [DISC] (1) protected Boolean eleFol.opeMod.transition4.outPort.occupied (196) [DISC] (1) Boolean $FUN_9 (197) [DISC] (1) Boolean $FUN_8 (198) [DISC] (1) Boolean $FUN_7 (199) [DISC] (1) protected Boolean eleFol.opeMod.transition4.inPort.available (200) [ALGB] (1) protected flow Real eleFol.opeMod.nor.outerStatePort.subgraphStatePort.activeSteps (201) [DISC] (1) Boolean $FUN_6 (202) [DISC] (2) Boolean[2] $SEV_51[$i1] (203) [ALGB] (1) Real $FUN_2 (204) [ALGB] (1) Real $FUN_1 (205) [DER-] (1) Real $DER.EThe.y (206) [DISC] (1) Boolean $SEV_39 (207) [DISC] (1) Boolean $SEV_38 (208) [DISC] (1) Boolean $SEV_37 (209) [DISC] (1) Boolean $SEV_36 (210) [DISC] (1) Boolean $SEV_35 (211) [DISC] (1) protected Boolean eleFol.opeMod.transition8.outPort.occupied (212) [DISC] (1) Boolean $SEV_34 (213) [DISC] (1) Boolean $SEV_33 (214) [DISC] (1) Boolean $SEV_32 (215) [ALGB] (1) protected Real eleFol.opeMod.warUpCtr.timer.y (216) [DISC] (1) protected Boolean eleFol.opeMod.transition4.enableFire (217) [DISC] (1) Boolean $FUN_17 (218) [DISC] (1) Boolean $FUN_16 (219) [DISC] (1) Boolean $FUN_15 (220) [ALGB] (1) protected flow Real eleFol.opeMod.warUp.outerStatePort.subgraphStatePort.activeSteps (221) [DISC] (1) Boolean $FUN_14 (222) [DISC] (1) protected Boolean eleFol.opeMod.cooDow.newActive (223) [DISC] (1) Boolean $FUN_13 (224) [DISC] (1) Boolean $FUN_12 (225) [DISC] (1) Boolean $FUN_11 (226) [ALGB] (12) Real[12] valDat.y (227) [DISC] (1) Boolean $FUN_10 (228) [DISC] (1) protected Boolean eleFol.opeMod.cooDow.outerStatePort.localActive = eleFol.opeMod.cooDow.outerStatePort.localActive (229) [ALGB] (1) protected Real eleFol.fil.dPLim.thr = (eleFol.fil.dPLim.u - eleFol.fil.dPLim.y) / eleFol.fil.dPLim.Td (230) [DISC] (1) protected Boolean eleFol.opeMod.hys.y (231) [DISC] (1) Boolean $SEV_29 (232) [DISS] (1) protected discrete Real eleFol.opeMod.warUpCtr.timer.entryTime (233) [DISC] (1) Boolean $SEV_28 (234) [DISC] (1) Boolean $SEV_27 (235) [DISS] (1) protected Boolean eleFol.opeMod.plaOff.oldActive (236) [DISC] (1) Boolean $SEV_26 (237) [DISC] (1) Boolean $SEV_25 (238) [DISC] (1) Boolean $SEV_24 (239) [DISC] (1) Boolean $SEV_23 (240) [DISC] (1) Boolean $SEV_22 (241) [DISC] (1) protected Boolean eleFol.opeMod.pumOn.outerStatePort.localActive = eleFol.opeMod.pumOn.outerStatePort.localActive (242) [DISC] (1) Boolean $SEV_20 (243) [DISS] (1) protected discrete Real valDat.nextTimeEvent (fixed = true, start = 0.0) (244) [ALGB] (1) protected flow Real eleFol.opeMod.pumOn.outerStatePort.subgraphStatePort.activeSteps (245) [DISC] (2) Boolean[2] eleFol.opeMod.pumOn.outPort.reset (246) [DISC] (1) Boolean $TEV_39 (247) [ALGB] (1) Real eleFol.preDro.dp = eleFol.port_a.p - eleFol.preDro.port_b.p (start = eleFol.preDro._dp_start, nominal = if eleFol.preDro.dp_nominal_pos > 1e-15 then eleFol.preDro.dp_nominal_pos else 1.0) (248) [DISC] (1) Boolean $TEV_38 (249) [DISC] (1) Boolean $TEV_37 (250) [DISC] (1) Boolean $TEV_36 (251) [DISC] (1) protected Boolean eleFol.opeMod.transition10.inPort.available (252) [DISC] (1) protected Boolean eleFol.opeMod.pumOn.newActive (253) [ALGB] (1) protected flow Real eleFol.opeMod.cooDow.outerStatePort.subgraphStatePort.activeSteps (254) [DISC] (1) Boolean $TEV_35 (255) [DISC] (1) Boolean $TEV_34 (256) [DISC] (1) Boolean $TEV_33 (257) [DISC] (1) Boolean $TEV_32 (258) [DISC] (1) protected Boolean eleFol.eneCon.and1.u1 (259) [ALGB] (1) Real[1] avaSig.combiTimeTable.y (260) [DISC] (1) Boolean $TEV_31 (261) [DISC] (1) Boolean $TEV_30 (262) [ALGB] (1) protected Real eleFol.vol.dynBal.medium.state.T (start = 293.15, min = 1.0, max = 1e4, nominal = 300.0) (263) [ALGB] (1) Real eleFol.PEleDem (264) [ALGB] (1) Real avaSig.realToBoolean.u (265) [ALGB] (1) Real eleFol.preDro.port_b.p (start = 3e5, min = 0.0, max = 1e8, nominal = 1e5) (266) [DISC] (3) protected Boolean[3] eleFol.opeMod.plaOff.inPort.set (267) [DISC] (1) protected Boolean eleFol.assWatTem.hys.y (268) [DISC] (1) protected final Boolean eleFol.opeMod.transition3.localCondition = eleFol.opeMod.transition3.localCondition (269) [DISC] (1) Boolean $SEV_19 (270) [DISC] (1) Boolean $SEV_18 (271) [DISC] (1) Boolean $SEV_17 (272) [DISC] (1) Boolean $SEV_16 (273) [DISC] (1) protected final Boolean eleFol.opeMod.transition9.localCondition = eleFol.opeMod.transition9.localCondition (274) [DISC] (1) Boolean $SEV_15 (275) [DISC] (2) Boolean[2] eleFol.opeMod.cooDow.outPort.available (276) [DISC] (1) Boolean $SEV_14 (277) [DER-] (1) Real $DER.ETheVal.y (278) [DISC] (3) protected Boolean[3] eleFol.opeMod.plaOff.inPort.occupied (279) [ALGB] (1) Real eleFol.m_flow = eleFol.m_flow (start = eleFol._m_flow_start) (280) [ALGB] (1) protected Real eleFol.eneCon.opeModBas.heaGen.u1 (281) [ALGB] (1) flow Real eleFol.stateGraphRoot.subgraphStatePort.activeSteps (282) [DISC] (1) Boolean $SEV_11 (283) [DISC] (1) protected Boolean eleFol.opeMod.warUp.newActive (284) [DISC] (1) Boolean $TEV_29 (285) [DISC] (1) Boolean $TEV_28 (286) [DISC] (1) Boolean $TEV_27 (287) [DISC] (1) Boolean $TEV_26 (288) [DISC] (1) Boolean $TEV_25 (289) [DISC] (1) Boolean $TEV_24 (290) [ALGB] (1) protected Real eleFol.vol.dynBal.medium.state.p (start = 3e5, min = 0.0, max = 1e8, nominal = 1e5) (291) [DISC] (1) Boolean $TEV_23 (292) [ALGB] (2) flow Real[2] eleFol.vol.ports.m_flow (min = {-1e5 for $i1 in 1:2}, max = {1e5 for $i1 in 1:2}) (293) [DISC] (1) Boolean $TEV_22 (294) [DISC] (2) Boolean[2] eleFol.opeMod.staBy.outPort.reset (295) [DISC] (1) Boolean $TEV_21 (296) [DISC] (1) Boolean $TEV_20 (297) [ALGB] (1) protected flow Real eleFol.opeMod.staBy.outerStatePort.subgraphStatePort.activeSteps (298) [DISC] (1) protected Boolean eleFol.opeMod.assWatMas.not1.u (299) [DISS] (1) protected Boolean eleFol.opeMod.and1.u2 (300) [DISC] (1) Boolean[1] eleFol.opeMod.staBy.inPort.set (301) [ALGB] (1) Real[1] sin.ports.p (start = {3e5}, min = {0.0 for $i1 in 1:1}, max = {1e8 for $i1 in 1:1}, nominal = {1e5 for $i1 in 1:1}) (302) [DISC] (1) protected Boolean eleFol.opeMod.transition6.inPort.available (303) [ALGB] (2) protected stream Real[2] eleFol.vol.dynBal.ports.h_outflow (min = {-1e10 for $i1 in 1:2}, max = {1e10 for $i1 in 1:2}, nominal = {1e6 for $i1 in 1:2}) (304) [DISC] (1) Boolean $TEV_19 (305) [DISC] (1) Boolean $TEV_18 (306) [DISC] (1) Boolean $TEV_17 (307) [DISC] (1) Boolean $TEV_16 (308) [DISC] (1) Boolean $TEV_15 (309) [DISC] (1) Boolean $TEV_14 (310) [DISC] (1) Boolean $TEV_13 (311) [ALGB] (2) protected Real[2] eleFol.vol.dynBal.ports.p (start = {3e5 for $ports1 in 1:2}, min = {0.0 for $i1 in 1:2}, max = {1e8 for $i1 in 1:2}, nominal = {1e5 for $i1 in 1:2}) (312) [DISC] (1) Boolean $TEV_12 (313) [DISC] (1) Boolean $TEV_11 (314) [ALGB] (1) Real eleFol.QLos.Q_flow (315) [DISC] (1) Boolean $TEV_10 (316) [DISC] (1) protected Boolean eleFol.powCon.staBy.y = eleFol.opeMod.actMod == Buildings.Fluid.CHPs.BaseClasses.Types.Mode.StandBy (317) [ALGB] (1) stream Real[1] sin.ports.h_outflow (min = {-1e10 for $i1 in 1:1}, max = {1e10 for $i1 in 1:1}, nominal = {1e6 for $i1 in 1:1}) (318) [DISC] (1) protected Boolean eleFol.opeMod.transition10.outPort.set (319) [ALGB] (1) Real eleFol.mWatSet_flow (320) [DISC] (2) Boolean[2] eleFol.opeMod.cooDow.inPort.set system eqns Equations (343/385) ********************************* (1) [SCAL] (1) eleFol.opeMod.transition3.outPort.set = $SEV_47 ($RES_SIM_258) (2) [SCAL] (1) eleFol.eneCon.switch4.y = if eleFol.eneCon.switch3.u2 then eleFol.eneCon.dumTimDel.k else eleFol.eneCon.switch4.u3 ($RES_SIM_340) (3) [SCAL] (1) eleFol.mFue_flow = if eleFol.eneCon.switch3.u2 then eleFol.eneCon.dumTimDel.k else eleFol.eneCon.switch3.u3 ($RES_SIM_341) (4) [SCAL] (1) EEle.u = if eleFol.eneCon.and1.u1 then eleFol.eneCon.PEleTimeDel.k else eleFol.eneCon.opeModBas.groHea.u1 ($RES_SIM_342) (5) [SCAL] (1) eleFol.eneCon.opeModBas.groHea.u1 = if eleFol.eneCon.booExp.y then eleFol.hys.u else eleFol.eneCon.const.k ($RES_SIM_343) (6) [SCAL] (1) $SEV_11 = time >= $PRE.valDat.nextTimeEvent ($RES_EVT_815) (7) [SCAL] (1) eleFol.eneCon.switch3.u3 = eleFol.eneCon.opeModBas.masFloFue.k * eleFol.eneCon.opeModBas.heaGen.u1 ($RES_SIM_345) (8) [SCAL] (1) eleFol.opeMod.plaOff.outPort[1].reset = false ($RES_SIM_170) (9) [FOR-] (3) ($RES_SIM_171) (9) [----] for $i1 in 1:3 loop (9) [----] [SCAL] (1) eleFol.opeMod.plaOff.inPort[$i1].set = false ($RES_SIM_172) (9) [----] end for; (10) [SCAL] (1) eleFol.eneCon.switch5.u3 = eleFol.eneCon.opeModBas.heaGen.u1 * eleFol.eneCon.opeModBas.etaQ.eta ($RES_SIM_347) (11) [SCAL] (1) $SEV_14 = avaSig.realToBoolean.u >= avaSig.realToBoolean.threshold ($RES_EVT_818) (12) [SCAL] (1) eleFol.eneCon.opeModBas.heaGen.u1 = eleFol.eneCon.opeModBas.groHea.u1 / eleFol.eneCon.opeModBas.etaE.eta ($RES_SIM_348) (13) [SCAL] (1) eleFol.opeMod.plaOff.outPort[1].available = eleFol.opeMod.plaOff.outerStatePort.localActive ($RES_SIM_173) (14) [SCAL] (1) $SEV_15 = time >= $PRE.avaSig.combiTimeTable.nextTimeEvent ($RES_EVT_819) (15) [SCAL] (1) eleFol.eneCon.opeModBas.etaQ.eta = smooth(1, if $SEV_62 then eleFol.eneCon.opeModBas.etaQ.y else if $SEV_63 then 0.01 else 0.25 * (0.01 - eleFol.eneCon.opeModBas.etaQ.y) * ((-3.0) + (((-0.01) + eleFol.eneCon.opeModBas.etaQ.y) / 0.005) ^ 2.0) * (200.0 * ((-0.01) + eleFol.eneCon.opeModBas.etaQ.y)) + 0.5 * (0.01 + eleFol.eneCon.opeModBas.etaQ.y)) ($RES_SIM_349) (16) [FOR-] (3) ($RES_SIM_174) (16) [----] for $i1 in 1:3 loop (16) [----] [SCAL] (1) eleFol.opeMod.plaOff.inPort[$i1].occupied = if $SEV_30[$i1] then eleFol.opeMod.plaOff.outerStatePort.localActive else $SEV_31[$i1] ($RES_SIM_175) (16) [----] end for; (17) [WHEN] (1)when false then (17) [----] eleFol.opeMod.plaOff.oldActive := eleFol.opeMod.plaOff.outerStatePort.localActive (17) [----] end when; (18) [SCAL] (1) eleFol.opeMod.plaOff.newActive = $SEV_32 ($RES_SIM_177) (19) [SCAL] (1) eleFol.opeMod.plaOff.outerStatePort.localActive = $TEV_9 ($RES_SIM_178) (20) [SCAL] (1) eleFol.port_b.p = sin.ports[1].p ($RES_SIM_430) (21) [SCAL] (1) eleFol.opeMod.transition6.localCondition = $SEV_48 ($RES_SIM_263) (22) [SCAL] (1) not eleFol.opeMod.transition9.localCondition = $SEV_49 ($RES_SIM_266) (23) [SCAL] (1) eleFol.opeMod.hys.y = $SEV_50 ($RES_SIM_267) (24) [SCAL] (1) eleFol.opeMod.add2.y = eleFol.opeMod.add2.k1 * eleFol.opeMod.max.y + eleFol.opeMod.add2.k2 * eleFol.m_flow ($RES_SIM_268) (25) [SCAL] (1) eleFol.opeMod.max.y = max(eleFol.opeMod.minWatFlo.k, eleFol.opeMod.con.k) ($RES_SIM_269) (26) [SCAL] (1) eleFol.opeMod.cooDow.outPort[2].reset = eleFol.opeMod.transition7.outPort.set ($RES_SIM_522) (27) [SCAL] (1) eleFol.opeMod.cooDow.outPort[2].available = eleFol.opeMod.transition7.inPort.available ($RES_SIM_523) (28) [SCAL] (1) eleFol.opeMod.cooDow.outPort[1].reset = eleFol.opeMod.transition10.outPort.set ($RES_SIM_524) (29) [SCAL] (1) $SEV_16 = not $PRE.eleFol.assWatTem.hys.y and 273.15 + 2.390057361376673e-4 * (4184.0 * ((-273.15) - ((-273.15) - eleFol.vol.dynBal.medium.T_degC))) > eleFol.assWatTem.hys.uHigh or $PRE.eleFol.assWatTem.hys.y and 273.15 + 2.390057361376673e-4 * (4184.0 * ((-273.15) - ((-273.15) - eleFol.vol.dynBal.medium.T_degC))) >= eleFol.assWatTem.hys.uLow ($RES_EVT_820) (30) [SCAL] (1) eleFol.opeMod.cooDow.outPort[1].available = eleFol.opeMod.transition10.inPort.available ($RES_SIM_525) (31) [SCAL] (1) eleFol.eneCon.opeModBas.etaQ.y = eleFol.m_flow * eleFol.eneCon.opeModBas.groHea.u1 * eleFol.eneCon.opeModBas.etaQ.a[26] * ((-273.15) + eleFol.conWat.TWatIn) ^ 2.0 + eleFol.m_flow ^ 2.0 * eleFol.eneCon.opeModBas.groHea.u1 * eleFol.eneCon.opeModBas.etaQ.a[25] * ((-273.15) + eleFol.conWat.TWatIn) + eleFol.m_flow * eleFol.eneCon.opeModBas.groHea.u1 ^ 2.0 * eleFol.eneCon.opeModBas.etaQ.a[24] * ((-273.15) + eleFol.conWat.TWatIn) + eleFol.m_flow ^ 2.0 * eleFol.eneCon.opeModBas.groHea.u1 * eleFol.eneCon.opeModBas.etaQ.a[23] * ((-273.15) + eleFol.conWat.TWatIn) ^ 2.0 + eleFol.m_flow * eleFol.eneCon.opeModBas.groHea.u1 ^ 2.0 * eleFol.eneCon.opeModBas.etaQ.a[22] * ((-273.15) + eleFol.conWat.TWatIn) ^ 2.0 + eleFol.m_flow ^ 2.0 * eleFol.eneCon.opeModBas.groHea.u1 ^ 2.0 * eleFol.eneCon.opeModBas.etaQ.a[21] * ((-273.15) + eleFol.conWat.TWatIn) + eleFol.m_flow ^ 2.0 * eleFol.eneCon.opeModBas.groHea.u1 ^ 2.0 * eleFol.eneCon.opeModBas.etaQ.a[20] * ((-273.15) + eleFol.conWat.TWatIn) ^ 2.0 + eleFol.m_flow ^ 2.0 * eleFol.eneCon.opeModBas.etaQ.a[19] * ((-273.15) + eleFol.conWat.TWatIn) + eleFol.m_flow * eleFol.eneCon.opeModBas.etaQ.a[18] * ((-273.15) + eleFol.conWat.TWatIn) ^ 2.0 + eleFol.m_flow * eleFol.eneCon.opeModBas.etaQ.a[17] * ((-273.15) + eleFol.conWat.TWatIn) + eleFol.m_flow ^ 2.0 * eleFol.eneCon.opeModBas.etaQ.a[16] * ((-273.15) + eleFol.conWat.TWatIn) ^ 2.0 + eleFol.eneCon.opeModBas.groHea.u1 ^ 2.0 * eleFol.eneCon.opeModBas.etaQ.a[15] * ((-273.15) + eleFol.conWat.TWatIn) + eleFol.eneCon.opeModBas.groHea.u1 * eleFol.eneCon.opeModBas.etaQ.a[14] * ((-273.15) + eleFol.conWat.TWatIn) ^ 2.0 + eleFol.eneCon.opeModBas.groHea.u1 * eleFol.eneCon.opeModBas.etaQ.a[13] * ((-273.15) + eleFol.conWat.TWatIn) + eleFol.eneCon.opeModBas.groHea.u1 ^ 2.0 * eleFol.eneCon.opeModBas.etaQ.a[12] * ((-273.15) + eleFol.conWat.TWatIn) ^ 2.0 + eleFol.eneCon.opeModBas.groHea.u1 ^ 2.0 * eleFol.eneCon.opeModBas.etaQ.a[11] * eleFol.m_flow + eleFol.eneCon.opeModBas.groHea.u1 * eleFol.eneCon.opeModBas.etaQ.a[10] * eleFol.m_flow ^ 2.0 + eleFol.eneCon.opeModBas.groHea.u1 * eleFol.eneCon.opeModBas.etaQ.a[9] * eleFol.m_flow + eleFol.eneCon.opeModBas.groHea.u1 ^ 2.0 * eleFol.eneCon.opeModBas.etaQ.a[8] * eleFol.m_flow ^ 2.0 + eleFol.eneCon.opeModBas.etaQ.a[7] * ((-273.15) + eleFol.conWat.TWatIn) + eleFol.eneCon.opeModBas.etaQ.a[6] * ((-273.15) + eleFol.conWat.TWatIn) ^ 2.0 + eleFol.eneCon.opeModBas.etaQ.a[5] * eleFol.m_flow + eleFol.eneCon.opeModBas.etaQ.a[4] * eleFol.m_flow ^ 2.0 + eleFol.eneCon.opeModBas.etaQ.a[3] * eleFol.eneCon.opeModBas.groHea.u1 + eleFol.eneCon.opeModBas.etaQ.a[2] * eleFol.eneCon.opeModBas.groHea.u1 ^ 2.0 + eleFol.eneCon.opeModBas.etaQ.a[1] + eleFol.m_flow * eleFol.eneCon.opeModBas.groHea.u1 * eleFol.eneCon.opeModBas.etaQ.a[27] * ((-273.15) + eleFol.conWat.TWatIn) ($RES_SIM_350) (32) [SCAL] (1) $SEV_17 = eleFol.fil.dPLim.thr < eleFol.fil.dPLim.fallingSlewRate ($RES_EVT_821) (33) [SCAL] (1) eleFol.opeMod.transition9.outPort.set = eleFol.opeMod.cooDow.inPort[2].set ($RES_SIM_526) (34) [SCAL] (1) eleFol.eneCon.opeModBas.etaE.eta = smooth(1, if $SEV_64 then eleFol.eneCon.opeModBas.etaE.y else if $SEV_65 then 0.01 else 0.25 * (0.01 - eleFol.eneCon.opeModBas.etaE.y) * ((-3.0) + (((-0.01) + eleFol.eneCon.opeModBas.etaE.y) / 0.005) ^ 2.0) * (200.0 * ((-0.01) + eleFol.eneCon.opeModBas.etaE.y)) + 0.5 * (0.01 + eleFol.eneCon.opeModBas.etaE.y)) ($RES_SIM_351) (35) [SCAL] (1) $SEV_18 = eleFol.fil.dPLim.thr > eleFol.fil.dPLim.raisingSlewRate ($RES_EVT_822) (36) [SCAL] (1) eleFol.opeMod.transition9.outPort.occupied = eleFol.opeMod.cooDow.inPort[2].occupied ($RES_SIM_527) (37) [SCAL] (1) eleFol.eneCon.opeModBas.etaE.y = eleFol.m_flow * eleFol.eneCon.opeModBas.groHea.u1 * eleFol.eneCon.opeModBas.etaE.a[26] * ((-273.15) + eleFol.conWat.TWatIn) ^ 2.0 + eleFol.m_flow ^ 2.0 * eleFol.eneCon.opeModBas.groHea.u1 * eleFol.eneCon.opeModBas.etaE.a[25] * ((-273.15) + eleFol.conWat.TWatIn) + eleFol.m_flow * eleFol.eneCon.opeModBas.groHea.u1 ^ 2.0 * eleFol.eneCon.opeModBas.etaE.a[24] * ((-273.15) + eleFol.conWat.TWatIn) + eleFol.m_flow ^ 2.0 * eleFol.eneCon.opeModBas.groHea.u1 * eleFol.eneCon.opeModBas.etaE.a[23] * ((-273.15) + eleFol.conWat.TWatIn) ^ 2.0 + eleFol.m_flow * eleFol.eneCon.opeModBas.groHea.u1 ^ 2.0 * eleFol.eneCon.opeModBas.etaE.a[22] * ((-273.15) + eleFol.conWat.TWatIn) ^ 2.0 + eleFol.m_flow ^ 2.0 * eleFol.eneCon.opeModBas.groHea.u1 ^ 2.0 * eleFol.eneCon.opeModBas.etaE.a[21] * ((-273.15) + eleFol.conWat.TWatIn) + eleFol.m_flow ^ 2.0 * eleFol.eneCon.opeModBas.groHea.u1 ^ 2.0 * eleFol.eneCon.opeModBas.etaE.a[20] * ((-273.15) + eleFol.conWat.TWatIn) ^ 2.0 + eleFol.m_flow ^ 2.0 * eleFol.eneCon.opeModBas.etaE.a[19] * ((-273.15) + eleFol.conWat.TWatIn) + eleFol.m_flow * eleFol.eneCon.opeModBas.etaE.a[18] * ((-273.15) + eleFol.conWat.TWatIn) ^ 2.0 + eleFol.m_flow * eleFol.eneCon.opeModBas.etaE.a[17] * ((-273.15) + eleFol.conWat.TWatIn) + eleFol.m_flow ^ 2.0 * eleFol.eneCon.opeModBas.etaE.a[16] * ((-273.15) + eleFol.conWat.TWatIn) ^ 2.0 + eleFol.eneCon.opeModBas.groHea.u1 ^ 2.0 * eleFol.eneCon.opeModBas.etaE.a[15] * ((-273.15) + eleFol.conWat.TWatIn) + eleFol.eneCon.opeModBas.groHea.u1 * eleFol.eneCon.opeModBas.etaE.a[14] * ((-273.15) + eleFol.conWat.TWatIn) ^ 2.0 + eleFol.eneCon.opeModBas.groHea.u1 * eleFol.eneCon.opeModBas.etaE.a[13] * ((-273.15) + eleFol.conWat.TWatIn) + eleFol.eneCon.opeModBas.groHea.u1 ^ 2.0 * eleFol.eneCon.opeModBas.etaE.a[12] * ((-273.15) + eleFol.conWat.TWatIn) ^ 2.0 + eleFol.eneCon.opeModBas.groHea.u1 ^ 2.0 * eleFol.eneCon.opeModBas.etaE.a[11] * eleFol.m_flow + eleFol.eneCon.opeModBas.groHea.u1 * eleFol.eneCon.opeModBas.etaE.a[10] * eleFol.m_flow ^ 2.0 + eleFol.eneCon.opeModBas.groHea.u1 * eleFol.eneCon.opeModBas.etaE.a[9] * eleFol.m_flow + eleFol.eneCon.opeModBas.groHea.u1 ^ 2.0 * eleFol.eneCon.opeModBas.etaE.a[8] * eleFol.m_flow ^ 2.0 + eleFol.eneCon.opeModBas.etaE.a[7] * ((-273.15) + eleFol.conWat.TWatIn) + eleFol.eneCon.opeModBas.etaE.a[6] * ((-273.15) + eleFol.conWat.TWatIn) ^ 2.0 + eleFol.eneCon.opeModBas.etaE.a[5] * eleFol.m_flow + eleFol.eneCon.opeModBas.etaE.a[4] * eleFol.m_flow ^ 2.0 + eleFol.eneCon.opeModBas.etaE.a[3] * eleFol.eneCon.opeModBas.groHea.u1 + eleFol.eneCon.opeModBas.etaE.a[2] * eleFol.eneCon.opeModBas.groHea.u1 ^ 2.0 + eleFol.eneCon.opeModBas.etaE.a[1] + eleFol.m_flow * eleFol.eneCon.opeModBas.groHea.u1 * eleFol.eneCon.opeModBas.etaE.a[27] * ((-273.15) + eleFol.conWat.TWatIn) ($RES_SIM_352) (38) [SCAL] (1) $SEV_19 = eleFol.fil.PLim.simplifiedExpr > eleFol.fil.PMax.k ($RES_EVT_823) (39) [SCAL] (1) eleFol.opeMod.transition8.outPort.set = eleFol.opeMod.cooDow.inPort[1].set ($RES_SIM_528) (40) [SCAL] (1) $SEV_20 = eleFol.fil.PLim.simplifiedExpr < eleFol.fil.PMin.k ($RES_EVT_824) (41) [SCAL] (1) eleFol.opeMod.transition8.outPort.occupied = eleFol.opeMod.cooDow.inPort[1].occupied ($RES_SIM_529) (42) [SCAL] (1) eleFol.preDro.port_b.h_outflow = cooWat.ports[1].h_outflow ($RES_SIM_354) (43) [SCAL] (1) eleFol.preDro.port_a.h_outflow = eleFol.vol.ports[1].h_outflow ($RES_SIM_355) (44) [SCAL] (1) eleFol.opeMod.plaOff.outerStatePort.subgraphStatePort.activeSteps = if eleFol.opeMod.plaOff.outerStatePort.localActive then 1.0 else 0.0 ($RES_SIM_180) (45) [SCAL] (1) $SEV_22 = not $PRE.eleFol.fil.assPow.minPow.y and eleFol.fil.PLim.simplifiedExpr > eleFol.fil.assPow.minPow.uHigh or $PRE.eleFol.fil.assPow.minPow.y and eleFol.fil.PLim.simplifiedExpr >= eleFol.fil.assPow.minPow.uLow ($RES_EVT_826) (46) [SCAL] (1) eleFol.preDro.dp = homotopy(Buildings.Fluid.BaseClasses.FlowModels.basicFlowFunction_m_flow(eleFol.m_flow, eleFol.preDro.k, eleFol.preDro.m_flow_turbulent), (eleFol.m_flow * eleFol.preDro.dp_nominal_pos) / eleFol.preDro.m_flow_nominal_pos) ($RES_SIM_356) (47) [SCAL] (1) $SEV_23 = not $PRE.eleFol.fil.assPow.maxPow.y and eleFol.fil.PLim.simplifiedExpr > eleFol.fil.assPow.maxPow.uHigh or $PRE.eleFol.fil.assPow.maxPow.y and eleFol.fil.PLim.simplifiedExpr >= eleFol.fil.assPow.maxPow.uLow ($RES_EVT_827) (48) [SCAL] (1) $SEV_24 = eleFol.fil.assPow.maxPow.y or not eleFol.fil.assPow.minPow.y ($RES_EVT_828) (49) [SCAL] (1) eleFol.opeMod.transition6.outPort.set = $SEV_33 ($RES_SIM_183) (50) [SCAL] (1) $SEV_25 = not $PRE.eleFol.hys.y and eleFol.hys.u > eleFol.hys.uHigh or $PRE.eleFol.hys.y and eleFol.hys.u >= eleFol.hys.uLow ($RES_EVT_829) (51) [SCAL] (1) eleFol.opeMod.warUpCtr.timer.y = if eleFol.opeMod.warUp.outerStatePort.localActive then time - eleFol.opeMod.warUpCtr.timer.entryTime else 0.0 ($RES_SIM_189) (52) [SCAL] (1) avaSig.combiTimeTable.y[1] = avaSig.realToBoolean.u ($RES_SIM_442) (53) [SCAL] (1) eleFol.preDro.port_b.p = eleFol.vol.ports[1].p ($RES_SIM_443) (54) [FOR-] (2) ($RES_SIM_272) (54) [----] for $i1 in 1:2 loop (54) [----] [SCAL] (1) eleFol.opeMod.cooDow.outPort[$i1].reset = false ($RES_SIM_273) (54) [----] end for; (55) [SCAL] (1) eleFol.vol.ports[2].h_outflow = eleFol.port_b.h_outflow ($RES_SIM_447) (56) [SCAL] (1) eleFol.vol.ports[2].p = eleFol.port_b.p ($RES_SIM_448) (57) [FOR-] (2) ($RES_SIM_274) (57) [----] for $i1 in 1:2 loop (57) [----] [SCAL] (1) eleFol.opeMod.cooDow.inPort[$i1].set = false ($RES_SIM_275) (57) [----] end for; (58) [FOR-] (2) ($RES_SIM_276) (58) [----] for $i1 in 1:2 loop (58) [----] [SCAL] (1) eleFol.opeMod.cooDow.outPort[$i1].available = if $SEV_51[$i1] then eleFol.opeMod.cooDow.outerStatePort.localActive else $SEV_52[$i1] ($RES_SIM_277) (58) [----] end for; (59) [FOR-] (2) ($RES_SIM_278) (59) [----] for $i1 in 1:2 loop (59) [----] [SCAL] (1) eleFol.opeMod.cooDow.inPort[$i1].occupied = if $SEV_51[$i1] then eleFol.opeMod.cooDow.outerStatePort.localActive else $SEV_53[$i1] ($RES_SIM_279) (59) [----] end for; (60) [SCAL] (1) eleFol.opeMod.transition7.outPort.set = eleFol.opeMod.warUp.inPort[2].set ($RES_SIM_530) (61) [SCAL] (1) eleFol.opeMod.transition7.outPort.occupied = eleFol.opeMod.warUp.inPort[2].occupied ($RES_SIM_531) (62) [SCAL] (1) eleFol.opeMod.transition4.outPort.set = eleFol.opeMod.warUp.inPort[1].set ($RES_SIM_532) (63) [SCAL] (1) eleFol.opeMod.transition4.outPort.occupied = eleFol.opeMod.warUp.inPort[1].occupied ($RES_SIM_533) (64) [SCAL] (1) $SEV_26 = not eleFol.opeMod.transition3.localCondition and eleFol.hys.y ($RES_EVT_830) (65) [SCAL] (1) $SEV_27 = eleFol.opeMod.cooDow.outerStatePort.localActive and time >= (eleFol.opeMod.timer.t + $PRE.eleFol.opeMod.timer.entryTime) ($RES_EVT_831) (66) [SCAL] (1) eleFol.opeMod.warUp.outPort[2].reset = eleFol.opeMod.transition9.outPort.set ($RES_SIM_536) (67) [SCAL] (1) $SEV_28 = (not eleFol.opeMod.transition9.localCondition and eleFol.opeMod.transition4.inPort.available) and not eleFol.opeMod.transition4.outPort.occupied ($RES_EVT_832) (68) [SCAL] (1) eleFol.opeMod.warUp.outPort[2].available = eleFol.opeMod.transition9.inPort.available ($RES_SIM_537) (69) [SCAL] (1) $SEV_29 = eleFol.opeMod.transition4.enableFire and time >= ((time - eleFol.opeMod.transition4.t_dummy) + eleFol.opeMod.transition4.waitTime) ($RES_EVT_833) (70) [SCAL] (1) eleFol.opeMod.warUp.outPort[1].reset = eleFol.opeMod.transition6.outPort.set ($RES_SIM_538) (71) [FOR-] (2) ($RES_SIM_363) (71) [----] for $i1 in 1:2 loop (71) [----] [SCAL] (1) eleFol.vol.dynBal.ports[$i1].p = 99999.99999999999 * eleFol.vol.dynBal.medium.p_bar ($RES_SIM_364) (71) [----] end for; (72) [FOR-] (3) ($RES_EVT_834) (72) [----] for $i1 in 1:3 loop (72) [----] [SCAL] (1) $SEV_30[$i1] = $i1 == 1 ($RES_EVT_835) (72) [----] end for; (73) [SCAL] (1) eleFol.opeMod.warUp.outPort[1].available = eleFol.opeMod.transition6.inPort.available ($RES_SIM_539) (74) [WHEN] (1)when not eleFol.opeMod.warUp.outerStatePort.localActive then (74) [----] eleFol.opeMod.and1.u2 := false (74) [----] else when $SEV_34 then (74) [----] eleFol.opeMod.and1.u2 := true (74) [----] else when eleFol.opeMod.warUp.outerStatePort.localActive then (74) [----] eleFol.opeMod.and1.u2 := eleFol.opeMod.warUpCtr.timer.t <= 0.0 (74) [----] end when; (75) [FOR-] (2) ($RES_SIM_365) (75) [----] for $i1 in 1:2 loop (75) [----] [SCAL] (1) eleFol.vol.dynBal.ports[$i1].h_outflow = 4184.0 * ((-273.15) - ((-273.15) - eleFol.vol.dynBal.medium.T_degC)) ($RES_SIM_366) (75) [----] end for; (76) [FOR-] (3) ($RES_EVT_836) (76) [----] for $i1 in 1:3 loop (76) [----] [SCAL] (1) $SEV_31[$i1] = eleFol.opeMod.plaOff.inPort[$i1 - 1].occupied or eleFol.opeMod.plaOff.inPort[$i1 - 1].set ($RES_EVT_837) (76) [----] end for; (77) [WHEN] (1)when not eleFol.opeMod.warUp.outerStatePort.localActive then (77) [----] eleFol.opeMod.warUpCtr.timer.entryTime := $PRE.eleFol.opeMod.warUpCtr.timer.entryTime (77) [----] else when $SEV_34 then (77) [----] eleFol.opeMod.warUpCtr.timer.entryTime := $PRE.eleFol.opeMod.warUpCtr.timer.entryTime (77) [----] else when eleFol.opeMod.warUp.outerStatePort.localActive then (77) [----] eleFol.opeMod.warUpCtr.timer.entryTime := time (77) [----] end when; (78) [SCAL] (1) $SEV_32 = $FUN_16 or eleFol.opeMod.plaOff.outerStatePort.localActive and not $FUN_17 ($RES_EVT_838) (79) [SCAL] (1) $SEV_33 = (eleFol.opeMod.transition6.localCondition and eleFol.opeMod.transition6.inPort.available) and not eleFol.opeMod.transition6.outPort.occupied ($RES_EVT_839) (80) [SCAL] (1) eleFol.opeMod.transition8.outPort.set = $SEV_35 ($RES_SIM_194) (81) [SCAL] (1) eleFol.opeMod.nor.outPort[1].reset = false ($RES_SIM_199) (82) [WHEN] (1)when false then (82) [----] eleFol.opeMod.cooDow.oldActive := eleFol.opeMod.cooDow.outerStatePort.localActive (82) [----] end when; (83) [SCAL] (1) eleFol.opeMod.cooDow.newActive = $SEV_54 ($RES_SIM_281) (84) [SCAL] (1) eleFol.opeMod.cooDow.outerStatePort.localActive = $TEV_28 ($RES_SIM_282) (85) [SCAL] (1) eleFol.opeMod.cooDow.outerStatePort.subgraphStatePort.activeSteps = if eleFol.opeMod.cooDow.outerStatePort.localActive then 1.0 else 0.0 ($RES_SIM_284) (86) [FOR-] (2) ($RES_SIM_285) (86) [----] for $i1 in 1:2 loop (86) [----] [SCAL] (1) eleFol.opeMod.warUp.outPort[$i1].reset = false ($RES_SIM_286) (86) [----] end for; (87) [FOR-] (2) ($RES_SIM_287) (87) [----] for $i1 in 1:2 loop (87) [----] [SCAL] (1) eleFol.opeMod.warUp.inPort[$i1].set = false ($RES_SIM_288) (87) [----] end for; (88) [SCAL] (1) eleFol.opeMod.pumOn.outPort[2].reset = eleFol.opeMod.transition5.outPort.set ($RES_SIM_540) (89) [FOR-] (2) ($RES_SIM_289) (89) [----] for $i1 in 1:2 loop (89) [----] [SCAL] (1) eleFol.opeMod.warUp.outPort[$i1].available = if $SEV_51[$i1] then eleFol.opeMod.warUp.outerStatePort.localActive else $SEV_55[$i1] ($RES_SIM_290) (89) [----] end for; (90) [SCAL] (1) eleFol.opeMod.pumOn.outPort[2].available = eleFol.opeMod.transition5.inPort.available ($RES_SIM_541) (91) [SCAL] (1) eleFol.opeMod.pumOn.outPort[1].reset = eleFol.opeMod.transition4.outPort.set ($RES_SIM_542) (92) [SCAL] (1) eleFol.opeMod.pumOn.outPort[1].available = eleFol.opeMod.transition4.inPort.available ($RES_SIM_543) (93) [SCAL] (1) eleFol.opeMod.transition2.outPort.set = eleFol.opeMod.pumOn.inPort[1].set ($RES_SIM_544) (94) [SCAL] (1) $SEV_34 = eleFol.opeMod.warUp.outerStatePort.localActive and time >= (eleFol.opeMod.warUpCtr.timer.t + $PRE.eleFol.opeMod.warUpCtr.timer.entryTime) ($RES_EVT_840) (95) [SCAL] (1) eleFol.opeMod.transition2.outPort.occupied = eleFol.opeMod.pumOn.inPort[1].occupied ($RES_SIM_545) (96) [SCAL] (1) $SEV_35 = (eleFol.opeMod.transition9.localCondition and eleFol.opeMod.transition8.inPort.available) and not eleFol.opeMod.transition8.outPort.occupied ($RES_EVT_841) (97) [SCAL] (1) eleFol.opeMod.staBy.outPort[2].reset = eleFol.opeMod.transition3.outPort.set ($RES_SIM_546) (98) [SCAL] (1) eleFol.vol.dynBal.ports_H_flow[2] = $FUN_2 ($RES_SIM_371) (99) [SCAL] (1) $SEV_36 = $FUN_14 or eleFol.opeMod.nor.outerStatePort.localActive and not $FUN_15 ($RES_EVT_842) (100) [SCAL] (1) eleFol.opeMod.staBy.outPort[2].available = eleFol.opeMod.transition3.inPort.available ($RES_SIM_547) (101) [SCAL] (1) eleFol.dp = eleFol.port_a.p - eleFol.port_b.p ($RES_BND_672) (102) [SCAL] (1) eleFol.vol.dynBal.ports_H_flow[1] = $FUN_1 ($RES_SIM_372) (103) [SCAL] (1) $SEV_37 = (not eleFol.opeMod.transition5.localCondition and eleFol.opeMod.transition2.inPort.available) and not eleFol.opeMod.transition2.outPort.occupied ($RES_EVT_843) (104) [SCAL] (1) eleFol.opeMod.staBy.outPort[1].reset = eleFol.opeMod.transition2.outPort.set ($RES_SIM_548) (105) [SCAL] (1) $SEV_38 = (not eleFol.opeMod.transition3.localCondition and eleFol.opeMod.transition1.inPort.available) and not eleFol.opeMod.transition1.outPort.occupied ($RES_EVT_844) (106) [SCAL] (1) eleFol.opeMod.staBy.outPort[1].available = eleFol.opeMod.transition2.inPort.available ($RES_SIM_549) (107) [SCAL] (1) eleFol.vol.p = eleFol.vol.ports[1].p ($RES_BND_674) (108) [SCAL] (1) eleFol.vol.dynBal.U = eleFol.vol.dynBal.m * (4184.0 * ((-273.15) - ((-273.15) - eleFol.vol.dynBal.medium.T_degC))) ($RES_SIM_374) (109) [SCAL] (1) $SEV_39 = not $PRE.eleFol.opeMod.assWatMas.not1.u and eleFol.m_flow > eleFol.opeMod.assWatMas.hys.uHigh or $PRE.eleFol.opeMod.assWatMas.not1.u and eleFol.m_flow >= eleFol.opeMod.assWatMas.hys.uLow ($RES_EVT_845) (110) [SCAL] (1) eleFol.vol.dynBal.m = eleFol.vol.dynBal.fluidVolume * eleFol.vol.dynBal.rho_start ($RES_SIM_375) (111) [SCAL] (1) $SEV_40 = not eleFol.opeMod.transition5.localCondition and not eleFol.opeMod.assWatMas.not1.u ($RES_EVT_846) (112) [SCAL] (1) $SEV_41 = eleFol.opeMod.timer.passed and eleFol.opeMod.transition9.localCondition ($RES_EVT_847) (113) [SCAL] (1) $SEV_42 = (eleFol.opeMod.transition10.localCondition and eleFol.opeMod.transition10.inPort.available) and not eleFol.opeMod.transition10.outPort.occupied ($RES_EVT_848) (114) [SCAL] (1) $SEV_43 = eleFol.opeMod.optCooDow.k and not eleFol.opeMod.transition9.localCondition ($RES_EVT_849) (115) [FOR-] (2) ($RES_SIM_291) (115) [----] for $i1 in 1:2 loop (115) [----] [SCAL] (1) eleFol.opeMod.warUp.inPort[$i1].occupied = if $SEV_51[$i1] then eleFol.opeMod.warUp.outerStatePort.localActive else $SEV_56[$i1] ($RES_SIM_292) (115) [----] end for; (116) [WHEN] (1)when false then (116) [----] eleFol.opeMod.warUp.oldActive := eleFol.opeMod.warUp.outerStatePort.localActive (116) [----] end when; (117) [SCAL] (1) $TEV_0 = $PRE.eleFol.assWatTem.hys.y ($RES_EVT_764) (118) [SCAL] (1) eleFol.opeMod.warUp.newActive = $SEV_57 ($RES_SIM_294) (119) [SCAL] (1) $TEV_1 = $PRE.eleFol.fil.assPow.minPow.y ($RES_EVT_765) (120) [SCAL] (1) eleFol.opeMod.warUp.outerStatePort.localActive = $TEV_31 ($RES_SIM_295) (121) [SCAL] (1) $TEV_2 = $PRE.eleFol.fil.assPow.maxPow.y ($RES_EVT_766) (122) [SCAL] (1) $TEV_3 = $PRE.eleFol.hys.y ($RES_EVT_767) (123) [SCAL] (1) eleFol.opeMod.warUp.outerStatePort.subgraphStatePort.activeSteps = if eleFol.opeMod.warUp.outerStatePort.localActive then 1.0 else 0.0 ($RES_SIM_297) (124) [SCAL] (1) $TEV_4 = $PRE.eleFol.opeMod.timer.passed ($RES_EVT_768) (125) [FOR-] (2) ($RES_SIM_298) (125) [----] for $i1 in 1:2 loop (125) [----] [SCAL] (1) eleFol.opeMod.pumOn.outPort[$i1].reset = false ($RES_SIM_299) (125) [----] end for; (126) [SCAL] (1) $TEV_5 = $PRE.eleFol.opeMod.timer.entryTime ($RES_EVT_769) (127) [SCAL] (1) eleFol.opeMod.transition1.outPort.set = eleFol.opeMod.staBy.inPort[1].set ($RES_SIM_550) (128) [SCAL] (1) eleFol.opeMod.transition1.outPort.occupied = eleFol.opeMod.staBy.inPort[1].occupied ($RES_SIM_551) (129) [SCAL] (1) eleFol.opeMod.transition10.outPort.set = eleFol.opeMod.plaOff.inPort[3].set ($RES_SIM_553) (130) [SCAL] (1) eleFol.opeMod.transition10.outPort.occupied = eleFol.opeMod.plaOff.inPort[3].occupied ($RES_SIM_554) (131) [SCAL] (1) $SEV_44 = (eleFol.opeMod.transition7.localCondition and eleFol.opeMod.transition7.inPort.available) and not eleFol.opeMod.transition7.outPort.occupied ($RES_EVT_850) (132) [SCAL] (1) eleFol.opeMod.transition5.outPort.set = eleFol.opeMod.plaOff.inPort[2].set ($RES_SIM_555) (133) [SCAL] (1) eleFol.vol.dynBal.medium.state.p = 99999.99999999999 * eleFol.vol.dynBal.medium.p_bar ($RES_SIM_380) (134) [SCAL] (1) $SEV_45 = (eleFol.opeMod.transition9.localCondition and eleFol.opeMod.transition9.inPort.available) and not eleFol.opeMod.transition9.outPort.occupied ($RES_EVT_851) (135) [SCAL] (1) eleFol.opeMod.transition5.outPort.occupied = eleFol.opeMod.plaOff.inPort[2].occupied ($RES_SIM_556) (136) [SCAL] (1) eleFol.vol.dynBal.medium.state.T = -((-273.15) - eleFol.vol.dynBal.medium.T_degC) ($RES_SIM_381) (137) [SCAL] (1) $SEV_46 = (eleFol.opeMod.transition5.localCondition and eleFol.opeMod.transition5.inPort.available) and not eleFol.opeMod.transition5.outPort.occupied ($RES_EVT_852) (138) [SCAL] (1) eleFol.opeMod.transition3.outPort.set = eleFol.opeMod.plaOff.inPort[1].set ($RES_SIM_557) (139) [SCAL] (1) $SEV_47 = (eleFol.opeMod.transition3.localCondition and eleFol.opeMod.transition3.inPort.available) and not eleFol.opeMod.transition3.outPort.occupied ($RES_EVT_853) (140) [SCAL] (1) eleFol.opeMod.transition3.outPort.occupied = eleFol.opeMod.plaOff.inPort[1].occupied ($RES_SIM_558) (141) [SCAL] (1) eleFol.preDro.dp = eleFol.port_a.p - eleFol.preDro.port_b.p ($RES_BND_683) (142) [SCAL] (1) $SEV_48 = not eleFol.opeMod.transition9.localCondition and eleFol.opeMod.and1.u2 ($RES_EVT_854) (143) [SCAL] (1) eleFol.eneCon.booExp.y = $SEV_73 ($RES_BND_684) (144) [SCAL] (1) $SEV_49 = eleFol.opeMod.hys.y and not eleFol.opeMod.transition5.localCondition ($RES_EVT_855) (145) [SCAL] (1) eleFol.eneCon.and1.u1 = $SEV_72 ($RES_BND_685) (146) [SCAL] (1) -(eleFol.TRoo.Q_flow + eleFol.QLos.Q_flow) = 0.0 ($RES_SIM_385) (147) [SCAL] (1) $SEV_50 = not $PRE.eleFol.opeMod.hys.y and eleFol.opeMod.add2.y > eleFol.opeMod.hys.uHigh or $PRE.eleFol.opeMod.hys.y and eleFol.opeMod.add2.y >= eleFol.opeMod.hys.uLow ($RES_EVT_856) (148) [FOR-] (2) ($RES_EVT_857) (148) [----] for $i1 in 1:2 loop (148) [----] [SCAL] (1) $SEV_51[$i1] = $i1 == 1 ($RES_EVT_858) (148) [----] end for; (149) [SCAL] (1) eleFol.watHea.port_a.Q_flow + eleFol.vol.heatPort.Q_flow = 0.0 ($RES_SIM_387) (150) [SCAL] (1) eleFol.opeMod.pumOn.outerStatePort.subgraphStatePort.activeSteps + eleFol.opeMod.warUp.outerStatePort.subgraphStatePort.activeSteps + eleFol.opeMod.cooDow.outerStatePort.subgraphStatePort.activeSteps + eleFol.opeMod.nor.outerStatePort.subgraphStatePort.activeSteps + eleFol.opeMod.plaOff.outerStatePort.subgraphStatePort.activeSteps + eleFol.stateGraphRoot.subgraphStatePort.activeSteps + eleFol.opeMod.staBy.outerStatePort.subgraphStatePort.activeSteps = 0.0 ($RES_SIM_388) (151) [FOR-] (2) ($RES_EVT_859) (151) [----] for $i1 in 1:2 loop (151) [----] [SCAL] (1) $SEV_52[$i1] = eleFol.opeMod.cooDow.outPort[$i1 - 1].available and not eleFol.opeMod.cooDow.outPort[$i1 - 1].reset ($RES_EVT_860) (151) [----] end for; (152) [SCAL] (1) $TEV_6 = $PRE.eleFol.opeMod.transition4.enableFire ($RES_EVT_770) (153) [SCAL] (1) $TEV_7 = $PRE.eleFol.opeMod.plaOff.oldActive ($RES_EVT_771) (154) [SCAL] (1) $TEV_8 = $PRE.eleFol.opeMod.plaOff.outerStatePort.localActive ($RES_EVT_772) (155) [SCAL] (1) $TEV_9 = $PRE.eleFol.opeMod.plaOff.newActive ($RES_EVT_773) (156) [SCAL] (1) $TEV_10 = $PRE.eleFol.opeMod.transition6.outPort.set ($RES_EVT_774) (157) [SCAL] (1) $TEV_11 = $PRE.eleFol.opeMod.and1.u2 ($RES_EVT_775) (158) [SCAL] (1) $TEV_12 = $PRE.eleFol.opeMod.warUpCtr.timer.entryTime ($RES_EVT_776) (159) [SCAL] (1) $TEV_13 = $PRE.eleFol.opeMod.transition8.outPort.set ($RES_EVT_777) (160) [SCAL] (1) $TEV_14 = $PRE.eleFol.opeMod.nor.oldActive ($RES_EVT_778) (161) [SCAL] (1) $TEV_15 = $PRE.eleFol.opeMod.nor.outerStatePort.localActive ($RES_EVT_779) (162) [SCAL] (1) (eleFol.eng.capTheEng.port.Q_flow + eleFol.QLos.Q_flow + eleFol.eng.QGen1.port.Q_flow) - eleFol.watHea.port_a.Q_flow = 0.0 ($RES_SIM_390) (163) [FOR-] (2) ($RES_EVT_861) (163) [----] for $i1 in 1:2 loop (163) [----] [SCAL] (1) $SEV_53[$i1] = eleFol.opeMod.cooDow.inPort[$i1 - 1].occupied or eleFol.opeMod.cooDow.inPort[$i1 - 1].set ($RES_EVT_862) (163) [----] end for; (164) [SCAL] (1) $SEV_54 = $FUN_12 or eleFol.opeMod.cooDow.outerStatePort.localActive and not $FUN_13 ($RES_EVT_863) (165) [SCAL] (1) eleFol.vol.ports[1].m_flow - eleFol.m_flow = 0.0 ($RES_SIM_393) (166) [FOR-] (2) ($RES_EVT_864) (166) [----] for $i1 in 1:2 loop (166) [----] [SCAL] (1) $SEV_55[$i1] = eleFol.opeMod.warUp.outPort[$i1 - 1].available and not eleFol.opeMod.warUp.outPort[$i1 - 1].reset ($RES_EVT_865) (166) [----] end for; (167) [FOR-] (2) ($RES_EVT_866) (167) [----] for $i1 in 1:2 loop (167) [----] [SCAL] (1) $SEV_56[$i1] = eleFol.opeMod.warUp.inPort[$i1 - 1].occupied or eleFol.opeMod.warUp.inPort[$i1 - 1].set ($RES_EVT_867) (167) [----] end for; (168) [SCAL] (1) eleFol.vol.ports[2].m_flow - eleFol.port_b.m_flow = 0.0 ($RES_SIM_396) (169) [SCAL] (1) eleFol.port_b.m_flow + sin.ports[1].m_flow = 0.0 ($RES_SIM_397) (170) [SCAL] (1) $SEV_57 = $FUN_10 or eleFol.opeMod.warUp.outerStatePort.localActive and not $FUN_11 ($RES_EVT_868) (171) [FOR-] (2) ($RES_EVT_869) (171) [----] for $i1 in 1:2 loop (171) [----] [SCAL] (1) $SEV_58[$i1] = eleFol.opeMod.pumOn.outPort[$i1 - 1].available and not eleFol.opeMod.pumOn.outPort[$i1 - 1].reset ($RES_EVT_870) (171) [----] end for; (172) [SCAL] (1) $TEV_16 = $PRE.eleFol.opeMod.nor.newActive ($RES_EVT_780) (173) [SCAL] (1) $TEV_17 = $PRE.eleFol.opeMod.transition2.outPort.set ($RES_EVT_781) (174) [SCAL] (1) $TEV_18 = $PRE.eleFol.opeMod.transition1.outPort.set ($RES_EVT_782) (175) [SCAL] (1) $TEV_19 = $PRE.eleFol.opeMod.assWatMas.not1.u ($RES_EVT_783) (176) [SCAL] (1) $TEV_20 = $PRE.eleFol.opeMod.transition10.outPort.set ($RES_EVT_784) (177) [SCAL] (1) $TEV_21 = $PRE.eleFol.opeMod.transition7.outPort.set ($RES_EVT_785) (178) [SCAL] (1) $TEV_22 = $PRE.eleFol.opeMod.transition9.outPort.set ($RES_EVT_786) (179) [SCAL] (1) $TEV_23 = $PRE.eleFol.opeMod.transition5.outPort.set ($RES_EVT_787) (180) [SCAL] (1) $TEV_24 = $PRE.eleFol.opeMod.transition3.outPort.set ($RES_EVT_788) (181) [SCAL] (1) $TEV_25 = $PRE.eleFol.opeMod.hys.y ($RES_EVT_789) (182) [SCAL] (1) $SEV_59 = $FUN_8 or eleFol.opeMod.pumOn.outerStatePort.localActive and not $FUN_9 ($RES_EVT_871) (183) [FOR-] (2) ($RES_EVT_872) (183) [----] for $i1 in 1:2 loop (183) [----] [SCAL] (1) $SEV_60[$i1] = eleFol.opeMod.staBy.outPort[$i1 - 1].available and not eleFol.opeMod.staBy.outPort[$i1 - 1].reset ($RES_EVT_873) (183) [----] end for; (184) [SCAL] (1) $SEV_61 = $FUN_6 or eleFol.opeMod.staBy.outerStatePort.localActive and not $FUN_7 ($RES_EVT_874) (185) [SCAL] (1) $SEV_62 = (-0.01) + eleFol.eneCon.opeModBas.etaQ.y > 0.005 ($RES_EVT_875) (186) [SCAL] (1) $SEV_63 = (-0.01) + eleFol.eneCon.opeModBas.etaQ.y < (-0.005) ($RES_EVT_876) (187) [SCAL] (1) $SEV_64 = (-0.01) + eleFol.eneCon.opeModBas.etaE.y > 0.005 ($RES_EVT_877) (188) [SCAL] (1) $SEV_65 = (-0.01) + eleFol.eneCon.opeModBas.etaE.y < (-0.005) ($RES_EVT_878) (189) [SCAL] (1) eleFol.vol.dynBal.ports[2].h_outflow = eleFol.vol.ports[2].h_outflow ($RES_SIM_665) (190) [SCAL] (1) eleFol.vol.dynBal.ports[1].h_outflow = eleFol.vol.ports[1].h_outflow ($RES_SIM_666) (191) [FOR-] (2) ($RES_SIM_667) (191) [----] for $i1 in 1:2 loop (191) [----] [SCAL] (1) eleFol.vol.dynBal.ports[$i1].m_flow - eleFol.vol.ports[$i1].m_flow = 0.0 ($RES_SIM_668) (191) [----] end for; (192) [ARRY] (2) eleFol.vol.dynBal.ports.p = eleFol.vol.ports.p ($RES_SIM_669) (193) [SCAL] (1) $TEV_26 = $PRE.eleFol.opeMod.cooDow.oldActive ($RES_EVT_790) (194) [SCAL] (1) $TEV_27 = $PRE.eleFol.opeMod.cooDow.outerStatePort.localActive ($RES_EVT_791) (195) [SCAL] (1) $TEV_28 = $PRE.eleFol.opeMod.cooDow.newActive ($RES_EVT_792) (196) [SCAL] (1) $TEV_29 = $PRE.eleFol.opeMod.warUp.oldActive ($RES_EVT_793) (197) [SCAL] (1) $TEV_30 = $PRE.eleFol.opeMod.warUp.outerStatePort.localActive ($RES_EVT_794) (198) [SCAL] (1) $TEV_31 = $PRE.eleFol.opeMod.warUp.newActive ($RES_EVT_795) (199) [SCAL] (1) $TEV_32 = $PRE.eleFol.opeMod.pumOn.oldActive ($RES_EVT_796) (200) [SCAL] (1) $TEV_33 = $PRE.eleFol.opeMod.pumOn.outerStatePort.localActive ($RES_EVT_797) (201) [SCAL] (1) $TEV_34 = $PRE.eleFol.opeMod.pumOn.newActive ($RES_EVT_798) (202) [SCAL] (1) $TEV_35 = $PRE.eleFol.opeMod.staBy.oldActive ($RES_EVT_799) (203) [SCAL] (1) eleFol.opeMod.transition6.outPort.set = eleFol.opeMod.nor.inPort[1].set ($RES_SIM_580) (204) [SCAL] (1) eleFol.opeMod.transition6.outPort.occupied = eleFol.opeMod.nor.inPort[1].occupied ($RES_SIM_581) (205) [SCAL] (1) eleFol.opeMod.plaOff.outPort[1].reset = eleFol.opeMod.transition1.outPort.set ($RES_SIM_582) (206) [SCAL] (1) eleFol.opeMod.plaOff.outPort[1].available = eleFol.opeMod.transition1.inPort.available ($RES_SIM_583) (207) [SCAL] (1) eleFol.opeMod.nor.outPort[1].reset = eleFol.opeMod.transition8.outPort.set ($RES_SIM_584) (208) [SCAL] (1) eleFol.opeMod.nor.outPort[1].available = eleFol.opeMod.transition8.inPort.available ($RES_SIM_585) (209) [SCAL] (1) $SEV_69 = eleFol.opeMod.actMod == Buildings.Fluid.CHPs.BaseClasses.Types.Mode.StandBy or eleFol.opeMod.actMod == Buildings.Fluid.CHPs.BaseClasses.Types.Mode.CoolDown ($RES_EVT_882) (210) [SCAL] (1) $SEV_70 = eleFol.opeMod.actMod == Buildings.Fluid.CHPs.BaseClasses.Types.Mode.StandBy ($RES_EVT_883) (211) [SCAL] (1) $SEV_71 = eleFol.opeMod.actMod == Buildings.Fluid.CHPs.BaseClasses.Types.Mode.Off or eleFol.opeMod.actMod == Buildings.Fluid.CHPs.BaseClasses.Types.Mode.StandBy ($RES_EVT_884) (212) [SCAL] (1) $SEV_72 = eleFol.opeMod.actMod == Buildings.Fluid.CHPs.BaseClasses.Types.Mode.WarmUp ($RES_EVT_885) (213) [SCAL] (1) $SEV_73 = eleFol.opeMod.actMod == Buildings.Fluid.CHPs.BaseClasses.Types.Mode.WarmUp or eleFol.opeMod.actMod == Buildings.Fluid.CHPs.BaseClasses.Types.Mode.Normal ($RES_EVT_886) (214) [SCAL] (1) $DER.ETheVal.y = ETheVal.k * QWatVal_flow.u ($RES_SIM_57) (215) [SCAL] (1) not eleFol.opeMod.transition3.localCondition = $SEV_14 ($RES_SIM_100) (216) [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_39) ($RES_SIM_101) (217) [WHEN] (1)when {$SEV_15, initial()} then (217) [----] avaSig.combiTimeTable.nextTimeEventScaled := Modelica.Blocks.Tables.Internal.getNextTimeEvent(avaSig.combiTimeTable.tableID, time) (217) [----] end when; (218) [WHEN] (1)when {$SEV_15, initial()} then (218) [----] avaSig.combiTimeTable.nextTimeEvent := if avaSig.combiTimeTable.nextTimeEventScaled < 1e60 then avaSig.combiTimeTable.nextTimeEventScaled else 1e60 (218) [----] end when; (219) [SCAL] (1) $DER.EEleVal.y = EEleVal.k * PEleNetVal.u ($RES_SIM_60) (220) [SCAL] (1) $DER.EThe.y = EThe.k * EThe.u ($RES_SIM_63) (221) [SCAL] (1) $DER.EEle.y = EEle.k * EEle.u ($RES_SIM_66) (222) [SCAL] (1) eleFol.stateGraphRoot.activeSteps = -integer(eleFol.stateGraphRoot.subgraphStatePort.activeSteps) ($RES_SIM_110) (223) [SCAL] (1) EThe.u = eleFol.gai.k * eleFol.watHea.port_a.Q_flow ($RES_SIM_111) (224) [SCAL] (1) eleFol.fil.PLim.simplifiedExpr = if eleFol.optFol.k then eleFol.zer1.k else eleFol.PEleDem ($RES_SIM_114) (225) [SCAL] (1) eleFol.opeMod.nor.inPort[1].set = false ($RES_SIM_200) (226) [SCAL] (1) eleFol.opeMod.nor.outPort[1].available = eleFol.opeMod.nor.outerStatePort.localActive ($RES_SIM_201) (227) [SCAL] (1) dTEng.u2 = TEngVal.conv.k * TEngVal.u + TEngVal.conv.p ($RES_SIM_73) (228) [SCAL] (1) eleFol.opeMod.nor.inPort[1].occupied = eleFol.opeMod.nor.outerStatePort.localActive ($RES_SIM_202) (229) [SCAL] (1) dTWatOut.u2 = TWatOutVal.conv.k * TWatOutVal.u + TWatOutVal.conv.p ($RES_SIM_74) (230) [WHEN] (1)when false then (230) [----] eleFol.opeMod.nor.oldActive := eleFol.opeMod.nor.outerStatePort.localActive (230) [----] end when; (231) [SCAL] (1) preTem.T = TRoo.conv.k * TRoo.u + TRoo.conv.p ($RES_SIM_75) (232) [SCAL] (1) -2.390057361376673e-4 * ((-1.1428595999999999e6) - cooWat.h_internal) = TWatIn.conv.k * TWatIn.u + TWatIn.conv.p ($RES_SIM_76) (233) [SCAL] (1) eleFol.opeMod.nor.newActive = $SEV_36 ($RES_SIM_204) (234) [FOR-] (12) ($RES_SIM_77) (234) [----] for $i1 in 1:12 loop (234) [----] [SCAL] (1) valDat.y[$i1] = valDat.p_offset[$i1] + Modelica.Blocks.Tables.Internal.getTimeTableValue(valDat.tableID, $i1, time, valDat.nextTimeEventScaled, $TEV_38) ($RES_SIM_78) (234) [----] end for; (235) [SCAL] (1) eleFol.opeMod.nor.outerStatePort.localActive = $TEV_16 ($RES_SIM_205) (236) [WHEN] (1)when {$SEV_11, initial()} then (236) [----] valDat.nextTimeEventScaled := Modelica.Blocks.Tables.Internal.getNextTimeEvent(valDat.tableID, time) (236) [----] end when; (237) [SCAL] (1) eleFol.opeMod.nor.outerStatePort.subgraphStatePort.activeSteps = if eleFol.opeMod.nor.outerStatePort.localActive then 1.0 else 0.0 ($RES_SIM_207) (238) [SCAL] (1) eleFol.PCon = if eleFol.powCon.cooDow.y then eleFol.powCon.switch.y else eleFol.powCon.const.k ($RES_SIM_120) (239) [SCAL] (1) eleFol.powCon.switch.y = if eleFol.powCon.staBy.y then eleFol.powCon.staByCon.k else eleFol.powCon.cooDowCon.k ($RES_SIM_121) (240) [SCAL] (1) $FUN_1 = semiLinear(eleFol.vol.dynBal.ports[1].m_flow, eleFol.preDro.port_b.h_outflow, eleFol.vol.dynBal.ports[1].h_outflow) ($RES_$AUX_735) (241) [SCAL] (1) $FUN_2 = semiLinear(eleFol.vol.dynBal.ports[2].m_flow, sin.ports[1].h_outflow, eleFol.vol.dynBal.ports[2].h_outflow) ($RES_$AUX_734) (242) [SCAL] (1) 0.0 = sum(eleFol.vol.dynBal.ports.m_flow) ($RES_$AUX_733) (243) [SCAL] (1) -eleFol.vol.heatPort.Q_flow = sum(eleFol.vol.dynBal.ports_H_flow) ($RES_$AUX_732) (244) [SCAL] (1) eleFol.eneCon.switch4.u3 = Buildings.Utilities.Math.Functions.polynomial(eleFol.eneCon.switch3.u3, eleFol.eneCon.opeModBas.masFloAir.a) ($RES_$AUX_731) (245) [SCAL] (1) eleFol.assWatTem.hys.y = $SEV_16 ($RES_SIM_129) (246) [SCAL] (1) $FUN_6 = Modelica.StateGraph.Temporary.anyTrue(eleFol.opeMod.staBy.inPort.set) ($RES_$AUX_730) (247) [WHEN] (1)when {$SEV_11, initial()} then (247) [----] valDat.nextTimeEvent := if valDat.nextTimeEventScaled < 1e60 then valDat.nextTimeEventScaled else 1e60 (247) [----] end when; (248) [SCAL] (1) eleFol.opeMod.transition2.outPort.set = $SEV_37 ($RES_SIM_210) (249) [SCAL] (1) dTEng.y = dTEng.k1 * eleFol.eng.capTheEng.T + dTEng.k2 * dTEng.u2 ($RES_SIM_84) (250) [SCAL] (1) dTWatOut.y = dTWatOut.k1 * (273.15 + 2.390057361376673e-4 * (4184.0 * ((-273.15) - ((-273.15) - eleFol.vol.dynBal.medium.T_degC)))) + dTWatOut.k2 * dTWatOut.u2 ($RES_SIM_85) (251) [SCAL] (1) dQLos.y = dQLos.k1 * eleFol.QLos.Q_flow + dQLos.k2 * QLosVal_flow.u ($RES_SIM_86) (252) [SCAL] (1) dQWat.y = dQWat.k1 * EThe.u + dQWat.k2 * QWatVal_flow.u ($RES_SIM_87) (253) [SCAL] (1) dQGen.y = dQGen.k1 * eleFol.eng.QGen_flow + dQGen.k2 * QGenVal_flow.u ($RES_SIM_88) (254) [SCAL] (1) eleFol.opeMod.transition1.outPort.set = $SEV_38 ($RES_SIM_217) (255) [SCAL] (1) dPEleNet.y = dPEleNet.k1 * EEle.u + dPEleNet.k2 * PEleNetVal.u ($RES_SIM_89) (256) [SCAL] (1) eleFol.opeMod.pumOn.inPort[1].set = false ($RES_SIM_300) (257) [FOR-] (2) ($RES_SIM_301) (257) [----] for $i1 in 1:2 loop (257) [----] [SCAL] (1) eleFol.opeMod.pumOn.outPort[$i1].available = if $SEV_51[$i1] then eleFol.opeMod.pumOn.outerStatePort.localActive else $SEV_58[$i1] ($RES_SIM_302) (257) [----] end for; (258) [SCAL] (1) eleFol.opeMod.pumOn.inPort[1].occupied = eleFol.opeMod.pumOn.outerStatePort.localActive ($RES_SIM_303) (259) [WHEN] (1)when false then (259) [----] eleFol.opeMod.pumOn.oldActive := eleFol.opeMod.pumOn.outerStatePort.localActive (259) [----] end when; (260) [SCAL] (1) eleFol.opeMod.pumOn.newActive = $SEV_59 ($RES_SIM_305) (261) [SCAL] (1) $FUN_7 = Modelica.StateGraph.Temporary.anyTrue(eleFol.opeMod.staBy.outPort.reset) ($RES_$AUX_729) (262) [SCAL] (1) eleFol.opeMod.pumOn.outerStatePort.localActive = $TEV_34 ($RES_SIM_306) (263) [SCAL] (1) eleFol.conWat.mWatIntCon.u2 = eleFol.conWat.to_degC.conv.k * eleFol.conWat.TWatIn + eleFol.conWat.to_degC.conv.p ($RES_SIM_131) (264) [SCAL] (1) $FUN_8 = Modelica.StateGraph.Temporary.anyTrue(eleFol.opeMod.pumOn.inPort.set) ($RES_$AUX_728) (265) [SCAL] (1) $FUN_9 = Modelica.StateGraph.Temporary.anyTrue(eleFol.opeMod.pumOn.outPort.reset) ($RES_$AUX_727) (266) [SCAL] (1) eleFol.opeMod.pumOn.outerStatePort.subgraphStatePort.activeSteps = if eleFol.opeMod.pumOn.outerStatePort.localActive then 1.0 else 0.0 ($RES_SIM_308) (267) [SCAL] (1) eleFol.mWatSet_flow = if eleFol.conWat.offStaBy.y then eleFol.conWat.const.k else eleFol.conWat.mWatIntCon.y ($RES_SIM_133) (268) [SCAL] (1) $FUN_10 = Modelica.StateGraph.Temporary.anyTrue(eleFol.opeMod.warUp.inPort.set) ($RES_$AUX_726) (269) [FOR-] (2) ($RES_SIM_309) (269) [----] for $i1 in 1:2 loop (269) [----] [SCAL] (1) eleFol.opeMod.staBy.outPort[$i1].reset = false ($RES_SIM_310) (269) [----] end for; (270) [SCAL] (1) eleFol.conWat.mWatIntCon.y = eleFol.conWat.mWatIntCon.u2 * (eleFol.conWat.mWatIntCon.a[4] + eleFol.conWat.mWatIntCon.a[5] * eleFol.conWat.mWatIntCon.u2) + eleFol.hys.u * (eleFol.conWat.mWatIntCon.a[2] + eleFol.conWat.mWatIntCon.a[3] * eleFol.hys.u) + eleFol.conWat.mWatIntCon.a[1] + eleFol.hys.u * eleFol.conWat.mWatIntCon.a[6] * eleFol.conWat.mWatIntCon.u2 ($RES_SIM_134) (271) [SCAL] (1) $FUN_11 = Modelica.StateGraph.Temporary.anyTrue(eleFol.opeMod.warUp.outPort.reset) ($RES_$AUX_725) (272) [SCAL] (1) $FUN_12 = Modelica.StateGraph.Temporary.anyTrue(eleFol.opeMod.cooDow.inPort.set) ($RES_$AUX_724) (273) [SCAL] (1) eleFol.hys.u = eleFol.fil.dPLim.u ($RES_SIM_136) (274) [SCAL] (1) $FUN_13 = Modelica.StateGraph.Temporary.anyTrue(eleFol.opeMod.cooDow.outPort.reset) ($RES_$AUX_723) (275) [SCAL] (1) $DER.eleFol.fil.dPLim.y = smooth(1, noEvent(if $SEV_17 then eleFol.fil.dPLim.fallingSlewRate else if $SEV_18 then eleFol.fil.dPLim.raisingSlewRate else eleFol.fil.dPLim.thr)) ($RES_SIM_137) (276) [SCAL] (1) $FUN_14 = Modelica.StateGraph.Temporary.anyTrue(eleFol.opeMod.nor.inPort.set) ($RES_$AUX_722) (277) [SCAL] (1) $FUN_15 = Modelica.StateGraph.Temporary.anyTrue(eleFol.opeMod.nor.outPort.reset) ($RES_$AUX_721) (278) [SCAL] (1) $FUN_16 = Modelica.StateGraph.Temporary.anyTrue(eleFol.opeMod.plaOff.inPort.set) ($RES_$AUX_720) (279) [SCAL] (1) cooWat.ports[1].h_outflow = cooWat.h_internal ($RES_SIM_91) (280) [SCAL] (1) cooWat.ports[1].p = cooWat.p_in_internal ($RES_SIM_93) (281) [SCAL] (1) eleFol.opeMod.assWatMas.not1.u = $SEV_39 ($RES_SIM_223) (282) [SCAL] (1) sin.ports[1].h_outflow = 4184.0 * ((-273.15) + sin.T) ($RES_SIM_95) (283) [SCAL] (1) eleFol.opeMod.assWatMas.nand.y = not $SEV_40 ($RES_SIM_224) (284) [SCAL] (1) sin.ports[1].p = sin.p ($RES_SIM_97) (285) [SCAL] (1) eleFol.opeMod.transition10.localCondition = $SEV_41 ($RES_SIM_226) (286) [SCAL] (1) eleFol.opeMod.transition10.outPort.set = $SEV_42 ($RES_SIM_229) (287) [SCAL] (1) eleFol.opeMod.staBy.inPort[1].set = false ($RES_SIM_311) (288) [FOR-] (2) ($RES_SIM_312) (288) [----] for $i1 in 1:2 loop (288) [----] [SCAL] (1) eleFol.opeMod.staBy.outPort[$i1].available = if $SEV_51[$i1] then eleFol.opeMod.staBy.outerStatePort.localActive else $SEV_60[$i1] ($RES_SIM_313) (288) [----] end for; (289) [SCAL] (1) eleFol.opeMod.staBy.inPort[1].occupied = eleFol.opeMod.staBy.outerStatePort.localActive ($RES_SIM_314) (290) [WHEN] (1)when false then (290) [----] eleFol.opeMod.staBy.oldActive := eleFol.opeMod.staBy.outerStatePort.localActive (290) [----] end when; (291) [SCAL] (1) eleFol.fil.dPLim.u = homotopy(smooth(0, if $SEV_19 then eleFol.fil.PMax.k else if $SEV_20 then eleFol.fil.PMin.k else eleFol.fil.PLim.simplifiedExpr), eleFol.fil.PLim.simplifiedExpr) ($RES_SIM_140) (292) [SCAL] (1) $FUN_17 = Modelica.StateGraph.Temporary.anyTrue(eleFol.opeMod.plaOff.outPort.reset) ($RES_$AUX_719) (293) [SCAL] (1) eleFol.opeMod.staBy.newActive = $SEV_61 ($RES_SIM_316) (294) [SCAL] (1) -cooWat.m_flow_in = sum(cooWat.ports.m_flow) ($RES_$AUX_718) (295) [SCAL] (1) eleFol.opeMod.staBy.outerStatePort.localActive = $TEV_37 ($RES_SIM_317) (296) [SCAL] (1) eleFol.opeMod.staBy.outerStatePort.subgraphStatePort.activeSteps = if eleFol.opeMod.staBy.outerStatePort.localActive then 1.0 else 0.0 ($RES_SIM_319) (297) [SCAL] (1) eleFol.fil.assPow.minPow.y = $SEV_22 ($RES_SIM_144) (298) [SCAL] (1) eleFol.fil.assPow.maxPow.y = $SEV_23 ($RES_SIM_145) (299) [SCAL] (1) eleFol.fil.assPow.nor.y = not $SEV_24 ($RES_SIM_146) (300) [SCAL] (1) eleFol.hys.y = $SEV_25 ($RES_SIM_148) (301) [SCAL] (1) valDat.y[9] = QLosVal_flow.u ($RES_SIM_400) (302) [SCAL] (1) not eleFol.opeMod.transition5.localCondition = $SEV_26 ($RES_SIM_149) (303) [SCAL] (1) eleFol.fil.dPLim.thr = (eleFol.fil.dPLim.u - eleFol.fil.dPLim.y) / eleFol.fil.dPLim.Td ($RES_BND_702) (304) [SCAL] (1) valDat.y[8] = QWatVal_flow.u ($RES_SIM_402) (305) [SCAL] (1) eleFol.conWat.offStaBy.y = $SEV_71 ($RES_BND_703) (306) [SCAL] (1) eleFol.conWat.TWatIn = 273.15 + 2.390057361376673e-4 * cooWat.ports[1].h_outflow ($RES_BND_705) (307) [SCAL] (1) valDat.y[7] = QGenVal_flow.u ($RES_SIM_405) (308) [SCAL] (1) eleFol.powCon.staBy.y = $SEV_70 ($RES_BND_706) (309) [SCAL] (1) valDat.y[5] = PEleNetVal.u ($RES_SIM_406) (310) [SCAL] (1) eleFol.powCon.cooDow.y = $SEV_69 ($RES_BND_707) (311) [SCAL] (1) eleFol.opeMod.transition7.localCondition = $SEV_43 ($RES_SIM_234) (312) [SCAL] (1) eleFol.opeMod.transition7.outPort.set = $SEV_44 ($RES_SIM_237) (313) [SCAL] (1) eleFol.eng.QGen1.port.Q_flow = -eleFol.eng.QGen_flow * (1.0 + eleFol.eng.QGen1.alpha * (eleFol.eng.capTheEng.T - eleFol.eng.QGen1.T_ref)) ($RES_SIM_322) (314) [SCAL] (1) eleFol.eng.conTheLos.dT = preTem.T - eleFol.eng.capTheEng.T ($RES_SIM_325) (315) [SCAL] (1) -eleFol.QLos.Q_flow = eleFol.eng.conTheLos.G * eleFol.eng.conTheLos.dT ($RES_SIM_326) (316) [-IF-] (1)if eleFol.opeMod.plaOff.outerStatePort.localActive then (316) [----] [SCAL] (1) eleFol.opeMod.actMod = Buildings.Fluid.CHPs.BaseClasses.Types.Mode.Off ($RES_SIM_152) (316) [----] elseif eleFol.opeMod.staBy.outerStatePort.localActive then (316) [----] [SCAL] (1) eleFol.opeMod.actMod = Buildings.Fluid.CHPs.BaseClasses.Types.Mode.StandBy ($RES_SIM_153) (316) [----] elseif eleFol.opeMod.pumOn.outerStatePort.localActive then (316) [----] [SCAL] (1) eleFol.opeMod.actMod = Buildings.Fluid.CHPs.BaseClasses.Types.Mode.PumpOn ($RES_SIM_154) (316) [----] elseif eleFol.opeMod.warUp.outerStatePort.localActive then (316) [----] [SCAL] (1) eleFol.opeMod.actMod = Buildings.Fluid.CHPs.BaseClasses.Types.Mode.WarmUp ($RES_SIM_155) (316) [----] elseif eleFol.opeMod.nor.outerStatePort.localActive then (316) [----] [SCAL] (1) eleFol.opeMod.actMod = Buildings.Fluid.CHPs.BaseClasses.Types.Mode.Normal ($RES_SIM_156) (316) [----] else (316) [----] [SCAL] (1) eleFol.opeMod.actMod = Buildings.Fluid.CHPs.BaseClasses.Types.Mode.CoolDown ($RES_SIM_157) (316) [----] end if; (317) [SCAL] (1) eleFol.eng.capTheEng.C * $DER.eleFol.eng.capTheEng.T = eleFol.eng.capTheEng.port.Q_flow ($RES_SIM_327) (318) [SCAL] (1) eleFol.eng.capTheEng.der_T = $DER.eleFol.eng.capTheEng.T ($RES_SIM_328) (319) [SCAL] (1) valDat.y[1] = eleFol.PEleDem ($RES_SIM_410) (320) [SCAL] (1) eleFol.opeMod.timer.y = if eleFol.opeMod.cooDow.outerStatePort.localActive then time - eleFol.opeMod.timer.entryTime else 0.0 ($RES_SIM_159) (321) [SCAL] (1) valDat.y[11] = TEngVal.u ($RES_SIM_413) (322) [SCAL] (1) valDat.y[10] = TWatOutVal.u ($RES_SIM_414) (323) [SCAL] (1) valDat.y[4] = TRoo.u ($RES_SIM_416) (324) [SCAL] (1) valDat.y[3] = TWatIn.u ($RES_SIM_418) (325) [SCAL] (1) valDat.y[2] = cooWat.m_flow_in ($RES_SIM_419) (326) [SCAL] (1) eleFol.opeMod.transition9.outPort.set = $SEV_45 ($RES_SIM_244) (327) [SCAL] (1) $TEV_36 = $PRE.eleFol.opeMod.staBy.outerStatePort.localActive ($RES_EVT_800) (328) [SCAL] (1) $TEV_37 = $PRE.eleFol.opeMod.staBy.newActive ($RES_EVT_801) (329) [SCAL] (1) $TEV_38 = $PRE.valDat.nextTimeEventScaled ($RES_EVT_802) (330) [SCAL] (1) eleFol.eng.theConHX.dT = (273.15 + 2.390057361376673e-4 * (4184.0 * ((-273.15) - ((-273.15) - eleFol.vol.dynBal.medium.T_degC)))) - eleFol.eng.capTheEng.T ($RES_SIM_332) (331) [SCAL] (1) $TEV_39 = $PRE.avaSig.combiTimeTable.nextTimeEventScaled ($RES_EVT_803) (332) [SCAL] (1) eleFol.watHea.port_a.Q_flow = eleFol.eng.theConHX.G * eleFol.eng.theConHX.dT ($RES_SIM_333) (333) [SCAL] (1) eleFol.eneCon.switch3.u2 = false ($RES_SIM_335) (334) [WHEN] (1)when not eleFol.opeMod.cooDow.outerStatePort.localActive then (334) [----] eleFol.opeMod.timer.entryTime := $PRE.eleFol.opeMod.timer.entryTime (334) [----] else when $SEV_27 then (334) [----] eleFol.opeMod.timer.entryTime := $PRE.eleFol.opeMod.timer.entryTime (334) [----] else when eleFol.opeMod.cooDow.outerStatePort.localActive then (334) [----] eleFol.opeMod.timer.entryTime := time (334) [----] end when; (335) [WHEN] (1)when not eleFol.opeMod.cooDow.outerStatePort.localActive then (335) [----] eleFol.opeMod.timer.passed := false (335) [----] else when $SEV_27 then (335) [----] eleFol.opeMod.timer.passed := true (335) [----] else when eleFol.opeMod.cooDow.outerStatePort.localActive then (335) [----] eleFol.opeMod.timer.passed := eleFol.opeMod.timer.t <= 0.0 (335) [----] end when; (336) [SCAL] (1) eleFol.eng.QGen_flow = if eleFol.eneCon.switch3.u2 then eleFol.eneCon.dumTimDel.k else eleFol.eneCon.switch5.u3 ($RES_SIM_339) (337) [SCAL] (1) eleFol.opeMod.transition4.enableFire = $SEV_28 ($RES_SIM_165) (338) [SCAL] (1) eleFol.opeMod.transition4.outPort.set = $SEV_29 ($RES_SIM_166) (339) [SCAL] (1) eleFol.opeMod.transition4.t = if eleFol.opeMod.transition4.enableFire then eleFol.opeMod.transition4.t_dummy else 0.0 ($RES_SIM_167) (340) [WHEN] (1)when eleFol.opeMod.transition4.enableFire then (340) [----] time - eleFol.opeMod.transition4.t_dummy := time (340) [----] end when; (341) [SCAL] (1) eleFol.opeMod.transition5.outPort.set = $SEV_46 ($RES_SIM_251) (342) [SCAL] (1) eleFol.m_flow + cooWat.ports[1].m_flow = 0.0 ($RES_SIM_427) (343) [SCAL] (1) cooWat.ports[1].p = eleFol.port_a.p ($RES_SIM_428) =================== Scalar Matching =================== variable to equation ********************** var 1 --> eqn 354 var 2 --> eqn 326 var 3 --> eqn 245 var 4 --> eqn 341 var 5 --> eqn 249 var 6 --> eqn 76 var 7 --> eqn 193 var 8 --> eqn 217 var 9 --> eqn 281 var 10 --> eqn 80 var 11 --> eqn 349 var 12 --> eqn 208 var 13 --> eqn 209 var 14 --> eqn 358 var 15 --> eqn 117 var 16 --> eqn 118 var 17 --> eqn 377 var 18 --> eqn 376 var 19 --> eqn 321 var 20 --> eqn 138 var 21 --> eqn 331 var 22 --> eqn 35 var 23 --> eqn 4 var 24 --> eqn 291 var 25 --> eqn 378 var 26 --> eqn 195 var 27 --> eqn 196 var 28 --> eqn 233 var 29 --> eqn 288 var 30 --> eqn 88 var 31 --> eqn 89 var 32 --> eqn 90 var 33 --> eqn 351 var 34 --> eqn 290 var 35 --> eqn 28 var 36 --> eqn 183 var 37 --> eqn 355 var 38 --> eqn 105 var 39 --> eqn 106 var 40 --> eqn 259 var 41 --> eqn 235 var 42 --> eqn 41 var 43 --> eqn 346 var 44 --> eqn 296 var 45 --> eqn 297 var 46 --> eqn 53 var 47 --> eqn 132 var 48 --> eqn 133 var 49 --> eqn 12 var 50 --> eqn 162 var 51 --> eqn 261 var 52 --> eqn 46 var 53 --> eqn 337 var 54 --> eqn 165 var 55 --> eqn 366 var 56 --> eqn 60 var 57 --> eqn 348 var 58 --> eqn 283 var 59 --> eqn 299 var 60 --> eqn 380 var 61 --> eqn 81 var 62 --> eqn 82 var 63 --> eqn 83 var 64 --> eqn 70 var 65 --> eqn 68 var 66 --> eqn 176 var 67 --> eqn 78 var 68 --> eqn 101 var 69 --> eqn 375 var 70 --> eqn 175 var 71 --> eqn 332 var 72 --> eqn 7 var 73 --> eqn 174 var 74 --> eqn 173 var 75 --> eqn 31 var 76 --> eqn 145 var 77 --> eqn 142 var 78 --> eqn 140 var 79 --> eqn 147 var 80 --> eqn 139 var 81 --> eqn 154 var 82 --> eqn 137 var 83 --> eqn 135 var 84 --> eqn 95 var 85 --> eqn 8 var 86 --> eqn 58 var 87 --> eqn 30 var 88 --> eqn 303 var 89 --> eqn 134 var 90 --> eqn 190 var 91 --> eqn 191 var 92 --> eqn 336 var 93 --> eqn 324 var 94 --> eqn 367 var 95 --> eqn 234 var 96 --> eqn 382 var 97 --> eqn 260 var 98 --> eqn 69 var 99 --> eqn 362 var 100 --> eqn 340 var 101 --> eqn 360 var 102 --> eqn 347 var 103 --> eqn 333 var 104 --> eqn 275 var 105 --> eqn 294 var 106 --> eqn 255 var 107 --> eqn 339 var 108 --> eqn 257 var 109 --> eqn 96 var 110 --> eqn 372 var 111 --> eqn 231 var 112 --> eqn 219 var 113 --> eqn 61 var 114 --> eqn 316 var 115 --> eqn 188 var 116 --> eqn 189 var 117 --> eqn 74 var 118 --> eqn 22 var 119 --> eqn 364 var 120 --> eqn 246 var 121 --> eqn 365 var 122 --> eqn 66 var 123 --> eqn 67 var 124 --> eqn 151 var 125 --> eqn 251 var 126 --> eqn 320 var 127 --> eqn 363 var 128 --> eqn 157 var 129 --> eqn 274 var 130 --> eqn 119 var 131 --> eqn 282 var 132 --> eqn 3 var 133 --> eqn 236 var 134 --> eqn 359 var 135 --> eqn 232 var 136 --> eqn 298 var 137 --> eqn 127 var 138 --> eqn 17 var 139 --> eqn 87 var 140 --> eqn 353 var 141 --> eqn 352 var 142 --> eqn 23 var 143 --> eqn 25 var 144 --> eqn 385 var 145 --> eqn 241 var 146 --> eqn 240 var 147 --> eqn 356 var 148 --> eqn 159 var 149 --> eqn 239 var 150 --> eqn 238 var 151 --> eqn 344 var 152 --> eqn 107 var 153 --> eqn 123 var 154 --> eqn 125 var 155 --> eqn 40 var 156 --> eqn 5 var 157 --> eqn 237 var 158 --> eqn 184 var 159 --> eqn 185 var 160 --> eqn 254 var 161 --> eqn 277 var 162 --> eqn 214 var 163 --> eqn 213 var 164 --> eqn 124 var 165 --> eqn 212 var 166 --> eqn 211 var 167 --> eqn 210 var 168 --> eqn 24 var 169 --> eqn 2 var 170 --> eqn 278 var 171 --> eqn 329 var 172 --> eqn 330 var 173 --> eqn 216 var 174 --> eqn 215 var 175 --> eqn 48 var 176 --> eqn 250 var 177 --> eqn 247 var 178 --> eqn 149 var 179 --> eqn 292 var 180 --> eqn 29 var 181 --> eqn 314 var 182 --> eqn 38 var 183 --> eqn 207 var 184 --> eqn 194 var 185 --> eqn 342 var 186 --> eqn 289 var 187 --> eqn 374 var 188 --> eqn 186 var 189 --> eqn 15 var 190 --> eqn 166 var 191 --> eqn 171 var 192 --> eqn 172 var 193 --> eqn 258 var 194 --> eqn 311 var 195 --> eqn 287 var 196 --> eqn 160 var 197 --> eqn 192 var 198 --> eqn 343 var 199 --> eqn 47 var 200 --> eqn 163 var 201 --> eqn 335 var 202 --> eqn 161 var 203 --> eqn 252 var 204 --> eqn 1 var 205 --> eqn 156 var 206 --> eqn 153 var 207 --> eqn 256 var 208 --> eqn 150 var 209 --> eqn 131 var 210 --> eqn 130 var 211 --> eqn 169 var 212 --> eqn 129 var 213 --> eqn 128 var 214 --> eqn 110 var 215 --> eqn 381 var 216 --> eqn 112 var 217 --> eqn 71 var 218 --> eqn 305 var 219 --> eqn 304 var 220 --> eqn 301 var 221 --> eqn 109 var 222 --> eqn 276 var 223 --> eqn 285 var 224 --> eqn 167 var 225 --> eqn 168 var 226 --> eqn 115 var 227 --> eqn 279 var 228 --> eqn 248 var 229 --> eqn 126 var 230 --> eqn 122 var 231 --> eqn 120 var 232 --> eqn 116 var 233 --> eqn 94 var 234 --> eqn 45 var 235 --> eqn 111 var 236 --> eqn 93 var 237 --> eqn 92 var 238 --> eqn 55 var 239 --> eqn 379 var 240 --> eqn 334 var 241 --> eqn 319 var 242 --> eqn 318 var 243 --> eqn 141 var 244 --> eqn 317 var 245 --> eqn 97 var 246 --> eqn 315 var 247 --> eqn 313 var 248 --> eqn 312 var 249 --> eqn 262 var 250 --> eqn 263 var 251 --> eqn 264 var 252 --> eqn 265 var 253 --> eqn 266 var 254 --> eqn 267 var 255 --> eqn 268 var 256 --> eqn 269 var 257 --> eqn 270 var 258 --> eqn 271 var 259 --> eqn 272 var 260 --> eqn 273 var 261 --> eqn 308 var 262 --> eqn 98 var 263 --> eqn 345 var 264 --> eqn 27 var 265 --> eqn 77 var 266 --> eqn 91 var 267 --> eqn 75 var 268 --> eqn 73 var 269 --> eqn 21 var 270 --> eqn 72 var 271 --> eqn 54 var 272 --> eqn 52 var 273 --> eqn 51 var 274 --> eqn 49 var 275 --> eqn 302 var 276 --> eqn 44 var 277 --> eqn 286 var 278 --> eqn 306 var 279 --> eqn 108 var 280 --> eqn 104 var 281 --> eqn 373 var 282 --> eqn 50 var 283 --> eqn 371 var 284 --> eqn 370 var 285 --> eqn 369 var 286 --> eqn 34 var 287 --> eqn 300 var 288 --> eqn 99 var 289 --> eqn 230 var 290 --> eqn 229 var 291 --> eqn 228 var 292 --> eqn 227 var 293 --> eqn 164 var 294 --> eqn 244 var 295 --> eqn 226 var 296 --> eqn 225 var 297 --> eqn 155 var 298 --> eqn 361 var 299 --> eqn 56 var 300 --> eqn 57 var 301 --> eqn 9 var 302 --> eqn 10 var 303 --> eqn 11 var 304 --> eqn 284 var 305 --> eqn 243 var 306 --> eqn 42 var 307 --> eqn 39 var 308 --> eqn 36 var 309 --> eqn 33 var 310 --> eqn 26 var 311 --> eqn 16 var 312 --> eqn 64 var 313 --> eqn 65 var 314 --> eqn 13 var 315 --> eqn 242 var 316 --> eqn 18 var 317 --> eqn 19 var 318 --> eqn 20 var 319 --> eqn 384 var 320 --> eqn 14 var 321 --> eqn 170 var 322 --> eqn 6 var 323 --> eqn 136 var 324 --> eqn 224 var 325 --> eqn 223 var 326 --> eqn 222 var 327 --> eqn 221 var 328 --> eqn 206 var 329 --> eqn 205 var 330 --> eqn 152 var 331 --> eqn 204 var 332 --> eqn 187 var 333 --> eqn 218 var 334 --> eqn 203 var 335 --> eqn 121 var 336 --> eqn 114 var 337 --> eqn 202 var 338 --> eqn 201 var 339 --> eqn 338 var 340 --> eqn 322 var 341 --> eqn 85 var 342 --> eqn 146 var 343 --> eqn 325 var 344 --> eqn 84 var 345 --> eqn 86 var 346 --> eqn 280 var 347 --> eqn 200 var 348 --> eqn 199 var 349 --> eqn 198 var 350 --> eqn 197 var 351 --> eqn 182 var 352 --> eqn 181 var 353 --> eqn 180 var 354 --> eqn 79 var 355 --> eqn 220 var 356 --> eqn 179 var 357 --> eqn 178 var 358 --> eqn 357 var 359 --> eqn 177 var 360 --> eqn 350 var 361 --> eqn 323 var 362 --> eqn 32 var 363 --> eqn 307 var 364 --> eqn 43 var 365 --> eqn 37 equation to variable ********************** eqn 1 --> var 204 eqn 2 --> var 169 eqn 3 --> var 132 eqn 4 --> var 23 eqn 5 --> var 156 eqn 6 --> var 322 eqn 7 --> var 72 eqn 8 --> var 85 eqn 9 --> var 301 eqn 10 --> var 302 eqn 11 --> var 303 eqn 12 --> var 49 eqn 13 --> var 314 eqn 14 --> var 320 eqn 15 --> var 189 eqn 16 --> var 311 eqn 17 --> var 138 eqn 18 --> var 316 eqn 19 --> var 317 eqn 20 --> var 318 eqn 21 --> var 269 eqn 22 --> var 118 eqn 23 --> var 142 eqn 24 --> var 168 eqn 25 --> var 143 eqn 26 --> var 310 eqn 27 --> var 264 eqn 28 --> var 35 eqn 29 --> var 180 eqn 30 --> var 87 eqn 31 --> var 75 eqn 32 --> var 362 eqn 33 --> var 309 eqn 34 --> var 286 eqn 35 --> var 22 eqn 36 --> var 308 eqn 37 --> var 365 eqn 38 --> var 182 eqn 39 --> var 307 eqn 40 --> var 155 eqn 41 --> var 42 eqn 42 --> var 306 eqn 43 --> var 364 eqn 44 --> var 276 eqn 45 --> var 234 eqn 46 --> var 52 eqn 47 --> var 199 eqn 48 --> var 175 eqn 49 --> var 274 eqn 50 --> var 282 eqn 51 --> var 273 eqn 52 --> var 272 eqn 53 --> var 46 eqn 54 --> var 271 eqn 55 --> var 238 eqn 56 --> var 299 eqn 57 --> var 300 eqn 58 --> var 86 eqn 59 --> var -1 eqn 60 --> var 56 eqn 61 --> var 113 eqn 62 --> var -1 eqn 63 --> var -1 eqn 64 --> var 312 eqn 65 --> var 313 eqn 66 --> var 122 eqn 67 --> var 123 eqn 68 --> var 65 eqn 69 --> var 98 eqn 70 --> var 64 eqn 71 --> var 217 eqn 72 --> var 270 eqn 73 --> var 268 eqn 74 --> var 117 eqn 75 --> var 267 eqn 76 --> var 6 eqn 77 --> var 265 eqn 78 --> var 67 eqn 79 --> var 354 eqn 80 --> var 10 eqn 81 --> var 61 eqn 82 --> var 62 eqn 83 --> var 63 eqn 84 --> var 344 eqn 85 --> var 341 eqn 86 --> var 345 eqn 87 --> var 139 eqn 88 --> var 30 eqn 89 --> var 31 eqn 90 --> var 32 eqn 91 --> var 266 eqn 92 --> var 237 eqn 93 --> var 236 eqn 94 --> var 233 eqn 95 --> var 84 eqn 96 --> var 109 eqn 97 --> var 245 eqn 98 --> var 262 eqn 99 --> var 288 eqn 100 --> var -1 eqn 101 --> var 68 eqn 102 --> var -1 eqn 103 --> var -1 eqn 104 --> var 280 eqn 105 --> var 38 eqn 106 --> var 39 eqn 107 --> var 152 eqn 108 --> var 279 eqn 109 --> var 221 eqn 110 --> var 214 eqn 111 --> var 235 eqn 112 --> var 216 eqn 113 --> var -1 eqn 114 --> var 336 eqn 115 --> var 226 eqn 116 --> var 232 eqn 117 --> var 15 eqn 118 --> var 16 eqn 119 --> var 130 eqn 120 --> var 231 eqn 121 --> var 335 eqn 122 --> var 230 eqn 123 --> var 153 eqn 124 --> var 164 eqn 125 --> var 154 eqn 126 --> var 229 eqn 127 --> var 137 eqn 128 --> var 213 eqn 129 --> var 212 eqn 130 --> var 210 eqn 131 --> var 209 eqn 132 --> var 47 eqn 133 --> var 48 eqn 134 --> var 89 eqn 135 --> var 83 eqn 136 --> var 323 eqn 137 --> var 82 eqn 138 --> var 20 eqn 139 --> var 80 eqn 140 --> var 78 eqn 141 --> var 243 eqn 142 --> var 77 eqn 143 --> var -1 eqn 144 --> var -1 eqn 145 --> var 76 eqn 146 --> var 342 eqn 147 --> var 79 eqn 148 --> var -1 eqn 149 --> var 178 eqn 150 --> var 208 eqn 151 --> var 124 eqn 152 --> var 330 eqn 153 --> var 206 eqn 154 --> var 81 eqn 155 --> var 297 eqn 156 --> var 205 eqn 157 --> var 128 eqn 158 --> var -1 eqn 159 --> var 148 eqn 160 --> var 196 eqn 161 --> var 202 eqn 162 --> var 50 eqn 163 --> var 200 eqn 164 --> var 293 eqn 165 --> var 54 eqn 166 --> var 190 eqn 167 --> var 224 eqn 168 --> var 225 eqn 169 --> var 211 eqn 170 --> var 321 eqn 171 --> var 191 eqn 172 --> var 192 eqn 173 --> var 74 eqn 174 --> var 73 eqn 175 --> var 70 eqn 176 --> var 66 eqn 177 --> var 359 eqn 178 --> var 357 eqn 179 --> var 356 eqn 180 --> var 353 eqn 181 --> var 352 eqn 182 --> var 351 eqn 183 --> var 36 eqn 184 --> var 158 eqn 185 --> var 159 eqn 186 --> var 188 eqn 187 --> var 332 eqn 188 --> var 115 eqn 189 --> var 116 eqn 190 --> var 90 eqn 191 --> var 91 eqn 192 --> var 197 eqn 193 --> var 7 eqn 194 --> var 184 eqn 195 --> var 26 eqn 196 --> var 27 eqn 197 --> var 350 eqn 198 --> var 349 eqn 199 --> var 348 eqn 200 --> var 347 eqn 201 --> var 338 eqn 202 --> var 337 eqn 203 --> var 334 eqn 204 --> var 331 eqn 205 --> var 329 eqn 206 --> var 328 eqn 207 --> var 183 eqn 208 --> var 12 eqn 209 --> var 13 eqn 210 --> var 167 eqn 211 --> var 166 eqn 212 --> var 165 eqn 213 --> var 163 eqn 214 --> var 162 eqn 215 --> var 174 eqn 216 --> var 173 eqn 217 --> var 8 eqn 218 --> var 333 eqn 219 --> var 112 eqn 220 --> var 355 eqn 221 --> var 327 eqn 222 --> var 326 eqn 223 --> var 325 eqn 224 --> var 324 eqn 225 --> var 296 eqn 226 --> var 295 eqn 227 --> var 292 eqn 228 --> var 291 eqn 229 --> var 290 eqn 230 --> var 289 eqn 231 --> var 111 eqn 232 --> var 135 eqn 233 --> var 28 eqn 234 --> var 95 eqn 235 --> var 41 eqn 236 --> var 133 eqn 237 --> var 157 eqn 238 --> var 150 eqn 239 --> var 149 eqn 240 --> var 146 eqn 241 --> var 145 eqn 242 --> var 315 eqn 243 --> var 305 eqn 244 --> var 294 eqn 245 --> var 3 eqn 246 --> var 120 eqn 247 --> var 177 eqn 248 --> var 228 eqn 249 --> var 5 eqn 250 --> var 176 eqn 251 --> var 125 eqn 252 --> var 203 eqn 253 --> var -1 eqn 254 --> var 160 eqn 255 --> var 106 eqn 256 --> var 207 eqn 257 --> var 108 eqn 258 --> var 193 eqn 259 --> var 40 eqn 260 --> var 97 eqn 261 --> var 51 eqn 262 --> var 249 eqn 263 --> var 250 eqn 264 --> var 251 eqn 265 --> var 252 eqn 266 --> var 253 eqn 267 --> var 254 eqn 268 --> var 255 eqn 269 --> var 256 eqn 270 --> var 257 eqn 271 --> var 258 eqn 272 --> var 259 eqn 273 --> var 260 eqn 274 --> var 129 eqn 275 --> var 104 eqn 276 --> var 222 eqn 277 --> var 161 eqn 278 --> var 170 eqn 279 --> var 227 eqn 280 --> var 346 eqn 281 --> var 9 eqn 282 --> var 131 eqn 283 --> var 58 eqn 284 --> var 304 eqn 285 --> var 223 eqn 286 --> var 277 eqn 287 --> var 195 eqn 288 --> var 29 eqn 289 --> var 186 eqn 290 --> var 34 eqn 291 --> var 24 eqn 292 --> var 179 eqn 293 --> var -1 eqn 294 --> var 105 eqn 295 --> var -1 eqn 296 --> var 44 eqn 297 --> var 45 eqn 298 --> var 136 eqn 299 --> var 59 eqn 300 --> var 287 eqn 301 --> var 220 eqn 302 --> var 275 eqn 303 --> var 88 eqn 304 --> var 219 eqn 305 --> var 218 eqn 306 --> var 278 eqn 307 --> var 363 eqn 308 --> var 261 eqn 309 --> var -1 eqn 310 --> var -1 eqn 311 --> var 194 eqn 312 --> var 248 eqn 313 --> var 247 eqn 314 --> var 181 eqn 315 --> var 246 eqn 316 --> var 114 eqn 317 --> var 244 eqn 318 --> var 242 eqn 319 --> var 241 eqn 320 --> var 126 eqn 321 --> var 19 eqn 322 --> var 340 eqn 323 --> var 361 eqn 324 --> var 93 eqn 325 --> var 343 eqn 326 --> var 2 eqn 327 --> var -1 eqn 328 --> var -1 eqn 329 --> var 171 eqn 330 --> var 172 eqn 331 --> var 21 eqn 332 --> var 71 eqn 333 --> var 103 eqn 334 --> var 240 eqn 335 --> var 201 eqn 336 --> var 92 eqn 337 --> var 53 eqn 338 --> var 339 eqn 339 --> var 107 eqn 340 --> var 100 eqn 341 --> var 4 eqn 342 --> var 185 eqn 343 --> var 198 eqn 344 --> var 151 eqn 345 --> var 263 eqn 346 --> var 43 eqn 347 --> var 102 eqn 348 --> var 57 eqn 349 --> var 11 eqn 350 --> var 360 eqn 351 --> var 33 eqn 352 --> var 141 eqn 353 --> var 140 eqn 354 --> var 1 eqn 355 --> var 37 eqn 356 --> var 147 eqn 357 --> var 358 eqn 358 --> var 14 eqn 359 --> var 134 eqn 360 --> var 101 eqn 361 --> var 298 eqn 362 --> var 99 eqn 363 --> var 127 eqn 364 --> var 119 eqn 365 --> var 121 eqn 366 --> var 55 eqn 367 --> var 94 eqn 368 --> var -1 eqn 369 --> var 285 eqn 370 --> var 284 eqn 371 --> var 283 eqn 372 --> var 110 eqn 373 --> var 281 eqn 374 --> var 187 eqn 375 --> var 69 eqn 376 --> var 18 eqn 377 --> var 17 eqn 378 --> var 25 eqn 379 --> var 239 eqn 380 --> var 60 eqn 381 --> var 215 eqn 382 --> var 96 eqn 383 --> var -1 eqn 384 --> var 319 eqn 385 --> var 144