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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.564/1.564, allocations: 289.9 MB / 297.4 MB, free: 6.371 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.001128/0.001129, allocations: 168.9 kB / 366.7 MB, free: 1.652 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.503/1.503, allocations: 205.3 MB / 0.626 GB, free: 7.152 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.0008417/0.0008416, allocations: 89.61 kB / 0.74 GB, free: 39.56 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.696e-05/1.684e-05, allocations: 4 kB / 0.8597 GB, free: 13.07 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6527/0.6527, allocations: 116.3 MB / 0.9733 GB, free: 76.25 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1989/0.8517, allocations: 142.5 MB / 1.112 GB, free: 7.754 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003005/0.8521, allocations: 91.89 kB / 1.112 GB, free: 7.668 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.02108/0.8732, allocations: 8.086 MB / 1.12 GB, free: 15.62 MB / 0.7292 GB Notification: Performance of FrontEnd: time 1.933e-06/0.8732, allocations: 0 / 1.12 GB, free: 15.62 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 4.161e-05/0.8733, allocations: 16.66 kB / 1.12 GB, free: 15.61 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.001279/0.8745, allocations: 0.6149 MB / 1.121 GB, free: 14.94 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.5e-05/0.8746, allocations: 8.031 kB / 1.121 GB, free: 14.93 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002025/0.8748, allocations: 55.34 kB / 1.121 GB, free: 14.88 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005144/0.8753, allocations: 328.8 kB / 1.121 GB, free: 14.52 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.535e-05/0.8754, allocations: 27.94 kB / 1.121 GB, free: 14.49 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.632e-05/0.8755, allocations: 32 kB / 1.121 GB, free: 14.46 MB / 0.7292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007499/0.8762, allocations: 362.5 kB / 1.122 GB, free: 14.1 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008296/0.8771, allocations: 493.7 kB / 1.122 GB, free: 13.59 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.647e-05/0.8771, allocations: 1.781 kB / 1.122 GB, free: 13.59 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.278e-05/0.8772, allocations: 7.938 kB / 1.122 GB, free: 13.58 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.16e-05/0.8772, allocations: 25.31 kB / 1.122 GB, free: 13.56 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002392/0.8796, allocations: 1.806 MB / 1.124 GB, free: 11.69 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000499/0.8801, allocations: 323.1 kB / 1.124 GB, free: 11.36 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002409/0.8804, allocations: 163 kB / 1.124 GB, free: 11.2 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 6.276e-05/0.8804, allocations: 11.98 kB / 1.125 GB, free: 11.19 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000325/0.8808, allocations: 197.7 kB / 1.125 GB, free: 10.98 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=46): time 2.495e-06/0.8808, allocations: 0 / 1.125 GB, free: 10.98 MB / 0.7292 GB Notification: Performance of matching and sorting (n=46): time 0.0006007/0.8814, allocations: 302 kB / 1.125 GB, free: 10.68 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.187e-05/0.8815, allocations: 63.41 kB / 1.125 GB, free: 10.61 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002012/0.8817, allocations: 213 kB / 1.125 GB, free: 10.39 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 5.167e-05/0.8817, allocations: 45.64 kB / 1.125 GB, free: 10.34 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001525/0.8819, allocations: 221.3 kB / 1.125 GB, free: 10.12 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 9.603e-05/0.882, allocations: 106.6 kB / 1.126 GB, free: 10.02 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.909e-05/0.882, allocations: 0 / 1.126 GB, free: 10.02 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001477/0.8822, allocations: 346.8 kB / 1.126 GB, free: 9.668 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002354/0.8824, allocations: 137.5 kB / 1.126 GB, free: 9.535 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002853/0.8827, allocations: 261.9 kB / 1.126 GB, free: 9.227 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002826/0.883, allocations: 150 kB / 1.126 GB, free: 9.082 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.994e-06/0.883, allocations: 4 kB / 1.126 GB, free: 9.078 MB / 0.7292 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0007081/0.8837, allocations: 434.4 kB / 1.127 GB, free: 8.645 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 2.244e-05/0.8838, allocations: 8 kB / 1.127 GB, free: 8.637 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.648e-06/0.8838, allocations: 4 kB / 1.127 GB, free: 8.633 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.136e-05/0.8838, allocations: 8 kB / 1.127 GB, free: 8.625 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000258/0.8841, allocations: 65.09 kB / 1.127 GB, free: 8.562 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.054e-05/0.8841, allocations: 19.59 kB / 1.127 GB, free: 8.547 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002237/0.8843, allocations: 35.83 kB / 1.127 GB, free: 8.512 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.366e-05/0.8844, allocations: 20 kB / 1.127 GB, free: 8.492 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.0001547/0.8845, allocations: 158 kB / 1.127 GB, free: 8.328 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.728e-05/0.8846, allocations: 27.62 kB / 1.127 GB, free: 8.301 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007038/0.8853, allocations: 375.4 kB / 1.128 GB, free: 7.938 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.787e-06/0.8853, allocations: 4 kB / 1.128 GB, free: 7.934 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.8853, allocations: 6.906 kB / 1.128 GB, free: 7.93 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.834e-06/0.8854, allocations: 3.984 kB / 1.128 GB, free: 7.926 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001431/0.8868, allocations: 0.9489 MB / 1.129 GB, free: 6.934 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.8868, allocations: 0 / 1.129 GB, free: 6.934 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001602/0.887, allocations: 31.92 kB / 1.129 GB, free: 6.902 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.809e-06/0.887, allocations: 0 / 1.129 GB, free: 6.902 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.364e-05/0.887, allocations: 11.98 kB / 1.129 GB, free: 6.891 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.887, allocations: 3.938 kB / 1.129 GB, free: 6.887 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/0.8871, allocations: 4 kB / 1.129 GB, free: 6.883 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006522/0.8877, allocations: 462.3 kB / 1.129 GB, free: 6.418 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 7.077e-05/0.8878, allocations: 100.8 kB / 1.129 GB, free: 6.301 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.953e-05/0.8879, allocations: 7.984 kB / 1.129 GB, free: 6.293 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001744/0.888, allocations: 19.92 kB / 1.129 GB, free: 6.273 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001493/0.8882, allocations: 64.34 kB / 1.129 GB, free: 6.207 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.771e-05/0.8882, allocations: 23.98 kB / 1.129 GB, free: 6.184 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0001068/0.8883, allocations: 128.2 kB / 1.129 GB, free: 6.059 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8884, allocations: 4 kB / 1.129 GB, free: 6.055 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0004108/0.8888, allocations: 71.91 kB / 1.129 GB, free: 5.984 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.0002362/0.889, allocations: 130.3 kB / 1.13 GB, free: 5.848 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0005875/0.8896, allocations: 391.7 kB / 1.13 GB, free: 5.469 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 5.51e-06/0.8896, allocations: 0 / 1.13 GB, free: 5.469 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0002753/0.8899, allocations: 197.5 kB / 1.13 GB, free: 5.273 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002876/0.8902, allocations: 36.58 kB / 1.13 GB, free: 5.242 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009955/0.8912, allocations: 0.5062 MB / 1.131 GB, free: 4.715 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003836/0.8916, allocations: 0.8356 MB / 1.131 GB, free: 3.855 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0002262/0.8918, allocations: 66.11 kB / 1.131 GB, free: 3.797 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001094/0.892, allocations: 43.42 kB / 1.132 GB, free: 3.754 MB / 0.7292 GB Notification: Performance of SimCode: time 3.41e-07/0.892, allocations: 0 / 1.132 GB, free: 3.754 MB / 0.7292 GB Notification: Performance of Templates: time 0.008088/0.9001, allocations: 3.597 MB / 1.135 GB, free: 252 kB / 0.7292 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)