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.1-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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.1-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.1-maint.8.1.x/package.mo): time 1.617/1.617, allocations: 293 MB / 309 MB, free: 4.789 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.001141/0.001141, allocations: 172.5 kB / 378.7 MB, free: 0.9883 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.487/1.487, allocations: 205.4 MB / 0.6383 GB, free: 8.133 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.0008325/0.0008328, allocations: 92.52 kB / 0.7527 GB, free: 62.84 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004141/0.0004142, allocations: 8 kB / 0.8768 GB, free: 10.39 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2807/0.2811, allocations: 116.4 MB / 0.9904 GB, free: 5.848 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8179/1.099, allocations: 143.3 MB / 1.13 GB, free: 31.5 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002865/1.099, allocations: 97.34 kB / 1.13 GB, free: 31.43 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.02218/1.122, allocations: 8.263 MB / 1.139 GB, free: 25.76 MB / 0.7292 GB Notification: Performance of FrontEnd: time 4.739e-06/1.122, allocations: 4 kB / 1.139 GB, free: 25.76 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 5.124e-05/1.122, allocations: 12.44 kB / 1.139 GB, free: 25.75 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.001501/1.123, allocations: 0.6374 MB / 1.139 GB, free: 25.11 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.89e-05/1.123, allocations: 12.03 kB / 1.139 GB, free: 25.1 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002644/1.124, allocations: 53.03 kB / 1.139 GB, free: 25.05 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005837/1.124, allocations: 334 kB / 1.14 GB, free: 24.72 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.901e-05/1.124, allocations: 45.69 kB / 1.14 GB, free: 24.67 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001121/1.124, allocations: 53.45 kB / 1.14 GB, free: 24.62 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001182/1.126, allocations: 0.5702 MB / 1.14 GB, free: 24.11 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.724e-05/1.126, allocations: 4.641 kB / 1.14 GB, free: 24.11 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.23e-05/1.126, allocations: 29.3 kB / 1.14 GB, free: 24.08 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.525e-05/1.126, allocations: 17.52 kB / 1.14 GB, free: 24.06 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008784/1.127, allocations: 419.6 kB / 1.141 GB, free: 23.71 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002762/1.129, allocations: 1.913 MB / 1.143 GB, free: 22.01 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000616/1.13, allocations: 366.6 kB / 1.143 GB, free: 21.68 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002996/1.13, allocations: 188.2 kB / 1.143 GB, free: 21.51 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 6.383e-05/1.13, allocations: 8.703 kB / 1.143 GB, free: 21.5 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003892/1.131, allocations: 230 kB / 1.143 GB, free: 21.3 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=46): time 3.727e-06/1.131, allocations: 4 kB / 1.143 GB, free: 21.3 MB / 0.7292 GB Notification: Performance of matching and sorting (n=46): time 0.0009195/1.132, allocations: 473.5 kB / 1.144 GB, free: 20.88 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.347e-05/1.132, allocations: 69.08 kB / 1.144 GB, free: 20.8 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002673/1.132, allocations: 236.8 kB / 1.144 GB, free: 20.59 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 6.815e-05/1.132, allocations: 47.53 kB / 1.144 GB, free: 20.54 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001518/1.132, allocations: 222.7 kB / 1.144 GB, free: 20.33 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001031/1.132, allocations: 111.1 kB / 1.144 GB, free: 20.23 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.256e-05/1.133, allocations: 12 kB / 1.144 GB, free: 20.21 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001044/1.133, allocations: 345.3 kB / 1.145 GB, free: 19.88 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002987/1.133, allocations: 161.5 kB / 1.145 GB, free: 19.74 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003654/1.133, allocations: 293.5 kB / 1.145 GB, free: 19.43 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005838/1.134, allocations: 396.7 kB / 1.146 GB, free: 19.02 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.528e-06/1.134, allocations: 0 / 1.146 GB, free: 19.02 MB / 0.7292 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0008153/1.135, allocations: 0.508 MB / 1.146 GB, free: 18.54 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 2.219e-05/1.135, allocations: 4.609 kB / 1.146 GB, free: 18.54 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/1.135, allocations: 5.031 kB / 1.146 GB, free: 18.54 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.506e-05/1.135, allocations: 9.078 kB / 1.146 GB, free: 18.53 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002429/1.135, allocations: 65.77 kB / 1.146 GB, free: 18.47 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.604e-05/1.135, allocations: 9.359 kB / 1.146 GB, free: 18.46 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002572/1.135, allocations: 41.95 kB / 1.146 GB, free: 18.43 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.561e-05/1.135, allocations: 34.28 kB / 1.146 GB, free: 18.4 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 () * Number of clocked 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.0002948/1.136, allocations: 240.3 kB / 1.146 GB, free: 18.16 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.63e-05/1.136, allocations: 28.38 kB / 1.146 GB, free: 18.14 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007352/1.137, allocations: 428.6 kB / 1.147 GB, free: 17.78 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.933e-06/1.137, allocations: 4 kB / 1.147 GB, free: 17.77 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.346e-06/1.137, allocations: 8 kB / 1.147 GB, free: 17.77 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.103e-05/1.137, allocations: 6.094 kB / 1.147 GB, free: 17.77 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001629/1.138, allocations: 1.058 MB / 1.148 GB, free: 16.81 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/1.138, allocations: 4.938 kB / 1.148 GB, free: 16.8 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001474/1.138, allocations: 38.31 kB / 1.148 GB, free: 16.77 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.392e-06/1.138, allocations: 4 kB / 1.148 GB, free: 16.77 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.037e-05/1.138, allocations: 14.38 kB / 1.148 GB, free: 16.76 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.928e-06/1.138, allocations: 4 kB / 1.148 GB, free: 16.75 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/1.138, allocations: 0.6562 kB / 1.148 GB, free: 16.75 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006493/1.139, allocations: 499.9 kB / 1.148 GB, free: 16.29 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 6.583e-05/1.139, allocations: 98.38 kB / 1.149 GB, free: 16.17 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.75e-05/1.139, allocations: 17.11 kB / 1.149 GB, free: 16.16 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001749/1.139, allocations: 25.53 kB / 1.149 GB, free: 16.14 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001777/1.14, allocations: 73.5 kB / 1.149 GB, free: 16.09 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.823e-05/1.14, allocations: 9.734 kB / 1.149 GB, free: 16.08 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0001203/1.14, allocations: 147.2 kB / 1.149 GB, free: 15.95 MB / 0.7292 GB Notification: Performance of sort global known variables: time 2.9e-07/1.14, allocations: 0 / 1.149 GB, free: 15.95 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0004482/1.14, allocations: 97.09 kB / 1.149 GB, free: 15.86 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) * Number of clocked states: 0 () * 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.0002242/1.14, allocations: 140.2 kB / 1.149 GB, free: 15.71 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0007503/1.141, allocations: 446.8 kB / 1.149 GB, free: 15.32 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/1.141, allocations: 0 / 1.149 GB, free: 15.32 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0003347/1.142, allocations: 212.3 kB / 1.15 GB, free: 15.13 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000396/1.142, allocations: 48.3 kB / 1.15 GB, free: 15.09 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001321/1.143, allocations: 0.8462 MB / 1.151 GB, free: 14.29 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000358/1.144, allocations: 0.823 MB / 1.151 GB, free: 13.48 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0002625/1.144, allocations: 70.62 kB / 1.151 GB, free: 13.43 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000104/1.144, allocations: 39.8 kB / 1.151 GB, free: 13.4 MB / 0.7292 GB Notification: Performance of SimCode: time 2e-07/1.144, allocations: 0 / 1.151 GB, free: 13.4 MB / 0.7292 GB Notification: Performance of Templates: time 0.0103/1.154, allocations: 3.757 MB / 1.155 GB, free: 11.26 MB / 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)