Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001034/0.001034, allocations: 80.92 kB / 21.49 MB, free: 2.992 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009821/0.0009821, allocations: 168 kB / 24.91 MB, free: 8.766 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.946/0.946, allocations: 177.1 MB / 205.3 MB, free: 5.492 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.278/0.278, allocations: 34.27 MB / 296.1 MB, free: 0.7109 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|volume.medium.p|volume.medium.T",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition") translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|volume.medium.p|volume.medium.T",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.473e-06/1.473e-06, allocations: 0 / 325.2 MB, free: 7.703 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.797e-05/1.945e-05, allocations: 6.969 kB / 325.3 MB, free: 7.695 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition): time 0.371/0.371, allocations: 148.5 MB / 473.8 MB, free: 12.41 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.00392/0.375, allocations: 3.095 MB / 476.9 MB, free: 12.11 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003467/0.3753, allocations: 27.03 kB / 476.9 MB, free: 12.09 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005424/0.3759, allocations: 239.4 kB / 477.2 MB, free: 12.02 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002551/0.3784, allocations: 1.541 MB / 478.7 MB, free: 11.84 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001367/0.3798, allocations: 0.9383 MB / 479.6 MB, free: 11.79 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.002104/0.3819, allocations: 2.221 MB / 481.9 MB, free: 11.77 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006632/0.3825, allocations: 0.5284 MB / 482.4 MB, free: 11.74 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003365/0.3859, allocations: 2.848 MB / 485.2 MB, free: 11.48 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008113/0.3867, allocations: 0.6365 MB / 485.9 MB, free: 11.41 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001453/0.3869, allocations: 74.12 kB / 485.9 MB, free: 11.41 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001007/0.3879, allocations: 0.6558 MB / 486.6 MB, free: 11.37 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003063/0.3882, allocations: 477.9 kB / 487.1 MB, free: 11.32 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003894/0.3886, allocations: 414.4 kB / 487.5 MB, free: 11.28 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001544/0.3901, allocations: 1.465 MB / 488.9 MB, free: 11.09 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.3901, allocations: 0 / 488.9 MB, free: 11.09 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.744e-06/0.3901, allocations: 0 / 488.9 MB, free: 11.09 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.032e-05/0.3901, allocations: 2.875 kB / 488.9 MB, free: 11.09 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.001867/0.392, allocations: 1.306 MB / 490.2 MB, free: 10.41 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.311e-05/0.392, allocations: 12.22 kB / 490.2 MB, free: 10.4 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007964/0.3928, allocations: 371.9 kB / 490.6 MB, free: 10.28 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005578/0.3934, allocations: 0.4983 MB / 491.1 MB, free: 9.988 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.117e-05/0.3935, allocations: 167.3 kB / 491.3 MB, free: 9.859 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001027/0.3936, allocations: 82.66 kB / 491.4 MB, free: 9.855 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007333/0.3943, allocations: 1.437 MB / 492.8 MB, free: 8.562 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.807e-05/0.3943, allocations: 3.938 kB / 492.8 MB, free: 8.559 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.398e-05/0.3944, allocations: 34.72 kB / 492.8 MB, free: 8.559 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.29e-05/0.3945, allocations: 81.36 kB / 492.9 MB, free: 8.543 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003771/0.3948, allocations: 327.9 kB / 493.2 MB, free: 8.465 MB / 410.7 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.002542/0.3974, allocations: 3.125 MB / 496.4 MB, free: 6.348 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001815/0.3976, allocations: 137.3 kB / 496.5 MB, free: 6.305 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.428e-05/0.3976, allocations: 54.73 kB / 496.5 MB, free: 6.293 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.76e-05/0.3977, allocations: 39.92 kB / 496.6 MB, free: 6.285 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.001e-05/0.3977, allocations: 44.45 kB / 496.6 MB, free: 6.238 MB / 410.7 MB Notification: Performance of pre-optimization done (n=28): time 1.243e-06/0.3977, allocations: 3.312 kB / 496.6 MB, free: 6.238 MB / 410.7 MB Notification: Performance of matching and sorting (n=33): time 0.002585/0.4003, allocations: 1.148 MB / 497.8 MB, free: 5.574 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.042e-05/0.4004, allocations: 131 kB / 497.9 MB, free: 5.418 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003555/0.4007, allocations: 0.6859 MB / 498.6 MB, free: 5.121 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.478e-05/0.4007, allocations: 35.8 kB / 498.6 MB, free: 5.09 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001554/0.4009, allocations: 0.5277 MB / 499.2 MB, free: 4.684 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.752e-05/0.4009, allocations: 144.6 kB / 499.3 MB, free: 4.586 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001527/0.4011, allocations: 211 kB / 499.5 MB, free: 4.535 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.024e-05/0.4012, allocations: 398.8 kB / 499.9 MB, free: 4.191 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.988e-05/0.4013, allocations: 87.66 kB / 500 MB, free: 4.172 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003299/0.4016, allocations: 0.7943 MB / 0.489 GB, free: 3.262 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006037/0.4022, allocations: 0.8847 MB / 0.4899 GB, free: 2.359 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.287e-06/0.4022, allocations: 5.844 kB / 0.4899 GB, free: 2.359 MB / 410.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.0007873/0.403, allocations: 0.7267 MB / 0.4906 GB, free: 2.055 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.656e-05/0.403, allocations: 15.88 kB / 0.4906 GB, free: 2.055 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.794e-05/0.403, allocations: 19.69 kB / 0.4906 GB, free: 2.055 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005312/0.4036, allocations: 231.4 kB / 0.4909 GB, free: 1.98 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002911/0.4039, allocations: 211.7 kB / 0.4911 GB, free: 1.934 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003481/0.4042, allocations: 0.6903 MB / 0.4917 GB, free: 1.363 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003137/0.4045, allocations: 42.28 kB / 0.4918 GB, free: 1.363 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.91e-05/0.4046, allocations: 58.38 kB / 0.4918 GB, free: 1.363 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 93 * Number of states: 0 () * Number of discrete variables: 4 (volume.inFlow[1],volume.inFlow[2],volume.regularFlow[2],volume.regularFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (115): * Single equations (assignments): 114 * 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 {(2,17)} Notification: Performance of prepare postOptimizeDAE: time 0.0001481/0.4047, allocations: 195.8 kB / 0.492 GB, free: 1.211 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.356e-05/0.4048, allocations: 69.61 kB / 0.4921 GB, free: 1.188 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003627/0.4052, allocations: 328.7 kB / 0.4924 GB, free: 1.035 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.4052, allocations: 2.719 kB / 0.4924 GB, free: 1.035 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.4052, allocations: 7.984 kB / 0.4924 GB, free: 1.027 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.4052, allocations: 0 / 0.4924 GB, free: 1.027 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006228/0.4058, allocations: 0.6544 MB / 0.4931 GB, free: 0.6484 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.4058, allocations: 2.938 kB / 0.4931 GB, free: 0.6484 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003895/0.4062, allocations: 153.1 kB / 0.4932 GB, free: 0.6172 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.324e-05/0.4063, allocations: 17.64 kB / 0.4932 GB, free: 0.6055 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.844e-05/0.4063, allocations: 13.3 kB / 0.4932 GB, free: 0.6016 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001011/0.4073, allocations: 2.408 MB / 0.4956 GB, free: 14.18 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.4073, allocations: 0 / 0.4956 GB, free: 14.18 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003613/0.4077, allocations: 422.2 kB / 0.496 GB, free: 13.92 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001179/0.4078, allocations: 81.38 kB / 0.4961 GB, free: 13.88 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.856e-05/0.4078, allocations: 13.27 kB / 0.4961 GB, free: 13.87 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001669/0.408, allocations: 10.12 kB / 0.4961 GB, free: 13.87 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.788e-05/0.408, allocations: 32.42 kB / 0.4961 GB, free: 13.84 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.222e-05/0.4081, allocations: 15.17 kB / 0.4961 GB, free: 13.84 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.000213/0.4083, allocations: 290.8 kB / 0.4964 GB, free: 13.75 MB / 426.7 MB Notification: Performance of sort global known variables: time 5e-08/0.4083, allocations: 0 / 0.4964 GB, free: 13.75 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0007329/0.409, allocations: 356 kB / 0.4967 GB, free: 13.69 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,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 (33): * Single equations (assignments): 31 * 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.0007772/0.4098, allocations: 473.8 kB / 0.4972 GB, free: 13.45 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0004908/0.4103, allocations: 433.9 kB / 0.4976 GB, free: 13.29 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.28e-05/0.4103, allocations: 15.41 kB / 0.4976 GB, free: 13.29 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003534/0.4107, allocations: 275.4 kB / 0.4979 GB, free: 13.13 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007559/0.4114, allocations: 353.1 kB / 0.4982 GB, free: 12.95 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001691/0.4131, allocations: 1.352 MB / 0.4995 GB, free: 12.09 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000144/0.4132, allocations: 212 kB / 0.4997 GB, free: 11.94 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0003975/0.4136, allocations: 228.9 kB / 0.5 GB, free: 11.82 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005207/0.4142, allocations: 354.6 kB / 0.5003 GB, free: 11.67 MB / 426.7 MB Notification: Performance of SimCode: time 8.22e-07/0.4142, allocations: 0 / 0.5003 GB, free: 11.67 MB / 426.7 MB Notification: Performance of Templates: time 0.02111/0.4353, allocations: 20.22 MB / 0.5201 GB, free: 10.16 MB / 442.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.sim & ./ModelicaTest_4.1.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/IdealGases/SimpleNaturalGasFixedComposition/SimpleNaturalGasFixedComposition.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.033046322874725]