Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.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.Media.Examples.AirTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_9_Buildings.Media.Examples.AirTemperatureEnthalpyInversion") translateModel(Buildings.Media.Examples.AirTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_9_Buildings.Media.Examples.AirTemperatureEnthalpyInversion") [: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.082/2.082, allocations: 387.2 MB / 394.5 MB, free: 13.62 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.00105/0.001051, allocations: 181.3 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.243/1.243, allocations: 221.3 MB / 0.7819 GB, free: 1.352 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.0009756/0.0009757, allocations: 84.64 kB / 0.9213 GB, free: 2.605 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 5.601e-06/5.621e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2263/0.2263, allocations: 142.3 MB / 1.205 GB, free: 26.24 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.317/3.543, allocations: 1.71 GB / 2.916 GB, free: 120.3 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002293/3.544, allocations: 75.52 kB / 2.916 GB, free: 120.2 MB / 1.151 GB Notification: Performance of FrontEnd: time 0.06519/3.609, allocations: 36.75 MB / 2.952 GB, free: 88.45 MB / 1.151 GB Notification: Performance of Transformations before backend: time 9.498e-06/3.609, allocations: 0 / 2.952 GB, free: 88.45 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0002742/3.609, allocations: 334.4 kB / 2.952 GB, free: 88.08 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/3.609, allocations: 8.031 kB / 2.952 GB, free: 88.07 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002655/3.609, allocations: 31.88 kB / 2.952 GB, free: 88.04 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.644e-05/3.61, allocations: 167 kB / 2.952 GB, free: 87.84 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.716e-05/3.61, allocations: 25.7 kB / 2.952 GB, free: 87.81 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.365e-05/3.61, allocations: 4 kB / 2.952 GB, free: 87.8 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.598e-05/3.61, allocations: 23.92 kB / 2.952 GB, free: 87.78 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.444e-05/3.61, allocations: 45.69 kB / 2.952 GB, free: 87.73 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/3.61, allocations: 0 / 2.952 GB, free: 87.73 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.353e-05/3.61, allocations: 3.984 kB / 2.952 GB, free: 87.73 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.656e-05/3.61, allocations: 4 kB / 2.952 GB, free: 87.72 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004246/3.61, allocations: 330.5 kB / 2.952 GB, free: 87.34 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 3.181e-05/3.61, allocations: 18.58 kB / 2.953 GB, free: 87.32 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.811e-05/3.61, allocations: 12.7 kB / 2.953 GB, free: 87.3 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 5.099e-06/3.61, allocations: 4 kB / 2.953 GB, free: 87.3 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.752e-05/3.61, allocations: 34.62 kB / 2.953 GB, free: 87.25 MB / 1.151 GB Notification: Performance of pre-optimization done (n=1): time 1.143e-06/3.61, allocations: 0 / 2.953 GB, free: 87.25 MB / 1.151 GB Notification: Performance of matching and sorting (n=1): time 0.0001884/3.611, allocations: 37.69 kB / 2.953 GB, free: 87.21 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.857e-05/3.611, allocations: 51.41 kB / 2.953 GB, free: 87.15 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.502e-05/3.611, allocations: 101 kB / 2.953 GB, free: 87.04 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 1.017e-05/3.611, allocations: 29.73 kB / 2.953 GB, free: 87.01 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 2.716e-05/3.611, allocations: 87.95 kB / 2.953 GB, free: 86.92 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 5.18e-06/3.611, allocations: 7.938 kB / 2.953 GB, free: 86.91 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.655e-06/3.611, allocations: 0 / 2.953 GB, free: 86.91 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 4.525e-05/3.611, allocations: 314.8 kB / 2.953 GB, free: 86.59 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.192e-05/3.611, allocations: 3.984 kB / 2.953 GB, free: 86.59 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.886e-05/3.611, allocations: 22.58 kB / 2.953 GB, free: 86.56 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.903e-05/3.611, allocations: 19.88 kB / 2.953 GB, free: 86.54 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-06/3.611, allocations: 0 / 2.953 GB, free: 86.54 MB / 1.151 GB Notification: Performance of matching and sorting (n=4) (initialization): time 6.08e-05/3.611, allocations: 45.59 kB / 2.953 GB, free: 86.49 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 8.776e-06/3.611, allocations: 8 kB / 2.953 GB, free: 86.48 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/3.611, allocations: 3.938 kB / 2.953 GB, free: 86.48 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.205e-05/3.611, allocations: 0 / 2.953 GB, free: 86.48 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.665e-05/3.611, allocations: 12 kB / 2.953 GB, free: 86.46 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.807e-06/3.611, allocations: 0 / 2.953 GB, free: 86.46 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.799e-05/3.611, allocations: 8.078 kB / 2.953 GB, free: 86.46 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.29e-06/3.611, allocations: 4 kB / 2.953 GB, free: 86.45 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 4.67e-05/3.611, allocations: 107.6 kB / 2.953 GB, free: 86.34 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.518e-05/3.611, allocations: 0 / 2.953 GB, free: 86.34 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.038e-05/3.611, allocations: 7.156 kB / 2.953 GB, free: 86.34 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-06/3.611, allocations: 256 / 2.953 GB, free: 86.34 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/3.611, allocations: 0 / 2.953 GB, free: 86.34 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/3.611, allocations: 4 kB / 2.953 GB, free: 86.34 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001611/3.611, allocations: 331.2 kB / 2.954 GB, free: 85.96 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.92e-07/3.611, allocations: 0 / 2.954 GB, free: 85.96 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.304e-05/3.611, allocations: 7.922 kB / 2.954 GB, free: 85.96 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.222e-06/3.611, allocations: 0 / 2.954 GB, free: 85.96 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.089e-06/3.611, allocations: 0 / 2.954 GB, free: 85.96 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.82e-07/3.611, allocations: 4 kB / 2.954 GB, free: 85.95 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/3.611, allocations: 3.906 kB / 2.954 GB, free: 85.95 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 4.422e-05/3.611, allocations: 57.17 kB / 2.954 GB, free: 85.88 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 2.122e-05/3.612, allocations: 81.02 kB / 2.954 GB, free: 85.78 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.693e-05/3.612, allocations: 4 kB / 2.954 GB, free: 85.77 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.783e-05/3.612, allocations: 3.984 kB / 2.954 GB, free: 85.77 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.067e-05/3.612, allocations: 4 kB / 2.954 GB, free: 85.77 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.342e-06/3.612, allocations: 0 / 2.954 GB, free: 85.77 MB / 1.151 GB Notification: Performance of sort global known variables: time 2.342e-05/3.612, allocations: 79.28 kB / 2.954 GB, free: 85.69 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.000231/3.612, allocations: 35.98 kB / 2.954 GB, free: 85.65 MB / 1.151 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 (1): * Single equations (assignments): 1 * 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.0005892/3.612, allocations: 0.653 MB / 2.955 GB, free: 85 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 6.473e-05/3.613, allocations: 19.94 kB / 2.955 GB, free: 84.98 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/3.613, allocations: 4 kB / 2.955 GB, free: 84.98 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 4.057e-06/3.613, allocations: 0 / 2.955 GB, free: 84.98 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001225/3.613, allocations: 7.938 kB / 2.955 GB, free: 84.97 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001665/3.613, allocations: 59.86 kB / 2.955 GB, free: 84.89 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001213/3.613, allocations: 0.6841 MB / 2.955 GB, free: 84.18 MB / 1.151 GB Notification: Performance of SimCode: time 2.51e-07/3.613, allocations: 0 / 2.955 GB, free: 84.18 MB / 1.151 GB Notification: Performance of Templates: time 0.005546/3.619, allocations: 3.687 MB / 2.959 GB, free: 80.48 MB / 1.151 GB make -j1 -f Buildings_9_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.makefile (rm -f Buildings_9_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.pipe >> ../files/Buildings_9_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.sim & ./Buildings_9_Buildings.Media.Examples.AirTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.AirTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_AirTemperatureEnthalpyInversion.csv","../files/Buildings_9_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches