Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008614/0.0008614, allocations: 98.05 kB / 18.01 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009907/0.0009908, allocations: 203.9 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.355/1.355, allocations: 227.7 MB / 247.5 MB, free: 9.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2072/0.2072, allocations: 46.18 MB / 345.9 MB, free: 11.16 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002541/0.0002541, allocations: 4 kB / 420.2 MB, free: 19.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1111, allocations: 63.57 MB / 483.7 MB, free: 4.105 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.4009/0.512, allocations: 176.1 MB / 0.6444 GB, free: 4.461 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.009512/0.5216, allocations: 6.61 MB / 0.6508 GB, free: 13.83 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001009/0.5227, allocations: 27.75 kB / 0.6508 GB, free: 13.8 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001272/0.524, allocations: 390.1 kB / 0.6512 GB, free: 13.42 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004431/0.5284, allocations: 1.621 MB / 0.6528 GB, free: 11.8 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003721/0.5321, allocations: 1.381 MB / 0.6542 GB, free: 10.43 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.00359/0.5357, allocations: 3.254 MB / 0.6573 GB, free: 7.168 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001049/0.5368, allocations: 0.6488 MB / 0.658 GB, free: 6.512 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003377/0.5402, allocations: 1.706 MB / 0.6596 GB, free: 4.801 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003138/0.5434, allocations: 1.683 MB / 0.6613 GB, free: 3.113 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003416/0.5437, allocations: 56 kB / 0.6613 GB, free: 3.059 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003545/0.5473, allocations: 1.828 MB / 0.6631 GB, free: 1.227 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008759/0.5482, allocations: 0.6507 MB / 0.6637 GB, free: 0.5742 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001353/0.5495, allocations: 0.7253 MB / 0.6645 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.002769/0.5523, allocations: 2.03 MB / 0.6664 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.5523, allocations: 0 / 0.6664 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.034e-06/0.5523, allocations: 3.938 kB / 0.6664 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.85e-05/0.5524, allocations: 0 / 0.6664 GB, free: 13.8 MB / 0.4981 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.00399/0.5564, allocations: 1.434 MB / 0.6678 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.61e-05/0.5565, allocations: 8.031 kB / 0.6679 GB, free: 12.31 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001809/0.5583, allocations: 330.1 kB / 0.6682 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001563/0.5599, allocations: 0.7377 MB / 0.6689 GB, free: 11.21 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001774/0.5601, allocations: 141.3 kB / 0.669 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000338/0.5604, allocations: 107.9 kB / 0.6691 GB, free: 10.95 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00347/0.5639, allocations: 1.845 MB / 0.6709 GB, free: 9.035 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.468e-05/0.5639, allocations: 4 kB / 0.6709 GB, free: 9.031 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001805/0.5641, allocations: 47.98 kB / 0.671 GB, free: 8.984 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001147/0.5643, allocations: 101.9 kB / 0.6711 GB, free: 8.887 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003004/0.5673, allocations: 1.694 MB / 0.6727 GB, free: 7.188 MB / 0.4981 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.01005/0.5773, allocations: 6.946 MB / 0.6795 GB, free: 15.77 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001325/0.5787, allocations: 0.8789 MB / 0.6804 GB, free: 14.88 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006374/0.5793, allocations: 451.2 kB / 0.6808 GB, free: 14.44 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001273/0.5795, allocations: 109.7 kB / 0.6809 GB, free: 14.32 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.906e-05/0.5795, allocations: 51.06 kB / 0.681 GB, free: 14.26 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=60): time 2.775e-06/0.5795, allocations: 0 / 0.681 GB, free: 14.26 MB / 0.5137 GB Notification: Performance of matching and sorting (n=72): time 0.01052/0.59, allocations: 4.186 MB / 0.685 GB, free: 10 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.024e-05/0.5901, allocations: 111.5 kB / 0.6851 GB, free: 9.871 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001545/0.5917, allocations: 1.109 MB / 0.6862 GB, free: 8.738 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0001283/0.5918, allocations: 41.7 kB / 0.6863 GB, free: 8.691 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004103/0.5923, allocations: 0.5224 MB / 0.6868 GB, free: 8.16 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.000232/0.5925, allocations: 264.2 kB / 0.687 GB, free: 7.898 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001524/0.5927, allocations: 89.67 kB / 0.6871 GB, free: 7.805 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001324/0.5928, allocations: 349.9 kB / 0.6874 GB, free: 7.457 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009521/0.5938, allocations: 0.5836 MB / 0.688 GB, free: 6.871 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001149/0.5949, allocations: 0.8721 MB / 0.6889 GB, free: 5.879 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001996/0.5969, allocations: 1.451 MB / 0.6903 GB, free: 4.316 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.975e-06/0.5969, allocations: 3.984 kB / 0.6903 GB, free: 4.312 MB / 0.5137 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003253/0.6002, allocations: 2.001 MB / 0.6922 GB, free: 2.305 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.551e-05/0.6002, allocations: 8 kB / 0.6923 GB, free: 2.297 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.894e-05/0.6003, allocations: 11.98 kB / 0.6923 GB, free: 2.285 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005007/0.6053, allocations: 1.4 MB / 0.6936 GB, free: 0.8906 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006554/0.606, allocations: 151.7 kB / 0.6938 GB, free: 0.7422 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003005/0.609, allocations: 1.936 MB / 0.6957 GB, free: 14.77 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001312/0.6103, allocations: 111.8 kB / 0.6958 GB, free: 14.66 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001532/0.6105, allocations: 67.98 kB / 0.6958 GB, free: 14.6 MB / 0.5294 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.0008212/0.6113, allocations: 401.3 kB / 0.6962 GB, free: 14.2 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000317/0.6116, allocations: 110.7 kB / 0.6963 GB, free: 14.09 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003005/0.6146, allocations: 1.499 MB / 0.6978 GB, free: 12.57 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.517e-05/0.6147, allocations: 8 kB / 0.6978 GB, free: 12.57 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.887e-06/0.6147, allocations: 3.938 kB / 0.6978 GB, free: 12.56 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.043e-05/0.6147, allocations: 7.984 kB / 0.6978 GB, free: 12.55 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004595/0.6193, allocations: 2.688 MB / 0.7004 GB, free: 9.805 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.588e-06/0.6193, allocations: 0 / 0.7004 GB, free: 9.805 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001798/0.6211, allocations: 323.7 kB / 0.7007 GB, free: 9.488 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001982/0.6213, allocations: 76.66 kB / 0.7008 GB, free: 9.41 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.465e-05/0.6214, allocations: 35.97 kB / 0.7008 GB, free: 9.375 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002377/0.6238, allocations: 2.851 MB / 0.7036 GB, free: 6.262 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.6238, allocations: 0 / 0.7036 GB, free: 6.262 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003008/0.6269, allocations: 1.899 MB / 0.7055 GB, free: 4.336 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008464/0.6277, allocations: 351.5 kB / 0.7058 GB, free: 3.973 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003008/0.628, allocations: 31.98 kB / 0.7059 GB, free: 3.941 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001205/0.6292, allocations: 84.02 kB / 0.7059 GB, free: 3.859 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001744/0.6294, allocations: 64.56 kB / 0.706 GB, free: 3.797 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001452/0.6296, allocations: 63.89 kB / 0.7061 GB, free: 3.734 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001193/0.6308, allocations: 0.8009 MB / 0.7068 GB, free: 2.922 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.9e-07/0.6308, allocations: 0 / 0.7068 GB, free: 2.922 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001601/0.6324, allocations: 487.9 kB / 0.7073 GB, free: 2.445 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.002317/0.6347, allocations: 0.6808 MB / 0.708 GB, free: 1.762 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.002742/0.6375, allocations: 1.466 MB / 0.7094 GB, free: 308 kB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.163e-06/0.6375, allocations: 0.6562 kB / 0.7094 GB, free: 304 kB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.205/0.8425, allocations: 0.853 MB / 0.7102 GB, free: 196.2 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004081/0.8467, allocations: 0.7278 MB / 0.7109 GB, free: 196.2 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005724/0.8524, allocations: 3.554 MB / 0.7144 GB, free: 195 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000852/0.8533, allocations: 1.176 MB / 0.7156 GB, free: 194.3 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000494/0.8538, allocations: 117.4 kB / 0.7157 GB, free: 194.3 MB / 0.5294 GB Notification: Performance of SimCode: time 5.41e-07/0.8538, allocations: 0.9688 kB / 0.7157 GB, free: 194.3 MB / 0.5294 GB Notification: Performance of Templates: time 0.04099/0.8948, allocations: 31.78 MB / 0.7467 GB, free: 175.8 MB / 0.5294 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.sim & ./ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference: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 Variables in the result: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