Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition") translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002426/0.002425, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.994/1.994, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001099/0.001099, allocations: 86.52 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3012/0.3012, allocations: 43.49 MB / 353.6 MB, free: 2.266 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.054e-05/2.053e-05, allocations: 224 / 418.2 MB, free: 41.03 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4186/0.4187, allocations: 58.86 MB / 477.1 MB, free: 5.273 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.414/2.833, allocations: 0.8263 GB / 1.292 GB, free: 95.91 MB / 0.4952 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002843/2.833, allocations: 94.12 kB / 1.292 GB, free: 95.86 MB / 0.4952 GB Notification: Performance of FrontEnd - DAE generated: time 3.843/6.677, allocations: 0.7272 GB / 2.019 GB, free: 79.53 MB / 0.5108 GB Notification: Performance of FrontEnd: time 1.884e-06/6.677, allocations: 2.344 kB / 2.019 GB, free: 79.53 MB / 0.5108 GB Notification: Performance of Transformations before backend: time 9.594e-05/6.677, allocations: 20.91 kB / 2.02 GB, free: 79.53 MB / 0.5108 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.005409/6.682, allocations: 1.37 MB / 2.021 GB, free: 79.04 MB / 0.5108 GB Notification: Performance of prepare preOptimizeDAE: time 4.623e-05/6.682, allocations: 11.69 kB / 2.021 GB, free: 79.04 MB / 0.5108 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002401/6.685, allocations: 283.7 kB / 2.021 GB, free: 78.99 MB / 0.5108 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00241/6.687, allocations: 0.6527 MB / 2.022 GB, free: 78.75 MB / 0.5108 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001431/6.687, allocations: 103.5 kB / 2.022 GB, free: 78.69 MB / 0.5108 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002735/6.688, allocations: 46.39 kB / 2.022 GB, free: 78.69 MB / 0.5108 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002216/6.69, allocations: 0.8625 MB / 2.023 GB, free: 78.69 MB / 0.5108 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002674/6.692, allocations: 1.126 MB / 2.024 GB, free: 78.46 MB / 0.5108 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.737e-05/6.693, allocations: 0 / 2.024 GB, free: 78.46 MB / 0.5108 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002077/6.693, allocations: 3.938 kB / 2.024 GB, free: 78.46 MB / 0.5108 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001219/6.693, allocations: 73.86 kB / 2.024 GB, free: 78.46 MB / 0.5108 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.009873/6.703, allocations: 4.732 MB / 2.029 GB, free: 75.76 MB / 0.5108 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005989/6.703, allocations: 249.6 kB / 2.029 GB, free: 75.73 MB / 0.5108 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003021/6.704, allocations: 130.9 kB / 2.029 GB, free: 75.73 MB / 0.5108 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003489/6.704, allocations: 249.4 kB / 2.029 GB, free: 75.53 MB / 0.5108 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.01e-05/6.704, allocations: 40.42 kB / 2.029 GB, free: 75.49 MB / 0.5108 GB Notification: Performance of pre-optimization done (n=28): time 2.505e-06/6.704, allocations: 0 / 2.029 GB, free: 75.49 MB / 0.5108 GB Notification: Performance of matching and sorting (n=33): time 0.009359/6.714, allocations: 1.543 MB / 2.031 GB, free: 74.87 MB / 0.5108 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.017e-05/6.714, allocations: 132 kB / 2.031 GB, free: 74.71 MB / 0.5108 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001128/6.715, allocations: 0.6619 MB / 2.031 GB, free: 74.57 MB / 0.5108 GB Notification: Performance of collectPreVariables (initialization): time 0.0001127/6.715, allocations: 27.89 kB / 2.032 GB, free: 74.54 MB / 0.5108 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003886/6.715, allocations: 0.6087 MB / 2.032 GB, free: 74.2 MB / 0.5108 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001948/6.716, allocations: 128.9 kB / 2.032 GB, free: 74.14 MB / 0.5108 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.076e-05/6.716, allocations: 0 / 2.032 GB, free: 74.14 MB / 0.5108 GB Notification: Performance of setup shared object (initialization): time 0.0001026/6.716, allocations: 356.4 kB / 2.033 GB, free: 73.82 MB / 0.5108 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005387/6.716, allocations: 240.4 kB / 2.033 GB, free: 73.82 MB / 0.5108 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008512/6.717, allocations: 0.8262 MB / 2.034 GB, free: 73.07 MB / 0.5108 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009464/6.718, allocations: 429.4 kB / 2.034 GB, free: 73.07 MB / 0.5108 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.264e-05/6.718, allocations: 3.219 kB / 2.034 GB, free: 73.07 MB / 0.5108 GB Notification: Performance of matching and sorting (n=130) (initialization): time 0.002527/6.721, allocations: 1.011 MB / 2.035 GB, free: 73 MB / 0.5108 GB Notification: Performance of prepare postOptimizeDAE: time 3.38e-05/6.721, allocations: 12.88 kB / 2.035 GB, free: 73 MB / 0.5108 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.857e-05/6.721, allocations: 22.56 kB / 2.035 GB, free: 73 MB / 0.5108 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001801/6.723, allocations: 265.9 kB / 2.035 GB, free: 72.99 MB / 0.5108 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00119/6.724, allocations: 201.8 kB / 2.035 GB, free: 72.99 MB / 0.5108 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001395/6.725, allocations: 0.9159 MB / 2.036 GB, free: 72.46 MB / 0.5108 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001487/6.727, allocations: 40.39 kB / 2.036 GB, free: 72.46 MB / 0.5108 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001667/6.727, allocations: 70.38 kB / 2.036 GB, free: 72.46 MB / 0.5108 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 90 * 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 (112): * Single equations (assignments): 111 * 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 {2 17} Notification: Performance of prepare postOptimizeDAE: time 0.0002739/6.727, allocations: 161.3 kB / 2.037 GB, free: 72.36 MB / 0.5108 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002246/6.727, allocations: 79.59 kB / 2.037 GB, free: 72.32 MB / 0.5108 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001254/6.729, allocations: 433.7 kB / 2.037 GB, free: 72.25 MB / 0.5108 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/6.729, allocations: 7.375 kB / 2.037 GB, free: 72.25 MB / 0.5108 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.035e-06/6.729, allocations: 0 / 2.037 GB, free: 72.25 MB / 0.5108 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.174e-06/6.729, allocations: 3.344 kB / 2.037 GB, free: 72.25 MB / 0.5108 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002459/6.731, allocations: 1.022 MB / 2.038 GB, free: 71.96 MB / 0.5108 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/6.731, allocations: 2.281 kB / 2.038 GB, free: 71.96 MB / 0.5108 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001913/6.733, allocations: 184.1 kB / 2.038 GB, free: 71.96 MB / 0.5108 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001388/6.733, allocations: 27.27 kB / 2.038 GB, free: 71.95 MB / 0.5108 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.511e-05/6.734, allocations: 11.73 kB / 2.038 GB, free: 71.95 MB / 0.5108 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001939/6.735, allocations: 2.575 MB / 2.041 GB, free: 69.51 MB / 0.5108 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.669e-06/6.736, allocations: 0 / 2.041 GB, free: 69.51 MB / 0.5108 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001432/6.737, allocations: 0.6652 MB / 2.042 GB, free: 69.29 MB / 0.5108 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005663/6.738, allocations: 191 kB / 2.042 GB, free: 69.16 MB / 0.5108 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001763/6.738, allocations: 6.656 kB / 2.042 GB, free: 69.16 MB / 0.5108 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008602/6.739, allocations: 19.92 kB / 2.042 GB, free: 69.16 MB / 0.5108 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001051/6.739, allocations: 25.45 kB / 2.042 GB, free: 69.16 MB / 0.5108 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.129e-05/6.739, allocations: 21.62 kB / 2.042 GB, free: 69.16 MB / 0.5108 GB Notification: Performance of sorting global known variables: time 0.0008805/6.74, allocations: 479 kB / 2.042 GB, free: 69.07 MB / 0.5108 GB Notification: Performance of sort global known variables: time 5.01e-07/6.74, allocations: 0 / 2.042 GB, free: 69.07 MB / 0.5108 GB Notification: Performance of remove unused functions: time 0.002569/6.742, allocations: 486.4 kB / 2.043 GB, free: 69.02 MB / 0.5108 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 31 * 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.004725/6.747, allocations: 1.574 MB / 2.044 GB, free: 68.78 MB / 0.5108 GB Notification: Performance of simCode: created initialization part: time 0.001885/6.749, allocations: 0.6132 MB / 2.045 GB, free: 68.76 MB / 0.5108 GB Notification: Performance of simCode: created event and clocks part: time 7.314e-06/6.749, allocations: 0 / 2.045 GB, free: 68.76 MB / 0.5108 GB Notification: Performance of simCode: created simulation system equations: time 0.001307/6.75, allocations: 333.2 kB / 2.045 GB, free: 68.66 MB / 0.5108 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002694/6.753, allocations: 321.2 kB / 2.045 GB, free: 68.64 MB / 0.5108 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002955/6.756, allocations: 1.182 MB / 2.047 GB, free: 68.3 MB / 0.5108 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006374/6.757, allocations: 1.041 MB / 2.048 GB, free: 67.61 MB / 0.5108 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004035/6.757, allocations: 81.48 kB / 2.048 GB, free: 67.6 MB / 0.5108 GB Notification: Performance of SimCode: time 1.162e-06/6.757, allocations: 0 / 2.048 GB, free: 67.6 MB / 0.5108 GB Notification: Performance of Templates: time 0.04983/6.807, allocations: 26.06 MB / 2.073 GB, free: 66.8 MB / 0.5108 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Media/TestsWithFluid/MediaTestModels/IdealGases/SimpleNaturalGasFixedComposition/SimpleNaturalGasFixedComposition.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches