Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.001669/0.001669, allocations: 176.2 kB / 8.151 MB, free: 2.215 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.769/1.769, allocations: 205.2 MB / 213.8 MB, free: 13.87 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.001292/0.001291, allocations: 85.98 kB / 261.8 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.318e-06/9.477e-06, allocations: 0 / 314.3 MB, free: 9.043 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2652/0.2653, allocations: 47.56 MB / 361.8 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.53/1.795, allocations: 0.7109 GB / 1.064 GB, free: 81.5 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003507/1.796, allocations: 100.1 kB / 1.064 GB, free: 81.45 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.374/4.17, allocations: 0.5505 GB / 1.615 GB, free: 24.69 MB / 426.7 MB Notification: Performance of Transformations before backend: time 3.481e-05/4.17, allocations: 18.41 kB / 1.615 GB, free: 24.68 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.002812/4.173, allocations: 0.9612 MB / 1.616 GB, free: 23.67 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.463e-05/4.173, allocations: 8.031 kB / 1.616 GB, free: 23.66 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001033/4.174, allocations: 151.1 kB / 1.616 GB, free: 23.52 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001142/4.175, allocations: 488.8 kB / 1.616 GB, free: 22.99 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.12e-05/4.175, allocations: 20 kB / 1.616 GB, free: 22.97 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001455/4.175, allocations: 51.91 kB / 1.616 GB, free: 22.92 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001957/4.177, allocations: 0.8161 MB / 1.617 GB, free: 22.11 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002007/4.179, allocations: 0.8312 MB / 1.618 GB, free: 21.27 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.737e-05/4.179, allocations: 4 kB / 1.618 GB, free: 21.26 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001375/4.179, allocations: 0 / 1.618 GB, free: 21.26 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.841e-05/4.179, allocations: 20 kB / 1.618 GB, free: 21.24 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007519/4.187, allocations: 3.249 MB / 1.621 GB, free: 17.73 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008666/4.188, allocations: 435.9 kB / 1.622 GB, free: 17.3 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006542/4.188, allocations: 346.1 kB / 1.622 GB, free: 16.96 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.171e-05/4.188, allocations: 20.47 kB / 1.622 GB, free: 16.94 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.199e-05/4.189, allocations: 43.06 kB / 1.622 GB, free: 16.89 MB / 426.7 MB Notification: Performance of pre-optimization done (n=59): time 3.416e-06/4.189, allocations: 0 / 1.622 GB, free: 16.89 MB / 426.7 MB Notification: Performance of matching and sorting (n=71): time 0.0145/4.203, allocations: 3.14 MB / 1.625 GB, free: 13.64 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.672e-05/4.203, allocations: 56.06 kB / 1.625 GB, free: 13.57 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005016/4.204, allocations: 317 kB / 1.626 GB, free: 13.25 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001287/4.204, allocations: 29.7 kB / 1.626 GB, free: 13.22 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001079/4.204, allocations: 322.4 kB / 1.626 GB, free: 12.9 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002054/4.204, allocations: 244.3 kB / 1.626 GB, free: 12.66 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.31e-05/4.204, allocations: 0 / 1.626 GB, free: 12.66 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.827e-05/4.204, allocations: 334.8 kB / 1.626 GB, free: 12.32 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009319/4.205, allocations: 441.4 kB / 1.627 GB, free: 11.89 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009992/4.206, allocations: 0.5038 MB / 1.627 GB, free: 11.36 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001096/4.207, allocations: 0.4924 MB / 1.628 GB, free: 10.87 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/4.207, allocations: 0 / 1.628 GB, free: 10.87 MB / 426.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.003206/4.211, allocations: 1.305 MB / 1.629 GB, free: 9.535 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.232e-05/4.211, allocations: 8 kB / 1.629 GB, free: 9.527 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.31e-05/4.211, allocations: 0 / 1.629 GB, free: 9.527 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001042/4.212, allocations: 330.7 kB / 1.629 GB, free: 9.18 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001874/4.214, allocations: 175.8 kB / 1.63 GB, free: 9.008 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1669/4.38, allocations: 9.805 MB / 1.639 GB, free: 105.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001047/4.382, allocations: 64.23 kB / 1.639 GB, free: 105.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001375/4.382, allocations: 51.69 kB / 1.639 GB, free: 105.9 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.0004764/4.382, allocations: 70.09 kB / 1.639 GB, free: 105.9 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002409/4.382, allocations: 47.78 kB / 1.639 GB, free: 105.9 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00365/4.386, allocations: 1.278 MB / 1.641 GB, free: 105.7 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-05/4.386, allocations: 8.875 kB / 1.641 GB, free: 105.7 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.095e-06/4.386, allocations: 0 / 1.641 GB, free: 105.7 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002499/4.389, allocations: 1.57 MB / 1.642 GB, free: 104.9 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005371/4.394, allocations: 2.132 MB / 1.644 GB, free: 104.6 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.648e-06/4.394, allocations: 2.281 kB / 1.644 GB, free: 104.6 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002374/4.397, allocations: 227 kB / 1.644 GB, free: 104.6 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003449/4.397, allocations: 67.48 kB / 1.645 GB, free: 104.6 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001904/4.397, allocations: 35.78 kB / 1.645 GB, free: 104.6 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001702/4.399, allocations: 1.43 MB / 1.646 GB, free: 103.4 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.503e-06/4.399, allocations: 2.953 kB / 1.646 GB, free: 103.4 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003791/4.403, allocations: 1.579 MB / 1.648 GB, free: 103.2 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003001/4.403, allocations: 126.5 kB / 1.648 GB, free: 103.1 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002223/4.403, allocations: 18.28 kB / 1.648 GB, free: 103.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001537/4.405, allocations: 62.84 kB / 1.648 GB, free: 103.1 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001541/4.405, allocations: 49.73 kB / 1.648 GB, free: 103.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001924/4.405, allocations: 59.36 kB / 1.648 GB, free: 103.1 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0003865/4.406, allocations: 250.9 kB / 1.648 GB, free: 103 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002306/4.408, allocations: 383.2 kB / 1.648 GB, free: 103 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.00446/4.413, allocations: 1.385 MB / 1.65 GB, free: 102.9 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003261/4.416, allocations: 1.734 MB / 1.651 GB, free: 102.2 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.036e-05/4.416, allocations: 0 / 1.651 GB, free: 102.2 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001486/4.417, allocations: 0.6671 MB / 1.652 GB, free: 102.1 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003147/4.421, allocations: 289.4 kB / 1.652 GB, free: 102.1 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006447/4.427, allocations: 1.905 MB / 1.654 GB, free: 101.7 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001346/4.428, allocations: 1.086 MB / 1.655 GB, free: 101 MB / 426.7 MB Notification: Performance of SimCode: time 1.683e-06/4.428, allocations: 3.25 kB / 1.655 GB, free: 101 MB / 426.7 MB Notification: Performance of Templates: time 0.04904/4.478, allocations: 27.97 MB / 1.683 GB, free: 100.6 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.sim & ./Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches