Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo", uses=false) 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 3.0.0/package.mo", uses=false) Using package Buildings with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 3.0.0/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) Using package Modelica_StateGraph2 with version 2.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:257:38-257:110:writable] Warning: The file was not encoded in UTF-8: "

An important practical aspect of state machines is the abilit...". Defaulting to 7-bit ASCII with unknown characters replaced by '?'. To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY"). To change it in a package: add a file package.encoding at the top-level. Note: The Modelica Language Specification only allows files encoded in UTF-8. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:761:36-761:108:writable] Warning: The file was not encoded in UTF-8: "

The Modelica_StateGraph2 library is described in detail in (O...". Defaulting to 7-bit ASCII with unknown characters replaced by '?'. To change encoding when loading a file: loadFile(encoding="ISO-XXXX-YY"). To change it in a package: add a file package.encoding at the top-level. Note: The Modelica Language Specification only allows files encoded in UTF-8. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:1435:36-1435:108:writable] Warning: The file was not encoded in UTF-8: "

Main Authors:
SCode: time 1.867e-05/1.869e-05, allocations: 2.5 kB / 0.5923 GB, free: 18.59 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.002618/0.002646, allocations: 2.39 MB / 0.5946 GB, free: 16.54 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001454/0.004111, allocations: 1.128 MB / 0.5957 GB, free: 15.4 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001572/0.00428, allocations: 11.94 kB / 0.5957 GB, free: 15.39 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009177/0.005204, allocations: 0.5942 MB / 0.5963 GB, free: 14.79 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001992/0.005414, allocations: 63.38 kB / 0.5963 GB, free: 14.73 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:12155:5-12155:45:writable] Warning: The second argument 'con.off.node' of Connections.branch must have the form A.R, where A is a connector and R an over-determined type/record. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:12160:5-12166:3:writable] Warning: Usage of non-standard operator (not specified in the Modelica specification): Connections.uniqueRoot. Functionality might be partially supported but is not guaranteed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:12160:5-12166:3:writable] Warning: The first argument 'con.off.node' of Connections.uniqueRoot must have the form A.R, where A is a connector and R an over-determined type/record. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:12183:5-12183:46:writable] Warning: The first argument 'con.off.node' of Connections.branch must have the form A.R, where A is a connector and R an over-determined type/record. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:12155:5-12155:45:writable] Warning: The second argument 'con.charge.node' of Connections.branch must have the form A.R, where A is a connector and R an over-determined type/record. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:12160:5-12166:3:writable] Warning: Usage of non-standard operator (not specified in the Modelica specification): Connections.uniqueRoot. Functionality might be partially supported but is not guaranteed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:12160:5-12166:3:writable] Warning: The first argument 'con.charge.node' of Connections.uniqueRoot must have the form A.R, where A is a connector and R an over-determined type/record. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:12183:5-12183:46:writable] Warning: The first argument 'con.charge.node' of Connections.branch must have the form A.R, where A is a connector and R an over-determined type/record. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:12155:5-12155:45:writable] Warning: The second argument 'con.discharge.node' of Connections.branch must have the form A.R, where A is a connector and R an over-determined type/record. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:12160:5-12166:3:writable] Warning: Usage of non-standard operator (not specified in the Modelica specification): Connections.uniqueRoot. Functionality might be partially supported but is not guaranteed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:12160:5-12166:3:writable] Warning: The first argument 'con.discharge.node' of Connections.uniqueRoot must have the form A.R, where A is a connector and R an over-determined type/record. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.0.2/package.mo:12183:5-12183:46:writable] Warning: The first argument 'con.discharge.node' of Connections.branch must have the form A.R, where A is a connector and R an over-determined type/record. Notification: Performance of NFTyping.typeClassSections: time 0.0007166/0.006137, allocations: 355.7 kB / 0.5967 GB, free: 14.38 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005366/0.006684, allocations: 0.6907 MB / 0.5974 GB, free: 13.69 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009137/0.007605, allocations: 0.905 MB / 0.5982 GB, free: 12.78 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002855/0.0079, allocations: 311 kB / 0.5985 GB, free: 12.47 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002484/0.008157, allocations: 290.7 kB / 0.5988 GB, free: 12.19 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 8.136e-05/0.008246, allocations: 80 kB / 0.5989 GB, free: 12.11 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001414/0.008395, allocations: 104 kB / 0.599 GB, free: 12.01 MB / 446.1 MB Notification: Performance of combineBinaries: time 0.0004449/0.008856, allocations: 0.8993 MB / 0.5999 GB, free: 11.1 MB / 446.1 MB Notification: Performance of replaceArrayConstructors: time 0.000234/0.009098, allocations: 0.5808 MB / 0.6004 GB, free: 10.51 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 8.483e-05/0.009192, allocations: 87.69 kB / 0.6005 GB, free: 10.42 MB / 446.1 MB Notification: Performance of FrontEnd: time 0.0001044/0.009304, allocations: 83.48 kB / 0.6006 GB, free: 10.34 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 172 (150) * Number of variables: 156 (142) Notification: Performance of Bindings: time 0.002101/0.01141, allocations: 2.761 MB / 0.6033 GB, free: 7.445 MB / 446.1 MB Notification: Performance of FunctionAlias: time 0.0002671/0.01168, allocations: 270.2 kB / 0.6036 GB, free: 7.184 MB / 446.1 MB Notification: Performance of Early Inline: time 0.001287/0.01298, allocations: 1.721 MB / 0.6052 GB, free: 5.422 MB / 446.1 MB Notification: Performance of simplify1: time 0.0001137/0.0131, allocations: 107.8 kB / 0.6053 GB, free: 5.316 MB / 446.1 MB Notification: Performance of Alias: time 0.001861/0.01497, allocations: 2.492 MB / 0.6078 GB, free: 2.531 MB / 446.1 MB Notification: Performance of simplify2: time 5.536e-05/0.01504, allocations: 83.88 kB / 0.6079 GB, free: 2.449 MB / 446.1 MB Notification: Performance of Events: time 0.0003528/0.01539, allocations: 392.6 kB / 0.6082 GB, free: 2.051 MB / 446.1 MB Notification: Performance of Detect States: time 0.0005246/0.01593, allocations: 0.8232 MB / 0.609 GB, free: 1.199 MB / 446.1 MB Notification: Performance of Partitioning: time 0.0006472/0.01658, allocations: 0.8798 MB / 0.6099 GB, free: 272 kB / 446.1 MB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 1 for dependency con.off.node.suspend could not be divided by the body size 2 without rest. Error: Internal error NBAdjacency.Matrix.createPseudo failed for: [FOR-] (4) ($RES_SIM_105) [----] for $i1 in 1:2 loop [----] [RECD] (2) con.off.outPort[$i1].node = con.off.node ($RES_SIM_106) [----] end for; Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (118/133) **************************** (1) [DISC] (1) Boolean con.T1.outPort.fire (2) [ALGB] (3) Real[3] con.multiSwitch1.expr = {0.0, 2e5, -4e5} (3) [DISC] (2) Boolean[2] $SEV_22[$i1] (4) [DISC] (1) Boolean con.T4.inPort.available (5) [DISC] (1) Boolean con.T1.outPort.node.resume (6) [DISC] (1) protected Boolean con.charge.inport_fire (7) [ALGB] (1) Real $FUN_12 (8) [ALGB] (1) Real $FUN_11 (9) [DISC] (1) Boolean con.T1.outPort.node.suspend (10) [DISC] (1) Boolean con.T3.outPort.node.suspend (11) [DISC] (1) protected Boolean con.off.newActive (fixed = true, start = true) (12) [DISS] (1) protected Real con.T1.t_start (13) [DISC] (2) Boolean[2] con.off.inPort.node.resume (14) [DISC] (1) Boolean con.charge.activePort = con.charge.activePort (15) [DISC] (1) Boolean con.T4.inPort.node.resume (16) [DISC] (1) Boolean con.off.activePort = con.off.activePort (17) [DISC] (1) Boolean con.T3.inPort.node.suspend (18) [DISC] (1) protected Boolean con.discharge.node.resume (19) [DISC] (1) protected Boolean con.off.outport_fire (20) [DISC] (1) protected Boolean con.discharge.newActive (fixed = true, start = false) (21) [DISC] (1) protected Boolean con.charge.outport_fire (22) [DISC] (1) Boolean[1] con.charge.inPort.node.resume (23) [DISC] (1) Boolean con.T2.enableFire (24) [DISC] (1) Boolean con.T1.inPort.node.suspend (25) [DISC] (2) Boolean[2] con.off.inPort.fire (26) [DISC] (1) protected Boolean con.charge.newActive (fixed = true, start = false) (27) [DISS] (1) protected Boolean con.off.oldActive (fixed = true, start = true) (28) [DISC] (1) protected Boolean con.discharge.outport_fire (29) [DISC] (1) Boolean con.T2.outPort.node.resume (30) [DISS] (1) protected Boolean con.discharge.oldActive (fixed = true, start = false) (31) [DISC] (1) Boolean[1] con.charge.outPort.available (32) [DISC] (1) Boolean con.T1.inPort.available (33) [DISS] (1) protected Boolean con.charge.oldActive (fixed = true, start = false) (34) [DISC] (2) Boolean[2] $SEV_21[$i1] (35) [DISC] (1) Boolean $SEV_24 (36) [DISC] (1) Boolean $SEV_23 (37) [DISC] (1) Boolean con.discharge.activePort = con.discharge.activePort (38) [DISC] (1) Boolean con.T2.outPort.node.suspend (39) [DISC] (1) Boolean con.and2.y (40) [DISC] (1) Boolean con.lessEqualThreshold.y (41) [ALGB] (1) Real SOC.y (42) [DISC] (1) Boolean[1] con.discharge.inPort.fire (43) [DISC] (1) Boolean con.T4.outPort.fire (44) [DISC] (1) Boolean con.not1.u (45) [DISC] (1) protected Boolean con.off.node.resume (46) [DISC] (1) Boolean[1] con.discharge.outPort.node.suspend (47) [DISC] (1) Boolean[1] con.charge.inPort.fire (48) [DISC] (1) Boolean con.T2.outPort.fire (49) [DISC] (1) protected Integer con.multiSwitch1.firstActiveIndex (50) [DISC] (1) Boolean con.T2.inPort.node.suspend (51) [DISC] (1) Boolean con.T2.inPort.available (52) [DISC] (1) Boolean con.T1.inPort.node.resume (53) [DISC] (1) Boolean $SEV_18 (54) [DISC] (2) Boolean[2] con.off.outPort.available (55) [DISC] (1) Boolean $SEV_17 (56) [DISC] (1) Boolean[1] con.charge.outPort.fire (57) [DISC] (1) Boolean $SEV_15 (58) [DISC] (1) Boolean[1] con.discharge.inPort.node.suspend (59) [DISC] (1) Boolean con.T3.outPort.node.resume (60) [DISC] (1) Boolean $SEV_14 (61) [DISC] (1) protected Boolean con.charge.node.suspend (62) [DISC] (1) Boolean $SEV_13 (63) [DISC] (2) Boolean[2] con.off.inPort.node.suspend (64) [DISC] (1) Boolean con.T2.inPort.node.resume (65) [DISC] (1) Boolean $SEV_12 (66) [DISC] (1) Boolean $SEV_11 (67) [DISC] (2) Boolean[2] $SEV_20[$i1] (68) [DISC] (1) Boolean $SEV_10 (69) [DISC] (1) Boolean[1] con.charge.outPort.node.suspend (70) [DISC] (1) Boolean con.T4.outPort.node.suspend (71) [DISC] (1) Boolean[1] con.discharge.inPort.node.resume (72) [DISC] (1) Boolean con.lessThreshold.y (73) [DISC] (2) Boolean[2] con.off.outPort.node.resume (74) [DISC] (1) protected Boolean con.charge.node.resume (75) [DISC] (1) Boolean[1] con.discharge.outPort.available (76) [DISC] (1) Boolean con.T3.inPort.node.resume (77) [DISC] (1) Boolean $SEV_9 (78) [DISC] (1) Boolean $SEV_8 (79) [DISC] (1) Boolean $SEV_7 (80) [DISC] (1) Boolean $SEV_6 (81) [ALGB] (1) Real con.multiSwitch1.y (82) [DISC] (1) Boolean $SEV_4 (83) [DISC] (1) Boolean $TEV_9 (84) [DISC] (1) Boolean con.T3.inPort.available (85) [DISC] (1) Boolean $SEV_3 (86) [DISC] (1) Boolean $TEV_8 (87) [DISC] (1) protected Boolean con.off.node.suspend (88) [DISC] (1) protected Boolean con.discharge.inport_fire (89) [DISC] (1) Boolean $SEV_2 (90) [DISC] (1) Boolean $TEV_7 (91) [DISC] (2) Boolean[2] $SEV_19[$i1] (92) [DISC] (1) Boolean $SEV_1 (93) [DISC] (1) Boolean $TEV_6 (94) [DISC] (3) Boolean[3] con.multiSwitch1.u (95) [DISC] (1) Boolean $SEV_0 (96) [DISC] (1) Boolean $TEV_5 (97) [DISC] (2) Boolean[2] con.off.outPort.fire (98) [DISC] (1) Boolean $TEV_4 (99) [DISC] (1) Boolean $TEV_3 (100) [DISC] (1) Boolean[1] con.charge.inPort.node.suspend (101) [DISC] (1) Boolean $TEV_2 (102) [DISC] (1) protected Boolean con.off.inport_fire (103) [DISC] (1) protected Boolean con.discharge.node.suspend (104) [DISC] (1) Boolean $TEV_1 (105) [DISC] (1) Boolean[1] con.discharge.outPort.node.resume (106) [DISC] (1) Boolean $TEV_0 (107) [DISC] (2) Boolean[2] con.off.outPort.node.suspend (108) [DISC] (1) Boolean[1] con.discharge.outPort.fire (109) [DISC] (1) Boolean con.T4.inPort.node.suspend (110) [DISC] (1) Boolean con.greaterEqualThreshold.y (111) [DISC] (1) Boolean con.T4.outPort.node.resume (112) [DISC] (1) Boolean $TEV_10 (113) [DISC] (1) Boolean[1] con.charge.outPort.node.resume (114) [DISS] (1) protected Real con.T2.t_start (115) [DISC] (1) Boolean con.greaterThreshold.y (116) [DISC] (1) Boolean con.T3.outPort.fire (117) [DISC] (1) Boolean con.and1.y (118) [DISC] (1) Boolean con.T1.enableFire System Equations (122/145) **************************** (1) [SCAL] (1) con.off.outPort[1].node.resume = con.T1.inPort.node.resume ($RES_SIM_132) (2) [SCAL] (1) con.discharge.newActive = if con.discharge.node.resume then con.discharge.oldActive else $SEV_10 ($RES_SIM_50) (3) [SCAL] (1) con.off.outPort[1].node.suspend = con.T1.inPort.node.suspend ($RES_SIM_133) (4) [SCAL] (1) con.T4.outPort.fire = $SEV_1 ($RES_SIM_16) (5) [SCAL] (1) con.off.outPort[1].fire = con.T1.outPort.fire ($RES_SIM_134) (6) [SCAL] (1) con.lessEqualThreshold.y = $SEV_2 ($RES_SIM_17) (7) [RECD] (2) con.T3.outPort.node = con.T3.inPort.node ($RES_SIM_53) (8) [SCAL] (1) con.charge.outPort[1].node.resume = con.T3.inPort.node.resume ($RES_SIM_170) (9) [SCAL] (1) con.greaterThreshold.y = $SEV_3 ($RES_SIM_18) (10) [SCAL] (1) con.off.outPort[1].available = con.T1.inPort.available ($RES_SIM_136) (11) [SCAL] (1) con.charge.outPort[1].node.suspend = con.T3.inPort.node.suspend ($RES_SIM_171) (12) [SCAL] (1) con.and2.y = $SEV_4 ($RES_SIM_19) (13) [SCAL] (1) con.T4.outPort.node.resume = con.off.inPort[2].node.resume ($RES_SIM_137) (14) [SCAL] (1) con.T1.outPort.fire = $SEV_17 ($RES_SIM_90) (15) [SCAL] (1) con.charge.outPort[1].fire = con.T3.outPort.fire ($RES_SIM_172) (16) [SCAL] (1) con.T4.outPort.node.suspend = con.off.inPort[2].node.suspend ($RES_SIM_138) (17) [WHEN] (1)when con.T1.enableFire then (17) [----] con.T1.t_start := time (17) [----] end when; (18) [SCAL] (1) con.T4.outPort.fire = con.off.inPort[2].fire ($RES_SIM_139) (19) [SCAL] (1) con.T1.enableFire = $SEV_18 ($RES_SIM_92) (20) [SCAL] (1) con.charge.outPort[1].available = con.T3.inPort.available ($RES_SIM_174) (21) [FOR-] (2) ($RES_SIM_93) (21) [----] for $i1 in 1:2 loop (21) [----] [SCAL] (1) con.off.outPort[$i1].fire = true ($RES_SIM_94) (21) [----] end for; (22) [SCAL] (1) con.not1.u = $SEV_24 ($RES_BND_188) (23) [SCAL] (1) con.T3.outPort.fire = $SEV_11 ($RES_SIM_59) (24) [FOR-] (2) ($RES_SIM_97) (24) [----] for $i1 in 1:2 loop (24) [----] [SCAL] (1) con.off.inPort[$i1].fire = true ($RES_SIM_98) (24) [----] end for; (25) [SCAL] (1) $TEV_5 = $PRE.con.T1.t_start ($RES_EVT_210) (26) [SCAL] (1) $TEV_6 = $PRE.con.T1.enableFire ($RES_EVT_211) (27) [SCAL] (1) $TEV_7 = time < SOC.startTime ($RES_EVT_212) (28) [SCAL] (1) $TEV_8 = $PRE.con.discharge.newActive ($RES_EVT_213) (29) [SCAL] (1) $TEV_9 = $PRE.con.charge.newActive ($RES_EVT_214) (30) [SCAL] (1) $TEV_10 = $PRE.con.off.newActive ($RES_EVT_215) (31) [SCAL] (1) $SEV_0 = con.multiSwitch1.firstActiveIndex == 0 ($RES_EVT_216) (32) [SCAL] (1) $SEV_1 = con.lessEqualThreshold.y and con.T4.inPort.available ($RES_EVT_217) (33) [SCAL] (1) $SEV_2 = SOC.y <= con.lessEqualThreshold.threshold ($RES_EVT_218) (34) [SCAL] (1) $SEV_3 = SOC.y > con.greaterThreshold.threshold ($RES_EVT_219) (35) [RECD] (2) con.T2.outPort.node = con.T2.inPort.node ($RES_SIM_21) (36) [FOR-] (4) ($RES_SIM_105) (36) [----] for $i1 in 1:2 loop (36) [----] [RECD] (2) con.off.outPort[$i1].node = con.off.node ($RES_SIM_106) (36) [----] end for; (37) [SCAL] (1) con.greaterEqualThreshold.y = $SEV_12 ($RES_SIM_60) (38) [SCAL] (1) con.T3.outPort.node.resume = con.off.inPort[1].node.resume ($RES_SIM_142) (39) [SCAL] (1) con.off.node.resume = false ($RES_SIM_107) (40) [SCAL] (1) con.T2.outPort.fire = $SEV_6 ($RES_SIM_25) (41) [SCAL] (1) con.lessThreshold.y = $SEV_13 ($RES_SIM_61) (42) [SCAL] (1) con.T3.outPort.node.suspend = con.off.inPort[1].node.suspend ($RES_SIM_143) (43) [SCAL] (1) con.off.node.suspend = false ($RES_SIM_108) (44) [WHEN] (1)when con.T2.enableFire then (44) [----] con.T2.t_start := time (44) [----] end when; (45) [SCAL] (1) con.charge.outPort[1].fire = true ($RES_SIM_62) (46) [SCAL] (1) con.T3.outPort.fire = con.off.inPort[1].fire ($RES_SIM_144) (47) [SCAL] (1) con.T2.enableFire = $SEV_7 ($RES_SIM_27) (48) [ARRY] (3) con.multiSwitch1.expr = {0.0, 2e5, -4e5} ($RES_BND_192) (49) [SCAL] (1) con.and1.y = $SEV_8 ($RES_SIM_28) (50) [SCAL] (1) con.charge.inPort[1].fire = true ($RES_SIM_65) (51) [SCAL] (1) con.discharge.outPort[1].node.resume = con.T4.inPort.node.resume ($RES_SIM_147) (52) [SCAL] (1) con.discharge.outPort[1].node.suspend = con.T4.inPort.node.suspend ($RES_SIM_148) (53) [SCAL] (1) con.discharge.outPort[1].fire = con.T4.outPort.fire ($RES_SIM_149) (54) [SCAL] (1) $SEV_4 = con.not1.u and con.greaterThreshold.y ($RES_EVT_220) (55) [SCAL] (1) $SEV_6 = con.T2.enableFire and time >= (con.T2.t_start + con.T2.waitTime) ($RES_EVT_222) (56) [SCAL] (1) $SEV_7 = con.and2.y and con.T2.inPort.available ($RES_EVT_223) (57) [SCAL] (1) $SEV_8 = not con.not1.u and con.lessThreshold.y ($RES_EVT_224) (58) [SCAL] (1) $SEV_9 = con.discharge.activePort and not con.discharge.node.suspend ($RES_EVT_225) (59) [SCAL] (1) $SEV_10 = con.discharge.inport_fire or (con.discharge.activePort and not con.discharge.outport_fire) and not con.discharge.node.suspend ($RES_EVT_226) (60) [SCAL] (1) $SEV_11 = con.greaterEqualThreshold.y and con.T3.inPort.available ($RES_EVT_227) (61) [SCAL] (1) $SEV_12 = SOC.y >= con.greaterEqualThreshold.threshold ($RES_EVT_228) (62) [SCAL] (1) $SEV_13 = SOC.y < con.lessThreshold.threshold ($RES_EVT_229) (63) [SCAL] (1) con.off.inport_fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue(con.off.inPort.fire) ($RES_$AUX_204) (64) [FOR-] (4) ($RES_SIM_111) (64) [----] for $i1 in 1:2 loop (64) [----] [RECD] (2) con.off.inPort[$i1].node = con.off.node ($RES_SIM_112) (64) [----] end for; (65) [SCAL] (1) con.off.outport_fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue(con.off.outPort.fire) ($RES_$AUX_203) (66) [SCAL] (1) con.discharge.outPort[1].fire = true ($RES_SIM_30) (67) [SCAL] (1) con.charge.inport_fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue(con.charge.inPort.fire) ($RES_$AUX_201) (68) [SCAL] (1) con.charge.outport_fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue(con.charge.outPort.fire) ($RES_$AUX_200) (69) [FOR-] (2) ($RES_SIM_115) (69) [----] for $i1 in 1:2 loop (69) [----] [SCAL] (1) con.off.outPort[$i1].available = if $SEV_19[$i1] then $SEV_20[$i1] else $SEV_22[$i1] ($RES_SIM_116) (69) [----] end for; (70) [SCAL] (1) con.discharge.inPort[1].fire = true ($RES_SIM_33) (71) [SCAL] (1) con.discharge.outPort[1].available = con.T4.inPort.available ($RES_SIM_151) (72) [WHEN] (1)when con.off.node.suspend then (72) [----] con.off.oldActive := con.off.activePort (72) [----] end when; (73) [SCAL] (1) con.off.activePort = $TEV_10 ($RES_SIM_118) (74) [FOR-] (2) ($RES_SIM_71) (74) [----] for $i1 in 1:1 loop (74) [----] [RECD] (2) con.charge.outPort[$i1].node = con.charge.node ($RES_SIM_72) (74) [----] end for; (75) [SCAL] (1) con.off.newActive = if con.off.node.resume then con.off.oldActive else $SEV_23 ($RES_SIM_119) (76) [SCAL] (1) con.T2.outPort.node.resume = con.discharge.inPort[1].node.resume ($RES_SIM_155) (77) [SCAL] (1) con.T2.outPort.node.suspend = con.discharge.inPort[1].node.suspend ($RES_SIM_156) (78) [FOR-] (2) ($RES_SIM_39) (78) [----] for $i1 in 1:1 loop (78) [----] [RECD] (2) con.discharge.outPort[$i1].node = con.discharge.node ($RES_SIM_40) (78) [----] end for; (79) [FOR-] (2) ($RES_SIM_75) (79) [----] for $i1 in 1:1 loop (79) [----] [RECD] (2) con.charge.inPort[$i1].node = con.charge.node ($RES_SIM_76) (79) [----] end for; (80) [SCAL] (1) con.T2.outPort.fire = con.discharge.inPort[1].fire ($RES_SIM_157) (81) [SCAL] (1) con.charge.outPort[1].available = $SEV_14 ($RES_SIM_79) (82) [SCAL] (1) $SEV_14 = con.charge.activePort and not con.charge.node.suspend ($RES_EVT_230) (83) [SCAL] (1) $SEV_15 = con.charge.inport_fire or (con.charge.activePort and not con.charge.outport_fire) and not con.charge.node.suspend ($RES_EVT_231) (84) [SCAL] (1) $SEV_17 = con.T1.enableFire and time >= (con.T1.t_start + con.T1.waitTime) ($RES_EVT_233) (85) [SCAL] (1) $SEV_18 = con.and1.y and con.T1.inPort.available ($RES_EVT_234) (86) [SCAL] (1) con.discharge.inport_fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue(con.discharge.inPort.fire) ($RES_$AUX_198) (87) [FOR-] (2) ($RES_EVT_235) (87) [----] for $i1 in 1:2 loop (87) [----] [SCAL] (1) $SEV_19[$i1] = $i1 == 1 ($RES_EVT_236) (87) [----] end for; (88) [SCAL] (1) con.discharge.outport_fire = Modelica_StateGraph2.Blocks.BooleanFunctions.anyTrue(con.discharge.outPort.fire) ($RES_$AUX_197) (89) [FOR-] (2) ($RES_EVT_237) (89) [----] for $i1 in 1:2 loop (89) [----] [SCAL] (1) $SEV_20[$i1] = con.off.activePort and not con.off.node.suspend ($RES_EVT_238) (89) [----] end for; (90) [SCAL] (1) con.multiSwitch1.firstActiveIndex = Modelica.Math.BooleanVectors.firstTrueIndex(con.multiSwitch1.u) ($RES_$AUX_195) (91) [SCAL] (1) $FUN_11 = sin(6.283185307179586 * SOC.freqHz * (time - SOC.startTime) + SOC.phase) ($RES_$AUX_194) (92) [FOR-] (2) ($RES_EVT_239) (92) [----] for $i1 in 1:2 loop (92) [----] [SCAL] (1) $SEV_21[$i1] = con.off.outPort[$i1 - 1].available and not con.off.outPort[$i1 - 1].fire ($RES_EVT_240) (92) [----] end for; (93) [SCAL] (1) $FUN_12 = mod(time, 86400.0) ($RES_$AUX_193) (94) [SCAL] (1) con.discharge.activePort = con.multiSwitch1.u[3] ($RES_SIM_124) (95) [FOR-] (2) ($RES_SIM_43) (95) [----] for $i1 in 1:1 loop (95) [----] [RECD] (2) con.discharge.inPort[$i1].node = con.discharge.node ($RES_SIM_44) (95) [----] end for; (96) [SCAL] (1) con.charge.inPort[1].node.resume = con.T1.outPort.node.resume ($RES_SIM_160) (97) [SCAL] (1) con.charge.activePort = con.multiSwitch1.u[2] ($RES_SIM_125) (98) [SCAL] (1) con.charge.inPort[1].node.suspend = con.T1.outPort.node.suspend ($RES_SIM_161) (99) [SCAL] (1) con.off.activePort = con.multiSwitch1.u[1] ($RES_SIM_126) (100) [WHEN] (1)when con.charge.node.suspend then (100) [----] con.charge.oldActive := con.charge.activePort (100) [----] end when; (101) [SCAL] (1) con.charge.inPort[1].fire = con.T1.outPort.fire ($RES_SIM_162) (102) [SCAL] (1) con.off.outPort[2].node.resume = con.T2.inPort.node.resume ($RES_SIM_127) (103) [SCAL] (1) con.charge.activePort = $TEV_9 ($RES_SIM_81) (104) [SCAL] (1) con.off.outPort[2].node.suspend = con.T2.inPort.node.suspend ($RES_SIM_128) (105) [SCAL] (1) con.charge.newActive = if con.charge.node.resume then con.charge.oldActive else $SEV_15 ($RES_SIM_82) (106) [SCAL] (1) con.discharge.outPort[1].available = $SEV_9 ($RES_SIM_47) (107) [SCAL] (1) con.off.outPort[2].fire = con.T2.outPort.fire ($RES_SIM_129) (108) [WHEN] (1)when con.discharge.node.suspend then (108) [----] con.discharge.oldActive := con.discharge.activePort (108) [----] end when; (109) [SCAL] (1) con.discharge.activePort = $TEV_8 ($RES_SIM_49) (110) [RECD] (2) con.T1.outPort.node = con.T1.inPort.node ($RES_SIM_86) (111) [SCAL] (1) con.multiSwitch1.y = if $SEV_0 then con.multiSwitch1.y_default else con.multiSwitch1.expr[con.multiSwitch1.firstActiveIndex] ($RES_SIM_8) (112) [SCAL] (1) $TEV_0 = $PRE.con.multiSwitch1.u ($RES_EVT_205) (113) [SCAL] (1) SOC.y = SOC.offset + (if $TEV_7 then 0.0 else SOC.amplitude * $FUN_11) ($RES_SIM_7) (114) [FOR-] (2) ($RES_EVT_241) (114) [----] for $i1 in 1:2 loop (114) [----] [SCAL] (1) $SEV_22[$i1] = $SEV_21[$i1] and not con.off.node.suspend ($RES_EVT_242) (114) [----] end for; (115) [SCAL] (1) $TEV_1 = $PRE.con.T4.outPort.fire ($RES_EVT_206) (116) [SCAL] (1) $TEV_2 = $PRE.con.T2.t_start ($RES_EVT_207) (117) [SCAL] (1) $SEV_23 = con.off.inport_fire or (con.off.activePort and not con.off.outport_fire) and not con.off.node.suspend ($RES_EVT_243) (118) [SCAL] (1) $TEV_3 = $PRE.con.T2.enableFire ($RES_EVT_208) (119) [SCAL] (1) $SEV_24 = $FUN_12 > 25200.0 and $FUN_12 <= 68400.0 ($RES_EVT_244) (120) [SCAL] (1) $TEV_4 = $PRE.con.T3.outPort.fire ($RES_EVT_209) (121) [RECD] (2) con.T4.outPort.node = con.T4.inPort.node ($RES_SIM_10) (122) [SCAL] (1) con.off.outPort[2].available = con.T2.inPort.available ($RES_SIM_131)