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.605/1.605, allocations: 289.7 MB / 302.2 MB, free: 2.207 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.001017/0.001017, allocations: 180.2 kB / 371.6 MB, free: 3.359 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.614/1.614, allocations: 205.1 MB / 0.6309 GB, free: 11.79 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.0009316/0.0009316, allocations: 93.11 kB / 0.745 GB, free: 54.44 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 3.696e-05/3.698e-05, allocations: 11.97 kB / 0.8663 GB, free: 15.08 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2829/0.283, allocations: 116.3 MB / 0.9798 GB, free: 10.62 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8639/1.147, allocations: 143.1 MB / 1.12 GB, free: 41.51 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002625/1.147, allocations: 92.23 kB / 1.12 GB, free: 41.47 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 0.01777/1.165, allocations: 8.206 MB / 1.128 GB, free: 37.21 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.713e-06/1.165, allocations: 0.75 kB / 1.128 GB, free: 37.21 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 2.639e-05/1.165, allocations: 20.59 kB / 1.128 GB, free: 37.19 MB / 0.7448 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.0008043/1.166, allocations: 0.6094 MB / 1.128 GB, free: 36.63 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.597e-05/1.166, allocations: 12.03 kB / 1.128 GB, free: 36.62 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.834e-05/1.166, allocations: 56.11 kB / 1.128 GB, free: 36.57 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000365/1.166, allocations: 341.7 kB / 1.129 GB, free: 36.29 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.032e-05/1.167, allocations: 44.5 kB / 1.129 GB, free: 36.26 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.808e-05/1.167, allocations: 54.06 kB / 1.129 GB, free: 36.23 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008015/1.167, allocations: 0.552 MB / 1.129 GB, free: 35.88 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.626e-05/1.167, allocations: 4 kB / 1.129 GB, free: 35.88 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.666e-05/1.168, allocations: 24.23 kB / 1.129 GB, free: 35.87 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.913e-05/1.168, allocations: 20.95 kB / 1.129 GB, free: 35.85 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005857/1.168, allocations: 400.1 kB / 1.13 GB, free: 35.62 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001842/1.17, allocations: 1.901 MB / 1.132 GB, free: 34.32 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004848/1.17, allocations: 357 kB / 1.132 GB, free: 34.1 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002216/1.171, allocations: 175.3 kB / 1.132 GB, free: 34 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 5.565e-05/1.171, allocations: 4 kB / 1.132 GB, free: 33.99 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003048/1.171, allocations: 213.8 kB / 1.132 GB, free: 33.86 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=46): time 2.494e-06/1.171, allocations: 0 / 1.132 GB, free: 33.86 MB / 0.7448 GB Notification: Performance of matching and sorting (n=46): time 0.0005204/1.172, allocations: 327 kB / 1.133 GB, free: 33.64 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.485e-05/1.172, allocations: 63.41 kB / 1.133 GB, free: 33.56 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001666/1.172, allocations: 229.6 kB / 1.133 GB, free: 33.39 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 4.514e-05/1.172, allocations: 48.33 kB / 1.133 GB, free: 33.35 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001034/1.172, allocations: 219.8 kB / 1.133 GB, free: 33.17 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 6.992e-05/1.172, allocations: 110.9 kB / 1.133 GB, free: 33.09 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.113e-05/1.172, allocations: 11.19 kB / 1.133 GB, free: 33.09 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 6.83e-05/1.172, allocations: 347.3 kB / 1.134 GB, free: 32.77 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002133/1.172, allocations: 146 kB / 1.134 GB, free: 32.68 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002612/1.173, allocations: 280.7 kB / 1.134 GB, free: 32.44 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002241/1.173, allocations: 162.4 kB / 1.134 GB, free: 32.35 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/1.173, allocations: 5.125 kB / 1.134 GB, free: 32.35 MB / 0.7448 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0006084/1.174, allocations: 486.2 kB / 1.135 GB, free: 32.02 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.957e-05/1.174, allocations: 8 kB / 1.135 GB, free: 32.01 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/1.174, allocations: 4 kB / 1.135 GB, free: 32 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.947e-05/1.174, allocations: 8 kB / 1.135 GB, free: 32 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002433/1.174, allocations: 69.95 kB / 1.135 GB, free: 31.94 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.227e-05/1.174, allocations: 4 kB / 1.135 GB, free: 31.94 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002026/1.174, allocations: 49.78 kB / 1.135 GB, free: 31.91 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.161e-05/1.174, allocations: 26.56 kB / 1.135 GB, free: 31.89 MB / 0.7448 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.0001204/1.174, allocations: 173.1 kB / 1.135 GB, free: 31.73 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.392e-05/1.174, allocations: 31.62 kB / 1.135 GB, free: 31.7 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006246/1.175, allocations: 409.1 kB / 1.135 GB, free: 31.47 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.582e-06/1.175, allocations: 8.938 kB / 1.135 GB, free: 31.46 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/1.175, allocations: 4 kB / 1.135 GB, free: 31.46 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.621e-06/1.175, allocations: 0 / 1.135 GB, free: 31.46 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001182/1.176, allocations: 1.048 MB / 1.136 GB, free: 30.76 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/1.176, allocations: 0.875 kB / 1.136 GB, free: 30.76 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000144/1.176, allocations: 42.55 kB / 1.136 GB, free: 30.73 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.721e-06/1.176, allocations: 0 / 1.136 GB, free: 30.73 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.706e-05/1.176, allocations: 21.16 kB / 1.136 GB, free: 30.71 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/1.176, allocations: 4 kB / 1.136 GB, free: 30.71 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/1.176, allocations: 0 / 1.136 GB, free: 30.71 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004881/1.177, allocations: 483.6 kB / 1.137 GB, free: 30.36 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 4.215e-05/1.177, allocations: 104.8 kB / 1.137 GB, free: 30.23 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.986e-05/1.177, allocations: 10.08 kB / 1.137 GB, free: 30.23 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001703/1.177, allocations: 33.92 kB / 1.137 GB, free: 30.21 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001395/1.177, allocations: 70.17 kB / 1.137 GB, free: 30.18 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.288e-05/1.177, allocations: 16.56 kB / 1.137 GB, free: 30.17 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 8.059e-05/1.177, allocations: 134.3 kB / 1.137 GB, free: 30.06 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.2e-07/1.177, allocations: 0 / 1.137 GB, free: 30.06 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0003588/1.178, allocations: 88.84 kB / 1.137 GB, free: 29.99 MB / 0.7448 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.0002041/1.178, allocations: 147.7 kB / 1.138 GB, free: 29.85 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0005363/1.179, allocations: 413.8 kB / 1.138 GB, free: 29.59 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/1.179, allocations: 0.9375 kB / 1.138 GB, free: 29.59 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0002391/1.179, allocations: 206.6 kB / 1.138 GB, free: 29.45 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002575/1.179, allocations: 43.12 kB / 1.138 GB, free: 29.43 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008546/1.18, allocations: 0.5308 MB / 1.139 GB, free: 29.02 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000231/1.18, allocations: 0.8356 MB / 1.139 GB, free: 28.23 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.0001967/1.18, allocations: 68.42 kB / 1.14 GB, free: 28.18 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001015/1.181, allocations: 49.88 kB / 1.14 GB, free: 28.14 MB / 0.7448 GB Notification: Performance of SimCode: time 2.5e-07/1.181, allocations: 0 / 1.14 GB, free: 28.14 MB / 0.7448 GB Notification: Performance of Templates: time 0.007578/1.188, allocations: 3.729 MB / 1.143 GB, free: 26.03 MB / 0.7448 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)