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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 1.71/1.71, allocations: 387.2 MB / 394.5 MB, free: 13.7 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.0009828/0.0009828, allocations: 189.2 kB / 487 MB, free: 5.367 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.07/1.07, allocations: 221.3 MB / 0.7819 GB, free: 1.324 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.0008091/0.0008091, allocations: 101 kB / 0.9213 GB, free: 2.582 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 5.922e-06/5.942e-06, allocations: 0 / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1656/0.1656, allocations: 142.3 MB / 1.205 GB, free: 26.22 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4506/0.6162, allocations: 152.6 MB / 1.354 GB, free: 15.9 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001847/0.6164, allocations: 90.77 kB / 1.354 GB, free: 15.9 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.01749/0.6339, allocations: 7.893 MB / 1.362 GB, free: 14.39 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 1.609e-05/0.634, allocations: 11.94 kB / 1.362 GB, free: 14.38 MB / 0.8073 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.0006538/0.6346, allocations: 0.6385 MB / 1.363 GB, free: 13.75 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 2.674e-05/0.6347, allocations: 8.031 kB / 1.363 GB, free: 13.74 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.968e-05/0.6347, allocations: 51.34 kB / 1.363 GB, free: 13.69 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002998/0.635, allocations: 339.5 kB / 1.363 GB, free: 13.38 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.906e-05/0.6351, allocations: 27.61 kB / 1.363 GB, free: 13.36 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.134e-05/0.6351, allocations: 32 kB / 1.363 GB, free: 13.32 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005256/0.6357, allocations: 374.4 kB / 1.363 GB, free: 13.1 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005773/0.6363, allocations: 492.5 kB / 1.364 GB, free: 12.71 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.416e-05/0.6363, allocations: 0 / 1.364 GB, free: 12.71 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.329e-05/0.6363, allocations: 7.984 kB / 1.364 GB, free: 12.7 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.068e-05/0.6364, allocations: 17 kB / 1.364 GB, free: 12.69 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001433/0.6378, allocations: 1.808 MB / 1.366 GB, free: 11.19 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003701/0.6382, allocations: 354.5 kB / 1.366 GB, free: 10.92 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001851/0.6384, allocations: 179.1 kB / 1.366 GB, free: 10.8 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 4.407e-05/0.6384, allocations: 8 kB / 1.366 GB, free: 10.79 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002419/0.6387, allocations: 244.1 kB / 1.366 GB, free: 10.59 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=48): time 1.593e-06/0.6387, allocations: 0 / 1.366 GB, free: 10.59 MB / 0.8073 GB Notification: Performance of matching and sorting (n=48): time 0.0004479/0.6391, allocations: 313.4 kB / 1.367 GB, free: 10.35 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.566e-05/0.6392, allocations: 106.8 kB / 1.367 GB, free: 10.22 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001153/0.6393, allocations: 215.1 kB / 1.367 GB, free: 10.05 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 4.139e-05/0.6393, allocations: 41.45 kB / 1.367 GB, free: 10.01 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 6.77e-05/0.6394, allocations: 199.9 kB / 1.367 GB, free: 9.832 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 6.37e-05/0.6395, allocations: 108.9 kB / 1.367 GB, free: 9.746 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.804e-05/0.6395, allocations: 0 / 1.367 GB, free: 9.746 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 4.438e-05/0.6395, allocations: 342.1 kB / 1.368 GB, free: 9.418 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001834/0.6397, allocations: 145.5 kB / 1.368 GB, free: 9.332 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002134/0.6399, allocations: 266.7 kB / 1.368 GB, free: 9.09 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002215/0.6402, allocations: 156.5 kB / 1.368 GB, free: 8.988 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.6402, allocations: 4 kB / 1.368 GB, free: 8.984 MB / 0.8073 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0005444/0.6407, allocations: 452.1 kB / 1.369 GB, free: 8.637 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 8.045e-06/0.6407, allocations: 4 kB / 1.369 GB, free: 8.633 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.6408, allocations: 4 kB / 1.369 GB, free: 8.629 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.365e-05/0.6408, allocations: 8 kB / 1.369 GB, free: 8.621 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002137/0.641, allocations: 63.69 kB / 1.369 GB, free: 8.562 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.812e-06/0.641, allocations: 12.45 kB / 1.369 GB, free: 8.551 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001942/0.6412, allocations: 39.77 kB / 1.369 GB, free: 8.512 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.173e-05/0.6413, allocations: 23.88 kB / 1.369 GB, free: 8.492 MB / 0.8073 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 9.192e-05/0.6414, allocations: 153.8 kB / 1.369 GB, free: 8.34 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.547e-05/0.6414, allocations: 35.12 kB / 1.369 GB, free: 8.309 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005716/0.642, allocations: 366.3 kB / 1.369 GB, free: 8.035 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.087e-06/0.642, allocations: 7.938 kB / 1.369 GB, free: 8.027 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.642, allocations: 11.91 kB / 1.369 GB, free: 8.016 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.642, allocations: 0 / 1.369 GB, free: 8.016 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00105/0.6431, allocations: 0.9486 MB / 1.37 GB, free: 7.262 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.003e-06/0.6431, allocations: 4 kB / 1.37 GB, free: 7.258 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001397/0.6432, allocations: 38.78 kB / 1.37 GB, free: 7.223 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.389e-06/0.6432, allocations: 7.984 kB / 1.37 GB, free: 7.215 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.276e-05/0.6433, allocations: 3.125 kB / 1.37 GB, free: 7.215 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.387e-06/0.6433, allocations: 11.89 kB / 1.37 GB, free: 7.203 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.6433, allocations: 0 / 1.37 GB, free: 7.203 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004875/0.6438, allocations: 493.6 kB / 1.371 GB, free: 6.773 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.73e-05/0.6438, allocations: 100.7 kB / 1.371 GB, free: 6.656 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.607e-05/0.6438, allocations: 3.875 kB / 1.371 GB, free: 6.656 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001829/0.644, allocations: 27.97 kB / 1.371 GB, free: 6.629 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001196/0.6442, allocations: 64.34 kB / 1.371 GB, free: 6.574 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.8e-05/0.6442, allocations: 19.05 kB / 1.371 GB, free: 6.559 MB / 0.8073 GB Notification: Performance of sort global known variables: time 5.409e-05/0.6443, allocations: 126.2 kB / 1.371 GB, free: 6.453 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0003192/0.6446, allocations: 75.84 kB / 1.371 GB, free: 6.379 MB / 0.8073 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.0001409/0.6447, allocations: 146.4 kB / 1.371 GB, free: 6.234 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0004384/0.6452, allocations: 406.1 kB / 1.372 GB, free: 5.957 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.362e-06/0.6452, allocations: 0 / 1.372 GB, free: 5.957 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.0002223/0.6454, allocations: 218.8 kB / 1.372 GB, free: 5.801 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002272/0.6457, allocations: 31.36 kB / 1.372 GB, free: 5.777 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008048/0.6465, allocations: 0.5338 MB / 1.373 GB, free: 5.309 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003024/0.6468, allocations: 0.8724 MB / 1.373 GB, free: 4.418 MB / 0.8073 GB Notification: Performance of SimCode: time 2.31e-07/0.6468, allocations: 0 / 1.373 GB, free: 4.418 MB / 0.8073 GB Notification: Performance of Templates: time 0.006445/0.6532, allocations: 4.563 MB / 1.378 GB, free: 15.91 MB / 0.823 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