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.001782/0.001782, allocations: 113.4 kB / 17.99 MB, free: 5.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002243/0.002243, allocations: 205.8 kB / 18.92 MB, free: 4.465 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.13/2.13, allocations: 227.4 MB / 247.1 MB, free: 10.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2097/0.2097, allocations: 46.09 MB / 344.4 MB, free: 11.79 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00161/0.00161, allocations: 74.34 kB / 417.7 MB, free: 20.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1551/0.1567, allocations: 62.45 MB / 480.2 MB, free: 5.641 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.4614/0.6182, allocations: 178.3 MB / 0.643 GB, free: 1.465 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.01108/0.6293, allocations: 6.576 MB / 0.6494 GB, free: 10.87 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00123/0.6306, allocations: 27.75 kB / 0.6494 GB, free: 10.84 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001686/0.6323, allocations: 390.1 kB / 0.6498 GB, free: 10.46 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005145/0.6376, allocations: 1.644 MB / 0.6514 GB, free: 8.812 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004278/0.6419, allocations: 1.419 MB / 0.6528 GB, free: 7.398 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.003519/0.6454, allocations: 2.239 MB / 0.655 GB, free: 5.156 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001587/0.647, allocations: 0.739 MB / 0.6557 GB, free: 4.414 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004287/0.6513, allocations: 1.807 MB / 0.6575 GB, free: 2.602 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003561/0.6549, allocations: 1.734 MB / 0.6592 GB, free: 0.8633 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003077/0.6553, allocations: 100 kB / 0.6593 GB, free: 0.7656 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00377/0.659, allocations: 1.704 MB / 0.6609 GB, free: 15.06 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0007381/0.6598, allocations: 0.7015 MB / 0.6616 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.001006/0.6608, allocations: 0.7548 MB / 0.6624 GB, free: 13.6 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.002738/0.6636, allocations: 2.058 MB / 0.6644 GB, free: 11.54 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.6636, allocations: 4 kB / 0.6644 GB, free: 11.53 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.104e-06/0.6636, allocations: 0 / 0.6644 GB, free: 11.53 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 2.203e-05/0.6636, allocations: 0 / 0.6644 GB, free: 11.53 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.003726/0.6674, allocations: 1.723 MB / 0.666 GB, free: 9.758 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.465e-05/0.6674, allocations: 12.03 kB / 0.6661 GB, free: 9.746 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001573/0.669, allocations: 310.2 kB / 0.6664 GB, free: 9.441 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001263/0.6703, allocations: 0.7377 MB / 0.6671 GB, free: 8.66 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001394/0.6704, allocations: 145.3 kB / 0.6672 GB, free: 8.504 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001936/0.6706, allocations: 103.9 kB / 0.6673 GB, free: 8.402 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002947/0.6736, allocations: 1.841 MB / 0.6691 GB, free: 6.492 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.624e-05/0.6736, allocations: 7.938 kB / 0.6691 GB, free: 6.484 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001457/0.6738, allocations: 44 kB / 0.6692 GB, free: 6.441 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001128/0.6739, allocations: 93.95 kB / 0.6692 GB, free: 6.352 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00263/0.6765, allocations: 1.694 MB / 0.6709 GB, free: 4.652 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.01026/0.6868, allocations: 6.955 MB / 0.6777 GB, free: 13.23 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001409/0.6882, allocations: 0.8779 MB / 0.6786 GB, free: 12.35 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000743/0.689, allocations: 458.2 kB / 0.679 GB, free: 11.9 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001451/0.6891, allocations: 101.7 kB / 0.6791 GB, free: 11.78 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.785e-05/0.6892, allocations: 51.06 kB / 0.6791 GB, free: 11.72 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=60): time 2.765e-06/0.6892, allocations: 0 / 0.6791 GB, free: 11.72 MB / 0.5137 GB Notification: Performance of matching and sorting (n=72): time 0.01179/0.701, allocations: 4.249 MB / 0.6833 GB, free: 7.41 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.429e-05/0.7011, allocations: 115.5 kB / 0.6834 GB, free: 7.273 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001551/0.7027, allocations: 1.109 MB / 0.6845 GB, free: 6.141 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0001434/0.7028, allocations: 45.7 kB / 0.6845 GB, free: 6.09 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.000435/0.7033, allocations: 0.5146 MB / 0.685 GB, free: 5.566 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002456/0.7035, allocations: 260.3 kB / 0.6853 GB, free: 5.309 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000392/0.7039, allocations: 210.5 kB / 0.6855 GB, free: 5.098 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001539/0.7041, allocations: 349.9 kB / 0.6858 GB, free: 4.75 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009536/0.705, allocations: 0.5875 MB / 0.6864 GB, free: 4.164 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001154/0.7062, allocations: 0.8682 MB / 0.6872 GB, free: 3.172 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002112/0.7083, allocations: 1.451 MB / 0.6886 GB, free: 1.613 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.139e-06/0.7083, allocations: 0 / 0.6886 GB, free: 1.613 MB / 0.5137 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003443/0.7118, allocations: 2.012 MB / 0.6906 GB, free: 15.59 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 3.403e-05/0.7119, allocations: 10.5 kB / 0.6906 GB, free: 15.58 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.027e-05/0.7119, allocations: 8 kB / 0.6906 GB, free: 15.57 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004991/0.7169, allocations: 1.358 MB / 0.692 GB, free: 14.22 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007985/0.7177, allocations: 143.8 kB / 0.6921 GB, free: 14.08 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003779/0.7215, allocations: 1.928 MB / 0.694 GB, free: 12.12 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001752/0.7233, allocations: 111.7 kB / 0.6941 GB, free: 12.02 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001844/0.7235, allocations: 71.98 kB / 0.6941 GB, free: 11.95 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.0009941/0.7245, allocations: 389.5 kB / 0.6945 GB, free: 11.55 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003534/0.7249, allocations: 110.7 kB / 0.6946 GB, free: 11.45 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003665/0.7285, allocations: 1.5 MB / 0.6961 GB, free: 9.934 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.406e-05/0.7286, allocations: 8 kB / 0.6961 GB, free: 9.926 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.177e-06/0.7286, allocations: 4 kB / 0.6961 GB, free: 9.922 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.551e-05/0.7286, allocations: 7.984 kB / 0.6961 GB, free: 9.914 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006028/0.7347, allocations: 2.684 MB / 0.6987 GB, free: 7.16 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.333e-06/0.7347, allocations: 0 / 0.6987 GB, free: 7.16 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002402/0.7371, allocations: 331.6 kB / 0.699 GB, free: 6.836 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002667/0.7374, allocations: 64.8 kB / 0.6991 GB, free: 6.77 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001294/0.7376, allocations: 43.97 kB / 0.6992 GB, free: 6.727 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003147/0.7407, allocations: 3.029 MB / 0.7021 GB, free: 3.418 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.027e-06/0.7407, allocations: 4.141 kB / 0.7021 GB, free: 3.414 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004151/0.7449, allocations: 1.914 MB / 0.704 GB, free: 1.477 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009926/0.7459, allocations: 331.6 kB / 0.7043 GB, free: 1.133 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002732/0.7462, allocations: 27.94 kB / 0.7043 GB, free: 1.105 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001341/0.7476, allocations: 87.84 kB / 0.7044 GB, free: 1.02 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002099/0.7478, allocations: 60.58 kB / 0.7045 GB, free: 0.9609 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001838/0.748, allocations: 71.88 kB / 0.7045 GB, free: 0.8906 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001365/0.7493, allocations: 0.7892 MB / 0.7053 GB, free: 92 kB / 0.5294 GB Notification: Performance of sort global known variables: time 2.3e-07/0.7494, allocations: 4 kB / 0.7053 GB, free: 88 kB / 0.5294 GB Notification: Performance of remove unused functions: time 0.2492/0.9986, allocations: 486 kB / 0.7058 GB, free: 197.9 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.002309/1.001, allocations: 0.6818 MB / 0.7064 GB, free: 197.8 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.003544/1.004, allocations: 1.813 MB / 0.7082 GB, free: 197.8 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 8.917e-06/1.004, allocations: 3.031 kB / 0.7082 GB, free: 197.8 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00167/1.006, allocations: 0.8477 MB / 0.709 GB, free: 197.6 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003989/1.01, allocations: 0.7652 MB / 0.7098 GB, free: 197.5 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005178/1.015, allocations: 3.391 MB / 0.7131 GB, free: 195.9 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006826/1.016, allocations: 1.171 MB / 0.7142 GB, free: 195.1 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005353/1.017, allocations: 118.9 kB / 0.7144 GB, free: 195.1 MB / 0.5294 GB Notification: Performance of SimCode: time 1.583e-06/1.017, allocations: 0 / 0.7144 GB, free: 195.1 MB / 0.5294 GB Notification: Performance of Templates: time 0.03887/1.056, allocations: 31.94 MB / 0.7455 GB, free: 174 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