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.001436/0.001442, allocations: 110 kB / 18.3 MB, free: 4.836 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.001197/0.001197, allocations: 199.4 kB / 19.23 MB, free: 3.91 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.399/1.399, allocations: 222.9 MB / 242.9 MB, free: 15.16 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.2357/0.2357, allocations: 44.18 MB / 337.3 MB, free: 2.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 54.09 kB / 409.1 MB, free: 27.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1375/0.1388, allocations: 60.83 MB / 469.9 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.4707/0.6096, allocations: 177.1 MB / 0.6319 GB, free: 15.55 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.00898/0.6186, allocations: 6.516 MB / 0.6383 GB, free: 9.012 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000832/0.6194, allocations: 19.88 kB / 0.6383 GB, free: 8.992 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001263/0.6207, allocations: 433.6 kB / 0.6387 GB, free: 8.566 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004623/0.6254, allocations: 1.737 MB / 0.6404 GB, free: 6.828 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004017/0.6294, allocations: 1.513 MB / 0.6419 GB, free: 5.32 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.002991/0.6324, allocations: 2.231 MB / 0.644 GB, free: 3.082 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001375/0.6338, allocations: 0.771 MB / 0.6448 GB, free: 2.309 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004178/0.638, allocations: 1.741 MB / 0.6465 GB, free: 0.5625 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003119/0.6411, allocations: 1.585 MB / 0.648 GB, free: 14.97 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003301/0.6415, allocations: 100 kB / 0.6481 GB, free: 14.88 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003447/0.645, allocations: 1.407 MB / 0.6495 GB, free: 13.46 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008283/0.6458, allocations: 0.6937 MB / 0.6502 GB, free: 12.77 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001027/0.6468, allocations: 0.7587 MB / 0.6509 GB, free: 12.01 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003895/0.6507, allocations: 2.642 MB / 0.6535 GB, free: 9.359 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.6508, allocations: 0 / 0.6535 GB, free: 9.359 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.6508, allocations: 4 kB / 0.6535 GB, free: 9.355 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.644e-05/0.6508, allocations: 0 / 0.6535 GB, free: 9.355 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.003909/0.6547, allocations: 1.708 MB / 0.6552 GB, free: 7.598 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/0.6548, allocations: 12.03 kB / 0.6552 GB, free: 7.586 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001584/0.6564, allocations: 314.2 kB / 0.6555 GB, free: 7.277 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001339/0.6577, allocations: 0.7415 MB / 0.6562 GB, free: 6.492 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001392/0.6579, allocations: 145.3 kB / 0.6564 GB, free: 6.336 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001996/0.6581, allocations: 104 kB / 0.6565 GB, free: 6.234 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002935/0.661, allocations: 1.841 MB / 0.6583 GB, free: 4.324 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.531e-05/0.6611, allocations: 3.906 kB / 0.6583 GB, free: 4.32 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000167/0.6613, allocations: 51.92 kB / 0.6583 GB, free: 4.27 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001151/0.6614, allocations: 97.95 kB / 0.6584 GB, free: 4.176 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002726/0.6641, allocations: 1.702 MB / 0.6601 GB, free: 2.473 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.01107/0.6752, allocations: 7.006 MB / 0.6669 GB, free: 11 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001421/0.6766, allocations: 0.8825 MB / 0.6678 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006894/0.6773, allocations: 446.3 kB / 0.6682 GB, free: 9.664 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001899/0.6775, allocations: 105.7 kB / 0.6683 GB, free: 9.543 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.26e-05/0.6776, allocations: 47.06 kB / 0.6683 GB, free: 9.488 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=60): time 2.194e-06/0.6776, allocations: 8 kB / 0.6683 GB, free: 9.48 MB / 0.4981 GB Notification: Performance of matching and sorting (n=72): time 0.01158/0.6892, allocations: 4.227 MB / 0.6725 GB, free: 5.188 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.292e-05/0.6893, allocations: 111.5 kB / 0.6726 GB, free: 5.055 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001448/0.6908, allocations: 1.109 MB / 0.6737 GB, free: 3.922 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001566/0.6909, allocations: 45.7 kB / 0.6737 GB, free: 3.871 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004222/0.6914, allocations: 0.5222 MB / 0.6742 GB, free: 3.34 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002133/0.6916, allocations: 272.3 kB / 0.6745 GB, free: 3.07 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003616/0.6919, allocations: 210.5 kB / 0.6747 GB, free: 2.859 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001353/0.6921, allocations: 349.9 kB / 0.675 GB, free: 2.512 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009152/0.693, allocations: 0.5836 MB / 0.6756 GB, free: 1.93 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00118/0.6942, allocations: 0.8682 MB / 0.6764 GB, free: 0.9414 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002005/0.6962, allocations: 1.447 MB / 0.6778 GB, free: 15.38 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.542e-06/0.6962, allocations: 7.984 kB / 0.6778 GB, free: 15.38 MB / 0.5137 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003301/0.6995, allocations: 1.996 MB / 0.6798 GB, free: 13.36 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.171e-05/0.6996, allocations: 8.906 kB / 0.6798 GB, free: 13.36 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.77e-05/0.6996, allocations: 11.98 kB / 0.6798 GB, free: 13.34 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004942/0.7045, allocations: 1.362 MB / 0.6811 GB, free: 11.98 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006711/0.7052, allocations: 143.7 kB / 0.6813 GB, free: 11.84 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002826/0.7081, allocations: 1.92 MB / 0.6832 GB, free: 9.895 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009697/0.7091, allocations: 43.97 kB / 0.6832 GB, free: 9.852 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001386/0.7092, allocations: 67.98 kB / 0.6833 GB, free: 9.785 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.000651/0.7099, allocations: 397.5 kB / 0.6836 GB, free: 9.387 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002448/0.7101, allocations: 122.6 kB / 0.6838 GB, free: 9.266 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002752/0.7129, allocations: 1.492 MB / 0.6852 GB, free: 7.762 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.516e-06/0.7129, allocations: 8 kB / 0.6852 GB, free: 7.754 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.062e-06/0.7129, allocations: 0 / 0.6852 GB, free: 7.754 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.496e-06/0.7129, allocations: 3.984 kB / 0.6852 GB, free: 7.75 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004109/0.717, allocations: 2.696 MB / 0.6879 GB, free: 4.992 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/0.7171, allocations: 0 / 0.6879 GB, free: 4.992 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001837/0.7189, allocations: 327.6 kB / 0.6882 GB, free: 4.672 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001786/0.7191, allocations: 72.88 kB / 0.6882 GB, free: 4.598 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.046e-05/0.7192, allocations: 31.98 kB / 0.6883 GB, free: 4.566 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002388/0.7216, allocations: 3.037 MB / 0.6912 GB, free: 1.25 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.7216, allocations: 3.938 kB / 0.6912 GB, free: 1.246 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002898/0.7245, allocations: 1.899 MB / 0.6931 GB, free: 15.32 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006587/0.7252, allocations: 331.6 kB / 0.6934 GB, free: 14.98 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002097/0.7254, allocations: 27.98 kB / 0.6934 GB, free: 14.95 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009127/0.7263, allocations: 47.95 kB / 0.6935 GB, free: 14.91 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001685/0.7265, allocations: 60.52 kB / 0.6935 GB, free: 14.85 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001199/0.7266, allocations: 71.88 kB / 0.6936 GB, free: 14.78 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001038/0.7277, allocations: 0.797 MB / 0.6944 GB, free: 13.97 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7277, allocations: 0 / 0.6944 GB, free: 13.97 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001571/0.7293, allocations: 491.8 kB / 0.6949 GB, free: 13.49 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.002245/0.7315, allocations: 0.6844 MB / 0.6955 GB, free: 12.8 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.00353/0.7351, allocations: 1.798 MB / 0.6973 GB, free: 11 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.596e-06/0.7351, allocations: 8.594 kB / 0.6973 GB, free: 10.99 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001671/0.7368, allocations: 0.8506 MB / 0.6981 GB, free: 10.13 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003635/0.7404, allocations: 0.7725 MB / 0.6989 GB, free: 9.379 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005633/0.7461, allocations: 3.015 MB / 0.7018 GB, free: 6.34 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001118/0.7472, allocations: 1.176 MB / 0.703 GB, free: 5.133 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006835/0.7479, allocations: 119.4 kB / 0.7031 GB, free: 5.02 MB / 0.5294 GB Notification: Performance of SimCode: time 7.02e-07/0.7479, allocations: 0 / 0.7031 GB, free: 5.02 MB / 0.5294 GB Notification: Performance of Templates: time 0.2409/0.9888, allocations: 31.86 MB / 0.7342 GB, free: 193.3 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