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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001131/0.001131, allocations: 183.7 kB / 13.19 MB, free: 2.129 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.336/1.336, allocations: 205.2 MB / 218.9 MB, free: 9.207 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.0007787/0.0007788, allocations: 91.72 kB / 267.1 MB, free: 9.277 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.3586/0.3586, allocations: 43.47 MB / 358.6 MB, free: 51.6 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 2.993e-05/2.995e-05, allocations: 7.938 kB / 425.3 MB, free: 8.203 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1163/0.1163, allocations: 58.84 MB / 484.2 MB, free: 13.25 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.977/2.093, allocations: 0.8261 GB / 1.299 GB, free: 140.4 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002705/2.094, allocations: 91.91 kB / 1.299 GB, free: 140.4 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.089/4.183, allocations: 0.7125 GB / 2.011 GB, free: 71.97 MB / 0.5105 GB Notification: Performance of FrontEnd: time 9.72e-07/4.183, allocations: 0 / 2.011 GB, free: 71.97 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 5.733e-05/4.183, allocations: 30.28 kB / 2.011 GB, free: 71.96 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.003557/4.186, allocations: 1.563 MB / 2.013 GB, free: 71.03 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.563e-05/4.186, allocations: 11.75 kB / 2.013 GB, free: 71.03 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001294/4.188, allocations: 312.8 kB / 2.013 GB, free: 70.94 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001431/4.189, allocations: 0.7975 MB / 2.014 GB, free: 70.5 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.876e-05/4.189, allocations: 142.8 kB / 2.014 GB, free: 70.4 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001696/4.189, allocations: 107.6 kB / 2.014 GB, free: 70.36 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002215/4.192, allocations: 1.763 MB / 2.016 GB, free: 69.59 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.889e-05/4.192, allocations: 7.031 kB / 2.016 GB, free: 69.59 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001388/4.192, allocations: 47.02 kB / 2.016 GB, free: 69.55 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.998e-05/4.192, allocations: 81.23 kB / 2.016 GB, free: 69.54 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001938/4.194, allocations: 1.597 MB / 2.018 GB, free: 68.98 MB / 0.5105 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007453/4.201, allocations: 6.87 MB / 2.024 GB, free: 64.34 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008355/4.202, allocations: 0.784 MB / 2.025 GB, free: 64.02 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004445/4.203, allocations: 431.1 kB / 2.026 GB, free: 63.86 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002043/4.203, allocations: 248.3 kB / 2.026 GB, free: 63.65 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.645e-05/4.203, allocations: 50.73 kB / 2.026 GB, free: 63.6 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=60): time 3.045e-06/4.203, allocations: 3.5 kB / 2.026 GB, free: 63.6 MB / 0.5105 GB Notification: Performance of matching and sorting (n=72): time 0.008252/4.211, allocations: 3.756 MB / 2.03 GB, free: 59.93 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.284e-05/4.211, allocations: 111.6 kB / 2.03 GB, free: 59.79 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001072/4.212, allocations: 0.9792 MB / 2.031 GB, free: 58.79 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 9.728e-05/4.212, allocations: 45.7 kB / 2.031 GB, free: 58.73 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002487/4.213, allocations: 0.513 MB / 2.031 GB, free: 58.21 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001479/4.213, allocations: 274.1 kB / 2.031 GB, free: 57.95 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.59e-05/4.213, allocations: 20 kB / 2.031 GB, free: 57.93 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 7.552e-05/4.213, allocations: 349.9 kB / 2.032 GB, free: 57.58 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006697/4.214, allocations: 0.5564 MB / 2.032 GB, free: 57.02 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007556/4.214, allocations: 0.8485 MB / 2.033 GB, free: 56.05 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007643/4.215, allocations: 0.6735 MB / 2.034 GB, free: 55.38 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/4.215, allocations: 4 kB / 2.034 GB, free: 55.38 MB / 0.5105 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002307/4.217, allocations: 1.944 MB / 2.036 GB, free: 53.43 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.17e-05/4.217, allocations: 8 kB / 2.036 GB, free: 53.42 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.238e-05/4.217, allocations: 10.84 kB / 2.036 GB, free: 53.41 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004119/4.222, allocations: 1.363 MB / 2.037 GB, free: 52.05 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005303/4.222, allocations: 139.8 kB / 2.037 GB, free: 51.91 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00211/4.224, allocations: 1.906 MB / 2.039 GB, free: 49.98 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001231/4.225, allocations: 119.7 kB / 2.039 GB, free: 49.86 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001057/4.226, allocations: 63.98 kB / 2.039 GB, free: 49.8 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.0002743/4.226, allocations: 167.5 kB / 2.039 GB, free: 49.63 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001682/4.226, allocations: 110.8 kB / 2.04 GB, free: 49.52 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001983/4.228, allocations: 1.378 MB / 2.041 GB, free: 48.12 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.933e-06/4.228, allocations: 8 kB / 2.041 GB, free: 48.11 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/4.228, allocations: 0 / 2.041 GB, free: 48.11 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/4.228, allocations: 3.984 kB / 2.041 GB, free: 48.11 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003519/4.232, allocations: 2.667 MB / 2.043 GB, free: 45.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.718e-06/4.232, allocations: 3.953 kB / 2.043 GB, free: 45.4 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001608/4.233, allocations: 331.6 kB / 2.044 GB, free: 45.07 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001538/4.233, allocations: 60.8 kB / 2.044 GB, free: 45.01 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.284e-05/4.233, allocations: 39.97 kB / 2.044 GB, free: 44.97 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001522/4.235, allocations: 2.84 MB / 2.047 GB, free: 41.88 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/4.235, allocations: 4 kB / 2.047 GB, free: 41.87 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002147/4.237, allocations: 1.854 MB / 2.048 GB, free: 39.99 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007273/4.238, allocations: 351.7 kB / 2.049 GB, free: 39.62 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001558/4.238, allocations: 27.98 kB / 2.049 GB, free: 39.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009013/4.239, allocations: 87.77 kB / 2.049 GB, free: 39.51 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001113/4.239, allocations: 54.56 kB / 2.049 GB, free: 39.46 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001011/4.239, allocations: 71.89 kB / 2.049 GB, free: 39.39 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0008302/4.24, allocations: 0.7739 MB / 2.05 GB, free: 38.6 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.4e-07/4.24, allocations: 0 / 2.05 GB, free: 38.6 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.00194/4.242, allocations: 0.6247 MB / 2.05 GB, free: 37.98 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.002737/4.245, allocations: 1.432 MB / 2.052 GB, free: 36.74 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.002095/4.247, allocations: 1.442 MB / 2.053 GB, free: 35.3 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 5.73e-06/4.247, allocations: 2.031 kB / 2.053 GB, free: 35.3 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001224/4.248, allocations: 0.8277 MB / 2.054 GB, free: 34.46 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003085/4.251, allocations: 0.7244 MB / 2.055 GB, free: 33.75 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003543/4.255, allocations: 2.393 MB / 2.057 GB, free: 31.36 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005571/4.255, allocations: 1.203 MB / 2.058 GB, free: 30.13 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.001296/4.257, allocations: 408 kB / 2.059 GB, free: 29.76 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003227/4.257, allocations: 111.4 kB / 2.059 GB, free: 29.65 MB / 0.5105 GB Notification: Performance of SimCode: time 7.61e-07/4.257, allocations: 3.188 kB / 2.059 GB, free: 29.65 MB / 0.5105 GB Notification: Performance of Templates: time 0.3176/4.575, allocations: 51.05 MB / 2.109 GB, free: 66.68 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