Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_13_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001889/0.001889, allocations: 104.3 kB / 19.72 MB, free: 416 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002058/0.002058, allocations: 213 kB / 23.02 MB, free: 2.949 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.679/1.679, allocations: 230.6 MB / 256.8 MB, free: 9.645 MB / 202.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.x/package.mo): time 3.285/3.285, allocations: 0.5045 GB / 0.8104 GB, free: 2.805 MB / 0.6511 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Buildings_13_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Buildings_13_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.003653/0.003653, allocations: 71.91 kB / 1.177 GB, free: 11.52 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9472/0.9509, allocations: 180 MB / 1.353 GB, free: 1.648 MB / 1.026 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.004383/0.9552, allocations: 2.224 MB / 1.355 GB, free: 15.41 MB / 1.042 GB Notification: Performance of NFInst.instExpressions: time 0.002188/0.9574, allocations: 0.9819 MB / 1.356 GB, free: 14.43 MB / 1.042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002042/0.9576, allocations: 11.94 kB / 1.356 GB, free: 14.41 MB / 1.042 GB Notification: Performance of NFTyping.typeComponents: time 0.0002216/0.9579, allocations: 67.2 kB / 1.356 GB, free: 14.35 MB / 1.042 GB Notification: Performance of NFTyping.typeBindings: time 0.0002587/0.9581, allocations: 51.53 kB / 1.356 GB, free: 14.3 MB / 1.042 GB Notification: Performance of NFTyping.typeClassSections: time 0.000737/0.9589, allocations: 299.5 kB / 1.356 GB, free: 14 MB / 1.042 GB Notification: Performance of NFFlatten.flatten: time 0.0008113/0.9597, allocations: 0.6481 MB / 1.357 GB, free: 13.36 MB / 1.042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006155/0.9603, allocations: 379.7 kB / 1.357 GB, free: 12.98 MB / 1.042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003675/0.9606, allocations: 231.3 kB / 1.358 GB, free: 12.76 MB / 1.042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003361/0.961, allocations: 207 kB / 1.358 GB, free: 12.55 MB / 1.042 GB Notification: Performance of NFPackage.collectConstants: time 0.000102/0.9611, allocations: 68 kB / 1.358 GB, free: 12.49 MB / 1.042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001843/0.9613, allocations: 83.98 kB / 1.358 GB, free: 12.41 MB / 1.042 GB Notification: Performance of NFScalarize.scalarize: time 0.0002031/0.9615, allocations: 151.6 kB / 1.358 GB, free: 12.26 MB / 1.042 GB Notification: Performance of NFVerifyModel.verify: time 0.0002359/0.9617, allocations: 199.1 kB / 1.358 GB, free: 12.06 MB / 1.042 GB Notification: Performance of NFConvertDAE.convert: time 0.0009533/0.9627, allocations: 0.755 MB / 1.359 GB, free: 11.3 MB / 1.042 GB Notification: Performance of FrontEnd - DAE generated: time 5.169e-06/0.9627, allocations: 0 / 1.359 GB, free: 11.3 MB / 1.042 GB Notification: Performance of FrontEnd: time 1.593e-06/0.9627, allocations: 0 / 1.359 GB, free: 11.3 MB / 1.042 GB Notification: Performance of Transformations before backend: time 1.031e-05/0.9627, allocations: 0 / 1.359 GB, free: 11.3 MB / 1.042 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.001271/0.9639, allocations: 0.6843 MB / 1.36 GB, free: 10.58 MB / 1.042 GB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/0.964, allocations: 12.03 kB / 1.36 GB, free: 10.57 MB / 1.042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005238/0.9645, allocations: 84.59 kB / 1.36 GB, free: 10.49 MB / 1.042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004743/0.965, allocations: 282.5 kB / 1.36 GB, free: 10.18 MB / 1.042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.912e-05/0.965, allocations: 45.69 kB / 1.36 GB, free: 10.14 MB / 1.042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.717e-05/0.9651, allocations: 60.38 kB / 1.36 GB, free: 10.08 MB / 1.042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001089/0.9662, allocations: 0.5738 MB / 1.361 GB, free: 9.473 MB / 1.042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.647e-05/0.9662, allocations: 0 / 1.361 GB, free: 9.473 MB / 1.042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.97e-05/0.9663, allocations: 27.92 kB / 1.361 GB, free: 9.445 MB / 1.042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.632e-05/0.9663, allocations: 21 kB / 1.361 GB, free: 9.426 MB / 1.042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008217/0.9671, allocations: 415.7 kB / 1.361 GB, free: 9.02 MB / 1.042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002408/0.9696, allocations: 1.646 MB / 1.363 GB, free: 7.32 MB / 1.042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008343/0.9704, allocations: 372.1 kB / 1.363 GB, free: 6.93 MB / 1.042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003306/0.9707, allocations: 181.6 kB / 1.363 GB, free: 6.746 MB / 1.042 GB Notification: Performance of preOpt evalFunc (simulation): time 5.127e-05/0.9708, allocations: 4 kB / 1.363 GB, free: 6.742 MB / 1.042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004903/0.9713, allocations: 269 kB / 1.364 GB, free: 6.461 MB / 1.042 GB Notification: Performance of pre-optimization done (n=48): time 2.435e-06/0.9713, allocations: 0 / 1.364 GB, free: 6.461 MB / 1.042 GB Notification: Performance of matching and sorting (n=48): time 0.001065/0.9723, allocations: 496.7 kB / 1.364 GB, free: 5.973 MB / 1.042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001059/0.9724, allocations: 118.8 kB / 1.364 GB, free: 5.832 MB / 1.042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002768/0.9727, allocations: 243.7 kB / 1.364 GB, free: 5.586 MB / 1.042 GB Notification: Performance of collectPreVariables (initialization): time 6.269e-05/0.9728, allocations: 45.7 kB / 1.364 GB, free: 5.535 MB / 1.042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001995/0.973, allocations: 221.4 kB / 1.365 GB, free: 5.316 MB / 1.042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001419/0.9731, allocations: 127 kB / 1.365 GB, free: 5.191 MB / 1.042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002181/0.9733, allocations: 138.3 kB / 1.365 GB, free: 5.051 MB / 1.042 GB Notification: Performance of setup shared object (initialization): time 0.0001944/0.9735, allocations: 346.7 kB / 1.365 GB, free: 4.703 MB / 1.042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003327/0.9739, allocations: 165.2 kB / 1.365 GB, free: 4.539 MB / 1.042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004577/0.9743, allocations: 288.7 kB / 1.366 GB, free: 4.211 MB / 1.042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006904/0.975, allocations: 413.2 kB / 1.366 GB, free: 3.758 MB / 1.042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.526e-06/0.975, allocations: 7.938 kB / 1.366 GB, free: 3.75 MB / 1.042 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0009002/0.9759, allocations: 0.5013 MB / 1.367 GB, free: 3.246 MB / 1.042 GB Notification: Performance of prepare postOptimizeDAE: time 2.336e-05/0.9759, allocations: 8 kB / 1.367 GB, free: 3.238 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.9759, allocations: 0 / 1.367 GB, free: 3.238 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.236e-05/0.976, allocations: 8 kB / 1.367 GB, free: 3.23 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002789/0.9762, allocations: 59.84 kB / 1.367 GB, free: 3.172 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.127e-05/0.9763, allocations: 15.92 kB / 1.367 GB, free: 3.156 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00023/0.9765, allocations: 59.66 kB / 1.367 GB, free: 3.098 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.857e-05/0.9765, allocations: 20 kB / 1.367 GB, free: 3.078 MB / 1.042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 59 ($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.t3.t_start,$PRE.con.t3.t_start,con.t4.t_start,$PRE.con.t4.t_start,con.stateGraphRoot.resume,con.stateGraphRoot.suspend,con.t4.enableFire,con.t4.localCondition,con.t3.enableFire,con.t3.localCondition,con.discharge.active,con.discharge.oldActive,$PRE.con.discharge.oldActive,con.discharge.newActive,$PRE.con.discharge.newActive,con.discharge.localActive,$PRE.con.discharge.localActive,con.charge.active,con.charge.oldActive,$PRE.con.charge.oldActive,con.charge.newActive,$PRE.con.charge.newActive,con.charge.localActive,$PRE.con.charge.localActive,con.t2.t_start,$PRE.con.t2.t_start,con.t2.fire,con.t2.enableFire,con.t2.localCondition,con.t1.t_start,$PRE.con.t1.t_start,con.t1.fire,con.t1.enableFire,con.t1.localCondition,con.alternative.split[2].available,con.stateGraphRoot.activeSteps,con.off.oldActive,$PRE.con.off.oldActive,con.off.newActive,$PRE.con.off.newActive,con.off.outPort[1].reset,con.off.inPort[1].set,con.off.localActive,$PRE.con.off.localActive,con.off.active,con.multiSwitch1.firstActiveIndex,con.multiSwitch1.u[2],con.multiSwitch1.u[1],con.greaterThreshold.y,con.not1.y,con.lessThreshold.y,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003093/0.9768, allocations: 235.5 kB / 1.367 GB, free: 2.84 MB / 1.042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.772e-05/0.9769, allocations: 31.81 kB / 1.367 GB, free: 2.809 MB / 1.042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007591/0.9777, allocations: 372.8 kB / 1.367 GB, free: 2.434 MB / 1.042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.224e-06/0.9777, allocations: 11.94 kB / 1.367 GB, free: 2.422 MB / 1.042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.9777, allocations: 0 / 1.367 GB, free: 2.422 MB / 1.042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.9777, allocations: 0 / 1.367 GB, free: 2.422 MB / 1.042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001571/0.9793, allocations: 0.9338 MB / 1.368 GB, free: 1.434 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.9793, allocations: 0 / 1.368 GB, free: 1.434 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001597/0.9794, allocations: 35.92 kB / 1.368 GB, free: 1.398 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.993e-06/0.9794, allocations: 3.984 kB / 1.368 GB, free: 1.395 MB / 1.042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.714e-05/0.9794, allocations: 8 kB / 1.368 GB, free: 1.387 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.27e-06/0.9795, allocations: 4 kB / 1.368 GB, free: 1.383 MB / 1.042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/0.9795, allocations: 3.938 kB / 1.368 GB, free: 1.379 MB / 1.042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007552/0.9802, allocations: 489.9 kB / 1.369 GB, free: 0.8789 MB / 1.042 GB Notification: Performance of postOpt removeConstants (simulation): time 4.041e-05/0.9803, allocations: 35.69 kB / 1.369 GB, free: 0.8438 MB / 1.042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.875e-05/0.9803, allocations: 15.98 kB / 1.369 GB, free: 0.8281 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001779/0.9805, allocations: 19.98 kB / 1.369 GB, free: 0.8086 MB / 1.042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001767/0.9807, allocations: 75.84 kB / 1.369 GB, free: 0.7344 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.834e-05/0.9807, allocations: 11.98 kB / 1.369 GB, free: 0.7227 MB / 1.042 GB Notification: Performance of sorting global known variables: time 0.0001346/0.9808, allocations: 140.2 kB / 1.369 GB, free: 0.5859 MB / 1.042 GB Notification: Performance of sort global known variables: time 7.1e-08/0.9808, allocations: 0 / 1.369 GB, free: 0.5859 MB / 1.042 GB Notification: Performance of remove unused functions: time 0.0004604/0.9813, allocations: 107.7 kB / 1.369 GB, free: 492 kB / 1.042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 38 (con.t4.t_start,con.t3.t_start,con.t2.enableFire,con.t1.enableFire,con.discharge.localActive,con.discharge.active,con.charge.localActive,con.charge.active,con.off.active,$whenCondition2,$whenCondition1,con.lessThreshold.y,con.not1.y,con.greaterThreshold.y,con.multiSwitch1.u[1],con.multiSwitch1.u[2],con.multiSwitch1.firstActiveIndex,con.off.localActive,con.off.inPort[1].set,con.off.outPort[1].reset,con.off.newActive,con.off.oldActive,con.stateGraphRoot.activeSteps,con.alternative.split[2].available,con.t1.localCondition,con.t1.fire,con.t1.t_start,con.t2.localCondition,con.t2.fire,con.t2.t_start,con.charge.newActive,con.charge.oldActive,con.discharge.newActive,con.discharge.oldActive,con.t3.localCondition,con.t3.enableFire,con.t4.localCondition,con.t4.enableFire) * Number of discrete states: 5 (con.off.newActive,con.charge.newActive,con.discharge.newActive,con.t3.t_start,con.t4.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002408/0.9815, allocations: 145.5 kB / 1.369 GB, free: 336 kB / 1.042 GB Notification: Performance of simCode: created initialization part: time 0.0008437/0.9824, allocations: 413.1 kB / 1.37 GB, free: 15.92 MB / 1.057 GB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.9824, allocations: 0.9375 kB / 1.37 GB, free: 15.92 MB / 1.057 GB Notification: Performance of simCode: created simulation system equations: time 0.0005581/0.9829, allocations: 195.8 kB / 1.37 GB, free: 15.73 MB / 1.057 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004281/0.9834, allocations: 45.98 kB / 1.37 GB, free: 15.68 MB / 1.057 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001711/0.9851, allocations: 0.7386 MB / 1.371 GB, free: 14.91 MB / 1.057 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003069/0.9854, allocations: 212.2 kB / 1.371 GB, free: 14.68 MB / 1.057 GB Notification: Performance of simCode: alias equations: time 0.000229/0.9856, allocations: 59.25 kB / 1.371 GB, free: 14.62 MB / 1.057 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001222/0.9857, allocations: 43.42 kB / 1.371 GB, free: 14.58 MB / 1.057 GB Notification: Performance of SimCode: time 1.402e-06/0.9857, allocations: 0 / 1.371 GB, free: 14.58 MB / 1.057 GB Notification: Performance of Templates: time 0.0112/0.9969, allocations: 4.338 MB / 1.375 GB, free: 10.31 MB / 1.057 GB " [Timeout remaining time 299] make -j1 -f Buildings_13_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.makefile [Timeout 300] (rm -f Buildings_13_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; mkfifo Buildings_13_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; head -c 1048576 < Buildings_13_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe >> ../files/Buildings_13_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.sim & ./Buildings_13_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl -abortSlowSimulation -alarm=240 -lv LOG_STATS > Buildings_13_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 10.14260752685368]