Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009149/0.000915, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009136/0.0009136, allocations: 195.9 kB / 16.14 MB, free: 6.703 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.147/1.147, allocations: 205.1 MB / 222 MB, free: 4.988 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.319/1.319, allocations: 251.7 MB / 0.5088 GB, free: 3.359 MB / 414.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001158/0.001158, allocations: 63.92 kB / 0.6216 GB, free: 1.98 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.353/0.3542, allocations: 104.7 MB / 0.7238 GB, free: 13.19 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.003354/0.3576, allocations: 2.357 MB / 0.7261 GB, free: 10.81 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.00152/0.3591, allocations: 1.021 MB / 0.7271 GB, free: 9.781 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002074/0.3594, allocations: 11.94 kB / 0.7271 GB, free: 9.77 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0001765/0.3596, allocations: 35.66 kB / 0.7271 GB, free: 9.734 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0002173/0.3598, allocations: 35.72 kB / 0.7272 GB, free: 9.699 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.000436/0.3602, allocations: 251.7 kB / 0.7274 GB, free: 9.453 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0005872/0.3608, allocations: 0.57 MB / 0.728 GB, free: 8.883 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005353/0.3614, allocations: 429.7 kB / 0.7284 GB, free: 8.457 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002286/0.3616, allocations: 171.4 kB / 0.7286 GB, free: 8.289 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002434/0.3619, allocations: 215 kB / 0.7288 GB, free: 8.078 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 6.953e-05/0.362, allocations: 36 kB / 0.7288 GB, free: 8.043 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000103/0.3621, allocations: 51.92 kB / 0.7288 GB, free: 7.992 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001261/0.3622, allocations: 111.6 kB / 0.7289 GB, free: 7.883 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001806/0.3624, allocations: 214.9 kB / 0.7292 GB, free: 7.672 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0004838/0.3629, allocations: 0.6523 MB / 0.7298 GB, free: 7.02 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.317e-06/0.3629, allocations: 4 kB / 0.7298 GB, free: 7.016 MB / 0.545 GB Notification: Performance of FrontEnd: time 9.92e-07/0.3629, allocations: 4 kB / 0.7298 GB, free: 7.012 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.605e-05/0.3629, allocations: 0 / 0.7298 GB, free: 7.012 MB / 0.545 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.001126/0.364, allocations: 0.7242 MB / 0.7305 GB, free: 6.238 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.228e-05/0.3641, allocations: 8.031 kB / 0.7305 GB, free: 6.23 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.932e-05/0.3642, allocations: 48.38 kB / 0.7306 GB, free: 6.184 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003499/0.3645, allocations: 353.6 kB / 0.7309 GB, free: 5.801 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.687e-05/0.3646, allocations: 45.69 kB / 0.7309 GB, free: 5.758 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.589e-05/0.3647, allocations: 60.31 kB / 0.731 GB, free: 5.699 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008443/0.3655, allocations: 0.5699 MB / 0.7316 GB, free: 5.102 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.38e-05/0.3655, allocations: 3.938 kB / 0.7316 GB, free: 5.098 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.045e-05/0.3656, allocations: 27.94 kB / 0.7316 GB, free: 5.07 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.925e-05/0.3656, allocations: 24.98 kB / 0.7316 GB, free: 5.043 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006715/0.3663, allocations: 419.7 kB / 0.732 GB, free: 4.637 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002/0.3683, allocations: 1.926 MB / 0.7339 GB, free: 2.625 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005264/0.3688, allocations: 356.8 kB / 0.7342 GB, free: 2.27 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002613/0.3691, allocations: 180.8 kB / 0.7344 GB, free: 2.09 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 4.542e-05/0.3692, allocations: 11.98 kB / 0.7344 GB, free: 2.078 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000339/0.3695, allocations: 222.2 kB / 0.7346 GB, free: 1.848 MB / 0.545 GB Notification: Performance of pre-optimization done (n=46): time 1.814e-06/0.3695, allocations: 0 / 0.7346 GB, free: 1.848 MB / 0.545 GB Notification: Performance of matching and sorting (n=46): time 0.0008181/0.3704, allocations: 477.2 kB / 0.7351 GB, free: 1.375 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.001e-05/0.3704, allocations: 63.16 kB / 0.7351 GB, free: 1.301 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001934/0.3706, allocations: 245.7 kB / 0.7354 GB, free: 1.051 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 4.601e-05/0.3707, allocations: 45.7 kB / 0.7354 GB, free: 1 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001312/0.3708, allocations: 224.7 kB / 0.7356 GB, free: 0.7773 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 9.044e-05/0.3709, allocations: 110.5 kB / 0.7357 GB, free: 0.668 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001592/0.3711, allocations: 146.2 kB / 0.7359 GB, free: 0.5195 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001156/0.3712, allocations: 350.7 kB / 0.7362 GB, free: 172 kB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002643/0.3715, allocations: 161.2 kB / 0.7364 GB, free: 12 kB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003341/0.3718, allocations: 296.8 kB / 0.7366 GB, free: 15.67 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004987/0.3723, allocations: 394.5 kB / 0.737 GB, free: 15.24 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.3723, allocations: 4 kB / 0.737 GB, free: 15.23 MB / 0.5606 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0007171/0.373, allocations: 0.5022 MB / 0.7375 GB, free: 14.72 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/0.3731, allocations: 8 kB / 0.7375 GB, free: 14.71 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.3731, allocations: 4.469 kB / 0.7375 GB, free: 14.71 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.562e-05/0.3731, allocations: 8 kB / 0.7375 GB, free: 14.7 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000229/0.3733, allocations: 59.84 kB / 0.7376 GB, free: 14.64 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.077e-05/0.3734, allocations: 11.98 kB / 0.7376 GB, free: 14.63 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001994/0.3736, allocations: 59.52 kB / 0.7377 GB, free: 14.57 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.917e-05/0.3736, allocations: 24 kB / 0.7377 GB, free: 14.55 MB / 0.5606 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,con.t4.enableFire,con.t4.condition,con.t3.enableFire,con.t3.condition,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.condition,con.t1.t_start,$PRE.con.t1.t_start,con.t1.fire,con.t1.enableFire,con.t1.condition,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 (74): * Single equations (assignments): 74 * 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.0002093/0.3738, allocations: 234.8 kB / 0.7379 GB, free: 14.31 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.703e-05/0.3739, allocations: 23.72 kB / 0.7379 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006554/0.3745, allocations: 431.4 kB / 0.7383 GB, free: 13.87 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.3745, allocations: 11.88 kB / 0.7384 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.3745, allocations: 4 kB / 0.7384 GB, free: 13.85 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.922e-06/0.3746, allocations: 3.984 kB / 0.7384 GB, free: 13.85 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001308/0.3759, allocations: 1.134 MB / 0.7395 GB, free: 12.64 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.3759, allocations: 0 / 0.7395 GB, free: 12.64 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001409/0.376, allocations: 39.91 kB / 0.7395 GB, free: 12.61 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/0.376, allocations: 3.938 kB / 0.7395 GB, free: 12.6 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.838e-05/0.3761, allocations: 15.98 kB / 0.7395 GB, free: 12.59 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.459e-06/0.3761, allocations: 4 kB / 0.7395 GB, free: 12.58 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.3761, allocations: 4 kB / 0.7395 GB, free: 12.58 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000573/0.3767, allocations: 491.8 kB / 0.74 GB, free: 12.08 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.679e-05/0.3767, allocations: 112.6 kB / 0.7401 GB, free: 11.95 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.947e-05/0.3768, allocations: 8 kB / 0.7401 GB, free: 11.95 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000166/0.3769, allocations: 23.97 kB / 0.7401 GB, free: 11.92 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001316/0.3771, allocations: 64.36 kB / 0.7402 GB, free: 11.86 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.791e-05/0.3771, allocations: 20 kB / 0.7402 GB, free: 11.84 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 8.512e-05/0.3772, allocations: 132.5 kB / 0.7404 GB, free: 11.71 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3772, allocations: 3.938 kB / 0.7404 GB, free: 11.71 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003629/0.3776, allocations: 115.5 kB / 0.7405 GB, free: 11.59 MB / 0.5606 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.lessThreshold.y,con.not1.y,con.greaterThreshold.y,con.multiSwitch1.u[1],con.multiSwitch1.u[2],con.multiSwitch1.firstActiveIndex,con.off.active,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.condition,con.t1.fire,con.t1.t_start,con.t2.condition,con.t2.fire,con.t2.t_start,con.charge.newActive,con.charge.oldActive,con.discharge.newActive,con.discharge.oldActive,con.t3.condition,con.t3.enableFire,con.t4.condition,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 (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.0001595/0.3777, allocations: 140.7 kB / 0.7406 GB, free: 11.45 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0006027/0.3784, allocations: 441.5 kB / 0.741 GB, free: 11.01 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.3784, allocations: 0 / 0.741 GB, free: 11.01 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0002903/0.3787, allocations: 222.4 kB / 0.7412 GB, free: 10.8 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003224/0.379, allocations: 40.92 kB / 0.7413 GB, free: 10.76 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001077/0.3801, allocations: 0.886 MB / 0.7421 GB, free: 9.848 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002921/0.3804, allocations: 0.8349 MB / 0.743 GB, free: 8.988 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001814/0.3806, allocations: 63.25 kB / 0.743 GB, free: 8.93 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001043/0.3807, allocations: 39.42 kB / 0.743 GB, free: 8.891 MB / 0.5606 GB Notification: Performance of SimCode: time 2.4e-07/0.3807, allocations: 0 / 0.743 GB, free: 8.891 MB / 0.5606 GB Notification: Performance of Templates: time 0.006518/0.3872, allocations: 3.996 MB / 0.747 GB, free: 4.949 MB / 0.5606 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.makefile (rm -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.sim & ./Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe 2>&1)