Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001554/0.001554, allocations: 175.1 kB / 16.72 MB, free: 5.059 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.277/1.277, allocations: 205.4 MB / 222.9 MB, free: 9.035 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000749/0.000749, allocations: 94.59 kB / 271.2 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2876/0.2876, allocations: 43.57 MB / 363.1 MB, free: 52.14 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003433/0.0003434, allocations: 16 kB / 432 MB, free: 5.824 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09418/0.09454, allocations: 58.86 MB / 490.8 MB, free: 10.89 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.3095/0.4041, allocations: 167.1 MB / 0.6425 GB, free: 15.77 MB / 474.7 MB Notification: Performance of NFInst.instExpressions: time 0.007658/0.4118, allocations: 6.611 MB / 0.6489 GB, free: 9.141 MB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007151/0.4125, allocations: 23.81 kB / 0.649 GB, free: 9.117 MB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000947/0.4135, allocations: 366 kB / 0.6493 GB, free: 8.758 MB / 474.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:788:36-789:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:786:36-787:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.003943/0.4174, allocations: 1.81 MB / 0.6511 GB, free: 6.945 MB / 474.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003254/0.4207, allocations: 1.424 MB / 0.6525 GB, free: 5.535 MB / 474.7 MB Notification: Performance of NFFlatten.flatten: time 0.002534/0.4233, allocations: 2.664 MB / 0.6551 GB, free: 2.867 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008643/0.4241, allocations: 0.6647 MB / 0.6557 GB, free: 2.211 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003329/0.4275, allocations: 1.822 MB / 0.6575 GB, free: 396 kB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002556/0.43, allocations: 1.707 MB / 0.6592 GB, free: 14.67 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001622/0.4302, allocations: 56 kB / 0.6592 GB, free: 14.62 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003451/0.4337, allocations: 2.149 MB / 0.6613 GB, free: 12.46 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005982/0.4343, allocations: 0.682 MB / 0.662 GB, free: 11.78 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007424/0.435, allocations: 0.6944 MB / 0.6627 GB, free: 11.08 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002065/0.4371, allocations: 2.097 MB / 0.6647 GB, free: 8.977 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.4371, allocations: 0 / 0.6647 GB, free: 8.977 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.4371, allocations: 0 / 0.6647 GB, free: 8.977 MB / 490.7 MB Notification: Performance of Transformations before backend: time 1.53e-05/0.4372, allocations: 0 / 0.6647 GB, free: 8.977 MB / 490.7 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.002596/0.4398, allocations: 1.407 MB / 0.6661 GB, free: 7.52 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.189e-05/0.4398, allocations: 11.97 kB / 0.6661 GB, free: 7.508 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001272/0.4411, allocations: 306.2 kB / 0.6664 GB, free: 7.207 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001066/0.4422, allocations: 0.7493 MB / 0.6671 GB, free: 6.418 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001167/0.4423, allocations: 147 kB / 0.6673 GB, free: 6.262 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001572/0.4425, allocations: 104 kB / 0.6674 GB, free: 6.16 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002455/0.4449, allocations: 1.837 MB / 0.6691 GB, free: 4.254 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.972e-05/0.445, allocations: 7.906 kB / 0.6692 GB, free: 4.246 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001325/0.4451, allocations: 40 kB / 0.6692 GB, free: 4.207 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.164e-05/0.4452, allocations: 97.89 kB / 0.6693 GB, free: 4.113 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002473/0.4477, allocations: 1.71 MB / 0.671 GB, free: 2.402 MB / 490.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.1694/0.6171, allocations: 6.926 MB / 0.6777 GB, free: 148 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00125/0.6183, allocations: 0.8474 MB / 0.6785 GB, free: 148 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005945/0.619, allocations: 442.4 kB / 0.679 GB, free: 148 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001521/0.6191, allocations: 147.1 kB / 0.6791 GB, free: 147.9 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.297e-05/0.6192, allocations: 49.55 kB / 0.6792 GB, free: 147.8 MB / 490.7 MB Notification: Performance of pre-optimization done (n=60): time 2.344e-06/0.6192, allocations: 0.7656 kB / 0.6792 GB, free: 147.8 MB / 490.7 MB Notification: Performance of matching and sorting (n=72): time 0.009615/0.6288, allocations: 4.122 MB / 0.6832 GB, free: 147 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.147e-05/0.6289, allocations: 115.7 kB / 0.6833 GB, free: 146.9 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001242/0.6301, allocations: 1.093 MB / 0.6844 GB, free: 146.5 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001317/0.6303, allocations: 42.86 kB / 0.6844 GB, free: 146.4 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00029/0.6306, allocations: 0.5235 MB / 0.6849 GB, free: 146 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001566/0.6307, allocations: 265.3 kB / 0.6852 GB, free: 145.8 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.189e-05/0.6308, allocations: 25.06 kB / 0.6852 GB, free: 145.8 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 6.375e-05/0.6309, allocations: 343.8 kB / 0.6855 GB, free: 145.5 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007604/0.6316, allocations: 0.5714 MB / 0.6861 GB, free: 145.3 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008677/0.6325, allocations: 0.8592 MB / 0.6869 GB, free: 144.8 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001646/0.6342, allocations: 1.423 MB / 0.6883 GB, free: 144 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.574e-06/0.6342, allocations: 2.688 kB / 0.6883 GB, free: 144 MB / 490.7 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.00285/0.637, allocations: 1.986 MB / 0.6902 GB, free: 143.2 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.032e-05/0.6371, allocations: 13.16 kB / 0.6903 GB, free: 143.2 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.54e-05/0.6371, allocations: 6.281 kB / 0.6903 GB, free: 143.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004387/0.6415, allocations: 1.379 MB / 0.6916 GB, free: 143 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006106/0.6421, allocations: 143.4 kB / 0.6917 GB, free: 143 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002825/0.645, allocations: 1.919 MB / 0.6936 GB, free: 142 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00123/0.6462, allocations: 111.5 kB / 0.6937 GB, free: 141.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001518/0.6464, allocations: 64.38 kB / 0.6938 GB, free: 141.9 MB / 490.7 MB 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {9 35} Notification: Performance of prepare postOptimizeDAE: time 0.0007347/0.6472, allocations: 405.3 kB / 0.6942 GB, free: 141.7 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002883/0.6474, allocations: 110.2 kB / 0.6943 GB, free: 141.6 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002225/0.6497, allocations: 1.385 MB / 0.6956 GB, free: 141.1 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.125e-05/0.6497, allocations: 13.62 kB / 0.6956 GB, free: 141.1 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.787e-06/0.6497, allocations: 0 / 0.6956 GB, free: 141.1 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.347e-06/0.6497, allocations: 3.188 kB / 0.6956 GB, free: 141.1 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003909/0.6537, allocations: 2.672 MB / 0.6983 GB, free: 139.9 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.05e-06/0.6537, allocations: 2.5 kB / 0.6983 GB, free: 139.9 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0016/0.6553, allocations: 323.4 kB / 0.6986 GB, free: 139.9 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002121/0.6555, allocations: 73.59 kB / 0.6986 GB, free: 139.9 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.186e-05/0.6556, allocations: 38.53 kB / 0.6987 GB, free: 139.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001728/0.6574, allocations: 2.833 MB / 0.7014 GB, free: 137.1 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.6574, allocations: 6.469 kB / 0.7015 GB, free: 137.1 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002477/0.6599, allocations: 1.872 MB / 0.7033 GB, free: 136.3 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007673/0.6607, allocations: 354.4 kB / 0.7036 GB, free: 136.1 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002669/0.6609, allocations: 28.95 kB / 0.7036 GB, free: 136.1 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009983/0.6619, allocations: 76.75 kB / 0.7037 GB, free: 136.1 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000145/0.6621, allocations: 67.09 kB / 0.7038 GB, free: 136.1 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001317/0.6622, allocations: 67.97 kB / 0.7038 GB, free: 136 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0009481/0.6632, allocations: 0.7854 MB / 0.7046 GB, free: 135.7 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6632, allocations: 0 / 0.7046 GB, free: 135.7 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001527/0.6647, allocations: 0.5208 MB / 0.7051 GB, free: 135.7 MB / 490.7 MB 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 (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002266/0.667, allocations: 0.7951 MB / 0.7059 GB, free: 135.5 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.002332/0.6694, allocations: 1.45 MB / 0.7073 GB, free: 135 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 6.542e-06/0.6694, allocations: 3.906 kB / 0.7073 GB, free: 135 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001419/0.6708, allocations: 0.8514 MB / 0.7081 GB, free: 134.7 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003175/0.674, allocations: 0.7219 MB / 0.7089 GB, free: 134.5 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004585/0.6786, allocations: 3.437 MB / 0.7122 GB, free: 132.7 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000647/0.6793, allocations: 1.169 MB / 0.7134 GB, free: 132 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004367/0.6797, allocations: 113.8 kB / 0.7135 GB, free: 131.9 MB / 490.7 MB Notification: Performance of SimCode: time 7.41e-07/0.6797, allocations: 0 / 0.7135 GB, free: 131.9 MB / 490.7 MB Notification: Performance of Templates: time 0.04088/0.7206, allocations: 32.27 MB / 0.745 GB, free: 112.1 MB / 490.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Media/TestsWithFluid/MediaTestModels/IdealGases/SimpleNaturalGas/SimpleNaturalGas.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches