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.001283/0.001283, allocations: 101.5 kB / 17.85 MB, free: 5.66 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.001108/0.001108, allocations: 194 kB / 18.77 MB, free: 4.742 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.294/1.294, allocations: 222.9 MB / 242.4 MB, free: 15.48 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.2002/0.2002, allocations: 44.17 MB / 336.8 MB, free: 3.016 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 60.16 kB / 408.4 MB, free: 27.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09912/0.1004, allocations: 60.82 MB / 469.2 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.3938/0.4942, allocations: 175.5 MB / 0.6295 GB, free: 1.836 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.008831/0.5031, allocations: 6.713 MB / 0.6361 GB, free: 11.11 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000832/0.504, allocations: 23.81 kB / 0.6361 GB, free: 11.08 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001293/0.5053, allocations: 386.1 kB / 0.6365 GB, free: 10.7 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004103/0.5094, allocations: 1.611 MB / 0.6381 GB, free: 9.094 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003462/0.5129, allocations: 1.395 MB / 0.6394 GB, free: 7.703 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.003245/0.5162, allocations: 3.23 MB / 0.6426 GB, free: 4.465 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001205/0.5174, allocations: 0.6555 MB / 0.6432 GB, free: 3.805 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003655/0.521, allocations: 1.651 MB / 0.6448 GB, free: 2.148 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003034/0.5241, allocations: 1.671 MB / 0.6465 GB, free: 484 kB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003287/0.5245, allocations: 56 kB / 0.6465 GB, free: 428 kB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003472/0.5279, allocations: 1.828 MB / 0.6483 GB, free: 14.59 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008188/0.5288, allocations: 0.6468 MB / 0.6489 GB, free: 13.94 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001271/0.5301, allocations: 0.7001 MB / 0.6496 GB, free: 13.23 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002613/0.5327, allocations: 2.054 MB / 0.6516 GB, free: 11.18 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.5327, allocations: 0 / 0.6516 GB, free: 11.18 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.5327, allocations: 7.938 kB / 0.6516 GB, free: 11.17 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.087e-05/0.5328, allocations: 0 / 0.6516 GB, free: 11.17 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.004293/0.5371, allocations: 1.723 MB / 0.6533 GB, free: 9.395 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.867e-05/0.5371, allocations: 11.97 kB / 0.6533 GB, free: 9.383 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001687/0.5388, allocations: 307.8 kB / 0.6536 GB, free: 9.082 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001361/0.5402, allocations: 0.7376 MB / 0.6543 GB, free: 8.305 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001449/0.5404, allocations: 145.3 kB / 0.6545 GB, free: 8.148 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002235/0.5406, allocations: 100 kB / 0.6546 GB, free: 8.051 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00309/0.5437, allocations: 1.853 MB / 0.6564 GB, free: 6.129 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.178e-05/0.5437, allocations: 3.906 kB / 0.6564 GB, free: 6.125 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001744/0.5439, allocations: 47.98 kB / 0.6564 GB, free: 6.078 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001069/0.544, allocations: 93.95 kB / 0.6565 GB, free: 5.988 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002826/0.5469, allocations: 1.698 MB / 0.6582 GB, free: 4.289 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.01074/0.5576, allocations: 6.966 MB / 0.665 GB, free: 12.85 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001458/0.5591, allocations: 0.8772 MB / 0.6658 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006827/0.5598, allocations: 454.3 kB / 0.6663 GB, free: 11.52 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001596/0.56, allocations: 101.7 kB / 0.6664 GB, free: 11.4 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.62e-05/0.5601, allocations: 55.06 kB / 0.6664 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=60): time 4.578e-06/0.5601, allocations: 4 kB / 0.6664 GB, free: 11.33 MB / 0.4981 GB Notification: Performance of matching and sorting (n=72): time 0.01166/0.5717, allocations: 4.223 MB / 0.6705 GB, free: 7.043 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.755e-05/0.5718, allocations: 119.5 kB / 0.6707 GB, free: 6.902 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001591/0.5734, allocations: 1.101 MB / 0.6717 GB, free: 5.777 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001426/0.5736, allocations: 41.7 kB / 0.6718 GB, free: 5.73 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.00041/0.574, allocations: 0.5223 MB / 0.6723 GB, free: 5.199 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002378/0.5743, allocations: 268.2 kB / 0.6725 GB, free: 4.934 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004133/0.5747, allocations: 210.5 kB / 0.6727 GB, free: 4.719 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001461/0.5748, allocations: 349.9 kB / 0.6731 GB, free: 4.371 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009869/0.5758, allocations: 0.5836 MB / 0.6736 GB, free: 3.789 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00116/0.577, allocations: 0.876 MB / 0.6745 GB, free: 2.793 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002052/0.5791, allocations: 1.447 MB / 0.6759 GB, free: 1.234 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.404e-06/0.5791, allocations: 4 kB / 0.6759 GB, free: 1.23 MB / 0.4981 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003301/0.5824, allocations: 2.004 MB / 0.6779 GB, free: 15.22 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.342e-05/0.5824, allocations: 8 kB / 0.6779 GB, free: 15.21 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.471e-05/0.5825, allocations: 8.875 kB / 0.6779 GB, free: 15.2 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004876/0.5873, allocations: 1.358 MB / 0.6792 GB, free: 13.85 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006406/0.588, allocations: 147.8 kB / 0.6794 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00292/0.5909, allocations: 1.928 MB / 0.6812 GB, free: 11.75 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001161/0.5921, allocations: 111.9 kB / 0.6813 GB, free: 11.64 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001371/0.5923, allocations: 63.98 kB / 0.6814 GB, free: 11.57 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.0007772/0.5931, allocations: 401.9 kB / 0.6818 GB, free: 11.17 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002853/0.5933, allocations: 118.6 kB / 0.6819 GB, free: 11.05 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002647/0.596, allocations: 1.495 MB / 0.6834 GB, free: 9.547 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.608e-06/0.596, allocations: 15.98 kB / 0.6834 GB, free: 9.531 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.603e-06/0.596, allocations: 0 / 0.6834 GB, free: 9.531 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.596, allocations: 3.984 kB / 0.6834 GB, free: 9.527 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004221/0.6003, allocations: 2.68 MB / 0.686 GB, free: 6.777 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.6003, allocations: 4.031 kB / 0.686 GB, free: 6.773 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001847/0.6022, allocations: 323.6 kB / 0.6863 GB, free: 6.457 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001912/0.6024, allocations: 72.7 kB / 0.6864 GB, free: 6.383 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.456e-05/0.6025, allocations: 35.97 kB / 0.6864 GB, free: 6.348 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002286/0.6048, allocations: 2.844 MB / 0.6892 GB, free: 3.242 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/0.6048, allocations: 4 kB / 0.6892 GB, free: 3.238 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002962/0.6077, allocations: 1.895 MB / 0.691 GB, free: 1.32 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006734/0.6084, allocations: 335.6 kB / 0.6914 GB, free: 0.9727 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002507/0.6087, allocations: 36.08 kB / 0.6914 GB, free: 0.9375 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001069/0.6098, allocations: 79.92 kB / 0.6915 GB, free: 0.8594 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001725/0.61, allocations: 56.56 kB / 0.6915 GB, free: 0.8047 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000144/0.6101, allocations: 63.95 kB / 0.6916 GB, free: 0.7422 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001139/0.6113, allocations: 0.797 MB / 0.6924 GB, free: 15.93 MB / 0.5294 GB Notification: Performance of sort global known variables: time 4.71e-07/0.6113, allocations: 4 kB / 0.6924 GB, free: 15.93 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.00157/0.6128, allocations: 487.9 kB / 0.6928 GB, free: 15.45 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.002221/0.6151, allocations: 0.6912 MB / 0.6935 GB, free: 14.77 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.002657/0.6177, allocations: 1.467 MB / 0.6949 GB, free: 13.3 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.684e-06/0.6178, allocations: 0.6562 kB / 0.695 GB, free: 13.3 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001611/0.6194, allocations: 0.8536 MB / 0.6958 GB, free: 12.43 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003328/0.6227, allocations: 0.7275 MB / 0.6965 GB, free: 11.71 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005549/0.6283, allocations: 3.378 MB / 0.6998 GB, free: 8.305 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008259/0.6291, allocations: 1.176 MB / 0.7009 GB, free: 7.102 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004954/0.6296, allocations: 119.4 kB / 0.7011 GB, free: 6.988 MB / 0.5294 GB Notification: Performance of SimCode: time 5.71e-07/0.6296, allocations: 0 / 0.7011 GB, free: 6.988 MB / 0.5294 GB Notification: Performance of Templates: time 0.2093/0.839, allocations: 31.84 MB / 0.7322 GB, free: 194.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 -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