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.701/1.701, allocations: 288.4 MB / 304.3 MB, free: 8.121 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.001003/0.001003, allocations: 184.5 kB / 373 MB, free: 10.14 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.573/1.573, allocations: 205.4 MB / 0.6317 GB, free: 9.871 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.0008946/0.0008947, allocations: 100.7 kB / 0.7451 GB, free: 5.785 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004524/0.0004525, allocations: 11.69 kB / 0.8681 GB, free: 141.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.244/0.2445, allocations: 115.3 MB / 0.9807 GB, free: 27.39 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.829/1.074, allocations: 142.3 MB / 1.12 GB, free: 16.3 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003566/1.074, allocations: 95.33 kB / 1.12 GB, free: 16.3 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.02061/1.095, allocations: 8.263 MB / 1.128 GB, free: 31.38 MB / 0.698 GB Notification: Performance of FrontEnd: time 3.226e-06/1.095, allocations: 3.938 kB / 1.128 GB, free: 31.37 MB / 0.698 GB Notification: Performance of Transformations before backend: time 2.292e-05/1.095, allocations: 11.66 kB / 1.128 GB, free: 31.37 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.0009553/1.096, allocations: 0.6392 MB / 1.128 GB, free: 30.84 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.654e-05/1.096, allocations: 11.19 kB / 1.128 GB, free: 30.84 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001006/1.096, allocations: 51.53 kB / 1.129 GB, free: 30.81 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003931/1.096, allocations: 334.5 kB / 1.129 GB, free: 30.55 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.124e-05/1.096, allocations: 50.06 kB / 1.129 GB, free: 30.55 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.198e-05/1.096, allocations: 57.81 kB / 1.129 GB, free: 30.55 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008101/1.097, allocations: 0.5696 MB / 1.13 GB, free: 30.34 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.671e-05/1.097, allocations: 8 kB / 1.13 GB, free: 30.34 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.341e-05/1.097, allocations: 22.97 kB / 1.13 GB, free: 30.33 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.085e-05/1.097, allocations: 20.31 kB / 1.13 GB, free: 30.33 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006279/1.098, allocations: 424.5 kB / 1.13 GB, free: 30.26 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001981/1.1, allocations: 1.906 MB / 1.132 GB, free: 29.03 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005149/1.1, allocations: 356 kB / 1.132 GB, free: 28.96 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002604/1.101, allocations: 197.1 kB / 1.132 GB, free: 28.93 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 5.916e-05/1.101, allocations: 15.11 kB / 1.132 GB, free: 28.93 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003392/1.101, allocations: 218.5 kB / 1.133 GB, free: 28.84 MB / 0.698 GB Notification: Performance of pre-optimization done (n=46): time 2.324e-06/1.101, allocations: 0 / 1.133 GB, free: 28.84 MB / 0.698 GB Notification: Performance of matching and sorting (n=46): time 0.0007848/1.102, allocations: 479.9 kB / 1.133 GB, free: 28.73 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.743e-05/1.102, allocations: 66.12 kB / 1.133 GB, free: 28.67 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001836/1.102, allocations: 243.2 kB / 1.133 GB, free: 28.51 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 4.965e-05/1.102, allocations: 54.44 kB / 1.133 GB, free: 28.47 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001178/1.102, allocations: 217 kB / 1.134 GB, free: 28.32 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 7.817e-05/1.102, allocations: 107.3 kB / 1.134 GB, free: 28.26 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.004e-05/1.102, allocations: 11.31 kB / 1.134 GB, free: 28.26 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001314/1.103, allocations: 348.7 kB / 1.134 GB, free: 27.93 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002585/1.103, allocations: 163 kB / 1.134 GB, free: 27.91 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002942/1.103, allocations: 288.1 kB / 1.134 GB, free: 27.74 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004588/1.104, allocations: 402.6 kB / 1.135 GB, free: 27.57 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/1.104, allocations: 0 / 1.135 GB, free: 27.57 MB / 0.698 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0006873/1.104, allocations: 0.5019 MB / 1.135 GB, free: 27.44 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/1.104, allocations: 7.688 kB / 1.135 GB, free: 27.44 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.235e-06/1.104, allocations: 3.875 kB / 1.135 GB, free: 27.44 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.184e-05/1.104, allocations: 3.969 kB / 1.135 GB, free: 27.44 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002262/1.105, allocations: 66.11 kB / 1.135 GB, free: 27.42 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.219e-05/1.105, allocations: 11.78 kB / 1.135 GB, free: 27.42 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001996/1.105, allocations: 43.67 kB / 1.135 GB, free: 27.4 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.592e-05/1.105, allocations: 29.11 kB / 1.135 GB, free: 27.4 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.0002644/1.105, allocations: 237.1 kB / 1.136 GB, free: 27.25 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.447e-05/1.105, allocations: 42.86 kB / 1.136 GB, free: 27.22 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006719/1.106, allocations: 426.6 kB / 1.136 GB, free: 27.12 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/1.106, allocations: 3.812 kB / 1.136 GB, free: 27.12 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/1.106, allocations: 0 / 1.136 GB, free: 27.12 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.631e-06/1.106, allocations: 0 / 1.136 GB, free: 27.12 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001272/1.107, allocations: 1.07 MB / 1.137 GB, free: 26.62 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/1.107, allocations: 0 / 1.137 GB, free: 26.62 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001365/1.107, allocations: 38.72 kB / 1.137 GB, free: 26.61 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.386e-06/1.107, allocations: 4 kB / 1.137 GB, free: 26.61 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.461e-05/1.107, allocations: 15.58 kB / 1.137 GB, free: 26.6 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.427e-06/1.107, allocations: 3.906 kB / 1.137 GB, free: 26.6 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/1.107, allocations: 0 / 1.137 GB, free: 26.6 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005648/1.108, allocations: 0.4913 MB / 1.138 GB, free: 26.4 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.854e-05/1.108, allocations: 96.45 kB / 1.138 GB, free: 26.29 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.191e-05/1.108, allocations: 19.16 kB / 1.138 GB, free: 26.29 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001945/1.108, allocations: 30.06 kB / 1.138 GB, free: 26.28 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001449/1.109, allocations: 64.75 kB / 1.138 GB, free: 26.25 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.007e-05/1.109, allocations: 19.36 kB / 1.138 GB, free: 26.25 MB / 0.698 GB Notification: Performance of sorting global known variables: time 9.704e-05/1.109, allocations: 135.5 kB / 1.138 GB, free: 26.16 MB / 0.698 GB Notification: Performance of sort global known variables: time 1e-07/1.109, allocations: 0 / 1.138 GB, free: 26.16 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0003828/1.109, allocations: 91.36 kB / 1.138 GB, free: 26.15 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.0002205/1.109, allocations: 148.9 kB / 1.138 GB, free: 26.04 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0006181/1.11, allocations: 441.1 kB / 1.139 GB, free: 25.98 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/1.11, allocations: 0 / 1.139 GB, free: 25.98 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002738/1.11, allocations: 219.5 kB / 1.139 GB, free: 25.95 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003579/1.111, allocations: 50.2 kB / 1.139 GB, free: 25.93 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001087/1.112, allocations: 0.8473 MB / 1.14 GB, free: 25.43 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003388/1.112, allocations: 0.8194 MB / 1.141 GB, free: 24.68 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0001973/1.112, allocations: 61.84 kB / 1.141 GB, free: 24.66 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000105/1.112, allocations: 45.47 kB / 1.141 GB, free: 24.64 MB / 0.698 GB Notification: Performance of SimCode: time 2.3e-07/1.112, allocations: 0 / 1.141 GB, free: 24.64 MB / 0.698 GB Notification: Performance of Templates: time 0.007072/1.119, allocations: 3.758 MB / 1.144 GB, free: 22.87 MB / 0.698 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)