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.001145/0.001145, allocations: 180.9 kB / 8.006 MB, free: 1.07 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.721/1.721, allocations: 205.3 MB / 213.7 MB, free: 1.664 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.0008152/0.0008152, allocations: 86.62 kB / 261.7 MB, free: 1.617 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.2215/0.2215, allocations: 43.49 MB / 353.2 MB, free: 264 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.618e-05/1.619e-05, allocations: 0 / 418.3 MB, free: 28.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1345/0.1346, allocations: 58.86 MB / 477.1 MB, free: 1.621 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.506/2.641, allocations: 0.8254 GB / 1.291 GB, free: 178.3 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003173/2.641, allocations: 97.69 kB / 1.291 GB, free: 178.3 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 2.341/4.982, allocations: 0.7026 GB / 1.994 GB, free: 48.91 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.472e-06/4.982, allocations: 0 / 1.994 GB, free: 48.91 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 9.559e-05/4.982, allocations: 30.89 kB / 1.994 GB, free: 48.88 MB / 0.4948 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.005365/4.988, allocations: 1.554 MB / 1.996 GB, free: 47.29 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.86e-05/4.988, allocations: 12.03 kB / 1.996 GB, free: 47.27 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001953/4.99, allocations: 306.5 kB / 1.996 GB, free: 46.97 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002147/4.992, allocations: 0.8147 MB / 1.997 GB, free: 46.13 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001429/4.992, allocations: 101.4 kB / 1.997 GB, free: 46.02 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004445/4.993, allocations: 64 kB / 1.997 GB, free: 45.96 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002589/4.995, allocations: 1.445 MB / 1.998 GB, free: 44.51 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002421/4.998, allocations: 1.62 MB / 2 GB, free: 42.81 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.24e-05/4.998, allocations: 4 kB / 2 GB, free: 42.81 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001284/4.998, allocations: 4 kB / 2 GB, free: 42.8 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.857e-05/4.998, allocations: 89.81 kB / 2 GB, free: 42.72 MB / 0.4948 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.00812/5.006, allocations: 6.702 MB / 2.006 GB, free: 35.62 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007935/5.007, allocations: 0.7711 MB / 2.007 GB, free: 34.83 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004244/5.007, allocations: 438.2 kB / 2.008 GB, free: 34.4 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002593/5.008, allocations: 239.2 kB / 2.008 GB, free: 34.13 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.037e-05/5.008, allocations: 47.36 kB / 2.008 GB, free: 34.07 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=60): time 2.675e-06/5.008, allocations: 0 / 2.008 GB, free: 34.07 MB / 0.4948 GB Notification: Performance of matching and sorting (n=72): time 0.00815/5.016, allocations: 3.541 MB / 2.011 GB, free: 30.44 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.345e-05/5.016, allocations: 111.6 kB / 2.011 GB, free: 30.3 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006245/5.016, allocations: 0.5768 MB / 2.012 GB, free: 29.72 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 8.111e-05/5.017, allocations: 25.7 kB / 2.012 GB, free: 29.69 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002106/5.017, allocations: 0.5372 MB / 2.013 GB, free: 29.14 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001462/5.017, allocations: 256.3 kB / 2.013 GB, free: 28.89 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.961e-05/5.017, allocations: 0 / 2.013 GB, free: 28.89 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 9.934e-05/5.017, allocations: 390.7 kB / 2.013 GB, free: 28.5 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005984/5.018, allocations: 0.557 MB / 2.014 GB, free: 27.95 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007219/5.018, allocations: 0.8412 MB / 2.015 GB, free: 26.98 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007519/5.019, allocations: 0.6763 MB / 2.015 GB, free: 26.3 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.369e-06/5.019, allocations: 4 kB / 2.015 GB, free: 26.3 MB / 0.4948 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002287/5.021, allocations: 1.836 MB / 2.017 GB, free: 24.46 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.053e-05/5.022, allocations: 12.06 kB / 2.017 GB, free: 24.45 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.337e-05/5.022, allocations: 12 kB / 2.017 GB, free: 24.43 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003886/5.025, allocations: 1.253 MB / 2.018 GB, free: 23.18 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006006/5.026, allocations: 139.8 kB / 2.018 GB, free: 23.04 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00234/5.028, allocations: 1.987 MB / 2.02 GB, free: 21.02 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001126/5.03, allocations: 99.73 kB / 2.02 GB, free: 20.93 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001071/5.03, allocations: 71.98 kB / 2.021 GB, free: 20.86 MB / 0.4948 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.0003231/5.03, allocations: 128.8 kB / 2.021 GB, free: 20.72 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001569/5.03, allocations: 83.23 kB / 2.021 GB, free: 20.64 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001899/5.032, allocations: 1.325 MB / 2.022 GB, free: 19.3 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.304e-06/5.032, allocations: 15.92 kB / 2.022 GB, free: 19.29 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.635e-06/5.032, allocations: 4 kB / 2.022 GB, free: 19.28 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.135e-06/5.032, allocations: 3.984 kB / 2.022 GB, free: 19.28 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003265/5.035, allocations: 2.551 MB / 2.025 GB, free: 16.68 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.059e-06/5.035, allocations: 4 kB / 2.025 GB, free: 16.67 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001713/5.037, allocations: 335.6 kB / 2.025 GB, free: 16.34 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001535/5.037, allocations: 64.8 kB / 2.025 GB, free: 16.28 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.929e-05/5.037, allocations: 23.97 kB / 2.025 GB, free: 16.25 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001789/5.039, allocations: 2.772 MB / 2.028 GB, free: 13.26 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/5.039, allocations: 0 / 2.028 GB, free: 13.26 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002044/5.041, allocations: 1.834 MB / 2.029 GB, free: 11.39 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005375/5.042, allocations: 312 kB / 2.03 GB, free: 11.07 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001426/5.042, allocations: 19.92 kB / 2.03 GB, free: 11.05 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009195/5.043, allocations: 67.86 kB / 2.03 GB, free: 10.98 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001182/5.043, allocations: 52.7 kB / 2.03 GB, free: 10.93 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001108/5.043, allocations: 67.94 kB / 2.03 GB, free: 10.87 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0004956/5.044, allocations: 459.1 kB / 2.03 GB, free: 10.43 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.61e-07/5.044, allocations: 4 kB / 2.03 GB, free: 10.42 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.002097/5.046, allocations: 0.5622 MB / 2.031 GB, free: 9.859 MB / 0.4948 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.002972/5.049, allocations: 1.602 MB / 2.032 GB, free: 8.246 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.00216/5.051, allocations: 1.43 MB / 2.034 GB, free: 6.816 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/5.051, allocations: 1.844 kB / 2.034 GB, free: 6.816 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.00129/5.052, allocations: 0.8324 MB / 2.035 GB, free: 5.973 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002028/5.054, allocations: 407.9 kB / 2.035 GB, free: 5.574 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003911/5.058, allocations: 2.283 MB / 2.037 GB, free: 3.262 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005704/5.059, allocations: 1.202 MB / 2.038 GB, free: 2.035 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.001123/5.06, allocations: 358.7 kB / 2.039 GB, free: 1.68 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003057/5.06, allocations: 95.41 kB / 2.039 GB, free: 1.586 MB / 0.4948 GB Notification: Performance of SimCode: time 1.282e-06/5.06, allocations: 0 / 2.039 GB, free: 1.586 MB / 0.4948 GB Notification: Performance of Templates: time 0.3837/5.444, allocations: 32 MB / 2.07 GB, free: 93.23 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