Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.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.Media.Examples.SteamTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_latest_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion") translateModel(Buildings.Media.Examples.SteamTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_latest_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion") [: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 2.04/2.04, allocations: 390.4 MB / 397.7 MB, free: 11.24 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.001074/0.001073, allocations: 181.2 kB / 490.8 MB, free: 1.902 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.428/1.428, allocations: 221.4 MB / 0.7863 GB, free: 13.62 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.0009881/0.000988, allocations: 89.16 kB / 0.9264 GB, free: 14.16 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 7.454e-06/7.474e-06, allocations: 0 / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3014/0.3015, allocations: 143 MB / 1.212 GB, free: 40.1 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9904/1.292, allocations: 456 MB / 1.657 GB, free: 8.805 MB / 1.073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002588/1.292, allocations: 77.02 kB / 1.657 GB, free: 8.766 MB / 1.073 GB Notification: Performance of FrontEnd: time 0.04936/1.342, allocations: 22.85 MB / 1.679 GB, free: 6.32 MB / 1.089 GB Notification: Performance of Transformations before backend: time 8.045e-06/1.342, allocations: 0 / 1.679 GB, free: 6.32 MB / 1.089 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003298/1.342, allocations: 350.4 kB / 1.68 GB, free: 5.934 MB / 1.089 GB Notification: Performance of prepare preOptimizeDAE: time 3.831e-05/1.342, allocations: 8.031 kB / 1.68 GB, free: 5.926 MB / 1.089 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.099e-05/1.342, allocations: 7.812 kB / 1.68 GB, free: 5.922 MB / 1.089 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001239/1.342, allocations: 171 kB / 1.68 GB, free: 5.715 MB / 1.089 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.481e-05/1.342, allocations: 25.7 kB / 1.68 GB, free: 5.684 MB / 1.089 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.193e-05/1.342, allocations: 4 kB / 1.68 GB, free: 5.68 MB / 1.089 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.803e-05/1.342, allocations: 11.98 kB / 1.68 GB, free: 5.668 MB / 1.089 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.264e-05/1.343, allocations: 41.31 kB / 1.68 GB, free: 5.625 MB / 1.089 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.474e-06/1.343, allocations: 4 kB / 1.68 GB, free: 5.621 MB / 1.089 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.193e-05/1.343, allocations: 0 / 1.68 GB, free: 5.621 MB / 1.089 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.529e-05/1.343, allocations: 0 / 1.68 GB, free: 5.621 MB / 1.089 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006868/1.343, allocations: 0.5872 MB / 1.68 GB, free: 4.934 MB / 1.089 GB Notification: Performance of preOpt comSubExp (simulation): time 3.078e-05/1.343, allocations: 14.58 kB / 1.68 GB, free: 4.91 MB / 1.089 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.557e-05/1.343, allocations: 4.859 kB / 1.68 GB, free: 4.902 MB / 1.089 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003148/1.344, allocations: 0.5021 MB / 1.681 GB, free: 4.297 MB / 1.089 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.42e-05/1.344, allocations: 34.56 kB / 1.681 GB, free: 4.254 MB / 1.089 GB Notification: Performance of pre-optimization done (n=1): time 1.011e-06/1.344, allocations: 0 / 1.681 GB, free: 4.254 MB / 1.089 GB Notification: Performance of matching and sorting (n=1): time 0.0002435/1.344, allocations: 45.53 kB / 1.681 GB, free: 4.203 MB / 1.089 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.731e-05/1.344, allocations: 55.28 kB / 1.681 GB, free: 4.141 MB / 1.089 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.185e-05/1.344, allocations: 92.94 kB / 1.681 GB, free: 4.043 MB / 1.089 GB Notification: Performance of collectPreVariables (initialization): time 1.505e-05/1.344, allocations: 29.7 kB / 1.681 GB, free: 4.008 MB / 1.089 GB Notification: Performance of collectInitialEqns (initialization): time 3.912e-05/1.344, allocations: 91.77 kB / 1.681 GB, free: 3.918 MB / 1.089 GB Notification: Performance of collectInitialBindings (initialization): time 5.43e-06/1.344, allocations: 7.984 kB / 1.681 GB, free: 3.91 MB / 1.089 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.176e-06/1.344, allocations: 3.938 kB / 1.681 GB, free: 3.906 MB / 1.089 GB Notification: Performance of setup shared object (initialization): time 8.377e-05/1.344, allocations: 310.8 kB / 1.682 GB, free: 3.594 MB / 1.089 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.94e-05/1.344, allocations: 4 kB / 1.682 GB, free: 3.59 MB / 1.089 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.957e-05/1.344, allocations: 17.59 kB / 1.682 GB, free: 3.566 MB / 1.089 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001694/1.345, allocations: 19.97 kB / 1.682 GB, free: 3.547 MB / 1.089 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/1.345, allocations: 0 / 1.682 GB, free: 3.547 MB / 1.089 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000211/1.345, allocations: 69.39 kB / 1.682 GB, free: 3.473 MB / 1.089 GB Notification: Performance of prepare postOptimizeDAE: time 1.198e-05/1.345, allocations: 6.656 kB / 1.682 GB, free: 3.469 MB / 1.089 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/1.345, allocations: 4 kB / 1.682 GB, free: 3.465 MB / 1.089 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.162e-05/1.345, allocations: 0 / 1.682 GB, free: 3.465 MB / 1.089 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.668e-05/1.345, allocations: 4 kB / 1.682 GB, free: 3.461 MB / 1.089 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.403e-06/1.345, allocations: 0 / 1.682 GB, free: 3.461 MB / 1.089 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.078e-05/1.345, allocations: 8 kB / 1.682 GB, free: 3.453 MB / 1.089 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.416e-06/1.345, allocations: 0 / 1.682 GB, free: 3.453 MB / 1.089 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 6.355e-05/1.345, allocations: 109 kB / 1.682 GB, free: 3.34 MB / 1.089 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.711e-05/1.345, allocations: 4 kB / 1.682 GB, free: 3.336 MB / 1.089 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001118/1.345, allocations: 120.9 kB / 1.682 GB, free: 3.211 MB / 1.089 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.902e-05/1.345, allocations: 176.3 kB / 1.682 GB, free: 3.031 MB / 1.089 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.076e-05/1.345, allocations: 179.9 kB / 1.682 GB, free: 2.852 MB / 1.089 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.042e-05/1.345, allocations: 192.1 kB / 1.682 GB, free: 2.656 MB / 1.089 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001676/1.345, allocations: 377.8 kB / 1.683 GB, free: 2.242 MB / 1.089 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.184e-05/1.345, allocations: 105 kB / 1.683 GB, free: 2.133 MB / 1.089 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.655e-05/1.346, allocations: 104.9 kB / 1.683 GB, free: 2.023 MB / 1.089 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.055e-05/1.346, allocations: 184.2 kB / 1.683 GB, free: 1.84 MB / 1.089 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.666e-05/1.346, allocations: 176.3 kB / 1.683 GB, free: 1.66 MB / 1.089 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.314e-05/1.346, allocations: 184.2 kB / 1.683 GB, free: 1.473 MB / 1.089 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.206e-05/1.346, allocations: 180.2 kB / 1.684 GB, free: 1.289 MB / 1.089 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001056/1.346, allocations: 307.8 kB / 1.684 GB, free: 0.9648 MB / 1.089 GB Notification: Performance of postOpt removeConstants (simulation): time 6.483e-05/1.346, allocations: 187.3 kB / 1.684 GB, free: 0.7617 MB / 1.089 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.856e-05/1.346, allocations: 188.5 kB / 1.684 GB, free: 0.5703 MB / 1.089 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001272/1.346, allocations: 105 kB / 1.684 GB, free: 472 kB / 1.089 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.731e-05/1.346, allocations: 180.2 kB / 1.685 GB, free: 284 kB / 1.089 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.957e-05/1.346, allocations: 104.9 kB / 1.685 GB, free: 172 kB / 1.089 GB Notification: Performance of sort global known variables: time 3.861e-05/1.346, allocations: 95.08 kB / 1.685 GB, free: 80 kB / 1.089 GB Notification: Performance of remove unused functions: time 0.0003357/1.347, allocations: 75.23 kB / 1.685 GB, free: 24 kB / 1.089 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * 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 Backend phase and start with SimCode phase: time 0.0008537/1.347, allocations: 0.7466 MB / 1.686 GB, free: 15.28 MB / 1.104 GB Notification: Performance of simCode: created initialization part: time 6.066e-05/1.348, allocations: 8 kB / 1.686 GB, free: 15.27 MB / 1.104 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/1.348, allocations: 0 / 1.686 GB, free: 15.27 MB / 1.104 GB Notification: Performance of simCode: created simulation system equations: time 1.433e-06/1.348, allocations: 0 / 1.686 GB, free: 15.27 MB / 1.104 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003027/1.348, allocations: 0.5296 MB / 1.686 GB, free: 14.74 MB / 1.104 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001762/1.348, allocations: 127.3 kB / 1.686 GB, free: 14.59 MB / 1.104 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002197/1.348, allocations: 0.6841 MB / 1.687 GB, free: 13.88 MB / 1.104 GB Notification: Performance of SimCode: time 2.61e-07/1.348, allocations: 4 kB / 1.687 GB, free: 13.88 MB / 1.104 GB Notification: Performance of Templates: time 0.006646/1.355, allocations: 3.89 MB / 1.691 GB, free: 9.992 MB / 1.104 GB make -j1 -f Buildings_latest_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.makefile (rm -f Buildings_latest_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.sim & ./Buildings_latest_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Examples_SteamTemperatureEnthalpyInversion.csv","../files/Buildings_latest_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches