Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.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.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_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_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.674/1.674, allocations: 285.4 MB / 298 MB, free: 5.965 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.001447/0.001447, allocations: 180.8 kB / 366.4 MB, free: 2.07 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.1 MB / 0.6248 GB, free: 7.703 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.0008044/0.0008044, allocations: 87.2 kB / 0.738 GB, free: 40.25 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.404e-05/3.418e-05, allocations: 4 kB / 0.8583 GB, free: 13.07 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7305/0.7305, allocations: 115.3 MB / 0.9709 GB, free: 77.74 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2056/0.9362, allocations: 142.2 MB / 1.11 GB, free: 9.605 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002454/0.9365, allocations: 101.9 kB / 1.11 GB, free: 9.508 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.02098/0.9575, allocations: 8.216 MB / 1.118 GB, free: 1.355 MB / 0.7136 GB Notification: Performance of FrontEnd: time 2.014e-06/0.9576, allocations: 3.938 kB / 1.118 GB, free: 1.352 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 3.223e-05/0.9576, allocations: 12.59 kB / 1.118 GB, free: 1.34 MB / 0.7136 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.001238/0.9589, allocations: 0.6149 MB / 1.118 GB, free: 0.6758 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.067e-05/0.9589, allocations: 12.03 kB / 1.118 GB, free: 0.6641 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002109/0.9591, allocations: 51.34 kB / 1.119 GB, free: 0.6133 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005371/0.9597, allocations: 337.5 kB / 1.119 GB, free: 248 kB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.231e-05/0.9598, allocations: 45.31 kB / 1.119 GB, free: 200 kB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.838e-05/0.9599, allocations: 52 kB / 1.119 GB, free: 148 kB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00104/0.9609, allocations: 0.554 MB / 1.119 GB, free: 15.56 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.745e-05/0.9609, allocations: 0 / 1.119 GB, free: 15.56 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.303e-05/0.961, allocations: 24.34 kB / 1.119 GB, free: 15.54 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.493e-05/0.961, allocations: 22.27 kB / 1.12 GB, free: 15.52 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007643/0.9618, allocations: 399.8 kB / 1.12 GB, free: 15.13 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002733/0.9646, allocations: 1.904 MB / 1.122 GB, free: 13.15 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006694/0.9653, allocations: 348.4 kB / 1.122 GB, free: 12.8 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002793/0.9655, allocations: 172.9 kB / 1.122 GB, free: 12.62 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 6.322e-05/0.9656, allocations: 11.98 kB / 1.122 GB, free: 12.61 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003532/0.966, allocations: 214.1 kB / 1.122 GB, free: 12.39 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=46): time 2.465e-06/0.966, allocations: 0 / 1.122 GB, free: 12.39 MB / 0.7292 GB Notification: Performance of matching and sorting (n=46): time 0.0006642/0.9667, allocations: 329.5 kB / 1.123 GB, free: 12.06 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.868e-05/0.9667, allocations: 67.34 kB / 1.123 GB, free: 11.98 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002631/0.967, allocations: 224.8 kB / 1.123 GB, free: 11.76 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 6.85e-05/0.9671, allocations: 49.69 kB / 1.123 GB, free: 11.7 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001828/0.9673, allocations: 222.7 kB / 1.123 GB, free: 11.48 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 0.000122/0.9674, allocations: 102.7 kB / 1.123 GB, free: 11.38 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.251e-05/0.9675, allocations: 16 kB / 1.123 GB, free: 11.36 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001962/0.9677, allocations: 346.8 kB / 1.124 GB, free: 11.02 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002916/0.968, allocations: 145.5 kB / 1.124 GB, free: 10.88 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003725/0.9684, allocations: 282 kB / 1.124 GB, free: 10.55 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003061/0.9687, allocations: 159.2 kB / 1.124 GB, free: 10.39 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.426e-06/0.9687, allocations: 8 kB / 1.124 GB, free: 10.39 MB / 0.7292 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0008261/0.9695, allocations: 490.3 kB / 1.125 GB, free: 9.898 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 2.366e-05/0.9696, allocations: 5.406 kB / 1.125 GB, free: 9.895 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.043e-05/0.9696, allocations: 4.469 kB / 1.125 GB, free: 9.891 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.72e-05/0.9696, allocations: 12 kB / 1.125 GB, free: 9.879 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002562/0.9699, allocations: 70.52 kB / 1.125 GB, free: 9.812 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.563e-05/0.9699, allocations: 4 kB / 1.125 GB, free: 9.809 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000256/0.9702, allocations: 43.83 kB / 1.125 GB, free: 9.766 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.403e-05/0.9702, allocations: 23.98 kB / 1.125 GB, free: 9.742 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.0001903/0.9704, allocations: 181.6 kB / 1.125 GB, free: 9.562 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.886e-05/0.9705, allocations: 27.62 kB / 1.125 GB, free: 9.535 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007486/0.9712, allocations: 409.3 kB / 1.126 GB, free: 9.133 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.492e-06/0.9713, allocations: 4 kB / 1.126 GB, free: 9.129 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.9713, allocations: 4 kB / 1.126 GB, free: 9.125 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.678e-06/0.9713, allocations: 10.14 kB / 1.126 GB, free: 9.117 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001568/0.9729, allocations: 1.05 MB / 1.127 GB, free: 8.008 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.9729, allocations: 0 / 1.127 GB, free: 8.008 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001645/0.9731, allocations: 39.91 kB / 1.127 GB, free: 7.969 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.356e-06/0.9731, allocations: 7.938 kB / 1.127 GB, free: 7.961 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.989e-05/0.9731, allocations: 11.95 kB / 1.127 GB, free: 7.949 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.5e-06/0.9731, allocations: 4 kB / 1.127 GB, free: 7.945 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.9731, allocations: 0 / 1.127 GB, free: 7.945 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006217/0.9738, allocations: 479.7 kB / 1.127 GB, free: 7.465 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 7.386e-05/0.9739, allocations: 100.8 kB / 1.127 GB, free: 7.348 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.829e-05/0.9739, allocations: 13.17 kB / 1.127 GB, free: 7.336 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001837/0.9741, allocations: 35.94 kB / 1.127 GB, free: 7.301 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001497/0.9743, allocations: 64.34 kB / 1.127 GB, free: 7.238 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.708e-05/0.9743, allocations: 19.98 kB / 1.127 GB, free: 7.219 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 9.933e-05/0.9744, allocations: 132.5 kB / 1.127 GB, free: 7.09 MB / 0.7292 GB Notification: Performance of sort global known variables: time 2.3e-07/0.9744, allocations: 0 / 1.127 GB, free: 7.09 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0004071/0.9748, allocations: 91.89 kB / 1.128 GB, free: 7 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.0002255/0.9751, allocations: 146.3 kB / 1.128 GB, free: 6.848 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0006358/0.9757, allocations: 417.6 kB / 1.128 GB, free: 6.434 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.9757, allocations: 0 / 1.128 GB, free: 6.434 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.000298/0.976, allocations: 208.4 kB / 1.128 GB, free: 6.234 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002699/0.9763, allocations: 40.72 kB / 1.128 GB, free: 6.195 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001086/0.9774, allocations: 0.5345 MB / 1.129 GB, free: 5.637 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003977/0.9778, allocations: 0.8358 MB / 1.13 GB, free: 4.77 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0002185/0.978, allocations: 66.88 kB / 1.13 GB, free: 4.703 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000119/0.9782, allocations: 45.39 kB / 1.13 GB, free: 4.664 MB / 0.7292 GB Notification: Performance of SimCode: time 3.31e-07/0.9782, allocations: 0 / 1.13 GB, free: 4.664 MB / 0.7292 GB Notification: Performance of Templates: time 0.008472/0.9867, allocations: 3.738 MB / 1.133 GB, free: 1.02 MB / 0.7292 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.makefile (rm -f Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.sim & ./Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe 2>&1)