Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.917/1.917, allocations: 209.3 MB / 221.9 MB, free: 1.926 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.966e-05/2.995e-05, allocations: 4 kB / 273.2 MB, free: 0.6211 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.113, allocations: 48.7 MB / 321.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.405/2.518, allocations: 0.807 GB / 1.121 GB, free: 12.77 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000332/2.519, allocations: 87.89 kB / 1.121 GB, free: 12.72 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.916/6.434, allocations: 0.7075 GB / 1.829 GB, free: 58.88 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.764e-06/6.434, allocations: 3.5 kB / 1.829 GB, free: 58.88 MB / 442.7 MB Notification: Performance of Transformations before backend: time 8.626e-05/6.434, allocations: 28.88 kB / 1.829 GB, free: 58.88 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: 276 * Number of variables: 276 Notification: Performance of Generate backend data structure: time 0.006472/6.441, allocations: 1.565 MB / 1.83 GB, free: 58.31 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.951e-05/6.441, allocations: 11.41 kB / 1.83 GB, free: 58.31 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004667/6.442, allocations: 170.8 kB / 1.831 GB, free: 58.27 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002351/6.444, allocations: 308.2 kB / 1.831 GB, free: 58.21 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002771/6.447, allocations: 0.8298 MB / 1.832 GB, free: 57.97 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001545/6.447, allocations: 136.7 kB / 1.832 GB, free: 57.91 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002852/6.447, allocations: 105.4 kB / 1.832 GB, free: 57.91 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004091/6.451, allocations: 1.74 MB / 1.834 GB, free: 57.7 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.074e-05/6.451, allocations: 6.469 kB / 1.834 GB, free: 57.7 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002317/6.452, allocations: 54.47 kB / 1.834 GB, free: 57.7 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001329/6.452, allocations: 80.08 kB / 1.834 GB, free: 57.7 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003748/6.456, allocations: 1.572 MB / 1.835 GB, free: 57.69 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.01261/6.468, allocations: 5.884 MB / 1.841 GB, free: 55.12 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001604/6.47, allocations: 0.6163 MB / 1.842 GB, free: 55.09 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007271/6.471, allocations: 351.2 kB / 1.842 GB, free: 55.09 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001409/6.471, allocations: 31.59 kB / 1.842 GB, free: 55.09 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.083e-05/6.471, allocations: 40.47 kB / 1.842 GB, free: 55.05 MB / 442.7 MB Notification: Performance of pre-optimization done (n=53): time 3.817e-06/6.471, allocations: 0 / 1.842 GB, free: 55.05 MB / 442.7 MB Notification: Performance of matching and sorting (n=65): time 0.01462/6.485, allocations: 3.429 MB / 1.845 GB, free: 54.33 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.323e-05/6.486, allocations: 112.9 kB / 1.845 GB, free: 54.2 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001546/6.487, allocations: 0.8486 MB / 1.846 GB, free: 54.07 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001693/6.487, allocations: 44.05 kB / 1.846 GB, free: 54.04 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003775/6.488, allocations: 0.5732 MB / 1.847 GB, free: 53.71 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000244/6.488, allocations: 246.4 kB / 1.847 GB, free: 53.57 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001007/6.488, allocations: 21.94 kB / 1.847 GB, free: 53.57 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001015/6.488, allocations: 356.2 kB / 1.848 GB, free: 53.25 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001186/6.489, allocations: 0.509 MB / 1.848 GB, free: 53.25 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001425/6.491, allocations: 0.8816 MB / 1.849 GB, free: 52.81 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001487/6.492, allocations: 0.6444 MB / 1.85 GB, free: 52.8 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.608e-06/6.492, allocations: 3.719 kB / 1.85 GB, free: 52.8 MB / 442.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.004212/6.497, allocations: 1.775 MB / 1.851 GB, free: 52.71 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.684e-05/6.497, allocations: 15.27 kB / 1.851 GB, free: 52.71 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.363e-05/6.497, allocations: 11.56 kB / 1.851 GB, free: 52.71 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007709/6.504, allocations: 1.277 MB / 1.853 GB, free: 52.68 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001248/6.506, allocations: 171.6 kB / 1.853 GB, free: 52.68 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003599/6.509, allocations: 1.715 MB / 1.854 GB, free: 52.14 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002048/6.511, allocations: 115.9 kB / 1.854 GB, free: 52.13 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002034/6.512, allocations: 71.8 kB / 1.855 GB, free: 52.13 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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 (98): * Single equations (assignments): 97 * 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 {9 28} Notification: Performance of prepare postOptimizeDAE: time 0.0003886/6.512, allocations: 181.1 kB / 1.855 GB, free: 52.02 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003241/6.512, allocations: 101.2 kB / 1.855 GB, free: 51.97 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003323/6.516, allocations: 1.241 MB / 1.856 GB, free: 51.88 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.501e-05/6.516, allocations: 11.05 kB / 1.856 GB, free: 51.88 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.385e-06/6.516, allocations: 2.938 kB / 1.856 GB, free: 51.88 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.139e-05/6.516, allocations: 3.844 kB / 1.856 GB, free: 51.88 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005984/6.522, allocations: 2.469 MB / 1.858 GB, free: 51.52 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.029e-05/6.522, allocations: 0 / 1.858 GB, free: 51.52 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003377/6.525, allocations: 313.2 kB / 1.859 GB, free: 51.52 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000306/6.526, allocations: 68.41 kB / 1.859 GB, free: 51.51 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001456/6.526, allocations: 36.09 kB / 1.859 GB, free: 51.51 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002568/6.528, allocations: 2.831 MB / 1.862 GB, free: 48.94 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/6.528, allocations: 7.625 kB / 1.862 GB, free: 48.94 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003751/6.532, allocations: 1.664 MB / 1.863 GB, free: 48.7 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001038/6.533, allocations: 308.5 kB / 1.864 GB, free: 48.55 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003023/6.534, allocations: 24.84 kB / 1.864 GB, free: 48.55 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001657/6.535, allocations: 74.72 kB / 1.864 GB, free: 48.55 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001959/6.536, allocations: 48.62 kB / 1.864 GB, free: 48.55 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001706/6.536, allocations: 65.16 kB / 1.864 GB, free: 48.55 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001304/6.537, allocations: 0.6573 MB / 1.864 GB, free: 48.45 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.9e-07/6.537, allocations: 0 / 1.864 GB, free: 48.45 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003113/6.54, allocations: 0.6044 MB / 1.865 GB, free: 48.39 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 8 (volume.medium.p,volume.medium.Xi[1],volume.medium.Xi[2],volume.medium.Xi[3],volume.medium.Xi[4],volume.medium.Xi[5],volume.medium.Xi[6],volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (71): * Single equations (assignments): 69 * 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.008837/6.549, allocations: 3.712 MB / 1.869 GB, free: 47.38 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003931/6.553, allocations: 1.33 MB / 1.87 GB, free: 47.35 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.788e-06/6.553, allocations: 0.75 kB / 1.87 GB, free: 47.35 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002323/6.555, allocations: 0.7567 MB / 1.871 GB, free: 47.25 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005033/6.561, allocations: 0.5946 MB / 1.871 GB, free: 47.23 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008781/6.569, allocations: 2.781 MB / 1.874 GB, free: 46.65 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008968/6.57, allocations: 1.189 MB / 1.875 GB, free: 45.95 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00108/6.571, allocations: 438.2 kB / 1.876 GB, free: 45.94 MB / 442.7 MB Notification: Performance of SimCode: time 1.122e-06/6.571, allocations: 0 / 1.876 GB, free: 45.94 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.778/10.35, allocations: 39.6 MB / 1.914 GB, free: 30.62 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.SimpleNaturalGas_res.mat does not exist to compare? outputFormat=mat