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.00112/0.00112, allocations: 108.6 kB / 17.21 MB, free: 6.289 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.001199/0.001199, allocations: 194 kB / 18.12 MB, free: 5.383 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.371/1.371, allocations: 222.9 MB / 241.8 MB, free: 15.5 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.2126/0.2126, allocations: 44.17 MB / 336.1 MB, free: 3.004 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00137/0.00137, allocations: 63.69 kB / 407.7 MB, free: 27.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1485/0.1499, allocations: 60.82 MB / 468.5 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.481/0.631, allocations: 175.5 MB / 0.6289 GB, free: 1.809 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.008278/0.6393, allocations: 6.713 MB / 0.6355 GB, free: 11.08 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006503/0.64, allocations: 27.81 kB / 0.6355 GB, free: 11.05 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001024/0.641, allocations: 386.1 kB / 0.6358 GB, free: 10.67 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003467/0.6445, allocations: 1.598 MB / 0.6374 GB, free: 9.07 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003184/0.6477, allocations: 1.394 MB / 0.6388 GB, free: 7.684 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.003054/0.6508, allocations: 3.234 MB / 0.6419 GB, free: 4.441 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009415/0.6518, allocations: 0.6562 MB / 0.6426 GB, free: 3.777 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003152/0.6549, allocations: 1.659 MB / 0.6442 GB, free: 2.113 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002583/0.6575, allocations: 1.667 MB / 0.6458 GB, free: 452 kB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001847/0.6577, allocations: 59.98 kB / 0.6459 GB, free: 392 kB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003161/0.6609, allocations: 1.824 MB / 0.6477 GB, free: 14.55 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005925/0.6615, allocations: 0.6469 MB / 0.6483 GB, free: 13.91 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008034/0.6623, allocations: 0.704 MB / 0.649 GB, free: 13.2 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003296/0.6656, allocations: 2.735 MB / 0.6516 GB, free: 10.46 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.6656, allocations: 0 / 0.6516 GB, free: 10.46 MB / 494.1 MB Notification: Performance of FrontEnd: time 9.91e-07/0.6656, allocations: 0 / 0.6516 GB, free: 10.46 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.394e-05/0.6657, allocations: 0 / 0.6516 GB, free: 10.46 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.003901/0.6696, allocations: 1.719 MB / 0.6533 GB, free: 8.688 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.492e-05/0.6696, allocations: 15.97 kB / 0.6533 GB, free: 8.672 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001543/0.6712, allocations: 310.3 kB / 0.6536 GB, free: 8.367 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001239/0.6724, allocations: 0.7454 MB / 0.6544 GB, free: 7.582 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001338/0.6726, allocations: 145.3 kB / 0.6545 GB, free: 7.426 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001806/0.6728, allocations: 104 kB / 0.6546 GB, free: 7.324 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002869/0.6757, allocations: 1.849 MB / 0.6564 GB, free: 5.406 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.103e-05/0.6757, allocations: 7.906 kB / 0.6564 GB, free: 5.398 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001429/0.6758, allocations: 47.98 kB / 0.6565 GB, free: 5.352 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001048/0.676, allocations: 97.89 kB / 0.6566 GB, free: 5.258 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002575/0.6785, allocations: 1.694 MB / 0.6582 GB, free: 3.562 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.01133/0.6899, allocations: 6.962 MB / 0.665 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00137/0.6913, allocations: 0.8811 MB / 0.6659 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006826/0.692, allocations: 450.3 kB / 0.6663 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001418/0.6921, allocations: 105.7 kB / 0.6664 GB, free: 10.67 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.876e-05/0.6922, allocations: 51.06 kB / 0.6664 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=60): time 3.076e-06/0.6922, allocations: 0 / 0.6664 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of matching and sorting (n=72): time 0.01102/0.7032, allocations: 4.223 MB / 0.6706 GB, free: 6.324 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.24e-05/0.7033, allocations: 119.4 kB / 0.6707 GB, free: 6.184 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001474/0.7048, allocations: 1.101 MB / 0.6718 GB, free: 5.059 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001158/0.7049, allocations: 45.7 kB / 0.6718 GB, free: 5.008 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004416/0.7054, allocations: 0.5223 MB / 0.6723 GB, free: 4.477 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002219/0.7056, allocations: 268.2 kB / 0.6726 GB, free: 4.211 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00036/0.706, allocations: 210.5 kB / 0.6728 GB, free: 3.996 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000138/0.7061, allocations: 349.9 kB / 0.6731 GB, free: 3.648 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009417/0.7071, allocations: 0.5836 MB / 0.6737 GB, free: 3.066 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001244/0.7083, allocations: 0.8721 MB / 0.6745 GB, free: 2.074 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002102/0.7104, allocations: 1.451 MB / 0.6759 GB, free: 0.5117 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.56e-06/0.7105, allocations: 4 kB / 0.6759 GB, free: 0.5078 MB / 0.4981 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003235/0.7137, allocations: 2.004 MB / 0.6779 GB, free: 14.5 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.066e-05/0.7137, allocations: 11.94 kB / 0.6779 GB, free: 14.48 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.429e-05/0.7138, allocations: 12 kB / 0.6779 GB, free: 14.47 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004802/0.7186, allocations: 1.355 MB / 0.6792 GB, free: 13.12 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006403/0.7192, allocations: 135.8 kB / 0.6794 GB, free: 12.99 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002837/0.7221, allocations: 1.928 MB / 0.6813 GB, free: 11.03 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001125/0.7232, allocations: 111.9 kB / 0.6814 GB, free: 10.92 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001386/0.7234, allocations: 67.98 kB / 0.6814 GB, free: 10.86 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.0007037/0.7241, allocations: 397.9 kB / 0.6818 GB, free: 10.46 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003007/0.7244, allocations: 114.6 kB / 0.6819 GB, free: 10.34 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002706/0.7271, allocations: 1.495 MB / 0.6834 GB, free: 8.836 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.123e-05/0.7271, allocations: 11.98 kB / 0.6834 GB, free: 8.824 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.661e-05/0.7271, allocations: 4 kB / 0.6834 GB, free: 8.82 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.055e-06/0.7272, allocations: 3.984 kB / 0.6834 GB, free: 8.816 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004678/0.7318, allocations: 2.684 MB / 0.686 GB, free: 6.062 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.346e-06/0.7319, allocations: 4 kB / 0.686 GB, free: 6.059 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00189/0.7338, allocations: 327.6 kB / 0.6863 GB, free: 5.738 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002032/0.734, allocations: 68.7 kB / 0.6864 GB, free: 5.668 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001305/0.7341, allocations: 39.97 kB / 0.6864 GB, free: 5.629 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002664/0.7368, allocations: 2.832 MB / 0.6892 GB, free: 2.535 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.7368, allocations: 0 / 0.6892 GB, free: 2.535 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003236/0.7401, allocations: 1.903 MB / 0.6911 GB, free: 0.6094 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009422/0.741, allocations: 335.6 kB / 0.6914 GB, free: 268 kB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003489/0.7414, allocations: 27.98 kB / 0.6914 GB, free: 240 kB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00127/0.7427, allocations: 79.92 kB / 0.6915 GB, free: 160 kB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002101/0.7429, allocations: 64.56 kB / 0.6915 GB, free: 96 kB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002017/0.7431, allocations: 59.95 kB / 0.6916 GB, free: 36 kB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001442/0.7446, allocations: 0.8009 MB / 0.6924 GB, free: 15.22 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.7e-07/0.7446, allocations: 0 / 0.6924 GB, free: 15.22 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.002431/0.747, allocations: 487.9 kB / 0.6929 GB, free: 14.75 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.002776/0.7498, allocations: 0.6997 MB / 0.6935 GB, free: 14.05 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.003045/0.7529, allocations: 1.466 MB / 0.695 GB, free: 12.59 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.738e-06/0.7529, allocations: 4.656 kB / 0.695 GB, free: 12.58 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001819/0.7547, allocations: 0.8583 MB / 0.6958 GB, free: 11.71 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003989/0.7587, allocations: 0.7277 MB / 0.6965 GB, free: 10.99 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006054/0.7648, allocations: 3.295 MB / 0.6997 GB, free: 7.668 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00102/0.7658, allocations: 1.184 MB / 0.7009 GB, free: 6.457 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001934/0.7678, allocations: 485.3 kB / 0.7014 GB, free: 5.984 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004845/0.7683, allocations: 115.4 kB / 0.7015 GB, free: 5.875 MB / 0.5294 GB Notification: Performance of SimCode: time 8.21e-07/0.7683, allocations: 0 / 0.7015 GB, free: 5.875 MB / 0.5294 GB Notification: Performance of Templates: time 0.2639/1.032, allocations: 37.15 MB / 0.7377 GB, free: 189.2 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