Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.404/2.404, allocations: 234.9 MB / 250.5 MB, free: 9.543 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004444/0.0004445, allocations: 12 kB / 314.5 MB, free: 9.453 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3608/0.3613, allocations: 54.85 MB / 369.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.463/2.825, allocations: 0.8222 GB / 1.183 GB, free: 20.29 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003354/2.825, allocations: 102 kB / 1.183 GB, free: 20.23 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.869/6.694, allocations: 0.7352 GB / 1.918 GB, free: 29.48 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.996e-06/6.694, allocations: 0 / 1.918 GB, free: 29.48 MB / 490.7 MB Notification: Performance of Transformations before backend: time 9.591e-05/6.695, allocations: 20 kB / 1.918 GB, free: 29.46 MB / 490.7 MB 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.006198/6.701, allocations: 1.464 MB / 1.92 GB, free: 27.95 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.397e-05/6.701, allocations: 12.02 kB / 1.92 GB, free: 27.93 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006736/6.702, allocations: 130.7 kB / 1.92 GB, free: 27.8 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002474/6.704, allocations: 282.5 kB / 1.92 GB, free: 27.52 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00252/6.707, allocations: 0.697 MB / 1.921 GB, free: 26.78 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001537/6.707, allocations: 113.4 kB / 1.921 GB, free: 26.66 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002522/6.707, allocations: 71.97 kB / 1.921 GB, free: 26.59 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003156/6.71, allocations: 1.226 MB / 1.922 GB, free: 25.29 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.175e-05/6.71, allocations: 3.938 kB / 1.922 GB, free: 25.28 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002181/6.711, allocations: 36 kB / 1.922 GB, free: 25.25 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001246/6.711, allocations: 65.28 kB / 1.922 GB, free: 25.18 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002753/6.713, allocations: 1.028 MB / 1.923 GB, free: 24.15 MB / 490.7 MB 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.009686/6.723, allocations: 4.816 MB / 1.928 GB, free: 19.03 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007976/6.724, allocations: 259.3 kB / 1.928 GB, free: 18.77 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003511/6.724, allocations: 247.7 kB / 1.928 GB, free: 18.49 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.668e-05/6.724, allocations: 34.8 kB / 1.928 GB, free: 18.45 MB / 490.7 MB Notification: Performance of pre-optimization done (n=27): time 3.817e-06/6.724, allocations: 4 kB / 1.928 GB, free: 18.45 MB / 490.7 MB Notification: Performance of matching and sorting (n=32): time 0.009696/6.734, allocations: 1.678 MB / 1.93 GB, free: 16.66 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.858e-05/6.734, allocations: 132.5 kB / 1.93 GB, free: 16.5 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001572/6.736, allocations: 0.8245 MB / 1.931 GB, free: 15.68 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001275/6.736, allocations: 33.7 kB / 1.931 GB, free: 15.64 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004206/6.736, allocations: 0.6082 MB / 1.932 GB, free: 15.02 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001508/6.737, allocations: 138.3 kB / 1.932 GB, free: 14.88 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.624e-05/6.737, allocations: 20 kB / 1.932 GB, free: 14.86 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001028/6.737, allocations: 354.8 kB / 1.932 GB, free: 14.51 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007262/6.738, allocations: 290.4 kB / 1.932 GB, free: 14.22 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001048/6.739, allocations: 0.9227 MB / 1.933 GB, free: 12.98 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001207/6.74, allocations: 476.5 kB / 1.934 GB, free: 12.52 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.542e-05/6.74, allocations: 8 kB / 1.934 GB, free: 12.51 MB / 490.7 MB Notification: Performance of matching and sorting (n=139) (initialization): time 0.003335/6.743, allocations: 1.264 MB / 1.935 GB, free: 11.24 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.9e-05/6.743, allocations: 14.19 kB / 1.935 GB, free: 11.23 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.285e-05/6.743, allocations: 24 kB / 1.935 GB, free: 11.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002074/6.746, allocations: 279.9 kB / 1.935 GB, free: 10.93 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001314/6.747, allocations: 231.6 kB / 1.936 GB, free: 10.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001465/6.748, allocations: 0.8917 MB / 1.936 GB, free: 9.785 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001693/6.75, allocations: 67.94 kB / 1.936 GB, free: 9.719 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002291/6.75, allocations: 92 kB / 1.937 GB, free: 9.629 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 99 * 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 (122): * Single equations (assignments): 121 * 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 16} Notification: Performance of prepare postOptimizeDAE: time 0.0007615/6.751, allocations: 349.2 kB / 1.937 GB, free: 9.277 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002894/6.752, allocations: 90.97 kB / 1.937 GB, free: 9.188 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001397/6.753, allocations: 470.1 kB / 1.937 GB, free: 8.723 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.516e-06/6.753, allocations: 4 kB / 1.937 GB, free: 8.719 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.704e-06/6.753, allocations: 0 / 1.937 GB, free: 8.719 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/6.753, allocations: 0 / 1.937 GB, free: 8.719 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002676/6.756, allocations: 1.097 MB / 1.938 GB, free: 7.559 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.089e-06/6.756, allocations: 0 / 1.938 GB, free: 7.559 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001806/6.758, allocations: 175.8 kB / 1.939 GB, free: 7.387 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001502/6.758, allocations: 20.84 kB / 1.939 GB, free: 7.363 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.044e-05/6.758, allocations: 19.92 kB / 1.939 GB, free: 7.344 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00216/6.76, allocations: 2.676 MB / 1.941 GB, free: 4.406 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/6.76, allocations: 7.984 kB / 1.941 GB, free: 4.398 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001611/6.762, allocations: 0.6765 MB / 1.942 GB, free: 3.695 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005409/6.762, allocations: 200 kB / 1.942 GB, free: 3.48 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002266/6.762, allocations: 15.95 kB / 1.942 GB, free: 3.465 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008728/6.763, allocations: 31.97 kB / 1.942 GB, free: 3.434 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000124/6.764, allocations: 23.97 kB / 1.942 GB, free: 3.41 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.558e-05/6.764, allocations: 15.98 kB / 1.942 GB, free: 3.395 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001216/6.765, allocations: 0.6123 MB / 1.943 GB, free: 2.77 MB / 490.7 MB Notification: Performance of sort global known variables: time 6.31e-07/6.765, allocations: 0 / 1.943 GB, free: 2.77 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.002911/6.768, allocations: 0.5114 MB / 1.943 GB, free: 2.258 MB / 490.7 MB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 30 * 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.006312/6.774, allocations: 2.571 MB / 1.946 GB, free: 15.66 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.002555/6.777, allocations: 0.6982 MB / 1.947 GB, free: 14.96 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.426e-06/6.777, allocations: 0 / 1.947 GB, free: 14.96 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001522/6.778, allocations: 342.6 kB / 1.947 GB, free: 14.61 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003376/6.782, allocations: 378.8 kB / 1.947 GB, free: 14.24 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3969/7.179, allocations: 20.45 MB / 1.967 GB, free: 84.78 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000798/7.18, allocations: 1.045 MB / 1.968 GB, free: 84.07 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001075/7.181, allocations: 368.8 kB / 1.969 GB, free: 84.07 MB / 0.4948 GB Notification: Performance of SimCode: time 3.095e-06/7.181, allocations: 0 / 1.969 GB, free: 84.07 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.686/10.87, allocations: 32.12 MB / 2 GB, free: 83.57 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition_res.mat does not exist to compare? outputFormat=mat