Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.Tests.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) 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.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="Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas") translateModel(Modelica.Media.Examples.Tests.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="Modelica_3.2.3_Modelica.Media.Examples.Tests.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.001673/0.001673, allocations: 187.6 kB / 8.481 MB, free: 1.871 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.383/1.383, allocations: 205.2 MB / 214.1 MB, free: 5.504 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008993/0.0008993, allocations: 95.61 kB / 262.1 MB, free: 5.566 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.813e-06/6.843e-06, allocations: 0 / 315 MB, free: 41.54 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08236/0.08238, allocations: 47.58 MB / 362.6 MB, free: 10.01 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.278/1.36, allocations: 0.7109 GB / 1.065 GB, free: 11.49 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002852/1.361, allocations: 95.94 kB / 1.065 GB, free: 11.39 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.907/3.268, allocations: 0.5505 GB / 1.616 GB, free: 75.11 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.296e-05/3.268, allocations: 16.84 kB / 1.616 GB, free: 75.11 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.002487/3.27, allocations: 0.9554 MB / 1.616 GB, free: 74.62 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.327e-05/3.27, allocations: 10.69 kB / 1.617 GB, free: 74.62 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000708/3.271, allocations: 145.2 kB / 1.617 GB, free: 74.58 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008069/3.272, allocations: 489.9 kB / 1.617 GB, free: 74.36 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.562e-05/3.272, allocations: 29.53 kB / 1.617 GB, free: 74.36 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.991e-05/3.272, allocations: 43.44 kB / 1.617 GB, free: 74.36 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001165/3.273, allocations: 0.8193 MB / 1.618 GB, free: 74.36 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001264/3.275, allocations: 0.8261 MB / 1.619 GB, free: 74.3 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.863e-05/3.275, allocations: 0 / 1.619 GB, free: 74.3 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.082e-05/3.275, allocations: 6.938 kB / 1.619 GB, free: 74.3 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.786e-05/3.275, allocations: 14.84 kB / 1.619 GB, free: 74.3 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004844/3.28, allocations: 3.252 MB / 1.622 GB, free: 72.82 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000573/3.28, allocations: 436.4 kB / 1.622 GB, free: 72.8 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004235/3.281, allocations: 346.4 kB / 1.623 GB, free: 72.79 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.96e-05/3.281, allocations: 17.53 kB / 1.623 GB, free: 72.79 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.102e-05/3.281, allocations: 49.53 kB / 1.623 GB, free: 72.75 MB / 426.7 MB Notification: Performance of pre-optimization done (n=59): time 2.906e-06/3.281, allocations: 0 / 1.623 GB, free: 72.75 MB / 426.7 MB Notification: Performance of matching and sorting (n=71): time 0.008717/3.289, allocations: 3.149 MB / 1.626 GB, free: 72.07 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.422e-05/3.29, allocations: 62.34 kB / 1.626 GB, free: 72.01 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003756/3.29, allocations: 319.5 kB / 1.626 GB, free: 71.91 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 7.371e-05/3.29, allocations: 26.25 kB / 1.626 GB, free: 71.88 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001667/3.29, allocations: 268.8 kB / 1.627 GB, free: 71.73 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001979/3.29, allocations: 242.3 kB / 1.627 GB, free: 71.6 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.254e-05/3.29, allocations: 0.5312 kB / 1.627 GB, free: 71.6 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001086/3.291, allocations: 353.5 kB / 1.627 GB, free: 71.29 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005511/3.291, allocations: 438.6 kB / 1.627 GB, free: 71.28 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006153/3.292, allocations: 0.4967 MB / 1.628 GB, free: 71.23 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006573/3.292, allocations: 0.4931 MB / 1.628 GB, free: 71.22 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/3.292, allocations: 3.688 kB / 1.628 GB, free: 71.22 MB / 426.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001893/3.294, allocations: 1.323 MB / 1.63 GB, free: 71.08 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.109e-05/3.294, allocations: 3.969 kB / 1.63 GB, free: 71.08 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.07e-05/3.294, allocations: 3.969 kB / 1.63 GB, free: 71.08 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000641/3.295, allocations: 328.3 kB / 1.63 GB, free: 71.02 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009957/3.296, allocations: 182.4 kB / 1.63 GB, free: 71.02 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006208/3.302, allocations: 9.802 MB / 1.64 GB, free: 62.15 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009258/3.303, allocations: 66.67 kB / 1.64 GB, free: 62.14 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001116/3.303, allocations: 50.86 kB / 1.64 GB, free: 62.14 MB / 426.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient.port.Xi[1]:VARIABLE(flow=false min = 0.0 max = 1.0 unit = "kg/kg" nominal = 0.1 ) "Independent mixture mass fractions m_i/m in the connection point" type: Real [6] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient.port.Xi[2]:VARIABLE(flow=false min = 0.0 max = 1.0 unit = "kg/kg" nominal = 0.1 ) "Independent mixture mass fractions m_i/m in the connection point" type: Real [6] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient.port.Xi[3]:VARIABLE(flow=false min = 0.0 max = 1.0 unit = "kg/kg" nominal = 0.1 ) "Independent mixture mass fractions m_i/m in the connection point" type: Real [6] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient.port.Xi[4]:VARIABLE(flow=false min = 0.0 max = 1.0 unit = "kg/kg" nominal = 0.1 ) "Independent mixture mass fractions m_i/m in the connection point" type: Real [6] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient.port.Xi[5]:VARIABLE(flow=false min = 0.0 max = 1.0 unit = "kg/kg" nominal = 0.1 ) "Independent mixture mass fractions m_i/m in the connection point" type: Real [6] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient.port.Xi[6]:VARIABLE(flow=false min = 0.0 max = 1.0 unit = "kg/kg" nominal = 0.1 ) "Independent mixture mass fractions m_i/m in the connection point" type: Real [6] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * Single equations (assignments): 72 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 8 {1 1,1 1,1 1,1 1,1 1,1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0004637/3.304, allocations: 145.6 kB / 1.64 GB, free: 62.02 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001608/3.304, allocations: 49.5 kB / 1.64 GB, free: 62 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002102/3.306, allocations: 1.284 MB / 1.641 GB, free: 61.87 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.754e-06/3.306, allocations: 9.562 kB / 1.641 GB, free: 61.87 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/3.306, allocations: 0 / 1.641 GB, free: 61.87 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001358/3.307, allocations: 1.566 MB / 1.643 GB, free: 61.04 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002893/3.31, allocations: 2.135 MB / 1.645 GB, free: 60.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/3.31, allocations: 7.844 kB / 1.645 GB, free: 60.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00122/3.312, allocations: 222.2 kB / 1.645 GB, free: 60.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001889/3.312, allocations: 71.17 kB / 1.645 GB, free: 60.69 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.466e-05/3.312, allocations: 31.25 kB / 1.645 GB, free: 60.69 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009765/3.313, allocations: 1.427 MB / 1.647 GB, free: 59.49 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/3.313, allocations: 3.969 kB / 1.647 GB, free: 59.49 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00177/3.315, allocations: 1.576 MB / 1.648 GB, free: 59.23 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000213/3.315, allocations: 130.2 kB / 1.648 GB, free: 59.11 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001193/3.315, allocations: 17.14 kB / 1.648 GB, free: 59.11 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008031/3.316, allocations: 59.22 kB / 1.648 GB, free: 59.11 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001056/3.316, allocations: 57.67 kB / 1.649 GB, free: 59.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001153/3.316, allocations: 61.28 kB / 1.649 GB, free: 59.1 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0002688/3.316, allocations: 249.4 kB / 1.649 GB, free: 59.03 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002059/3.318, allocations: 377.3 kB / 1.649 GB, free: 59.01 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (77): * 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): 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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003215/3.322, allocations: 1.38 MB / 1.651 GB, free: 58.81 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002296/3.324, allocations: 1.738 MB / 1.652 GB, free: 58.09 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.722e-06/3.324, allocations: 3.812 kB / 1.652 GB, free: 58.09 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008436/3.325, allocations: 0.6629 MB / 1.653 GB, free: 57.97 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001529/3.326, allocations: 297.4 kB / 1.653 GB, free: 57.96 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003624/3.33, allocations: 1.839 MB / 1.655 GB, free: 57.62 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008306/3.331, allocations: 1.082 MB / 1.656 GB, free: 56.91 MB / 426.7 MB Notification: Performance of SimCode: time 4.81e-07/3.331, allocations: 0 / 1.656 GB, free: 56.91 MB / 426.7 MB Notification: Performance of Templates: time 0.04036/3.371, allocations: 26.02 MB / 1.681 GB, free: 45.42 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.makefile (rm -f Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.sim & ./Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/Tests/MediaTestModels/IdealGases/SimpleNaturalGas/SimpleNaturalGas.csv","../files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches