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/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001558/0.001558, allocations: 99.62 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001839/0.001839, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.459/1.459, allocations: 223.2 MB / 239.9 MB, free: 5.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.683/2.683, allocations: 436.5 MB / 0.7104 GB, free: 7.914 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004289/0.000429, allocations: 12 kB / 0.8708 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9886/0.989, allocations: 153.7 MB / 1.021 GB, free: 1.125 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.002769/0.9919, allocations: 1.926 MB / 1.023 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001608/0.9935, allocations: 0.9199 MB / 1.024 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000182/0.9937, allocations: 11.94 kB / 1.024 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001681/0.9939, allocations: 43.59 kB / 1.024 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002462/0.9941, allocations: 43.81 kB / 1.024 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004375/0.9946, allocations: 175.8 kB / 1.024 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0004576/0.9951, allocations: 359.9 kB / 1.024 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005133/0.9956, allocations: 356.3 kB / 1.025 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001875/0.9958, allocations: 147.5 kB / 1.025 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002044/0.996, allocations: 163.2 kB / 1.025 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.542e-05/0.996, allocations: 23.98 kB / 1.025 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001006/0.9962, allocations: 35.92 kB / 1.025 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001262/0.9963, allocations: 83.73 kB / 1.025 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 9.267e-05/0.9964, allocations: 101.5 kB / 1.025 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004815/0.9969, allocations: 0.5358 MB / 1.026 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.9969, allocations: 0 / 1.026 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.465e-06/0.9969, allocations: 0 / 1.026 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 8.967e-06/0.9969, allocations: 0 / 1.026 GB, free: 12.2 MB / 0.7794 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.00109/0.998, allocations: 0.6315 MB / 1.026 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.792e-05/0.9981, allocations: 15.97 kB / 1.026 GB, free: 11.51 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.925e-05/0.9982, allocations: 51.44 kB / 1.026 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004222/0.9986, allocations: 339 kB / 1.027 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.853e-05/0.9987, allocations: 53.27 kB / 1.027 GB, free: 11.03 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.507e-05/0.9988, allocations: 60 kB / 1.027 GB, free: 10.97 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000932/0.9997, allocations: 0.5656 MB / 1.027 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.799e-05/0.9997, allocations: 3.938 kB / 1.027 GB, free: 10.37 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.152e-05/0.9998, allocations: 28 kB / 1.027 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.74e-05/0.9998, allocations: 17 kB / 1.027 GB, free: 10.33 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007204/1.001, allocations: 423.7 kB / 1.028 GB, free: 9.914 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002297/1.003, allocations: 1.942 MB / 1.03 GB, free: 7.891 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006148/1.003, allocations: 404.8 kB / 1.03 GB, free: 7.469 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 6.346e-05/1.004, allocations: 8 kB / 1.03 GB, free: 7.461 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004441/1.004, allocations: 269 kB / 1.03 GB, free: 7.172 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=48): time 1.994e-06/1.004, allocations: 0 / 1.03 GB, free: 7.172 MB / 0.7794 GB Notification: Performance of matching and sorting (n=48): time 0.0009328/1.005, allocations: 0.4992 MB / 1.031 GB, free: 6.668 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.783e-05/1.005, allocations: 114.8 kB / 1.031 GB, free: 6.531 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000232/1.005, allocations: 235.1 kB / 1.031 GB, free: 6.293 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 7.245e-05/1.005, allocations: 45.7 kB / 1.031 GB, free: 6.242 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.000169/1.006, allocations: 216.8 kB / 1.031 GB, free: 6.027 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001118/1.006, allocations: 122.4 kB / 1.031 GB, free: 5.906 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.416e-05/1.006, allocations: 8 kB / 1.031 GB, free: 5.898 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001603/1.006, allocations: 342.9 kB / 1.032 GB, free: 5.555 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002951/1.006, allocations: 169.2 kB / 1.032 GB, free: 5.391 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003979/1.007, allocations: 292.7 kB / 1.032 GB, free: 5.055 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000299/1.007, allocations: 174.1 kB / 1.032 GB, free: 4.887 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/1.007, allocations: 0 / 1.032 GB, free: 4.887 MB / 0.7794 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0007828/1.008, allocations: 0.5102 MB / 1.033 GB, free: 4.371 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.472e-05/1.008, allocations: 5.406 kB / 1.033 GB, free: 4.367 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.216e-06/1.008, allocations: 4 kB / 1.033 GB, free: 4.363 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.607e-05/1.008, allocations: 15.94 kB / 1.033 GB, free: 4.348 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002656/1.008, allocations: 71.83 kB / 1.033 GB, free: 4.277 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.548e-05/1.008, allocations: 8.344 kB / 1.033 GB, free: 4.27 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000234/1.008, allocations: 71.42 kB / 1.033 GB, free: 4.199 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.64e-05/1.008, allocations: 27.92 kB / 1.033 GB, free: 4.172 MB / 0.7794 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.lessThreshold.y,con.not1.y,con.greaterThreshold.y,con.multiSwitch1.u[1],con.multiSwitch1.u[2],con.multiSwitch1.firstActiveIndex,con.off.active,$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.stateGraphRoot.activeSteps,con.alternative.split[2].available,con.t1.condition,con.t1.enableFire,con.t1.fire,$PRE.con.t1.t_start,con.t1.t_start,con.t2.condition,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.condition,con.t3.enableFire,con.t4.condition,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.0002827/1.009, allocations: 232.8 kB / 1.033 GB, free: 3.938 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.71e-05/1.009, allocations: 31.7 kB / 1.033 GB, free: 3.906 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007328/1.009, allocations: 427.5 kB / 1.034 GB, free: 3.484 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.024e-05/1.009, allocations: 11.95 kB / 1.034 GB, free: 3.473 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/1.009, allocations: 0 / 1.034 GB, free: 3.473 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.648e-06/1.009, allocations: 3.984 kB / 1.034 GB, free: 3.469 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001564/1.011, allocations: 1.153 MB / 1.035 GB, free: 2.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/1.011, allocations: 0 / 1.035 GB, free: 2.25 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001457/1.011, allocations: 35.92 kB / 1.035 GB, free: 2.215 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.623e-06/1.011, allocations: 8 kB / 1.035 GB, free: 2.207 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.862e-05/1.011, allocations: 11.98 kB / 1.035 GB, free: 2.195 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.966e-06/1.011, allocations: 0 / 1.035 GB, free: 2.195 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/1.011, allocations: 4 kB / 1.035 GB, free: 2.191 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007608/1.012, allocations: 0.5437 MB / 1.035 GB, free: 1.609 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 8.17e-05/1.012, allocations: 108.7 kB / 1.036 GB, free: 1.484 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.279e-05/1.012, allocations: 12 kB / 1.036 GB, free: 1.473 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001959/1.012, allocations: 31.97 kB / 1.036 GB, free: 1.441 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001992/1.013, allocations: 68.34 kB / 1.036 GB, free: 1.375 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.364e-05/1.013, allocations: 19.98 kB / 1.036 GB, free: 1.355 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.000144/1.013, allocations: 136.2 kB / 1.036 GB, free: 1.223 MB / 0.7794 GB Notification: Performance of sort global known variables: time 3.51e-07/1.013, allocations: 0 / 1.036 GB, free: 1.223 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0005836/1.013, allocations: 115.6 kB / 1.036 GB, free: 1.109 MB / 0.7794 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.lessThreshold.y,con.not1.y,con.greaterThreshold.y,con.multiSwitch1.u[1],con.multiSwitch1.u[2],con.multiSwitch1.firstActiveIndex,con.off.active,con.off.inPort[1].set,con.off.outPort[1].reset,con.off.newActive,con.off.oldActive,con.stateGraphRoot.activeSteps,con.alternative.split[2].available,con.t1.condition,con.t1.fire,con.t1.t_start,con.t2.condition,con.t2.fire,con.t2.t_start,con.charge.newActive,con.charge.oldActive,con.discharge.newActive,con.discharge.oldActive,con.t3.condition,con.t3.enableFire,con.t4.condition,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.0003543/1.014, allocations: 151 kB / 1.036 GB, free: 0.9531 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0009164/1.015, allocations: 449.5 kB / 1.037 GB, free: 0.5156 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/1.015, allocations: 0 / 1.037 GB, free: 0.5156 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0003968/1.015, allocations: 223.3 kB / 1.037 GB, free: 308 kB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003813/1.016, allocations: 52.22 kB / 1.037 GB, free: 256 kB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001693/1.017, allocations: 0.8539 MB / 1.038 GB, free: 15.35 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005686/1.018, allocations: 0.8311 MB / 1.038 GB, free: 14.49 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002298/1.018, allocations: 63.25 kB / 1.038 GB, free: 14.43 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001306/1.018, allocations: 43.42 kB / 1.039 GB, free: 14.39 MB / 0.795 GB Notification: Performance of SimCode: time 1.563e-06/1.018, allocations: 0 / 1.039 GB, free: 14.39 MB / 0.795 GB Notification: Performance of Templates: time 0.009946/1.028, allocations: 3.793 MB / 1.042 GB, free: 10.62 MB / 0.795 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