Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001164/0.001164, allocations: 108.2 kB / 18.39 MB, free: 4.629 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.001088/0.001088, allocations: 182.9 kB / 19.33 MB, free: 3.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.36/1.36, allocations: 222.9 MB / 243 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2061/0.2061, allocations: 44.19 MB / 337.4 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001283/0.001283, allocations: 66.81 kB / 409.9 MB, free: 26.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1197/0.121, allocations: 60.83 MB / 470.7 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.419/0.54, allocations: 177.1 MB / 0.6327 GB, free: 15.04 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.008453/0.5485, allocations: 6.505 MB / 0.639 GB, free: 8.512 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005344/0.5491, allocations: 19.88 kB / 0.639 GB, free: 8.492 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001071/0.5502, allocations: 437.5 kB / 0.6394 GB, free: 8.062 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00382/0.554, allocations: 1.745 MB / 0.6411 GB, free: 6.32 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00346/0.5575, allocations: 1.513 MB / 0.6426 GB, free: 4.812 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.002625/0.5601, allocations: 2.228 MB / 0.6448 GB, free: 2.578 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001135/0.5613, allocations: 0.7634 MB / 0.6455 GB, free: 1.812 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003306/0.5646, allocations: 1.745 MB / 0.6473 GB, free: 64 kB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002522/0.5672, allocations: 1.585 MB / 0.6488 GB, free: 14.47 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002059/0.5674, allocations: 100 kB / 0.6489 GB, free: 14.38 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002645/0.57, allocations: 1.333 MB / 0.6502 GB, free: 13.04 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006326/0.5707, allocations: 0.686 MB / 0.6509 GB, free: 12.35 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008818/0.5716, allocations: 0.7626 MB / 0.6516 GB, free: 11.59 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003167/0.5747, allocations: 2.614 MB / 0.6542 GB, free: 8.965 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.5748, allocations: 3.938 kB / 0.6542 GB, free: 8.961 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.5748, allocations: 0 / 0.6542 GB, free: 8.961 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.698e-05/0.5748, allocations: 0 / 0.6542 GB, free: 8.961 MB / 494.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.00346/0.5783, allocations: 1.715 MB / 0.6558 GB, free: 7.195 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/0.5783, allocations: 12.03 kB / 0.6559 GB, free: 7.184 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001492/0.5798, allocations: 314.2 kB / 0.6562 GB, free: 6.875 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001559/0.5814, allocations: 0.761 MB / 0.6569 GB, free: 6.07 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001508/0.5816, allocations: 149.3 kB / 0.657 GB, free: 5.91 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001897/0.5818, allocations: 104 kB / 0.6571 GB, free: 5.809 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002745/0.5845, allocations: 1.837 MB / 0.6589 GB, free: 3.902 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.988e-05/0.5846, allocations: 15.84 kB / 0.6589 GB, free: 3.887 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001475/0.5847, allocations: 43.98 kB / 0.659 GB, free: 3.844 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001099/0.5848, allocations: 93.95 kB / 0.6591 GB, free: 3.754 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002523/0.5874, allocations: 1.694 MB / 0.6607 GB, free: 2.059 MB / 494.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.01016/0.5975, allocations: 6.884 MB / 0.6675 GB, free: 10.7 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001341/0.5989, allocations: 0.8748 MB / 0.6683 GB, free: 9.816 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006353/0.5996, allocations: 454.3 kB / 0.6687 GB, free: 9.367 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001413/0.5997, allocations: 97.66 kB / 0.6688 GB, free: 9.254 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.886e-05/0.5998, allocations: 51.06 kB / 0.6689 GB, free: 9.195 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=60): time 2.444e-06/0.5998, allocations: 0 / 0.6689 GB, free: 9.195 MB / 0.4981 GB Notification: Performance of matching and sorting (n=72): time 0.01081/0.6106, allocations: 4.109 MB / 0.6729 GB, free: 5.02 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.546e-05/0.6107, allocations: 111.5 kB / 0.673 GB, free: 4.887 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001366/0.6121, allocations: 1.113 MB / 0.6741 GB, free: 3.75 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.000101/0.6122, allocations: 41.7 kB / 0.6741 GB, free: 3.703 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000381/0.6125, allocations: 0.5223 MB / 0.6746 GB, free: 3.172 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002284/0.6128, allocations: 256.3 kB / 0.6749 GB, free: 2.918 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003657/0.6132, allocations: 210.5 kB / 0.6751 GB, free: 2.707 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000128/0.6133, allocations: 353.9 kB / 0.6754 GB, free: 2.355 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009348/0.6142, allocations: 0.5836 MB / 0.676 GB, free: 1.773 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001115/0.6154, allocations: 0.8721 MB / 0.6768 GB, free: 0.7812 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00198/0.6173, allocations: 1.447 MB / 0.6783 GB, free: 15.22 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.631e-06/0.6174, allocations: 4 kB / 0.6783 GB, free: 15.22 MB / 0.5137 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003178/0.6205, allocations: 2.008 MB / 0.6802 GB, free: 13.2 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.289e-05/0.6206, allocations: 11.94 kB / 0.6802 GB, free: 13.18 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.296e-05/0.6206, allocations: 8 kB / 0.6802 GB, free: 13.18 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004912/0.6255, allocations: 1.347 MB / 0.6816 GB, free: 11.84 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006265/0.6262, allocations: 143.8 kB / 0.6817 GB, free: 11.7 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002769/0.629, allocations: 1.924 MB / 0.6836 GB, free: 9.742 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000906/0.6299, allocations: 44.16 kB / 0.6836 GB, free: 9.699 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001255/0.63, allocations: 67.98 kB / 0.6837 GB, free: 9.633 MB / 0.5137 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 () * 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.0006085/0.6306, allocations: 405.4 kB / 0.6841 GB, free: 9.227 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002263/0.6309, allocations: 118.6 kB / 0.6842 GB, free: 9.109 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002562/0.6334, allocations: 1.492 MB / 0.6856 GB, free: 7.605 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.375e-06/0.6334, allocations: 11.94 kB / 0.6856 GB, free: 7.594 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.952e-06/0.6335, allocations: 0 / 0.6856 GB, free: 7.594 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.055e-06/0.6335, allocations: 3.984 kB / 0.6857 GB, free: 7.59 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004186/0.6377, allocations: 2.688 MB / 0.6883 GB, free: 4.836 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.097e-06/0.6377, allocations: 0 / 0.6883 GB, free: 4.836 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001836/0.6395, allocations: 319.6 kB / 0.6886 GB, free: 4.523 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001839/0.6397, allocations: 76.72 kB / 0.6887 GB, free: 4.445 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.66e-05/0.6398, allocations: 39.97 kB / 0.6887 GB, free: 4.406 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002366/0.6422, allocations: 3.021 MB / 0.6916 GB, free: 1.102 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.6422, allocations: 0 / 0.6916 GB, free: 1.102 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002877/0.6451, allocations: 1.908 MB / 0.6935 GB, free: 15.18 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008552/0.646, allocations: 339.6 kB / 0.6938 GB, free: 14.82 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002499/0.6462, allocations: 27.98 kB / 0.6939 GB, free: 14.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009294/0.6472, allocations: 47.89 kB / 0.6939 GB, free: 14.75 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001785/0.6473, allocations: 72.55 kB / 0.694 GB, free: 14.68 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001551/0.6475, allocations: 67.89 kB / 0.694 GB, free: 14.61 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001197/0.6487, allocations: 0.7931 MB / 0.6948 GB, free: 13.8 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.61e-07/0.6487, allocations: 0 / 0.6948 GB, free: 13.8 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001607/0.6503, allocations: 483.8 kB / 0.6953 GB, free: 13.33 MB / 0.5294 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 () * 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.002115/0.6525, allocations: 0.6615 MB / 0.6959 GB, free: 12.67 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.002736/0.6552, allocations: 1.474 MB / 0.6974 GB, free: 11.2 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.115e-06/0.6552, allocations: 4.656 kB / 0.6974 GB, free: 11.19 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001736/0.657, allocations: 0.8653 MB / 0.6982 GB, free: 10.32 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003169/0.6602, allocations: 0.763 MB / 0.699 GB, free: 9.57 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005104/0.6653, allocations: 2.903 MB / 0.7018 GB, free: 6.645 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008509/0.6661, allocations: 1.183 MB / 0.7029 GB, free: 5.43 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001388/0.6675, allocations: 485.5 kB / 0.7034 GB, free: 4.957 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003976/0.668, allocations: 115.4 kB / 0.7035 GB, free: 4.848 MB / 0.5294 GB Notification: Performance of SimCode: time 5.81e-07/0.668, allocations: 0 / 0.7035 GB, free: 4.848 MB / 0.5294 GB Notification: Performance of Templates: time 0.2308/0.8988, allocations: 38.93 MB / 0.7415 GB, free: 186.4 MB / 0.5294 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.sim & ./ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/IdealGases/SimpleNaturalGas/SimpleNaturalGas.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches