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/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) 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) 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/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.323/1.323, allocations: 252 MB / 267.9 MB, free: 10.92 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001044/0.001044, allocations: 183.8 kB / 327.6 MB, free: 2.133 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.676/1.676, allocations: 205.4 MB / 0.5785 GB, free: 20.2 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007885/0.0007885, allocations: 98.41 kB / 0.6831 GB, free: 12.81 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000354/0.000354, allocations: 16.03 kB / 0.7974 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1914/0.1918, allocations: 106.3 MB / 0.9012 GB, free: 63.66 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1833/0.3751, allocations: 136 MB / 1.034 GB, free: 7.492 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002276/0.3754, allocations: 91.94 kB / 1.034 GB, free: 7.402 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01988/0.3953, allocations: 8.273 MB / 1.042 GB, free: 15.07 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.495e-06/0.3953, allocations: 3.844 kB / 1.042 GB, free: 15.07 MB / 0.698 GB Notification: Performance of Transformations before backend: time 3.023e-05/0.3953, allocations: 12 kB / 1.042 GB, free: 15.05 MB / 0.698 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.001133/0.3965, allocations: 0.6368 MB / 1.043 GB, free: 14.36 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/0.3965, allocations: 12.03 kB / 1.043 GB, free: 14.35 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001489/0.3967, allocations: 56.25 kB / 1.043 GB, free: 14.3 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004626/0.3972, allocations: 340.4 kB / 1.043 GB, free: 13.92 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.515e-05/0.3972, allocations: 45.69 kB / 1.043 GB, free: 13.88 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.431e-05/0.3973, allocations: 52.38 kB / 1.043 GB, free: 13.82 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009414/0.3983, allocations: 0.5701 MB / 1.044 GB, free: 13.23 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.729e-05/0.3983, allocations: 192 / 1.044 GB, free: 13.23 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.517e-05/0.3983, allocations: 23.94 kB / 1.044 GB, free: 13.2 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.21e-05/0.3984, allocations: 21 kB / 1.044 GB, free: 13.18 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007651/0.3992, allocations: 423.7 kB / 1.044 GB, free: 12.77 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002286/0.4015, allocations: 1.907 MB / 1.046 GB, free: 10.79 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005619/0.402, allocations: 365.1 kB / 1.047 GB, free: 10.42 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002833/0.4023, allocations: 192.7 kB / 1.047 GB, free: 10.23 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 4.983e-05/0.4024, allocations: 4 kB / 1.047 GB, free: 10.23 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003635/0.4028, allocations: 226.2 kB / 1.047 GB, free: 9.992 MB / 0.698 GB Notification: Performance of pre-optimization done (n=46): time 2.224e-06/0.4028, allocations: 0 / 1.047 GB, free: 9.992 MB / 0.698 GB Notification: Performance of matching and sorting (n=46): time 0.0008541/0.4036, allocations: 485.2 kB / 1.047 GB, free: 9.512 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.715e-05/0.4037, allocations: 67.16 kB / 1.047 GB, free: 9.434 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002078/0.4039, allocations: 237.5 kB / 1.048 GB, free: 9.191 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 5.136e-05/0.404, allocations: 45.7 kB / 1.048 GB, free: 9.141 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001508/0.4041, allocations: 229.2 kB / 1.048 GB, free: 8.914 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 9.662e-05/0.4042, allocations: 106.7 kB / 1.048 GB, free: 8.809 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.228e-05/0.4043, allocations: 16 kB / 1.048 GB, free: 8.793 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.000135/0.4044, allocations: 342.8 kB / 1.048 GB, free: 8.449 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002978/0.4047, allocations: 161.2 kB / 1.049 GB, free: 8.293 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003695/0.4051, allocations: 296.7 kB / 1.049 GB, free: 7.953 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005591/0.4057, allocations: 394.5 kB / 1.049 GB, free: 7.516 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.4057, allocations: 0 / 1.049 GB, free: 7.516 MB / 0.698 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0007919/0.4065, allocations: 0.5023 MB / 1.05 GB, free: 7.008 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.002e-05/0.4065, allocations: 8 kB / 1.05 GB, free: 7 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.978e-06/0.4065, allocations: 4 kB / 1.05 GB, free: 6.996 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.829e-05/0.4065, allocations: 8 kB / 1.05 GB, free: 6.988 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002343/0.4068, allocations: 64.25 kB / 1.05 GB, free: 6.926 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.477e-05/0.4068, allocations: 15.98 kB / 1.05 GB, free: 6.91 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002201/0.407, allocations: 39.83 kB / 1.05 GB, free: 6.871 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.711e-05/0.4071, allocations: 28 kB / 1.05 GB, free: 6.844 MB / 0.698 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.greaterEqualThreshold.y,con.and1.u1,con.and1.u2,con.and1.y,con.and2.u2,con.and2.y,con.lessEqualThreshold.y,con.multiSwitch1.u[1],con.multiSwitch1.u[2],con.multiSwitch1.firstActiveIndex,$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.off.active,con.stateGraphRoot.activeSteps,con.alternative.split[2].available,con.t1.enableFire,con.t1.fire,$PRE.con.t1.t_start,con.t1.t_start,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.enableFire,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.0002536/0.4074, allocations: 234.8 kB / 1.05 GB, free: 6.605 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.035e-05/0.4074, allocations: 27.72 kB / 1.05 GB, free: 6.578 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007454/0.4082, allocations: 431.4 kB / 1.051 GB, free: 6.152 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.192e-06/0.4082, allocations: 4 kB / 1.051 GB, free: 6.148 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.4082, allocations: 0 / 1.051 GB, free: 6.148 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.257e-05/0.4082, allocations: 19.91 kB / 1.051 GB, free: 6.129 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001447/0.4097, allocations: 1.058 MB / 1.052 GB, free: 5.016 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.4097, allocations: 0 / 1.052 GB, free: 5.016 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000148/0.4098, allocations: 43.91 kB / 1.052 GB, free: 4.973 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.802e-06/0.4098, allocations: 4 kB / 1.052 GB, free: 4.969 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.748e-05/0.4099, allocations: 11.94 kB / 1.052 GB, free: 4.957 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.188e-06/0.4099, allocations: 4 kB / 1.052 GB, free: 4.953 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.4099, allocations: 0 / 1.052 GB, free: 4.953 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006346/0.4105, allocations: 499.7 kB / 1.052 GB, free: 4.445 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 6.025e-05/0.4106, allocations: 108.7 kB / 1.052 GB, free: 4.32 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.914e-05/0.4107, allocations: 15.94 kB / 1.052 GB, free: 4.305 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001687/0.4108, allocations: 27.98 kB / 1.052 GB, free: 4.277 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001461/0.411, allocations: 64.34 kB / 1.052 GB, free: 4.215 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.518e-05/0.411, allocations: 19.98 kB / 1.052 GB, free: 4.195 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001124/0.4112, allocations: 140.2 kB / 1.052 GB, free: 4.059 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4112, allocations: 0 / 1.052 GB, free: 4.059 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0004035/0.4116, allocations: 95.94 kB / 1.053 GB, free: 3.965 MB / 0.698 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.greaterEqualThreshold.y,con.and1.u1,con.and1.u2,con.and1.y,con.and2.u2,con.and2.y,con.lessEqualThreshold.y,con.multiSwitch1.u[1],con.multiSwitch1.u[2],con.multiSwitch1.firstActiveIndex,con.off.inPort[1].set,con.off.outPort[1].reset,con.off.newActive,con.off.oldActive,con.off.active,con.stateGraphRoot.activeSteps,con.alternative.split[2].available,con.t1.fire,con.t1.t_start,con.t2.fire,con.t2.t_start,con.charge.newActive,con.charge.oldActive,con.discharge.newActive,con.discharge.oldActive,con.t3.enableFire,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.0002094/0.4118, allocations: 139.2 kB / 1.053 GB, free: 3.82 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0006942/0.4125, allocations: 442 kB / 1.053 GB, free: 3.391 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.4125, allocations: 4 kB / 1.053 GB, free: 3.387 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0003076/0.4128, allocations: 210.4 kB / 1.053 GB, free: 3.18 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003533/0.4132, allocations: 51.19 kB / 1.053 GB, free: 3.133 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00126/0.4145, allocations: 0.8525 MB / 1.054 GB, free: 2.254 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003866/0.4149, allocations: 0.8194 MB / 1.055 GB, free: 1.406 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0002125/0.4151, allocations: 67.25 kB / 1.055 GB, free: 1.34 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001097/0.4152, allocations: 47.36 kB / 1.055 GB, free: 1.293 MB / 0.698 GB Notification: Performance of SimCode: time 2.21e-07/0.4152, allocations: 0 / 1.055 GB, free: 1.293 MB / 0.698 GB Notification: Performance of Templates: time 0.374/0.7892, allocations: 3.748 MB / 1.059 GB, free: 147.8 MB / 0.698 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)