Running command: translateModel(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.X.1.|volume.medium.X.2.|volume.medium.X.3.|volume.medium.X.4.|volume.medium.X.5.|volume.medium.X.6.|volume.medium.p",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas") Notification: Performance of loadModel(Modelica): time 2.327/2.327, allocations: 194.9 MB / 211.2 MB, free: 8.148 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.818e-05/2.818e-05, allocations: 0 / 258.8 MB, free: 8.492 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3094/0.3094, allocations: 44.49 MB / 303.3 MB, free: 12.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.5573/0.8668, allocations: 134 MB / 437.3 MB, free: 1.629 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.004185/0.871, allocations: 2.223 MB / 439.6 MB, free: 1.582 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005186/0.8716, allocations: 5.531 kB / 439.6 MB, free: 1.582 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008131/0.8724, allocations: 177.8 kB / 439.7 MB, free: 1.578 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007672/0.8732, allocations: 213.1 kB / 440 MB, free: 1.574 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001637/0.8749, allocations: 397.3 kB / 440.3 MB, free: 1.551 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.001088/0.876, allocations: 435.1 kB / 440.8 MB, free: 1.551 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003356/0.8763, allocations: 172.6 kB / 440.9 MB, free: 1.531 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002322/0.8787, allocations: 0.758 MB / 441.7 MB, free: 1.52 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000529/0.8792, allocations: 239.6 kB / 441.9 MB, free: 1.516 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001553/0.8808, allocations: 408 kB / 442.3 MB, free: 1.512 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000283/0.8811, allocations: 27.81 kB / 442.4 MB, free: 1.512 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004441/0.8816, allocations: 361.3 kB / 442.7 MB, free: 1.512 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004483/0.8821, allocations: 105.4 kB / 442.8 MB, free: 1.512 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00226/0.8843, allocations: 1.212 MB / 444 MB, free: 1.445 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.922e-06/0.8844, allocations: 4 kB / 444 MB, free: 1.441 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.637e-06/0.8844, allocations: 0 / 444 MB, free: 1.441 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.191e-05/0.8845, allocations: 0 / 444 MB, free: 1.441 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: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.00253/0.887, allocations: 0.8568 MB / 444.9 MB, free: 16.89 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.668e-05/0.8871, allocations: 8.312 kB / 444.9 MB, free: 16.89 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001438/0.8885, allocations: 173.4 kB / 445.1 MB, free: 16.86 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001374/0.89, allocations: 470.6 kB / 445.5 MB, free: 16.62 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.97e-05/0.89, allocations: 51.12 kB / 445.6 MB, free: 16.62 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002105/0.8903, allocations: 76.88 kB / 445.6 MB, free: 16.61 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002594/0.8929, allocations: 0.9373 MB / 446.6 MB, free: 16.55 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.359e-05/0.893, allocations: 0 / 446.6 MB, free: 16.55 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001694/0.8931, allocations: 29.88 kB / 446.6 MB, free: 16.55 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.571e-05/0.8932, allocations: 42.09 kB / 446.7 MB, free: 16.55 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002207/0.8954, allocations: 0.869 MB / 447.5 MB, free: 16.54 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.009429/0.9049, allocations: 3.387 MB / 450.9 MB, free: 14.97 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00137/0.9064, allocations: 0.6308 MB / 451.5 MB, free: 14.94 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.587e-05/0.9065, allocations: 15.34 kB / 451.6 MB, free: 14.94 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.815e-05/0.9066, allocations: 46.16 kB / 451.6 MB, free: 14.9 MB / 378.7 MB Notification: Performance of pre-optimization done (n=59): time 3.576e-06/0.9066, allocations: 0 / 451.6 MB, free: 14.9 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.Xi[6] 2: volume.medium.Xi[5] 3: volume.medium.Xi[4] 4: volume.medium.Xi[3] 5: volume.medium.Xi[2] 6: volume.medium.Xi[1] 7: volume.medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=71): time 0.02632/0.9329, allocations: 6.153 MB / 457.8 MB, free: 12.66 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.822e-05/0.933, allocations: 57.47 kB / 457.8 MB, free: 12.6 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009479/0.934, allocations: 0.504 MB / 458.3 MB, free: 12.49 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002534/0.9343, allocations: 46.17 kB / 458.4 MB, free: 12.46 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002267/0.9345, allocations: 311 kB / 458.7 MB, free: 12.24 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000282/0.9348, allocations: 258.5 kB / 458.9 MB, free: 12.08 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.423e-05/0.9349, allocations: 15.16 kB / 458.9 MB, free: 12.08 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000169/0.9351, allocations: 338.2 kB / 459.3 MB, free: 11.77 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001084/0.9362, allocations: 437 kB / 459.7 MB, free: 11.77 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001141/0.9373, allocations: 0.5158 MB / 460.2 MB, free: 11.71 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001227/0.9386, allocations: 0.4952 MB / 460.7 MB, free: 11.7 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.988e-06/0.9386, allocations: 3.312 kB / 460.7 MB, free: 11.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.003363/0.942, allocations: 1.315 MB / 462 MB, free: 11.56 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.114e-05/0.9421, allocations: 6.156 kB / 462 MB, free: 11.56 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.229e-05/0.9421, allocations: 0 / 462 MB, free: 11.56 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009659/0.9431, allocations: 332.4 kB / 462.3 MB, free: 11.49 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001895/0.945, allocations: 183.7 kB / 462.5 MB, free: 11.49 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01224/0.9573, allocations: 10.29 MB / 472.8 MB, free: 1.992 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001345/0.9587, allocations: 87.09 kB / 472.9 MB, free: 1.957 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000136/0.9589, allocations: 39.38 kB / 472.9 MB, free: 1.957 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * Single equations (assignments): 72 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 8 {1 1,1 1,1 1,1 1,1 1,1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0006801/0.9596, allocations: 279.1 kB / 473.2 MB, free: 1.816 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002618/0.9598, allocations: 65.14 kB / 473.3 MB, free: 1.785 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003418/0.9633, allocations: 1.283 MB / 474.6 MB, free: 1.473 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.816e-05/0.9633, allocations: 9.078 kB / 474.6 MB, free: 1.469 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.794e-06/0.9634, allocations: 2.875 kB / 474.6 MB, free: 1.469 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002943/0.9663, allocations: 1.604 MB / 476.2 MB, free: 0.5117 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005906/0.9723, allocations: 2.274 MB / 478.4 MB, free: 15.75 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.287e-06/0.9723, allocations: 96 / 478.4 MB, free: 15.75 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00224/0.9746, allocations: 226.1 kB / 478.7 MB, free: 15.7 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003356/0.975, allocations: 67.5 kB / 478.7 MB, free: 15.67 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001791/0.9752, allocations: 36.56 kB / 478.8 MB, free: 15.66 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001875/0.9771, allocations: 1.446 MB / 480.2 MB, free: 14.35 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.9771, allocations: 4.062 kB / 480.2 MB, free: 14.35 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004012/0.9811, allocations: 1.633 MB / 481.9 MB, free: 13.91 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004101/0.9816, allocations: 152.9 kB / 482 MB, free: 13.78 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002718/0.9819, allocations: 25.11 kB / 482 MB, free: 13.77 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001511/0.9834, allocations: 75.97 kB / 482.1 MB, free: 13.75 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001756/0.9836, allocations: 61.56 kB / 482.2 MB, free: 13.72 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001854/0.9838, allocations: 55.98 kB / 482.2 MB, free: 13.71 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0007505/0.9846, allocations: 402.3 kB / 482.6 MB, free: 13.57 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.91e-07/0.9846, allocations: 6.906 kB / 482.6 MB, free: 13.57 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001785/0.9864, allocations: 337.3 kB / 482.9 MB, free: 13.55 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (77): * Single equations (assignments): 76 * 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.002368/0.9888, allocations: 433.8 kB / 483.4 MB, free: 13.34 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004089/0.9929, allocations: 1.867 MB / 485.2 MB, free: 12.39 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.285e-05/0.993, allocations: 3.859 kB / 485.2 MB, free: 12.39 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001618/0.9946, allocations: 0.6834 MB / 485.9 MB, free: 12.2 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004488/0.9991, allocations: 488.2 kB / 486.4 MB, free: 12.03 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007162/1.006, allocations: 2.581 MB / 489 MB, free: 10.57 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008559/1.007, allocations: 0.9915 MB / 490 MB, free: 9.762 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007041/1.008, allocations: 93.44 kB / 490.1 MB, free: 9.684 MB / 394.7 MB Notification: Performance of SimCode: time 1.643e-06/1.008, allocations: 0 / 490.1 MB, free: 9.684 MB / 394.7 MB Notification: Performance of Templates: time 0.05633/1.064, allocations: 25.86 MB / 0.5038 GB, free: 15.9 MB / 426.7 MB