Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.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.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_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 2.07/2.07, allocations: 387.2 MB / 394.5 MB, free: 13.6 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.001548/0.001549, allocations: 173.3 kB / 487 MB, free: 5.324 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.457/1.457, allocations: 221.3 MB / 0.7819 GB, free: 1.262 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.001046/0.001046, allocations: 98.25 kB / 0.9213 GB, free: 2.508 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.118e-05/1.12e-05, allocations: 4 kB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2709/0.271, allocations: 142.3 MB / 1.205 GB, free: 26.14 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.024/1.295, allocations: 420.3 MB / 1.616 GB, free: 3.113 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002552/1.295, allocations: 88.08 kB / 1.616 GB, free: 3.07 MB / 1.042 GB Notification: Performance of FrontEnd: time 1.434/2.73, allocations: 422.7 MB / 2.029 GB, free: 113.4 MB / 1.135 GB Notification: Performance of Transformations before backend: time 0.0001717/2.73, allocations: 55.86 kB / 2.029 GB, free: 113.3 MB / 1.135 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.004246/2.734, allocations: 1.861 MB / 2.03 GB, free: 111.4 MB / 1.135 GB Notification: Performance of prepare preOptimizeDAE: time 4.322e-05/2.734, allocations: 17.02 kB / 2.03 GB, free: 111.4 MB / 1.135 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008732/2.735, allocations: 229.5 kB / 2.031 GB, free: 111.2 MB / 1.135 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003991/2.739, allocations: 2.142 MB / 2.033 GB, free: 109 MB / 1.135 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.675e-05/2.739, allocations: 47.94 kB / 2.033 GB, free: 108.9 MB / 1.135 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002215/2.739, allocations: 88 kB / 2.033 GB, free: 108.8 MB / 1.135 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002303/2.742, allocations: 1.633 MB / 2.034 GB, free: 107.2 MB / 1.135 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002358/2.744, allocations: 1.684 MB / 2.036 GB, free: 105.5 MB / 1.135 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.797e-05/2.744, allocations: 11.84 kB / 2.036 GB, free: 105.4 MB / 1.135 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001132/2.744, allocations: 0 / 2.036 GB, free: 105.4 MB / 1.135 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-05/2.744, allocations: 36 kB / 2.036 GB, free: 105.4 MB / 1.135 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01012/2.754, allocations: 7.206 MB / 2.043 GB, free: 97.93 MB / 1.135 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001432/2.756, allocations: 1.244 MB / 2.044 GB, free: 96.67 MB / 1.135 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006965/2.757, allocations: 0.6212 MB / 2.045 GB, free: 96.04 MB / 1.135 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00437/2.761, allocations: 3.447 MB / 2.048 GB, free: 92.29 MB / 1.135 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.681e-05/2.761, allocations: 43.34 kB / 2.048 GB, free: 92.24 MB / 1.135 GB Notification: Performance of pre-optimization done (n=86): time 2.515e-06/2.761, allocations: 3.938 kB / 2.048 GB, free: 92.23 MB / 1.135 GB Notification: Performance of matching and sorting (n=86): time 0.00219/2.763, allocations: 1.168 MB / 2.05 GB, free: 91.06 MB / 1.135 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.848e-05/2.763, allocations: 60.19 kB / 2.05 GB, free: 90.98 MB / 1.135 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00149/2.765, allocations: 1.27 MB / 2.051 GB, free: 89.71 MB / 1.135 GB Notification: Performance of collectPreVariables (initialization): time 7.831e-05/2.765, allocations: 25.7 kB / 2.051 GB, free: 89.68 MB / 1.135 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003409/2.765, allocations: 0.5998 MB / 2.052 GB, free: 89.06 MB / 1.135 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002356/2.765, allocations: 299.6 kB / 2.052 GB, free: 88.77 MB / 1.135 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.903e-05/2.765, allocations: 0 / 2.052 GB, free: 88.77 MB / 1.135 GB Notification: Performance of setup shared object (initialization): time 9.025e-05/2.766, allocations: 357.9 kB / 2.052 GB, free: 88.41 MB / 1.135 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007456/2.766, allocations: 0.6676 MB / 2.053 GB, free: 87.74 MB / 1.135 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008673/2.767, allocations: 1.014 MB / 2.054 GB, free: 86.59 MB / 1.135 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002522/2.77, allocations: 1.255 MB / 2.055 GB, free: 85.34 MB / 1.135 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.504e-06/2.77, allocations: 4 kB / 2.055 GB, free: 85.34 MB / 1.135 GB Notification: Performance of matching and sorting (n=176) (initialization): time 0.00399/2.774, allocations: 2.226 MB / 2.057 GB, free: 83.1 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006232/2.774, allocations: 3.489 MB / 2.061 GB, free: 79.34 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.234e-05/2.774, allocations: 8 kB / 2.061 GB, free: 79.34 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.311e-05/2.774, allocations: 20 kB / 2.061 GB, free: 79.32 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001238/2.776, allocations: 339.5 kB / 2.061 GB, free: 78.98 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.943e-05/2.776, allocations: 24 kB / 2.061 GB, free: 78.96 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001503/2.777, allocations: 162.3 kB / 2.061 GB, free: 78.8 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001214/2.777, allocations: 59.98 kB / 2.061 GB, free: 78.74 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 1.068e-05/2.777, allocations: 4 kB / 2.061 GB, free: 78.74 MB / 1.135 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003623/2.781, allocations: 2.066 MB / 2.063 GB, free: 76.67 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/2.781, allocations: 8 kB / 2.063 GB, free: 76.66 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.831e-05/2.781, allocations: 16 kB / 2.063 GB, free: 76.64 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001179/2.782, allocations: 339.5 kB / 2.064 GB, free: 76.31 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.363e-05/2.782, allocations: 19.94 kB / 2.064 GB, free: 76.29 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001405/2.784, allocations: 123.1 kB / 2.064 GB, free: 76.17 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001172/2.784, allocations: 63.92 kB / 2.064 GB, free: 76.11 MB / 1.135 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.0003025/2.784, allocations: 144.5 kB / 2.064 GB, free: 75.96 MB / 1.135 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002978/2.784, allocations: 134.3 kB / 2.064 GB, free: 75.83 MB / 1.135 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002465/2.787, allocations: 1.313 MB / 2.065 GB, free: 74.5 MB / 1.135 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.352e-05/2.787, allocations: 15.89 kB / 2.065 GB, free: 74.49 MB / 1.135 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/2.787, allocations: 0 / 2.065 GB, free: 74.49 MB / 1.135 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001679/2.789, allocations: 1.367 MB / 2.067 GB, free: 73.04 MB / 1.135 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004467/2.793, allocations: 2.806 MB / 2.069 GB, free: 70.18 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/2.793, allocations: 3.938 kB / 2.069 GB, free: 70.17 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007609/2.794, allocations: 175.8 kB / 2.07 GB, free: 70 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.026e-05/2.794, allocations: 7.906 kB / 2.07 GB, free: 69.99 MB / 1.135 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.578e-05/2.794, allocations: 11.98 kB / 2.07 GB, free: 69.98 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.911e-06/2.794, allocations: 4 kB / 2.07 GB, free: 69.98 MB / 1.135 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.968e-06/2.794, allocations: 4 kB / 2.07 GB, free: 69.97 MB / 1.135 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002657/2.797, allocations: 2.016 MB / 2.072 GB, free: 67.92 MB / 1.135 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007841/2.797, allocations: 399 kB / 2.072 GB, free: 67.51 MB / 1.135 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002095/2.798, allocations: 8 kB / 2.072 GB, free: 67.5 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007288/2.798, allocations: 35.86 kB / 2.072 GB, free: 67.46 MB / 1.135 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.422e-05/2.798, allocations: 44.72 kB / 2.072 GB, free: 67.42 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.983e-05/2.799, allocations: 35.97 kB / 2.072 GB, free: 67.39 MB / 1.135 GB Notification: Performance of sort global known variables: time 0.001257/2.8, allocations: 0.9809 MB / 2.073 GB, free: 66.4 MB / 1.135 GB Notification: Performance of remove unused functions: time 0.002763/2.803, allocations: 0.9504 MB / 2.074 GB, free: 65.45 MB / 1.135 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.001005/2.804, allocations: 495.5 kB / 2.074 GB, free: 64.96 MB / 1.135 GB Notification: Performance of simCode: created initialization part: time 0.002876/2.806, allocations: 2.304 MB / 2.077 GB, free: 62.66 MB / 1.135 GB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/2.807, allocations: 4 kB / 2.077 GB, free: 62.65 MB / 1.135 GB Notification: Performance of simCode: created simulation system equations: time 0.0005204/2.807, allocations: 0.5009 MB / 2.077 GB, free: 62.15 MB / 1.135 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00293/2.81, allocations: 0.602 MB / 2.078 GB, free: 61.56 MB / 1.135 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005589/2.816, allocations: 3.064 MB / 2.081 GB, free: 58.45 MB / 1.135 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001397/2.817, allocations: 1.854 MB / 2.083 GB, free: 56.56 MB / 1.135 GB Notification: Performance of SimCode: time 1.112e-06/2.817, allocations: 0 / 2.083 GB, free: 56.56 MB / 1.135 GB Notification: Performance of Templates: time 0.05152/2.869, allocations: 35.15 MB / 2.117 GB, free: 21.62 MB / 1.135 GB make -j1 -f Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.makefile (rm -f Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.sim & ./Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger.csv","../files/Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches