Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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_4.0.0_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_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001043/0.001043, allocations: 169 kB / 8.742 MB, free: 344 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.447/1.447, allocations: 221.5 MB / 230.7 MB, free: 7.504 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009834/0.0009831, allocations: 96.22 kB / 281.6 MB, free: 5.254 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2245/0.2245, allocations: 44.15 MB / 376.5 MB, free: 3.031 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.909e-05/1.903e-05, allocations: 4.219 kB / 444.6 MB, free: 15.21 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1538/0.1538, allocations: 61.91 MB / 0.4947 GB, free: 1.227 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.343/2.496, allocations: 0.7915 GB / 1.286 GB, free: 4.863 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003242/2.497, allocations: 91.94 kB / 1.286 GB, free: 4.773 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.963/5.46, allocations: 0.694 GB / 1.98 GB, free: 91.93 MB / 0.5261 GB Notification: Performance of FrontEnd: time 3.426e-06/5.46, allocations: 0 / 1.98 GB, free: 91.93 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001399/5.46, allocations: 31.41 kB / 1.98 GB, free: 91.93 MB / 0.5261 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.008945/5.469, allocations: 1.564 MB / 1.982 GB, free: 91.25 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 7.283e-05/5.469, allocations: 19.66 kB / 1.982 GB, free: 91.25 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003532/5.473, allocations: 305.9 kB / 1.982 GB, free: 91.18 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004519/5.478, allocations: 0.8096 MB / 1.983 GB, free: 90.86 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003839/5.478, allocations: 111.1 kB / 1.983 GB, free: 90.8 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001006/5.479, allocations: 57.59 kB / 1.983 GB, free: 90.8 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005417/5.484, allocations: 1.447 MB / 1.984 GB, free: 90.79 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005719/5.49, allocations: 1.614 MB / 1.986 GB, free: 90.38 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.038e-05/5.49, allocations: 11 kB / 1.986 GB, free: 90.38 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004438/5.491, allocations: 3.969 kB / 1.986 GB, free: 90.38 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001514/5.491, allocations: 78.09 kB / 1.986 GB, free: 90.36 MB / 0.5261 GB Warning: The model contains alias variables with conflicting start and/or 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.01114/5.502, allocations: 6.694 MB / 1.993 GB, free: 85.87 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009103/5.503, allocations: 0.7728 MB / 1.993 GB, free: 85.56 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004663/5.503, allocations: 431.7 kB / 1.994 GB, free: 85.39 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002106/5.504, allocations: 277.3 kB / 1.994 GB, free: 85.11 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.152e-05/5.504, allocations: 48 kB / 1.994 GB, free: 85.05 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=60): time 2.555e-06/5.504, allocations: 0 / 1.994 GB, free: 85.05 MB / 0.5261 GB Notification: Performance of matching and sorting (n=72): time 0.0102/5.514, allocations: 3.634 MB / 1.998 GB, free: 83.53 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.833e-05/5.514, allocations: 111.4 kB / 1.998 GB, free: 83.41 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007034/5.515, allocations: 0.5745 MB / 1.998 GB, free: 83.14 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 9.383e-05/5.515, allocations: 25.7 kB / 1.998 GB, free: 83.11 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002614/5.515, allocations: 0.544 MB / 1.999 GB, free: 82.68 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001848/5.515, allocations: 259.9 kB / 1.999 GB, free: 82.48 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.073e-05/5.515, allocations: 3.938 kB / 1.999 GB, free: 82.48 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001178/5.516, allocations: 383 kB / 2 GB, free: 82.14 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006256/5.516, allocations: 0.5629 MB / 2 GB, free: 81.93 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007759/5.517, allocations: 0.836 MB / 2.001 GB, free: 81.38 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009429/5.518, allocations: 0.7045 MB / 2.002 GB, free: 81.14 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.988e-06/5.518, allocations: 3.938 kB / 2.002 GB, free: 81.14 MB / 0.5261 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002444/5.52, allocations: 1.873 MB / 2.003 GB, free: 80.45 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.453e-05/5.52, allocations: 11.19 kB / 2.003 GB, free: 80.45 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.476e-05/5.52, allocations: 7.75 kB / 2.003 GB, free: 80.45 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003927/5.524, allocations: 1.259 MB / 2.005 GB, free: 80.01 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005874/5.525, allocations: 143.2 kB / 2.005 GB, free: 79.88 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002306/5.527, allocations: 1.995 MB / 2.007 GB, free: 78.07 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001098/5.528, allocations: 98.39 kB / 2.007 GB, free: 77.98 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001107/5.528, allocations: 63.98 kB / 2.007 GB, free: 77.92 MB / 0.5261 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: volume.m:DUMMY_STATE(min = 0.0 unit = "kg" ) "Mass of fluid" type: Real volume.mb_flow:VARIABLE(unit = "kg/s" ) "Mass flows across boundaries" type: Real 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {10 34} Notification: Performance of prepare postOptimizeDAE: time 0.000348/5.529, allocations: 144.1 kB / 2.007 GB, free: 77.78 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001655/5.529, allocations: 82.06 kB / 2.007 GB, free: 77.7 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002094/5.531, allocations: 1.421 MB / 2.008 GB, free: 76.28 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.438e-06/5.531, allocations: 8 kB / 2.009 GB, free: 76.27 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.772e-06/5.531, allocations: 0 / 2.009 GB, free: 76.27 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.317e-06/5.531, allocations: 7.984 kB / 2.009 GB, free: 76.27 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003415/5.535, allocations: 2.561 MB / 2.011 GB, free: 73.68 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.719e-06/5.535, allocations: 0 / 2.011 GB, free: 73.68 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001703/5.536, allocations: 340.2 kB / 2.011 GB, free: 73.36 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001621/5.536, allocations: 60.8 kB / 2.011 GB, free: 73.29 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.369e-05/5.537, allocations: 27.97 kB / 2.011 GB, free: 73.27 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001744/5.538, allocations: 2.768 MB / 2.014 GB, free: 70.28 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/5.538, allocations: 0 / 2.014 GB, free: 70.28 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002305/5.541, allocations: 1.833 MB / 2.016 GB, free: 68.42 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005615/5.541, allocations: 316 kB / 2.016 GB, free: 68.09 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000164/5.541, allocations: 15.98 kB / 2.016 GB, free: 68.07 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009569/5.542, allocations: 69.84 kB / 2.016 GB, free: 68.01 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001297/5.542, allocations: 56.66 kB / 2.016 GB, free: 67.96 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001206/5.543, allocations: 63.95 kB / 2.016 GB, free: 67.89 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0005842/5.543, allocations: 455.1 kB / 2.017 GB, free: 67.45 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.6e-07/5.543, allocations: 4 kB / 2.017 GB, free: 67.45 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.002145/5.545, allocations: 0.5103 MB / 2.017 GB, free: 66.94 MB / 0.5261 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 () * 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 (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002861/5.548, allocations: 1.47 MB / 2.019 GB, free: 65.8 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002126/5.55, allocations: 1.434 MB / 2.02 GB, free: 64.37 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/5.55, allocations: 4.781 kB / 2.02 GB, free: 64.37 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001296/5.552, allocations: 0.8359 MB / 2.021 GB, free: 63.53 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001912/5.554, allocations: 410.3 kB / 2.021 GB, free: 63.16 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003834/5.557, allocations: 2.291 MB / 2.024 GB, free: 61.13 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005698/5.558, allocations: 1.201 MB / 2.025 GB, free: 59.91 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.001235/5.559, allocations: 427 kB / 2.025 GB, free: 59.55 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003208/5.56, allocations: 99.09 kB / 2.025 GB, free: 59.45 MB / 0.5261 GB Notification: Performance of SimCode: time 1.032e-06/5.56, allocations: 448 / 2.025 GB, free: 59.45 MB / 0.5261 GB Notification: Performance of Templates: time 0.0392/5.599, allocations: 31.17 MB / 2.056 GB, free: 28.88 MB / 0.5261 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.sim & ./ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/IdealGases/SimpleNaturalGas/SimpleNaturalGas.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches