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.001245/0.001245, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001189/0.001189, allocations: 197.1 kB / 16.54 MB, free: 6.672 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.188/1.188, allocations: 205.1 MB / 222.4 MB, free: 4.605 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.348/1.348, allocations: 251.7 MB / 0.5092 GB, free: 3.113 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.001271/0.001271, allocations: 71.91 kB / 0.6223 GB, free: 1.492 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3655/0.3668, allocations: 104.7 MB / 0.7245 GB, free: 12.92 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.003239/0.3701, allocations: 2.25 MB / 0.7267 GB, free: 10.65 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.001387/0.3715, allocations: 1.01 MB / 0.7277 GB, free: 9.633 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001338/0.3716, allocations: 11.94 kB / 0.7277 GB, free: 9.621 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0001552/0.3718, allocations: 63.28 kB / 0.7278 GB, free: 9.559 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0001937/0.372, allocations: 47.47 kB / 0.7278 GB, free: 9.512 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004429/0.3724, allocations: 287.6 kB / 0.7281 GB, free: 9.23 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0005298/0.373, allocations: 0.6247 MB / 0.7287 GB, free: 8.605 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004791/0.3735, allocations: 460.5 kB / 0.7291 GB, free: 8.152 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002166/0.3737, allocations: 219.3 kB / 0.7294 GB, free: 7.938 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002189/0.3739, allocations: 223 kB / 0.7296 GB, free: 7.719 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 7.072e-05/0.374, allocations: 68 kB / 0.7296 GB, free: 7.652 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001111/0.3741, allocations: 83.92 kB / 0.7297 GB, free: 7.57 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.000137/0.3742, allocations: 143.6 kB / 0.7298 GB, free: 7.43 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001892/0.3744, allocations: 258.7 kB / 0.7301 GB, free: 7.176 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0005373/0.375, allocations: 0.6991 MB / 0.7308 GB, free: 6.477 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.375, allocations: 4 kB / 0.7308 GB, free: 6.473 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.493e-06/0.375, allocations: 0 / 0.7308 GB, free: 6.473 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.131e-05/0.375, allocations: 0 / 0.7308 GB, free: 6.473 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.0009512/0.376, allocations: 0.7242 MB / 0.7315 GB, free: 5.699 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 2.81e-05/0.376, allocations: 12.03 kB / 0.7315 GB, free: 5.688 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.892e-05/0.3761, allocations: 60.34 kB / 0.7316 GB, free: 5.629 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003285/0.3764, allocations: 344.1 kB / 0.7319 GB, free: 5.254 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.035e-05/0.3765, allocations: 49.69 kB / 0.7319 GB, free: 5.207 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.17e-05/0.3766, allocations: 52.38 kB / 0.732 GB, free: 5.156 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007838/0.3774, allocations: 0.5816 MB / 0.7326 GB, free: 4.543 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.271e-05/0.3774, allocations: 4 kB / 0.7326 GB, free: 4.539 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.565e-05/0.3774, allocations: 20 kB / 0.7326 GB, free: 4.52 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.836e-05/0.3775, allocations: 24.98 kB / 0.7326 GB, free: 4.496 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000651/0.3781, allocations: 423.7 kB / 0.733 GB, free: 4.082 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001893/0.38, allocations: 1.922 MB / 0.7349 GB, free: 2.078 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005166/0.3805, allocations: 361.6 kB / 0.7352 GB, free: 1.719 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002604/0.3808, allocations: 184.8 kB / 0.7354 GB, free: 1.535 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 4.263e-05/0.3809, allocations: 7.984 kB / 0.7354 GB, free: 1.527 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003323/0.3812, allocations: 222.3 kB / 0.7356 GB, free: 1.297 MB / 0.545 GB Notification: Performance of pre-optimization done (n=46): time 1.713e-06/0.3812, allocations: 0 / 0.7356 GB, free: 1.297 MB / 0.545 GB Notification: Performance of matching and sorting (n=46): time 0.0007937/0.382, allocations: 477.2 kB / 0.7361 GB, free: 0.8242 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.282e-05/0.3821, allocations: 67.16 kB / 0.7361 GB, free: 0.7461 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001819/0.3823, allocations: 241.7 kB / 0.7364 GB, free: 0.5 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 4.608e-05/0.3823, allocations: 53.69 kB / 0.7364 GB, free: 452 kB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001259/0.3824, allocations: 212.7 kB / 0.7366 GB, free: 232 kB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 8.588e-05/0.3825, allocations: 114.5 kB / 0.7367 GB, free: 116 kB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001601/0.3827, allocations: 146.2 kB / 0.7369 GB, free: 15.96 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001193/0.3828, allocations: 346.7 kB / 0.7372 GB, free: 15.62 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002585/0.3831, allocations: 161.2 kB / 0.7374 GB, free: 15.46 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003358/0.3834, allocations: 284.8 kB / 0.7376 GB, free: 15.13 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005032/0.3839, allocations: 402.4 kB / 0.738 GB, free: 14.7 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.384, allocations: 4 kB / 0.738 GB, free: 14.69 MB / 0.5606 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0007083/0.3847, allocations: 0.5023 MB / 0.7385 GB, free: 14.18 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.368e-05/0.3847, allocations: 8.406 kB / 0.7385 GB, free: 14.17 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.795e-06/0.3847, allocations: 8 kB / 0.7385 GB, free: 14.16 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.652e-05/0.3847, allocations: 8 kB / 0.7385 GB, free: 14.16 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002141/0.3849, allocations: 67.72 kB / 0.7386 GB, free: 14.09 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.187e-05/0.385, allocations: 11.98 kB / 0.7386 GB, free: 14.08 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001933/0.3852, allocations: 55.52 kB / 0.7387 GB, free: 14.02 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.859e-05/0.3852, allocations: 27.98 kB / 0.7387 GB, free: 14 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.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 (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.0002112/0.3854, allocations: 230.8 kB / 0.7389 GB, free: 13.76 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.793e-05/0.3855, allocations: 23.72 kB / 0.7389 GB, free: 13.74 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006819/0.3862, allocations: 431.5 kB / 0.7393 GB, free: 13.31 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/0.3862, allocations: 8 kB / 0.7393 GB, free: 13.3 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.3862, allocations: 0 / 0.7393 GB, free: 13.3 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.384e-06/0.3862, allocations: 3.984 kB / 0.7394 GB, free: 13.3 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001315/0.3875, allocations: 1.126 MB / 0.7404 GB, free: 12.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.3875, allocations: 0 / 0.7404 GB, free: 12.1 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000136/0.3877, allocations: 35.91 kB / 0.7405 GB, free: 12.07 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.312e-06/0.3877, allocations: 7.938 kB / 0.7405 GB, free: 12.06 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.312e-05/0.3877, allocations: 11.98 kB / 0.7405 GB, free: 12.05 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.3877, allocations: 4 kB / 0.7405 GB, free: 12.04 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.3877, allocations: 7.984 kB / 0.7405 GB, free: 12.04 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005979/0.3883, allocations: 499.8 kB / 0.741 GB, free: 11.53 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.04e-05/0.3884, allocations: 112.5 kB / 0.7411 GB, free: 11.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4e-05/0.3884, allocations: 12 kB / 0.7411 GB, free: 11.39 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001654/0.3886, allocations: 19.97 kB / 0.7411 GB, free: 11.37 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001308/0.3887, allocations: 64.36 kB / 0.7412 GB, free: 11.31 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.674e-05/0.3888, allocations: 20 kB / 0.7412 GB, free: 11.29 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 8.77e-05/0.3889, allocations: 136.5 kB / 0.7413 GB, free: 11.16 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3889, allocations: 0 / 0.7413 GB, free: 11.16 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003533/0.3892, allocations: 107.6 kB / 0.7414 GB, free: 11.05 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.localActive,con.discharge.active,con.charge.localActive,con.charge.active,con.off.active,$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.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: 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.0001676/0.3894, allocations: 143.2 kB / 0.7416 GB, free: 10.9 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0008141/0.3902, allocations: 481.4 kB / 0.742 GB, free: 10.43 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.3902, allocations: 0 / 0.742 GB, free: 10.43 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0002934/0.3905, allocations: 218.4 kB / 0.7422 GB, free: 10.22 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003258/0.3909, allocations: 48.84 kB / 0.7423 GB, free: 10.17 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000987/0.3919, allocations: 0.7445 MB / 0.743 GB, free: 9.402 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003292/0.3922, allocations: 0.823 MB / 0.7438 GB, free: 8.551 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001848/0.3924, allocations: 67.23 kB / 0.7439 GB, free: 8.484 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.739e-05/0.3925, allocations: 43.42 kB / 0.7439 GB, free: 8.441 MB / 0.5606 GB Notification: Performance of SimCode: time 2.4e-07/0.3925, allocations: 0 / 0.7439 GB, free: 8.441 MB / 0.5606 GB Notification: Performance of Templates: time 0.007383/0.3999, allocations: 4.349 MB / 0.7482 GB, free: 4.148 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)