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.001023/0.001024, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.001087/0.001087, allocations: 191.9 kB / 18.56 MB, free: 4.605 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.309/1.309, allocations: 222.9 MB / 242.2 MB, free: 15.21 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.2218/0.2218, allocations: 44.19 MB / 336.6 MB, free: 2.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00121/0.00121, allocations: 60.56 kB / 408.4 MB, free: 27.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1308/0.1321, allocations: 60.83 MB / 469.3 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.4131/0.5452, allocations: 177.1 MB / 0.6312 GB, free: 15.61 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.008762/0.554, allocations: 6.518 MB / 0.6376 GB, free: 9.074 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006166/0.5546, allocations: 19.88 kB / 0.6376 GB, free: 9.055 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001145/0.5558, allocations: 425.6 kB / 0.638 GB, free: 8.637 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004145/0.56, allocations: 1.745 MB / 0.6397 GB, free: 6.887 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003511/0.5635, allocations: 1.517 MB / 0.6412 GB, free: 5.375 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.002636/0.5662, allocations: 2.228 MB / 0.6434 GB, free: 3.141 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001015/0.5672, allocations: 0.77 MB / 0.6441 GB, free: 2.367 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003269/0.5705, allocations: 1.745 MB / 0.6458 GB, free: 0.6172 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002435/0.5729, allocations: 1.581 MB / 0.6474 GB, free: 15.03 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002035/0.5731, allocations: 100 kB / 0.6475 GB, free: 14.93 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002832/0.576, allocations: 1.415 MB / 0.6489 GB, free: 13.52 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006984/0.5767, allocations: 0.686 MB / 0.6495 GB, free: 12.83 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009187/0.5776, allocations: 0.7626 MB / 0.6503 GB, free: 12.06 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003291/0.5809, allocations: 2.638 MB / 0.6528 GB, free: 9.418 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.093e-06/0.5809, allocations: 7.984 kB / 0.6529 GB, free: 9.41 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.581, allocations: 0 / 0.6529 GB, free: 9.41 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.08e-05/0.581, allocations: 0 / 0.6529 GB, free: 9.41 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.003598/0.5846, allocations: 1.711 MB / 0.6545 GB, free: 7.648 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.517e-05/0.5846, allocations: 12.03 kB / 0.6545 GB, free: 7.637 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001472/0.5861, allocations: 310.2 kB / 0.6548 GB, free: 7.332 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001173/0.5873, allocations: 0.7454 MB / 0.6556 GB, free: 6.543 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001722/0.5875, allocations: 142.5 kB / 0.6557 GB, free: 6.391 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001756/0.5877, allocations: 108 kB / 0.6558 GB, free: 6.285 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002642/0.5903, allocations: 1.833 MB / 0.6576 GB, free: 4.383 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.891e-05/0.5904, allocations: 11.84 kB / 0.6576 GB, free: 4.371 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001426/0.5905, allocations: 51.98 kB / 0.6577 GB, free: 4.32 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001032/0.5906, allocations: 93.95 kB / 0.6577 GB, free: 4.23 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0026/0.5932, allocations: 1.694 MB / 0.6594 GB, free: 2.535 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.6034, allocations: 7.001 MB / 0.6662 GB, free: 11.06 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001333/0.6048, allocations: 0.8826 MB / 0.6671 GB, free: 10.17 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006443/0.6054, allocations: 454.3 kB / 0.6675 GB, free: 9.719 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001257/0.6055, allocations: 105.6 kB / 0.6676 GB, free: 9.598 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.678e-05/0.6056, allocations: 55.05 kB / 0.6677 GB, free: 9.535 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=60): time 3.286e-06/0.6056, allocations: 0 / 0.6677 GB, free: 9.535 MB / 0.4981 GB Notification: Performance of matching and sorting (n=72): time 0.01125/0.6169, allocations: 4.228 MB / 0.6718 GB, free: 5.246 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.519e-05/0.617, allocations: 111.5 kB / 0.6719 GB, free: 5.113 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001532/0.6185, allocations: 1.112 MB / 0.673 GB, free: 3.977 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001112/0.6186, allocations: 45.7 kB / 0.673 GB, free: 3.926 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000398/0.619, allocations: 0.5223 MB / 0.6736 GB, free: 3.395 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002138/0.6193, allocations: 268.3 kB / 0.6738 GB, free: 3.129 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003452/0.6196, allocations: 210.5 kB / 0.674 GB, free: 2.918 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001517/0.6198, allocations: 349.9 kB / 0.6743 GB, free: 2.57 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008903/0.6207, allocations: 0.5797 MB / 0.6749 GB, free: 1.992 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001097/0.6218, allocations: 0.8721 MB / 0.6758 GB, free: 1 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001952/0.6237, allocations: 1.451 MB / 0.6772 GB, free: 15.44 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.6238, allocations: 0 / 0.6772 GB, free: 15.44 MB / 0.5137 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003224/0.627, allocations: 2.004 MB / 0.6791 GB, free: 13.42 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.946e-05/0.627, allocations: 8 kB / 0.6791 GB, free: 13.41 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.31e-05/0.627, allocations: 12.09 kB / 0.6792 GB, free: 13.4 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004711/0.6318, allocations: 1.363 MB / 0.6805 GB, free: 12.04 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006103/0.6324, allocations: 143.8 kB / 0.6806 GB, free: 11.9 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002743/0.6351, allocations: 1.924 MB / 0.6825 GB, free: 9.949 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001038/0.6362, allocations: 43.97 kB / 0.6825 GB, free: 9.906 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001183/0.6363, allocations: 67.98 kB / 0.6826 GB, free: 9.84 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.0007274/0.6371, allocations: 403.1 kB / 0.683 GB, free: 9.438 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002345/0.6373, allocations: 114.6 kB / 0.6831 GB, free: 9.324 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002611/0.6399, allocations: 1.501 MB / 0.6846 GB, free: 7.816 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.087e-06/0.6399, allocations: 4 kB / 0.6846 GB, free: 7.812 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.271e-06/0.64, allocations: 4 kB / 0.6846 GB, free: 7.809 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.646e-06/0.64, allocations: 3.984 kB / 0.6846 GB, free: 7.805 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004073/0.644, allocations: 2.692 MB / 0.6872 GB, free: 5.047 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.6441, allocations: 0 / 0.6872 GB, free: 5.047 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001805/0.6459, allocations: 323.6 kB / 0.6875 GB, free: 4.73 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001886/0.6461, allocations: 68.69 kB / 0.6876 GB, free: 4.66 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.344e-05/0.6462, allocations: 39.97 kB / 0.6876 GB, free: 4.621 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002462/0.6486, allocations: 3.033 MB / 0.6906 GB, free: 1.309 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.6487, allocations: 0 / 0.6906 GB, free: 1.309 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003059/0.6517, allocations: 1.907 MB / 0.6924 GB, free: 15.38 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006594/0.6524, allocations: 327.7 kB / 0.6928 GB, free: 15.04 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001943/0.6526, allocations: 35.92 kB / 0.6928 GB, free: 15.01 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008922/0.6535, allocations: 47.95 kB / 0.6928 GB, free: 14.96 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000182/0.6537, allocations: 60.56 kB / 0.6929 GB, free: 14.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001126/0.6538, allocations: 67.89 kB / 0.693 GB, free: 14.84 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001013/0.6548, allocations: 0.797 MB / 0.6937 GB, free: 14.03 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.6e-07/0.6548, allocations: 0 / 0.6937 GB, free: 14.03 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001622/0.6565, allocations: 487.8 kB / 0.6942 GB, free: 13.55 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.002131/0.6586, allocations: 0.6814 MB / 0.6949 GB, free: 12.86 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.003198/0.6618, allocations: 1.805 MB / 0.6966 GB, free: 11.05 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.446e-06/0.6618, allocations: 4.656 kB / 0.6966 GB, free: 11.05 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001645/0.6635, allocations: 0.8546 MB / 0.6975 GB, free: 10.18 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003177/0.6667, allocations: 0.768 MB / 0.6982 GB, free: 9.434 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004822/0.6715, allocations: 2.941 MB / 0.7011 GB, free: 6.473 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007087/0.6722, allocations: 1.176 MB / 0.7022 GB, free: 5.266 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001432/0.6737, allocations: 477.6 kB / 0.7027 GB, free: 4.801 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00036/0.674, allocations: 115.4 kB / 0.7028 GB, free: 4.691 MB / 0.5294 GB Notification: Performance of SimCode: time 5.51e-07/0.674, allocations: 0 / 0.7028 GB, free: 4.691 MB / 0.5294 GB Notification: Performance of Templates: time 0.2532/0.9272, allocations: 38.51 MB / 0.7404 GB, free: 187 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