Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.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.BaseClasses.Examples.IndirectTankHeatExchanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|indTanHex.vol.1..T|indTanHex.vol.2..T|indTanHex.vol.3..T",fileNamePrefix="Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger") translateModel(Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|indTanHex.vol.1..T|indTanHex.vol.2..T|indTanHex.vol.3..T",fileNamePrefix="Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger") [: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.95/1.95, allocations: 390.4 MB / 397.7 MB, free: 11.23 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.001364/0.001364, allocations: 185.2 kB / 490.8 MB, free: 1.93 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.366/1.366, allocations: 221.3 MB / 0.7863 GB, free: 13.75 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.0009006/0.0009004, allocations: 90.69 kB / 0.9264 GB, free: 14.27 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 9.348e-06/9.378e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2925/0.2926, allocations: 143 MB / 1.212 GB, free: 40.14 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.005/1.298, allocations: 421.1 MB / 1.623 GB, free: 10.57 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003559/1.298, allocations: 97.36 kB / 1.623 GB, free: 10.52 MB / 1.042 GB Notification: Performance of FrontEnd: time 1.418/2.716, allocations: 422.7 MB / 2.036 GB, free: 168.8 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.000167/2.716, allocations: 51.92 kB / 2.036 GB, free: 168.8 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: 348 * Number of variables: 348 Notification: Performance of Generate backend data structure: time 0.003586/2.719, allocations: 1.869 MB / 2.038 GB, free: 166.9 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/2.719, allocations: 11.97 kB / 2.038 GB, free: 166.9 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000747/2.72, allocations: 229.5 kB / 2.038 GB, free: 166.6 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003656/2.724, allocations: 2.142 MB / 2.04 GB, free: 164.4 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.792e-05/2.724, allocations: 44 kB / 2.04 GB, free: 164.4 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001875/2.724, allocations: 92 kB / 2.04 GB, free: 164.3 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002122/2.726, allocations: 1.633 MB / 2.042 GB, free: 162.7 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002111/2.728, allocations: 1.684 MB / 2.043 GB, free: 160.9 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.923e-05/2.728, allocations: 7.906 kB / 2.043 GB, free: 160.9 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001143/2.728, allocations: 4 kB / 2.043 GB, free: 160.9 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.603e-05/2.729, allocations: 36 kB / 2.043 GB, free: 160.9 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008423/2.737, allocations: 7.194 MB / 2.05 GB, free: 153.4 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001307/2.738, allocations: 1.239 MB / 2.052 GB, free: 152.1 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006266/2.739, allocations: 0.6328 MB / 2.052 GB, free: 151.5 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003893/2.743, allocations: 3.443 MB / 2.056 GB, free: 147.8 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.136e-05/2.743, allocations: 47.34 kB / 2.056 GB, free: 147.7 MB / 1.151 GB Notification: Performance of pre-optimization done (n=86): time 2.475e-06/2.743, allocations: 3.938 kB / 2.056 GB, free: 147.7 MB / 1.151 GB Notification: Performance of matching and sorting (n=86): time 0.002129/2.745, allocations: 1.172 MB / 2.057 GB, free: 146.5 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.233e-05/2.745, allocations: 64.19 kB / 2.057 GB, free: 146.5 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001458/2.747, allocations: 1.27 MB / 2.058 GB, free: 145.2 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 7.728e-05/2.747, allocations: 25.7 kB / 2.058 GB, free: 145.1 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003036/2.747, allocations: 0.5959 MB / 2.059 GB, free: 144.5 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002219/2.747, allocations: 299.6 kB / 2.059 GB, free: 144.2 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.009e-05/2.747, allocations: 4 kB / 2.059 GB, free: 144.2 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 8.328e-05/2.747, allocations: 357.9 kB / 2.059 GB, free: 143.9 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007276/2.748, allocations: 0.6676 MB / 2.06 GB, free: 143.2 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008491/2.749, allocations: 1.01 MB / 2.061 GB, free: 142.1 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002544/2.751, allocations: 1.259 MB / 2.062 GB, free: 140.8 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.714e-06/2.751, allocations: 4 kB / 2.062 GB, free: 140.8 MB / 1.151 GB Notification: Performance of matching and sorting (n=176) (initialization): time 0.003914/2.755, allocations: 2.23 MB / 2.064 GB, free: 138.6 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005284/2.756, allocations: 3.487 MB / 2.068 GB, free: 134.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.316e-05/2.756, allocations: 8 kB / 2.068 GB, free: 134.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.796e-05/2.756, allocations: 16 kB / 2.068 GB, free: 134.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001239/2.757, allocations: 343.5 kB / 2.068 GB, free: 134.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.757e-05/2.757, allocations: 24 kB / 2.068 GB, free: 134.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001362/2.759, allocations: 158.3 kB / 2.068 GB, free: 134.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001139/2.759, allocations: 67.97 kB / 2.068 GB, free: 134.2 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 6.923e-06/2.759, allocations: 4 kB / 2.068 GB, free: 134.2 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003385/2.762, allocations: 2.058 MB / 2.07 GB, free: 132.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/2.762, allocations: 16 kB / 2.07 GB, free: 132.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.473e-05/2.762, allocations: 16 kB / 2.07 GB, free: 132.1 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001153/2.763, allocations: 339.4 kB / 2.071 GB, free: 131.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.171e-05/2.763, allocations: 19.94 kB / 2.071 GB, free: 131.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001135/2.765, allocations: 126.9 kB / 2.071 GB, free: 131.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001057/2.765, allocations: 63.98 kB / 2.071 GB, free: 131.6 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (176): * Single equations (assignments): 176 * 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.0002201/2.765, allocations: 140.6 kB / 2.071 GB, free: 131.4 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002329/2.765, allocations: 130.3 kB / 2.071 GB, free: 131.3 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002223/2.767, allocations: 1.313 MB / 2.072 GB, free: 130 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-05/2.767, allocations: 8 kB / 2.072 GB, free: 130 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/2.767, allocations: 7.844 kB / 2.072 GB, free: 129.9 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001592/2.769, allocations: 1.371 MB / 2.074 GB, free: 128.5 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003932/2.773, allocations: 2.802 MB / 2.077 GB, free: 125.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.329e-06/2.773, allocations: 7.938 kB / 2.077 GB, free: 125.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007454/2.774, allocations: 171.8 kB / 2.077 GB, free: 125.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.845e-06/2.774, allocations: 7.938 kB / 2.077 GB, free: 125.5 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.329e-05/2.774, allocations: 19.89 kB / 2.077 GB, free: 125.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.379e-06/2.774, allocations: 4 kB / 2.077 GB, free: 125.4 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/2.774, allocations: 0 / 2.077 GB, free: 125.4 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002437/2.776, allocations: 2.012 MB / 2.079 GB, free: 123.4 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006021/2.777, allocations: 395 kB / 2.079 GB, free: 123 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001991/2.777, allocations: 4 kB / 2.079 GB, free: 123 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007071/2.778, allocations: 39.86 kB / 2.079 GB, free: 122.9 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.544e-05/2.778, allocations: 48.66 kB / 2.079 GB, free: 122.9 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.753e-05/2.778, allocations: 39.97 kB / 2.079 GB, free: 122.8 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.001025/2.779, allocations: 0.9771 MB / 2.08 GB, free: 121.9 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.002463/2.781, allocations: 0.9465 MB / 2.081 GB, free: 120.9 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (indTanHex.vol[1].dynBal.U,indTanHex.vol[2].dynBal.U,indTanHex.vol[3].dynBal.U,indTanHex.cap[1].T,indTanHex.cap[2].T,indTanHex.cap[3].T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 Backend phase and start with SimCode phase: time 0.0008903/2.782, allocations: 0.4926 MB / 2.082 GB, free: 120.4 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002673/2.785, allocations: 2.308 MB / 2.084 GB, free: 118.1 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/2.785, allocations: 0 / 2.084 GB, free: 118.1 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0005009/2.786, allocations: 0.5025 MB / 2.084 GB, free: 117.6 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00255/2.788, allocations: 0.6001 MB / 2.085 GB, free: 117 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004655/2.793, allocations: 3.056 MB / 2.088 GB, free: 113.9 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001277/2.794, allocations: 1.85 MB / 2.09 GB, free: 112 MB / 1.151 GB Notification: Performance of SimCode: time 1.122e-06/2.794, allocations: 4 kB / 2.09 GB, free: 112 MB / 1.151 GB Notification: Performance of Templates: time 0.04898/2.843, allocations: 35.14 MB / 2.124 GB, free: 77.12 MB / 1.151 GB make -j1 -f Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.makefile (rm -f Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.sim & ./Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger.csv","../files/Buildings_latest_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches