Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.124/2.124, allocations: 284.9 MB / 292.2 MB, free: 14.68 MB / 238.1 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001558/0.001558, allocations: 184.4 kB / 360.4 MB, free: 12.19 MB / 302.1 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.61/1.61, allocations: 205.2 MB / 0.6188 GB, free: 4.613 MB / 462.1 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001227/0.001226, allocations: 88.16 kB / 0.7318 GB, free: 53.36 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 7.785e-06/7.794e-06, allocations: 0 / 0.8503 GB, free: 10.53 MB / 0.5919 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2243/0.2244, allocations: 115.2 MB / 0.9628 GB, free: 7.156 MB / 0.7012 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5475/0.772, allocations: 141.2 MB / 1.101 GB, free: 11.25 MB / 0.7012 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003109/0.7723, allocations: 98.5 kB / 1.101 GB, free: 11.16 MB / 0.7012 GB Notification: Performance of FrontEnd: time 0.02709/0.7994, allocations: 7.727 MB / 1.108 GB, free: 3.523 MB / 0.7012 GB Notification: Performance of Transformations before backend: time 2.767e-05/0.7995, allocations: 8.656 kB / 1.108 GB, free: 3.516 MB / 0.7012 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001103/0.8006, allocations: 0.6226 MB / 1.109 GB, free: 2.844 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 3.971e-05/0.8007, allocations: 12.53 kB / 1.109 GB, free: 2.832 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001305/0.8008, allocations: 55.34 kB / 1.109 GB, free: 2.777 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005181/0.8013, allocations: 331.1 kB / 1.109 GB, free: 2.41 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.692e-05/0.8014, allocations: 23.98 kB / 1.109 GB, free: 2.387 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.357e-05/0.8015, allocations: 36 kB / 1.109 GB, free: 2.352 MB / 0.7012 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001018/0.8025, allocations: 362.5 kB / 1.11 GB, free: 2 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001071/0.8036, allocations: 0.4905 MB / 1.11 GB, free: 1.484 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.188e-05/0.8037, allocations: 7.938 kB / 1.11 GB, free: 1.477 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.764e-05/0.8037, allocations: 0 / 1.11 GB, free: 1.477 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.088e-05/0.8038, allocations: 17 kB / 1.11 GB, free: 1.461 MB / 0.7012 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002808/0.8066, allocations: 1.801 MB / 1.112 GB, free: 15.6 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007979/0.8074, allocations: 315.1 kB / 1.112 GB, free: 15.28 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004055/0.8078, allocations: 164.8 kB / 1.112 GB, free: 15.12 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 7.06e-05/0.8079, allocations: 12.59 kB / 1.113 GB, free: 15.11 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004523/0.8084, allocations: 201.6 kB / 1.113 GB, free: 14.89 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=46): time 2.475e-06/0.8084, allocations: 0 / 1.113 GB, free: 14.89 MB / 0.7169 GB Notification: Performance of matching and sorting (n=46): time 0.0008714/0.8093, allocations: 297.8 kB / 1.113 GB, free: 14.6 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.472e-05/0.8093, allocations: 60.44 kB / 1.113 GB, free: 14.53 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002657/0.8096, allocations: 209 kB / 1.113 GB, free: 14.32 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.302e-05/0.8097, allocations: 45.69 kB / 1.113 GB, free: 14.27 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001645/0.8099, allocations: 200.7 kB / 1.113 GB, free: 14.07 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001416/0.81, allocations: 110.6 kB / 1.114 GB, free: 13.96 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.329e-05/0.8101, allocations: 0 / 1.114 GB, free: 13.96 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.000141/0.8102, allocations: 346.7 kB / 1.114 GB, free: 13.61 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004062/0.8106, allocations: 137.3 kB / 1.114 GB, free: 13.48 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005087/0.8112, allocations: 267.4 kB / 1.114 GB, free: 13.17 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004576/0.8116, allocations: 145.4 kB / 1.114 GB, free: 13.02 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.8117, allocations: 4 kB / 1.114 GB, free: 13.02 MB / 0.7169 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.00114/0.8128, allocations: 441.9 kB / 1.115 GB, free: 12.58 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/0.8128, allocations: 4 kB / 1.115 GB, free: 12.58 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.162e-05/0.8129, allocations: 4 kB / 1.115 GB, free: 12.57 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.581e-05/0.8129, allocations: 9 kB / 1.115 GB, free: 12.57 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004289/0.8133, allocations: 68.3 kB / 1.115 GB, free: 12.5 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.467e-05/0.8134, allocations: 12 kB / 1.115 GB, free: 12.49 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003832/0.8138, allocations: 35.73 kB / 1.115 GB, free: 12.45 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.851e-05/0.8138, allocations: 27.98 kB / 1.115 GB, free: 12.43 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 55 ($PRE.con.multiSwitch1.u[1],$PRE.con.multiSwitch1.u[2],$PRE.con.t1.enableFire,$PRE.con.t2.enableFire,$PRE.con.t3.enableFire,$PRE.con.t4.enableFire,con.stateGraphRoot.resume,con.stateGraphRoot.suspend,$whenCondition2,$whenCondition1,con.greaterEqualThreshold.y,con.and1.u1,con.and1.u2,con.and1.y,con.and2.u2,con.and2.y,con.lessEqualThreshold.y,con.multiSwitch1.u[1],con.multiSwitch1.u[2],con.multiSwitch1.firstActiveIndex,$PRE.con.off.localActive,con.off.localActive,con.off.inPort[1].set,con.off.outPort[1].reset,$PRE.con.off.newActive,con.off.newActive,$PRE.con.off.oldActive,con.off.oldActive,con.off.active,con.stateGraphRoot.activeSteps,con.alternative.split[2].available,con.t1.enableFire,con.t1.fire,$PRE.con.t1.t_start,con.t1.t_start,con.t2.enableFire,con.t2.fire,$PRE.con.t2.t_start,con.t2.t_start,$PRE.con.charge.localActive,con.charge.localActive,$PRE.con.charge.newActive,con.charge.newActive,$PRE.con.charge.oldActive,con.charge.oldActive,con.charge.active,$PRE.con.discharge.localActive,con.discharge.localActive,$PRE.con.discharge.newActive,con.discharge.newActive,$PRE.con.discharge.oldActive,con.discharge.oldActive,con.discharge.active,con.t3.enableFire,con.t4.enableFire) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (74): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001926/0.814, allocations: 156.2 kB / 1.115 GB, free: 12.27 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.216e-05/0.8141, allocations: 25.08 kB / 1.115 GB, free: 12.24 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001203/0.8153, allocations: 375.8 kB / 1.116 GB, free: 11.88 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.618e-06/0.8154, allocations: 4 kB / 1.116 GB, free: 11.87 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.8154, allocations: 0 / 1.116 GB, free: 11.87 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.047e-05/0.8154, allocations: 7.984 kB / 1.116 GB, free: 11.86 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002198/0.8176, allocations: 0.9213 MB / 1.116 GB, free: 10.9 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.8176, allocations: 0 / 1.116 GB, free: 10.9 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002779/0.8179, allocations: 44.86 kB / 1.116 GB, free: 10.86 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.087e-06/0.8179, allocations: 4 kB / 1.116 GB, free: 10.86 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.51e-05/0.818, allocations: 4.688 kB / 1.117 GB, free: 10.85 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.977e-06/0.818, allocations: 4 kB / 1.117 GB, free: 10.85 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.818, allocations: 3.938 kB / 1.117 GB, free: 10.84 MB / 0.7169 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009952/0.819, allocations: 444.3 kB / 1.117 GB, free: 10.39 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 7.065e-05/0.8191, allocations: 104.7 kB / 1.117 GB, free: 10.27 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.256e-05/0.8192, allocations: 10.12 kB / 1.117 GB, free: 10.26 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003521/0.8196, allocations: 23.97 kB / 1.117 GB, free: 10.24 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000205/0.8198, allocations: 60.34 kB / 1.117 GB, free: 10.18 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.221e-05/0.8198, allocations: 16 kB / 1.117 GB, free: 10.16 MB / 0.7169 GB Notification: Performance of sort global known variables: time 0.0001347/0.82, allocations: 136.2 kB / 1.117 GB, free: 10.03 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0005456/0.8205, allocations: 69.97 kB / 1.117 GB, free: 9.965 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 42 (con.t2.enableFire,con.t1.enableFire,con.discharge.active,con.discharge.localActive,con.charge.active,con.charge.localActive,con.off.localActive,$cse1,$cse2,$cse3,$cse4,$cse5,$cse6,$whenCondition2,$whenCondition1,con.greaterEqualThreshold.y,con.and1.u1,con.and1.u2,con.and1.y,con.and2.u2,con.and2.y,con.lessEqualThreshold.y,con.multiSwitch1.u[1],con.multiSwitch1.u[2],con.multiSwitch1.firstActiveIndex,con.off.inPort[1].set,con.off.outPort[1].reset,con.off.newActive,con.off.oldActive,con.off.active,con.stateGraphRoot.activeSteps,con.alternative.split[2].available,con.t1.fire,con.t1.t_start,con.t2.fire,con.t2.t_start,con.charge.newActive,con.charge.oldActive,con.discharge.newActive,con.discharge.oldActive,con.t3.enableFire,con.t4.enableFire) * Number of discrete states: 3 (con.off.newActive,con.charge.newActive,con.discharge.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002467/0.8208, allocations: 141 kB / 1.117 GB, free: 9.816 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0009427/0.8218, allocations: 396.2 kB / 1.118 GB, free: 9.434 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.8218, allocations: 4.125 kB / 1.118 GB, free: 9.43 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0004604/0.8222, allocations: 197.5 kB / 1.118 GB, free: 9.238 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003642/0.8226, allocations: 34.84 kB / 1.118 GB, free: 9.211 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001641/0.8243, allocations: 0.5285 MB / 1.119 GB, free: 8.66 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007276/0.825, allocations: 0.8694 MB / 1.119 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of SimCode: time 7.31e-07/0.825, allocations: 0 / 1.119 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of Templates: time 0.01358/0.8386, allocations: 4.473 MB / 1.124 GB, free: 3.438 MB / 0.7169 GB make -j1 -f Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.makefile (rm -f Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; mkfifo Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe >> ../files/Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.sim & ./Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe 2>&1)