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.001146/0.001146, allocations: 90.98 kB / 18 MB, free: 5.734 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.001503/0.001503, allocations: 177.6 kB / 18.91 MB, free: 4.871 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.414/1.414, allocations: 223.3 MB / 243 MB, free: 4 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1827/0.1827, allocations: 44.25 MB / 338.3 MB, free: 2.609 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003152/0.0003153, allocations: 9.312 kB / 411 MB, free: 27.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0981/0.09843, allocations: 61.94 MB / 472.9 MB, free: 13.31 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.3745/0.473, allocations: 173.2 MB / 0.6309 GB, free: 5.449 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.01001/0.4831, allocations: 6.627 MB / 0.6374 GB, free: 14.8 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009356/0.484, allocations: 19.81 kB / 0.6374 GB, free: 14.78 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001364/0.4854, allocations: 386.1 kB / 0.6378 GB, free: 14.4 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004499/0.4899, allocations: 1.617 MB / 0.6394 GB, free: 12.79 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003793/0.4938, allocations: 1.377 MB / 0.6407 GB, free: 11.41 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.003684/0.4975, allocations: 3.234 MB / 0.6439 GB, free: 8.172 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001331/0.4988, allocations: 0.664 MB / 0.6445 GB, free: 7.5 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003581/0.5024, allocations: 1.655 MB / 0.6462 GB, free: 5.84 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003069/0.5055, allocations: 1.652 MB / 0.6478 GB, free: 4.184 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003621/0.5059, allocations: 56 kB / 0.6478 GB, free: 4.129 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003637/0.5096, allocations: 1.825 MB / 0.6496 GB, free: 2.301 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000901/0.5105, allocations: 0.6429 MB / 0.6502 GB, free: 1.656 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001366/0.5119, allocations: 0.733 MB / 0.6509 GB, free: 0.9141 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002692/0.5146, allocations: 2.03 MB / 0.6529 GB, free: 14.88 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.5146, allocations: 0 / 0.6529 GB, free: 14.88 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.5146, allocations: 0 / 0.6529 GB, free: 14.88 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.979e-05/0.5147, allocations: 0 / 0.6529 GB, free: 14.88 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.003778/0.5185, allocations: 1.435 MB / 0.6543 GB, free: 13.39 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.366e-05/0.5185, allocations: 11.97 kB / 0.6543 GB, free: 13.38 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001777/0.5203, allocations: 318.2 kB / 0.6546 GB, free: 13.07 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001661/0.522, allocations: 0.7493 MB / 0.6554 GB, free: 12.28 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001641/0.5222, allocations: 145.3 kB / 0.6555 GB, free: 12.12 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00026/0.5225, allocations: 107.8 kB / 0.6556 GB, free: 12.02 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002978/0.5255, allocations: 1.845 MB / 0.6574 GB, free: 10.11 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.632e-05/0.5255, allocations: 4 kB / 0.6574 GB, free: 10.1 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001728/0.5257, allocations: 47.98 kB / 0.6575 GB, free: 10.05 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000115/0.5258, allocations: 97.89 kB / 0.6576 GB, free: 9.961 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002835/0.5286, allocations: 1.698 MB / 0.6592 GB, free: 8.262 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.0104/0.5391, allocations: 6.954 MB / 0.666 GB, free: 0.832 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001433/0.5405, allocations: 0.8773 MB / 0.6669 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006987/0.5412, allocations: 458.2 kB / 0.6673 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000164/0.5414, allocations: 101.7 kB / 0.6674 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.107e-05/0.5415, allocations: 55.06 kB / 0.6675 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=60): time 2.705e-06/0.5415, allocations: 0 / 0.6675 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of matching and sorting (n=72): time 0.01136/0.5529, allocations: 4.163 MB / 0.6715 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.674e-05/0.553, allocations: 111.5 kB / 0.6716 GB, free: 10.96 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001584/0.5546, allocations: 1.105 MB / 0.6727 GB, free: 9.828 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001679/0.5548, allocations: 45.7 kB / 0.6727 GB, free: 9.777 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004393/0.5552, allocations: 0.5223 MB / 0.6733 GB, free: 9.246 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002501/0.5555, allocations: 268.3 kB / 0.6735 GB, free: 8.98 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001713/0.5556, allocations: 89.67 kB / 0.6736 GB, free: 8.887 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001473/0.5558, allocations: 353.8 kB / 0.6739 GB, free: 8.535 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009618/0.5568, allocations: 0.5836 MB / 0.6745 GB, free: 7.949 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001169/0.558, allocations: 0.8721 MB / 0.6754 GB, free: 6.957 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002099/0.5601, allocations: 1.447 MB / 0.6768 GB, free: 5.398 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.929e-06/0.5601, allocations: 4 kB / 0.6768 GB, free: 5.395 MB / 0.4981 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003396/0.5635, allocations: 1.996 MB / 0.6787 GB, free: 3.391 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.897e-05/0.5635, allocations: 12.94 kB / 0.6787 GB, free: 3.379 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.615e-05/0.5636, allocations: 8 kB / 0.6787 GB, free: 3.371 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005032/0.5686, allocations: 1.421 MB / 0.6801 GB, free: 1.953 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006595/0.5693, allocations: 147.7 kB / 0.6803 GB, free: 1.809 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003003/0.5723, allocations: 1.935 MB / 0.6822 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001187/0.5735, allocations: 115.8 kB / 0.6823 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001375/0.5737, allocations: 63.98 kB / 0.6823 GB, free: 15.67 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.0006812/0.5744, allocations: 401.9 kB / 0.6827 GB, free: 15.27 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002485/0.5746, allocations: 114.7 kB / 0.6828 GB, free: 15.15 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002695/0.5773, allocations: 1.496 MB / 0.6843 GB, free: 13.64 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.05e-05/0.5773, allocations: 8 kB / 0.6843 GB, free: 13.64 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.104e-06/0.5774, allocations: 192 / 0.6843 GB, free: 13.64 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.378e-05/0.5774, allocations: 3.984 kB / 0.6843 GB, free: 13.63 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004206/0.5816, allocations: 2.692 MB / 0.6869 GB, free: 10.87 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.202e-06/0.5816, allocations: 0 / 0.6869 GB, free: 10.87 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001854/0.5835, allocations: 327.6 kB / 0.6872 GB, free: 10.55 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000203/0.5837, allocations: 72.72 kB / 0.6873 GB, free: 10.48 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.979e-05/0.5838, allocations: 39.95 kB / 0.6873 GB, free: 10.44 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002303/0.5861, allocations: 2.836 MB / 0.6901 GB, free: 7.344 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.5861, allocations: 3.984 kB / 0.6901 GB, free: 7.34 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002999/0.5891, allocations: 1.903 MB / 0.692 GB, free: 5.41 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007353/0.5899, allocations: 351.5 kB / 0.6923 GB, free: 5.047 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002515/0.5902, allocations: 27.98 kB / 0.6923 GB, free: 5.02 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001129/0.5913, allocations: 79.92 kB / 0.6924 GB, free: 4.941 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001705/0.5915, allocations: 60.56 kB / 0.6925 GB, free: 4.883 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001399/0.5916, allocations: 63.95 kB / 0.6925 GB, free: 4.82 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001179/0.5928, allocations: 0.8009 MB / 0.6933 GB, free: 4.008 MB / 0.5137 GB Notification: Performance of sort global known variables: time 3.11e-07/0.5928, allocations: 0 / 0.6933 GB, free: 4.008 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001548/0.5944, allocations: 487.9 kB / 0.6938 GB, free: 3.531 MB / 0.5137 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.002289/0.5967, allocations: 0.6761 MB / 0.6944 GB, free: 2.852 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002849/0.5995, allocations: 1.481 MB / 0.6959 GB, free: 1.375 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 7.514e-06/0.5996, allocations: 4.594 kB / 0.6959 GB, free: 1.367 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001713/0.6013, allocations: 0.8585 MB / 0.6967 GB, free: 0.4961 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004022/0.6053, allocations: 0.7242 MB / 0.6974 GB, free: 15.79 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005932/0.6113, allocations: 3.556 MB / 0.7009 GB, free: 12.2 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009201/0.6123, allocations: 1.176 MB / 0.7021 GB, free: 11 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005363/0.6128, allocations: 115.4 kB / 0.7022 GB, free: 10.89 MB / 0.5294 GB Notification: Performance of SimCode: time 8.12e-07/0.6128, allocations: 4 kB / 0.7022 GB, free: 10.88 MB / 0.5294 GB Notification: Performance of Templates: time 0.2374/0.8502, allocations: 31.69 MB / 0.7331 GB, free: 193.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