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.87/1.87, allocations: 209.3 MB / 221.9 MB, free: 1.941 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.099e-05/4.121e-05, allocations: 8 kB / 273.2 MB, free: 0.625 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1023, allocations: 48.7 MB / 321.9 MB, free: 15.82 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.463/2.566, allocations: 0.8078 GB / 1.122 GB, free: 12.04 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003211/2.566, allocations: 91.62 kB / 1.122 GB, free: 11.96 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.972/6.538, allocations: 0.732 GB / 1.854 GB, free: 61.8 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.194e-06/6.538, allocations: 0 / 1.854 GB, free: 61.8 MB / 442.7 MB Notification: Performance of Transformations before backend: time 9.784e-05/6.538, allocations: 24.64 kB / 1.854 GB, free: 61.8 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.006036/6.544, allocations: 1.386 MB / 1.856 GB, free: 61.15 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.373e-05/6.545, allocations: 10.66 kB / 1.856 GB, free: 61.15 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004989/6.545, allocations: 120 kB / 1.856 GB, free: 61.11 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003304/6.548, allocations: 281.8 kB / 1.856 GB, free: 61.06 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003195/6.552, allocations: 0.6797 MB / 1.857 GB, free: 60.83 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002109/6.552, allocations: 114.5 kB / 1.857 GB, free: 60.77 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003826/6.552, allocations: 72.89 kB / 1.857 GB, free: 60.76 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004301/6.557, allocations: 1.206 MB / 1.858 GB, free: 60.54 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.026e-05/6.557, allocations: 3.938 kB / 1.858 GB, free: 60.54 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003473/6.557, allocations: 34.44 kB / 1.858 GB, free: 60.54 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001818/6.557, allocations: 71.27 kB / 1.858 GB, free: 60.54 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003849/6.561, allocations: 0.9937 MB / 1.859 GB, free: 60.54 MB / 442.7 MB 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.01109/6.572, allocations: 4.478 MB / 1.863 GB, free: 58.07 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008818/6.573, allocations: 246.5 kB / 1.864 GB, free: 58.05 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004274/6.574, allocations: 140.8 kB / 1.864 GB, free: 58.04 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001244/6.574, allocations: 20.95 kB / 1.864 GB, free: 58.04 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.861e-05/6.574, allocations: 44.16 kB / 1.864 GB, free: 58 MB / 442.7 MB Notification: Performance of pre-optimization done (n=27): time 4.038e-06/6.574, allocations: 0 / 1.864 GB, free: 58 MB / 442.7 MB Notification: Performance of matching and sorting (n=32): time 0.01208/6.586, allocations: 1.557 MB / 1.865 GB, free: 57.36 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.287e-05/6.586, allocations: 131.7 kB / 1.866 GB, free: 57.2 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001949/6.588, allocations: 0.8017 MB / 1.866 GB, free: 57.05 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 9.352e-05/6.588, allocations: 34.02 kB / 1.866 GB, free: 57.02 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005261/6.589, allocations: 0.6044 MB / 1.867 GB, free: 56.62 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001761/6.589, allocations: 128.4 kB / 1.867 GB, free: 56.55 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.028e-05/6.589, allocations: 25.22 kB / 1.867 GB, free: 56.55 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001382/6.589, allocations: 357.1 kB / 1.867 GB, free: 56.23 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009125/6.59, allocations: 271.2 kB / 1.868 GB, free: 56.23 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001392/6.591, allocations: 0.8916 MB / 1.869 GB, free: 55.42 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001328/6.593, allocations: 481.3 kB / 1.869 GB, free: 55.41 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.016e-05/6.593, allocations: 7.469 kB / 1.869 GB, free: 55.41 MB / 442.7 MB Notification: Performance of matching and sorting (n=139) (initialization): time 0.003722/6.597, allocations: 1.147 MB / 1.87 GB, free: 55.3 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.234e-05/6.597, allocations: 11.78 kB / 1.87 GB, free: 55.3 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.074e-05/6.597, allocations: 23.97 kB / 1.87 GB, free: 55.3 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002557/6.599, allocations: 268.7 kB / 1.87 GB, free: 55.29 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001601/6.601, allocations: 229.1 kB / 1.871 GB, free: 55.27 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0139/6.615, allocations: 0.882 MB / 1.871 GB, free: 54.73 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002402/6.617, allocations: 76.25 kB / 1.872 GB, free: 54.72 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002052/6.618, allocations: 67.84 kB / 1.872 GB, free: 54.72 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 () * 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.000367/6.618, allocations: 188.5 kB / 1.872 GB, free: 54.58 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002724/6.618, allocations: 88.94 kB / 1.872 GB, free: 54.54 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001762/6.62, allocations: 463 kB / 1.872 GB, free: 54.47 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.796e-06/6.62, allocations: 3.062 kB / 1.872 GB, free: 54.47 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.636e-06/6.62, allocations: 2.688 kB / 1.872 GB, free: 54.47 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.092e-05/6.62, allocations: 3.141 kB / 1.872 GB, free: 54.47 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003119/6.623, allocations: 1.088 MB / 1.873 GB, free: 54.13 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.17e-06/6.623, allocations: 0 / 1.873 GB, free: 54.13 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002456/6.626, allocations: 177.3 kB / 1.874 GB, free: 54.13 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001468/6.626, allocations: 26.8 kB / 1.874 GB, free: 54.12 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.438e-05/6.626, allocations: 13.25 kB / 1.874 GB, free: 54.12 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002048/6.628, allocations: 2.667 MB / 1.876 GB, free: 51.54 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/6.628, allocations: 0 / 1.876 GB, free: 51.54 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001399/6.629, allocations: 0.6654 MB / 1.877 GB, free: 51.32 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000479/6.63, allocations: 201.4 kB / 1.877 GB, free: 51.18 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000178/6.63, allocations: 7.516 kB / 1.877 GB, free: 51.18 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008886/6.631, allocations: 30.34 kB / 1.877 GB, free: 51.18 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.359e-05/6.631, allocations: 28.22 kB / 1.877 GB, free: 51.17 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.381e-05/6.631, allocations: 16.8 kB / 1.877 GB, free: 51.17 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001149/6.632, allocations: 0.588 MB / 1.878 GB, free: 51.05 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.41e-07/6.632, allocations: 0 / 1.878 GB, free: 51.05 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002826/6.635, allocations: 0.5249 MB / 1.878 GB, free: 51 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 () * 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.005937/6.641, allocations: 2.613 MB / 1.881 GB, free: 49.98 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002004/6.643, allocations: 0.6423 MB / 1.881 GB, free: 49.91 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.633e-06/6.643, allocations: 2.5 kB / 1.881 GB, free: 49.91 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001256/6.645, allocations: 329.3 kB / 1.882 GB, free: 49.81 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003107/6.648, allocations: 371.7 kB / 1.882 GB, free: 49.8 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004793/6.653, allocations: 1.568 MB / 1.884 GB, free: 49.35 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000641/6.653, allocations: 1.048 MB / 1.885 GB, free: 48.64 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006289/6.654, allocations: 323 kB / 1.885 GB, free: 48.63 MB / 442.7 MB Notification: Performance of SimCode: time 1.232e-06/6.654, allocations: 2.781 kB / 1.885 GB, free: 48.63 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.604/10.26, allocations: 31.58 MB / 1.916 GB, free: 32.64 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