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.005422/0.005422, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.001184/0.001184, allocations: 194.7 kB / 16.67 MB, free: 5.52 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.5 MB, free: 12.25 MB / 190.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.228/1.228, allocations: 251.7 MB / 0.5094 GB, free: 420 kB / 430.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.001391/0.001391, allocations: 79.89 kB / 0.7258 GB, free: 4.684 MB / 0.5606 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4732/0.4746, allocations: 104.7 MB / 0.828 GB, free: 2.609 MB / 0.6231 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.003536/0.4782, allocations: 2.267 MB / 0.8302 GB, free: 332 kB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.001776/0.48, allocations: 1.002 MB / 0.8312 GB, free: 15.31 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002648/0.4803, allocations: 11.94 kB / 0.8312 GB, free: 15.3 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.0002238/0.4805, allocations: 59.34 kB / 0.8313 GB, free: 15.24 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.0003039/0.4809, allocations: 47.47 kB / 0.8313 GB, free: 15.2 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006523/0.4815, allocations: 283.6 kB / 0.8316 GB, free: 14.92 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.0007134/0.4823, allocations: 0.6364 MB / 0.8322 GB, free: 14.28 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006329/0.4829, allocations: 475.9 kB / 0.8327 GB, free: 13.82 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000313/0.4832, allocations: 215.3 kB / 0.8329 GB, free: 13.61 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000339/0.4836, allocations: 231 kB / 0.8331 GB, free: 13.38 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0001149/0.4837, allocations: 64 kB / 0.8332 GB, free: 13.32 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001383/0.4838, allocations: 83.98 kB / 0.8332 GB, free: 13.23 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.000167/0.484, allocations: 147.6 kB / 0.8334 GB, free: 13.09 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.0002532/0.4843, allocations: 250.8 kB / 0.8336 GB, free: 12.84 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.0006869/0.485, allocations: 0.7359 MB / 0.8343 GB, free: 12.11 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.485, allocations: 0 / 0.8343 GB, free: 12.11 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.393e-06/0.485, allocations: 0 / 0.8343 GB, free: 12.11 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 1.685e-05/0.485, allocations: 0 / 0.8343 GB, free: 12.11 MB / 0.6387 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.001228/0.4862, allocations: 0.7304 MB / 0.835 GB, free: 11.33 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 3.282e-05/0.4863, allocations: 8.031 kB / 0.8351 GB, free: 11.32 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001148/0.4864, allocations: 52.38 kB / 0.8351 GB, free: 11.27 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003816/0.4868, allocations: 344.2 kB / 0.8354 GB, free: 10.9 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.118e-05/0.4868, allocations: 45.69 kB / 0.8355 GB, free: 10.86 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.353e-05/0.4869, allocations: 52.38 kB / 0.8355 GB, free: 10.8 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008615/0.4878, allocations: 0.5777 MB / 0.8361 GB, free: 10.19 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.62e-05/0.4878, allocations: 0 / 0.8361 GB, free: 10.19 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.106e-05/0.4879, allocations: 23.94 kB / 0.8361 GB, free: 10.17 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.639e-05/0.4879, allocations: 28.92 kB / 0.8361 GB, free: 10.14 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006737/0.4886, allocations: 419.7 kB / 0.8365 GB, free: 9.73 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002004/0.4906, allocations: 1.911 MB / 0.8384 GB, free: 7.742 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000523/0.4911, allocations: 359.2 kB / 0.8387 GB, free: 7.387 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002857/0.4914, allocations: 180.8 kB / 0.8389 GB, free: 7.207 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 5.531e-05/0.4915, allocations: 15.98 kB / 0.8389 GB, free: 7.191 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003388/0.4918, allocations: 214.3 kB / 0.8391 GB, free: 6.969 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=46): time 1.813e-06/0.4919, allocations: 4 kB / 0.8391 GB, free: 6.965 MB / 0.6387 GB Notification: Performance of matching and sorting (n=46): time 0.0008408/0.4927, allocations: 489.1 kB / 0.8396 GB, free: 6.48 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.245e-05/0.4928, allocations: 59.16 kB / 0.8397 GB, free: 6.41 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000204/0.493, allocations: 241.5 kB / 0.8399 GB, free: 6.16 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 4.77e-05/0.493, allocations: 49.69 kB / 0.8399 GB, free: 6.105 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001467/0.4932, allocations: 224.6 kB / 0.8402 GB, free: 5.879 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 9.099e-05/0.4933, allocations: 114.5 kB / 0.8403 GB, free: 5.766 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000178/0.4935, allocations: 142.2 kB / 0.8404 GB, free: 5.621 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001453/0.4936, allocations: 346.7 kB / 0.8407 GB, free: 5.273 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002845/0.4939, allocations: 165.2 kB / 0.8409 GB, free: 5.113 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003581/0.4943, allocations: 292.7 kB / 0.8412 GB, free: 4.777 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005645/0.4948, allocations: 398.5 kB / 0.8416 GB, free: 4.344 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.069e-06/0.4949, allocations: 4 kB / 0.8416 GB, free: 4.34 MB / 0.6387 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.000801/0.4957, allocations: 0.5026 MB / 0.842 GB, free: 3.832 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 1.731e-05/0.4957, allocations: 12.06 kB / 0.8421 GB, free: 3.82 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.4957, allocations: 4 kB / 0.8421 GB, free: 3.816 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.894e-05/0.4957, allocations: 8 kB / 0.8421 GB, free: 3.809 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002172/0.496, allocations: 63.83 kB / 0.8421 GB, free: 3.746 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.006e-05/0.496, allocations: 4 kB / 0.8421 GB, free: 3.742 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002109/0.4962, allocations: 55.52 kB / 0.8422 GB, free: 3.688 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.626e-05/0.4962, allocations: 31.98 kB / 0.8422 GB, free: 3.656 MB / 0.6387 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.0002305/0.4965, allocations: 234.8 kB / 0.8424 GB, free: 3.418 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.884e-05/0.4965, allocations: 23.72 kB / 0.8425 GB, free: 3.395 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007105/0.4972, allocations: 431.4 kB / 0.8429 GB, free: 2.969 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.341e-06/0.4973, allocations: 4 kB / 0.8429 GB, free: 2.965 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.4973, allocations: 0 / 0.8429 GB, free: 2.965 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.4973, allocations: 3.984 kB / 0.8429 GB, free: 2.961 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001456/0.4987, allocations: 1.121 MB / 0.844 GB, free: 1.773 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.4988, allocations: 0 / 0.844 GB, free: 1.773 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001437/0.4989, allocations: 39.84 kB / 0.844 GB, free: 1.734 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.643e-06/0.4989, allocations: 7.938 kB / 0.844 GB, free: 1.727 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.529e-05/0.499, allocations: 11.98 kB / 0.844 GB, free: 1.715 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.108e-06/0.499, allocations: 4 kB / 0.844 GB, free: 1.711 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.499, allocations: 3.938 kB / 0.844 GB, free: 1.707 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006577/0.4996, allocations: 0.4969 MB / 0.8445 GB, free: 1.195 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 6.578e-05/0.4997, allocations: 108.6 kB / 0.8446 GB, free: 1.07 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.878e-05/0.4998, allocations: 12 kB / 0.8446 GB, free: 1.059 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001577/0.4999, allocations: 19.97 kB / 0.8447 GB, free: 1.039 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001413/0.5001, allocations: 68.36 kB / 0.8447 GB, free: 0.9727 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.009e-05/0.5001, allocations: 12 kB / 0.8447 GB, free: 0.9609 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.0001089/0.5002, allocations: 140.2 kB / 0.8449 GB, free: 0.8242 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5002, allocations: 7.938 kB / 0.8449 GB, free: 0.8164 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.0004112/0.5006, allocations: 107.6 kB / 0.845 GB, free: 0.7109 MB / 0.6387 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.0002208/0.5009, allocations: 144.2 kB / 0.8451 GB, free: 0.5625 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.0007403/0.5016, allocations: 438.1 kB / 0.8455 GB, free: 144 kB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.5016, allocations: 0 / 0.8455 GB, free: 144 kB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.000349/0.502, allocations: 222.3 kB / 0.8458 GB, free: 15.92 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003443/0.5023, allocations: 39.97 kB / 0.8458 GB, free: 15.88 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001253/0.5036, allocations: 0.7325 MB / 0.8465 GB, free: 15.12 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004138/0.504, allocations: 0.8268 MB / 0.8473 GB, free: 14.27 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0001777/0.5042, allocations: 63.25 kB / 0.8474 GB, free: 14.21 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001085/0.5043, allocations: 43.42 kB / 0.8474 GB, free: 14.16 MB / 0.6544 GB Notification: Performance of SimCode: time 2.2e-07/0.5043, allocations: 0 / 0.8474 GB, free: 14.16 MB / 0.6544 GB Notification: Performance of Templates: time 0.00848/0.5128, allocations: 4.407 MB / 0.8517 GB, free: 9.812 MB / 0.6544 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)