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.001674/0.001674, allocations: 111.1 kB / 17.33 MB, free: 6.02 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.001915/0.001915, allocations: 193.3 kB / 18.25 MB, free: 5.113 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.468/1.468, allocations: 222.9 MB / 241.9 MB, free: 13.73 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.2181/0.2181, allocations: 44.17 MB / 336.2 MB, free: 2.719 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 60.42 kB / 407.9 MB, free: 27.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1188/0.1201, allocations: 60.84 MB / 468.7 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.4242/0.5444, allocations: 175.3 MB / 0.629 GB, free: 1.773 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.009124/0.5536, allocations: 6.571 MB / 0.6354 GB, free: 11.18 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008848/0.5545, allocations: 23.81 kB / 0.6354 GB, free: 11.16 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001283/0.5558, allocations: 398.1 kB / 0.6358 GB, free: 10.77 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004206/0.5601, allocations: 1.637 MB / 0.6374 GB, free: 9.125 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003892/0.564, allocations: 1.418 MB / 0.6388 GB, free: 7.715 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.002864/0.5669, allocations: 2.235 MB / 0.641 GB, free: 5.473 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001305/0.5682, allocations: 0.7314 MB / 0.6417 GB, free: 4.738 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004205/0.5724, allocations: 1.764 MB / 0.6434 GB, free: 2.969 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002937/0.5753, allocations: 1.714 MB / 0.6451 GB, free: 1.25 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003349/0.5757, allocations: 100 kB / 0.6452 GB, free: 1.152 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003405/0.5791, allocations: 1.696 MB / 0.6468 GB, free: 15.45 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008039/0.5799, allocations: 0.6937 MB / 0.6475 GB, free: 14.76 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001352/0.5813, allocations: 0.7626 MB / 0.6482 GB, free: 13.99 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004529/0.5858, allocations: 2.778 MB / 0.651 GB, free: 11.21 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.5859, allocations: 0 / 0.651 GB, free: 11.21 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.5859, allocations: 0 / 0.651 GB, free: 11.21 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.798e-05/0.586, allocations: 0 / 0.651 GB, free: 11.21 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.005088/0.5911, allocations: 1.715 MB / 0.6526 GB, free: 9.441 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.5911, allocations: 12.03 kB / 0.6526 GB, free: 9.43 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001744/0.5929, allocations: 314.2 kB / 0.6529 GB, free: 9.121 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001478/0.5944, allocations: 0.7416 MB / 0.6537 GB, free: 8.336 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001323/0.5945, allocations: 146.4 kB / 0.6538 GB, free: 8.18 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002227/0.5947, allocations: 107.8 kB / 0.6539 GB, free: 8.074 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003277/0.598, allocations: 1.845 MB / 0.6557 GB, free: 6.16 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.75e-05/0.5981, allocations: 3.938 kB / 0.6557 GB, free: 6.156 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001669/0.5982, allocations: 47.98 kB / 0.6558 GB, free: 6.109 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001092/0.5984, allocations: 93.95 kB / 0.6558 GB, free: 6.02 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002854/0.6012, allocations: 1.694 MB / 0.6575 GB, free: 4.324 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.01127/0.6125, allocations: 6.975 MB / 0.6643 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001542/0.6141, allocations: 0.8773 MB / 0.6652 GB, free: 11.99 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006705/0.6148, allocations: 446.3 kB / 0.6656 GB, free: 11.55 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001577/0.6149, allocations: 113.7 kB / 0.6657 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.149e-05/0.615, allocations: 51.06 kB / 0.6658 GB, free: 11.37 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=60): time 3.897e-06/0.615, allocations: 0 / 0.6658 GB, free: 11.37 MB / 0.4981 GB Notification: Performance of matching and sorting (n=72): time 0.01176/0.6268, allocations: 4.247 MB / 0.6699 GB, free: 7.062 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.658e-05/0.6269, allocations: 107.5 kB / 0.67 GB, free: 6.934 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001543/0.6284, allocations: 1.105 MB / 0.6711 GB, free: 5.805 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001369/0.6286, allocations: 45.7 kB / 0.6711 GB, free: 5.754 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004669/0.629, allocations: 0.5184 MB / 0.6716 GB, free: 5.227 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003226/0.6294, allocations: 264.3 kB / 0.6719 GB, free: 4.965 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003912/0.6298, allocations: 214.5 kB / 0.6721 GB, free: 4.75 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001485/0.6299, allocations: 349.9 kB / 0.6724 GB, free: 4.402 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009568/0.6309, allocations: 0.5797 MB / 0.673 GB, free: 3.824 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001207/0.6321, allocations: 0.876 MB / 0.6738 GB, free: 2.824 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00207/0.6342, allocations: 1.447 MB / 0.6753 GB, free: 1.27 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.633e-06/0.6342, allocations: 4 kB / 0.6753 GB, free: 1.266 MB / 0.4981 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003436/0.6376, allocations: 2.004 MB / 0.6772 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.942e-05/0.6377, allocations: 8 kB / 0.6772 GB, free: 15.24 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.34e-05/0.6377, allocations: 8 kB / 0.6772 GB, free: 15.23 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004942/0.6427, allocations: 1.355 MB / 0.6786 GB, free: 13.88 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006124/0.6433, allocations: 147.7 kB / 0.6787 GB, free: 13.74 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00289/0.6462, allocations: 1.928 MB / 0.6806 GB, free: 11.78 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001183/0.6474, allocations: 107.8 kB / 0.6807 GB, free: 11.68 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001267/0.6475, allocations: 67.98 kB / 0.6807 GB, free: 11.61 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.0007265/0.6483, allocations: 398 kB / 0.6811 GB, free: 11.21 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002949/0.6486, allocations: 118.6 kB / 0.6812 GB, free: 11.09 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002746/0.6513, allocations: 1.498 MB / 0.6827 GB, free: 9.586 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.738e-06/0.6513, allocations: 8 kB / 0.6827 GB, free: 9.578 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.334e-06/0.6514, allocations: 4.188 kB / 0.6827 GB, free: 9.574 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.656e-06/0.6514, allocations: 7.984 kB / 0.6827 GB, free: 9.566 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004364/0.6557, allocations: 2.68 MB / 0.6853 GB, free: 6.82 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.6558, allocations: 4.031 kB / 0.6853 GB, free: 6.816 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0019/0.6577, allocations: 319.6 kB / 0.6856 GB, free: 6.504 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002/0.6579, allocations: 76.69 kB / 0.6857 GB, free: 6.426 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001009/0.658, allocations: 39.97 kB / 0.6858 GB, free: 6.387 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00244/0.6604, allocations: 3.029 MB / 0.6887 GB, free: 3.078 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.6605, allocations: 4.156 kB / 0.6887 GB, free: 3.074 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003059/0.6635, allocations: 1.903 MB / 0.6906 GB, free: 1.148 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007251/0.6643, allocations: 331.6 kB / 0.6909 GB, free: 0.8047 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002627/0.6645, allocations: 35.92 kB / 0.6909 GB, free: 0.7695 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001139/0.6657, allocations: 83.92 kB / 0.691 GB, free: 0.6875 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001859/0.6659, allocations: 60.56 kB / 0.6911 GB, free: 0.6289 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001404/0.666, allocations: 63.89 kB / 0.6911 GB, free: 0.5664 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001102/0.6671, allocations: 0.7932 MB / 0.6919 GB, free: 15.76 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.3e-07/0.6671, allocations: 4 kB / 0.6919 GB, free: 15.75 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001485/0.6686, allocations: 487.9 kB / 0.6924 GB, free: 15.28 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.00232/0.671, allocations: 0.6967 MB / 0.6931 GB, free: 14.58 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.003425/0.6744, allocations: 1.809 MB / 0.6948 GB, free: 12.78 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.921e-06/0.6744, allocations: 0.6562 kB / 0.6948 GB, free: 12.77 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001713/0.6761, allocations: 0.8624 MB / 0.6957 GB, free: 11.9 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003517/0.6797, allocations: 0.7588 MB / 0.6964 GB, free: 11.16 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005819/0.6855, allocations: 3.3 MB / 0.6996 GB, free: 7.836 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009134/0.6864, allocations: 1.176 MB / 0.7008 GB, free: 6.629 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001797/0.6882, allocations: 489.3 kB / 0.7012 GB, free: 6.152 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004521/0.6887, allocations: 111.4 kB / 0.7013 GB, free: 6.047 MB / 0.5294 GB Notification: Performance of SimCode: time 1.162e-06/0.6887, allocations: 0 / 0.7013 GB, free: 6.047 MB / 0.5294 GB Notification: Performance of Templates: time 0.2449/0.9336, allocations: 38.33 MB / 0.7388 GB, free: 188.1 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/IdealGases/SimpleNaturalGas/SimpleNaturalGas.csv","/var/lib/jenkins/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