Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.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.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tan.vol.1..T|tan.vol.3..T|tan.vol.5..T|senTem.T|yBot.u|yMid.u|yTop.u|yHea.u",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature") translateModel(Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tan.vol.1..T|tan.vol.3..T|tan.vol.5..T|senTem.T|yBot.u|yMid.u|yTop.u|yHea.u",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature") [: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 7.0.3-maint.7.0.x/package.mo): time 1.202/1.202, allocations: 249.4 MB / 256.7 MB, free: 7.012 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.0009793/0.0009793, allocations: 177.3 kB / 316 MB, free: 3.57 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.11/1.11, allocations: 205.2 MB / 0.5667 GB, free: 15.64 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.0008679/0.000868, allocations: 89.23 kB / 0.671 GB, free: 4.777 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.691e-06/5.711e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1574/0.1574, allocations: 106.3 MB / 0.8846 GB, free: 12.68 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9574/1.115, allocations: 420 MB / 1.295 GB, free: 288 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002025/1.115, allocations: 87.7 kB / 1.295 GB, free: 288 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.218/3.333, allocations: 0.9457 GB / 2.241 GB, free: 16.03 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.0001983/3.333, allocations: 79.86 kB / 2.241 GB, free: 15.95 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 586 * Number of variables: 586 Notification: Performance of Generate backend data structure: time 0.003762/3.337, allocations: 2.66 MB / 2.243 GB, free: 13.23 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.14e-05/3.337, allocations: 8.031 kB / 2.243 GB, free: 13.22 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007574/3.338, allocations: 360 kB / 2.244 GB, free: 12.87 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004359/3.342, allocations: 3.063 MB / 2.247 GB, free: 9.75 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.063e-05/3.342, allocations: 72 kB / 2.247 GB, free: 9.68 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002548/3.342, allocations: 144 kB / 2.247 GB, free: 9.539 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002886/3.345, allocations: 2.262 MB / 2.249 GB, free: 7.27 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003193/3.348, allocations: 2.667 MB / 2.252 GB, free: 4.469 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.044e-05/3.348, allocations: 7.938 kB / 2.252 GB, free: 4.461 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001796/3.349, allocations: 7.984 kB / 2.252 GB, free: 4.453 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.846e-05/3.349, allocations: 67.91 kB / 2.252 GB, free: 4.387 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2789/3.628, allocations: 12.91 MB / 2.264 GB, free: 261.1 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001704/3.629, allocations: 1.515 MB / 2.266 GB, free: 260.9 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001286/3.631, allocations: 1.114 MB / 2.267 GB, free: 260.9 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005881/3.631, allocations: 0.7178 MB / 2.268 GB, free: 260.2 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.466e-05/3.631, allocations: 48.44 kB / 2.268 GB, free: 260.1 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=126): time 3.036e-06/3.631, allocations: 2.562 kB / 2.268 GB, free: 260.1 MB / 0.8698 GB Notification: Performance of matching and sorting (n=126): time 0.002661/3.634, allocations: 1.675 MB / 2.269 GB, free: 259.9 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.282e-05/3.634, allocations: 143.8 kB / 2.269 GB, free: 259.8 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001905/3.636, allocations: 1.764 MB / 2.271 GB, free: 259.6 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.0001364/3.636, allocations: 32.27 kB / 2.271 GB, free: 259.5 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007309/3.637, allocations: 0.933 MB / 2.272 GB, free: 259.1 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004351/3.637, allocations: 427.9 kB / 2.272 GB, free: 258.9 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.228e-05/3.637, allocations: 0 / 2.272 GB, free: 258.9 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 8.966e-05/3.637, allocations: 375.1 kB / 2.273 GB, free: 258.6 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007911/3.638, allocations: 0.6843 MB / 2.273 GB, free: 258.6 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000985/3.639, allocations: 1.199 MB / 2.275 GB, free: 258 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001257/3.64, allocations: 0.9498 MB / 2.276 GB, free: 258 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.293e-06/3.64, allocations: 9.281 kB / 2.276 GB, free: 258 MB / 0.8698 GB Notification: Performance of matching and sorting (n=213) (initialization): time 0.003041/3.644, allocations: 2.216 MB / 2.278 GB, free: 257.8 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008088/3.644, allocations: 5.676 MB / 2.283 GB, free: 251.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.654e-05/3.644, allocations: 14.44 kB / 2.283 GB, free: 251.9 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001242/3.646, allocations: 416.3 kB / 2.284 GB, free: 251.9 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001232/3.647, allocations: 360.6 kB / 2.284 GB, free: 251.9 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002523/3.649, allocations: 2.951 MB / 2.287 GB, free: 250.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002051/3.651, allocations: 275.5 kB / 2.287 GB, free: 250 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001341/3.652, allocations: 83.61 kB / 2.287 GB, free: 250 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 6.432e-06/3.652, allocations: 3.625 kB / 2.287 GB, free: 250 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002716/3.654, allocations: 1.964 MB / 2.289 GB, free: 250 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.255e-05/3.654, allocations: 13.5 kB / 2.289 GB, free: 250 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004793/3.655, allocations: 206.5 kB / 2.289 GB, free: 249.9 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001275/3.656, allocations: 377.4 kB / 2.29 GB, free: 249.9 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002774/3.659, allocations: 3.69 MB / 2.293 GB, free: 247.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001963/3.661, allocations: 231.3 kB / 2.294 GB, free: 247.3 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001265/3.661, allocations: 82.61 kB / 2.294 GB, free: 247.3 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.onOffBot.y,onOffBot.y,$PRE.onOffMid.y,onOffMid.y,and2.y,nor.y,$PRE.onOffHea.y,onOffHea.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (182): * Single equations (assignments): 180 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 10} * Non-linear torn systems: 1 {3 19} Notification: Performance of prepare postOptimizeDAE: time 0.0003852/3.661, allocations: 158.5 kB / 2.294 GB, free: 247.2 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003057/3.662, allocations: 197.7 kB / 2.294 GB, free: 247.1 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0031/3.665, allocations: 1.957 MB / 2.296 GB, free: 247 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.366e-05/3.665, allocations: 15.34 kB / 2.296 GB, free: 247 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/3.665, allocations: 2.688 kB / 2.296 GB, free: 247 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001967/3.667, allocations: 1.546 MB / 2.297 GB, free: 246.9 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006323/3.673, allocations: 4.229 MB / 2.302 GB, free: 246.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.53e-06/3.673, allocations: 0 / 2.302 GB, free: 246.5 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009243/3.674, allocations: 215.3 kB / 2.302 GB, free: 246.5 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001115/3.675, allocations: 384.6 kB / 2.302 GB, free: 246.5 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.082e-05/3.675, allocations: 20.69 kB / 2.302 GB, free: 246.5 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002223/3.678, allocations: 2.898 MB / 2.305 GB, free: 244.6 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/3.678, allocations: 2.75 kB / 2.305 GB, free: 244.6 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003428/3.681, allocations: 2.951 MB / 2.308 GB, free: 244.2 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001046/3.682, allocations: 0.5284 MB / 2.308 GB, free: 244 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002895/3.682, allocations: 7.375 kB / 2.308 GB, free: 244 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001343/3.684, allocations: 158.2 kB / 2.309 GB, free: 244 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001873/3.684, allocations: 95.16 kB / 2.309 GB, free: 244 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001/3.684, allocations: 56.47 kB / 2.309 GB, free: 244 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.001585/3.686, allocations: 1.334 MB / 2.31 GB, free: 243.8 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.003772/3.689, allocations: 1.442 MB / 2.311 GB, free: 243.7 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 5 (tan.vol[1].dynBal.U,tan.vol[2].dynBal.U,tan.vol[3].dynBal.U,tan.vol[4].dynBal.U,tan.vol[5].dynBal.U) * Number of discrete variables: 5 (onOffBot.y,onOffMid.y,and2.y,nor.y,onOffHea.y) * Number of discrete states: 3 (onOffMid.y,onOffBot.y,onOffHea.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (103): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 10} * Non-linear torn systems: 1 {3 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.001059/3.69, allocations: 0.5664 MB / 2.312 GB, free: 243.6 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.004293/3.695, allocations: 3.131 MB / 2.315 GB, free: 243.2 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 3.938e-06/3.695, allocations: 3.094 kB / 2.315 GB, free: 243.2 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.001113/3.696, allocations: 0.9274 MB / 2.316 GB, free: 243.1 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004209/3.7, allocations: 1.028 MB / 2.317 GB, free: 243.1 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006319/3.706, allocations: 4.312 MB / 2.321 GB, free: 242.3 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001703/3.708, allocations: 2.381 MB / 2.323 GB, free: 241.5 MB / 0.8698 GB Notification: Performance of SimCode: time 8.92e-07/3.708, allocations: 0 / 2.323 GB, free: 241.5 MB / 0.8698 GB Notification: Performance of Templates: time 0.06416/3.772, allocations: 52.01 MB / 2.374 GB, free: 240.2 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Storage_Examples_StratifiedUnloadAtMinimumTemperature.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches