Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_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 7.0.1 (/var/lib/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") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.121/2.121, allocations: 251.1 MB / 266.1 MB, free: 11.62 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001408/0.001408, allocations: 181.6 kB / 325.6 MB, free: 2.832 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.356/2.356, allocations: 205.4 MB / 0.5766 GB, free: 21.17 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001085/0.001085, allocations: 100.7 kB / 0.6811 GB, free: 14.02 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004817/0.0004817, allocations: 12.72 kB / 0.7951 GB, free: 135.8 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2151/0.2156, allocations: 106.3 MB / 0.8989 GB, free: 65.95 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2299/0.4456, allocations: 135.8 MB / 1.031 GB, free: 10.01 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003778/0.446, allocations: 99.88 kB / 1.032 GB, free: 9.914 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.03445/0.4805, allocations: 8.253 MB / 1.04 GB, free: 1.605 MB / 0.6823 GB Notification: Performance of FrontEnd: time 5.17e-06/0.4805, allocations: 0 / 1.04 GB, free: 1.605 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 3.417e-05/0.4806, allocations: 11.94 kB / 1.04 GB, free: 1.594 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.001413/0.482, allocations: 0.6427 MB / 1.04 GB, free: 0.8945 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.953e-05/0.4821, allocations: 8.031 kB / 1.04 GB, free: 0.8867 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001535/0.4822, allocations: 51.44 kB / 1.04 GB, free: 0.8359 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006011/0.4829, allocations: 339.1 kB / 1.041 GB, free: 472 kB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.614e-05/0.4829, allocations: 45.31 kB / 1.041 GB, free: 428 kB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001228/0.4831, allocations: 55.98 kB / 1.041 GB, free: 372 kB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001516/0.4846, allocations: 0.5698 MB / 1.041 GB, free: 15.77 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.627e-05/0.4847, allocations: 0 / 1.041 GB, free: 15.77 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.559e-05/0.4848, allocations: 20 kB / 1.041 GB, free: 15.75 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.147e-05/0.4848, allocations: 21 kB / 1.041 GB, free: 15.73 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001265/0.4861, allocations: 419.7 kB / 1.042 GB, free: 15.31 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0036/0.4897, allocations: 1.907 MB / 1.044 GB, free: 13.33 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009729/0.4907, allocations: 361.1 kB / 1.044 GB, free: 12.96 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 7.514e-05/0.4908, allocations: 4 kB / 1.044 GB, free: 12.96 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005903/0.4914, allocations: 230 kB / 1.044 GB, free: 12.72 MB / 0.698 GB Notification: Performance of pre-optimization done (n=46): time 3.607e-06/0.4915, allocations: 0 / 1.044 GB, free: 12.72 MB / 0.698 GB Notification: Performance of matching and sorting (n=46): time 0.001483/0.4929, allocations: 482.5 kB / 1.045 GB, free: 12.25 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.024e-05/0.493, allocations: 67.09 kB / 1.045 GB, free: 12.17 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003433/0.4934, allocations: 228.8 kB / 1.045 GB, free: 11.94 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 9.559e-05/0.4935, allocations: 49.7 kB / 1.045 GB, free: 11.88 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.000199/0.4937, allocations: 217.4 kB / 1.045 GB, free: 11.66 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001545/0.4939, allocations: 122.4 kB / 1.045 GB, free: 11.54 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.645e-05/0.4939, allocations: 8 kB / 1.045 GB, free: 11.54 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001461/0.4941, allocations: 342.8 kB / 1.046 GB, free: 11.19 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005134/0.4946, allocations: 161.2 kB / 1.046 GB, free: 11.04 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006035/0.4952, allocations: 284.8 kB / 1.046 GB, free: 10.71 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000519/0.4958, allocations: 174.1 kB / 1.046 GB, free: 10.54 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.022e-05/0.4958, allocations: 4 kB / 1.046 GB, free: 10.54 MB / 0.698 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001371/0.4972, allocations: 0.5065 MB / 1.047 GB, free: 10.02 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.774e-05/0.4973, allocations: 5.25 kB / 1.047 GB, free: 10.02 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.498e-05/0.4973, allocations: 4 kB / 1.047 GB, free: 10.02 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.963e-05/0.4973, allocations: 8 kB / 1.047 GB, free: 10.01 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004194/0.4978, allocations: 63.84 kB / 1.047 GB, free: 9.945 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.811e-05/0.4978, allocations: 7.984 kB / 1.047 GB, free: 9.938 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004077/0.4982, allocations: 55.91 kB / 1.047 GB, free: 9.883 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.04e-05/0.4983, allocations: 23.98 kB / 1.047 GB, free: 9.859 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.0004351/0.4987, allocations: 222.9 kB / 1.047 GB, free: 9.633 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.394e-05/0.4988, allocations: 23.72 kB / 1.047 GB, free: 9.609 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001292/0.5001, allocations: 439.3 kB / 1.048 GB, free: 9.176 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.474e-05/0.5002, allocations: 12 kB / 1.048 GB, free: 9.164 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.004e-06/0.5002, allocations: 0 / 1.048 GB, free: 9.164 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.136e-05/0.5002, allocations: 3.984 kB / 1.048 GB, free: 9.16 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002519/0.5027, allocations: 1.066 MB / 1.049 GB, free: 8.039 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.55e-06/0.5028, allocations: 0 / 1.049 GB, free: 8.039 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002769/0.5031, allocations: 39.84 kB / 1.049 GB, free: 8 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-05/0.5031, allocations: 7.953 kB / 1.049 GB, free: 7.992 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.32e-05/0.5032, allocations: 8 kB / 1.049 GB, free: 7.984 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.941e-06/0.5032, allocations: 0 / 1.049 GB, free: 7.984 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.5032, allocations: 0 / 1.049 GB, free: 7.984 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001206/0.5044, allocations: 499.8 kB / 1.049 GB, free: 7.477 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001061/0.5046, allocations: 108.6 kB / 1.049 GB, free: 7.352 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.837e-05/0.5047, allocations: 15.95 kB / 1.049 GB, free: 7.336 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003435/0.505, allocations: 31.98 kB / 1.049 GB, free: 7.305 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002501/0.5053, allocations: 68.33 kB / 1.049 GB, free: 7.238 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.595e-05/0.5054, allocations: 16 kB / 1.049 GB, free: 7.223 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001876/0.5056, allocations: 131.2 kB / 1.049 GB, free: 7.094 MB / 0.698 GB Notification: Performance of sort global known variables: time 5.01e-07/0.5056, allocations: 0 / 1.049 GB, free: 7.094 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0006749/0.5062, allocations: 88 kB / 1.05 GB, free: 7.008 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.0003251/0.5066, allocations: 155 kB / 1.05 GB, free: 6.844 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.00141/0.508, allocations: 437.5 kB / 1.05 GB, free: 6.418 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 4.608e-06/0.5081, allocations: 0.9375 kB / 1.05 GB, free: 6.418 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0006284/0.5087, allocations: 222.4 kB / 1.05 GB, free: 6.199 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004648/0.5092, allocations: 31.98 kB / 1.05 GB, free: 6.168 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002166/0.5114, allocations: 0.8467 MB / 1.051 GB, free: 5.301 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005554/0.512, allocations: 0.8272 MB / 1.052 GB, free: 4.445 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0004807/0.5125, allocations: 67.25 kB / 1.052 GB, free: 4.379 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002091/0.5127, allocations: 39.42 kB / 1.052 GB, free: 4.34 MB / 0.698 GB Notification: Performance of SimCode: time 3.276e-06/0.5127, allocations: 3.938 kB / 1.052 GB, free: 4.336 MB / 0.698 GB Notification: Performance of Templates: time 0.01312/0.5259, allocations: 3.724 MB / 1.056 GB, free: 0.6445 MB / 0.698 GB