Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/var/lib/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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.674/2.674, allocations: 287.5 MB / 302.4 MB, free: 8.285 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001518/0.001518, allocations: 183.4 kB / 371 MB, free: 10.78 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.077/2.077, allocations: 205.4 MB / 0.6297 GB, free: 10.51 MB / 458.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001151/0.001151, allocations: 95.88 kB / 0.743 GB, free: 6.512 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0006478/0.000648, allocations: 15.31 kB / 0.8658 GB, free: 141.2 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2306/0.2313, allocations: 115.3 MB / 0.9784 GB, free: 28.28 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9411/1.172, allocations: 142.1 MB / 1.117 GB, free: 15.56 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003361/1.173, allocations: 97.38 kB / 1.117 GB, free: 15.56 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.03122/1.204, allocations: 8.24 MB / 1.125 GB, free: 30.73 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.024e-06/1.204, allocations: 0 / 1.125 GB, free: 30.73 MB / 0.698 GB Notification: Performance of Transformations before backend: time 3.492e-05/1.204, allocations: 7.781 kB / 1.125 GB, free: 30.73 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.001385/1.206, allocations: 0.6402 MB / 1.126 GB, free: 30.27 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.798e-05/1.206, allocations: 15.73 kB / 1.126 GB, free: 30.26 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001546/1.206, allocations: 54.28 kB / 1.126 GB, free: 30.23 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005657/1.206, allocations: 328.2 kB / 1.126 GB, free: 30.01 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.94e-05/1.206, allocations: 46.72 kB / 1.126 GB, free: 30.01 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001128/1.207, allocations: 62.34 kB / 1.126 GB, free: 30 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001374/1.208, allocations: 0.5624 MB / 1.127 GB, free: 29.89 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.598e-05/1.208, allocations: 4 kB / 1.127 GB, free: 29.88 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.246e-05/1.208, allocations: 25.45 kB / 1.127 GB, free: 29.88 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.189e-05/1.208, allocations: 18.77 kB / 1.127 GB, free: 29.88 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001121/1.209, allocations: 419.1 kB / 1.127 GB, free: 29.87 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003366/1.213, allocations: 1.914 MB / 1.129 GB, free: 28.91 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000865/1.214, allocations: 353.6 kB / 1.13 GB, free: 28.88 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001033/1.214, allocations: 7.688 kB / 1.13 GB, free: 28.88 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005855/1.214, allocations: 226 kB / 1.13 GB, free: 28.82 MB / 0.698 GB Notification: Performance of pre-optimization done (n=46): time 3.507e-06/1.214, allocations: 0 / 1.13 GB, free: 28.82 MB / 0.698 GB Notification: Performance of matching and sorting (n=46): time 0.001375/1.216, allocations: 483 kB / 1.13 GB, free: 28.77 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.802e-05/1.216, allocations: 69.42 kB / 1.13 GB, free: 28.7 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003194/1.216, allocations: 226.2 kB / 1.131 GB, free: 28.57 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 8.788e-05/1.216, allocations: 48.47 kB / 1.131 GB, free: 28.54 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001751/1.216, allocations: 215 kB / 1.131 GB, free: 28.4 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001221/1.217, allocations: 113.6 kB / 1.131 GB, free: 28.34 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.277e-05/1.217, allocations: 9.938 kB / 1.131 GB, free: 28.34 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001541/1.217, allocations: 341.6 kB / 1.131 GB, free: 28.03 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004517/1.217, allocations: 164.6 kB / 1.131 GB, free: 28.03 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005528/1.218, allocations: 288 kB / 1.132 GB, free: 27.89 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004503/1.218, allocations: 170.2 kB / 1.132 GB, free: 27.88 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.881e-06/1.218, allocations: 0 / 1.132 GB, free: 27.88 MB / 0.698 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001184/1.219, allocations: 0.5044 MB / 1.132 GB, free: 27.79 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.217e-05/1.22, allocations: 8.031 kB / 1.132 GB, free: 27.79 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.109e-05/1.22, allocations: 3.719 kB / 1.132 GB, free: 27.79 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.502e-05/1.22, allocations: 7.562 kB / 1.132 GB, free: 27.79 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004026/1.22, allocations: 64.19 kB / 1.132 GB, free: 27.78 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.607e-05/1.22, allocations: 11.7 kB / 1.132 GB, free: 27.78 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003689/1.22, allocations: 47.55 kB / 1.132 GB, free: 27.77 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.242e-05/1.22, allocations: 30.17 kB / 1.132 GB, free: 27.76 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.0004174/1.221, allocations: 231.9 kB / 1.133 GB, free: 27.62 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.016e-05/1.221, allocations: 26.34 kB / 1.133 GB, free: 27.61 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001145/1.222, allocations: 436.2 kB / 1.133 GB, free: 27.5 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.368e-06/1.222, allocations: 7.75 kB / 1.133 GB, free: 27.5 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.241e-06/1.222, allocations: 0 / 1.133 GB, free: 27.5 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.004e-05/1.222, allocations: 3.984 kB / 1.133 GB, free: 27.5 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002194/1.224, allocations: 1.071 MB / 1.134 GB, free: 27 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/1.224, allocations: 0 / 1.134 GB, free: 27 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002673/1.225, allocations: 34.64 kB / 1.134 GB, free: 27 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.08e-05/1.225, allocations: 11.83 kB / 1.134 GB, free: 26.99 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.832e-05/1.225, allocations: 11.27 kB / 1.134 GB, free: 26.98 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.012e-06/1.225, allocations: 3.781 kB / 1.134 GB, free: 26.98 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/1.225, allocations: 0 / 1.134 GB, free: 26.98 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000989/1.226, allocations: 498.3 kB / 1.135 GB, free: 26.78 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 8.521e-05/1.226, allocations: 103.5 kB / 1.135 GB, free: 26.67 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.187e-05/1.226, allocations: 15.11 kB / 1.135 GB, free: 26.67 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003132/1.226, allocations: 31.19 kB / 1.135 GB, free: 26.66 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002053/1.227, allocations: 68.62 kB / 1.135 GB, free: 26.63 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.431e-05/1.227, allocations: 17.98 kB / 1.135 GB, free: 26.62 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001605/1.227, allocations: 142.4 kB / 1.135 GB, free: 26.54 MB / 0.698 GB Notification: Performance of sort global known variables: time 4.11e-07/1.227, allocations: 0 / 1.135 GB, free: 26.54 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0006163/1.227, allocations: 88.47 kB / 1.135 GB, free: 26.53 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.0002679/1.228, allocations: 148.3 kB / 1.135 GB, free: 26.42 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001039/1.229, allocations: 434.7 kB / 1.136 GB, free: 26.36 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/1.229, allocations: 0 / 1.136 GB, free: 26.36 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004777/1.229, allocations: 215.6 kB / 1.136 GB, free: 26.33 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004199/1.23, allocations: 43.38 kB / 1.136 GB, free: 26.32 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001733/1.231, allocations: 0.8475 MB / 1.137 GB, free: 25.82 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000446/1.232, allocations: 0.8308 MB / 1.138 GB, free: 25.05 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0004039/1.232, allocations: 65.31 kB / 1.138 GB, free: 25.03 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001859/1.233, allocations: 38.17 kB / 1.138 GB, free: 25.02 MB / 0.698 GB Notification: Performance of SimCode: time 8.62e-07/1.233, allocations: 0 / 1.138 GB, free: 25.02 MB / 0.698 GB Notification: Performance of Templates: time 0.0119/1.244, allocations: 3.716 MB / 1.141 GB, free: 23.24 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)