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.935/1.935, allocations: 209.3 MB / 216.9 MB, free: 6.738 MB / 186.8 MB Notification: Performance of FrontEnd - loaded program: time 1.656e-05/1.662e-05, allocations: 0 / 267.6 MB, free: 5.379 MB / 218.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1029, allocations: 48.71 MB / 316.3 MB, free: 4.578 MB / 266.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.521/2.624, allocations: 0.8066 GB / 1.115 GB, free: 10.94 MB / 426.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003148/2.624, allocations: 92.88 kB / 1.116 GB, free: 10.89 MB / 426.8 MB Notification: Performance of FrontEnd - DAE generated: time 3.93/6.554, allocations: 0.6976 GB / 1.813 GB, free: 63.38 MB / 442.8 MB Notification: Performance of FrontEnd: time 2.495e-06/6.554, allocations: 0 / 1.813 GB, free: 63.38 MB / 442.8 MB Notification: Performance of Transformations before backend: time 0.0001039/6.554, allocations: 34.78 kB / 1.813 GB, free: 63.38 MB / 442.8 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.006867/6.561, allocations: 1.568 MB / 1.815 GB, free: 62.88 MB / 442.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.921e-05/6.561, allocations: 10.25 kB / 1.815 GB, free: 62.88 MB / 442.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002669/6.564, allocations: 305.8 kB / 1.815 GB, free: 62.81 MB / 442.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003019/6.567, allocations: 0.8276 MB / 1.816 GB, free: 62.57 MB / 442.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001828/6.567, allocations: 112.4 kB / 1.816 GB, free: 62.5 MB / 442.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005098/6.567, allocations: 62.41 kB / 1.816 GB, free: 62.5 MB / 442.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004292/6.572, allocations: 1.433 MB / 1.817 GB, free: 62.5 MB / 442.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00482/6.577, allocations: 1.602 MB / 1.819 GB, free: 62.29 MB / 442.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.951e-05/6.577, allocations: 6.344 kB / 1.819 GB, free: 62.29 MB / 442.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002854/6.577, allocations: 3.969 kB / 1.819 GB, free: 62.29 MB / 442.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001384/6.577, allocations: 79 kB / 1.819 GB, free: 62.29 MB / 442.8 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.01416/6.591, allocations: 5.769 MB / 1.825 GB, free: 59.76 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00162/6.593, allocations: 0.6336 MB / 1.825 GB, free: 59.73 MB / 442.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007334/6.594, allocations: 352.3 kB / 1.826 GB, free: 59.72 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001511/6.594, allocations: 25.75 kB / 1.826 GB, free: 59.72 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.119e-05/6.594, allocations: 41.72 kB / 1.826 GB, free: 59.68 MB / 442.8 MB Notification: Performance of pre-optimization done (n=53): time 3.977e-06/6.594, allocations: 0 / 1.826 GB, free: 59.68 MB / 442.8 MB Notification: Performance of matching and sorting (n=65): time 0.01436/6.608, allocations: 3.231 MB / 1.829 GB, free: 59.02 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.706e-05/6.609, allocations: 110.9 kB / 1.829 GB, free: 58.89 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001009/6.61, allocations: 0.5854 MB / 1.83 GB, free: 58.77 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001962/6.61, allocations: 28.95 kB / 1.83 GB, free: 58.74 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004057/6.61, allocations: 0.6078 MB / 1.83 GB, free: 58.41 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002836/6.611, allocations: 229.4 kB / 1.83 GB, free: 58.29 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001017/6.611, allocations: 2.938 kB / 1.83 GB, free: 58.29 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 0.0001008/6.611, allocations: 362.3 kB / 1.831 GB, free: 57.98 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001057/6.612, allocations: 0.5045 MB / 1.831 GB, free: 57.97 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001256/6.613, allocations: 0.8827 MB / 1.832 GB, free: 57.54 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001356/6.614, allocations: 0.6364 MB / 1.833 GB, free: 57.53 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.178e-06/6.614, allocations: 6.594 kB / 1.833 GB, free: 57.53 MB / 442.8 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003853/6.618, allocations: 1.704 MB / 1.834 GB, free: 57.45 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.044e-05/6.618, allocations: 17.12 kB / 1.834 GB, free: 57.45 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.274e-05/6.618, allocations: 11.47 kB / 1.834 GB, free: 57.45 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006956/6.625, allocations: 1.172 MB / 1.836 GB, free: 57.43 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001326/6.627, allocations: 172.5 kB / 1.836 GB, free: 57.43 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003475/6.63, allocations: 1.774 MB / 1.837 GB, free: 56.89 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001963/6.632, allocations: 95.67 kB / 1.838 GB, free: 56.88 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002115/6.633, allocations: 72.55 kB / 1.838 GB, free: 56.88 MB / 442.8 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: volume.m:DUMMY_STATE(min = 0.0 unit = "kg" ) "Mass of fluid" type: Real volume.mb_flow:VARIABLE(unit = "kg/s" ) "Mass flows across boundaries" type: Real 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 {10 27} Notification: Performance of prepare postOptimizeDAE: time 0.0004316/6.633, allocations: 149.2 kB / 1.838 GB, free: 56.77 MB / 442.8 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002479/6.635, allocations: 1.055 MB / 1.839 GB, free: 56.68 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003636/6.636, allocations: 85.2 kB / 1.839 GB, free: 56.64 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003081/6.639, allocations: 1.215 MB / 1.84 GB, free: 56.55 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.241e-05/6.639, allocations: 6.453 kB / 1.84 GB, free: 56.55 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.107e-05/6.639, allocations: 7.438 kB / 1.84 GB, free: 56.55 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.092e-05/6.639, allocations: 3.469 kB / 1.84 GB, free: 56.55 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005623/6.645, allocations: 2.353 MB / 1.842 GB, free: 56.22 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.995e-06/6.645, allocations: 0 / 1.842 GB, free: 56.22 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003435/6.648, allocations: 311.3 kB / 1.843 GB, free: 56.22 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002914/6.649, allocations: 71.64 kB / 1.843 GB, free: 56.21 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001666/6.649, allocations: 23.31 kB / 1.843 GB, free: 56.21 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002564/6.651, allocations: 2.763 MB / 1.845 GB, free: 53.76 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.042e-06/6.651, allocations: 2 kB / 1.845 GB, free: 53.76 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003505/6.655, allocations: 1.653 MB / 1.847 GB, free: 53.53 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009547/6.656, allocations: 290.4 kB / 1.847 GB, free: 53.39 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002893/6.656, allocations: 14.09 kB / 1.847 GB, free: 53.39 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001563/6.658, allocations: 59.64 kB / 1.847 GB, free: 53.39 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002093/6.658, allocations: 55.42 kB / 1.847 GB, free: 53.39 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001598/6.658, allocations: 56.94 kB / 1.848 GB, free: 53.39 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.0007592/6.659, allocations: 453.4 kB / 1.848 GB, free: 53.29 MB / 442.8 MB Notification: Performance of sort global known variables: time 5.81e-07/6.659, allocations: 0 / 1.848 GB, free: 53.29 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.003031/6.662, allocations: 0.5448 MB / 1.848 GB, free: 53.24 MB / 442.8 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.00945/6.672, allocations: 3.842 MB / 1.852 GB, free: 52.25 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.003427/6.675, allocations: 1.328 MB / 1.854 GB, free: 52.22 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 1.111e-05/6.675, allocations: 4.625 kB / 1.854 GB, free: 52.22 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002235/6.677, allocations: 0.761 MB / 1.854 GB, free: 52.12 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003533/6.681, allocations: 385.7 kB / 1.855 GB, free: 52.11 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008784/6.69, allocations: 2.674 MB / 1.857 GB, free: 51.54 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000926/6.691, allocations: 1.195 MB / 1.858 GB, free: 50.83 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00116/6.692, allocations: 425.3 kB / 1.859 GB, free: 50.82 MB / 442.8 MB Notification: Performance of SimCode: time 1.132e-06/6.692, allocations: 0 / 1.859 GB, free: 50.82 MB / 442.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.743/10.44, allocations: 36.64 MB / 1.895 GB, free: 44.34 MB / 442.8 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