Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_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_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 1.751/1.751, allocations: 297.8 MB / 313.7 MB, free: 144 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001048/0.001048, allocations: 183.3 kB / 384.6 MB, free: 10.86 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.552/1.552, allocations: 223.2 MB / 0.6626 GB, free: 4.332 MB / 490.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008232/0.0008232, allocations: 89.77 kB / 0.7808 GB, free: 43.79 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.0005952/0.0005952, allocations: 16 kB / 0.9088 GB, free: 0.6641 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.83/0.8306, allocations: 120.3 MB / 1.026 GB, free: 56.92 MB / 0.698 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2314/1.062, allocations: 145.4 MB / 1.168 GB, free: 12.82 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002741/1.062, allocations: 97.81 kB / 1.168 GB, free: 12.73 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 0.02169/1.084, allocations: 8.394 MB / 1.177 GB, free: 4.355 MB / 0.7448 GB Notification: Performance of FrontEnd: time 3.296e-06/1.084, allocations: 0 / 1.177 GB, free: 4.355 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 3.442e-05/1.084, allocations: 23.98 kB / 1.177 GB, free: 4.332 MB / 0.7448 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.001145/1.085, allocations: 0.6384 MB / 1.177 GB, free: 3.637 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 5.107e-05/1.085, allocations: 8.031 kB / 1.177 GB, free: 3.629 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001179/1.086, allocations: 64.28 kB / 1.177 GB, free: 3.566 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004799/1.086, allocations: 336.4 kB / 1.178 GB, free: 3.195 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.642e-05/1.086, allocations: 45.69 kB / 1.178 GB, free: 3.152 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.646e-05/1.086, allocations: 56.38 kB / 1.178 GB, free: 3.098 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001031/1.087, allocations: 0.5779 MB / 1.178 GB, free: 2.484 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.82e-05/1.087, allocations: 192 / 1.178 GB, free: 2.484 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.446e-05/1.087, allocations: 23.94 kB / 1.178 GB, free: 2.461 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.539e-05/1.087, allocations: 24.94 kB / 1.178 GB, free: 2.438 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008101/1.088, allocations: 417.2 kB / 1.179 GB, free: 2.031 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002658/1.091, allocations: 1.915 MB / 1.181 GB, free: 48 kB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006936/1.092, allocations: 403.8 kB / 1.181 GB, free: 15.62 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003314/1.092, allocations: 202.5 kB / 1.181 GB, free: 15.42 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 6.371e-05/1.092, allocations: 8.625 kB / 1.181 GB, free: 15.41 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000481/1.092, allocations: 269 kB / 1.181 GB, free: 15.12 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=48): time 2.495e-06/1.092, allocations: 0 / 1.181 GB, free: 15.12 MB / 0.7605 GB Notification: Performance of matching and sorting (n=48): time 0.001009/1.093, allocations: 0.492 MB / 1.182 GB, free: 14.63 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001143/1.094, allocations: 123 kB / 1.182 GB, free: 14.48 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002631/1.094, allocations: 239.4 kB / 1.182 GB, free: 14.24 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 6.315e-05/1.094, allocations: 49.7 kB / 1.182 GB, free: 14.19 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001768/1.094, allocations: 208.9 kB / 1.183 GB, free: 13.98 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001226/1.094, allocations: 122.5 kB / 1.183 GB, free: 13.86 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.259e-05/1.094, allocations: 8 kB / 1.183 GB, free: 13.85 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0001876/1.094, allocations: 346.8 kB / 1.183 GB, free: 13.5 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003123/1.095, allocations: 165.2 kB / 1.183 GB, free: 13.34 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004082/1.095, allocations: 289.9 kB / 1.183 GB, free: 13.01 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006291/1.096, allocations: 418.4 kB / 1.184 GB, free: 12.55 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/1.096, allocations: 3.938 kB / 1.184 GB, free: 12.55 MB / 0.7605 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0008997/1.097, allocations: 0.5103 MB / 1.184 GB, free: 12.03 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 2.357e-05/1.097, allocations: 8 kB / 1.184 GB, free: 12.02 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.041e-05/1.097, allocations: 4 kB / 1.184 GB, free: 12.02 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.601e-05/1.097, allocations: 11.98 kB / 1.184 GB, free: 12.01 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002458/1.097, allocations: 59.84 kB / 1.184 GB, free: 11.95 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.706e-05/1.097, allocations: 11.94 kB / 1.184 GB, free: 11.94 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000218/1.097, allocations: 51.97 kB / 1.184 GB, free: 11.89 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.173e-05/1.097, allocations: 24 kB / 1.184 GB, free: 11.86 MB / 0.7605 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,$PRE.con.t3.t_start,con.t3.t_start,$PRE.con.t4.t_start,con.t4.t_start,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 (76): * Single equations (assignments): 76 * 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.0003074/1.098, allocations: 238.8 kB / 1.185 GB, free: 11.62 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.63e-05/1.098, allocations: 23.72 kB / 1.185 GB, free: 11.6 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007873/1.099, allocations: 439.5 kB / 1.185 GB, free: 11.17 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.183e-06/1.099, allocations: 4 kB / 1.185 GB, free: 11.16 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.145e-06/1.099, allocations: 4 kB / 1.185 GB, free: 11.16 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.686e-06/1.099, allocations: 3.984 kB / 1.185 GB, free: 11.16 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001652/1.1, allocations: 1.078 MB / 1.186 GB, free: 10.02 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/1.1, allocations: 0 / 1.186 GB, free: 10.02 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000148/1.1, allocations: 35.92 kB / 1.186 GB, free: 9.984 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.867e-06/1.101, allocations: 4 kB / 1.186 GB, free: 9.98 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.936e-05/1.101, allocations: 15.92 kB / 1.186 GB, free: 9.965 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.62e-06/1.101, allocations: 11.94 kB / 1.186 GB, free: 9.953 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/1.101, allocations: 0 / 1.186 GB, free: 9.953 MB / 0.7605 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000714/1.101, allocations: 0.5208 MB / 1.187 GB, free: 9.414 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 7.654e-05/1.101, allocations: 100.7 kB / 1.187 GB, free: 9.297 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.716e-05/1.101, allocations: 16 kB / 1.187 GB, free: 9.281 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001911/1.102, allocations: 35.91 kB / 1.187 GB, free: 9.246 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001701/1.102, allocations: 68.34 kB / 1.187 GB, free: 9.18 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.76e-05/1.102, allocations: 19.98 kB / 1.187 GB, free: 9.16 MB / 0.7605 GB Notification: Performance of sorting global known variables: time 0.000164/1.102, allocations: 132.3 kB / 1.187 GB, free: 9.031 MB / 0.7605 GB Notification: Performance of sort global known variables: time 1.2e-07/1.102, allocations: 0 / 1.187 GB, free: 9.031 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.0005418/1.103, allocations: 99.92 kB / 1.187 GB, free: 8.934 MB / 0.7605 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.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: 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 (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.0003662/1.103, allocations: 143.6 kB / 1.187 GB, free: 8.785 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.0009739/1.104, allocations: 453.8 kB / 1.188 GB, free: 8.336 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/1.104, allocations: 0 / 1.188 GB, free: 8.336 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.0004642/1.104, allocations: 230.4 kB / 1.188 GB, free: 8.113 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004898/1.105, allocations: 44.73 kB / 1.188 GB, free: 8.07 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001844/1.107, allocations: 0.8615 MB / 1.189 GB, free: 7.172 MB / 0.7605 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006384/1.107, allocations: 0.8272 MB / 1.19 GB, free: 6.32 MB / 0.7605 GB Notification: Performance of simCode: alias equations: time 0.000292/1.108, allocations: 71.22 kB / 1.19 GB, free: 6.25 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001279/1.108, allocations: 43.42 kB / 1.19 GB, free: 6.207 MB / 0.7605 GB Notification: Performance of SimCode: time 3.91e-07/1.108, allocations: 0 / 1.19 GB, free: 6.207 MB / 0.7605 GB Notification: Performance of Templates: time 0.009149/1.117, allocations: 3.806 MB / 1.194 GB, free: 2.457 MB / 0.7605 GB make -j1 -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.makefile (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.sim & ./Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe 2>&1)