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.673/1.673, allocations: 292.6 MB / 307.6 MB, free: 5.191 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.001136/0.001136, allocations: 181 kB / 377.1 MB, free: 1.52 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.896/1.896, allocations: 205.4 MB / 0.6367 GB, free: 8.625 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.0009928/0.0009927, allocations: 100.1 kB / 0.751 GB, free: 63.02 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004161/0.0004161, allocations: 15.98 kB / 0.8748 GB, free: 11.19 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3514/0.3518, allocations: 116.3 MB / 0.9884 GB, free: 6.746 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9284/1.28, allocations: 143.2 MB / 1.128 GB, free: 32.41 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000344/1.281, allocations: 90.02 kB / 1.128 GB, free: 32.34 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.02159/1.302, allocations: 8.241 MB / 1.136 GB, free: 26.69 MB / 0.7292 GB Notification: Performance of FrontEnd: time 2.755e-06/1.302, allocations: 0 / 1.136 GB, free: 26.69 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 4.554e-05/1.302, allocations: 16 kB / 1.136 GB, free: 26.68 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.001607/1.304, allocations: 0.636 MB / 1.137 GB, free: 26.04 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 5.502e-05/1.304, allocations: 16.77 kB / 1.137 GB, free: 26.02 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000275/1.304, allocations: 54.78 kB / 1.137 GB, free: 25.97 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006778/1.305, allocations: 328.4 kB / 1.137 GB, free: 25.64 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.698e-05/1.305, allocations: 51.45 kB / 1.137 GB, free: 25.6 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001269/1.305, allocations: 56.7 kB / 1.137 GB, free: 25.54 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001292/1.307, allocations: 0.5651 MB / 1.138 GB, free: 25.04 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.304e-05/1.307, allocations: 1.125 kB / 1.138 GB, free: 25.04 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.964e-05/1.307, allocations: 24.66 kB / 1.138 GB, free: 25.02 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.416e-05/1.307, allocations: 22.64 kB / 1.138 GB, free: 25 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009567/1.308, allocations: 418.3 kB / 1.138 GB, free: 24.64 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002984/1.311, allocations: 1.911 MB / 1.14 GB, free: 22.94 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007073/1.312, allocations: 362.7 kB / 1.141 GB, free: 22.61 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 7.258e-05/1.312, allocations: 8.609 kB / 1.141 GB, free: 22.6 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004523/1.312, allocations: 228.8 kB / 1.141 GB, free: 22.4 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=46): time 2.805e-06/1.312, allocations: 0 / 1.141 GB, free: 22.4 MB / 0.7292 GB Notification: Performance of matching and sorting (n=46): time 0.0009839/1.313, allocations: 477.2 kB / 1.141 GB, free: 21.98 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.354e-05/1.313, allocations: 60.38 kB / 1.141 GB, free: 21.91 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002634/1.313, allocations: 229.7 kB / 1.142 GB, free: 21.7 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 6.647e-05/1.313, allocations: 51.02 kB / 1.142 GB, free: 21.64 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001559/1.314, allocations: 214.8 kB / 1.142 GB, free: 21.44 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 0.000115/1.314, allocations: 115.8 kB / 1.142 GB, free: 21.34 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.196e-05/1.314, allocations: 8 kB / 1.142 GB, free: 21.33 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001404/1.314, allocations: 348.5 kB / 1.142 GB, free: 20.99 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000333/1.314, allocations: 161.6 kB / 1.143 GB, free: 20.85 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003898/1.315, allocations: 285.7 kB / 1.143 GB, free: 20.55 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003198/1.315, allocations: 169.5 kB / 1.143 GB, free: 20.4 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.632e-06/1.315, allocations: 0.7031 kB / 1.143 GB, free: 20.4 MB / 0.7292 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0008905/1.316, allocations: 0.5007 MB / 1.143 GB, free: 19.93 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 2.587e-05/1.316, allocations: 9.719 kB / 1.143 GB, free: 19.92 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.708e-06/1.316, allocations: 4 kB / 1.143 GB, free: 19.92 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.744e-05/1.316, allocations: 8.609 kB / 1.143 GB, free: 19.91 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002633/1.316, allocations: 75.16 kB / 1.144 GB, free: 19.85 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.773e-05/1.316, allocations: 5.406 kB / 1.144 GB, free: 19.84 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002748/1.317, allocations: 45.23 kB / 1.144 GB, free: 19.8 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.618e-05/1.317, allocations: 21.97 kB / 1.144 GB, free: 19.79 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.0003125/1.317, allocations: 236.2 kB / 1.144 GB, free: 19.55 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.747e-05/1.317, allocations: 28.33 kB / 1.144 GB, free: 19.53 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007953/1.318, allocations: 447.9 kB / 1.144 GB, free: 19.15 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/1.318, allocations: 5.031 kB / 1.144 GB, free: 19.14 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.038e-05/1.318, allocations: 0.6562 kB / 1.144 GB, free: 19.14 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.076e-05/1.318, allocations: 2.719 kB / 1.144 GB, free: 19.14 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001845/1.32, allocations: 1.063 MB / 1.145 GB, free: 18.18 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/1.32, allocations: 0 / 1.145 GB, free: 18.18 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001565/1.32, allocations: 39.16 kB / 1.145 GB, free: 18.15 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.883e-06/1.32, allocations: 0 / 1.145 GB, free: 18.15 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.398e-05/1.32, allocations: 9.594 kB / 1.145 GB, free: 18.14 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.581e-06/1.32, allocations: 3.953 kB / 1.145 GB, free: 18.14 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.342e-06/1.32, allocations: 4.688 kB / 1.145 GB, free: 18.14 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007123/1.321, allocations: 0.4924 MB / 1.146 GB, free: 17.66 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 7.636e-05/1.321, allocations: 107.4 kB / 1.146 GB, free: 17.54 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.034e-05/1.321, allocations: 4.703 kB / 1.146 GB, free: 17.54 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00019/1.321, allocations: 29.86 kB / 1.146 GB, free: 17.52 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002158/1.321, allocations: 73.7 kB / 1.146 GB, free: 17.47 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.79e-05/1.321, allocations: 19.3 kB / 1.146 GB, free: 17.45 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0001338/1.322, allocations: 131.1 kB / 1.146 GB, free: 17.34 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.61e-07/1.322, allocations: 0 / 1.146 GB, free: 17.34 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0005683/1.322, allocations: 93.31 kB / 1.146 GB, free: 17.25 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.0003184/1.322, allocations: 149.5 kB / 1.146 GB, free: 17.09 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0008958/1.323, allocations: 438.4 kB / 1.147 GB, free: 16.71 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/1.323, allocations: 0 / 1.147 GB, free: 16.71 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0004069/1.324, allocations: 221.3 kB / 1.147 GB, free: 16.52 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003625/1.324, allocations: 40.42 kB / 1.147 GB, free: 16.49 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001645/1.326, allocations: 0.8396 MB / 1.148 GB, free: 15.69 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000493/1.326, allocations: 0.8335 MB / 1.149 GB, free: 14.89 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0002955/1.327, allocations: 63.7 kB / 1.149 GB, free: 14.84 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001245/1.327, allocations: 43.42 kB / 1.149 GB, free: 14.8 MB / 0.7292 GB Notification: Performance of SimCode: time 1.142e-06/1.327, allocations: 0 / 1.149 GB, free: 14.8 MB / 0.7292 GB Notification: Performance of Templates: time 0.01245/1.339, allocations: 3.725 MB / 1.152 GB, free: 12.69 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)