Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.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_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.441/2.441, allocations: 285 MB / 292.5 MB, free: 10.5 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001487/0.001487, allocations: 180.8 kB / 360.7 MB, free: 7.207 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2/2, allocations: 205.3 MB / 0.6192 GB, free: 12.11 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001058/0.001058, allocations: 92.39 kB / 0.7322 GB, free: 44.65 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.999e-05/3.005e-05, allocations: 4 kB / 0.8509 GB, free: 3.309 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7884/0.7884, allocations: 115.2 MB / 0.9634 GB, free: 78.38 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2354/1.024, allocations: 141.3 MB / 1.101 GB, free: 15.09 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000355/1.024, allocations: 87.94 kB / 1.102 GB, free: 15 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.03276/1.057, allocations: 8.076 MB / 1.109 GB, free: 6.984 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.503e-06/1.057, allocations: 4 kB / 1.109 GB, free: 6.98 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 3.651e-05/1.057, allocations: 16.59 kB / 1.109 GB, free: 6.965 MB / 0.7136 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.001315/1.059, allocations: 0.6177 MB / 1.11 GB, free: 6.297 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.596e-05/1.059, allocations: 12.03 kB / 1.11 GB, free: 6.285 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001519/1.059, allocations: 58.84 kB / 1.11 GB, free: 6.23 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006262/1.059, allocations: 331.2 kB / 1.11 GB, free: 5.863 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.199e-05/1.059, allocations: 24 kB / 1.11 GB, free: 5.84 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001084/1.06, allocations: 32 kB / 1.11 GB, free: 5.809 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001055/1.061, allocations: 362.5 kB / 1.111 GB, free: 5.457 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001217/1.062, allocations: 0.4899 MB / 1.111 GB, free: 4.934 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.145e-05/1.062, allocations: 0 / 1.111 GB, free: 4.934 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.324e-05/1.062, allocations: 4 kB / 1.111 GB, free: 4.93 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-05/1.062, allocations: 21.31 kB / 1.111 GB, free: 4.91 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00346/1.066, allocations: 1.804 MB / 1.113 GB, free: 3.039 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007797/1.066, allocations: 323.6 kB / 1.113 GB, free: 2.711 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003859/1.067, allocations: 161.5 kB / 1.114 GB, free: 2.551 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 7.04e-05/1.067, allocations: 12.62 kB / 1.114 GB, free: 2.539 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005062/1.067, allocations: 201.7 kB / 1.114 GB, free: 2.328 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=46): time 4.128e-06/1.067, allocations: 0 / 1.114 GB, free: 2.328 MB / 0.7136 GB Notification: Performance of matching and sorting (n=46): time 0.0009174/1.068, allocations: 305.9 kB / 1.114 GB, free: 2.023 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.584e-05/1.068, allocations: 67.39 kB / 1.114 GB, free: 1.945 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003065/1.069, allocations: 209.2 kB / 1.114 GB, free: 1.734 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 8.23e-05/1.069, allocations: 41.69 kB / 1.114 GB, free: 1.688 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.000217/1.069, allocations: 212.7 kB / 1.115 GB, free: 1.477 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001487/1.069, allocations: 102.7 kB / 1.115 GB, free: 1.375 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.193e-05/1.069, allocations: 0 / 1.115 GB, free: 1.375 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001816/1.069, allocations: 350.8 kB / 1.115 GB, free: 1.023 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000378/1.07, allocations: 137.5 kB / 1.115 GB, free: 0.8906 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005022/1.07, allocations: 260.5 kB / 1.115 GB, free: 0.5859 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004576/1.071, allocations: 150 kB / 1.116 GB, free: 452 kB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.165e-06/1.071, allocations: 4 kB / 1.116 GB, free: 448 kB / 0.7136 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001201/1.072, allocations: 434.9 kB / 1.116 GB, free: 4 kB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 4.534e-05/1.072, allocations: 13.3 kB / 1.116 GB, free: 15.99 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.627e-05/1.072, allocations: 4 kB / 1.116 GB, free: 15.98 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.925e-05/1.072, allocations: 11.94 kB / 1.116 GB, free: 15.97 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004496/1.073, allocations: 63.78 kB / 1.116 GB, free: 15.91 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.421e-05/1.073, allocations: 8 kB / 1.116 GB, free: 15.91 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003623/1.073, allocations: 27.83 kB / 1.116 GB, free: 15.88 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.921e-05/1.073, allocations: 31.98 kB / 1.116 GB, free: 15.85 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 () * 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.0002266/1.073, allocations: 154.5 kB / 1.116 GB, free: 15.69 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.648e-05/1.073, allocations: 27.62 kB / 1.116 GB, free: 15.66 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001136/1.075, allocations: 382.9 kB / 1.117 GB, free: 15.29 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.098e-05/1.075, allocations: 4 kB / 1.117 GB, free: 15.29 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.674e-06/1.075, allocations: 4 kB / 1.117 GB, free: 15.28 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.175e-05/1.075, allocations: 3.984 kB / 1.117 GB, free: 15.28 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002269/1.077, allocations: 0.9441 MB / 1.118 GB, free: 14.29 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/1.077, allocations: 0 / 1.118 GB, free: 14.29 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002769/1.077, allocations: 41.97 kB / 1.118 GB, free: 14.25 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.464e-05/1.077, allocations: 0 / 1.118 GB, free: 14.25 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.608e-05/1.077, allocations: 11.94 kB / 1.118 GB, free: 14.24 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.087e-06/1.077, allocations: 0 / 1.118 GB, free: 14.24 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.403e-06/1.077, allocations: 3.953 kB / 1.118 GB, free: 14.23 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00101/1.078, allocations: 460.5 kB / 1.118 GB, free: 13.77 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 8.745e-05/1.078, allocations: 104.8 kB / 1.118 GB, free: 13.65 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.378e-05/1.079, allocations: 8 kB / 1.118 GB, free: 13.64 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003174/1.079, allocations: 15.98 kB / 1.118 GB, free: 13.62 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002125/1.079, allocations: 72.28 kB / 1.118 GB, free: 13.55 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.887e-05/1.079, allocations: 16 kB / 1.118 GB, free: 13.54 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0001562/1.079, allocations: 124.3 kB / 1.118 GB, free: 13.42 MB / 0.7292 GB Notification: Performance of sort global known variables: time 4.11e-07/1.079, allocations: 4 kB / 1.118 GB, free: 13.41 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0006207/1.08, allocations: 75.89 kB / 1.118 GB, free: 13.34 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) * 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.0002918/1.08, allocations: 132 kB / 1.119 GB, free: 13.21 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0009495/1.081, allocations: 395.6 kB / 1.119 GB, free: 12.82 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/1.081, allocations: 4.938 kB / 1.119 GB, free: 12.82 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0004511/1.082, allocations: 193.6 kB / 1.119 GB, free: 12.63 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003794/1.082, allocations: 26.8 kB / 1.119 GB, free: 12.61 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001491/1.084, allocations: 0.5116 MB / 1.12 GB, free: 12.07 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005625/1.084, allocations: 0.8348 MB / 1.12 GB, free: 11.21 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0003662/1.085, allocations: 63.25 kB / 1.121 GB, free: 11.16 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001862/1.085, allocations: 43.42 kB / 1.121 GB, free: 11.11 MB / 0.7292 GB Notification: Performance of SimCode: time 2.886e-06/1.085, allocations: 0 / 1.121 GB, free: 11.11 MB / 0.7292 GB Notification: Performance of Templates: time 0.01273/1.098, allocations: 3.606 MB / 1.124 GB, free: 7.598 MB / 0.7292 GB make -j1 -f Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.makefile (rm -f Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; mkfifo Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe >> ../files/Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.sim & ./Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe 2>&1)