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.001384/0.001383, allocations: 106 kB / 18.45 MB, free: 4.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001562/0.001562, allocations: 205.9 kB / 19.4 MB, free: 3.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.476/1.476, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2194/0.2194, allocations: 46.1 MB / 345 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001626/0.001626, allocations: 79.86 kB / 482 MB, free: 4.07 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3884/0.39, allocations: 62.43 MB / 0.5317 GB, free: 13.63 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.2051/0.5952, allocations: 180.1 MB / 0.7075 GB, free: 13.04 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.008922/0.6041, allocations: 6.502 MB / 0.7139 GB, free: 6.504 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009733/0.6052, allocations: 19.88 kB / 0.7139 GB, free: 6.484 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001554/0.6067, allocations: 437.5 kB / 0.7143 GB, free: 6.055 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.005124/0.6119, allocations: 1.792 MB / 0.716 GB, free: 4.262 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.003915/0.6159, allocations: 1.519 MB / 0.7175 GB, free: 2.75 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.002862/0.6187, allocations: 2.247 MB / 0.7197 GB, free: 0.4961 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.3749/0.9936, allocations: 0.7513 MB / 0.7205 GB, free: 3.812 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004812/0.9985, allocations: 1.816 MB / 0.7222 GB, free: 3.812 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003442/1.002, allocations: 1.61 MB / 0.7238 GB, free: 3.809 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0003887/1.002, allocations: 99.78 kB / 0.7239 GB, free: 3.809 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003654/1.006, allocations: 1.337 MB / 0.7252 GB, free: 3.809 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.001112/1.007, allocations: 0.6862 MB / 0.7259 GB, free: 3.809 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.001972/1.009, allocations: 0.7613 MB / 0.7266 GB, free: 3.809 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.005497/1.015, allocations: 2.622 MB / 0.7292 GB, free: 3.754 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.451e-06/1.015, allocations: 0.875 kB / 0.7292 GB, free: 3.754 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.884e-06/1.015, allocations: 7.281 kB / 0.7292 GB, free: 3.754 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.332e-05/1.015, allocations: 0 / 0.7292 GB, free: 3.754 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.004433/1.019, allocations: 1.713 MB / 0.7309 GB, free: 18.98 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.305e-05/1.019, allocations: 11.62 kB / 0.7309 GB, free: 18.98 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001576/1.021, allocations: 308.4 kB / 0.7312 GB, free: 18.92 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001468/1.022, allocations: 0.7758 MB / 0.7319 GB, free: 18.62 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001292/1.022, allocations: 140.7 kB / 0.7321 GB, free: 18.56 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001853/1.023, allocations: 104 kB / 0.7322 GB, free: 18.56 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002744/1.025, allocations: 1.841 MB / 0.7339 GB, free: 18.36 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.125e-05/1.025, allocations: 0 / 0.7339 GB, free: 18.36 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001365/1.026, allocations: 47.34 kB / 0.734 GB, free: 18.36 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.849e-05/1.026, allocations: 98.92 kB / 0.7341 GB, free: 18.36 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002422/1.028, allocations: 1.696 MB / 0.7357 GB, free: 18.35 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.009757/1.038, allocations: 6.846 MB / 0.7424 GB, free: 14.89 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001251/1.039, allocations: 0.8793 MB / 0.7433 GB, free: 14.86 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005867/1.04, allocations: 457 kB / 0.7437 GB, free: 14.84 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000161/1.04, allocations: 104.6 kB / 0.7438 GB, free: 14.75 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.205e-05/1.04, allocations: 48.25 kB / 0.7439 GB, free: 14.71 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=60): time 2.445e-06/1.04, allocations: 0 / 0.7439 GB, free: 14.71 MB / 0.5762 GB Notification: Performance of matching and sorting (n=72): time 0.01064/1.051, allocations: 4.111 MB / 0.7479 GB, free: 13.96 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.365e-05/1.051, allocations: 114.1 kB / 0.748 GB, free: 13.84 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001411/1.052, allocations: 1.103 MB / 0.7491 GB, free: 13.68 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0001526/1.052, allocations: 48.55 kB / 0.7491 GB, free: 13.65 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003722/1.053, allocations: 0.5202 MB / 0.7496 GB, free: 13.41 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002141/1.053, allocations: 259.5 kB / 0.7499 GB, free: 13.25 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000361/1.053, allocations: 215.9 kB / 0.7501 GB, free: 13.23 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001414/1.053, allocations: 351.6 kB / 0.7504 GB, free: 12.93 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008588/1.054, allocations: 0.5802 MB / 0.751 GB, free: 12.93 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001065/1.055, allocations: 0.8731 MB / 0.7518 GB, free: 12.61 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001855/1.057, allocations: 1.447 MB / 0.7532 GB, free: 12.31 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.364e-06/1.057, allocations: 3.531 kB / 0.7533 GB, free: 12.31 MB / 0.5762 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003043/1.06, allocations: 2.001 MB / 0.7552 GB, free: 12.2 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.581e-05/1.06, allocations: 15.33 kB / 0.7552 GB, free: 12.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.54e-05/1.06, allocations: 8.406 kB / 0.7552 GB, free: 12.2 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00444/1.065, allocations: 1.353 MB / 0.7565 GB, free: 12.17 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006218/1.065, allocations: 139.8 kB / 0.7567 GB, free: 12.17 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002573/1.068, allocations: 1.921 MB / 0.7586 GB, free: 11.63 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001105/1.069, allocations: 46.81 kB / 0.7586 GB, free: 11.63 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001176/1.069, allocations: 66.02 kB / 0.7587 GB, free: 11.63 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.0007015/1.07, allocations: 410 kB / 0.7591 GB, free: 11.5 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002328/1.07, allocations: 110.7 kB / 0.7592 GB, free: 11.45 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002395/1.073, allocations: 1.501 MB / 0.7606 GB, free: 11.36 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.724e-06/1.073, allocations: 7 kB / 0.7606 GB, free: 11.36 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.885e-06/1.073, allocations: 3.938 kB / 0.7606 GB, free: 11.36 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.146e-06/1.073, allocations: 6.453 kB / 0.7606 GB, free: 11.36 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003948/1.077, allocations: 2.679 MB / 0.7633 GB, free: 11.02 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.508e-06/1.077, allocations: 2.906 kB / 0.7633 GB, free: 11.02 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001688/1.078, allocations: 329.4 kB / 0.7636 GB, free: 11.02 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001853/1.079, allocations: 69.73 kB / 0.7636 GB, free: 11 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.089e-05/1.079, allocations: 41.44 kB / 0.7637 GB, free: 11 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002358/1.081, allocations: 3.024 MB / 0.7666 GB, free: 8.25 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/1.081, allocations: 3.938 kB / 0.7666 GB, free: 8.246 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003169/1.084, allocations: 1.907 MB / 0.7685 GB, free: 8.02 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007785/1.085, allocations: 333 kB / 0.7688 GB, free: 7.871 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001832/1.085, allocations: 31.73 kB / 0.7689 GB, free: 7.867 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008448/1.086, allocations: 55 kB / 0.7689 GB, free: 7.863 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001671/1.086, allocations: 59.8 kB / 0.769 GB, free: 7.863 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001218/1.086, allocations: 65.83 kB / 0.769 GB, free: 7.863 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001037/1.087, allocations: 0.7957 MB / 0.7698 GB, free: 7.754 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.21e-07/1.087, allocations: 1.031 kB / 0.7698 GB, free: 7.754 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001673/1.089, allocations: 480.5 kB / 0.7703 GB, free: 7.723 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.001873/1.091, allocations: 0.6798 MB / 0.7709 GB, free: 7.586 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002735/1.094, allocations: 1.479 MB / 0.7724 GB, free: 7.559 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 8.947e-06/1.094, allocations: 3.625 kB / 0.7724 GB, free: 7.559 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001556/1.095, allocations: 0.8495 MB / 0.7732 GB, free: 7.438 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003292/1.099, allocations: 0.7617 MB / 0.7739 GB, free: 7.332 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005185/1.104, allocations: 2.979 MB / 0.7769 GB, free: 6.262 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007509/1.105, allocations: 1.175 MB / 0.778 GB, free: 5.543 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004975/1.105, allocations: 116.6 kB / 0.7781 GB, free: 5.531 MB / 0.5762 GB Notification: Performance of SimCode: time 6.01e-07/1.105, allocations: 0 / 0.7781 GB, free: 5.531 MB / 0.5762 GB Notification: Performance of Templates: time 0.04942/1.155, allocations: 32.01 MB / 0.8094 GB, free: 9.297 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