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.001918/0.001918, allocations: 109.5 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002861/0.002861, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.177/2.177, allocations: 227.4 MB / 246.9 MB, free: 8.863 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3263/0.3263, allocations: 46.1 MB / 344.3 MB, free: 11.54 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002028/0.002028, allocations: 81.45 kB / 417.5 MB, free: 20.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1837/0.1857, allocations: 62.44 MB / 479.9 MB, free: 5.668 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.7274/0.9132, allocations: 178.4 MB / 0.6429 GB, free: 1.43 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.0148/0.9281, allocations: 6.703 MB / 0.6494 GB, free: 10.71 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002059/0.9302, allocations: 27.75 kB / 0.6495 GB, free: 10.68 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002338/0.9326, allocations: 386.1 kB / 0.6498 GB, free: 10.3 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008084/0.9408, allocations: 1.618 MB / 0.6514 GB, free: 8.688 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006321/0.9472, allocations: 1.388 MB / 0.6528 GB, free: 7.305 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.005677/0.9529, allocations: 3.242 MB / 0.6559 GB, free: 4.059 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001917/0.9549, allocations: 0.6566 MB / 0.6566 GB, free: 3.395 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006076/0.961, allocations: 1.706 MB / 0.6583 GB, free: 1.684 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004599/0.9656, allocations: 1.702 MB / 0.6599 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.000353/0.966, allocations: 56 kB / 0.66 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005495/0.9715, allocations: 1.832 MB / 0.6618 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.001131/0.9727, allocations: 0.6468 MB / 0.6624 GB, free: 13.44 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.001421/0.9741, allocations: 0.6963 MB / 0.6631 GB, free: 12.74 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.004165/0.9783, allocations: 2.062 MB / 0.6651 GB, free: 10.67 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.9783, allocations: 0 / 0.6651 GB, free: 10.67 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.014e-06/0.9784, allocations: 0 / 0.6651 GB, free: 10.67 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 3.806e-05/0.9784, allocations: 0 / 0.6651 GB, free: 10.67 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.006024/0.9844, allocations: 1.715 MB / 0.6668 GB, free: 8.906 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 6.46e-05/0.9845, allocations: 8.031 kB / 0.6668 GB, free: 8.898 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00235/0.9869, allocations: 314.2 kB / 0.6671 GB, free: 8.59 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002124/0.989, allocations: 0.7377 MB / 0.6678 GB, free: 7.812 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002237/0.9893, allocations: 145.3 kB / 0.6679 GB, free: 7.656 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002777/0.9895, allocations: 103.9 kB / 0.668 GB, free: 7.555 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004375/0.9939, allocations: 1.849 MB / 0.6698 GB, free: 5.637 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.359e-05/0.994, allocations: 11.98 kB / 0.6698 GB, free: 5.625 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002213/0.9942, allocations: 47.98 kB / 0.6699 GB, free: 5.578 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001587/0.9944, allocations: 89.95 kB / 0.67 GB, free: 5.492 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004223/0.9986, allocations: 1.698 MB / 0.6716 GB, free: 3.789 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.01579/1.014, allocations: 6.942 MB / 0.6784 GB, free: 12.38 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002108/1.017, allocations: 0.875 MB / 0.6793 GB, free: 11.49 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009712/1.018, allocations: 455.1 kB / 0.6797 GB, free: 11.05 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000219/1.018, allocations: 109.6 kB / 0.6798 GB, free: 10.92 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.624e-05/1.018, allocations: 54.98 kB / 0.6799 GB, free: 10.86 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=60): time 4.198e-06/1.018, allocations: 0 / 0.6799 GB, free: 10.86 MB / 0.5137 GB Notification: Performance of matching and sorting (n=72): time 0.01688/1.035, allocations: 4.24 MB / 0.684 GB, free: 6.547 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001069/1.035, allocations: 111.5 kB / 0.6841 GB, free: 6.414 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002405/1.037, allocations: 1.101 MB / 0.6852 GB, free: 5.289 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0002966/1.038, allocations: 41.7 kB / 0.6852 GB, free: 5.242 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005913/1.038, allocations: 0.5262 MB / 0.6857 GB, free: 4.707 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003804/1.039, allocations: 268.2 kB / 0.686 GB, free: 4.441 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005677/1.039, allocations: 210.5 kB / 0.6862 GB, free: 4.227 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0002239/1.04, allocations: 349.9 kB / 0.6865 GB, free: 3.879 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00141/1.041, allocations: 0.5836 MB / 0.6871 GB, free: 3.297 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001728/1.043, allocations: 0.8643 MB / 0.6879 GB, free: 2.312 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003136/1.046, allocations: 1.454 MB / 0.6894 GB, free: 0.7461 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.008e-05/1.046, allocations: 4 kB / 0.6894 GB, free: 0.7422 MB / 0.5137 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.005018/1.051, allocations: 2.012 MB / 0.6913 GB, free: 14.72 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 4.481e-05/1.051, allocations: 8 kB / 0.6913 GB, free: 14.71 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.474e-05/1.051, allocations: 8 kB / 0.6913 GB, free: 14.7 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007134/1.058, allocations: 1.346 MB / 0.6927 GB, free: 13.36 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001028/1.059, allocations: 143.7 kB / 0.6928 GB, free: 13.22 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004185/1.063, allocations: 1.928 MB / 0.6947 GB, free: 11.27 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001922/1.065, allocations: 107.9 kB / 0.6948 GB, free: 11.16 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000212/1.066, allocations: 67.98 kB / 0.6948 GB, free: 11.09 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.001228/1.067, allocations: 397.4 kB / 0.6952 GB, free: 10.7 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004055/1.067, allocations: 118.6 kB / 0.6953 GB, free: 10.58 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004057/1.071, allocations: 1.498 MB / 0.6968 GB, free: 9.066 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.428e-05/1.071, allocations: 8 kB / 0.6968 GB, free: 9.059 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.173e-05/1.071, allocations: 0 / 0.6968 GB, free: 9.059 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.431e-05/1.071, allocations: 3.984 kB / 0.6968 GB, free: 9.055 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006593/1.078, allocations: 2.696 MB / 0.6994 GB, free: 6.297 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.772e-06/1.078, allocations: 0 / 0.6994 GB, free: 6.297 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002504/1.081, allocations: 327.6 kB / 0.6998 GB, free: 5.977 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000306/1.081, allocations: 68.69 kB / 0.6998 GB, free: 5.906 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001343/1.081, allocations: 35.98 kB / 0.6999 GB, free: 5.871 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003277/1.084, allocations: 2.844 MB / 0.7026 GB, free: 2.762 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/1.084, allocations: 4.031 kB / 0.7026 GB, free: 2.758 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0049/1.089, allocations: 1.907 MB / 0.7045 GB, free: 0.8281 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001218/1.091, allocations: 327.6 kB / 0.7048 GB, free: 500 kB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003268/1.091, allocations: 35.92 kB / 0.7048 GB, free: 464 kB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001416/1.092, allocations: 79.91 kB / 0.7049 GB, free: 384 kB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002478/1.093, allocations: 60.58 kB / 0.705 GB, free: 324 kB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001839/1.093, allocations: 63.94 kB / 0.705 GB, free: 260 kB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.4572/1.55, allocations: 0.797 MB / 0.7058 GB, free: 197.4 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.382e-06/1.55, allocations: 0 / 0.7058 GB, free: 197.4 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.003608/1.554, allocations: 488.7 kB / 0.7063 GB, free: 197.4 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.004102/1.558, allocations: 0.687 MB / 0.7069 GB, free: 197.3 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.005411/1.563, allocations: 1.472 MB / 0.7084 GB, free: 197.3 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.465e-05/1.563, allocations: 2.906 kB / 0.7084 GB, free: 197.3 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002803/1.566, allocations: 0.8527 MB / 0.7092 GB, free: 197.1 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006294/1.573, allocations: 0.7274 MB / 0.7099 GB, free: 197 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00912/1.582, allocations: 3.375 MB / 0.7132 GB, free: 195.3 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001619/1.583, allocations: 1.17 MB / 0.7144 GB, free: 194.6 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009211/1.584, allocations: 122.9 kB / 0.7145 GB, free: 194.6 MB / 0.5294 GB Notification: Performance of SimCode: time 1.513e-06/1.584, allocations: 0 / 0.7145 GB, free: 194.6 MB / 0.5294 GB Notification: Performance of Templates: time 0.0768/1.661, allocations: 31.92 MB / 0.7457 GB, free: 173.6 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