Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.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.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion") translateModel(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion") [: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 1.91/1.91, allocations: 387.2 MB / 394.5 MB, free: 13.65 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.001649/0.001649, allocations: 177.3 kB / 487 MB, free: 5.363 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.309/1.309, allocations: 221.3 MB / 0.7819 GB, free: 1.391 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.001155/0.001156, allocations: 90.19 kB / 0.9213 GB, free: 2.629 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 6.071e-06/6.101e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2436/0.2436, allocations: 142.3 MB / 1.205 GB, free: 26.23 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8793/1.123, allocations: 388.3 MB / 1.584 GB, free: 2.758 MB / 1.01 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003179/1.123, allocations: 66.28 kB / 1.584 GB, free: 2.727 MB / 1.01 GB Notification: Performance of FrontEnd: time 0.02821/1.152, allocations: 12.96 MB / 1.597 GB, free: 8.684 MB / 1.026 GB Notification: Performance of Transformations before backend: time 7.153e-06/1.152, allocations: 4 kB / 1.597 GB, free: 8.68 MB / 1.026 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.0002726/1.152, allocations: 326.2 kB / 1.597 GB, free: 8.32 MB / 1.026 GB Notification: Performance of prepare preOptimizeDAE: time 3.694e-05/1.152, allocations: 8.031 kB / 1.597 GB, free: 8.312 MB / 1.026 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.901e-05/1.152, allocations: 4 kB / 1.597 GB, free: 8.309 MB / 1.026 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001154/1.152, allocations: 163 kB / 1.598 GB, free: 8.109 MB / 1.026 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.597e-05/1.152, allocations: 29.64 kB / 1.598 GB, free: 8.074 MB / 1.026 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.608e-06/1.152, allocations: 4 kB / 1.598 GB, free: 8.07 MB / 1.026 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.607e-05/1.152, allocations: 15.23 kB / 1.598 GB, free: 8.059 MB / 1.026 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.225e-05/1.152, allocations: 45.12 kB / 1.598 GB, free: 8.012 MB / 1.026 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.833e-06/1.152, allocations: 0 / 1.598 GB, free: 8.012 MB / 1.026 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.115e-05/1.152, allocations: 0 / 1.598 GB, free: 8.012 MB / 1.026 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.569e-05/1.152, allocations: 0 / 1.598 GB, free: 8.012 MB / 1.026 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003965/1.153, allocations: 317.3 kB / 1.598 GB, free: 7.652 MB / 1.026 GB Notification: Performance of preOpt comSubExp (simulation): time 2.782e-05/1.153, allocations: 18.52 kB / 1.598 GB, free: 7.625 MB / 1.026 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.491e-05/1.153, allocations: 4.859 kB / 1.598 GB, free: 7.617 MB / 1.026 GB Notification: Performance of preOpt evalFunc (simulation): time 7.345e-05/1.153, allocations: 89.17 kB / 1.598 GB, free: 7.512 MB / 1.026 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.909e-05/1.153, allocations: 30.56 kB / 1.598 GB, free: 7.473 MB / 1.026 GB Notification: Performance of pre-optimization done (n=1): time 1.272e-06/1.153, allocations: 0 / 1.598 GB, free: 7.473 MB / 1.026 GB Notification: Performance of matching and sorting (n=1): time 0.0001598/1.153, allocations: 37.59 kB / 1.598 GB, free: 7.43 MB / 1.026 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.319e-05/1.153, allocations: 51.41 kB / 1.598 GB, free: 7.367 MB / 1.026 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.488e-05/1.153, allocations: 96.56 kB / 1.598 GB, free: 7.27 MB / 1.026 GB Notification: Performance of collectPreVariables (initialization): time 1.304e-05/1.153, allocations: 25.7 kB / 1.598 GB, free: 7.238 MB / 1.026 GB Notification: Performance of collectInitialEqns (initialization): time 4.097e-05/1.153, allocations: 95.44 kB / 1.598 GB, free: 7.145 MB / 1.026 GB Notification: Performance of collectInitialBindings (initialization): time 4.268e-06/1.153, allocations: 0 / 1.598 GB, free: 7.145 MB / 1.026 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.835e-06/1.153, allocations: 0 / 1.598 GB, free: 7.145 MB / 1.026 GB Notification: Performance of setup shared object (initialization): time 0.0001448/1.154, allocations: 318.8 kB / 1.599 GB, free: 6.824 MB / 1.026 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.061e-05/1.154, allocations: 0 / 1.599 GB, free: 6.824 MB / 1.026 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.001e-05/1.154, allocations: 21.16 kB / 1.599 GB, free: 6.801 MB / 1.026 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.479e-05/1.154, allocations: 11.98 kB / 1.599 GB, free: 6.789 MB / 1.026 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/1.154, allocations: 4 kB / 1.599 GB, free: 6.785 MB / 1.026 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001043/1.154, allocations: 45.62 kB / 1.599 GB, free: 6.734 MB / 1.026 GB Notification: Performance of prepare postOptimizeDAE: time 1.199e-05/1.154, allocations: 7.938 kB / 1.599 GB, free: 6.727 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/1.154, allocations: 0 / 1.599 GB, free: 6.727 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.039e-05/1.154, allocations: 4 kB / 1.599 GB, free: 6.723 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.433e-05/1.154, allocations: 7.25 kB / 1.599 GB, free: 6.719 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.061e-06/1.154, allocations: 3.938 kB / 1.599 GB, free: 6.715 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.146e-05/1.154, allocations: 7.891 kB / 1.599 GB, free: 6.707 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.295e-06/1.154, allocations: 4 kB / 1.599 GB, free: 6.703 MB / 1.026 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 5.555e-05/1.154, allocations: 105 kB / 1.599 GB, free: 6.594 MB / 1.026 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.626e-05/1.154, allocations: 0 / 1.599 GB, free: 6.594 MB / 1.026 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001022/1.154, allocations: 113.3 kB / 1.599 GB, free: 6.473 MB / 1.026 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-05/1.154, allocations: 188.2 kB / 1.599 GB, free: 6.281 MB / 1.026 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.947e-05/1.154, allocations: 187.6 kB / 1.599 GB, free: 6.094 MB / 1.026 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.76e-05/1.154, allocations: 180.3 kB / 1.6 GB, free: 5.91 MB / 1.026 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001763/1.154, allocations: 385.7 kB / 1.6 GB, free: 5.488 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.616e-05/1.155, allocations: 101 kB / 1.6 GB, free: 5.383 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.908e-05/1.155, allocations: 104.4 kB / 1.6 GB, free: 5.277 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.506e-05/1.155, allocations: 176.3 kB / 1.6 GB, free: 5.098 MB / 1.026 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.297e-05/1.155, allocations: 188.2 kB / 1.601 GB, free: 4.906 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.697e-05/1.155, allocations: 184.2 kB / 1.601 GB, free: 4.719 MB / 1.026 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.919e-05/1.155, allocations: 180.2 kB / 1.601 GB, free: 4.535 MB / 1.026 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001131/1.155, allocations: 303.1 kB / 1.601 GB, free: 4.219 MB / 1.026 GB Notification: Performance of postOpt removeConstants (simulation): time 6.624e-05/1.155, allocations: 195.4 kB / 1.601 GB, free: 4.004 MB / 1.026 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.262e-05/1.155, allocations: 180.3 kB / 1.602 GB, free: 3.82 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001247/1.155, allocations: 108.9 kB / 1.602 GB, free: 3.707 MB / 1.026 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.364e-05/1.155, allocations: 184.2 kB / 1.602 GB, free: 3.52 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.651e-05/1.155, allocations: 104.4 kB / 1.602 GB, free: 3.414 MB / 1.026 GB Notification: Performance of sort global known variables: time 3.736e-05/1.155, allocations: 79.28 kB / 1.602 GB, free: 3.336 MB / 1.026 GB Notification: Performance of remove unused functions: time 0.0002323/1.156, allocations: 23.94 kB / 1.602 GB, free: 3.312 MB / 1.026 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.0002017/1.156, allocations: 212.5 kB / 1.602 GB, free: 3.102 MB / 1.026 GB Notification: Performance of simCode: created initialization part: time 5.605e-05/1.156, allocations: 8 kB / 1.602 GB, free: 3.094 MB / 1.026 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/1.156, allocations: 4.125 kB / 1.602 GB, free: 3.09 MB / 1.026 GB Notification: Performance of simCode: created simulation system equations: time 2.344e-06/1.156, allocations: 3.938 kB / 1.602 GB, free: 3.086 MB / 1.026 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003358/1.156, allocations: 0.5247 MB / 1.603 GB, free: 2.562 MB / 1.026 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001721/1.156, allocations: 127.5 kB / 1.603 GB, free: 2.414 MB / 1.026 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002321/1.157, allocations: 0.6919 MB / 1.604 GB, free: 1.695 MB / 1.026 GB Notification: Performance of SimCode: time 2.31e-07/1.157, allocations: 0 / 1.604 GB, free: 1.695 MB / 1.026 GB Notification: Performance of Templates: time 0.002595/1.159, allocations: 0.7367 MB / 1.604 GB, free: 0.9727 MB / 1.026 GB make -j1 -f Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.makefile (rm -f Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.sim & ./Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.csv","../files/Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches