Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_1.6_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_1.6_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.001281/0.001281, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001682/0.001682, allocations: 193.3 kB / 16.13 MB, free: 6.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.46/1.46, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.949/2.949, allocations: 472.6 MB / 0.7447 GB, free: 5 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001604/0.001604, allocations: 69.09 kB / 0.9114 GB, free: 33.55 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.413/0.4146, allocations: 159.9 MB / 1.068 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.004227/0.4189, allocations: 2.368 MB / 1.07 GB, free: 8.566 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001948/0.4209, allocations: 0.9545 MB / 1.071 GB, free: 7.605 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003985/0.4213, allocations: 8 kB / 1.071 GB, free: 7.598 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0002839/0.4216, allocations: 39.59 kB / 1.071 GB, free: 7.559 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0003625/0.422, allocations: 31.78 kB / 1.071 GB, free: 7.527 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007199/0.4227, allocations: 243.8 kB / 1.071 GB, free: 7.289 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0007988/0.4235, allocations: 0.5816 MB / 1.072 GB, free: 6.707 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007058/0.4243, allocations: 433.6 kB / 1.072 GB, free: 6.277 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003199/0.4246, allocations: 179.3 kB / 1.072 GB, free: 6.102 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003343/0.4249, allocations: 219 kB / 1.072 GB, free: 5.887 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0001078/0.425, allocations: 36 kB / 1.072 GB, free: 5.852 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001631/0.4252, allocations: 51.98 kB / 1.073 GB, free: 5.801 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.000167/0.4254, allocations: 123.6 kB / 1.073 GB, free: 5.68 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002513/0.4256, allocations: 218.8 kB / 1.073 GB, free: 5.465 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0006382/0.4263, allocations: 0.6546 MB / 1.073 GB, free: 4.809 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.4263, allocations: 0 / 1.073 GB, free: 4.809 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.463e-06/0.4263, allocations: 0 / 1.073 GB, free: 4.809 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 2.119e-05/0.4263, allocations: 0 / 1.073 GB, free: 4.809 MB / 0.8262 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.001345/0.4277, allocations: 0.7409 MB / 1.074 GB, free: 4.016 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.602e-05/0.4277, allocations: 11.97 kB / 1.074 GB, free: 4.004 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001365/0.4279, allocations: 48.38 kB / 1.074 GB, free: 3.957 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005078/0.4284, allocations: 340.3 kB / 1.075 GB, free: 3.586 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.898e-05/0.4285, allocations: 49.67 kB / 1.075 GB, free: 3.539 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.674e-05/0.4286, allocations: 56.38 kB / 1.075 GB, free: 3.484 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001223/0.4298, allocations: 0.5816 MB / 1.075 GB, free: 2.871 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.129e-05/0.4298, allocations: 0 / 1.075 GB, free: 2.871 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.484e-05/0.4299, allocations: 23.98 kB / 1.075 GB, free: 2.848 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.991e-05/0.43, allocations: 20.94 kB / 1.075 GB, free: 2.828 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009003/0.4309, allocations: 427.7 kB / 1.076 GB, free: 2.41 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002809/0.4337, allocations: 1.93 MB / 1.078 GB, free: 412 kB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007104/0.4344, allocations: 395.2 kB / 1.078 GB, free: 15.99 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003513/0.4348, allocations: 206.4 kB / 1.078 GB, free: 15.78 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 7.337e-05/0.4349, allocations: 12 kB / 1.078 GB, free: 15.77 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005078/0.4354, allocations: 269 kB / 1.078 GB, free: 15.48 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=48): time 3.808e-06/0.4354, allocations: 0 / 1.078 GB, free: 15.48 MB / 0.8419 GB Notification: Performance of matching and sorting (n=48): time 0.001066/0.4365, allocations: 0.4924 MB / 1.079 GB, free: 14.98 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.38e-05/0.4366, allocations: 114.8 kB / 1.079 GB, free: 14.85 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002611/0.4368, allocations: 234.6 kB / 1.079 GB, free: 14.61 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 6.966e-05/0.4369, allocations: 53.7 kB / 1.079 GB, free: 14.55 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001943/0.4371, allocations: 208.8 kB / 1.079 GB, free: 14.34 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001516/0.4373, allocations: 122.5 kB / 1.08 GB, free: 14.22 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002347/0.4375, allocations: 146.5 kB / 1.08 GB, free: 14.07 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001606/0.4377, allocations: 350.7 kB / 1.08 GB, free: 13.72 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003149/0.438, allocations: 161.2 kB / 1.08 GB, free: 13.57 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000383/0.4384, allocations: 292.7 kB / 1.081 GB, free: 13.23 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006165/0.439, allocations: 410.5 kB / 1.081 GB, free: 12.78 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.847e-06/0.4391, allocations: 7.984 kB / 1.081 GB, free: 12.77 MB / 0.8419 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0008747/0.4399, allocations: 0.5142 MB / 1.081 GB, free: 12.25 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.063e-05/0.44, allocations: 11.88 kB / 1.081 GB, free: 12.24 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.052e-05/0.44, allocations: 4 kB / 1.081 GB, free: 12.23 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.241e-05/0.44, allocations: 8 kB / 1.081 GB, free: 12.23 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002517/0.4403, allocations: 63.83 kB / 1.082 GB, free: 12.16 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.869e-05/0.4403, allocations: 12 kB / 1.082 GB, free: 12.15 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000248/0.4406, allocations: 55.52 kB / 1.082 GB, free: 12.1 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.522e-05/0.4406, allocations: 32.17 kB / 1.082 GB, free: 12.07 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 59 ($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.t3.t_start,$PRE.con.t3.t_start,con.t4.t_start,$PRE.con.t4.t_start,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 (76): * Single equations (assignments): 76 * 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.0002633/0.4409, allocations: 230.9 kB / 1.082 GB, free: 11.83 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.13e-05/0.4409, allocations: 27.7 kB / 1.082 GB, free: 11.8 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007577/0.4417, allocations: 431.3 kB / 1.082 GB, free: 11.37 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.849e-06/0.4417, allocations: 8 kB / 1.082 GB, free: 11.36 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/0.4417, allocations: 3.938 kB / 1.082 GB, free: 11.36 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.143e-06/0.4418, allocations: 3.984 kB / 1.082 GB, free: 11.36 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001605/0.4434, allocations: 1.153 MB / 1.083 GB, free: 10.14 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.4434, allocations: 4 kB / 1.083 GB, free: 10.13 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001575/0.4435, allocations: 39.86 kB / 1.083 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.774e-06/0.4436, allocations: 4 kB / 1.083 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.478e-05/0.4436, allocations: 19.92 kB / 1.083 GB, free: 10.07 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.4436, allocations: 0 / 1.083 GB, free: 10.07 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.4436, allocations: 0 / 1.083 GB, free: 10.07 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007181/0.4443, allocations: 0.5132 MB / 1.084 GB, free: 9.531 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.672e-05/0.4444, allocations: 112.6 kB / 1.084 GB, free: 9.402 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.981e-05/0.4445, allocations: 15.94 kB / 1.084 GB, free: 9.387 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001903/0.4447, allocations: 23.97 kB / 1.084 GB, free: 9.363 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001558/0.4448, allocations: 68.3 kB / 1.084 GB, free: 9.297 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.949e-05/0.4449, allocations: 19.98 kB / 1.084 GB, free: 9.277 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001085/0.445, allocations: 132.9 kB / 1.084 GB, free: 9.148 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.11e-07/0.445, allocations: 4 kB / 1.084 GB, free: 9.145 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004538/0.4455, allocations: 115.6 kB / 1.084 GB, free: 9.031 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 44 (con.t4.t_start,con.t3.t_start,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: 5 (con.off.newActive,con.charge.newActive,con.discharge.newActive,con.t3.t_start,con.t4.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.0002235/0.4457, allocations: 140.8 kB / 1.085 GB, free: 8.887 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0007707/0.4465, allocations: 453.8 kB / 1.085 GB, free: 8.449 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.4465, allocations: 0 / 1.085 GB, free: 8.449 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003609/0.4469, allocations: 230.3 kB / 1.085 GB, free: 8.223 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003858/0.4473, allocations: 48.98 kB / 1.085 GB, free: 8.176 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001392/0.4487, allocations: 0.9065 MB / 1.086 GB, free: 7.23 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003878/0.4491, allocations: 0.8233 MB / 1.087 GB, free: 6.383 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.000225/0.4493, allocations: 63.25 kB / 1.087 GB, free: 6.324 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001239/0.4494, allocations: 39.42 kB / 1.087 GB, free: 6.285 MB / 0.8419 GB Notification: Performance of SimCode: time 4.91e-07/0.4494, allocations: 0 / 1.087 GB, free: 6.285 MB / 0.8419 GB Notification: Performance of Templates: time 0.008842/0.4583, allocations: 4.066 MB / 1.091 GB, free: 2.25 MB / 0.8419 GB make -j1 -f Buildings_1.6_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.makefile (rm -f Buildings_1.6_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; mkfifo Buildings_1.6_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe >> ../files/Buildings_1.6_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.sim & ./Buildings_1.6_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe 2>&1)