Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.X.1.|volume.medium.X.2.|volume.medium.X.3.|volume.medium.X.4.|volume.medium.X.5.|volume.medium.X.6.|volume.medium.p",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas") translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.X.1.|volume.medium.X.2.|volume.medium.X.3.|volume.medium.X.4.|volume.medium.X.5.|volume.medium.X.6.|volume.medium.p",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas") [: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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001636/0.001636, allocations: 174.4 kB / 8.145 MB, free: 2.215 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.752/1.752, allocations: 205.2 MB / 213.8 MB, free: 13.91 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001303/0.001302, allocations: 87.3 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2641/0.2641, allocations: 43.49 MB / 353.2 MB, free: 2.043 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.906e-06/9.077e-06, allocations: 4 kB / 417.7 MB, free: 40.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2884/0.2884, allocations: 58.84 MB / 476.6 MB, free: 5.082 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.835/2.123, allocations: 0.8254 GB / 1.291 GB, free: 95.77 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000298/2.124, allocations: 87.14 kB / 1.291 GB, free: 95.73 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.224/5.347, allocations: 0.7112 GB / 2.002 GB, free: 82.04 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 9.045e-05/5.347, allocations: 30.53 kB / 2.002 GB, free: 82.04 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 276 * Number of variables: 276 Notification: Performance of Generate backend data structure: time 0.00639/5.354, allocations: 1.558 MB / 2.004 GB, free: 81.55 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/5.354, allocations: 11.31 kB / 2.004 GB, free: 81.55 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002634/5.356, allocations: 318.5 kB / 2.004 GB, free: 81.49 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002844/5.359, allocations: 0.8075 MB / 2.005 GB, free: 81.25 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001391/5.359, allocations: 107.1 kB / 2.005 GB, free: 81.18 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002881/5.36, allocations: 59.03 kB / 2.005 GB, free: 81.18 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003785/5.364, allocations: 1.498 MB / 2.006 GB, free: 81.18 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004138/5.368, allocations: 1.657 MB / 2.008 GB, free: 80.96 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.45e-05/5.368, allocations: 13.97 kB / 2.008 GB, free: 80.95 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002342/5.368, allocations: 3.938 kB / 2.008 GB, free: 80.95 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000108/5.368, allocations: 84.59 kB / 2.008 GB, free: 80.95 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01577/5.384, allocations: 6.852 MB / 2.015 GB, free: 77.53 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001389/5.385, allocations: 0.6101 MB / 2.015 GB, free: 77.5 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009161/5.386, allocations: 446.6 kB / 2.016 GB, free: 77.5 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003611/5.387, allocations: 250.4 kB / 2.016 GB, free: 77.3 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.177e-05/5.387, allocations: 46.77 kB / 2.016 GB, free: 77.26 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=60): time 3.417e-06/5.387, allocations: 0 / 2.016 GB, free: 77.26 MB / 0.5105 GB Notification: Performance of matching and sorting (n=72): time 0.01697/5.404, allocations: 3.598 MB / 2.02 GB, free: 76.59 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.43e-05/5.404, allocations: 111 kB / 2.02 GB, free: 76.46 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001152/5.405, allocations: 0.5813 MB / 2.02 GB, free: 76.34 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0002955/5.405, allocations: 29.33 kB / 2.02 GB, free: 76.31 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002424/5.406, allocations: 0.5023 MB / 2.021 GB, free: 76 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002942/5.406, allocations: 257 kB / 2.021 GB, free: 75.88 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001067/5.406, allocations: 2.344 kB / 2.021 GB, free: 75.88 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 9.726e-05/5.406, allocations: 350.8 kB / 2.021 GB, free: 75.56 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001347/5.407, allocations: 0.5861 MB / 2.022 GB, free: 75.56 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001505/5.409, allocations: 0.86 MB / 2.023 GB, free: 75.24 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001669/5.411, allocations: 0.7142 MB / 2.023 GB, free: 75.23 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.602e-06/5.411, allocations: 3.031 kB / 2.023 GB, free: 75.23 MB / 0.5105 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.004539/5.415, allocations: 1.875 MB / 2.025 GB, free: 75.15 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.132e-05/5.415, allocations: 3.406 kB / 2.025 GB, free: 75.15 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.034e-05/5.415, allocations: 8.5 kB / 2.025 GB, free: 75.15 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008024/5.423, allocations: 1.22 MB / 2.026 GB, free: 75.14 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001275/5.425, allocations: 136.9 kB / 2.027 GB, free: 75.14 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0045/5.429, allocations: 2.076 MB / 2.029 GB, free: 74.59 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001693/5.431, allocations: 87.17 kB / 2.029 GB, free: 74.59 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001807/5.431, allocations: 69.75 kB / 2.029 GB, free: 74.59 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 81 * 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: 0 * Non-linear torn systems: 1 {9 35} Notification: Performance of prepare postOptimizeDAE: time 0.0003684/5.432, allocations: 57.83 kB / 2.029 GB, free: 74.56 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003436/5.432, allocations: 80.62 kB / 2.029 GB, free: 74.52 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003857/5.436, allocations: 1.393 MB / 2.03 GB, free: 74.45 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.502e-05/5.436, allocations: 8.875 kB / 2.03 GB, free: 74.45 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.538e-06/5.436, allocations: 2.156 kB / 2.03 GB, free: 74.45 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.128e-05/5.436, allocations: 3.094 kB / 2.03 GB, free: 74.45 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006438/5.442, allocations: 2.6 MB / 2.033 GB, free: 74.13 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.177e-06/5.442, allocations: 6 kB / 2.033 GB, free: 74.13 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003865/5.446, allocations: 320.7 kB / 2.033 GB, free: 74.13 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003039/5.447, allocations: 66.84 kB / 2.033 GB, free: 74.12 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001603/5.447, allocations: 35.23 kB / 2.033 GB, free: 74.12 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002821/5.45, allocations: 2.787 MB / 2.036 GB, free: 71.66 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/5.45, allocations: 0 / 2.036 GB, free: 71.66 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004353/5.454, allocations: 1.878 MB / 2.038 GB, free: 71.44 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001031/5.455, allocations: 322.8 kB / 2.038 GB, free: 71.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002897/5.455, allocations: 12.97 kB / 2.038 GB, free: 71.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001918/5.457, allocations: 66.09 kB / 2.038 GB, free: 71.3 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001811/5.458, allocations: 51.42 kB / 2.038 GB, free: 71.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001943/5.458, allocations: 63.2 kB / 2.038 GB, free: 71.3 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0007967/5.459, allocations: 465.9 kB / 2.039 GB, free: 71.21 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.002804/5.461, allocations: 0.5677 MB / 2.039 GB, free: 71.16 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 8 (volume.medium.p,volume.medium.Xi[1],volume.medium.Xi[2],volume.medium.Xi[3],volume.medium.Xi[4],volume.medium.Xi[5],volume.medium.Xi[6],volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (78): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005735/5.467, allocations: 1.713 MB / 2.041 GB, free: 70.93 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.003847/5.471, allocations: 1.449 MB / 2.042 GB, free: 70.91 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.718e-06/5.471, allocations: 2.344 kB / 2.042 GB, free: 70.91 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003018/5.474, allocations: 0.8818 MB / 2.043 GB, free: 70.8 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00388/5.478, allocations: 383.1 kB / 2.044 GB, free: 70.79 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007932/5.486, allocations: 2.414 MB / 2.046 GB, free: 70.38 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001753/5.488, allocations: 1.311 MB / 2.047 GB, free: 69.67 MB / 0.5105 GB Notification: Performance of SimCode: time 2.325e-06/5.488, allocations: 1.938 kB / 2.047 GB, free: 69.67 MB / 0.5105 GB Notification: Performance of Templates: time 0.05867/5.547, allocations: 31.91 MB / 2.078 GB, free: 68.82 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Media/TestsWithFluid/MediaTestModels/IdealGases/SimpleNaturalGas/SimpleNaturalGas.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches