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.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.681e-05/4.693e-05, allocations: 4 kB / 273.1 MB, free: 0.6406 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1052, allocations: 48.7 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.59/2.696, allocations: 0.807 GB / 1.121 GB, free: 12.86 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000319/2.696, allocations: 94.88 kB / 1.121 GB, free: 12.81 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.048/6.744, allocations: 0.7074 GB / 1.829 GB, free: 58.43 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.895e-06/6.744, allocations: 2.344 kB / 1.829 GB, free: 58.43 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001389/6.744, allocations: 30.98 kB / 1.829 GB, free: 58.43 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.006993/6.751, allocations: 1.576 MB / 1.83 GB, free: 57.84 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.028e-05/6.751, allocations: 9.656 kB / 1.83 GB, free: 57.84 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007101/6.752, allocations: 168.5 kB / 1.831 GB, free: 57.79 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004163/6.756, allocations: 308.3 kB / 1.831 GB, free: 57.73 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004638/6.761, allocations: 0.8228 MB / 1.832 GB, free: 57.5 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003208/6.761, allocations: 145.8 kB / 1.832 GB, free: 57.43 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007215/6.762, allocations: 103.9 kB / 1.832 GB, free: 57.43 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007362/6.769, allocations: 1.748 MB / 1.834 GB, free: 57.22 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.728e-05/6.77, allocations: 11.19 kB / 1.834 GB, free: 57.21 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004577/6.77, allocations: 51.08 kB / 1.834 GB, free: 57.21 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001872/6.77, allocations: 70.44 kB / 1.834 GB, free: 57.21 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006802/6.777, allocations: 1.595 MB / 1.835 GB, free: 57.21 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.02032/6.797, allocations: 5.887 MB / 1.841 GB, free: 54.63 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002549/6.8, allocations: 0.6175 MB / 1.842 GB, free: 54.61 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001181/6.801, allocations: 353.8 kB / 1.842 GB, free: 54.6 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001755/6.802, allocations: 29.16 kB / 1.842 GB, free: 54.6 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.723e-05/6.802, allocations: 44.69 kB / 1.842 GB, free: 54.56 MB / 442.7 MB Notification: Performance of pre-optimization done (n=53): time 5.04e-06/6.802, allocations: 0 / 1.842 GB, free: 54.56 MB / 442.7 MB Notification: Performance of matching and sorting (n=65): time 0.02305/6.825, allocations: 3.422 MB / 1.845 GB, free: 53.85 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.174e-05/6.825, allocations: 114.5 kB / 1.845 GB, free: 53.72 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002598/6.827, allocations: 0.8526 MB / 1.846 GB, free: 53.59 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003268/6.828, allocations: 43.8 kB / 1.846 GB, free: 53.56 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006608/6.828, allocations: 0.5721 MB / 1.847 GB, free: 53.23 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004194/6.829, allocations: 245 kB / 1.847 GB, free: 53.08 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001554/6.829, allocations: 22.94 kB / 1.847 GB, free: 53.08 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001471/6.829, allocations: 359.5 kB / 1.848 GB, free: 52.77 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001806/6.831, allocations: 0.5087 MB / 1.848 GB, free: 52.76 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002236/6.833, allocations: 0.8899 MB / 1.849 GB, free: 52.32 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002267/6.836, allocations: 0.6427 MB / 1.85 GB, free: 52.31 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.689e-05/6.836, allocations: 3.031 kB / 1.85 GB, free: 52.31 MB / 442.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.006743/6.842, allocations: 1.803 MB / 1.851 GB, free: 52.22 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.32e-05/6.843, allocations: 11.56 kB / 1.851 GB, free: 52.22 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.917e-05/6.843, allocations: 10.53 kB / 1.851 GB, free: 52.22 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0113/6.854, allocations: 1.288 MB / 1.853 GB, free: 52.2 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001672/6.856, allocations: 173.3 kB / 1.853 GB, free: 52.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005407/6.861, allocations: 1.711 MB / 1.854 GB, free: 51.65 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002986/6.864, allocations: 111.2 kB / 1.855 GB, free: 51.65 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003492/6.865, allocations: 72.52 kB / 1.855 GB, free: 51.65 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.0005905/6.865, allocations: 177.3 kB / 1.855 GB, free: 51.54 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005199/6.866, allocations: 95.12 kB / 1.855 GB, free: 51.49 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005093/6.871, allocations: 1.248 MB / 1.856 GB, free: 51.39 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.7e-05/6.871, allocations: 6 kB / 1.856 GB, free: 51.39 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.094e-05/6.871, allocations: 3.562 kB / 1.856 GB, free: 51.39 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.569e-05/6.871, allocations: 3.516 kB / 1.856 GB, free: 51.39 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009199/6.88, allocations: 2.476 MB / 1.858 GB, free: 51.03 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.136e-05/6.88, allocations: 0 / 1.858 GB, free: 51.03 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004681/6.885, allocations: 318.5 kB / 1.859 GB, free: 51.03 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004502/6.886, allocations: 66.06 kB / 1.859 GB, free: 51.02 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002737/6.886, allocations: 36.38 kB / 1.859 GB, free: 51.02 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003935/6.89, allocations: 2.831 MB / 1.862 GB, free: 48.46 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/6.89, allocations: 6.844 kB / 1.862 GB, free: 48.46 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005734/6.896, allocations: 1.666 MB / 1.863 GB, free: 48.21 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001724/6.897, allocations: 310.2 kB / 1.864 GB, free: 48.07 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005326/6.898, allocations: 24.38 kB / 1.864 GB, free: 48.07 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002817/6.901, allocations: 82.02 kB / 1.864 GB, free: 48.06 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003251/6.901, allocations: 49.25 kB / 1.864 GB, free: 48.06 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002761/6.901, allocations: 62.03 kB / 1.864 GB, free: 48.06 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002053/6.904, allocations: 0.657 MB / 1.864 GB, free: 47.97 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.062e-06/6.904, allocations: 0 / 1.864 GB, free: 47.97 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003666/6.907, allocations: 0.6018 MB / 1.865 GB, free: 47.91 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.008648/6.916, allocations: 3.705 MB / 1.869 GB, free: 46.9 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003779/6.92, allocations: 1.358 MB / 1.87 GB, free: 46.87 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.055e-05/6.92, allocations: 8.094 kB / 1.87 GB, free: 46.87 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002321/6.922, allocations: 0.7556 MB / 1.871 GB, free: 46.76 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00504/6.927, allocations: 0.5905 MB / 1.871 GB, free: 46.75 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008803/6.936, allocations: 2.785 MB / 1.874 GB, free: 46.17 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000907/6.937, allocations: 1.194 MB / 1.875 GB, free: 45.47 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001131/6.938, allocations: 437 kB / 1.876 GB, free: 45.46 MB / 442.7 MB Notification: Performance of SimCode: time 1.273e-06/6.938, allocations: 0.5938 kB / 1.876 GB, free: 45.46 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.9/10.84, allocations: 39.61 MB / 1.914 GB, free: 30.57 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