Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedNonUniformInitial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Fluid.Storage.Validation.StratifiedNonUniformInitial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaTan.vol.1..T|heaTan.vol.2..T|heaTan.vol.3..T|heaTan.vol.4..T|heaTan.vol.5..T|heaTan.vol.6..T|heaTan.vol.7..T|cooTan.vol.1..T|cooTan.vol.2..T|cooTan.vol.3..T|cooTan.vol.4..T|cooTan.vol.5..T|cooTan.vol.6..T|cooTan.vol.7..T|dHTan.y|dHTanEnh.y",fileNamePrefix="Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedNonUniformInitial") translateModel(Buildings.Fluid.Storage.Validation.StratifiedNonUniformInitial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaTan.vol.1..T|heaTan.vol.2..T|heaTan.vol.3..T|heaTan.vol.4..T|heaTan.vol.5..T|heaTan.vol.6..T|heaTan.vol.7..T|cooTan.vol.1..T|cooTan.vol.2..T|cooTan.vol.3..T|cooTan.vol.4..T|cooTan.vol.5..T|cooTan.vol.6..T|cooTan.vol.7..T|dHTan.y|dHTanEnh.y",fileNamePrefix="Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedNonUniformInitial") [: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 10.0.0-master/package.mo): time 1.996/1.996, allocations: 390.4 MB / 397.7 MB, free: 11.27 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.001123/0.001123, allocations: 177.3 kB / 490.8 MB, free: 1.906 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.339/1.339, allocations: 221.3 MB / 0.7863 GB, free: 13.69 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008884/0.0008883, allocations: 92.61 kB / 0.9264 GB, free: 14.21 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 6.092e-06/6.112e-06, allocations: 0 / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2323/0.2323, allocations: 143 MB / 1.212 GB, free: 40.1 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8639/1.096, allocations: 416.6 MB / 1.618 GB, free: 14.9 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000277/1.097, allocations: 81.08 kB / 1.618 GB, free: 14.86 MB / 1.042 GB Notification: Performance of FrontEnd: time 7.061/8.157, allocations: 2.137 GB / 3.756 GB, free: 210.5 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0007585/8.158, allocations: 176.3 kB / 3.756 GB, free: 210.4 MB / 1.167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1414 * Number of variables: 1414 Notification: Performance of Generate backend data structure: time 0.0139/8.172, allocations: 5.45 MB / 3.761 GB, free: 205 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.109e-05/8.172, allocations: 8.031 kB / 3.761 GB, free: 205 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00366/8.176, allocations: 0.788 MB / 3.762 GB, free: 204.2 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01372/8.189, allocations: 7.567 MB / 3.769 GB, free: 196.7 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001592/8.19, allocations: 179.9 kB / 3.769 GB, free: 196.5 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009089/8.191, allocations: 323.9 kB / 3.77 GB, free: 196.2 MB / 1.167 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009056/8.2, allocations: 5.675 MB / 3.775 GB, free: 190.5 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0101/8.21, allocations: 6.738 MB / 3.782 GB, free: 183.6 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001182/8.21, allocations: 19.78 kB / 3.782 GB, free: 183.5 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005366/8.21, allocations: 11.94 kB / 3.782 GB, free: 183.5 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001453/8.211, allocations: 234.3 kB / 3.782 GB, free: 183.3 MB / 1.167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0322/8.243, allocations: 29.42 MB / 3.811 GB, free: 152.9 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00358/8.246, allocations: 3.348 MB / 3.814 GB, free: 149.6 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002743/8.249, allocations: 2.695 MB / 3.817 GB, free: 146.9 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007364/8.25, allocations: 0.8312 MB / 3.818 GB, free: 145.9 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.371e-05/8.25, allocations: 68.67 kB / 3.818 GB, free: 145.8 MB / 1.167 GB Notification: Performance of pre-optimization done (n=267): time 4.278e-06/8.25, allocations: 4 kB / 3.818 GB, free: 145.8 MB / 1.167 GB Notification: Performance of matching and sorting (n=267): time 0.006123/8.256, allocations: 3.666 MB / 3.821 GB, free: 142.1 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.337e-05/8.256, allocations: 81.45 kB / 3.821 GB, free: 142 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005518/8.262, allocations: 4.079 MB / 3.825 GB, free: 137.9 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0003798/8.262, allocations: 25.7 kB / 3.825 GB, free: 137.9 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.001305/8.263, allocations: 2.158 MB / 3.827 GB, free: 135.7 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.00137/8.265, allocations: 0.9008 MB / 3.828 GB, free: 134.8 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001609/8.265, allocations: 0 / 3.828 GB, free: 134.8 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0001706/8.265, allocations: 457.9 kB / 3.829 GB, free: 134.4 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001855/8.267, allocations: 1.604 MB / 3.83 GB, free: 132.8 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002177/8.269, allocations: 2.834 MB / 3.833 GB, free: 129.4 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002898/8.272, allocations: 2.347 MB / 3.835 GB, free: 127 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.632e-05/8.272, allocations: 12 kB / 3.835 GB, free: 127 MB / 1.167 GB Notification: Performance of matching and sorting (n=475) (initialization): time 0.007841/8.28, allocations: 5.063 MB / 3.84 GB, free: 121.9 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.726e-05/8.28, allocations: 11.92 kB / 3.84 GB, free: 121.9 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.124e-05/8.28, allocations: 40 kB / 3.84 GB, free: 121.8 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008068/8.281, allocations: 425.5 kB / 3.841 GB, free: 121.4 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002776/8.284, allocations: 0.854 MB / 3.842 GB, free: 120.5 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004148/8.288, allocations: 4.976 MB / 3.846 GB, free: 115.4 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00457/8.292, allocations: 0.4998 MB / 3.847 GB, free: 114.8 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003565/8.293, allocations: 180 kB / 3.847 GB, free: 114.7 MB / 1.167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 181 * Number of states: 0 () * Number of discrete variables: 2 (dHTan.local_reset,dHTanEnh.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (447): * Single equations (assignments): 445 * 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: 2 {(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006832/8.293, allocations: 219.7 kB / 3.847 GB, free: 114.4 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008654/8.294, allocations: 430.8 kB / 3.848 GB, free: 114 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006578/8.301, allocations: 4.062 MB / 3.852 GB, free: 109.9 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.226e-05/8.301, allocations: 31.98 kB / 3.852 GB, free: 109.9 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.054e-05/8.301, allocations: 4 kB / 3.852 GB, free: 109.9 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004237/8.305, allocations: 3.583 MB / 3.855 GB, free: 106.2 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01715/8.322, allocations: 9.528 MB / 3.865 GB, free: 96.57 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.094e-05/8.322, allocations: 8 kB / 3.865 GB, free: 96.56 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002138/8.325, allocations: 495.9 kB / 3.865 GB, free: 96.07 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007494/8.325, allocations: 376.5 kB / 3.865 GB, free: 95.7 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002012/8.326, allocations: 43.95 kB / 3.865 GB, free: 95.66 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004279/8.33, allocations: 4.928 MB / 3.87 GB, free: 90.5 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.252e-06/8.33, allocations: 4 kB / 3.87 GB, free: 90.5 MB / 1.167 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008201/8.338, allocations: 6.689 MB / 3.877 GB, free: 83.47 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003464/8.342, allocations: 1.124 MB / 3.878 GB, free: 82.32 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008394/8.342, allocations: 23.92 kB / 3.878 GB, free: 82.3 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002721/8.345, allocations: 219.4 kB / 3.878 GB, free: 82.09 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002185/8.345, allocations: 149.7 kB / 3.878 GB, free: 81.94 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000242/8.346, allocations: 131.9 kB / 3.878 GB, free: 81.81 MB / 1.167 GB Notification: Performance of sort global known variables: time 0.003985/8.35, allocations: 3.105 MB / 3.881 GB, free: 78.7 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.00638/8.356, allocations: 1.838 MB / 3.883 GB, free: 76.86 MB / 1.167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 16 (heaTan.vol[1].dynBal.U,heaTan.vol[2].dynBal.U,heaTan.vol[3].dynBal.U,heaTan.vol[4].dynBal.U,heaTan.vol[5].dynBal.U,heaTan.vol[6].dynBal.U,heaTan.vol[7].dynBal.U,cooTan.vol[1].dynBal.U,cooTan.vol[2].dynBal.U,cooTan.vol[3].dynBal.U,cooTan.vol[4].dynBal.U,cooTan.vol[5].dynBal.U,cooTan.vol[6].dynBal.U,cooTan.vol[7].dynBal.U,dHTanEnh.y,dHTan.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (242): * Single equations (assignments): 237 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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: 2 {(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00139/8.357, allocations: 0.7099 MB / 3.884 GB, free: 76.23 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.005069/8.362, allocations: 4.027 MB / 3.888 GB, free: 72.17 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 8.446e-06/8.363, allocations: 4 kB / 3.888 GB, free: 72.16 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.002081/8.365, allocations: 1.921 MB / 3.89 GB, free: 70.23 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01095/8.376, allocations: 2.239 MB / 3.892 GB, free: 68.07 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01814/8.394, allocations: 10.51 MB / 3.902 GB, free: 57.51 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004534/8.398, allocations: 4.802 MB / 3.907 GB, free: 52.68 MB / 1.167 GB Notification: Performance of SimCode: time 1.763e-06/8.398, allocations: 0 / 3.907 GB, free: 52.68 MB / 1.167 GB Notification: Performance of Templates: time 0.5127/8.911, allocations: 85.51 MB / 3.99 GB, free: 356.1 MB / 1.167 GB make -j1 -f Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedNonUniformInitial.makefile (rm -f Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedNonUniformInitial.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedNonUniformInitial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedNonUniformInitial.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedNonUniformInitial.sim & ./Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedNonUniformInitial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedNonUniformInitial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedNonUniformInitial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Storage_Validation_StratifiedNonUniformInitial.csv","../files/Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedNonUniformInitial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches