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 10.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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.352/2.352, allocations: 393.5 MB / 408.4 MB, free: 11.01 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.00159/0.00159, allocations: 183.9 kB / 0.4902 GB, free: 2.25 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.616/1.616, allocations: 223.2 MB / 0.7992 GB, free: 14.73 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.001058/0.001058, allocations: 102.9 kB / 0.9396 GB, free: 1.918 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004254/0.0004254, allocations: 13.75 kB / 1.09 GB, free: 216.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4442/0.4447, allocations: 143 MB / 1.229 GB, free: 105.8 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2182/0.6629, allocations: 154.2 MB / 1.38 GB, free: 15.39 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003128/0.6633, allocations: 99.92 kB / 1.38 GB, free: 15.29 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.02147/0.6848, allocations: 8.397 MB / 1.388 GB, free: 6.828 MB / 0.8855 GB Notification: Performance of FrontEnd: time 3.026e-06/0.6849, allocations: 0 / 1.388 GB, free: 6.828 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 4.395e-05/0.6849, allocations: 16.66 kB / 1.388 GB, free: 6.812 MB / 0.8855 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.001625/0.6866, allocations: 0.646 MB / 1.389 GB, free: 6.113 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.893e-05/0.6866, allocations: 12.56 kB / 1.389 GB, free: 6.102 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002761/0.6869, allocations: 51.34 kB / 1.389 GB, free: 6.051 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005284/0.6874, allocations: 327.2 kB / 1.389 GB, free: 5.688 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.578e-05/0.6875, allocations: 49.31 kB / 1.389 GB, free: 5.637 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001021/0.6876, allocations: 60.28 kB / 1.389 GB, free: 5.578 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001071/0.6887, allocations: 0.5734 MB / 1.39 GB, free: 4.977 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.84e-05/0.6887, allocations: 7.938 kB / 1.39 GB, free: 4.969 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.713e-05/0.6888, allocations: 20 kB / 1.39 GB, free: 4.949 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.911e-05/0.6888, allocations: 21 kB / 1.39 GB, free: 4.93 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007385/0.6896, allocations: 415.7 kB / 1.39 GB, free: 4.52 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002433/0.692, allocations: 1.919 MB / 1.392 GB, free: 2.523 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006445/0.6927, allocations: 400.4 kB / 1.392 GB, free: 2.102 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 6.244e-05/0.6928, allocations: 4.625 kB / 1.392 GB, free: 2.098 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004428/0.6932, allocations: 277 kB / 1.393 GB, free: 1.801 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=48): time 2.405e-06/0.6932, allocations: 0 / 1.393 GB, free: 1.801 MB / 0.8855 GB Notification: Performance of matching and sorting (n=48): time 0.0009796/0.6943, allocations: 0.4959 MB / 1.393 GB, free: 1.301 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.723e-05/0.6944, allocations: 122.8 kB / 1.393 GB, free: 1.156 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002231/0.6946, allocations: 217 kB / 1.394 GB, free: 0.9375 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 6.322e-05/0.6947, allocations: 49.7 kB / 1.394 GB, free: 0.8828 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001505/0.6948, allocations: 209.1 kB / 1.394 GB, free: 0.6758 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001009/0.6949, allocations: 118.6 kB / 1.394 GB, free: 0.5586 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.608e-05/0.695, allocations: 16 kB / 1.394 GB, free: 0.543 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001597/0.6951, allocations: 338.8 kB / 1.394 GB, free: 208 kB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000286/0.6954, allocations: 169.2 kB / 1.394 GB, free: 40 kB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003941/0.6958, allocations: 288.8 kB / 1.395 GB, free: 15.71 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003121/0.6961, allocations: 174.1 kB / 1.395 GB, free: 15.54 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.015e-06/0.6962, allocations: 0 / 1.395 GB, free: 15.54 MB / 0.9011 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0007933/0.697, allocations: 0.5139 MB / 1.395 GB, free: 15.02 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 2.265e-05/0.697, allocations: 8 kB / 1.395 GB, free: 15.01 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.909e-06/0.697, allocations: 4.469 kB / 1.395 GB, free: 15 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.394e-05/0.697, allocations: 12 kB / 1.395 GB, free: 14.99 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003116/0.6974, allocations: 63.83 kB / 1.395 GB, free: 14.93 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.743e-05/0.6974, allocations: 15.92 kB / 1.395 GB, free: 14.91 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002305/0.6976, allocations: 47.78 kB / 1.396 GB, free: 14.87 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.459e-05/0.6977, allocations: 27.98 kB / 1.396 GB, free: 14.84 MB / 0.9011 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.0002912/0.698, allocations: 238.8 kB / 1.396 GB, free: 14.6 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.392e-05/0.698, allocations: 27.72 kB / 1.396 GB, free: 14.57 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007708/0.6988, allocations: 435.4 kB / 1.396 GB, free: 14.14 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.007e-06/0.6988, allocations: 12 kB / 1.396 GB, free: 14.12 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.231e-06/0.6989, allocations: 0 / 1.396 GB, free: 14.12 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.181e-06/0.6989, allocations: 0 / 1.396 GB, free: 14.12 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001516/0.7004, allocations: 1.073 MB / 1.397 GB, free: 13 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.578e-06/0.7004, allocations: 4 kB / 1.397 GB, free: 13 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001465/0.7006, allocations: 35.91 kB / 1.397 GB, free: 12.96 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.612e-06/0.7006, allocations: 11.89 kB / 1.397 GB, free: 12.95 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.011e-05/0.7006, allocations: 11.98 kB / 1.397 GB, free: 12.94 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.47e-06/0.7006, allocations: 7.938 kB / 1.397 GB, free: 12.93 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.7006, allocations: 0 / 1.397 GB, free: 12.93 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007387/0.7014, allocations: 0.536 MB / 1.398 GB, free: 12.36 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 8.157e-05/0.7015, allocations: 100.7 kB / 1.398 GB, free: 12.24 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.059e-05/0.7015, allocations: 16 kB / 1.398 GB, free: 12.22 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001905/0.7017, allocations: 35.97 kB / 1.398 GB, free: 12.19 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001567/0.7019, allocations: 64.34 kB / 1.398 GB, free: 12.12 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.929e-05/0.7019, allocations: 23.98 kB / 1.398 GB, free: 12.1 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0001082/0.7021, allocations: 132.3 kB / 1.398 GB, free: 11.97 MB / 0.9011 GB Notification: Performance of sort global known variables: time 2.1e-07/0.7021, allocations: 0 / 1.398 GB, free: 11.97 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0004163/0.7025, allocations: 87.94 kB / 1.398 GB, free: 11.89 MB / 0.9011 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.0002648/0.7028, allocations: 165.1 kB / 1.398 GB, free: 11.72 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.0007426/0.7035, allocations: 450.4 kB / 1.399 GB, free: 11.28 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.7035, allocations: 4.062 kB / 1.399 GB, free: 11.28 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0003443/0.7039, allocations: 226.3 kB / 1.399 GB, free: 11.05 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002848/0.7042, allocations: 46.36 kB / 1.399 GB, free: 11.01 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001352/0.7055, allocations: 0.8539 MB / 1.4 GB, free: 10.12 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004146/0.706, allocations: 0.8311 MB / 1.401 GB, free: 9.262 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.000203/0.7062, allocations: 67.25 kB / 1.401 GB, free: 9.195 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001173/0.7063, allocations: 47.41 kB / 1.401 GB, free: 9.148 MB / 0.9011 GB Notification: Performance of SimCode: time 3.4e-07/0.7063, allocations: 0 / 1.401 GB, free: 9.148 MB / 0.9011 GB Notification: Performance of Templates: time 0.008102/0.7144, allocations: 3.772 MB / 1.405 GB, free: 5.406 MB / 0.9011 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 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl.csv","../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches