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="mat",numberOfIntervals=5000,variableFilter="time|con.SOC|con.y|con.isDay.y",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="mat",numberOfIntervals=5000,variableFilter="time|con.SOC|con.y|con.isDay.y",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.364/1.364, allocations: 251.9 MB / 266.9 MB, free: 10.86 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.001208/0.001208, allocations: 167.1 kB / 326.5 MB, free: 2.254 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.961/1.961, allocations: 205.4 MB / 0.5775 GB, free: 20.19 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.0009874/0.0009872, allocations: 98.27 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003673/0.0003673, allocations: 8.469 kB / 0.7962 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2744/0.2748, allocations: 106.3 MB / 0.9001 GB, free: 63.95 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2019/0.4768, allocations: 135.9 MB / 1.033 GB, free: 7.836 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003504/0.4772, allocations: 95.94 kB / 1.033 GB, free: 7.742 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.02037/0.4976, allocations: 8.245 MB / 1.041 GB, free: 15.44 MB / 0.698 GB Notification: Performance of FrontEnd: time 5.46e-06/0.4977, allocations: 3.984 kB / 1.041 GB, free: 15.44 MB / 0.698 GB Notification: Performance of Transformations before backend: time 2.45e-05/0.4977, allocations: 8 kB / 1.041 GB, free: 15.43 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.001059/0.4988, allocations: 0.6349 MB / 1.042 GB, free: 14.74 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.854e-05/0.4988, allocations: 8.031 kB / 1.042 GB, free: 14.73 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001157/0.4989, allocations: 55.42 kB / 1.042 GB, free: 14.68 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004792/0.4994, allocations: 331.1 kB / 1.042 GB, free: 14.31 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.401e-05/0.4995, allocations: 53.25 kB / 1.042 GB, free: 14.26 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.083e-05/0.4996, allocations: 59.98 kB / 1.042 GB, free: 14.2 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009687/0.5006, allocations: 0.5621 MB / 1.043 GB, free: 13.61 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.663e-05/0.5006, allocations: 4 kB / 1.043 GB, free: 13.61 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.32e-05/0.5007, allocations: 23.95 kB / 1.043 GB, free: 13.58 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.361e-05/0.5007, allocations: 20.98 kB / 1.043 GB, free: 13.56 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007335/0.5014, allocations: 423.7 kB / 1.043 GB, free: 13.15 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002396/0.5038, allocations: 1.904 MB / 1.045 GB, free: 11.17 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005932/0.5045, allocations: 374 kB / 1.045 GB, free: 10.79 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 5.902e-05/0.5045, allocations: 4 kB / 1.045 GB, free: 10.79 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003959/0.5049, allocations: 230 kB / 1.046 GB, free: 10.55 MB / 0.698 GB Notification: Performance of pre-optimization done (n=46): time 2.043e-06/0.5049, allocations: 0 / 1.046 GB, free: 10.55 MB / 0.698 GB Notification: Performance of matching and sorting (n=46): time 0.000895/0.5058, allocations: 474.6 kB / 1.046 GB, free: 10.08 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.9e-05/0.5059, allocations: 71.09 kB / 1.046 GB, free: 10 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002155/0.5061, allocations: 236.6 kB / 1.046 GB, free: 9.762 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 5.657e-05/0.5062, allocations: 49.69 kB / 1.046 GB, free: 9.707 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001606/0.5064, allocations: 221.3 kB / 1.047 GB, free: 9.484 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 9.97e-05/0.5065, allocations: 106.6 kB / 1.047 GB, free: 9.379 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.586e-05/0.5065, allocations: 16 kB / 1.047 GB, free: 9.363 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001624/0.5067, allocations: 342.8 kB / 1.047 GB, free: 9.02 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002824/0.507, allocations: 157.2 kB / 1.047 GB, free: 8.867 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003713/0.5073, allocations: 288.8 kB / 1.047 GB, free: 8.539 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002962/0.5076, allocations: 174.1 kB / 1.048 GB, free: 8.371 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.5077, allocations: 0 / 1.048 GB, free: 8.371 MB / 0.698 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0007806/0.5084, allocations: 0.4988 MB / 1.048 GB, free: 7.863 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.902e-05/0.5085, allocations: 8.031 kB / 1.048 GB, free: 7.855 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.287e-05/0.5085, allocations: 7.984 kB / 1.048 GB, free: 7.848 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.399e-05/0.5085, allocations: 8 kB / 1.048 GB, free: 7.84 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002467/0.5088, allocations: 63.78 kB / 1.048 GB, free: 7.777 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.718e-05/0.5088, allocations: 8 kB / 1.048 GB, free: 7.77 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002062/0.509, allocations: 43.81 kB / 1.048 GB, free: 7.727 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.505e-05/0.5091, allocations: 35.95 kB / 1.048 GB, free: 7.691 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.0002867/0.5094, allocations: 226.9 kB / 1.048 GB, free: 7.461 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.091e-05/0.5094, allocations: 23.72 kB / 1.048 GB, free: 7.438 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007725/0.5102, allocations: 439.4 kB / 1.049 GB, free: 7.004 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.623e-06/0.5102, allocations: 4 kB / 1.049 GB, free: 7 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.5102, allocations: 4 kB / 1.049 GB, free: 6.996 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.164e-06/0.5103, allocations: 0 / 1.049 GB, free: 6.996 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001481/0.5117, allocations: 1.062 MB / 1.05 GB, free: 5.879 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.5118, allocations: 0 / 1.05 GB, free: 5.879 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001467/0.5119, allocations: 35.92 kB / 1.05 GB, free: 5.844 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.839e-06/0.5119, allocations: 7.938 kB / 1.05 GB, free: 5.836 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.351e-05/0.512, allocations: 19.94 kB / 1.05 GB, free: 5.816 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.512, allocations: 0 / 1.05 GB, free: 5.816 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.512, allocations: 0 / 1.05 GB, free: 5.816 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006568/0.5126, allocations: 499.8 kB / 1.05 GB, free: 5.309 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 6.199e-05/0.5127, allocations: 104.7 kB / 1.051 GB, free: 5.188 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.478e-05/0.5128, allocations: 19.98 kB / 1.051 GB, free: 5.168 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001789/0.5129, allocations: 27.94 kB / 1.051 GB, free: 5.141 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001534/0.5131, allocations: 72.34 kB / 1.051 GB, free: 5.07 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.372e-05/0.5132, allocations: 19.92 kB / 1.051 GB, free: 5.051 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001054/0.5133, allocations: 135.2 kB / 1.051 GB, free: 4.918 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5133, allocations: 0 / 1.051 GB, free: 4.918 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.000384/0.5137, allocations: 84 kB / 1.051 GB, free: 4.836 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.0002413/0.5139, allocations: 143.1 kB / 1.051 GB, free: 4.684 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0007334/0.5146, allocations: 445.5 kB / 1.051 GB, free: 4.25 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.5147, allocations: 0 / 1.051 GB, free: 4.25 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0003287/0.515, allocations: 215.3 kB / 1.052 GB, free: 4.039 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000276/0.5153, allocations: 39.98 kB / 1.052 GB, free: 4 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001364/0.5167, allocations: 0.8522 MB / 1.053 GB, free: 3.129 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004983/0.5172, allocations: 0.8233 MB / 1.053 GB, free: 2.273 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0002235/0.5174, allocations: 71.23 kB / 1.053 GB, free: 2.203 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001187/0.5175, allocations: 35.42 kB / 1.053 GB, free: 2.168 MB / 0.698 GB Notification: Performance of SimCode: time 3.1e-07/0.5175, allocations: 0 / 1.053 GB, free: 2.168 MB / 0.698 GB Notification: Performance of Templates: time 0.5148/1.032, allocations: 3.719 MB / 1.057 GB, free: 148.5 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 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_BatteryControl.csv","../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches