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.001223/0.001223, allocations: 86.95 kB / 15.06 MB, free: 1.09 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.001799/0.001799, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.459/1.459, allocations: 205.4 MB / 222.1 MB, free: 5.641 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.52/1.52, allocations: 252 MB / 0.5102 GB, free: 4.781 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.0005129/0.000513, allocations: 16 kB / 0.6243 GB, free: 1.082 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5294/0.5299, allocations: 106.3 MB / 0.7281 GB, free: 11.4 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.00256/0.5325, allocations: 1.914 MB / 0.73 GB, free: 9.477 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.001527/0.534, allocations: 0.9787 MB / 0.731 GB, free: 8.488 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001621/0.5342, allocations: 8 kB / 0.731 GB, free: 8.48 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0001379/0.5344, allocations: 47.59 kB / 0.731 GB, free: 8.434 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0002164/0.5346, allocations: 43.7 kB / 0.7311 GB, free: 8.391 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004202/0.535, allocations: 167.8 kB / 0.7312 GB, free: 8.227 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0005869/0.5356, allocations: 0.5542 MB / 0.7318 GB, free: 7.672 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005038/0.5361, allocations: 344.4 kB / 0.7321 GB, free: 7.332 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001976/0.5363, allocations: 155.4 kB / 0.7322 GB, free: 7.18 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000215/0.5366, allocations: 159.2 kB / 0.7324 GB, free: 7.023 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 4.279e-05/0.5366, allocations: 20 kB / 0.7324 GB, free: 7.004 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 8.981e-05/0.5367, allocations: 31.98 kB / 0.7324 GB, free: 6.973 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001166/0.5368, allocations: 83.67 kB / 0.7325 GB, free: 6.891 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 8.574e-05/0.5369, allocations: 101.5 kB / 0.7326 GB, free: 6.785 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0004589/0.5374, allocations: 0.528 MB / 0.7331 GB, free: 6.258 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.5374, allocations: 0 / 0.7331 GB, free: 6.258 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.423e-06/0.5374, allocations: 0 / 0.7331 GB, free: 6.258 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.129e-05/0.5374, allocations: 0 / 0.7331 GB, free: 6.258 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.001025/0.5385, allocations: 0.6343 MB / 0.7338 GB, free: 5.566 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.769e-05/0.5385, allocations: 8.031 kB / 0.7338 GB, free: 5.559 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.409e-05/0.5386, allocations: 51.39 kB / 0.7338 GB, free: 5.508 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003767/0.539, allocations: 348.4 kB / 0.7341 GB, free: 5.129 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.458e-05/0.539, allocations: 41.31 kB / 0.7342 GB, free: 5.09 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.543e-05/0.5391, allocations: 56 kB / 0.7342 GB, free: 5.035 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009186/0.5401, allocations: 0.5695 MB / 0.7348 GB, free: 4.438 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.721e-05/0.5401, allocations: 4 kB / 0.7348 GB, free: 4.434 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5e-05/0.5401, allocations: 27.92 kB / 0.7348 GB, free: 4.406 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.859e-05/0.5402, allocations: 20.94 kB / 0.7348 GB, free: 4.387 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007997/0.541, allocations: 427.7 kB / 0.7352 GB, free: 3.969 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002302/0.5433, allocations: 1.934 MB / 0.7371 GB, free: 1.957 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005613/0.5439, allocations: 354.2 kB / 0.7375 GB, free: 1.605 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002949/0.5442, allocations: 188.8 kB / 0.7377 GB, free: 1.418 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 5.443e-05/0.5442, allocations: 8 kB / 0.7377 GB, free: 1.41 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003805/0.5446, allocations: 226 kB / 0.7379 GB, free: 1.176 MB / 0.545 GB Notification: Performance of pre-optimization done (n=46): time 1.904e-06/0.5446, allocations: 0 / 0.7379 GB, free: 1.176 MB / 0.545 GB Notification: Performance of matching and sorting (n=46): time 0.0008878/0.5455, allocations: 478.6 kB / 0.7383 GB, free: 0.7031 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.57e-05/0.5456, allocations: 67.14 kB / 0.7384 GB, free: 0.625 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002276/0.5458, allocations: 241.7 kB / 0.7386 GB, free: 388 kB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 5.021e-05/0.5459, allocations: 49.69 kB / 0.7387 GB, free: 332 kB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001536/0.546, allocations: 216.7 kB / 0.7389 GB, free: 112 kB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001148/0.5462, allocations: 114.6 kB / 0.739 GB, free: 15.99 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.371e-05/0.5462, allocations: 12 kB / 0.739 GB, free: 15.98 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001419/0.5464, allocations: 350.8 kB / 0.7393 GB, free: 15.63 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002985/0.5467, allocations: 161.2 kB / 0.7395 GB, free: 15.47 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003687/0.547, allocations: 288.7 kB / 0.7398 GB, free: 15.14 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000307/0.5474, allocations: 170.2 kB / 0.7399 GB, free: 14.98 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.5474, allocations: 7.938 kB / 0.7399 GB, free: 14.97 MB / 0.5606 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0008226/0.5482, allocations: 0.4988 MB / 0.7404 GB, free: 14.47 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.013e-05/0.5482, allocations: 8 kB / 0.7404 GB, free: 14.46 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.5482, allocations: 4 kB / 0.7404 GB, free: 14.46 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.763e-05/0.5483, allocations: 4 kB / 0.7404 GB, free: 14.45 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002665/0.5485, allocations: 67.83 kB / 0.7405 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.696e-05/0.5486, allocations: 7.938 kB / 0.7405 GB, free: 14.38 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002241/0.5488, allocations: 63.61 kB / 0.7406 GB, free: 14.32 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.678e-05/0.5489, allocations: 27.98 kB / 0.7406 GB, free: 14.29 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,$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,$PRE.con.off.localActive,con.off.localActive,con.off.inPort[1].set,con.off.outPort[1].reset,$PRE.con.off.newActive,con.off.newActive,$PRE.con.off.oldActive,con.off.oldActive,con.stateGraphRoot.activeSteps,con.alternative.split[2].available,con.t1.condition,con.t1.enableFire,con.t1.fire,$PRE.con.t1.t_start,con.t1.t_start,con.t2.condition,con.t2.enableFire,con.t2.fire,$PRE.con.t2.t_start,con.t2.t_start,$PRE.con.charge.localActive,con.charge.localActive,$PRE.con.charge.newActive,con.charge.newActive,$PRE.con.charge.oldActive,con.charge.oldActive,con.charge.active,$PRE.con.discharge.localActive,con.discharge.localActive,$PRE.con.discharge.newActive,con.discharge.newActive,$PRE.con.discharge.oldActive,con.discharge.oldActive,con.discharge.active,con.t3.condition,con.t3.enableFire,con.t4.condition,con.t4.enableFire) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002714/0.5491, allocations: 230.8 kB / 0.7408 GB, free: 14.05 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.988e-05/0.5492, allocations: 31.61 kB / 0.7408 GB, free: 14.02 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000803/0.55, allocations: 431.6 kB / 0.7413 GB, free: 13.6 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.227e-06/0.55, allocations: 7.984 kB / 0.7413 GB, free: 13.59 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.55, allocations: 3.938 kB / 0.7413 GB, free: 13.59 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.475e-06/0.55, allocations: 3.984 kB / 0.7413 GB, free: 13.58 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001584/0.5516, allocations: 1.134 MB / 0.7424 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.5516, allocations: 0 / 0.7424 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001548/0.5518, allocations: 31.92 kB / 0.7424 GB, free: 12.35 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.424e-06/0.5518, allocations: 7.984 kB / 0.7424 GB, free: 12.34 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.667e-05/0.5518, allocations: 8 kB / 0.7424 GB, free: 12.33 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.411e-06/0.5519, allocations: 7.953 kB / 0.7424 GB, free: 12.32 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.5519, allocations: 0 / 0.7424 GB, free: 12.32 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006855/0.5526, allocations: 0.4919 MB / 0.7429 GB, free: 11.82 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 6.882e-05/0.5526, allocations: 112.6 kB / 0.743 GB, free: 11.69 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.818e-05/0.5527, allocations: 11.98 kB / 0.743 GB, free: 11.68 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001793/0.5529, allocations: 31.98 kB / 0.7431 GB, free: 11.64 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001647/0.5531, allocations: 68.23 kB / 0.7431 GB, free: 11.58 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.308e-05/0.5531, allocations: 19.98 kB / 0.7432 GB, free: 11.56 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001095/0.5532, allocations: 135.2 kB / 0.7433 GB, free: 11.43 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.01e-07/0.5532, allocations: 0 / 0.7433 GB, free: 11.43 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0004172/0.5536, allocations: 107.6 kB / 0.7434 GB, free: 11.32 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002209/0.5539, allocations: 143.2 kB / 0.7435 GB, free: 11.17 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0007664/0.5546, allocations: 437.5 kB / 0.7439 GB, free: 10.73 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.5547, allocations: 3.938 kB / 0.7439 GB, free: 10.73 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0003349/0.555, allocations: 215.4 kB / 0.7441 GB, free: 10.52 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003774/0.5554, allocations: 51.92 kB / 0.7442 GB, free: 10.47 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001294/0.5567, allocations: 0.8519 MB / 0.745 GB, free: 9.59 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000372/0.5571, allocations: 0.8233 MB / 0.7458 GB, free: 8.738 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001973/0.5573, allocations: 63.25 kB / 0.7459 GB, free: 8.68 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001103/0.5574, allocations: 39.41 kB / 0.7459 GB, free: 8.645 MB / 0.5606 GB Notification: Performance of SimCode: time 3.1e-07/0.5574, allocations: 0 / 0.7459 GB, free: 8.645 MB / 0.5606 GB Notification: Performance of Templates: time 0.00789/0.5653, allocations: 3.753 MB / 0.7496 GB, free: 4.945 MB / 0.5606 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: