Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_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_3.0.0_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_3.0.0_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.001288/0.001288, allocations: 115.3 kB / 15.34 MB, free: 0.5117 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.001487/0.001488, allocations: 195.2 kB / 16.25 MB, free: 6.629 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.431/1.431, allocations: 222.9 MB / 239.9 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.853/2.853, allocations: 472.6 MB / 0.7448 GB, free: 4.922 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001232/0.001232, allocations: 65.17 kB / 0.9115 GB, free: 33.54 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3402/0.3414, allocations: 159.9 MB / 1.068 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.003656/0.3451, allocations: 2.358 MB / 1.07 GB, free: 8.43 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001576/0.3467, allocations: 0.9505 MB / 1.071 GB, free: 7.473 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001445/0.3469, allocations: 8 kB / 1.071 GB, free: 7.465 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001805/0.3471, allocations: 39.59 kB / 1.071 GB, free: 7.426 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002298/0.3473, allocations: 35.78 kB / 1.071 GB, free: 7.391 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005209/0.3479, allocations: 251.8 kB / 1.071 GB, free: 7.145 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.00058/0.3485, allocations: 0.6363 MB / 1.072 GB, free: 6.508 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005475/0.349, allocations: 472.4 kB / 1.072 GB, free: 6.039 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002522/0.3493, allocations: 223.3 kB / 1.073 GB, free: 5.82 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002734/0.3496, allocations: 231 kB / 1.073 GB, free: 5.594 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 8.663e-05/0.3496, allocations: 68 kB / 1.073 GB, free: 5.527 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001476/0.3498, allocations: 83.98 kB / 1.073 GB, free: 5.445 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.000179/0.35, allocations: 155.6 kB / 1.073 GB, free: 5.293 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002445/0.3503, allocations: 242.9 kB / 1.073 GB, free: 5.055 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0007625/0.351, allocations: 0.7208 MB / 1.074 GB, free: 4.332 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 8.846e-06/0.351, allocations: 3.938 kB / 1.074 GB, free: 4.328 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.544e-06/0.3511, allocations: 0 / 1.074 GB, free: 4.328 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.182e-05/0.3511, allocations: 0 / 1.074 GB, free: 4.328 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.001357/0.3524, allocations: 0.733 MB / 1.075 GB, free: 3.547 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.438e-05/0.3525, allocations: 8.031 kB / 1.075 GB, free: 3.539 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001145/0.3526, allocations: 52.38 kB / 1.075 GB, free: 3.488 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004836/0.3531, allocations: 348.2 kB / 1.075 GB, free: 3.109 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.311e-05/0.3532, allocations: 45.67 kB / 1.075 GB, free: 3.066 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.538e-05/0.3533, allocations: 64.38 kB / 1.075 GB, free: 3.004 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001059/0.3543, allocations: 0.5777 MB / 1.076 GB, free: 2.391 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.983e-05/0.3544, allocations: 4 kB / 1.076 GB, free: 2.387 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.493e-05/0.3544, allocations: 20 kB / 1.076 GB, free: 2.367 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.956e-05/0.3545, allocations: 21 kB / 1.076 GB, free: 2.348 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007748/0.3553, allocations: 423.7 kB / 1.076 GB, free: 1.934 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002598/0.3579, allocations: 1.923 MB / 1.078 GB, free: 15.93 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006896/0.3586, allocations: 404.2 kB / 1.078 GB, free: 15.51 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003132/0.3589, allocations: 202.4 kB / 1.079 GB, free: 15.3 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 6.829e-05/0.359, allocations: 15.89 kB / 1.079 GB, free: 15.29 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004634/0.3594, allocations: 269 kB / 1.079 GB, free: 15 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=48): time 1.813e-06/0.3595, allocations: 0 / 1.079 GB, free: 15 MB / 0.8419 GB Notification: Performance of matching and sorting (n=48): time 0.001028/0.3605, allocations: 0.4925 MB / 1.079 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.862e-05/0.3606, allocations: 119 kB / 1.08 GB, free: 14.36 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002544/0.3609, allocations: 239.2 kB / 1.08 GB, free: 14.12 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 6.107e-05/0.3609, allocations: 49.69 kB / 1.08 GB, free: 14.07 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.000191/0.3611, allocations: 216.8 kB / 1.08 GB, free: 13.85 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001125/0.3613, allocations: 114.5 kB / 1.08 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002057/0.3615, allocations: 146.3 kB / 1.08 GB, free: 13.59 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001815/0.3617, allocations: 342.8 kB / 1.081 GB, free: 13.24 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002994/0.362, allocations: 165.2 kB / 1.081 GB, free: 13.08 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004214/0.3624, allocations: 292.8 kB / 1.081 GB, free: 12.75 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006265/0.363, allocations: 418.4 kB / 1.081 GB, free: 12.29 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.363, allocations: 0 / 1.081 GB, free: 12.29 MB / 0.8419 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0008162/0.3639, allocations: 0.5178 MB / 1.082 GB, free: 11.76 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.475e-05/0.3639, allocations: 8 kB / 1.082 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.126e-05/0.3639, allocations: 4 kB / 1.082 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.528e-05/0.3639, allocations: 4.469 kB / 1.082 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002576/0.3642, allocations: 71.78 kB / 1.082 GB, free: 11.68 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.303e-05/0.3642, allocations: 4 kB / 1.082 GB, free: 11.67 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002273/0.3645, allocations: 59.5 kB / 1.082 GB, free: 11.61 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.245e-05/0.3645, allocations: 24 kB / 1.082 GB, free: 11.59 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.0003198/0.3649, allocations: 234.9 kB / 1.082 GB, free: 11.35 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.374e-05/0.3649, allocations: 27.72 kB / 1.082 GB, free: 11.32 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007874/0.3657, allocations: 439.3 kB / 1.083 GB, free: 10.89 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.813e-06/0.3657, allocations: 4 kB / 1.083 GB, free: 10.88 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.345e-06/0.3657, allocations: 0 / 1.083 GB, free: 10.88 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.217e-05/0.3658, allocations: 7.984 kB / 1.083 GB, free: 10.88 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001633/0.3674, allocations: 1.141 MB / 1.084 GB, free: 9.668 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.899e-06/0.3674, allocations: 0 / 1.084 GB, free: 9.668 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001537/0.3676, allocations: 43.84 kB / 1.084 GB, free: 9.625 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.52e-06/0.3676, allocations: 4 kB / 1.084 GB, free: 9.621 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.604e-05/0.3676, allocations: 15.92 kB / 1.084 GB, free: 9.605 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.717e-06/0.3676, allocations: 7.922 kB / 1.084 GB, free: 9.598 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.3677, allocations: 8 kB / 1.084 GB, free: 9.59 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007419/0.3684, allocations: 0.5054 MB / 1.084 GB, free: 9.059 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 7.011e-05/0.3685, allocations: 112.6 kB / 1.085 GB, free: 8.93 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.612e-05/0.3685, allocations: 19.92 kB / 1.085 GB, free: 8.91 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001799/0.3687, allocations: 19.98 kB / 1.085 GB, free: 8.891 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000185/0.3689, allocations: 72.36 kB / 1.085 GB, free: 8.82 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.271e-05/0.369, allocations: 23.92 kB / 1.085 GB, free: 8.797 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001109/0.3691, allocations: 132.3 kB / 1.085 GB, free: 8.668 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3691, allocations: 3.938 kB / 1.085 GB, free: 8.664 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004484/0.3695, allocations: 115.6 kB / 1.085 GB, free: 8.551 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.0002748/0.3698, allocations: 139.2 kB / 1.085 GB, free: 8.41 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001018/0.3708, allocations: 493.4 kB / 1.086 GB, free: 7.934 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.093e-06/0.3709, allocations: 0 / 1.086 GB, free: 7.934 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003673/0.3712, allocations: 231.3 kB / 1.086 GB, free: 7.703 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004173/0.3717, allocations: 49.92 kB / 1.086 GB, free: 7.656 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001481/0.3732, allocations: 0.9024 MB / 1.087 GB, free: 6.723 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004783/0.3736, allocations: 0.823 MB / 1.087 GB, free: 5.875 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002174/0.3739, allocations: 67.23 kB / 1.088 GB, free: 5.809 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001311/0.374, allocations: 43.42 kB / 1.088 GB, free: 5.766 MB / 0.8419 GB Notification: Performance of SimCode: time 5e-07/0.374, allocations: 0 / 1.088 GB, free: 5.766 MB / 0.8419 GB Notification: Performance of Templates: time 0.008627/0.3826, allocations: 4.244 MB / 1.092 GB, free: 1.551 MB / 0.8419 GB make -j1 -f Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.makefile (rm -f Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; mkfifo Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe >> ../files/Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.sim & ./Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe 2>&1)