Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.957/1.957, allocations: 209.2 MB / 224.8 MB, free: 0.6328 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004341/0.0004341, allocations: 8 kB / 282.7 MB, free: 9.543 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3598/0.3602, allocations: 48.7 MB / 331.4 MB, free: 6.391 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.278/2.638, allocations: 0.8079 GB / 1.132 GB, free: 8.793 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003006/2.639, allocations: 93.52 kB / 1.132 GB, free: 8.742 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.15/6.789, allocations: 0.7316 GB / 1.863 GB, free: 58.86 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.545e-06/6.789, allocations: 0 / 1.863 GB, free: 58.86 MB / 442.7 MB Notification: Performance of Transformations before backend: time 8.6e-05/6.789, allocations: 23.16 kB / 1.863 GB, free: 58.86 MB / 442.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.005584/6.795, allocations: 1.475 MB / 1.865 GB, free: 58.31 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.213e-05/6.795, allocations: 10.69 kB / 1.865 GB, free: 58.31 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005361/6.796, allocations: 131 kB / 1.865 GB, free: 58.27 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00244/6.798, allocations: 281.3 kB / 1.865 GB, free: 58.23 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002675/6.801, allocations: 0.6862 MB / 1.866 GB, free: 57.99 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001606/6.801, allocations: 121.1 kB / 1.866 GB, free: 57.93 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002331/6.801, allocations: 65.27 kB / 1.866 GB, free: 57.93 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002998/6.804, allocations: 1.23 MB / 1.867 GB, free: 57.7 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.893e-05/6.804, allocations: 2.562 kB / 1.867 GB, free: 57.7 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001814/6.804, allocations: 32.25 kB / 1.867 GB, free: 57.7 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001217/6.805, allocations: 65.27 kB / 1.867 GB, free: 57.7 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003175/6.808, allocations: 1.036 MB / 1.868 GB, free: 57.69 MB / 442.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.008548/6.816, allocations: 4.474 MB / 1.873 GB, free: 55.24 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007006/6.817, allocations: 263.8 kB / 1.873 GB, free: 55.21 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.646e-05/6.817, allocations: 15.33 kB / 1.873 GB, free: 55.21 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.658e-05/6.817, allocations: 40.95 kB / 1.873 GB, free: 55.17 MB / 442.7 MB Notification: Performance of pre-optimization done (n=27): time 3.206e-06/6.817, allocations: 0 / 1.873 GB, free: 55.17 MB / 442.7 MB Notification: Performance of matching and sorting (n=32): time 0.009101/6.826, allocations: 1.679 MB / 1.875 GB, free: 54.54 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.785e-05/6.826, allocations: 139.5 kB / 1.875 GB, free: 54.38 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001394/6.828, allocations: 0.8087 MB / 1.875 GB, free: 54.25 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.606e-05/6.828, allocations: 28.7 kB / 1.876 GB, free: 54.21 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003944/6.828, allocations: 0.606 MB / 1.876 GB, free: 53.87 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001227/6.829, allocations: 127.1 kB / 1.876 GB, free: 53.82 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.307e-05/6.829, allocations: 21.41 kB / 1.876 GB, free: 53.82 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001016/6.829, allocations: 362.2 kB / 1.877 GB, free: 53.5 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006496/6.829, allocations: 270.6 kB / 1.877 GB, free: 53.5 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001022/6.83, allocations: 0.91 MB / 1.878 GB, free: 52.68 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00097/6.831, allocations: 474.8 kB / 1.878 GB, free: 52.68 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.36e-05/6.831, allocations: 10.66 kB / 1.878 GB, free: 52.68 MB / 442.7 MB Notification: Performance of matching and sorting (n=139) (initialization): time 0.002852/6.834, allocations: 1.227 MB / 1.879 GB, free: 52.61 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.653e-05/6.834, allocations: 17.47 kB / 1.879 GB, free: 52.61 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.812e-05/6.834, allocations: 26.34 kB / 1.879 GB, free: 52.61 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001985/6.836, allocations: 279.6 kB / 1.88 GB, free: 52.6 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001132/6.838, allocations: 218 kB / 1.88 GB, free: 52.6 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001318/6.839, allocations: 0.8902 MB / 1.881 GB, free: 52.07 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001449/6.84, allocations: 72.88 kB / 1.881 GB, free: 52.07 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001275/6.84, allocations: 71.38 kB / 1.881 GB, free: 52.07 MB / 442.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.0006741/6.841, allocations: 352.5 kB / 1.881 GB, free: 51.95 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001786/6.841, allocations: 83.5 kB / 1.881 GB, free: 51.91 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001321/6.843, allocations: 474.1 kB / 1.882 GB, free: 51.84 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.536e-06/6.843, allocations: 7.859 kB / 1.882 GB, free: 51.84 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/6.843, allocations: 0 / 1.882 GB, free: 51.84 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.296e-06/6.843, allocations: 3.562 kB / 1.882 GB, free: 51.84 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002388/6.845, allocations: 1.091 MB / 1.883 GB, free: 51.51 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.36e-06/6.845, allocations: 0 / 1.883 GB, free: 51.51 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001833/6.847, allocations: 175.8 kB / 1.883 GB, free: 51.51 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001292/6.847, allocations: 30.34 kB / 1.883 GB, free: 51.5 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.015e-05/6.847, allocations: 7.25 kB / 1.883 GB, free: 51.5 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002066/6.849, allocations: 2.683 MB / 1.886 GB, free: 48.94 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/6.849, allocations: 0 / 1.886 GB, free: 48.94 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001537/6.851, allocations: 0.6872 MB / 1.886 GB, free: 48.72 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004888/6.851, allocations: 200.7 kB / 1.887 GB, free: 48.58 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001863/6.852, allocations: 7.719 kB / 1.887 GB, free: 48.58 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007826/6.852, allocations: 22.41 kB / 1.887 GB, free: 48.58 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001021/6.853, allocations: 36.34 kB / 1.887 GB, free: 48.58 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.97e-05/6.853, allocations: 17.7 kB / 1.887 GB, free: 48.58 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001131/6.854, allocations: 0.5998 MB / 1.887 GB, free: 48.47 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.1e-07/6.854, allocations: 0 / 1.887 GB, free: 48.47 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002611/6.856, allocations: 0.5188 MB / 1.888 GB, free: 48.43 MB / 442.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.005995/6.862, allocations: 2.592 MB / 1.89 GB, free: 47.46 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002111/6.865, allocations: 0.6846 MB / 1.891 GB, free: 47.45 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.873e-06/6.865, allocations: 0 / 1.891 GB, free: 47.45 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001354/6.866, allocations: 345.5 kB / 1.891 GB, free: 47.34 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003177/6.869, allocations: 380 kB / 1.892 GB, free: 47.34 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01579/6.885, allocations: 20.48 MB / 1.912 GB, free: 30.26 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006688/6.886, allocations: 1.044 MB / 1.913 GB, free: 29.55 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007416/6.886, allocations: 321.5 kB / 1.913 GB, free: 29.55 MB / 442.7 MB Notification: Performance of SimCode: time 1.633e-06/6.886, allocations: 3.781 kB / 1.913 GB, free: 29.55 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.679/10.57, allocations: 31.81 MB / 1.944 GB, free: 27.98 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition_res.mat does not exist to compare? outputFormat=mat