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.465/1.465, allocations: 249.5 MB / 257 MB, free: 6.867 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001169/0.001169, allocations: 176.9 kB / 316.3 MB, free: 3.25 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.409/1.409, allocations: 205.3 MB / 0.5671 GB, free: 15.9 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.0008692/0.0008693, allocations: 86.47 kB / 0.6714 GB, free: 5.02 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.689e-05/1.691e-05, allocations: 0 / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2028/0.2028, allocations: 106.3 MB / 0.8852 GB, free: 12.26 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7397/0.9425, allocations: 136.1 MB / 1.018 GB, free: 1.668 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003544/0.943, allocations: 102.2 kB / 1.018 GB, free: 1.605 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.01946/0.9624, allocations: 8.072 MB / 1.026 GB, free: 10.95 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.553e-06/0.9625, allocations: 4 kB / 1.026 GB, free: 10.94 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 2.798e-05/0.9625, allocations: 16 kB / 1.026 GB, free: 10.93 MB / 0.6511 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.0008955/0.9634, allocations: 0.6134 MB / 1.027 GB, free: 10.3 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.58e-05/0.9635, allocations: 16.03 kB / 1.027 GB, free: 10.28 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.833e-05/0.9636, allocations: 50.88 kB / 1.027 GB, free: 10.23 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004021/0.964, allocations: 338.3 kB / 1.027 GB, free: 9.918 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.582e-05/0.9641, allocations: 19.19 kB / 1.027 GB, free: 9.902 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.324e-05/0.9641, allocations: 36 kB / 1.027 GB, free: 9.867 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006206/0.9648, allocations: 359.4 kB / 1.028 GB, free: 9.656 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007411/0.9655, allocations: 499.6 kB / 1.028 GB, free: 9.27 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.627e-05/0.9655, allocations: 4 kB / 1.028 GB, free: 9.266 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.559e-05/0.9656, allocations: 0 / 1.028 GB, free: 9.266 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.035e-05/0.9656, allocations: 21.3 kB / 1.028 GB, free: 9.246 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002081/0.9677, allocations: 1.807 MB / 1.03 GB, free: 7.727 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004513/0.9682, allocations: 329 kB / 1.03 GB, free: 7.512 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002051/0.9684, allocations: 158.4 kB / 1.03 GB, free: 7.414 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 5.8e-05/0.9684, allocations: 12.55 kB / 1.03 GB, free: 7.402 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000303/0.9688, allocations: 209.3 kB / 1.03 GB, free: 7.238 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=46): time 1.793e-06/0.9688, allocations: 0 / 1.03 GB, free: 7.238 MB / 0.6511 GB Notification: Performance of matching and sorting (n=46): time 0.0005698/0.9693, allocations: 312.4 kB / 1.031 GB, free: 7 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.13e-05/0.9694, allocations: 55.41 kB / 1.031 GB, free: 6.934 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001891/0.9696, allocations: 216.2 kB / 1.031 GB, free: 6.754 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 4.444e-05/0.9696, allocations: 36.08 kB / 1.031 GB, free: 6.719 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001397/0.9698, allocations: 221.2 kB / 1.031 GB, free: 6.527 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 9.143e-05/0.9699, allocations: 107.4 kB / 1.031 GB, free: 6.438 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.929e-05/0.9699, allocations: 0 / 1.031 GB, free: 6.438 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001207/0.97, allocations: 344.6 kB / 1.032 GB, free: 6.105 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002118/0.9703, allocations: 142.6 kB / 1.032 GB, free: 6.023 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002902/0.9706, allocations: 265.5 kB / 1.032 GB, free: 5.781 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002579/0.9708, allocations: 148.1 kB / 1.032 GB, free: 5.688 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.9708, allocations: 0 / 1.032 GB, free: 5.688 MB / 0.6511 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0006394/0.9715, allocations: 440 kB / 1.033 GB, free: 5.344 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.113e-05/0.9715, allocations: 9.906 kB / 1.033 GB, free: 5.336 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.9715, allocations: 4 kB / 1.033 GB, free: 5.332 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.893e-05/0.9715, allocations: 8 kB / 1.033 GB, free: 5.324 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002588/0.9718, allocations: 71.09 kB / 1.033 GB, free: 5.262 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.878e-06/0.9718, allocations: 4 kB / 1.033 GB, free: 5.258 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002009/0.972, allocations: 35.81 kB / 1.033 GB, free: 5.223 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.738e-05/0.9721, allocations: 27.69 kB / 1.033 GB, free: 5.199 MB / 0.6511 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 () * 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.0001503/0.9723, allocations: 153.5 kB / 1.033 GB, free: 5.043 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.868e-05/0.9723, allocations: 27.03 kB / 1.033 GB, free: 5.02 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006847/0.973, allocations: 384.8 kB / 1.033 GB, free: 4.734 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.973, allocations: 4 kB / 1.033 GB, free: 4.73 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.973, allocations: 0 / 1.033 GB, free: 4.73 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/0.973, allocations: 0 / 1.033 GB, free: 4.73 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00127/0.9743, allocations: 0.9431 MB / 1.034 GB, free: 3.961 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.9743, allocations: 0 / 1.034 GB, free: 3.961 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001559/0.9745, allocations: 35.55 kB / 1.034 GB, free: 3.93 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/0.9745, allocations: 4 kB / 1.034 GB, free: 3.926 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.635e-05/0.9745, allocations: 11.05 kB / 1.034 GB, free: 3.918 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.9745, allocations: 0 / 1.034 GB, free: 3.918 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.9746, allocations: 3.953 kB / 1.034 GB, free: 3.914 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00059/0.9752, allocations: 453.3 kB / 1.035 GB, free: 3.539 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 6.333e-05/0.9752, allocations: 104.7 kB / 1.035 GB, free: 3.418 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.335e-05/0.9753, allocations: 3.562 kB / 1.035 GB, free: 3.418 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001749/0.9755, allocations: 27.97 kB / 1.035 GB, free: 3.391 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001349/0.9756, allocations: 71.98 kB / 1.035 GB, free: 3.332 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.591e-05/0.9756, allocations: 15.36 kB / 1.035 GB, free: 3.32 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 9.131e-05/0.9757, allocations: 137 kB / 1.035 GB, free: 3.203 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9758, allocations: 0 / 1.035 GB, free: 3.203 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003673/0.9761, allocations: 68 kB / 1.035 GB, free: 3.137 MB / 0.6511 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) * 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.0002131/0.9763, allocations: 137 kB / 1.035 GB, free: 3 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0005414/0.9769, allocations: 386.3 kB / 1.036 GB, free: 2.738 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.9769, allocations: 0.9375 kB / 1.036 GB, free: 2.738 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0002369/0.9772, allocations: 195.3 kB / 1.036 GB, free: 2.609 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002677/0.9774, allocations: 32.69 kB / 1.036 GB, free: 2.582 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009379/0.9784, allocations: 0.5108 MB / 1.036 GB, free: 2.137 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003866/0.9788, allocations: 0.8287 MB / 1.037 GB, free: 1.289 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0002084/0.979, allocations: 67.23 kB / 1.037 GB, free: 1.227 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001106/0.9791, allocations: 42.61 kB / 1.037 GB, free: 1.188 MB / 0.6511 GB Notification: Performance of SimCode: time 2.71e-07/0.9791, allocations: 3.938 kB / 1.037 GB, free: 1.184 MB / 0.6511 GB Notification: Performance of Templates: time 0.007353/0.9865, allocations: 3.6 MB / 1.041 GB, free: 13.64 MB / 0.6667 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