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.437/2.437, allocations: 387.4 MB / 394.9 MB, free: 13.36 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.001165/0.001165, allocations: 180.8 kB / 487.4 MB, free: 5.047 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.628/1.628, allocations: 221.5 MB / 0.7824 GB, free: 0.9297 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009599/0.0009598, allocations: 101.4 kB / 0.9219 GB, free: 2.16 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.503e-05/1.506e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2686/0.2686, allocations: 142.4 MB / 1.206 GB, free: 43.94 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9444/1.213, allocations: 152.7 MB / 1.355 GB, free: 18.46 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000334/1.214, allocations: 93.17 kB / 1.355 GB, free: 18.46 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.02157/1.235, allocations: 8.232 MB / 1.363 GB, free: 33.61 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.543e-06/1.235, allocations: 0 / 1.363 GB, free: 33.61 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.131e-05/1.235, allocations: 11.52 kB / 1.363 GB, free: 33.61 MB / 0.8386 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.0009282/1.236, allocations: 0.6324 MB / 1.364 GB, free: 33.16 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.196e-05/1.236, allocations: 7.406 kB / 1.364 GB, free: 33.16 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00011/1.236, allocations: 53.84 kB / 1.364 GB, free: 33.13 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003687/1.237, allocations: 330.3 kB / 1.364 GB, free: 32.9 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.941e-05/1.237, allocations: 21.94 kB / 1.364 GB, free: 32.9 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.86e-05/1.237, allocations: 34.59 kB / 1.364 GB, free: 32.9 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005994/1.237, allocations: 363.9 kB / 1.365 GB, free: 32.9 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007012/1.238, allocations: 0.4914 MB / 1.365 GB, free: 32.78 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.607e-05/1.238, allocations: 2.672 kB / 1.365 GB, free: 32.78 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.693e-05/1.238, allocations: 0 / 1.365 GB, free: 32.78 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.055e-05/1.238, allocations: 20.59 kB / 1.365 GB, free: 32.78 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002094/1.24, allocations: 1.824 MB / 1.367 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004496/1.241, allocations: 361.4 kB / 1.367 GB, free: 31.78 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002004/1.241, allocations: 173.9 kB / 1.367 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 6.076e-05/1.241, allocations: 18.19 kB / 1.367 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003145/1.241, allocations: 243.9 kB / 1.368 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=48): time 1.543e-06/1.241, allocations: 0 / 1.368 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of matching and sorting (n=48): time 0.0005663/1.242, allocations: 322.1 kB / 1.368 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.14e-05/1.242, allocations: 117 kB / 1.368 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001876/1.242, allocations: 209.4 kB / 1.368 GB, free: 31.37 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.959e-05/1.242, allocations: 39.08 kB / 1.368 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001445/1.242, allocations: 210.8 kB / 1.368 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 8.485e-05/1.243, allocations: 111.3 kB / 1.369 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.039e-05/1.243, allocations: 0 / 1.369 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001629/1.243, allocations: 345 kB / 1.369 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002083/1.243, allocations: 139.8 kB / 1.369 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002734/1.243, allocations: 275.5 kB / 1.369 GB, free: 30.67 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000269/1.243, allocations: 154.3 kB / 1.369 GB, free: 30.66 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.077e-06/1.243, allocations: 3.844 kB / 1.369 GB, free: 30.66 MB / 0.8386 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.000616/1.244, allocations: 449.3 kB / 1.37 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.977e-05/1.244, allocations: 11.78 kB / 1.37 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.131e-05/1.244, allocations: 7.703 kB / 1.37 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.973e-05/1.244, allocations: 3.812 kB / 1.37 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002654/1.244, allocations: 66.31 kB / 1.37 GB, free: 30.56 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.204e-05/1.244, allocations: 14.48 kB / 1.37 GB, free: 30.55 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002019/1.245, allocations: 36.78 kB / 1.37 GB, free: 30.54 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.542e-05/1.245, allocations: 23.03 kB / 1.37 GB, free: 30.54 MB / 0.8386 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 () * 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.0001485/1.245, allocations: 158.2 kB / 1.37 GB, free: 30.41 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.836e-05/1.245, allocations: 27.41 kB / 1.37 GB, free: 30.39 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006464/1.246, allocations: 379.8 kB / 1.371 GB, free: 30.34 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/1.246, allocations: 3.938 kB / 1.371 GB, free: 30.34 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.762e-06/1.246, allocations: 3.938 kB / 1.371 GB, free: 30.34 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.055e-06/1.246, allocations: 3.141 kB / 1.371 GB, free: 30.34 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001259/1.247, allocations: 0.9601 MB / 1.372 GB, free: 30.03 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/1.247, allocations: 3.812 kB / 1.372 GB, free: 30.03 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001537/1.247, allocations: 36.11 kB / 1.372 GB, free: 30.02 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/1.247, allocations: 3.812 kB / 1.372 GB, free: 30.02 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.567e-05/1.247, allocations: 2.906 kB / 1.372 GB, free: 30.02 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.656e-06/1.247, allocations: 3.719 kB / 1.372 GB, free: 30.02 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/1.247, allocations: 3.953 kB / 1.372 GB, free: 30.02 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005879/1.248, allocations: 0.4914 MB / 1.372 GB, free: 29.81 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.252e-05/1.248, allocations: 104.3 kB / 1.372 GB, free: 29.7 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.761e-05/1.248, allocations: 13.28 kB / 1.372 GB, free: 29.7 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001743/1.248, allocations: 24.8 kB / 1.372 GB, free: 29.69 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000142/1.248, allocations: 67.86 kB / 1.372 GB, free: 29.69 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.665e-05/1.248, allocations: 18.03 kB / 1.372 GB, free: 29.69 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001085/1.248, allocations: 131.3 kB / 1.372 GB, free: 29.61 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.5e-07/1.248, allocations: 0 / 1.372 GB, free: 29.61 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003945/1.249, allocations: 71.42 kB / 1.372 GB, free: 29.61 MB / 0.8386 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) * 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.0002114/1.249, allocations: 139.2 kB / 1.373 GB, free: 29.5 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0005354/1.25, allocations: 399 kB / 1.373 GB, free: 29.48 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/1.25, allocations: 0 / 1.373 GB, free: 29.48 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002525/1.25, allocations: 207.6 kB / 1.373 GB, free: 29.46 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003079/1.25, allocations: 38.45 kB / 1.373 GB, free: 29.46 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009227/1.251, allocations: 0.5323 MB / 1.374 GB, free: 29.27 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004116/1.251, allocations: 0.824 MB / 1.375 GB, free: 28.57 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001977/1.252, allocations: 73.92 kB / 1.375 GB, free: 28.55 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001007/1.252, allocations: 41.03 kB / 1.375 GB, free: 28.55 MB / 0.8386 GB Notification: Performance of SimCode: time 3.61e-07/1.252, allocations: 4 kB / 1.375 GB, free: 28.54 MB / 0.8386 GB Notification: Performance of Templates: time 0.006864/1.259, allocations: 3.661 MB / 1.378 GB, free: 28.29 MB / 0.8386 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