Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.conf.json 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 9.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 5.088/5.088, allocations: 0.5623 GB / 0.5775 GB, free: 3.363 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002564/0.002564, allocations: 356.9 kB / 0.6446 GB, free: 185.7 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.284/4.284, allocations: 410.7 MB / 1.113 GB, free: 6 MB / 0.6042 GB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001857/0.001856, allocations: 183.4 kB / 1.226 GB, free: 6.172 MB / 0.7136 GB Notification: Performance of FrontEnd - loaded program: time 0.0005044/0.0005047, allocations: 19.98 kB / 1.349 GB, free: 8.301 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7661/0.7667, allocations: 115.3 MB / 1.461 GB, free: 284.4 MB / 0.8542 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2174/0.9841, allocations: 142.1 MB / 1.6 GB, free: 142.2 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003506/0.9845, allocations: 97.06 kB / 1.6 GB, free: 142.1 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 0.03012/1.015, allocations: 8.236 MB / 1.608 GB, free: 133.9 MB / 0.8542 GB Notification: Performance of FrontEnd: time 2.094e-06/1.015, allocations: 5.062 kB / 1.608 GB, free: 133.9 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 2.992e-05/1.015, allocations: 12.59 kB / 1.608 GB, free: 133.9 MB / 0.8542 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.00125/1.016, allocations: 0.6421 MB / 1.609 GB, free: 133.2 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 4.253e-05/1.016, allocations: 11.62 kB / 1.609 GB, free: 133.2 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001318/1.016, allocations: 53.16 kB / 1.609 GB, free: 133.1 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004825/1.017, allocations: 330.6 kB / 1.609 GB, free: 132.8 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.385e-05/1.017, allocations: 45.31 kB / 1.609 GB, free: 132.7 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001028/1.017, allocations: 52 kB / 1.609 GB, free: 132.7 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001292/1.018, allocations: 0.5731 MB / 1.61 GB, free: 132.1 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.766e-05/1.018, allocations: 4 kB / 1.61 GB, free: 132.1 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.379e-05/1.018, allocations: 30.25 kB / 1.61 GB, free: 132 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.529e-05/1.018, allocations: 20.94 kB / 1.61 GB, free: 132 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001138/1.02, allocations: 425.8 kB / 1.61 GB, free: 131.6 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002956/1.023, allocations: 1.908 MB / 1.612 GB, free: 129.6 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008597/1.023, allocations: 350.8 kB / 1.613 GB, free: 129.3 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004282/1.024, allocations: 184.8 kB / 1.613 GB, free: 129.1 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 7.392e-05/1.024, allocations: 10.31 kB / 1.613 GB, free: 129.1 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005428/1.024, allocations: 227 kB / 1.613 GB, free: 128.9 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=46): time 3.306e-06/1.025, allocations: 0 / 1.613 GB, free: 128.9 MB / 0.8542 GB Notification: Performance of matching and sorting (n=46): time 0.001323/1.026, allocations: 487.1 kB / 1.613 GB, free: 128.4 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.38e-05/1.026, allocations: 67.11 kB / 1.613 GB, free: 128.3 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002906/1.026, allocations: 247.3 kB / 1.614 GB, free: 128.1 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 7.204e-05/1.026, allocations: 46.42 kB / 1.614 GB, free: 128 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001476/1.026, allocations: 212.7 kB / 1.614 GB, free: 127.8 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001148/1.027, allocations: 116 kB / 1.614 GB, free: 127.7 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.774e-05/1.027, allocations: 8 kB / 1.614 GB, free: 127.7 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 8.716e-05/1.027, allocations: 342.8 kB / 1.614 GB, free: 127.3 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004512/1.027, allocations: 162.5 kB / 1.615 GB, free: 127.2 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005105/1.028, allocations: 288.3 kB / 1.615 GB, free: 126.8 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004448/1.028, allocations: 171.5 kB / 1.615 GB, free: 126.7 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/1.028, allocations: 0 / 1.615 GB, free: 126.7 MB / 0.8542 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001182/1.029, allocations: 0.5099 MB / 1.616 GB, free: 126.2 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 2.199e-05/1.029, allocations: 6.781 kB / 1.616 GB, free: 126.2 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.105e-05/1.029, allocations: 4 kB / 1.616 GB, free: 126.2 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.654e-05/1.029, allocations: 8 kB / 1.616 GB, free: 126.2 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004062/1.03, allocations: 59.84 kB / 1.616 GB, free: 126.1 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.701e-05/1.03, allocations: 15.92 kB / 1.616 GB, free: 126.1 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003633/1.03, allocations: 48.81 kB / 1.616 GB, free: 126 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.682e-05/1.03, allocations: 28.77 kB / 1.616 GB, free: 126 MB / 0.8542 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.0003729/1.031, allocations: 243.5 kB / 1.616 GB, free: 125.8 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.77e-05/1.031, allocations: 27.62 kB / 1.616 GB, free: 125.8 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001125/1.032, allocations: 425 kB / 1.616 GB, free: 125.3 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.676e-06/1.032, allocations: 8 kB / 1.616 GB, free: 125.3 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/1.032, allocations: 0 / 1.616 GB, free: 125.3 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.849e-06/1.032, allocations: 3.984 kB / 1.616 GB, free: 125.3 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002095/1.034, allocations: 1.062 MB / 1.617 GB, free: 124.2 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/1.034, allocations: 0.875 kB / 1.617 GB, free: 124.2 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002643/1.034, allocations: 39.91 kB / 1.617 GB, free: 124.2 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.138e-05/1.034, allocations: 8.828 kB / 1.617 GB, free: 124.2 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.921e-05/1.035, allocations: 12 kB / 1.617 GB, free: 124.2 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.003e-06/1.035, allocations: 4.641 kB / 1.617 GB, free: 124.1 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/1.035, allocations: 3.938 kB / 1.617 GB, free: 124.1 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009639/1.036, allocations: 0.494 MB / 1.618 GB, free: 123.6 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 5.729e-05/1.036, allocations: 99.45 kB / 1.618 GB, free: 123.5 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.703e-05/1.036, allocations: 11.95 kB / 1.618 GB, free: 123.5 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003083/1.036, allocations: 28.98 kB / 1.618 GB, free: 123.5 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002244/1.036, allocations: 69.23 kB / 1.618 GB, free: 123.4 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.902e-05/1.036, allocations: 16 kB / 1.618 GB, free: 123.4 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0001386/1.036, allocations: 138.5 kB / 1.618 GB, free: 123.3 MB / 0.8542 GB Notification: Performance of sort global known variables: time 3.7e-07/1.036, allocations: 0 / 1.618 GB, free: 123.3 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.000585/1.037, allocations: 94 kB / 1.618 GB, free: 123.2 MB / 0.8542 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.0002667/1.037, allocations: 149.3 kB / 1.619 GB, free: 123 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.001048/1.038, allocations: 441.1 kB / 1.619 GB, free: 122.6 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/1.038, allocations: 0 / 1.619 GB, free: 122.6 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0005102/1.039, allocations: 218.9 kB / 1.619 GB, free: 122.4 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005358/1.04, allocations: 44.09 kB / 1.619 GB, free: 122.4 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001753/1.041, allocations: 0.8468 MB / 1.62 GB, free: 121.5 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003393/1.042, allocations: 0.8323 MB / 1.621 GB, free: 120.6 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.0003751/1.042, allocations: 63.84 kB / 1.621 GB, free: 120.6 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001895/1.042, allocations: 39.42 kB / 1.621 GB, free: 120.5 MB / 0.8542 GB Notification: Performance of SimCode: time 1.062e-06/1.042, allocations: 0.5938 kB / 1.621 GB, free: 120.5 MB / 0.8542 GB Notification: Performance of Templates: time 0.01178/1.054, allocations: 3.74 MB / 1.625 GB, free: 117 MB / 0.8542 GB