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.224/2.224, allocations: 252.6 MB / 265.2 MB, free: 5.715 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.001982/0.001982, allocations: 183.8 kB / 324.5 MB, free: 14.41 MB / 266.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.962/1.962, allocations: 205.4 MB / 0.5754 GB, free: 10.48 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.00115/0.00115, allocations: 98.2 kB / 0.6797 GB, free: 15.71 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.552e-05/3.564e-05, allocations: 7.938 kB / 0.7911 GB, free: 96.59 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2012/0.2012, allocations: 106.2 MB / 0.8949 GB, free: 6.266 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8653/1.067, allocations: 135.7 MB / 1.027 GB, free: 14.92 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000355/1.067, allocations: 96.48 kB / 1.027 GB, free: 14.86 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.03206/1.099, allocations: 8.224 MB / 1.036 GB, free: 7.93 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.373e-06/1.099, allocations: 0 / 1.036 GB, free: 7.93 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 3.441e-05/1.099, allocations: 12 kB / 1.036 GB, free: 7.918 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.001279/1.101, allocations: 0.6166 MB / 1.036 GB, free: 7.289 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.732e-05/1.101, allocations: 8.031 kB / 1.036 GB, free: 7.281 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001526/1.101, allocations: 55.38 kB / 1.036 GB, free: 7.227 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006168/1.101, allocations: 333.6 kB / 1.037 GB, free: 6.918 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.146e-05/1.101, allocations: 50.06 kB / 1.037 GB, free: 6.891 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001204/1.102, allocations: 56.62 kB / 1.037 GB, free: 6.852 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001336/1.103, allocations: 0.5567 MB / 1.037 GB, free: 6.43 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.053e-05/1.103, allocations: 3.938 kB / 1.037 GB, free: 6.426 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.025e-05/1.103, allocations: 21.75 kB / 1.037 GB, free: 6.422 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.339e-05/1.103, allocations: 21 kB / 1.037 GB, free: 6.402 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001057/1.104, allocations: 397.3 kB / 1.038 GB, free: 6.152 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003294/1.107, allocations: 1.905 MB / 1.039 GB, free: 4.562 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008281/1.108, allocations: 348.4 kB / 1.04 GB, free: 4.328 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004129/1.109, allocations: 177.8 kB / 1.04 GB, free: 4.219 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 7.512e-05/1.109, allocations: 12.62 kB / 1.04 GB, free: 4.207 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005106/1.109, allocations: 211.6 kB / 1.04 GB, free: 4.047 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=46): time 4.087e-06/1.109, allocations: 0 / 1.04 GB, free: 4.047 MB / 0.6511 GB Notification: Performance of matching and sorting (n=46): time 0.0009101/1.11, allocations: 338.6 kB / 1.04 GB, free: 3.789 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.665e-05/1.11, allocations: 59.39 kB / 1.041 GB, free: 3.719 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002775/1.111, allocations: 213.2 kB / 1.041 GB, free: 3.543 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 8.186e-05/1.111, allocations: 51.88 kB / 1.041 GB, free: 3.5 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001795/1.111, allocations: 221.5 kB / 1.041 GB, free: 3.305 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001424/1.111, allocations: 123.2 kB / 1.041 GB, free: 3.203 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.701e-05/1.111, allocations: 7.125 kB / 1.041 GB, free: 3.203 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.000149/1.111, allocations: 344.3 kB / 1.041 GB, free: 2.871 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004068/1.112, allocations: 151.7 kB / 1.042 GB, free: 2.781 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005154/1.112, allocations: 278.9 kB / 1.042 GB, free: 2.527 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004068/1.113, allocations: 158.6 kB / 1.042 GB, free: 2.426 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.479e-06/1.113, allocations: 0 / 1.042 GB, free: 2.426 MB / 0.6511 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001143/1.114, allocations: 491.5 kB / 1.042 GB, free: 2.055 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.569e-05/1.114, allocations: 8 kB / 1.042 GB, free: 2.047 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.261e-05/1.114, allocations: 4 kB / 1.042 GB, free: 2.043 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.893e-05/1.114, allocations: 8 kB / 1.042 GB, free: 2.035 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004483/1.114, allocations: 68.05 kB / 1.043 GB, free: 1.973 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.102e-05/1.114, allocations: 15.95 kB / 1.043 GB, free: 1.957 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000377/1.115, allocations: 46 kB / 1.043 GB, free: 1.922 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.971e-05/1.115, allocations: 27.12 kB / 1.043 GB, free: 1.902 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.0002293/1.115, allocations: 167.2 kB / 1.043 GB, free: 1.75 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.693e-05/1.115, allocations: 27.7 kB / 1.043 GB, free: 1.723 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001053/1.116, allocations: 416.1 kB / 1.043 GB, free: 1.43 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.067e-06/1.116, allocations: 4 kB / 1.043 GB, free: 1.426 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/1.116, allocations: 0 / 1.043 GB, free: 1.426 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.395e-05/1.116, allocations: 11.88 kB / 1.043 GB, free: 1.414 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002213/1.119, allocations: 1.04 MB / 1.044 GB, free: 0.5703 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.027e-06/1.119, allocations: 4 kB / 1.044 GB, free: 0.5664 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002795/1.119, allocations: 43.59 kB / 1.044 GB, free: 0.5273 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.959e-06/1.119, allocations: 4 kB / 1.044 GB, free: 0.5234 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.839e-05/1.119, allocations: 11.06 kB / 1.044 GB, free: 0.5195 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.738e-06/1.119, allocations: 0 / 1.044 GB, free: 0.5195 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/1.119, allocations: 4 kB / 1.044 GB, free: 0.5156 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009089/1.12, allocations: 480.8 kB / 1.045 GB, free: 128 kB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 7.976e-05/1.12, allocations: 104.7 kB / 1.045 GB, free: 4 kB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.202e-05/1.12, allocations: 23 kB / 1.045 GB, free: 15.99 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003177/1.12, allocations: 26.55 kB / 1.045 GB, free: 15.97 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002084/1.121, allocations: 65.28 kB / 1.045 GB, free: 15.92 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.549e-05/1.121, allocations: 19.67 kB / 1.045 GB, free: 15.9 MB / 0.6667 GB Notification: Performance of sorting global known variables: time 0.000147/1.121, allocations: 128.6 kB / 1.045 GB, free: 15.79 MB / 0.6667 GB Notification: Performance of sort global known variables: time 3.5e-07/1.121, allocations: 0 / 1.045 GB, free: 15.79 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.0005737/1.122, allocations: 95.8 kB / 1.045 GB, free: 15.71 MB / 0.6667 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.0002675/1.122, allocations: 136.8 kB / 1.045 GB, free: 15.59 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.0009986/1.123, allocations: 415.2 kB / 1.046 GB, free: 15.29 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/1.123, allocations: 0 / 1.046 GB, free: 15.29 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.000483/1.123, allocations: 212.1 kB / 1.046 GB, free: 15.14 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003635/1.124, allocations: 34.8 kB / 1.046 GB, free: 15.12 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001462/1.125, allocations: 0.534 MB / 1.047 GB, free: 14.66 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004957/1.126, allocations: 0.8343 MB / 1.047 GB, free: 13.8 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.0003924/1.126, allocations: 67.23 kB / 1.047 GB, free: 13.73 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002023/1.126, allocations: 42.73 kB / 1.047 GB, free: 13.7 MB / 0.6667 GB Notification: Performance of SimCode: time 6.61e-07/1.126, allocations: 0 / 1.047 GB, free: 13.7 MB / 0.6667 GB Notification: Performance of Templates: time 0.01272/1.139, allocations: 3.74 MB / 1.051 GB, free: 10.01 MB / 0.6667 GB