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.0009561/0.0009564, allocations: 91.38 kB / 15.36 MB, free: 0.7383 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.006715/0.006715, allocations: 169 kB / 16.26 MB, free: 6.613 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.507/1.507, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.088/3.088, allocations: 473.4 MB / 0.7469 GB, free: 6.133 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003752/0.0003754, allocations: 9.25 kB / 0.9158 GB, free: 33.2 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4026/0.403, allocations: 162.2 MB / 1.074 GB, free: 7.59 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.002878/0.4059, allocations: 1.988 MB / 1.076 GB, free: 5.59 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00172/0.4076, allocations: 0.9427 MB / 1.077 GB, free: 4.641 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000171/0.4078, allocations: 11.94 kB / 1.077 GB, free: 4.629 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001795/0.408, allocations: 39.66 kB / 1.077 GB, free: 4.59 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002346/0.4083, allocations: 35.78 kB / 1.077 GB, free: 4.555 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005195/0.4088, allocations: 243.7 kB / 1.077 GB, free: 4.316 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.000568/0.4094, allocations: 0.5739 MB / 1.078 GB, free: 3.742 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005379/0.4099, allocations: 400.5 kB / 1.078 GB, free: 3.344 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002173/0.4101, allocations: 151.3 kB / 1.078 GB, free: 3.195 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002323/0.4104, allocations: 167 kB / 1.079 GB, free: 3.031 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.762e-05/0.4104, allocations: 20 kB / 1.079 GB, free: 3.012 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001031/0.4106, allocations: 39.98 kB / 1.079 GB, free: 2.973 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001532/0.4107, allocations: 103.5 kB / 1.079 GB, free: 2.871 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001916/0.4109, allocations: 216.6 kB / 1.079 GB, free: 2.652 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005765/0.4115, allocations: 0.6348 MB / 1.08 GB, free: 2.016 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.4115, allocations: 0 / 1.08 GB, free: 2.016 MB / 0.8262 GB Notification: Performance of FrontEnd: time 3.116e-06/0.4115, allocations: 0 / 1.08 GB, free: 2.016 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.875e-06/0.4115, allocations: 0 / 1.08 GB, free: 2.016 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.001127/0.4127, allocations: 0.6278 MB / 1.08 GB, free: 1.336 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.899e-05/0.4127, allocations: 15.97 kB / 1.08 GB, free: 1.32 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001046/0.4128, allocations: 52.36 kB / 1.08 GB, free: 1.27 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004178/0.4133, allocations: 348.2 kB / 1.081 GB, free: 0.8906 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.324e-05/0.4133, allocations: 41.69 kB / 1.081 GB, free: 0.8516 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.82e-05/0.4134, allocations: 56.38 kB / 1.081 GB, free: 0.7969 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009438/0.4144, allocations: 0.5855 MB / 1.081 GB, free: 184 kB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.438e-05/0.4144, allocations: 0 / 1.081 GB, free: 184 kB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.998e-05/0.4145, allocations: 20 kB / 1.081 GB, free: 164 kB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.424e-05/0.4145, allocations: 24.94 kB / 1.081 GB, free: 140 kB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007538/0.4153, allocations: 431.7 kB / 1.082 GB, free: 15.71 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002307/0.4176, allocations: 1.934 MB / 1.084 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006098/0.4182, allocations: 404.7 kB / 1.084 GB, free: 13.28 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003082/0.4185, allocations: 202.5 kB / 1.084 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 6.609e-05/0.4186, allocations: 11.98 kB / 1.084 GB, free: 13.06 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004343/0.419, allocations: 269.1 kB / 1.084 GB, free: 12.77 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=48): time 2.215e-06/0.419, allocations: 7.875 kB / 1.084 GB, free: 12.77 MB / 0.8419 GB Notification: Performance of matching and sorting (n=48): time 0.0009418/0.42, allocations: 0.5005 MB / 1.085 GB, free: 12.26 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.208e-05/0.4201, allocations: 114.8 kB / 1.085 GB, free: 12.12 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002205/0.4203, allocations: 230.6 kB / 1.085 GB, free: 11.89 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 5.988e-05/0.4204, allocations: 49.69 kB / 1.085 GB, free: 11.84 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.00015/0.4205, allocations: 212.8 kB / 1.085 GB, free: 11.62 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 9.982e-05/0.4206, allocations: 126.4 kB / 1.086 GB, free: 11.5 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001058/0.4207, allocations: 93.66 kB / 1.086 GB, free: 11.4 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001296/0.4209, allocations: 346.8 kB / 1.086 GB, free: 11.05 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002933/0.4212, allocations: 173.2 kB / 1.086 GB, free: 10.89 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000372/0.4216, allocations: 296.7 kB / 1.086 GB, free: 10.55 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005822/0.4222, allocations: 414.5 kB / 1.087 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.4222, allocations: 0 / 1.087 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0008337/0.423, allocations: 0.518 MB / 1.087 GB, free: 9.566 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.101e-05/0.423, allocations: 9.094 kB / 1.087 GB, free: 9.559 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/0.423, allocations: 4 kB / 1.087 GB, free: 9.555 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.146e-05/0.4231, allocations: 4 kB / 1.087 GB, free: 9.551 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002526/0.4233, allocations: 71.83 kB / 1.087 GB, free: 9.48 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.368e-05/0.4234, allocations: 4 kB / 1.087 GB, free: 9.477 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002341/0.4236, allocations: 67.86 kB / 1.088 GB, free: 9.41 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.524e-05/0.4236, allocations: 23.98 kB / 1.088 GB, free: 9.387 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.0002766/0.4239, allocations: 234.8 kB / 1.088 GB, free: 9.145 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.88e-05/0.424, allocations: 31.62 kB / 1.088 GB, free: 9.113 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007423/0.4247, allocations: 435.5 kB / 1.088 GB, free: 8.684 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.465e-05/0.4248, allocations: 11.98 kB / 1.088 GB, free: 8.672 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.782e-06/0.4248, allocations: 3.938 kB / 1.088 GB, free: 8.668 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.787e-06/0.4248, allocations: 3.984 kB / 1.088 GB, free: 8.664 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001524/0.4263, allocations: 1.157 MB / 1.089 GB, free: 7.438 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.4263, allocations: 0 / 1.089 GB, free: 7.438 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000145/0.4265, allocations: 39.91 kB / 1.089 GB, free: 7.398 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/0.4265, allocations: 4 kB / 1.089 GB, free: 7.395 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.24e-05/0.4265, allocations: 19.92 kB / 1.089 GB, free: 7.375 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.549e-06/0.4265, allocations: 4 kB / 1.089 GB, free: 7.371 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.4265, allocations: 0 / 1.089 GB, free: 7.371 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006945/0.4272, allocations: 0.5287 MB / 1.09 GB, free: 6.82 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.359e-05/0.4273, allocations: 104.7 kB / 1.09 GB, free: 6.699 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.128e-05/0.4274, allocations: 15.94 kB / 1.09 GB, free: 6.684 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001855/0.4276, allocations: 27.97 kB / 1.09 GB, free: 6.656 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001507/0.4277, allocations: 68.36 kB / 1.09 GB, free: 6.59 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.253e-05/0.4278, allocations: 16 kB / 1.09 GB, free: 6.574 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001071/0.4279, allocations: 144.7 kB / 1.09 GB, free: 6.434 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4279, allocations: 0 / 1.09 GB, free: 6.434 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004424/0.4283, allocations: 115.5 kB / 1.09 GB, free: 6.32 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.00023/0.4286, allocations: 139.2 kB / 1.091 GB, free: 6.176 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0007374/0.4293, allocations: 453.5 kB / 1.091 GB, free: 5.738 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.4293, allocations: 0 / 1.091 GB, free: 5.738 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003587/0.4297, allocations: 238.3 kB / 1.091 GB, free: 5.504 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004029/0.4301, allocations: 60.91 kB / 1.091 GB, free: 5.445 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001308/0.4314, allocations: 0.9044 MB / 1.092 GB, free: 4.504 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003771/0.4318, allocations: 0.8271 MB / 1.093 GB, free: 3.648 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001881/0.432, allocations: 63.25 kB / 1.093 GB, free: 3.59 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001161/0.4321, allocations: 43.42 kB / 1.093 GB, free: 3.547 MB / 0.8419 GB Notification: Performance of SimCode: time 3.4e-07/0.4321, allocations: 0 / 1.093 GB, free: 3.547 MB / 0.8419 GB Notification: Performance of Templates: time 0.008289/0.4404, allocations: 4.011 MB / 1.097 GB, free: 15.57 MB / 0.8575 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)