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.976/1.976, allocations: 209.4 MB / 216.9 MB, free: 6.672 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.981e-05/1.993e-05, allocations: 4 kB / 267.6 MB, free: 5.316 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.107, allocations: 48.7 MB / 316.3 MB, free: 4.523 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.441/2.548, allocations: 0.8074 GB / 1.116 GB, free: 10.15 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002788/2.548, allocations: 87.08 kB / 1.116 GB, free: 10.11 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.982/6.53, allocations: 0.7222 GB / 1.839 GB, free: 64.12 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.946e-06/6.53, allocations: 0 / 1.839 GB, free: 64.12 MB / 442.7 MB Notification: Performance of Transformations before backend: time 8.398e-05/6.53, allocations: 21.44 kB / 1.839 GB, free: 64.11 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.00518/6.535, allocations: 1.394 MB / 1.84 GB, free: 63.46 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.85e-05/6.535, allocations: 6.25 kB / 1.84 GB, free: 63.46 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002297/6.537, allocations: 281.5 kB / 1.84 GB, free: 63.41 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002449/6.54, allocations: 0.6761 MB / 1.841 GB, free: 63.18 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001443/6.54, allocations: 95.23 kB / 1.841 GB, free: 63.11 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002337/6.54, allocations: 42.38 kB / 1.841 GB, free: 63.11 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002136/6.542, allocations: 0.8567 MB / 1.842 GB, free: 63.11 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002635/6.545, allocations: 1.112 MB / 1.843 GB, free: 62.88 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.09e-05/6.545, allocations: 7.781 kB / 1.843 GB, free: 62.88 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002243/6.545, allocations: 3.969 kB / 1.843 GB, free: 62.88 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001294/6.546, allocations: 65.06 kB / 1.843 GB, free: 62.88 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.009148/6.555, allocations: 4.401 MB / 1.847 GB, free: 60.46 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000684/6.555, allocations: 239 kB / 1.848 GB, free: 60.43 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002648/6.556, allocations: 131.2 kB / 1.848 GB, free: 60.43 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001127/6.556, allocations: 19.27 kB / 1.848 GB, free: 60.43 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.03e-05/6.556, allocations: 33.67 kB / 1.848 GB, free: 60.39 MB / 442.7 MB Notification: Performance of pre-optimization done (n=27): time 3.356e-06/6.556, allocations: 4.344 kB / 1.848 GB, free: 60.39 MB / 442.7 MB Notification: Performance of matching and sorting (n=32): time 0.009258/6.565, allocations: 1.505 MB / 1.849 GB, free: 59.76 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.469e-05/6.565, allocations: 134.5 kB / 1.849 GB, free: 59.61 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001241/6.567, allocations: 0.6817 MB / 1.85 GB, free: 59.47 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001605/6.567, allocations: 29.27 kB / 1.85 GB, free: 59.44 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004046/6.567, allocations: 0.6206 MB / 1.851 GB, free: 59.03 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001465/6.567, allocations: 126.7 kB / 1.851 GB, free: 58.96 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.869e-05/6.567, allocations: 3.156 kB / 1.851 GB, free: 58.96 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001016/6.568, allocations: 356.8 kB / 1.851 GB, free: 58.64 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005482/6.568, allocations: 250.5 kB / 1.851 GB, free: 58.64 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000879/6.569, allocations: 0.877 MB / 1.852 GB, free: 57.82 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009975/6.57, allocations: 453.7 kB / 1.853 GB, free: 57.82 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.421e-05/6.57, allocations: 6.125 kB / 1.853 GB, free: 57.82 MB / 442.7 MB Notification: Performance of matching and sorting (n=139) (initialization): time 0.002542/6.573, allocations: 1.062 MB / 1.854 GB, free: 57.71 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.67e-05/6.573, allocations: 17.31 kB / 1.854 GB, free: 57.71 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.115e-05/6.573, allocations: 22.59 kB / 1.854 GB, free: 57.71 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001798/6.575, allocations: 252.8 kB / 1.854 GB, free: 57.71 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00131/6.576, allocations: 223.8 kB / 1.854 GB, free: 57.69 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001358/6.577, allocations: 0.8952 MB / 1.855 GB, free: 57.14 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001596/6.579, allocations: 42.69 kB / 1.855 GB, free: 57.14 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000196/6.579, allocations: 74 kB / 1.855 GB, free: 57.14 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.0002797/6.579, allocations: 164.9 kB / 1.855 GB, free: 57 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0009782/6.58, allocations: 369 kB / 1.856 GB, free: 56.91 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00015/6.581, allocations: 83.28 kB / 1.856 GB, free: 56.87 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001223/6.582, allocations: 431.6 kB / 1.856 GB, free: 56.8 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.416e-06/6.582, allocations: 8.75 kB / 1.856 GB, free: 56.8 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.314e-06/6.582, allocations: 0 / 1.856 GB, free: 56.8 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.215e-06/6.582, allocations: 7.141 kB / 1.856 GB, free: 56.8 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002448/6.584, allocations: 0.9922 MB / 1.857 GB, free: 56.51 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.933e-06/6.584, allocations: 3.75 kB / 1.857 GB, free: 56.51 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001869/6.586, allocations: 176 kB / 1.857 GB, free: 56.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001427/6.587, allocations: 21.67 kB / 1.857 GB, free: 56.5 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.155e-05/6.587, allocations: 3.875 kB / 1.857 GB, free: 56.5 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001981/6.589, allocations: 2.58 MB / 1.86 GB, free: 54.04 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.111e-06/6.589, allocations: 9.766 kB / 1.86 GB, free: 54.04 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001367/6.59, allocations: 0.6391 MB / 1.86 GB, free: 53.82 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004985/6.591, allocations: 189.3 kB / 1.861 GB, free: 53.69 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002333/6.591, allocations: 0 / 1.861 GB, free: 53.69 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007909/6.592, allocations: 20.67 kB / 1.861 GB, free: 53.69 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001191/6.592, allocations: 32.42 kB / 1.861 GB, free: 53.68 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.968e-05/6.592, allocations: 21.66 kB / 1.861 GB, free: 53.68 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0008845/6.593, allocations: 497.9 kB / 1.861 GB, free: 53.59 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.51e-07/6.593, allocations: 0 / 1.861 GB, free: 53.59 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002789/6.596, allocations: 473.7 kB / 1.862 GB, free: 53.53 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.006339/6.602, allocations: 2.737 MB / 1.864 GB, free: 52.54 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001918/6.604, allocations: 0.6141 MB / 1.865 GB, free: 52.48 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.705e-06/6.604, allocations: 0 / 1.865 GB, free: 52.48 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00129/6.605, allocations: 332.2 kB / 1.865 GB, free: 52.37 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002735/6.608, allocations: 302.7 kB / 1.866 GB, free: 52.36 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005262/6.613, allocations: 1.515 MB / 1.867 GB, free: 51.91 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006557/6.614, allocations: 1.043 MB / 1.868 GB, free: 51.21 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007497/6.615, allocations: 320.1 kB / 1.868 GB, free: 51.21 MB / 442.7 MB Notification: Performance of SimCode: time 1.433e-06/6.615, allocations: 2.625 kB / 1.868 GB, free: 51.21 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.525/10.14, allocations: 30.49 MB / 1.898 GB, free: 43.82 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