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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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) 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001078/0.001078, allocations: 104.1 kB / 16.27 MB, free: 6.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001097/0.001097, allocations: 191.8 kB / 17.2 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.523/1.523, allocations: 205.1 MB / 223.1 MB, free: 12.31 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2381/0.2381, allocations: 43.53 MB / 313.9 MB, free: 0.5195 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001492/0.001492, allocations: 71.05 kB / 382.7 MB, free: 56.71 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1369/0.1384, allocations: 57.79 MB / 440.5 MB, free: 6.902 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.5652/0.7037, allocations: 183.1 MB / 0.609 GB, free: 7.605 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.009898/0.7136, allocations: 6.97 MB / 0.6158 GB, free: 2.602 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001005/0.7147, allocations: 20.41 kB / 0.6158 GB, free: 2.594 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001357/0.7161, allocations: 437 kB / 0.6162 GB, free: 2.238 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00573/0.7219, allocations: 2.014 MB / 0.6182 GB, free: 0.7695 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005051/0.7269, allocations: 1.709 MB / 0.6199 GB, free: 15.55 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.003446/0.7304, allocations: 2.231 MB / 0.6221 GB, free: 14.32 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001517/0.7319, allocations: 0.7555 MB / 0.6228 GB, free: 13.86 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005199/0.7371, allocations: 1.932 MB / 0.6247 GB, free: 12.37 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003464/0.7406, allocations: 1.577 MB / 0.6262 GB, free: 10.79 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000523/0.7412, allocations: 100 kB / 0.6263 GB, free: 10.69 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004673/0.7458, allocations: 1.634 MB / 0.6279 GB, free: 9.055 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001172/0.747, allocations: 0.682 MB / 0.6286 GB, free: 8.371 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002853/0.7499, allocations: 0.7626 MB / 0.6293 GB, free: 7.605 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006265/0.7562, allocations: 2.755 MB / 0.632 GB, free: 4.844 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.7562, allocations: 4 kB / 0.632 GB, free: 4.84 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.7562, allocations: 4 kB / 0.632 GB, free: 4.836 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.969e-05/0.7563, allocations: 0 / 0.632 GB, free: 4.836 MB / 446.1 MB 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.005283/0.7616, allocations: 1.689 MB / 0.6337 GB, free: 3.098 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.068e-05/0.7616, allocations: 11.89 kB / 0.6337 GB, free: 3.086 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001646/0.7633, allocations: 315.1 kB / 0.634 GB, free: 2.777 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001601/0.7649, allocations: 0.7416 MB / 0.6347 GB, free: 1.992 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002023/0.7651, allocations: 145.3 kB / 0.6348 GB, free: 1.836 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002137/0.7654, allocations: 103.9 kB / 0.6349 GB, free: 1.734 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003342/0.7687, allocations: 1.841 MB / 0.6367 GB, free: 15.82 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.328e-05/0.7688, allocations: 7.938 kB / 0.6367 GB, free: 15.82 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001456/0.7689, allocations: 47.98 kB / 0.6368 GB, free: 15.77 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001155/0.769, allocations: 93.95 kB / 0.6369 GB, free: 15.68 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00255/0.7716, allocations: 1.694 MB / 0.6385 GB, free: 13.98 MB / 462.1 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.009806/0.7814, allocations: 7.037 MB / 0.6454 GB, free: 6.473 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001319/0.7827, allocations: 0.872 MB / 0.6463 GB, free: 5.598 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006291/0.7834, allocations: 450.3 kB / 0.6467 GB, free: 5.156 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001723/0.7836, allocations: 143.7 kB / 0.6468 GB, free: 4.996 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.493e-05/0.7836, allocations: 47.12 kB / 0.6469 GB, free: 4.938 MB / 462.1 MB Notification: Performance of pre-optimization done (n=60): time 4.729e-06/0.7836, allocations: 4 kB / 0.6469 GB, free: 4.934 MB / 462.1 MB Notification: Performance of matching and sorting (n=72): time 0.01107/0.7947, allocations: 4.24 MB / 0.651 GB, free: 0.6133 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.451e-05/0.7948, allocations: 111.5 kB / 0.6511 GB, free: 492 kB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001559/0.7964, allocations: 1.109 MB / 0.6522 GB, free: 15.35 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001154/0.7965, allocations: 45.7 kB / 0.6522 GB, free: 15.3 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004373/0.7969, allocations: 0.5145 MB / 0.6527 GB, free: 14.77 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002615/0.7972, allocations: 268.3 kB / 0.653 GB, free: 14.51 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003707/0.7976, allocations: 206.5 kB / 0.6532 GB, free: 14.3 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.7977, allocations: 349.9 kB / 0.6535 GB, free: 13.95 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009178/0.7987, allocations: 0.5875 MB / 0.6541 GB, free: 13.37 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001112/0.7998, allocations: 0.8643 MB / 0.655 GB, free: 12.38 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001936/0.8017, allocations: 1.451 MB / 0.6564 GB, free: 10.82 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.785e-06/0.8018, allocations: 4 kB / 0.6564 GB, free: 10.82 MB / 478.1 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003243/0.805, allocations: 2 MB / 0.6583 GB, free: 8.805 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.926e-05/0.805, allocations: 8 kB / 0.6583 GB, free: 8.797 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.848e-05/0.8051, allocations: 8.875 kB / 0.6583 GB, free: 8.789 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004756/0.8098, allocations: 1.332 MB / 0.6596 GB, free: 7.453 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006698/0.8105, allocations: 147.7 kB / 0.6598 GB, free: 7.309 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002838/0.8134, allocations: 1.924 MB / 0.6617 GB, free: 5.359 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001124/0.8145, allocations: 43.97 kB / 0.6617 GB, free: 5.316 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001573/0.8147, allocations: 63.98 kB / 0.6618 GB, free: 5.254 MB / 478.1 MB 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(9,35)} Notification: Performance of prepare postOptimizeDAE: time 0.0008014/0.8155, allocations: 401.5 kB / 0.6621 GB, free: 4.852 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003669/0.8159, allocations: 110.8 kB / 0.6623 GB, free: 4.742 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002657/0.8185, allocations: 1.391 MB / 0.6636 GB, free: 3.34 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-05/0.8186, allocations: 12 kB / 0.6636 GB, free: 3.328 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.989e-06/0.8186, allocations: 0 / 0.6636 GB, free: 3.328 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.383e-05/0.8186, allocations: 8.172 kB / 0.6636 GB, free: 3.32 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004753/0.8234, allocations: 2.692 MB / 0.6663 GB, free: 0.5625 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.602e-06/0.8234, allocations: 7.875 kB / 0.6663 GB, free: 0.5547 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001794/0.8252, allocations: 323.6 kB / 0.6666 GB, free: 244 kB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002034/0.8254, allocations: 76.72 kB / 0.6666 GB, free: 164 kB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.928e-05/0.8255, allocations: 35.97 kB / 0.6667 GB, free: 128 kB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002855/0.8284, allocations: 3.033 MB / 0.6696 GB, free: 12.81 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.8284, allocations: 0 / 0.6696 GB, free: 12.81 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003487/0.8319, allocations: 1.899 MB / 0.6715 GB, free: 10.89 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008532/0.8327, allocations: 331.6 kB / 0.6718 GB, free: 10.55 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003637/0.8331, allocations: 27.98 kB / 0.6718 GB, free: 10.52 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001152/0.8343, allocations: 52.02 kB / 0.6719 GB, free: 10.47 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000198/0.8345, allocations: 64.5 kB / 0.672 GB, free: 10.41 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001639/0.8347, allocations: 63.95 kB / 0.672 GB, free: 10.35 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00153/0.8362, allocations: 0.7892 MB / 0.6728 GB, free: 9.547 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.8362, allocations: 0 / 0.6728 GB, free: 9.547 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002497/0.8387, allocations: 0.5271 MB / 0.6733 GB, free: 9.02 MB / 494.1 MB 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 () * Number of clocked 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 (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003331/0.8421, allocations: 0.8008 MB / 0.6741 GB, free: 8.215 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.004032/0.8461, allocations: 1.798 MB / 0.6758 GB, free: 6.418 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.375e-05/0.8461, allocations: 0.6562 kB / 0.6758 GB, free: 6.414 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001847/0.848, allocations: 0.8615 MB / 0.6767 GB, free: 5.539 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004055/0.8521, allocations: 0.7648 MB / 0.6774 GB, free: 4.777 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006044/0.8581, allocations: 2.92 MB / 0.6803 GB, free: 1.824 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001027/0.8592, allocations: 1.176 MB / 0.6814 GB, free: 0.6172 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001798/0.861, allocations: 413.8 kB / 0.6818 GB, free: 216 kB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004464/0.8614, allocations: 111.4 kB / 0.6819 GB, free: 104 kB / 494.1 MB Notification: Performance of SimCode: time 9.42e-07/0.8614, allocations: 0 / 0.6819 GB, free: 104 kB / 494.1 MB Notification: Performance of Templates: time 0.07005/0.9315, allocations: 39.56 MB / 0.7206 GB, free: 8.547 MB / 0.5294 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches