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.0009176/0.0009174, allocations: 103.4 kB / 15.33 MB, free: 0.5039 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.0009392/0.0009392, allocations: 198.6 kB / 16.25 MB, free: 6.625 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.135/1.135, allocations: 205.1 MB / 222.1 MB, free: 4.715 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.328/1.328, allocations: 251.6 MB / 0.5089 GB, free: 3.285 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.001187/0.001187, allocations: 63.91 kB / 0.6217 GB, free: 1.871 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3681/0.3693, allocations: 104.7 MB / 0.724 GB, free: 13.12 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.003004/0.3723, allocations: 2.35 MB / 0.7263 GB, free: 10.75 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.001308/0.3736, allocations: 1.021 MB / 0.7273 GB, free: 9.719 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001326/0.3738, allocations: 11.94 kB / 0.7273 GB, free: 9.707 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.000147/0.3739, allocations: 39.66 kB / 0.7273 GB, free: 9.668 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0001848/0.3741, allocations: 39.72 kB / 0.7274 GB, free: 9.629 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004112/0.3745, allocations: 247.8 kB / 0.7276 GB, free: 9.387 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0004756/0.375, allocations: 0.6246 MB / 0.7282 GB, free: 8.762 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004497/0.3755, allocations: 472.4 kB / 0.7287 GB, free: 8.297 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001834/0.3757, allocations: 215.4 kB / 0.7289 GB, free: 8.086 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001933/0.3759, allocations: 230.9 kB / 0.7291 GB, free: 7.859 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 6.04e-05/0.3759, allocations: 64 kB / 0.7292 GB, free: 7.797 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001122/0.3761, allocations: 83.98 kB / 0.7292 GB, free: 7.715 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001198/0.3762, allocations: 155.6 kB / 0.7294 GB, free: 7.562 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001599/0.3764, allocations: 242.9 kB / 0.7296 GB, free: 7.324 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0004959/0.3769, allocations: 0.7107 MB / 0.7303 GB, free: 6.613 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.3769, allocations: 0 / 0.7303 GB, free: 6.613 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.272e-06/0.3769, allocations: 0 / 0.7303 GB, free: 6.613 MB / 0.545 GB Notification: Performance of Transformations before backend: time 6.572e-06/0.3769, allocations: 0 / 0.7303 GB, free: 6.613 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.0008482/0.3777, allocations: 0.7242 MB / 0.731 GB, free: 5.84 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 2.865e-05/0.3778, allocations: 11.97 kB / 0.731 GB, free: 5.828 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.201e-05/0.3779, allocations: 52.38 kB / 0.7311 GB, free: 5.777 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003165/0.3782, allocations: 345.6 kB / 0.7314 GB, free: 5.402 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.887e-05/0.3782, allocations: 45.69 kB / 0.7315 GB, free: 5.359 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.153e-05/0.3783, allocations: 56.38 kB / 0.7315 GB, free: 5.305 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007816/0.3791, allocations: 0.5738 MB / 0.7321 GB, free: 4.699 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.318e-05/0.3791, allocations: 4 kB / 0.7321 GB, free: 4.695 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.876e-05/0.3791, allocations: 20 kB / 0.7321 GB, free: 4.676 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.675e-05/0.3792, allocations: 17 kB / 0.7321 GB, free: 4.66 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006208/0.3798, allocations: 431.7 kB / 0.7325 GB, free: 4.238 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001796/0.3816, allocations: 1.919 MB / 0.7344 GB, free: 2.238 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004777/0.3821, allocations: 364.8 kB / 0.7347 GB, free: 1.875 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002399/0.3823, allocations: 184.8 kB / 0.7349 GB, free: 1.691 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 4.32e-05/0.3824, allocations: 11.92 kB / 0.7349 GB, free: 1.68 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003189/0.3827, allocations: 218.3 kB / 0.7351 GB, free: 1.453 MB / 0.545 GB Notification: Performance of pre-optimization done (n=46): time 1.844e-06/0.3827, allocations: 4 kB / 0.7351 GB, free: 1.449 MB / 0.545 GB Notification: Performance of matching and sorting (n=46): time 0.0007541/0.3835, allocations: 477.2 kB / 0.7356 GB, free: 0.9766 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.725e-05/0.3835, allocations: 63.16 kB / 0.7357 GB, free: 0.9023 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001669/0.3837, allocations: 241.7 kB / 0.7359 GB, free: 0.6562 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 4.942e-05/0.3838, allocations: 49.7 kB / 0.7359 GB, free: 0.6016 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001108/0.3839, allocations: 224.6 kB / 0.7361 GB, free: 384 kB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 7.837e-05/0.384, allocations: 118.5 kB / 0.7363 GB, free: 264 kB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001461/0.3841, allocations: 150.2 kB / 0.7364 GB, free: 108 kB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001107/0.3842, allocations: 342.7 kB / 0.7367 GB, free: 15.76 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002566/0.3845, allocations: 161.2 kB / 0.7369 GB, free: 15.61 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003016/0.3848, allocations: 288.8 kB / 0.7372 GB, free: 15.27 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004677/0.3853, allocations: 402.4 kB / 0.7375 GB, free: 14.84 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.3853, allocations: 0 / 0.7375 GB, free: 14.84 MB / 0.5606 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0006629/0.386, allocations: 0.5065 MB / 0.738 GB, free: 14.32 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.418e-05/0.386, allocations: 4 kB / 0.738 GB, free: 14.32 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.622e-06/0.386, allocations: 4 kB / 0.738 GB, free: 14.31 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.532e-05/0.386, allocations: 8 kB / 0.7381 GB, free: 14.3 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000212/0.3862, allocations: 59.84 kB / 0.7381 GB, free: 14.25 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.119e-05/0.3863, allocations: 11.94 kB / 0.7381 GB, free: 14.23 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001876/0.3864, allocations: 55.5 kB / 0.7382 GB, free: 14.18 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.773e-05/0.3865, allocations: 24 kB / 0.7382 GB, free: 14.16 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.0001962/0.3867, allocations: 239 kB / 0.7384 GB, free: 13.91 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.524e-05/0.3867, allocations: 23.72 kB / 0.7384 GB, free: 13.89 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000617/0.3874, allocations: 431.4 kB / 0.7389 GB, free: 13.46 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.419e-06/0.3874, allocations: 8 kB / 0.7389 GB, free: 13.46 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.3874, allocations: 4 kB / 0.7389 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.3874, allocations: 0 / 0.7389 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001209/0.3886, allocations: 1.134 MB / 0.74 GB, free: 12.25 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.3886, allocations: 0 / 0.74 GB, free: 12.25 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001363/0.3888, allocations: 35.91 kB / 0.74 GB, free: 12.21 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.04e-06/0.3888, allocations: 11.94 kB / 0.74 GB, free: 12.2 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.29e-05/0.3888, allocations: 8 kB / 0.74 GB, free: 12.19 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.3888, allocations: 0 / 0.74 GB, free: 12.19 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.3888, allocations: 7.984 kB / 0.74 GB, free: 12.18 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005344/0.3893, allocations: 0.4958 MB / 0.7405 GB, free: 11.67 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.687e-05/0.3894, allocations: 108.6 kB / 0.7406 GB, free: 11.55 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.012e-05/0.3895, allocations: 8 kB / 0.7406 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001583/0.3896, allocations: 27.92 kB / 0.7407 GB, free: 11.51 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000121/0.3897, allocations: 64.36 kB / 0.7407 GB, free: 11.45 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.691e-05/0.3898, allocations: 19.98 kB / 0.7407 GB, free: 11.43 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 8.263e-05/0.3899, allocations: 136.5 kB / 0.7409 GB, free: 11.3 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3899, allocations: 3.938 kB / 0.7409 GB, free: 11.29 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.000344/0.3902, allocations: 111.5 kB / 0.741 GB, free: 11.18 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.0001609/0.3904, allocations: 143.2 kB / 0.7411 GB, free: 11.04 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0007651/0.3912, allocations: 473.5 kB / 0.7416 GB, free: 10.57 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.3912, allocations: 4 kB / 0.7416 GB, free: 10.57 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0002751/0.3915, allocations: 219.3 kB / 0.7418 GB, free: 10.36 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000318/0.3918, allocations: 47.98 kB / 0.7418 GB, free: 10.31 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001024/0.3928, allocations: 0.8813 MB / 0.7427 GB, free: 9.402 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000301/0.3931, allocations: 0.8191 MB / 0.7435 GB, free: 8.559 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001814/0.3933, allocations: 63.25 kB / 0.7435 GB, free: 8.496 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001019/0.3934, allocations: 43.42 kB / 0.7436 GB, free: 8.453 MB / 0.5606 GB Notification: Performance of SimCode: time 2.21e-07/0.3934, allocations: 0 / 0.7436 GB, free: 8.453 MB / 0.5606 GB Notification: Performance of Templates: time 0.006567/0.4, allocations: 4.189 MB / 0.7477 GB, free: 4.32 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)