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.143/2.143, allocations: 253.2 MB / 260.6 MB, free: 7.484 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001465/0.001465, allocations: 183.1 kB / 319.9 MB, free: 3.07 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.125/2.125, allocations: 205.6 MB / 0.5708 GB, free: 15.28 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.001132/0.001131, allocations: 99.62 kB / 0.6751 GB, free: 4.641 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.127e-05/2.123e-05, allocations: 0 / 0.7849 GB, free: 102.2 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2152/0.2152, allocations: 106.3 MB / 0.8887 GB, free: 11.87 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8712/1.086, allocations: 135.9 MB / 1.021 GB, free: 1.555 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003565/1.087, allocations: 90.94 kB / 1.022 GB, free: 1.5 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.03389/1.121, allocations: 8.096 MB / 1.029 GB, free: 10.82 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.986e-06/1.121, allocations: 0 / 1.029 GB, free: 10.82 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 4.444e-05/1.121, allocations: 16 kB / 1.029 GB, free: 10.8 MB / 0.6511 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.001418/1.122, allocations: 0.6126 MB / 1.03 GB, free: 10.17 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.615e-05/1.122, allocations: 16.02 kB / 1.03 GB, free: 10.16 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001568/1.123, allocations: 47.44 kB / 1.03 GB, free: 10.11 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006103/1.123, allocations: 334.6 kB / 1.03 GB, free: 9.797 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.442e-05/1.123, allocations: 23.31 kB / 1.03 GB, free: 9.777 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001113/1.123, allocations: 39.98 kB / 1.03 GB, free: 9.738 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001046/1.124, allocations: 360.7 kB / 1.031 GB, free: 9.527 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001171/1.126, allocations: 496.5 kB / 1.031 GB, free: 9.137 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.595e-05/1.126, allocations: 7.938 kB / 1.031 GB, free: 9.129 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.933e-05/1.126, allocations: 4 kB / 1.031 GB, free: 9.125 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-05/1.126, allocations: 21.25 kB / 1.031 GB, free: 9.109 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003365/1.129, allocations: 1.81 MB / 1.033 GB, free: 7.586 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007329/1.13, allocations: 317.9 kB / 1.033 GB, free: 7.379 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003602/1.13, allocations: 169.5 kB / 1.034 GB, free: 7.273 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 6.466e-05/1.13, allocations: 4 kB / 1.034 GB, free: 7.27 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004656/1.131, allocations: 201.7 kB / 1.034 GB, free: 7.113 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=46): time 3.347e-06/1.131, allocations: 0 / 1.034 GB, free: 7.113 MB / 0.6511 GB Notification: Performance of matching and sorting (n=46): time 0.0008763/1.132, allocations: 306.6 kB / 1.034 GB, free: 6.879 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.987e-05/1.132, allocations: 63.39 kB / 1.034 GB, free: 6.805 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002625/1.132, allocations: 210.9 kB / 1.034 GB, free: 6.633 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 7.231e-05/1.132, allocations: 36.94 kB / 1.034 GB, free: 6.594 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001941/1.132, allocations: 219.7 kB / 1.035 GB, free: 6.406 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.000141/1.133, allocations: 108.7 kB / 1.035 GB, free: 6.316 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.227e-05/1.133, allocations: 3.938 kB / 1.035 GB, free: 6.312 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001626/1.133, allocations: 340.1 kB / 1.035 GB, free: 5.984 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003558/1.133, allocations: 136.2 kB / 1.035 GB, free: 5.906 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004608/1.134, allocations: 268.4 kB / 1.035 GB, free: 5.664 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004078/1.134, allocations: 148 kB / 1.036 GB, free: 5.57 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/1.134, allocations: 4 kB / 1.036 GB, free: 5.566 MB / 0.6511 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001078/1.135, allocations: 439.6 kB / 1.036 GB, free: 5.227 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.515e-05/1.135, allocations: 5.094 kB / 1.036 GB, free: 5.223 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.035e-05/1.135, allocations: 4.469 kB / 1.036 GB, free: 5.219 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.667e-05/1.135, allocations: 12 kB / 1.036 GB, free: 5.207 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004607/1.136, allocations: 69.52 kB / 1.036 GB, free: 5.145 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.877e-05/1.136, allocations: 7.938 kB / 1.036 GB, free: 5.137 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003606/1.136, allocations: 31.83 kB / 1.036 GB, free: 5.105 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.218e-05/1.136, allocations: 30.88 kB / 1.036 GB, free: 5.078 MB / 0.6511 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.0002406/1.137, allocations: 153.8 kB / 1.036 GB, free: 4.93 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.146e-05/1.137, allocations: 23.72 kB / 1.036 GB, free: 4.906 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001103/1.138, allocations: 377.9 kB / 1.037 GB, free: 4.625 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.477e-06/1.138, allocations: 4 kB / 1.037 GB, free: 4.621 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/1.138, allocations: 0 / 1.037 GB, free: 4.621 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.04e-05/1.138, allocations: 7.984 kB / 1.037 GB, free: 4.613 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002129/1.14, allocations: 0.9461 MB / 1.038 GB, free: 3.848 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.738e-06/1.14, allocations: 0 / 1.038 GB, free: 3.848 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002744/1.14, allocations: 31.91 kB / 1.038 GB, free: 3.816 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.192e-05/1.14, allocations: 4 kB / 1.038 GB, free: 3.812 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.399e-05/1.14, allocations: 11.62 kB / 1.038 GB, free: 3.805 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.981e-06/1.14, allocations: 3.953 kB / 1.038 GB, free: 3.801 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/1.14, allocations: 3.938 kB / 1.038 GB, free: 3.797 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009537/1.141, allocations: 449.4 kB / 1.038 GB, free: 3.426 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 8.256e-05/1.141, allocations: 108.7 kB / 1.038 GB, free: 3.301 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.742e-05/1.141, allocations: 7.359 kB / 1.038 GB, free: 3.297 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003164/1.142, allocations: 31.92 kB / 1.038 GB, free: 3.266 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002132/1.142, allocations: 68.41 kB / 1.038 GB, free: 3.211 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.087e-05/1.142, allocations: 14.88 kB / 1.038 GB, free: 3.199 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0001398/1.142, allocations: 138.7 kB / 1.038 GB, free: 3.082 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.2e-07/1.142, allocations: 0 / 1.038 GB, free: 3.082 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0006159/1.143, allocations: 68 kB / 1.038 GB, free: 3.016 MB / 0.6511 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.0002698/1.143, allocations: 129.8 kB / 1.039 GB, free: 2.887 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0008957/1.144, allocations: 388.8 kB / 1.039 GB, free: 2.625 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/1.144, allocations: 0 / 1.039 GB, free: 2.625 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0004249/1.145, allocations: 197.3 kB / 1.039 GB, free: 2.492 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003796/1.145, allocations: 35.05 kB / 1.039 GB, free: 2.469 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00149/1.146, allocations: 0.5069 MB / 1.04 GB, free: 2.027 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005148/1.147, allocations: 0.8304 MB / 1.04 GB, free: 1.176 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0004283/1.147, allocations: 63.25 kB / 1.041 GB, free: 1.117 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002094/1.148, allocations: 42.8 kB / 1.041 GB, free: 1.078 MB / 0.6511 GB Notification: Performance of SimCode: time 1.253e-06/1.148, allocations: 0 / 1.041 GB, free: 1.078 MB / 0.6511 GB Notification: Performance of Templates: time 0.01315/1.161, allocations: 3.615 MB / 1.044 GB, free: 13.51 MB / 0.6667 GB