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.719/1.719, allocations: 288.3 MB / 303.2 MB, free: 8.238 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.001208/0.001208, allocations: 189 kB / 371.8 MB, free: 10.26 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.91/1.91, allocations: 205.4 MB / 0.6306 GB, free: 9.992 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.0009141/0.0009142, allocations: 95.69 kB / 0.7439 GB, free: 5.918 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004414/0.0004414, allocations: 14.94 kB / 0.8668 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2898/0.2903, allocations: 115.3 MB / 0.9794 GB, free: 27.68 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9264/1.217, allocations: 142.2 MB / 1.118 GB, free: 16.34 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003319/1.217, allocations: 96.03 kB / 1.118 GB, free: 16.34 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.02036/1.238, allocations: 8.245 MB / 1.126 GB, free: 31.48 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.893e-06/1.238, allocations: 0 / 1.126 GB, free: 31.48 MB / 0.698 GB Notification: Performance of Transformations before backend: time 2.754e-05/1.238, allocations: 15.53 kB / 1.126 GB, free: 31.48 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.001002/1.239, allocations: 0.6311 MB / 1.127 GB, free: 30.96 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.814e-05/1.239, allocations: 15.58 kB / 1.127 GB, free: 30.95 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001065/1.239, allocations: 58.34 kB / 1.127 GB, free: 30.92 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004239/1.239, allocations: 327 kB / 1.127 GB, free: 30.67 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.53e-05/1.239, allocations: 47.22 kB / 1.128 GB, free: 30.67 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.467e-05/1.239, allocations: 50.09 kB / 1.128 GB, free: 30.67 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008681/1.24, allocations: 0.5652 MB / 1.128 GB, free: 30.46 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.888e-05/1.24, allocations: 3.844 kB / 1.128 GB, free: 30.46 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.732e-05/1.24, allocations: 23.58 kB / 1.128 GB, free: 30.45 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.298e-05/1.24, allocations: 24.14 kB / 1.128 GB, free: 30.45 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006472/1.241, allocations: 417.3 kB / 1.129 GB, free: 30.38 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002199/1.243, allocations: 1.918 MB / 1.13 GB, free: 29.14 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000543/1.244, allocations: 355.5 kB / 1.131 GB, free: 29.08 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 6.236e-05/1.244, allocations: 19.52 kB / 1.131 GB, free: 29.07 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003526/1.244, allocations: 220.6 kB / 1.131 GB, free: 28.98 MB / 0.698 GB Notification: Performance of pre-optimization done (n=46): time 2.925e-06/1.244, allocations: 0 / 1.131 GB, free: 28.98 MB / 0.698 GB Notification: Performance of matching and sorting (n=46): time 0.0008276/1.245, allocations: 481.9 kB / 1.131 GB, free: 28.88 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.345e-05/1.245, allocations: 66.38 kB / 1.132 GB, free: 28.81 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002022/1.245, allocations: 228.9 kB / 1.132 GB, free: 28.66 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 5.457e-05/1.245, allocations: 47.28 kB / 1.132 GB, free: 28.62 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001412/1.246, allocations: 213.7 kB / 1.132 GB, free: 28.47 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 8.316e-05/1.246, allocations: 113 kB / 1.132 GB, free: 28.41 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.398e-05/1.246, allocations: 14.25 kB / 1.132 GB, free: 28.41 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001842/1.246, allocations: 342.9 kB / 1.132 GB, free: 28.08 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002845/1.246, allocations: 163.6 kB / 1.133 GB, free: 28.06 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003395/1.247, allocations: 288.7 kB / 1.133 GB, free: 27.89 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002973/1.247, allocations: 170.6 kB / 1.133 GB, free: 27.87 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.047e-06/1.247, allocations: 3.969 kB / 1.133 GB, free: 27.87 MB / 0.698 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0007586/1.248, allocations: 0.5064 MB / 1.134 GB, free: 27.73 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.883e-05/1.248, allocations: 11.47 kB / 1.134 GB, free: 27.73 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.184e-05/1.248, allocations: 3.984 kB / 1.134 GB, free: 27.73 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.416e-05/1.248, allocations: 7.812 kB / 1.134 GB, free: 27.73 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000258/1.248, allocations: 61.53 kB / 1.134 GB, free: 27.71 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.857e-05/1.248, allocations: 7.656 kB / 1.134 GB, free: 27.71 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002241/1.248, allocations: 49.56 kB / 1.134 GB, free: 27.69 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.689e-05/1.248, allocations: 26.56 kB / 1.134 GB, free: 27.69 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.0003569/1.249, allocations: 241.3 kB / 1.134 GB, free: 27.54 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.719e-05/1.249, allocations: 27.28 kB / 1.134 GB, free: 27.52 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007986/1.25, allocations: 433.5 kB / 1.134 GB, free: 27.41 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.566e-06/1.25, allocations: 7.688 kB / 1.134 GB, free: 27.41 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/1.25, allocations: 0 / 1.134 GB, free: 27.41 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.807e-06/1.25, allocations: 3.984 kB / 1.134 GB, free: 27.41 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001471/1.251, allocations: 1.064 MB / 1.135 GB, free: 26.92 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/1.251, allocations: 0 / 1.135 GB, free: 26.92 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001448/1.251, allocations: 34.48 kB / 1.135 GB, free: 26.91 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.639e-06/1.251, allocations: 0 / 1.135 GB, free: 26.91 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.665e-05/1.251, allocations: 14.14 kB / 1.135 GB, free: 26.91 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.017e-06/1.251, allocations: 11.83 kB / 1.135 GB, free: 26.9 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/1.251, allocations: 0 / 1.135 GB, free: 26.9 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006674/1.252, allocations: 498.8 kB / 1.136 GB, free: 26.7 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 7.755e-05/1.252, allocations: 104.4 kB / 1.136 GB, free: 26.59 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.648e-05/1.252, allocations: 11.48 kB / 1.136 GB, free: 26.58 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000179/1.252, allocations: 30.67 kB / 1.136 GB, free: 26.57 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001706/1.253, allocations: 65.92 kB / 1.136 GB, free: 26.55 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.813e-05/1.253, allocations: 19.14 kB / 1.136 GB, free: 26.54 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001525/1.253, allocations: 141.6 kB / 1.136 GB, free: 26.45 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.3e-07/1.253, allocations: 0 / 1.136 GB, free: 26.45 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0004215/1.253, allocations: 87.94 kB / 1.136 GB, free: 26.45 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.00032/1.254, allocations: 152.7 kB / 1.137 GB, free: 26.34 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0007222/1.254, allocations: 437 kB / 1.137 GB, free: 26.27 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/1.254, allocations: 0.9375 kB / 1.137 GB, free: 26.27 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002939/1.255, allocations: 219.1 kB / 1.137 GB, free: 26.24 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002898/1.255, allocations: 37.28 kB / 1.137 GB, free: 26.23 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001411/1.256, allocations: 0.8504 MB / 1.138 GB, free: 25.73 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005719/1.257, allocations: 0.8316 MB / 1.139 GB, free: 24.97 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0002209/1.257, allocations: 65.47 kB / 1.139 GB, free: 24.94 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000119/1.257, allocations: 38.11 kB / 1.139 GB, free: 24.93 MB / 0.698 GB Notification: Performance of SimCode: time 8.52e-07/1.257, allocations: 0 / 1.139 GB, free: 24.93 MB / 0.698 GB Notification: Performance of Templates: time 0.009641/1.267, allocations: 3.724 MB / 1.143 GB, free: 23.16 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)