Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.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.AirTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_latest_Buildings.Media.Examples.AirTemperatureEnthalpyInversion") translateModel(Buildings.Media.Examples.AirTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.034/2.034, 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.001157/0.001157, allocations: 188.2 kB / 490.8 MB, free: 1.934 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.326/1.326, allocations: 221.4 MB / 0.7863 GB, free: 13.63 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.0009064/0.0009067, allocations: 92.66 kB / 0.9264 GB, free: 14.18 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 5.49e-06/5.51e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2274/0.2274, allocations: 143 MB / 1.212 GB, free: 40.13 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.172/3.4, allocations: 1.711 GB / 2.923 GB, free: 161.8 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002533/3.4, allocations: 67.97 kB / 2.923 GB, free: 161.8 MB / 1.151 GB Notification: Performance of FrontEnd: time 0.06693/3.467, allocations: 36.75 MB / 2.959 GB, free: 124.6 MB / 1.151 GB Notification: Performance of Transformations before backend: time 7.865e-06/3.467, allocations: 0 / 2.959 GB, free: 124.6 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.0002996/3.467, allocations: 334.4 kB / 2.959 GB, free: 124.2 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/3.467, allocations: 12.03 kB / 2.959 GB, free: 124.2 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003008/3.468, allocations: 27.95 kB / 2.959 GB, free: 124.1 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001028/3.468, allocations: 170.9 kB / 2.959 GB, free: 123.9 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.817e-05/3.468, allocations: 25.7 kB / 2.959 GB, free: 123.9 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.182e-05/3.468, allocations: 0 / 2.959 GB, free: 123.9 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.591e-05/3.468, allocations: 23.98 kB / 2.959 GB, free: 123.9 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.021e-05/3.468, allocations: 49.62 kB / 2.959 GB, free: 123.8 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.828e-06/3.468, allocations: 0 / 2.959 GB, free: 123.8 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.525e-05/3.468, allocations: 0 / 2.959 GB, free: 123.8 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.911e-05/3.468, allocations: 7.984 kB / 2.959 GB, free: 123.8 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004595/3.469, allocations: 326.5 kB / 2.96 GB, free: 123.4 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 3.043e-05/3.469, allocations: 14.58 kB / 2.96 GB, free: 123.4 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.765e-05/3.469, allocations: 8.922 kB / 2.96 GB, free: 123.4 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 1.016e-05/3.469, allocations: 4.031 kB / 2.96 GB, free: 123.4 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.617e-05/3.469, allocations: 38.47 kB / 2.96 GB, free: 123.4 MB / 1.151 GB Notification: Performance of pre-optimization done (n=1): time 1.192e-06/3.469, allocations: 0 / 2.96 GB, free: 123.4 MB / 1.151 GB Notification: Performance of matching and sorting (n=1): time 0.0002205/3.469, allocations: 45.62 kB / 2.96 GB, free: 123.3 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.08e-05/3.469, allocations: 51.41 kB / 2.96 GB, free: 123.2 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.563e-05/3.469, allocations: 100.9 kB / 2.96 GB, free: 123.1 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 1.017e-05/3.469, allocations: 25.7 kB / 2.96 GB, free: 123.1 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 3.151e-05/3.469, allocations: 88.08 kB / 2.96 GB, free: 123 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 5.59e-06/3.469, allocations: 15.83 kB / 2.96 GB, free: 123 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.916e-06/3.469, allocations: 0 / 2.96 GB, free: 123 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 4.648e-05/3.469, allocations: 314.8 kB / 2.96 GB, free: 122.7 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.21e-05/3.469, allocations: 4 kB / 2.96 GB, free: 122.7 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.426e-05/3.469, allocations: 22.56 kB / 2.96 GB, free: 122.7 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.96e-05/3.469, allocations: 7.984 kB / 2.96 GB, free: 122.6 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/3.469, allocations: 4 kB / 2.96 GB, free: 122.6 MB / 1.151 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.052e-05/3.469, allocations: 53.55 kB / 2.96 GB, free: 122.6 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.34e-05/3.469, allocations: 4 kB / 2.96 GB, free: 122.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/3.469, allocations: 0 / 2.96 GB, free: 122.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.635e-05/3.469, allocations: 7.984 kB / 2.96 GB, free: 122.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.795e-05/3.469, allocations: 4 kB / 2.96 GB, free: 122.6 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.743e-06/3.469, allocations: 3.938 kB / 2.96 GB, free: 122.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.008e-05/3.469, allocations: 4 kB / 2.96 GB, free: 122.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.189e-06/3.469, allocations: 96 / 2.96 GB, free: 122.6 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.876e-05/3.47, allocations: 108.9 kB / 2.961 GB, free: 122.4 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.696e-05/3.47, allocations: 4 kB / 2.961 GB, free: 122.4 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.446e-05/3.47, allocations: 7.156 kB / 2.961 GB, free: 122.4 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/3.47, allocations: 0 / 2.961 GB, free: 122.4 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/3.47, allocations: 0 / 2.961 GB, free: 122.4 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.335e-06/3.47, allocations: 0 / 2.961 GB, free: 122.4 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001793/3.47, allocations: 327.2 kB / 2.961 GB, free: 122.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/3.47, allocations: 4.031 kB / 2.961 GB, free: 122.1 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.53e-05/3.47, allocations: 7.938 kB / 2.961 GB, free: 122.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/3.47, allocations: 0 / 2.961 GB, free: 122.1 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.011e-06/3.47, allocations: 0 / 2.961 GB, free: 122.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/3.47, allocations: 3.938 kB / 2.961 GB, free: 122.1 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/3.47, allocations: 0 / 2.961 GB, free: 122.1 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 4.864e-05/3.47, allocations: 65.03 kB / 2.961 GB, free: 122 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 1.934e-05/3.47, allocations: 77.36 kB / 2.961 GB, free: 121.9 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.888e-05/3.47, allocations: 7.938 kB / 2.961 GB, free: 121.9 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.006e-05/3.47, allocations: 8 kB / 2.961 GB, free: 121.9 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.546e-05/3.47, allocations: 3.938 kB / 2.961 GB, free: 121.9 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.964e-06/3.47, allocations: 0 / 2.961 GB, free: 121.9 MB / 1.151 GB Notification: Performance of sort global known variables: time 2.592e-05/3.47, allocations: 87.27 kB / 2.961 GB, free: 121.8 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.0002654/3.47, allocations: 36 kB / 2.961 GB, free: 121.7 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.0006611/3.471, allocations: 0.6482 MB / 2.962 GB, free: 121.1 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 7.876e-05/3.471, allocations: 11.94 kB / 2.962 GB, free: 121.1 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/3.471, allocations: 4.188 kB / 2.962 GB, free: 121.1 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 3.667e-06/3.471, allocations: 0 / 2.962 GB, free: 121.1 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001453/3.471, allocations: 11.09 kB / 2.962 GB, free: 121.1 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001619/3.471, allocations: 51.92 kB / 2.962 GB, free: 121 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001256/3.472, allocations: 0.688 MB / 2.963 GB, free: 120.3 MB / 1.151 GB Notification: Performance of SimCode: time 2.3e-07/3.472, allocations: 0 / 2.963 GB, free: 120.3 MB / 1.151 GB Notification: Performance of Templates: time 0.006045/3.478, allocations: 3.691 MB / 2.966 GB, free: 116.6 MB / 1.151 GB make -j1 -f Buildings_latest_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.makefile (rm -f Buildings_latest_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.sim & ./Buildings_latest_Buildings.Media.Examples.AirTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Examples.AirTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Examples_AirTemperatureEnthalpyInversion.csv","../files/Buildings_latest_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches