Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.524/2.524, allocations: 287.5 MB / 303.2 MB, free: 8.336 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.00134/0.00134, allocations: 188.7 kB / 371.8 MB, free: 10.81 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.015/2.015, allocations: 205.4 MB / 0.6305 GB, free: 10.55 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009349/0.0009343, allocations: 91.14 kB / 0.7438 GB, free: 6.539 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005212/0.0005214, allocations: 10.38 kB / 0.8667 GB, free: 140.9 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2051/0.2057, allocations: 115.3 MB / 0.9793 GB, free: 28.2 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9247/1.13, allocations: 142.1 MB / 1.118 GB, free: 15.92 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00033/1.131, allocations: 101.2 kB / 1.118 GB, free: 15.92 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.03059/1.161, allocations: 8.264 MB / 1.126 GB, free: 31.09 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.944e-06/1.161, allocations: 0 / 1.126 GB, free: 31.09 MB / 0.698 GB Notification: Performance of Transformations before backend: time 3.207e-05/1.162, allocations: 11.69 kB / 1.126 GB, free: 31.09 MB / 0.698 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.001306/1.163, allocations: 0.6449 MB / 1.127 GB, free: 30.61 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.607e-05/1.163, allocations: 11.81 kB / 1.127 GB, free: 30.61 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001307/1.163, allocations: 55.41 kB / 1.127 GB, free: 30.58 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005279/1.164, allocations: 331.9 kB / 1.127 GB, free: 30.36 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.366e-05/1.164, allocations: 49.41 kB / 1.127 GB, free: 30.36 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001036/1.164, allocations: 56.66 kB / 1.127 GB, free: 30.35 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001346/1.165, allocations: 0.5656 MB / 1.128 GB, free: 30.24 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.365e-05/1.165, allocations: 192 / 1.128 GB, free: 30.24 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.773e-05/1.165, allocations: 32.41 kB / 1.128 GB, free: 30.23 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.171e-05/1.165, allocations: 18.89 kB / 1.128 GB, free: 30.23 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001105/1.166, allocations: 418 kB / 1.128 GB, free: 30.22 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003156/1.17, allocations: 1.915 MB / 1.13 GB, free: 29.27 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008087/1.17, allocations: 358.8 kB / 1.131 GB, free: 29.23 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004165/1.171, allocations: 186.6 kB / 1.131 GB, free: 29.22 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 7.185e-05/1.171, allocations: 10.52 kB / 1.131 GB, free: 29.22 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00052/1.172, allocations: 229.2 kB / 1.131 GB, free: 29.16 MB / 0.698 GB Notification: Performance of pre-optimization done (n=46): time 3.637e-06/1.172, allocations: 0 / 1.131 GB, free: 29.16 MB / 0.698 GB Notification: Performance of matching and sorting (n=46): time 0.001325/1.173, allocations: 480.7 kB / 1.131 GB, free: 29.11 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.415e-05/1.173, allocations: 62.41 kB / 1.131 GB, free: 29.04 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003033/1.173, allocations: 244 kB / 1.132 GB, free: 28.91 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 8.128e-05/1.173, allocations: 50.47 kB / 1.132 GB, free: 28.88 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001573/1.174, allocations: 215.9 kB / 1.132 GB, free: 28.74 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001124/1.174, allocations: 108.7 kB / 1.132 GB, free: 28.69 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.73e-05/1.174, allocations: 14.16 kB / 1.132 GB, free: 28.69 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001354/1.174, allocations: 345.5 kB / 1.132 GB, free: 28.37 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004392/1.174, allocations: 160.3 kB / 1.133 GB, free: 28.37 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004952/1.175, allocations: 285.1 kB / 1.133 GB, free: 28.2 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008014/1.176, allocations: 408.7 kB / 1.133 GB, free: 28.02 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.911e-06/1.176, allocations: 0 / 1.133 GB, free: 28.02 MB / 0.698 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001221/1.177, allocations: 0.5063 MB / 1.134 GB, free: 27.9 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.281e-05/1.177, allocations: 7.656 kB / 1.134 GB, free: 27.9 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.256e-05/1.177, allocations: 3.844 kB / 1.134 GB, free: 27.9 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.567e-05/1.177, allocations: 7.828 kB / 1.134 GB, free: 27.89 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003956/1.177, allocations: 62.03 kB / 1.134 GB, free: 27.88 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.58e-05/1.177, allocations: 11.69 kB / 1.134 GB, free: 27.88 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003685/1.178, allocations: 44.47 kB / 1.134 GB, free: 27.86 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.353e-05/1.178, allocations: 27.22 kB / 1.134 GB, free: 27.86 MB / 0.698 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.0004031/1.178, allocations: 246.3 kB / 1.134 GB, free: 27.7 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.379e-05/1.178, allocations: 27.28 kB / 1.134 GB, free: 27.69 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001081/1.179, allocations: 434.7 kB / 1.135 GB, free: 27.57 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.568e-06/1.179, allocations: 3.875 kB / 1.135 GB, free: 27.57 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/1.179, allocations: 3.938 kB / 1.135 GB, free: 27.57 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/1.179, allocations: 0 / 1.135 GB, free: 27.57 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002133/1.182, allocations: 1.067 MB / 1.136 GB, free: 27.08 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/1.182, allocations: 0 / 1.136 GB, free: 27.08 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002587/1.182, allocations: 34.48 kB / 1.136 GB, free: 27.07 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.384e-06/1.182, allocations: 3.781 kB / 1.136 GB, free: 27.07 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.991e-05/1.182, allocations: 19.02 kB / 1.136 GB, free: 27.06 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.14e-06/1.182, allocations: 0 / 1.136 GB, free: 27.06 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/1.182, allocations: 0 / 1.136 GB, free: 27.06 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009564/1.183, allocations: 0.494 MB / 1.136 GB, free: 26.86 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 7.376e-05/1.183, allocations: 96.33 kB / 1.136 GB, free: 26.75 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.777e-05/1.183, allocations: 15.09 kB / 1.136 GB, free: 26.75 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000301/1.183, allocations: 33.62 kB / 1.136 GB, free: 26.73 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001934/1.184, allocations: 65.66 kB / 1.136 GB, free: 26.71 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.258e-05/1.184, allocations: 15.52 kB / 1.136 GB, free: 26.71 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001483/1.184, allocations: 132.9 kB / 1.136 GB, free: 26.62 MB / 0.698 GB Notification: Performance of sort global known variables: time 3.91e-07/1.184, allocations: 0 / 1.136 GB, free: 26.62 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.000631/1.185, allocations: 95.14 kB / 1.137 GB, free: 26.61 MB / 0.698 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.0002565/1.185, allocations: 143.9 kB / 1.137 GB, free: 26.5 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001024/1.186, allocations: 442.9 kB / 1.137 GB, free: 26.43 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/1.186, allocations: 0 / 1.137 GB, free: 26.43 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004748/1.186, allocations: 220.8 kB / 1.137 GB, free: 26.4 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005366/1.187, allocations: 49.09 kB / 1.137 GB, free: 26.39 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001787/1.189, allocations: 0.849 MB / 1.138 GB, free: 25.89 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004439/1.189, allocations: 0.8195 MB / 1.139 GB, free: 25.14 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0004107/1.19, allocations: 66.08 kB / 1.139 GB, free: 25.11 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001731/1.19, allocations: 42.42 kB / 1.139 GB, free: 25.1 MB / 0.698 GB Notification: Performance of SimCode: time 1.021e-06/1.19, allocations: 0 / 1.139 GB, free: 25.1 MB / 0.698 GB Notification: Performance of Templates: time 0.01154/1.201, allocations: 3.736 MB / 1.143 GB, free: 23.31 MB / 0.698 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)