Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001055/0.001055, allocations: 117 kB / 17.08 MB, free: 5.984 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.001023/0.001023, allocations: 198.9 kB / 18.01 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.5/1.5, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2375/0.2375, allocations: 43.52 MB / 314.8 MB, free: 452 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001464/0.001464, allocations: 72.44 kB / 442.5 MB, free: 5.637 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1477/0.1491, allocations: 57.79 MB / 0.4886 GB, free: 11.77 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.581/0.7302, allocations: 183.1 MB / 0.6674 GB, free: 3.488 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.009468/0.7397, allocations: 6.952 MB / 0.6741 GB, free: 12.51 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000905/0.7407, allocations: 23.81 kB / 0.6742 GB, free: 12.49 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.001285/0.742, allocations: 445.6 kB / 0.6746 GB, free: 12.05 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.00555/0.7475, allocations: 2.007 MB / 0.6766 GB, free: 10.04 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.004824/0.7524, allocations: 1.7 MB / 0.6782 GB, free: 8.344 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.00319/0.7556, allocations: 2.231 MB / 0.6804 GB, free: 6.105 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001285/0.7569, allocations: 0.7738 MB / 0.6812 GB, free: 5.332 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004834/0.7617, allocations: 1.936 MB / 0.683 GB, free: 3.391 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002967/0.7647, allocations: 1.574 MB / 0.6846 GB, free: 1.812 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0002976/0.765, allocations: 107.9 kB / 0.6847 GB, free: 1.707 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003938/0.769, allocations: 1.591 MB / 0.6862 GB, free: 116 kB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0008967/0.7699, allocations: 0.6898 MB / 0.6869 GB, free: 15.42 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.001058/0.771, allocations: 0.7471 MB / 0.6876 GB, free: 14.67 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.004595/0.7756, allocations: 2.743 MB / 0.6903 GB, free: 11.92 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.7756, allocations: 0 / 0.6903 GB, free: 11.92 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.275e-06/0.7756, allocations: 0 / 0.6903 GB, free: 11.92 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 2.678e-05/0.7757, allocations: 0 / 0.6903 GB, free: 11.92 MB / 0.5294 GB 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.003929/0.7796, allocations: 1.684 MB / 0.692 GB, free: 10.18 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 5.403e-05/0.7797, allocations: 15.83 kB / 0.692 GB, free: 10.17 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001528/0.7812, allocations: 310.3 kB / 0.6923 GB, free: 9.863 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00145/0.7827, allocations: 0.7728 MB / 0.693 GB, free: 9.047 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001462/0.7828, allocations: 141.3 kB / 0.6932 GB, free: 8.898 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000183/0.783, allocations: 111.9 kB / 0.6933 GB, free: 8.789 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002825/0.7858, allocations: 1.837 MB / 0.6951 GB, free: 6.883 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.114e-05/0.7859, allocations: 0 / 0.6951 GB, free: 6.883 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001389/0.786, allocations: 51.98 kB / 0.6951 GB, free: 6.832 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001126/0.7862, allocations: 89.89 kB / 0.6952 GB, free: 6.742 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00272/0.7889, allocations: 1.694 MB / 0.6969 GB, free: 5.051 MB / 0.5294 GB 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.01023/0.7991, allocations: 6.907 MB / 0.7036 GB, free: 13.67 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00141/0.8006, allocations: 0.877 MB / 0.7045 GB, free: 12.79 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006916/0.8013, allocations: 454.1 kB / 0.7049 GB, free: 12.34 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000206/0.8015, allocations: 147.7 kB / 0.705 GB, free: 12.18 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.92e-05/0.8015, allocations: 47.11 kB / 0.7051 GB, free: 12.12 MB / 0.545 GB Notification: Performance of pre-optimization done (n=60): time 3.737e-06/0.8016, allocations: 4 kB / 0.7051 GB, free: 12.11 MB / 0.545 GB Notification: Performance of matching and sorting (n=72): time 0.01096/0.8125, allocations: 4.118 MB / 0.7091 GB, free: 7.91 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.842e-05/0.8126, allocations: 111.5 kB / 0.7092 GB, free: 7.777 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00174/0.8144, allocations: 1.101 MB / 0.7103 GB, free: 6.652 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0001567/0.8146, allocations: 41.7 kB / 0.7103 GB, free: 6.605 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004681/0.815, allocations: 0.5223 MB / 0.7108 GB, free: 6.074 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002354/0.8153, allocations: 268.2 kB / 0.7111 GB, free: 5.809 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003751/0.8157, allocations: 218.3 kB / 0.7113 GB, free: 5.59 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001406/0.8158, allocations: 349.9 kB / 0.7116 GB, free: 5.242 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009475/0.8168, allocations: 0.5797 MB / 0.7122 GB, free: 4.66 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001152/0.8179, allocations: 0.8721 MB / 0.713 GB, free: 3.672 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002201/0.8202, allocations: 1.447 MB / 0.7145 GB, free: 2.113 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.215e-05/0.8202, allocations: 4 kB / 0.7145 GB, free: 2.109 MB / 0.545 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.00397/0.8242, allocations: 2 MB / 0.7164 GB, free: 100 kB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 3.049e-05/0.8242, allocations: 8 kB / 0.7164 GB, free: 92 kB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.991e-05/0.8242, allocations: 8 kB / 0.7164 GB, free: 84 kB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004692/0.8289, allocations: 1.32 MB / 0.7177 GB, free: 14.76 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006789/0.8296, allocations: 143.8 kB / 0.7179 GB, free: 14.62 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003051/0.8327, allocations: 1.924 MB / 0.7197 GB, free: 12.67 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001162/0.8339, allocations: 51.95 kB / 0.7198 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001753/0.8341, allocations: 67.98 kB / 0.7198 GB, free: 12.55 MB / 0.5606 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.0009314/0.835, allocations: 389.6 kB / 0.7202 GB, free: 12.16 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004539/0.8355, allocations: 110.7 kB / 0.7203 GB, free: 12.05 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002863/0.8384, allocations: 1.41 MB / 0.7217 GB, free: 10.62 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.244e-05/0.8384, allocations: 8 kB / 0.7217 GB, free: 10.62 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.468e-06/0.8384, allocations: 0 / 0.7217 GB, free: 10.62 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.065e-05/0.8384, allocations: 3.984 kB / 0.7217 GB, free: 10.61 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004803/0.8432, allocations: 2.673 MB / 0.7243 GB, free: 7.871 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.343e-06/0.8432, allocations: 3.938 kB / 0.7243 GB, free: 7.867 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001773/0.845, allocations: 327.6 kB / 0.7246 GB, free: 7.547 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002294/0.8453, allocations: 72.69 kB / 0.7247 GB, free: 7.473 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001124/0.8454, allocations: 35.97 kB / 0.7247 GB, free: 7.438 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00265/0.8481, allocations: 3.033 MB / 0.7277 GB, free: 4.129 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.332e-06/0.8481, allocations: 4.031 kB / 0.7277 GB, free: 4.125 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00325/0.8513, allocations: 1.9 MB / 0.7296 GB, free: 2.203 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008733/0.8522, allocations: 339.6 kB / 0.7299 GB, free: 1.852 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003382/0.8526, allocations: 27.98 kB / 0.7299 GB, free: 1.824 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001118/0.8537, allocations: 47.95 kB / 0.73 GB, free: 1.777 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001917/0.8539, allocations: 60.56 kB / 0.73 GB, free: 1.715 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001825/0.8541, allocations: 59.95 kB / 0.7301 GB, free: 1.656 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001418/0.8555, allocations: 0.797 MB / 0.7309 GB, free: 0.8477 MB / 0.5606 GB Notification: Performance of sort global known variables: time 4.2e-07/0.8555, allocations: 4 kB / 0.7309 GB, free: 0.8438 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.002099/0.8576, allocations: 0.5116 MB / 0.7314 GB, free: 340 kB / 0.5606 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.002708/0.8603, allocations: 0.8016 MB / 0.7321 GB, free: 15.52 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.00316/0.8635, allocations: 1.473 MB / 0.7336 GB, free: 14.05 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 8.426e-06/0.8635, allocations: 4.656 kB / 0.7336 GB, free: 14.05 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001769/0.8653, allocations: 0.8468 MB / 0.7344 GB, free: 13.19 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004081/0.8694, allocations: 0.7567 MB / 0.7352 GB, free: 12.43 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006467/0.8759, allocations: 2.967 MB / 0.738 GB, free: 9.434 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001077/0.877, allocations: 1.176 MB / 0.7392 GB, free: 8.23 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005301/0.8776, allocations: 111.4 kB / 0.7393 GB, free: 8.121 MB / 0.5762 GB Notification: Performance of SimCode: time 1.112e-06/0.8776, allocations: 0 / 0.7393 GB, free: 8.121 MB / 0.5762 GB Notification: Performance of Templates: time 0.3429/1.221, allocations: 32.75 MB / 0.7713 GB, free: 225.1 MB / 0.5919 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.sim & ./ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Media/TestsWithFluid/MediaTestModels/IdealGases/SimpleNaturalGas/SimpleNaturalGas.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches