Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001004/0.001003, allocations: 202.2 kB / 15.8 MB, free: 6.332 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.277/1.277, allocations: 226.6 MB / 243.1 MB, free: 12.55 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008139/0.000814, allocations: 99.33 kB / 295.1 MB, free: 4.418 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1811/0.1811, allocations: 44.83 MB / 392 MB, free: 11.38 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002408/0.0002408, allocations: 8 kB / 464.8 MB, free: 68.06 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08968/0.08993, allocations: 62.95 MB / 0.5153 GB, free: 5.102 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.3408/0.4308, allocations: 161.7 MB / 0.6732 GB, free: 3.809 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.007735/0.4385, allocations: 6.198 MB / 0.6793 GB, free: 13.6 MB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006825/0.4393, allocations: 23.81 kB / 0.6793 GB, free: 13.57 MB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001015/0.4403, allocations: 310 kB / 0.6796 GB, free: 13.27 MB / 474.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:784:36-785:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:782:36-783:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:730:36-731:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Fluid/Sources.mo:728:36-729:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.00374/0.4441, allocations: 1.418 MB / 0.681 GB, free: 11.85 MB / 474.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003084/0.4472, allocations: 1.083 MB / 0.682 GB, free: 10.77 MB / 474.7 MB Notification: Performance of NFFlatten.flatten: time 0.003101/0.4503, allocations: 2.656 MB / 0.6846 GB, free: 8.109 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001173/0.4515, allocations: 0.6247 MB / 0.6852 GB, free: 7.477 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003153/0.4546, allocations: 1.614 MB / 0.6868 GB, free: 5.859 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002695/0.4573, allocations: 1.719 MB / 0.6885 GB, free: 4.137 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002901/0.4576, allocations: 56 kB / 0.6885 GB, free: 4.082 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002585/0.4602, allocations: 1.261 MB / 0.6898 GB, free: 2.82 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006494/0.4609, allocations: 0.6742 MB / 0.6904 GB, free: 2.145 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004995/0.4614, allocations: 289.1 kB / 0.6907 GB, free: 1.855 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002249/0.4637, allocations: 1.984 MB / 0.6926 GB, free: 15.87 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.4637, allocations: 0 / 0.6926 GB, free: 15.87 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.4637, allocations: 0 / 0.6926 GB, free: 15.87 MB / 490.7 MB Notification: Performance of Transformations before backend: time 2.101e-05/0.4637, allocations: 0 / 0.6926 GB, free: 15.87 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.002938/0.4666, allocations: 1.446 MB / 0.6941 GB, free: 14.37 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.285e-05/0.4667, allocations: 12.02 kB / 0.6941 GB, free: 14.36 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001303/0.468, allocations: 318.2 kB / 0.6944 GB, free: 14.05 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001141/0.4691, allocations: 0.7263 MB / 0.6951 GB, free: 13.28 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001325/0.4693, allocations: 141.4 kB / 0.6952 GB, free: 13.13 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001703/0.4695, allocations: 103.9 kB / 0.6953 GB, free: 13.03 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002657/0.4721, allocations: 1.834 MB / 0.6971 GB, free: 11.12 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.921e-05/0.4722, allocations: 8 kB / 0.6971 GB, free: 11.12 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001324/0.4723, allocations: 44 kB / 0.6972 GB, free: 11.07 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001038/0.4724, allocations: 101.8 kB / 0.6972 GB, free: 10.98 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002462/0.4749, allocations: 1.706 MB / 0.6989 GB, free: 9.266 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.008545/0.4834, allocations: 6.88 MB / 0.7056 GB, free: 1.914 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001226/0.4847, allocations: 0.8531 MB / 0.7065 GB, free: 1.055 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005937/0.4853, allocations: 446.3 kB / 0.7069 GB, free: 0.6172 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000111/0.4854, allocations: 97.66 kB / 0.707 GB, free: 0.5 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.506e-05/0.4855, allocations: 51.08 kB / 0.707 GB, free: 452 kB / 490.7 MB Notification: Performance of pre-optimization done (n=60): time 2.545e-06/0.4855, allocations: 3.938 kB / 0.707 GB, free: 448 kB / 490.7 MB Notification: Performance of matching and sorting (n=72): time 0.009595/0.4951, allocations: 4.138 MB / 0.7111 GB, free: 12.23 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.381e-05/0.4951, allocations: 107.5 kB / 0.7112 GB, free: 12.11 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001337/0.4965, allocations: 1.097 MB / 0.7123 GB, free: 10.98 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 9.356e-05/0.4966, allocations: 45.7 kB / 0.7123 GB, free: 10.93 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003724/0.497, allocations: 0.53 MB / 0.7128 GB, free: 10.39 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001933/0.4972, allocations: 268.2 kB / 0.7131 GB, free: 10.13 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.116e-05/0.4972, allocations: 20 kB / 0.7131 GB, free: 10.11 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001161/0.4974, allocations: 345.9 kB / 0.7134 GB, free: 9.766 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008651/0.4982, allocations: 0.5719 MB / 0.714 GB, free: 9.191 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001055/0.4993, allocations: 0.8604 MB / 0.7148 GB, free: 8.211 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001006/0.5003, allocations: 0.69 MB / 0.7155 GB, free: 7.523 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/0.5003, allocations: 0 / 0.7155 GB, free: 7.523 MB / 0.4948 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002969/0.5033, allocations: 1.989 MB / 0.7174 GB, free: 5.523 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.124e-05/0.5033, allocations: 13.78 kB / 0.7174 GB, free: 5.512 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.14e-05/0.5034, allocations: 8 kB / 0.7175 GB, free: 5.504 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004568/0.5079, allocations: 1.405 MB / 0.7188 GB, free: 4.102 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005222/0.5085, allocations: 143.8 kB / 0.719 GB, free: 3.961 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002596/0.5111, allocations: 1.92 MB / 0.7208 GB, free: 2.016 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001002/0.5121, allocations: 115.8 kB / 0.7209 GB, free: 1.902 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001085/0.5122, allocations: 67.98 kB / 0.721 GB, free: 1.836 MB / 0.4948 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 (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.0006531/0.5129, allocations: 405.3 kB / 0.7214 GB, free: 1.43 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001843/0.5131, allocations: 110.8 kB / 0.7215 GB, free: 1.32 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002424/0.5155, allocations: 1.475 MB / 0.7229 GB, free: 15.83 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.769e-06/0.5155, allocations: 8 kB / 0.723 GB, free: 15.82 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.5155, allocations: 0 / 0.723 GB, free: 15.82 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.091e-05/0.5155, allocations: 3.984 kB / 0.723 GB, free: 15.82 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003789/0.5193, allocations: 2.684 MB / 0.7256 GB, free: 13.08 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.05e-06/0.5194, allocations: 0 / 0.7256 GB, free: 13.08 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001709/0.5211, allocations: 323.6 kB / 0.7259 GB, free: 12.76 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001862/0.5213, allocations: 68.72 kB / 0.726 GB, free: 12.69 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.75e-05/0.5214, allocations: 39.97 kB / 0.726 GB, free: 12.65 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002155/0.5235, allocations: 2.84 MB / 0.7288 GB, free: 9.543 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.5235, allocations: 0 / 0.7288 GB, free: 9.543 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002641/0.5262, allocations: 1.883 MB / 0.7306 GB, free: 7.637 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006153/0.5268, allocations: 343.7 kB / 0.7309 GB, free: 7.281 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000165/0.527, allocations: 28.17 kB / 0.731 GB, free: 7.254 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009218/0.5279, allocations: 83.83 kB / 0.731 GB, free: 7.172 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001356/0.5281, allocations: 64.5 kB / 0.7311 GB, free: 7.109 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001122/0.5282, allocations: 67.94 kB / 0.7312 GB, free: 7.043 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0009576/0.5291, allocations: 0.7892 MB / 0.7319 GB, free: 6.242 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5291, allocations: 0 / 0.7319 GB, free: 6.242 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.00134/0.5305, allocations: 487.9 kB / 0.7324 GB, free: 5.766 MB / 0.5105 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 (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.001793/0.5323, allocations: 0.5921 MB / 0.733 GB, free: 5.172 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.002493/0.5348, allocations: 1.45 MB / 0.7344 GB, free: 3.723 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.594e-06/0.5348, allocations: 4.656 kB / 0.7344 GB, free: 3.719 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001559/0.5364, allocations: 0.8467 MB / 0.7352 GB, free: 2.855 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00324/0.5396, allocations: 0.7332 MB / 0.7359 GB, free: 2.137 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004641/0.5443, allocations: 3.423 MB / 0.7393 GB, free: 14.68 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000673/0.545, allocations: 1.176 MB / 0.7404 GB, free: 13.48 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003973/0.5454, allocations: 119.4 kB / 0.7405 GB, free: 13.36 MB / 0.5261 GB Notification: Performance of SimCode: time 5.91e-07/0.5454, allocations: 0 / 0.7405 GB, free: 13.36 MB / 0.5261 GB Notification: Performance of Templates: time 0.2239/0.7693, allocations: 31.6 MB / 0.7714 GB, free: 185.7 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches