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.001147/0.001147, allocations: 116.2 kB / 18.46 MB, free: 4.574 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001202/0.001202, allocations: 210 kB / 19.4 MB, free: 3.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.358/1.358, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2264/0.2264, allocations: 46.11 MB / 345 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001604/0.001604, allocations: 79.88 kB / 482 MB, free: 4.047 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4544/0.456, allocations: 62.43 MB / 0.5317 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.2334/0.6895, allocations: 180.1 MB / 0.7075 GB, free: 13.01 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.01129/0.7009, allocations: 6.494 MB / 0.7139 GB, free: 6.488 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00131/0.7022, allocations: 23.81 kB / 0.7139 GB, free: 6.465 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001357/0.7036, allocations: 437.5 kB / 0.7143 GB, free: 6.035 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.005337/0.709, allocations: 1.761 MB / 0.716 GB, free: 4.273 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.004284/0.7133, allocations: 1.505 MB / 0.7175 GB, free: 2.773 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.003266/0.7166, allocations: 2.243 MB / 0.7197 GB, free: 0.5234 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.4633/1.18, allocations: 0.7555 MB / 0.7204 GB, free: 3.793 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004759/1.185, allocations: 1.81 MB / 0.7222 GB, free: 3.793 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003319/1.188, allocations: 1.605 MB / 0.7237 GB, free: 3.789 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0003914/1.188, allocations: 99.78 kB / 0.7238 GB, free: 3.789 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003468/1.192, allocations: 1.337 MB / 0.7251 GB, free: 3.789 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0008727/1.193, allocations: 0.6845 MB / 0.7258 GB, free: 3.789 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.001276/1.194, allocations: 0.7586 MB / 0.7266 GB, free: 3.789 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.004444/1.199, allocations: 2.621 MB / 0.7291 GB, free: 3.734 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/1.199, allocations: 7 kB / 0.7291 GB, free: 3.734 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.843e-06/1.199, allocations: 0.9062 kB / 0.7291 GB, free: 3.734 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 3.642e-05/1.199, allocations: 0 / 0.7291 GB, free: 3.734 MB / 0.5606 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.004183/1.203, allocations: 1.712 MB / 0.7308 GB, free: 18.96 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/1.203, allocations: 11.59 kB / 0.7308 GB, free: 18.96 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001573/1.204, allocations: 311.4 kB / 0.7311 GB, free: 18.9 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001261/1.206, allocations: 0.7775 MB / 0.7319 GB, free: 18.61 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001263/1.206, allocations: 139.7 kB / 0.732 GB, free: 18.54 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001655/1.206, allocations: 102.7 kB / 0.7321 GB, free: 18.54 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002579/1.209, allocations: 1.84 MB / 0.7339 GB, free: 18.34 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.225e-05/1.209, allocations: 5.688 kB / 0.7339 GB, free: 18.34 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001464/1.209, allocations: 49.86 kB / 0.7339 GB, free: 18.34 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.721e-05/1.209, allocations: 96.66 kB / 0.734 GB, free: 18.34 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0023/1.211, allocations: 1.696 MB / 0.7357 GB, free: 18.33 MB / 0.5762 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.009403/1.221, allocations: 6.846 MB / 0.7424 GB, free: 14.87 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001184/1.222, allocations: 0.8718 MB / 0.7432 GB, free: 14.84 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005676/1.222, allocations: 456.6 kB / 0.7437 GB, free: 14.83 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001301/1.223, allocations: 107.5 kB / 0.7438 GB, free: 14.73 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.4e-05/1.223, allocations: 46.62 kB / 0.7438 GB, free: 14.7 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=60): time 2.645e-06/1.223, allocations: 1 kB / 0.7438 GB, free: 14.7 MB / 0.5762 GB Notification: Performance of matching and sorting (n=72): time 0.01084/1.234, allocations: 4.117 MB / 0.7478 GB, free: 13.94 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.708e-05/1.234, allocations: 113 kB / 0.7479 GB, free: 13.82 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001378/1.235, allocations: 1.105 MB / 0.749 GB, free: 13.66 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0001485/1.235, allocations: 42.27 kB / 0.7491 GB, free: 13.63 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.000341/1.236, allocations: 0.5206 MB / 0.7496 GB, free: 13.39 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001947/1.236, allocations: 268.8 kB / 0.7498 GB, free: 13.23 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003323/1.236, allocations: 216.7 kB / 0.75 GB, free: 13.21 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001435/1.236, allocations: 342.7 kB / 0.7504 GB, free: 12.91 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008131/1.237, allocations: 0.5819 MB / 0.7509 GB, free: 12.91 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009719/1.238, allocations: 0.8716 MB / 0.7518 GB, free: 12.59 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001752/1.24, allocations: 1.45 MB / 0.7532 GB, free: 12.29 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.622e-06/1.24, allocations: 3.406 kB / 0.7532 GB, free: 12.29 MB / 0.5762 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003019/1.243, allocations: 2.008 MB / 0.7552 GB, free: 12.18 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.51e-05/1.243, allocations: 11.34 kB / 0.7552 GB, free: 12.18 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.83e-05/1.243, allocations: 8.75 kB / 0.7552 GB, free: 12.18 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004689/1.248, allocations: 1.349 MB / 0.7565 GB, free: 12.15 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000693/1.248, allocations: 143 kB / 0.7566 GB, free: 12.15 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0035/1.252, allocations: 1.921 MB / 0.7585 GB, free: 11.61 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001234/1.253, allocations: 44.31 kB / 0.7585 GB, free: 11.61 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001258/1.253, allocations: 70.62 kB / 0.7586 GB, free: 11.61 MB / 0.5762 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.0008101/1.254, allocations: 403.8 kB / 0.759 GB, free: 11.48 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003064/1.254, allocations: 111.2 kB / 0.7591 GB, free: 11.43 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002482/1.257, allocations: 1.497 MB / 0.7606 GB, free: 11.34 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.604e-05/1.257, allocations: 9.906 kB / 0.7606 GB, free: 11.34 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.101e-05/1.257, allocations: 7.125 kB / 0.7606 GB, free: 11.34 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.482e-05/1.257, allocations: 6.625 kB / 0.7606 GB, free: 11.34 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004223/1.261, allocations: 2.677 MB / 0.7632 GB, free: 11 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.981e-06/1.261, allocations: 0 / 0.7632 GB, free: 11 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001911/1.263, allocations: 326 kB / 0.7635 GB, free: 11 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001956/1.263, allocations: 74.14 kB / 0.7636 GB, free: 10.98 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.946e-05/1.263, allocations: 35.08 kB / 0.7636 GB, free: 10.98 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002564/1.266, allocations: 3.029 MB / 0.7666 GB, free: 8.23 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/1.266, allocations: 4.906 kB / 0.7666 GB, free: 8.227 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00327/1.269, allocations: 1.906 MB / 0.7684 GB, free: 8 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001037/1.27, allocations: 335.1 kB / 0.7688 GB, free: 7.848 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002493/1.271, allocations: 28.97 kB / 0.7688 GB, free: 7.844 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009556/1.272, allocations: 51.75 kB / 0.7688 GB, free: 7.844 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001743/1.272, allocations: 57.45 kB / 0.7689 GB, free: 7.844 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001147/1.272, allocations: 64.64 kB / 0.769 GB, free: 7.844 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001122/1.273, allocations: 0.7961 MB / 0.7697 GB, free: 7.734 MB / 0.5762 GB Notification: Performance of sort global known variables: time 4e-07/1.273, allocations: 0.8438 kB / 0.7697 GB, free: 7.734 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.00176/1.275, allocations: 483.5 kB / 0.7702 GB, free: 7.703 MB / 0.5762 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.002103/1.277, allocations: 0.6833 MB / 0.7709 GB, free: 7.57 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002998/1.28, allocations: 1.479 MB / 0.7723 GB, free: 7.539 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 7.293e-06/1.28, allocations: 4.188 kB / 0.7723 GB, free: 7.539 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001866/1.282, allocations: 0.847 MB / 0.7731 GB, free: 7.422 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004033/1.286, allocations: 0.7668 MB / 0.7739 GB, free: 7.312 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005559/1.291, allocations: 2.971 MB / 0.7768 GB, free: 6.246 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008493/1.292, allocations: 1.179 MB / 0.7779 GB, free: 5.527 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005536/1.293, allocations: 118.9 kB / 0.7781 GB, free: 5.516 MB / 0.5762 GB Notification: Performance of SimCode: time 1.062e-06/1.293, allocations: 0 / 0.7781 GB, free: 5.516 MB / 0.5762 GB Notification: Performance of Templates: time 0.04725/1.34, allocations: 32.01 MB / 0.8093 GB, free: 9.277 MB / 0.6075 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