Running command: translateModel(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition") Notification: Performance of loadModel(Modelica): time 2.244/2.244, allocations: 194.9 MB / 211.2 MB, free: 8.348 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.641e-05/2.625e-05, allocations: 0 / 258.8 MB, free: 8.691 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3047/0.3048, allocations: 44.51 MB / 303.3 MB, free: 12.76 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition): time 0.5419/0.8467, allocations: 134.2 MB / 437.5 MB, free: 1.562 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.005739/0.8525, allocations: 2.224 MB / 439.7 MB, free: 1.52 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005958/0.8532, allocations: 5.25 kB / 439.7 MB, free: 1.52 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007983/0.854, allocations: 161.5 kB / 439.9 MB, free: 1.516 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009864/0.8551, allocations: 211.8 kB / 440.1 MB, free: 1.512 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001814/0.8569, allocations: 393 kB / 440.5 MB, free: 1.488 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.001237/0.8582, allocations: 444.3 kB / 440.9 MB, free: 1.48 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002151/0.8584, allocations: 45.11 kB / 440.9 MB, free: 1.477 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00257/0.861, allocations: 0.7464 MB / 441.7 MB, free: 1.469 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006286/0.8617, allocations: 208.2 kB / 441.9 MB, free: 1.465 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001676/0.8634, allocations: 401.4 kB / 442.3 MB, free: 1.461 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002912/0.8638, allocations: 26.08 kB / 442.3 MB, free: 1.461 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000289/0.8641, allocations: 189 kB / 442.5 MB, free: 1.461 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003442/0.8644, allocations: 68.84 kB / 442.6 MB, free: 1.461 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00149/0.8659, allocations: 0.8333 MB / 443.4 MB, free: 1.418 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.8659, allocations: 0 / 443.4 MB, free: 1.418 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.767e-06/0.866, allocations: 0 / 443.4 MB, free: 1.418 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.197e-05/0.866, allocations: 3.938 kB / 443.4 MB, free: 1.414 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.001497/0.8675, allocations: 0.6552 MB / 444 MB, free: 16.94 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/0.8676, allocations: 7.969 kB / 444.1 MB, free: 16.94 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001051/0.8686, allocations: 145.9 kB / 444.2 MB, free: 16.91 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007055/0.8693, allocations: 370.9 kB / 444.6 MB, free: 16.68 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.735e-05/0.8694, allocations: 28.25 kB / 444.6 MB, free: 16.68 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.903e-05/0.8695, allocations: 37.25 kB / 444.6 MB, free: 16.68 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001305/0.8708, allocations: 0.5586 MB / 445.2 MB, free: 16.59 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.807e-05/0.8708, allocations: 3.094 kB / 445.2 MB, free: 16.59 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001019/0.871, allocations: 23.09 kB / 445.2 MB, free: 16.59 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.401e-05/0.871, allocations: 8.312 kB / 445.2 MB, free: 16.59 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009315/0.8719, allocations: 443.6 kB / 445.6 MB, free: 16.59 MB / 378.7 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.004753/0.8767, allocations: 2.049 MB / 447.7 MB, free: 15.43 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003417/0.8771, allocations: 150.6 kB / 447.8 MB, free: 15.4 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.751e-05/0.8771, allocations: 2.781 kB / 447.8 MB, free: 15.4 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.175e-05/0.8772, allocations: 36.12 kB / 447.9 MB, free: 15.36 MB / 378.7 MB Notification: Performance of pre-optimization done (n=18): time 3.947e-06/0.8772, allocations: 0 / 447.9 MB, free: 15.36 MB / 378.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: volume.medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=23): time 0.01011/0.8873, allocations: 1.684 MB / 449.6 MB, free: 14.48 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.38e-05/0.8874, allocations: 54.69 kB / 449.6 MB, free: 14.42 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006896/0.8881, allocations: 431.6 kB / 450 MB, free: 14.3 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.301e-05/0.8882, allocations: 36.2 kB / 450.1 MB, free: 14.26 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002351/0.8884, allocations: 369.5 kB / 450.4 MB, free: 13.99 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.613e-05/0.8885, allocations: 88.23 kB / 450.5 MB, free: 13.94 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.447e-05/0.8885, allocations: 13.41 kB / 450.5 MB, free: 13.94 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001606/0.8887, allocations: 339.8 kB / 450.9 MB, free: 13.62 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003165/0.889, allocations: 133.2 kB / 451 MB, free: 13.62 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000476/0.8895, allocations: 431.8 kB / 451.4 MB, free: 13.24 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00047/0.89, allocations: 227.1 kB / 451.6 MB, free: 13.22 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.562e-06/0.89, allocations: 3.281 kB / 451.6 MB, free: 13.22 MB / 378.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001335/0.8914, allocations: 0.6143 MB / 452.3 MB, free: 13.14 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.619e-05/0.8914, allocations: 10.78 kB / 452.3 MB, free: 13.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.736e-05/0.8914, allocations: 8.031 kB / 452.3 MB, free: 13.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002505/0.8917, allocations: 62.11 kB / 452.3 MB, free: 13.13 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008467/0.8926, allocations: 141.8 kB / 452.5 MB, free: 13.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001792/0.8944, allocations: 1.859 MB / 454.3 MB, free: 11.34 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006719/0.8951, allocations: 28.97 kB / 454.4 MB, free: 11.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.665e-05/0.8951, allocations: 37.16 kB / 454.4 MB, free: 11.34 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 71 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0003411/0.8955, allocations: 216.8 kB / 454.6 MB, free: 11.21 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001088/0.8956, allocations: 49.3 kB / 454.7 MB, free: 11.19 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007382/0.8964, allocations: 288.6 kB / 454.9 MB, free: 11.12 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.8964, allocations: 2.844 kB / 454.9 MB, free: 11.12 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.8964, allocations: 0 / 454.9 MB, free: 11.12 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006619/0.8971, allocations: 0.5289 MB / 455.5 MB, free: 10.67 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001291/0.8984, allocations: 0.6965 MB / 456.2 MB, free: 10.35 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.888e-06/0.8984, allocations: 0 / 456.2 MB, free: 10.35 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004799/0.8989, allocations: 60.64 kB / 456.2 MB, free: 10.35 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001046/0.899, allocations: 16.81 kB / 456.2 MB, free: 10.34 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.457e-05/0.8991, allocations: 9.219 kB / 456.3 MB, free: 10.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0012/0.9003, allocations: 1.292 MB / 457.5 MB, free: 9.078 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.9003, allocations: 0 / 457.5 MB, free: 9.078 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008295/0.9011, allocations: 425.2 kB / 458 MB, free: 8.914 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001821/0.9013, allocations: 113.8 kB / 458.1 MB, free: 8.801 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001235/0.9015, allocations: 9.578 kB / 458.1 MB, free: 8.797 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000494/0.902, allocations: 21.56 kB / 458.1 MB, free: 8.793 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.525e-05/0.902, allocations: 18.22 kB / 458.1 MB, free: 8.793 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.238e-05/0.9021, allocations: 14.17 kB / 458.1 MB, free: 8.793 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005267/0.9026, allocations: 320.5 kB / 458.4 MB, free: 8.711 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.2e-07/0.9026, allocations: 0 / 458.4 MB, free: 8.711 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001173/0.9038, allocations: 211.6 kB / 458.7 MB, free: 8.695 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (23): * Single equations (assignments): 22 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001967/0.9058, allocations: 400.9 kB / 459 MB, free: 8.535 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001155/0.907, allocations: 464.5 kB / 459.5 MB, free: 8.414 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.48e-06/0.907, allocations: 1.844 kB / 459.5 MB, free: 8.414 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004011/0.9074, allocations: 213.9 kB / 459.7 MB, free: 8.297 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00186/0.9093, allocations: 209.7 kB / 459.9 MB, free: 8.277 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002131/0.9114, allocations: 1.063 MB / 461 MB, free: 7.711 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005106/0.912, allocations: 0.8348 MB / 461.8 MB, free: 7 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002229/0.9122, allocations: 46.69 kB / 461.9 MB, free: 6.992 MB / 378.7 MB Notification: Performance of SimCode: time 1.142e-06/0.9122, allocations: 0 / 461.9 MB, free: 6.992 MB / 378.7 MB Notification: Performance of Templates: time 0.02448/0.9367, allocations: 12.07 MB / 473.9 MB, free: 2.074 MB / 378.7 MB