Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(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_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_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009531/0.0009531, allocations: 190.7 kB / 7.804 MB, free: 2.492 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.04/1.04, allocations: 205.2 MB / 213.4 MB, free: 13.93 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008475/0.0008476, allocations: 94.55 kB / 261.4 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1676/0.1676, allocations: 43.5 MB / 352.9 MB, free: 1.973 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.7e-06/5.72e-06, allocations: 4 kB / 417.7 MB, free: 40.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2277/0.2277, allocations: 58.84 MB / 476.6 MB, free: 5.207 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.176/1.404, allocations: 0.8254 GB / 1.291 GB, free: 121.1 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002699/1.404, allocations: 87.94 kB / 1.291 GB, free: 121 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.946/3.35, allocations: 0.7112 GB / 2.002 GB, free: 80.16 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 5.647e-05/3.35, allocations: 29.66 kB / 2.002 GB, free: 80.16 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.003836/3.354, allocations: 1.559 MB / 2.004 GB, free: 79.77 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.759e-05/3.354, allocations: 17.42 kB / 2.004 GB, free: 79.77 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001378/3.356, allocations: 315.6 kB / 2.004 GB, free: 79.7 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001453/3.357, allocations: 0.8064 MB / 2.005 GB, free: 79.47 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.198e-05/3.357, allocations: 104.8 kB / 2.005 GB, free: 79.4 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001484/3.357, allocations: 61.28 kB / 2.005 GB, free: 79.4 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001827/3.359, allocations: 1.496 MB / 2.006 GB, free: 79.4 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00206/3.361, allocations: 1.668 MB / 2.008 GB, free: 79.18 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.704e-05/3.361, allocations: 10.91 kB / 2.008 GB, free: 79.17 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001279/3.361, allocations: 2.375 kB / 2.008 GB, free: 79.17 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.014e-05/3.361, allocations: 79.64 kB / 2.008 GB, free: 79.17 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00804/3.369, allocations: 6.866 MB / 2.015 GB, free: 75.75 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006637/3.37, allocations: 0.6094 MB / 2.015 GB, free: 75.73 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004562/3.371, allocations: 442.2 kB / 2.016 GB, free: 75.72 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002239/3.371, allocations: 255.8 kB / 2.016 GB, free: 75.53 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.17e-05/3.371, allocations: 47.27 kB / 2.016 GB, free: 75.49 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=60): time 2.545e-06/3.371, allocations: 0 / 2.016 GB, free: 75.49 MB / 0.5105 GB Notification: Performance of matching and sorting (n=72): time 0.008277/3.379, allocations: 3.596 MB / 2.02 GB, free: 74.84 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.447e-05/3.379, allocations: 118 kB / 2.02 GB, free: 74.71 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005998/3.38, allocations: 0.5749 MB / 2.02 GB, free: 74.59 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 8.687e-05/3.38, allocations: 29.39 kB / 2.02 GB, free: 74.55 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001896/3.38, allocations: 480.1 kB / 2.021 GB, free: 74.31 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.000167/3.38, allocations: 255.5 kB / 2.021 GB, free: 74.18 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.912e-05/3.38, allocations: 0 / 2.021 GB, free: 74.18 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 8.781e-05/3.38, allocations: 389.8 kB / 2.021 GB, free: 73.87 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006288/3.381, allocations: 0.5814 MB / 2.022 GB, free: 73.87 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007481/3.382, allocations: 0.8602 MB / 2.023 GB, free: 73.55 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000781/3.383, allocations: 0.7073 MB / 2.023 GB, free: 73.55 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/3.383, allocations: 1.406 kB / 2.023 GB, free: 73.55 MB / 0.5105 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002272/3.385, allocations: 1.91 MB / 2.025 GB, free: 73.45 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/3.385, allocations: 10.38 kB / 2.025 GB, free: 73.45 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.043e-05/3.385, allocations: 12.53 kB / 2.025 GB, free: 73.45 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003834/3.389, allocations: 1.241 MB / 2.027 GB, free: 73.43 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005592/3.389, allocations: 139 kB / 2.027 GB, free: 73.43 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002315/3.392, allocations: 2.098 MB / 2.029 GB, free: 72.88 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009608/3.393, allocations: 91.64 kB / 2.029 GB, free: 72.88 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001072/3.393, allocations: 68.23 kB / 2.029 GB, free: 72.88 MB / 0.5105 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: volume.m:DUMMY_STATE(min = 0.0 unit = "kg" ) "Mass of fluid" type: Real volume.mb_flow:VARIABLE(unit = "kg/s" ) "Mass flows across boundaries" type: Real 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 {10 34} Notification: Performance of prepare postOptimizeDAE: time 0.0002608/3.393, allocations: 131.4 kB / 2.029 GB, free: 72.77 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001533/3.393, allocations: 85.81 kB / 2.029 GB, free: 72.73 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0019/3.395, allocations: 1.393 MB / 2.03 GB, free: 72.66 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.225e-06/3.395, allocations: 10.75 kB / 2.03 GB, free: 72.66 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/3.395, allocations: 2.562 kB / 2.03 GB, free: 72.66 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.294e-06/3.395, allocations: 3.844 kB / 2.03 GB, free: 72.66 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003183/3.398, allocations: 2.605 MB / 2.033 GB, free: 72.34 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/3.398, allocations: 3.938 kB / 2.033 GB, free: 72.34 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001797/3.4, allocations: 322.5 kB / 2.033 GB, free: 72.34 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001542/3.4, allocations: 70.19 kB / 2.033 GB, free: 72.33 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.654e-05/3.4, allocations: 29.27 kB / 2.033 GB, free: 72.33 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001563/3.402, allocations: 2.786 MB / 2.036 GB, free: 69.87 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/3.402, allocations: 2.125 kB / 2.036 GB, free: 69.87 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002009/3.404, allocations: 1.883 MB / 2.038 GB, free: 69.64 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004738/3.405, allocations: 313.3 kB / 2.038 GB, free: 69.51 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001707/3.405, allocations: 23.27 kB / 2.038 GB, free: 69.51 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009235/3.406, allocations: 66.27 kB / 2.038 GB, free: 69.51 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001061/3.406, allocations: 45.38 kB / 2.038 GB, free: 69.51 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001115/3.406, allocations: 72.55 kB / 2.038 GB, free: 69.51 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0004012/3.406, allocations: 463.4 kB / 2.039 GB, free: 69.42 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.001757/3.408, allocations: 0.5675 MB / 2.039 GB, free: 69.42 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.003026/3.411, allocations: 1.701 MB / 2.041 GB, free: 69.21 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.00203/3.413, allocations: 1.471 MB / 2.043 GB, free: 69.2 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 5.891e-06/3.413, allocations: 4.25 kB / 2.043 GB, free: 69.19 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001585/3.415, allocations: 0.8881 MB / 2.043 GB, free: 69.09 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001776/3.416, allocations: 379.5 kB / 2.044 GB, free: 69.08 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004057/3.421, allocations: 2.33 MB / 2.046 GB, free: 68.69 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009651/3.422, allocations: 1.31 MB / 2.047 GB, free: 67.98 MB / 0.5105 GB Notification: Performance of SimCode: time 6.01e-07/3.422, allocations: 0 / 2.047 GB, free: 67.98 MB / 0.5105 GB Notification: Performance of Templates: time 0.03865/3.46, allocations: 33.6 MB / 2.08 GB, free: 67.19 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.sim & ./ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_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_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches