Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.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.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_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 1.967/1.967, allocations: 387.2 MB / 394.5 MB, free: 13.61 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.001076/0.001076, allocations: 197.2 kB / 487 MB, free: 5.336 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.329/1.329, allocations: 221.3 MB / 0.7819 GB, free: 1.422 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.0009005/0.0009004, allocations: 93.31 kB / 0.9213 GB, free: 2.684 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 7.614e-06/7.704e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2776/0.2776, allocations: 142.3 MB / 1.205 GB, free: 26.24 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.009/1.287, allocations: 424.9 MB / 1.62 GB, free: 14.91 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000297/1.287, allocations: 90.89 kB / 1.62 GB, free: 14.87 MB / 1.057 GB Notification: Performance of FrontEnd: time 3.783/5.07, allocations: 0.9993 GB / 2.62 GB, free: 266.6 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.000355/5.071, allocations: 87.72 kB / 2.62 GB, free: 266.6 MB / 1.151 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.007597/5.078, allocations: 2.679 MB / 2.622 GB, free: 265.8 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.595e-05/5.078, allocations: 10.88 kB / 2.622 GB, free: 265.8 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001837/5.08, allocations: 353.7 kB / 2.623 GB, free: 265.6 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006942/5.087, allocations: 3.156 MB / 2.626 GB, free: 265.2 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.551e-05/5.087, allocations: 75.47 kB / 2.626 GB, free: 265.2 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003807/5.088, allocations: 143 kB / 2.626 GB, free: 265.2 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003772/5.092, allocations: 2.26 MB / 2.628 GB, free: 265.2 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00387/5.095, allocations: 2.706 MB / 2.631 GB, free: 264.9 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.006e-05/5.095, allocations: 6.969 kB / 2.631 GB, free: 264.9 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002006/5.096, allocations: 3.797 kB / 2.631 GB, free: 264.9 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.82e-05/5.096, allocations: 73.06 kB / 2.631 GB, free: 264.9 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01573/5.112, allocations: 12.95 MB / 2.643 GB, free: 258.7 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001882/5.113, allocations: 1.519 MB / 2.645 GB, free: 258.5 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001364/5.115, allocations: 1.118 MB / 2.646 GB, free: 258.5 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006387/5.115, allocations: 0.7191 MB / 2.647 GB, free: 257.8 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.692e-05/5.116, allocations: 48.88 kB / 2.647 GB, free: 257.7 MB / 1.151 GB Notification: Performance of pre-optimization done (n=126): time 3.636e-06/5.116, allocations: 0 / 2.647 GB, free: 257.7 MB / 1.151 GB Notification: Performance of matching and sorting (n=126): time 0.003138/5.119, allocations: 1.679 MB / 2.648 GB, free: 257.6 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.335e-05/5.119, allocations: 145.2 kB / 2.649 GB, free: 257.4 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002578/5.121, allocations: 1.788 MB / 2.65 GB, free: 257.2 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0002249/5.122, allocations: 36.75 kB / 2.65 GB, free: 257.2 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.000996/5.123, allocations: 0.9384 MB / 2.651 GB, free: 256.6 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005544/5.123, allocations: 424.8 kB / 2.652 GB, free: 256.4 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.324e-05/5.123, allocations: 2.438 kB / 2.652 GB, free: 256.4 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001223/5.123, allocations: 375.8 kB / 2.652 GB, free: 256.1 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008808/5.124, allocations: 0.6808 MB / 2.653 GB, free: 256.1 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001239/5.125, allocations: 1.199 MB / 2.654 GB, free: 255.5 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001564/5.127, allocations: 0.9576 MB / 2.655 GB, free: 255.4 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.897e-06/5.127, allocations: 3.688 kB / 2.655 GB, free: 255.4 MB / 1.151 GB Notification: Performance of matching and sorting (n=213) (initialization): time 0.004139/5.131, allocations: 2.222 MB / 2.657 GB, free: 255.3 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.001501/5.133, allocations: 5.694 MB / 2.663 GB, free: 249.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.562e-05/5.133, allocations: 13.56 kB / 2.663 GB, free: 249.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0017/5.134, allocations: 439 kB / 2.663 GB, free: 249.3 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001391/5.136, allocations: 356 kB / 2.663 GB, free: 249.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003236/5.139, allocations: 2.964 MB / 2.666 GB, free: 247.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002963/5.142, allocations: 273.8 kB / 2.666 GB, free: 247.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001616/5.142, allocations: 86.31 kB / 2.667 GB, free: 247.4 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 9.167e-06/5.142, allocations: 3.906 kB / 2.667 GB, free: 247.4 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003078/5.145, allocations: 1.958 MB / 2.668 GB, free: 247.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.962e-05/5.145, allocations: 16.44 kB / 2.668 GB, free: 247.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005486/5.146, allocations: 208.1 kB / 2.669 GB, free: 247.3 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001334/5.147, allocations: 381.1 kB / 2.669 GB, free: 247.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003075/5.15, allocations: 3.675 MB / 2.673 GB, free: 244.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002544/5.153, allocations: 242.7 kB / 2.673 GB, free: 244.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001657/5.153, allocations: 85.61 kB / 2.673 GB, free: 244.7 MB / 1.151 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.0005261/5.154, allocations: 154.1 kB / 2.673 GB, free: 244.6 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004733/5.154, allocations: 205.3 kB / 2.673 GB, free: 244.5 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003421/5.158, allocations: 1.967 MB / 2.675 GB, free: 244.3 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.768e-05/5.158, allocations: 14.59 kB / 2.675 GB, free: 244.3 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/5.158, allocations: 0 / 2.675 GB, free: 244.3 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002102/5.16, allocations: 1.555 MB / 2.677 GB, free: 244.2 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008098/5.168, allocations: 4.261 MB / 2.681 GB, free: 243.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.074e-06/5.168, allocations: 2.672 kB / 2.681 GB, free: 243.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009401/5.169, allocations: 220 kB / 2.681 GB, free: 243.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001443/5.17, allocations: 404.2 kB / 2.681 GB, free: 243.8 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001003/5.17, allocations: 24.92 kB / 2.682 GB, free: 243.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002477/5.173, allocations: 2.899 MB / 2.684 GB, free: 241.9 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.499e-06/5.173, allocations: 3.141 kB / 2.684 GB, free: 241.9 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004145/5.177, allocations: 2.966 MB / 2.687 GB, free: 241.5 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001646/5.179, allocations: 0.538 MB / 2.688 GB, free: 241.2 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000409/5.179, allocations: 13.06 kB / 2.688 GB, free: 241.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00154/5.181, allocations: 161.8 kB / 2.688 GB, free: 241.2 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000189/5.181, allocations: 90.95 kB / 2.688 GB, free: 241.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00011/5.181, allocations: 57.59 kB / 2.688 GB, free: 241.2 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.001918/5.183, allocations: 1.365 MB / 2.689 GB, free: 241.1 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.005103/5.188, allocations: 1.445 MB / 2.691 GB, free: 240.8 MB / 1.151 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.001193/5.189, allocations: 0.5594 MB / 2.691 GB, free: 240.7 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.00509/5.194, allocations: 3.14 MB / 2.694 GB, free: 240.4 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 1.053e-05/5.194, allocations: 7.344 kB / 2.694 GB, free: 240.3 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.001278/5.196, allocations: 0.9237 MB / 2.695 GB, free: 240.2 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005646/5.201, allocations: 1.013 MB / 2.696 GB, free: 240.2 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008865/5.21, allocations: 4.355 MB / 2.701 GB, free: 239.4 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0021/5.212, allocations: 2.395 MB / 2.703 GB, free: 238.6 MB / 1.151 GB Notification: Performance of SimCode: time 1.102e-06/5.212, allocations: 0 / 2.703 GB, free: 238.6 MB / 1.151 GB Notification: Performance of Templates: time 0.08885/5.301, allocations: 52.44 MB / 2.754 GB, free: 236.9 MB / 1.151 GB make -j1 -f Buildings_9_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.makefile (rm -f Buildings_9_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.sim & ./Buildings_9_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Storage_Examples_StratifiedUnloadAtMinimumTemperature.csv","../files/Buildings_9_Buildings.Fluid.Storage.Examples.StratifiedUnloadAtMinimumTemperature.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches