Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) 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) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.321/1.321, allocations: 289.8 MB / 297.1 MB, free: 6.68 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009086/0.0009087, allocations: 173.3 kB / 366.3 MB, free: 2 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.007/1.007, allocations: 205.1 MB / 0.6256 GB, free: 5.848 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000778/0.000778, allocations: 93.23 kB / 0.7395 GB, free: 39.7 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.209e-06/5.239e-06, allocations: 0 / 0.859 GB, free: 13.39 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3998/0.3998, allocations: 116.3 MB / 0.9726 GB, free: 68.23 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1383/0.5382, allocations: 142.4 MB / 1.112 GB, free: 6.121 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002417/0.5385, allocations: 95.86 kB / 1.112 GB, free: 6.027 MB / 0.7136 GB Notification: Performance of FrontEnd: time 0.01843/0.5569, allocations: 7.733 MB / 1.119 GB, free: 14.27 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 2.315e-05/0.557, allocations: 16.64 kB / 1.119 GB, free: 14.25 MB / 0.7292 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.0008995/0.5579, allocations: 0.6157 MB / 1.12 GB, free: 13.59 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.249e-05/0.5579, allocations: 8.031 kB / 1.12 GB, free: 13.58 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001179/0.558, allocations: 59.34 kB / 1.12 GB, free: 13.52 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004432/0.5585, allocations: 339.1 kB / 1.12 GB, free: 13.15 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.184e-05/0.5585, allocations: 20 kB / 1.12 GB, free: 13.13 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.341e-05/0.5586, allocations: 32 kB / 1.12 GB, free: 13.1 MB / 0.7292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006482/0.5593, allocations: 370.5 kB / 1.121 GB, free: 12.73 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007238/0.56, allocations: 492.8 kB / 1.121 GB, free: 12.22 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.59e-05/0.56, allocations: 3.938 kB / 1.121 GB, free: 12.22 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.619e-05/0.5601, allocations: 4 kB / 1.121 GB, free: 12.21 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.735e-05/0.5601, allocations: 21.73 kB / 1.121 GB, free: 12.2 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00201/0.5621, allocations: 1.805 MB / 1.123 GB, free: 10.32 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004511/0.5626, allocations: 303.1 kB / 1.123 GB, free: 10.02 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002283/0.5628, allocations: 167.5 kB / 1.123 GB, free: 9.852 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 5.284e-05/0.5629, allocations: 12.56 kB / 1.123 GB, free: 9.84 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002733/0.5631, allocations: 197.9 kB / 1.124 GB, free: 9.633 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=46): time 1.954e-06/0.5632, allocations: 0 / 1.124 GB, free: 9.633 MB / 0.7292 GB Notification: Performance of matching and sorting (n=46): time 0.0005492/0.5637, allocations: 298.2 kB / 1.124 GB, free: 9.336 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.016e-05/0.5638, allocations: 67.39 kB / 1.124 GB, free: 9.258 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001693/0.5639, allocations: 209 kB / 1.124 GB, free: 9.047 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 5.357e-05/0.564, allocations: 37.7 kB / 1.124 GB, free: 9.004 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001172/0.5641, allocations: 208.6 kB / 1.124 GB, free: 8.797 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 8.313e-05/0.5642, allocations: 102.7 kB / 1.124 GB, free: 8.695 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.844e-05/0.5642, allocations: 4.938 kB / 1.124 GB, free: 8.691 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001095/0.5644, allocations: 342.7 kB / 1.125 GB, free: 8.348 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002297/0.5646, allocations: 145.3 kB / 1.125 GB, free: 8.203 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002795/0.5649, allocations: 263.4 kB / 1.125 GB, free: 7.902 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002682/0.5651, allocations: 145.4 kB / 1.125 GB, free: 7.762 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.149e-06/0.5652, allocations: 4 kB / 1.125 GB, free: 7.758 MB / 0.7292 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0006751/0.5658, allocations: 444.3 kB / 1.126 GB, free: 7.316 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.211e-05/0.5659, allocations: 4 kB / 1.126 GB, free: 7.312 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.674e-06/0.5659, allocations: 4 kB / 1.126 GB, free: 7.309 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.716e-05/0.5659, allocations: 8 kB / 1.126 GB, free: 7.301 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002333/0.5661, allocations: 64.78 kB / 1.126 GB, free: 7.238 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.095e-05/0.5662, allocations: 11.94 kB / 1.126 GB, free: 7.227 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002282/0.5664, allocations: 43.84 kB / 1.126 GB, free: 7.184 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.897e-05/0.5664, allocations: 24 kB / 1.126 GB, free: 7.16 MB / 0.7292 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.000124/0.5666, allocations: 154 kB / 1.126 GB, free: 7.004 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.856e-05/0.5666, allocations: 27.72 kB / 1.126 GB, free: 6.977 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006765/0.5673, allocations: 362.3 kB / 1.126 GB, free: 6.617 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.5673, allocations: 8 kB / 1.126 GB, free: 6.609 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.167e-06/0.5673, allocations: 0 / 1.126 GB, free: 6.609 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.244e-06/0.5673, allocations: 3.984 kB / 1.126 GB, free: 6.605 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001296/0.5686, allocations: 0.933 MB / 1.127 GB, free: 5.629 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.5687, allocations: 0 / 1.127 GB, free: 5.629 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001528/0.5688, allocations: 39.91 kB / 1.127 GB, free: 5.59 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.712e-06/0.5688, allocations: 4 kB / 1.127 GB, free: 5.586 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.261e-05/0.5689, allocations: 4 kB / 1.127 GB, free: 5.582 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.949e-06/0.5689, allocations: 8 kB / 1.127 GB, free: 5.574 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.5689, allocations: 5.25 kB / 1.127 GB, free: 5.57 MB / 0.7292 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006203/0.5695, allocations: 443.6 kB / 1.128 GB, free: 5.121 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 5.752e-05/0.5696, allocations: 108.7 kB / 1.128 GB, free: 4.996 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.901e-05/0.5696, allocations: 3.984 kB / 1.128 GB, free: 4.992 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001867/0.5698, allocations: 23.98 kB / 1.128 GB, free: 4.969 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001355/0.57, allocations: 64.34 kB / 1.128 GB, free: 4.906 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.181e-05/0.57, allocations: 19.98 kB / 1.128 GB, free: 4.887 MB / 0.7292 GB Notification: Performance of sort global known variables: time 8.24e-05/0.5701, allocations: 128.3 kB / 1.128 GB, free: 4.762 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0003548/0.5705, allocations: 71.91 kB / 1.128 GB, free: 4.691 MB / 0.7292 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.0001907/0.5707, allocations: 138.2 kB / 1.128 GB, free: 4.547 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0005371/0.5712, allocations: 391.4 kB / 1.129 GB, free: 4.168 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.5712, allocations: 0.9375 kB / 1.129 GB, free: 4.168 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0002598/0.5715, allocations: 206.5 kB / 1.129 GB, free: 3.969 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002474/0.5717, allocations: 38.77 kB / 1.129 GB, free: 3.934 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009855/0.5727, allocations: 0.5207 MB / 1.129 GB, free: 3.383 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004828/0.5732, allocations: 0.8694 MB / 1.13 GB, free: 2.48 MB / 0.7292 GB Notification: Performance of SimCode: time 2.11e-07/0.5732, allocations: 0 / 1.13 GB, free: 2.48 MB / 0.7292 GB Notification: Performance of Templates: time 0.008124/0.5814, allocations: 4.479 MB / 1.135 GB, free: 14.08 MB / 0.7448 GB make -j1 -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.makefile (rm -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; mkfifo Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; head -c 1048576 < Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe >> ../files/Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.sim & ./Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe 2>&1)