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.379/2.379, allocations: 235 MB / 247.6 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.224e-05/4.257e-05, allocations: 4.938 kB / 305 MB, free: 5.562 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.416/0.4161, allocations: 54.86 MB / 359.9 MB, free: 2.309 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.44/2.856, allocations: 0.8221 GB / 1.174 GB, free: 89.68 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002723/2.856, allocations: 86.33 kB / 1.174 GB, free: 89.63 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.963/6.819, allocations: 0.7355 GB / 1.909 GB, free: 64.86 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.595e-06/6.819, allocations: 0 / 1.909 GB, free: 64.86 MB / 490.7 MB Notification: Performance of Transformations before backend: time 8.599e-05/6.819, allocations: 25.59 kB / 1.909 GB, free: 64.85 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.005457/6.825, allocations: 1.382 MB / 1.911 GB, free: 64.2 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.09e-05/6.825, allocations: 11.31 kB / 1.911 GB, free: 64.2 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003478/6.825, allocations: 124.2 kB / 1.911 GB, free: 64.16 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0023/6.827, allocations: 278.8 kB / 1.911 GB, free: 64.11 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002474/6.83, allocations: 0.687 MB / 1.912 GB, free: 63.85 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001564/6.83, allocations: 120.8 kB / 1.912 GB, free: 63.79 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002343/6.83, allocations: 67.3 kB / 1.912 GB, free: 63.78 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002984/6.833, allocations: 1.205 MB / 1.913 GB, free: 63.55 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.06e-05/6.833, allocations: 3.938 kB / 1.913 GB, free: 63.55 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002141/6.834, allocations: 33.25 kB / 1.913 GB, free: 63.55 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001209/6.834, allocations: 67.78 kB / 1.913 GB, free: 63.55 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002562/6.836, allocations: 0.992 MB / 1.914 GB, free: 63.53 MB / 490.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.009811/6.846, allocations: 4.812 MB / 1.919 GB, free: 60.75 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007605/6.847, allocations: 258.2 kB / 1.919 GB, free: 60.73 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003112/6.847, allocations: 133.4 kB / 1.919 GB, free: 60.71 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003577/6.848, allocations: 254 kB / 1.919 GB, free: 60.52 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.146e-05/6.848, allocations: 34.55 kB / 1.919 GB, free: 60.48 MB / 490.7 MB Notification: Performance of pre-optimization done (n=27): time 3.085e-06/6.848, allocations: 2.844 kB / 1.919 GB, free: 60.48 MB / 490.7 MB Notification: Performance of matching and sorting (n=32): time 0.009407/6.857, allocations: 1.57 MB / 1.921 GB, free: 59.83 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.653e-05/6.857, allocations: 134.6 kB / 1.921 GB, free: 59.67 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001483/6.859, allocations: 0.8175 MB / 1.922 GB, free: 59.52 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 9.602e-05/6.859, allocations: 35.05 kB / 1.922 GB, free: 59.48 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003983/6.859, allocations: 0.6041 MB / 1.922 GB, free: 59.09 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001373/6.859, allocations: 134.1 kB / 1.923 GB, free: 59.01 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.585e-05/6.86, allocations: 20.97 kB / 1.923 GB, free: 59.01 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001027/6.86, allocations: 358.4 kB / 1.923 GB, free: 58.7 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006625/6.86, allocations: 271.9 kB / 1.923 GB, free: 58.7 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001013/6.861, allocations: 0.9112 MB / 1.924 GB, free: 57.87 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009884/6.862, allocations: 479.6 kB / 1.925 GB, free: 57.85 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.51e-05/6.862, allocations: 6.625 kB / 1.925 GB, free: 57.85 MB / 490.7 MB Notification: Performance of matching and sorting (n=139) (initialization): time 0.002838/6.865, allocations: 1.183 MB / 1.926 GB, free: 57.68 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.765e-05/6.865, allocations: 17.34 kB / 1.926 GB, free: 57.68 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.004e-05/6.865, allocations: 21.12 kB / 1.926 GB, free: 57.68 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001987/6.867, allocations: 274.4 kB / 1.926 GB, free: 57.66 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00133/6.869, allocations: 238.8 kB / 1.926 GB, free: 57.64 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001383/6.87, allocations: 0.8763 MB / 1.927 GB, free: 57.11 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001825/6.872, allocations: 68.33 kB / 1.927 GB, free: 57.11 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002225/6.872, allocations: 94.64 kB / 1.927 GB, free: 57.11 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 () * 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.000312/6.873, allocations: 187.7 kB / 1.927 GB, free: 56.96 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000227/6.873, allocations: 92.81 kB / 1.928 GB, free: 56.92 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001371/6.874, allocations: 456.2 kB / 1.928 GB, free: 56.85 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.075e-06/6.874, allocations: 7.5 kB / 1.928 GB, free: 56.85 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.927e-06/6.874, allocations: 7.703 kB / 1.928 GB, free: 56.84 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/6.874, allocations: 3.469 kB / 1.928 GB, free: 56.84 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002763/6.877, allocations: 1.074 MB / 1.929 GB, free: 56.52 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.242e-06/6.877, allocations: 0 / 1.929 GB, free: 56.52 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001864/6.879, allocations: 183.1 kB / 1.929 GB, free: 56.52 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001301/6.879, allocations: 25.36 kB / 1.929 GB, free: 56.51 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.208e-05/6.879, allocations: 7.688 kB / 1.929 GB, free: 56.51 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002008/6.881, allocations: 2.674 MB / 1.932 GB, free: 53.93 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/6.881, allocations: 0 / 1.932 GB, free: 53.93 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001512/6.883, allocations: 0.672 MB / 1.932 GB, free: 53.7 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005256/6.883, allocations: 201.5 kB / 1.933 GB, free: 53.56 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002061/6.884, allocations: 11.09 kB / 1.933 GB, free: 53.56 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008672/6.884, allocations: 26.09 kB / 1.933 GB, free: 53.56 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.271e-05/6.885, allocations: 24.78 kB / 1.933 GB, free: 53.56 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.68e-05/6.885, allocations: 25.25 kB / 1.933 GB, free: 53.55 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001185/6.886, allocations: 0.5941 MB / 1.933 GB, free: 53.44 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.61e-07/6.886, allocations: 0 / 1.933 GB, free: 53.44 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.002974/6.889, allocations: 0.5192 MB / 1.934 GB, free: 53.38 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 () * 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.00586/6.895, allocations: 2.583 MB / 1.936 GB, free: 52.37 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.002091/6.897, allocations: 0.6517 MB / 1.937 GB, free: 52.32 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 6.572e-06/6.897, allocations: 2.375 kB / 1.937 GB, free: 52.32 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001288/6.898, allocations: 329.6 kB / 1.937 GB, free: 52.21 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003208/6.901, allocations: 389 kB / 1.938 GB, free: 52.19 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005546/6.907, allocations: 1.521 MB / 1.939 GB, free: 51.74 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006794/6.908, allocations: 1.04 MB / 1.94 GB, free: 51.03 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001015/6.909, allocations: 359.4 kB / 1.941 GB, free: 50.87 MB / 490.7 MB Notification: Performance of SimCode: time 1.593e-06/6.909, allocations: 2.094 kB / 1.941 GB, free: 50.87 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.473/10.38, allocations: 31.95 MB / 1.972 GB, free: 32.68 MB / 490.7 MB 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