Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.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_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 3.881/3.881, allocations: 251.1 MB / 266.7 MB, free: 11.59 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002657/0.002657, allocations: 177.7 kB / 326.2 MB, free: 2.863 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.028/4.028, allocations: 205.4 MB / 0.5772 GB, free: 20.77 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001448/0.001448, allocations: 90.41 kB / 0.6817 GB, free: 13.66 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0007997/0.0008, allocations: 11.69 kB / 0.7957 GB, free: 135.4 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3419/0.3428, allocations: 106.3 MB / 0.8995 GB, free: 65.52 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.3581/0.7009, allocations: 135.8 MB / 1.032 GB, free: 9.574 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005383/0.7016, allocations: 99.92 kB / 1.032 GB, free: 9.477 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.04921/0.7508, allocations: 8.269 MB / 1.04 GB, free: 1.148 MB / 0.6823 GB Notification: Performance of FrontEnd: time 4.628e-06/0.7509, allocations: 0 / 1.04 GB, free: 1.148 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 5.615e-05/0.7509, allocations: 12 kB / 1.04 GB, free: 1.137 MB / 0.6823 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.002136/0.7531, allocations: 0.639 MB / 1.041 GB, free: 452 kB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 6.807e-05/0.7532, allocations: 12.02 kB / 1.041 GB, free: 440 kB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000272/0.7535, allocations: 48.38 kB / 1.041 GB, free: 392 kB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009523/0.7545, allocations: 344.4 kB / 1.041 GB, free: 4 kB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001632/0.7546, allocations: 45.73 kB / 1.041 GB, free: 15.95 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001823/0.7548, allocations: 52.38 kB / 1.041 GB, free: 15.9 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00225/0.7571, allocations: 0.5701 MB / 1.042 GB, free: 15.31 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.652e-05/0.7572, allocations: 192 / 1.042 GB, free: 15.31 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001247/0.7574, allocations: 35.86 kB / 1.042 GB, free: 15.27 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.358e-05/0.7574, allocations: 17 kB / 1.042 GB, free: 15.26 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002119/0.7596, allocations: 415.7 kB / 1.042 GB, free: 14.85 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005368/0.765, allocations: 1.9 MB / 1.044 GB, free: 12.87 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001404/0.7665, allocations: 362.5 kB / 1.045 GB, free: 12.51 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007139/0.7672, allocations: 192.7 kB / 1.045 GB, free: 12.32 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001035/0.7673, allocations: 12.61 kB / 1.045 GB, free: 12.3 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008554/0.7682, allocations: 222 kB / 1.045 GB, free: 12.07 MB / 0.698 GB Notification: Performance of pre-optimization done (n=46): time 7.104e-06/0.7682, allocations: 3.938 kB / 1.045 GB, free: 12.07 MB / 0.698 GB Notification: Performance of matching and sorting (n=46): time 0.002119/0.7704, allocations: 490.5 kB / 1.045 GB, free: 11.59 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001041/0.7705, allocations: 63.16 kB / 1.046 GB, free: 11.51 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005204/0.7711, allocations: 237.8 kB / 1.046 GB, free: 11.27 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0001296/0.7712, allocations: 45.7 kB / 1.046 GB, free: 11.22 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002882/0.7715, allocations: 216.8 kB / 1.046 GB, free: 11 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002114/0.7718, allocations: 118.5 kB / 1.046 GB, free: 10.89 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.552e-05/0.7718, allocations: 8 kB / 1.046 GB, free: 10.88 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0002197/0.7721, allocations: 350.7 kB / 1.046 GB, free: 10.53 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007354/0.7728, allocations: 165.2 kB / 1.047 GB, free: 10.37 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008798/0.7737, allocations: 288.7 kB / 1.047 GB, free: 10.04 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007353/0.7745, allocations: 174.1 kB / 1.047 GB, free: 9.867 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.785e-06/0.7745, allocations: 0 / 1.047 GB, free: 9.867 MB / 0.698 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.002009/0.7765, allocations: 0.4986 MB / 1.048 GB, free: 9.359 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 3.967e-05/0.7766, allocations: 8 kB / 1.048 GB, free: 9.352 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.898e-05/0.7766, allocations: 4 kB / 1.048 GB, free: 9.348 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.657e-05/0.7767, allocations: 8 kB / 1.048 GB, free: 9.34 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005836/0.7773, allocations: 63.83 kB / 1.048 GB, free: 9.277 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.174e-05/0.7773, allocations: 15.92 kB / 1.048 GB, free: 9.262 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006379/0.778, allocations: 44.08 kB / 1.048 GB, free: 9.219 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001227/0.7781, allocations: 27.98 kB / 1.048 GB, free: 9.191 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.000681/0.7788, allocations: 234.8 kB / 1.048 GB, free: 8.949 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001221/0.779, allocations: 31.7 kB / 1.048 GB, free: 8.918 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001795/0.7808, allocations: 427.5 kB / 1.048 GB, free: 8.496 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.664e-05/0.7808, allocations: 4 kB / 1.048 GB, free: 8.492 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/0.7808, allocations: 0 / 1.048 GB, free: 8.492 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.351e-05/0.7809, allocations: 0 / 1.048 GB, free: 8.492 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003616/0.7845, allocations: 1.062 MB / 1.049 GB, free: 7.375 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.696e-06/0.7846, allocations: 3.938 kB / 1.049 GB, free: 7.371 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003801/0.785, allocations: 39.91 kB / 1.049 GB, free: 7.332 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.136e-05/0.785, allocations: 0 / 1.049 GB, free: 7.332 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.188e-05/0.7851, allocations: 15.92 kB / 1.049 GB, free: 7.316 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.097e-05/0.7851, allocations: 11.94 kB / 1.049 GB, free: 7.305 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.791e-06/0.7851, allocations: 4 kB / 1.049 GB, free: 7.301 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001621/0.7868, allocations: 495.8 kB / 1.05 GB, free: 6.797 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001332/0.7869, allocations: 104.7 kB / 1.05 GB, free: 6.676 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001063/0.7871, allocations: 15.88 kB / 1.05 GB, free: 6.66 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000492/0.7876, allocations: 39.95 kB / 1.05 GB, free: 6.621 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003129/0.7879, allocations: 60.34 kB / 1.05 GB, free: 6.562 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.742e-05/0.788, allocations: 19.98 kB / 1.05 GB, free: 6.543 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0002639/0.7883, allocations: 131.2 kB / 1.05 GB, free: 6.414 MB / 0.698 GB Notification: Performance of sort global known variables: time 5.91e-07/0.7883, allocations: 0 / 1.05 GB, free: 6.414 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001071/0.7894, allocations: 91.98 kB / 1.05 GB, free: 6.324 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.0004654/0.7899, allocations: 147.1 kB / 1.051 GB, free: 6.172 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001797/0.7917, allocations: 434.1 kB / 1.051 GB, free: 5.75 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 7.444e-06/0.7917, allocations: 4.312 kB / 1.051 GB, free: 5.746 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0008147/0.7925, allocations: 218.4 kB / 1.051 GB, free: 5.531 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009064/0.7935, allocations: 43.98 kB / 1.051 GB, free: 5.488 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002994/0.7965, allocations: 0.8569 MB / 1.052 GB, free: 4.605 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008225/0.7974, allocations: 0.8194 MB / 1.053 GB, free: 3.758 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0006332/0.798, allocations: 63.25 kB / 1.053 GB, free: 3.695 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002786/0.7983, allocations: 43.42 kB / 1.053 GB, free: 3.652 MB / 0.698 GB Notification: Performance of SimCode: time 1.352e-06/0.7984, allocations: 0 / 1.053 GB, free: 3.652 MB / 0.698 GB Notification: Performance of Templates: time 0.9111/1.71, allocations: 3.731 MB / 1.057 GB, free: 150.4 MB / 0.698 GB make -j1 -f Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.makefile (rm -f Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; mkfifo Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; head -c 1048576 < Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe >> ../files/Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.sim & ./Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe 2>&1)