Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|con.SOC|con.y|con.isDay.y",fileNamePrefix="Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|con.SOC|con.y|con.isDay.y",fileNamePrefix="Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.138/2.138, allocations: 390.3 MB / 405.3 MB, free: 13.49 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001038/0.001038, allocations: 173.1 kB / 498.1 MB, free: 5.742 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.38/1.38, allocations: 223.2 MB / 0.7948 GB, free: 17.94 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009078/0.0009077, allocations: 88.33 kB / 0.9346 GB, free: 6.219 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004055/0.0004058, allocations: 13.38 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2533/0.2537, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1798/0.4336, allocations: 153.4 MB / 1.373 GB, free: 8.648 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002502/0.4339, allocations: 99.88 kB / 1.373 GB, free: 8.551 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.0203/0.4542, allocations: 8.406 MB / 1.381 GB, free: 84 kB / 0.8698 GB Notification: Performance of FrontEnd: time 1.723e-06/0.4542, allocations: 0 / 1.381 GB, free: 84 kB / 0.8698 GB Notification: Performance of Transformations before backend: time 2.613e-05/0.4543, allocations: 16 kB / 1.381 GB, free: 68 kB / 0.8698 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.0009616/0.4552, allocations: 0.6382 MB / 1.382 GB, free: 15.38 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.189e-05/0.4553, allocations: 12.03 kB / 1.382 GB, free: 15.36 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.811e-05/0.4554, allocations: 51.44 kB / 1.382 GB, free: 15.31 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004175/0.4558, allocations: 334 kB / 1.382 GB, free: 14.95 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.38e-05/0.4559, allocations: 45.31 kB / 1.382 GB, free: 14.9 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.692e-05/0.456, allocations: 56.33 kB / 1.382 GB, free: 14.84 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009062/0.4569, allocations: 0.5773 MB / 1.383 GB, free: 14.24 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.515e-05/0.4569, allocations: 0 / 1.383 GB, free: 14.24 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.727e-05/0.457, allocations: 20 kB / 1.383 GB, free: 14.22 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.982e-05/0.457, allocations: 20.98 kB / 1.383 GB, free: 14.2 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000713/0.4577, allocations: 423.7 kB / 1.383 GB, free: 13.79 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002234/0.46, allocations: 1.911 MB / 1.385 GB, free: 11.8 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005939/0.4606, allocations: 393.5 kB / 1.385 GB, free: 11.38 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 5.546e-05/0.4606, allocations: 8.625 kB / 1.385 GB, free: 11.38 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004152/0.4611, allocations: 269.1 kB / 1.386 GB, free: 11.09 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=48): time 1.873e-06/0.4611, allocations: 0 / 1.386 GB, free: 11.09 MB / 0.8855 GB Notification: Performance of matching and sorting (n=48): time 0.000911/0.462, allocations: 0.4914 MB / 1.386 GB, free: 10.59 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.908e-05/0.4621, allocations: 122.8 kB / 1.386 GB, free: 10.45 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001863/0.4623, allocations: 221.9 kB / 1.386 GB, free: 10.23 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 6.145e-05/0.4624, allocations: 49.95 kB / 1.386 GB, free: 10.17 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001305/0.4625, allocations: 208.9 kB / 1.387 GB, free: 9.965 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 8.989e-05/0.4626, allocations: 118.5 kB / 1.387 GB, free: 9.848 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.409e-05/0.4626, allocations: 12 kB / 1.387 GB, free: 9.836 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001157/0.4627, allocations: 342.8 kB / 1.387 GB, free: 9.492 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002875/0.463, allocations: 169.2 kB / 1.387 GB, free: 9.324 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003413/0.4634, allocations: 292.7 kB / 1.388 GB, free: 8.988 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002849/0.4637, allocations: 174.1 kB / 1.388 GB, free: 8.82 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.4637, allocations: 4 kB / 1.388 GB, free: 8.816 MB / 0.8855 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0007676/0.4645, allocations: 0.5061 MB / 1.388 GB, free: 8.301 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.015e-05/0.4645, allocations: 8.469 kB / 1.388 GB, free: 8.293 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.427e-06/0.4645, allocations: 8 kB / 1.388 GB, free: 8.285 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.115e-05/0.4645, allocations: 8 kB / 1.388 GB, free: 8.277 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002384/0.4648, allocations: 67.83 kB / 1.388 GB, free: 8.211 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.817e-05/0.4648, allocations: 15.92 kB / 1.388 GB, free: 8.195 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002153/0.465, allocations: 51.7 kB / 1.388 GB, free: 8.145 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.767e-05/0.4651, allocations: 28 kB / 1.388 GB, free: 8.117 MB / 0.8855 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.0002601/0.4654, allocations: 230.9 kB / 1.389 GB, free: 7.883 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.48e-05/0.4654, allocations: 31.62 kB / 1.389 GB, free: 7.852 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000718/0.4661, allocations: 427.5 kB / 1.389 GB, free: 7.43 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.634e-06/0.4661, allocations: 4 kB / 1.389 GB, free: 7.426 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.4662, allocations: 4 kB / 1.389 GB, free: 7.422 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.436e-06/0.4662, allocations: 3.984 kB / 1.389 GB, free: 7.418 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001479/0.4677, allocations: 1.081 MB / 1.39 GB, free: 6.277 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.4677, allocations: 0 / 1.39 GB, free: 6.277 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001467/0.4678, allocations: 39.92 kB / 1.39 GB, free: 6.238 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.544e-06/0.4678, allocations: 7.953 kB / 1.39 GB, free: 6.23 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.047e-05/0.4679, allocations: 15.98 kB / 1.39 GB, free: 6.215 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.849e-06/0.4679, allocations: 4 kB / 1.39 GB, free: 6.211 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.4679, allocations: 0 / 1.39 GB, free: 6.211 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006545/0.4686, allocations: 0.5398 MB / 1.391 GB, free: 5.633 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 5.221e-05/0.4686, allocations: 100.8 kB / 1.391 GB, free: 5.516 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.561e-05/0.4687, allocations: 12 kB / 1.391 GB, free: 5.504 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001849/0.4689, allocations: 35.97 kB / 1.391 GB, free: 5.469 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001407/0.469, allocations: 68.28 kB / 1.391 GB, free: 5.402 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.796e-05/0.4691, allocations: 23.98 kB / 1.391 GB, free: 5.379 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 9.013e-05/0.4691, allocations: 127.4 kB / 1.391 GB, free: 5.254 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.21e-07/0.4692, allocations: 4 kB / 1.391 GB, free: 5.25 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0004105/0.4696, allocations: 91.89 kB / 1.391 GB, free: 5.16 MB / 0.8855 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.0002028/0.4698, allocations: 155 kB / 1.391 GB, free: 5 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0006999/0.4705, allocations: 453.8 kB / 1.392 GB, free: 4.562 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.4705, allocations: 3.938 kB / 1.392 GB, free: 4.559 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0003246/0.4708, allocations: 222.4 kB / 1.392 GB, free: 4.344 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002637/0.4711, allocations: 50.28 kB / 1.392 GB, free: 4.297 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001179/0.4723, allocations: 0.8654 MB / 1.393 GB, free: 3.391 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003472/0.4727, allocations: 0.835 MB / 1.394 GB, free: 2.531 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0002007/0.4729, allocations: 67.23 kB / 1.394 GB, free: 2.465 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001086/0.473, allocations: 39.42 kB / 1.394 GB, free: 2.426 MB / 0.8855 GB Notification: Performance of SimCode: time 2.3e-07/0.473, allocations: 0 / 1.394 GB, free: 2.426 MB / 0.8855 GB Notification: Performance of Templates: time 0.007274/0.4803, allocations: 3.783 MB / 1.397 GB, free: 14.67 MB / 0.9011 GB make -j1 -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.makefile (rm -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; mkfifo Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe >> ../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.sim & ./Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl.csv","../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches