Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater") translateModel(Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater") [: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/Complex 3.2.3+maint.om/package.mo): time 0.0009973/0.0009971, allocations: 183.8 kB / 8.475 MB, free: 0.5391 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.567/1.567, allocations: 205.2 MB / 214.1 MB, free: 8.617 MB / 178.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001/0.001, allocations: 83.98 kB / 262.1 MB, free: 5.09 MB / 210.8 MB Notification: Performance of FrontEnd - loaded program: time 1.014e-05/1.015e-05, allocations: 0 / 315 MB, free: 2.07 MB / 258.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1331/0.1332, allocations: 47.57 MB / 362.6 MB, free: 2.379 MB / 306.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.165/1.298, allocations: 366.3 MB / 0.7118 GB, free: 115.4 MB / 418.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003961/1.298, allocations: 102.5 kB / 0.7119 GB, free: 115.4 MB / 418.8 MB Notification: Performance of FrontEnd: time 0.139/1.437, allocations: 79.94 MB / 0.79 GB, free: 49 MB / 418.8 MB Notification: Performance of Transformations before backend: time 1.921e-05/1.438, allocations: 8 kB / 0.79 GB, free: 48.99 MB / 418.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.00092/1.438, allocations: 0.5995 MB / 0.7906 GB, free: 48.35 MB / 418.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.456e-05/1.439, allocations: 8.031 kB / 0.7906 GB, free: 48.34 MB / 418.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002932/1.439, allocations: 39.61 kB / 0.7906 GB, free: 48.3 MB / 418.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003174/1.439, allocations: 270.6 kB / 0.7909 GB, free: 48 MB / 418.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.482e-05/1.439, allocations: 8 kB / 0.7909 GB, free: 47.99 MB / 418.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.566e-05/1.439, allocations: 16 kB / 0.7909 GB, free: 47.98 MB / 418.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003051/1.44, allocations: 172.9 kB / 0.7911 GB, free: 47.81 MB / 418.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003653/1.44, allocations: 258 kB / 0.7913 GB, free: 47.53 MB / 418.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.766e-05/1.44, allocations: 3.938 kB / 0.7913 GB, free: 47.53 MB / 418.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.114e-05/1.44, allocations: 0 / 0.7913 GB, free: 47.53 MB / 418.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.356e-05/1.44, allocations: 12 kB / 0.7913 GB, free: 47.52 MB / 418.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001328/1.441, allocations: 1.373 MB / 0.7927 GB, free: 46.04 MB / 418.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001623/1.441, allocations: 112.4 kB / 0.7928 GB, free: 45.92 MB / 418.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001124/1.442, allocations: 89.09 kB / 0.7929 GB, free: 45.83 MB / 418.8 MB Notification: Performance of preOpt evalFunc (simulation): time 3.155e-05/1.442, allocations: 8.188 kB / 0.7929 GB, free: 45.82 MB / 418.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.293e-05/1.442, allocations: 34.75 kB / 0.7929 GB, free: 45.78 MB / 418.8 MB Notification: Performance of pre-optimization done (n=21): time 1.312e-06/1.442, allocations: 0 / 0.7929 GB, free: 45.78 MB / 418.8 MB Notification: Performance of matching and sorting (n=26): time 0.001604/1.443, allocations: 0.7518 MB / 0.7936 GB, free: 44.97 MB / 418.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.523e-05/1.443, allocations: 55.41 kB / 0.7937 GB, free: 44.9 MB / 418.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000158/1.443, allocations: 199 kB / 0.7939 GB, free: 44.7 MB / 418.8 MB Notification: Performance of collectPreVariables (initialization): time 2.181e-05/1.444, allocations: 25.7 kB / 0.7939 GB, free: 44.67 MB / 418.8 MB Notification: Performance of collectInitialEqns (initialization): time 6.303e-05/1.444, allocations: 163.8 kB / 0.7941 GB, free: 44.5 MB / 418.8 MB Notification: Performance of collectInitialBindings (initialization): time 4.296e-05/1.444, allocations: 90.66 kB / 0.7941 GB, free: 44.41 MB / 418.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.306e-05/1.444, allocations: 0 / 0.7941 GB, free: 44.41 MB / 418.8 MB Notification: Performance of setup shared object (initialization): time 7.276e-05/1.444, allocations: 334.8 kB / 0.7945 GB, free: 44.08 MB / 418.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001111/1.444, allocations: 76 kB / 0.7945 GB, free: 44 MB / 418.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000147/1.444, allocations: 155.2 kB / 0.7947 GB, free: 43.81 MB / 418.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000156/1.444, allocations: 108.9 kB / 0.7948 GB, free: 43.71 MB / 418.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.559e-06/1.444, allocations: 7.906 kB / 0.7948 GB, free: 43.7 MB / 418.8 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.000541/1.445, allocations: 336.6 kB / 0.7951 GB, free: 43.36 MB / 418.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.252e-05/1.445, allocations: 4 kB / 0.7951 GB, free: 43.36 MB / 418.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/1.445, allocations: 4 kB / 0.7951 GB, free: 43.35 MB / 418.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002521/1.445, allocations: 65.98 kB / 0.7952 GB, free: 43.28 MB / 418.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002778/1.445, allocations: 71.91 kB / 0.7953 GB, free: 43.21 MB / 418.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001539/1.447, allocations: 2.547 MB / 0.7977 GB, free: 40.43 MB / 418.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002162/1.447, allocations: 8 kB / 0.7977 GB, free: 40.43 MB / 418.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.192e-05/1.447, allocations: 16 kB / 0.7978 GB, free: 40.41 MB / 418.8 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient.port.h:VARIABLE(flow=false min = -10000000000.0 max = 10000000000.0 unit = "J/kg" nominal = 1000000.0 ) "Specific mixture enthalpy in the connection point" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 37 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001427/1.447, allocations: 125.7 kB / 0.7979 GB, free: 40.28 MB / 418.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.078e-05/1.447, allocations: 23.72 kB / 0.7979 GB, free: 40.26 MB / 418.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.85e-05/1.447, allocations: 29.75 kB / 0.7979 GB, free: 40.23 MB / 418.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/1.447, allocations: 4 kB / 0.7979 GB, free: 40.22 MB / 418.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/1.447, allocations: 0 / 0.7979 GB, free: 40.22 MB / 418.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004635/1.448, allocations: 0.5487 MB / 0.7985 GB, free: 39.59 MB / 418.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007822/1.449, allocations: 0.6359 MB / 0.7991 GB, free: 38.9 MB / 418.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/1.449, allocations: 4 kB / 0.7991 GB, free: 38.9 MB / 418.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001954/1.449, allocations: 43.97 kB / 0.7991 GB, free: 38.86 MB / 418.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002049/1.449, allocations: 56.73 kB / 0.7992 GB, free: 38.8 MB / 418.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.863e-05/1.449, allocations: 4.094 kB / 0.7992 GB, free: 38.79 MB / 418.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008023/1.45, allocations: 1.318 MB / 0.8005 GB, free: 37.36 MB / 418.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/1.45, allocations: 0 / 0.8005 GB, free: 37.36 MB / 418.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005188/1.45, allocations: 451 kB / 0.8009 GB, free: 36.89 MB / 418.8 MB Notification: Performance of postOpt removeConstants (simulation): time 4.541e-05/1.451, allocations: 96.83 kB / 0.801 GB, free: 36.78 MB / 418.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.384e-05/1.451, allocations: 11.83 kB / 0.801 GB, free: 36.77 MB / 418.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002118/1.451, allocations: 8 kB / 0.801 GB, free: 36.76 MB / 418.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.946e-05/1.451, allocations: 11.97 kB / 0.801 GB, free: 36.75 MB / 418.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.953e-05/1.451, allocations: 16.06 kB / 0.8011 GB, free: 36.73 MB / 418.8 MB Notification: Performance of sort global known variables: time 9.898e-05/1.451, allocations: 153.6 kB / 0.8012 GB, free: 36.59 MB / 418.8 MB Notification: Performance of remove unused functions: time 0.0004312/1.451, allocations: 99.94 kB / 0.8013 GB, free: 36.49 MB / 418.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 23 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002277/1.452, allocations: 154.7 kB / 0.8014 GB, free: 36.33 MB / 418.8 MB Notification: Performance of simCode: created initialization part: time 0.0005651/1.452, allocations: 435.8 kB / 0.8019 GB, free: 35.88 MB / 418.8 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/1.452, allocations: 0 / 0.8019 GB, free: 35.88 MB / 418.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0002925/1.453, allocations: 209.8 kB / 0.8021 GB, free: 35.67 MB / 418.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006377/1.453, allocations: 120.7 kB / 0.8022 GB, free: 35.55 MB / 418.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008434/1.454, allocations: 470.5 kB / 0.8026 GB, free: 35.07 MB / 418.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002745/1.454, allocations: 0.8031 MB / 0.8034 GB, free: 34.24 MB / 418.8 MB Notification: Performance of SimCode: time 2.31e-07/1.454, allocations: 0 / 0.8034 GB, free: 34.24 MB / 418.8 MB Notification: Performance of Templates: time 0.008538/1.463, allocations: 5.385 MB / 0.8087 GB, free: 28.88 MB / 418.8 MB make -j1 -f Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.makefile (rm -f Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.sim & ./Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/Tests/MediaTestModels/LinearFluid/LinearColdWater/LinearColdWater.csv","../files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches