Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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) 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_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.00096/0.0009601, allocations: 174.3 kB / 8.515 MB, free: 1.84 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.333/1.333, allocations: 221.4 MB / 230.3 MB, free: 7.609 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009459/0.0009459, allocations: 90.55 kB / 281.2 MB, free: 5.438 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.218/0.218, allocations: 44.16 MB / 376.1 MB, free: 3.195 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 8.216e-06/8.236e-06, allocations: 0 / 444 MB, free: 15.58 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1498/0.1498, allocations: 61.91 MB / 0.4941 GB, free: 1.59 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.932/2.082, allocations: 0.7914 GB / 1.286 GB, free: 7.84 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002637/2.082, allocations: 95.44 kB / 1.286 GB, free: 7.75 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.623/4.705, allocations: 0.7026 GB / 1.988 GB, free: 91.4 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001288/4.706, allocations: 29.39 kB / 1.988 GB, free: 91.39 MB / 0.5261 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.007494/4.713, allocations: 1.581 MB / 1.99 GB, free: 90.59 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 6.431e-05/4.713, allocations: 9.438 kB / 1.99 GB, free: 90.59 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002591/4.716, allocations: 313.6 kB / 1.99 GB, free: 90.51 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003122/4.719, allocations: 0.8091 MB / 1.991 GB, free: 90.05 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000196/4.719, allocations: 108.8 kB / 1.991 GB, free: 89.99 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005367/4.72, allocations: 67.11 kB / 1.991 GB, free: 89.98 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00389/4.724, allocations: 1.499 MB / 1.992 GB, free: 89.46 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004584/4.728, allocations: 1.655 MB / 1.994 GB, free: 88.79 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.638e-05/4.728, allocations: 8 kB / 1.994 GB, free: 88.79 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003465/4.729, allocations: 6.438 kB / 1.994 GB, free: 88.79 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001497/4.729, allocations: 89.28 kB / 1.994 GB, free: 88.77 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01439/4.743, allocations: 6.835 MB / 2.001 GB, free: 84.23 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001101/4.744, allocations: 0.6126 MB / 2.001 GB, free: 84.01 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006597/4.745, allocations: 447.9 kB / 2.002 GB, free: 83.85 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002977/4.745, allocations: 275.2 kB / 2.002 GB, free: 83.56 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.636e-05/4.745, allocations: 49.91 kB / 2.002 GB, free: 83.52 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=60): time 2.504e-06/4.745, allocations: 2.5 kB / 2.002 GB, free: 83.52 MB / 0.5261 GB Notification: Performance of matching and sorting (n=72): time 0.01341/4.759, allocations: 3.68 MB / 2.006 GB, free: 82.02 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.323e-05/4.759, allocations: 110.3 kB / 2.006 GB, free: 81.89 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001309/4.76, allocations: 0.5861 MB / 2.006 GB, free: 81.62 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0002734/4.761, allocations: 32.77 kB / 2.006 GB, free: 81.59 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004179/4.761, allocations: 484.4 kB / 2.007 GB, free: 81.23 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003012/4.761, allocations: 250.7 kB / 2.007 GB, free: 81.04 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.248e-05/4.761, allocations: 0 / 2.007 GB, free: 81.04 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001507/4.762, allocations: 388.8 kB / 2.008 GB, free: 80.69 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001105/4.763, allocations: 0.5783 MB / 2.008 GB, free: 80.34 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001144/4.764, allocations: 0.8646 MB / 2.009 GB, free: 79.44 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001459/4.765, allocations: 0.7458 MB / 2.01 GB, free: 78.83 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.806e-06/4.765, allocations: 4 kB / 2.01 GB, free: 78.83 MB / 0.5261 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003254/4.769, allocations: 1.944 MB / 2.012 GB, free: 77.05 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.313e-05/4.769, allocations: 11.94 kB / 2.012 GB, free: 77.04 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.151e-05/4.769, allocations: 8 kB / 2.012 GB, free: 77.03 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004332/4.773, allocations: 1.236 MB / 2.013 GB, free: 75.83 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000735/4.774, allocations: 143.7 kB / 2.013 GB, free: 75.69 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003037/4.777, allocations: 2.112 MB / 2.015 GB, free: 73.56 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001515/4.778, allocations: 92.53 kB / 2.015 GB, free: 73.48 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001842/4.779, allocations: 71.97 kB / 2.015 GB, free: 73.41 MB / 0.5261 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.0005023/4.779, allocations: 128.7 kB / 2.015 GB, free: 73.28 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004015/4.779, allocations: 85.25 kB / 2.015 GB, free: 73.2 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002861/4.782, allocations: 1.589 MB / 2.017 GB, free: 71.62 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.254e-05/4.782, allocations: 15.16 kB / 2.017 GB, free: 71.61 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.115e-05/4.782, allocations: 0 / 2.017 GB, free: 71.61 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.174e-05/4.782, allocations: 7.922 kB / 2.017 GB, free: 71.6 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004912/4.787, allocations: 2.609 MB / 2.02 GB, free: 68.96 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.893e-06/4.787, allocations: 3.625 kB / 2.02 GB, free: 68.96 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002007/4.789, allocations: 319.6 kB / 2.02 GB, free: 68.65 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002202/4.79, allocations: 75.39 kB / 2.02 GB, free: 68.57 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001135/4.79, allocations: 27.97 kB / 2.02 GB, free: 68.55 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002166/4.792, allocations: 2.78 MB / 2.023 GB, free: 65.55 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.912e-06/4.792, allocations: 4.031 kB / 2.023 GB, free: 65.55 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003457/4.795, allocations: 1.884 MB / 2.024 GB, free: 63.64 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001398/4.797, allocations: 320 kB / 2.025 GB, free: 63.32 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000557/4.797, allocations: 19.92 kB / 2.025 GB, free: 63.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001561/4.799, allocations: 59.61 kB / 2.025 GB, free: 63.24 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001549/4.799, allocations: 52.48 kB / 2.025 GB, free: 63.19 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002138/4.799, allocations: 67.94 kB / 2.025 GB, free: 63.12 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0006659/4.8, allocations: 462.8 kB / 2.025 GB, free: 62.68 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.003023/4.803, allocations: 0.5135 MB / 2.026 GB, free: 62.17 MB / 0.5261 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.004573/4.808, allocations: 1.576 MB / 2.027 GB, free: 60.95 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002731/4.81, allocations: 1.473 MB / 2.029 GB, free: 59.49 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.133e-06/4.81, allocations: 0.6562 kB / 2.029 GB, free: 59.49 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001759/4.812, allocations: 0.8876 MB / 2.03 GB, free: 58.59 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002441/4.815, allocations: 383.7 kB / 2.03 GB, free: 58.24 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005648/4.82, allocations: 2.325 MB / 2.032 GB, free: 56.18 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001402/4.822, allocations: 1.323 MB / 2.034 GB, free: 54.85 MB / 0.5261 GB Notification: Performance of SimCode: time 9.61e-07/4.822, allocations: 0 / 2.034 GB, free: 54.85 MB / 0.5261 GB Notification: Performance of Templates: time 0.05253/4.874, allocations: 32.75 MB / 2.066 GB, free: 22.7 MB / 0.5261 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.sim & ./ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/IdealGases/SimpleNaturalGas/SimpleNaturalGas.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches