Running command: translateModel(ModelicaTest.Media.TestsWithFluid.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="ModelicaTest_3.2.2_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas") Notification: Performance of loadModel(ModelicaTest): time 2.324/2.324, allocations: 234.9 MB / 250.1 MB, free: 10.99 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.796e-05/3.777e-05, allocations: 7.984 kB / 308 MB, free: 0.9531 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4338/0.4339, allocations: 54.86 MB / 362.9 MB, free: 11.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.5908/1.025, allocations: 138.9 MB / 0.49 GB, free: 1.379 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.01445/1.039, allocations: 7.977 MB / 0.4978 GB, free: 1.234 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001239/1.041, allocations: 26.72 kB / 0.4978 GB, free: 1.234 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001354/1.042, allocations: 327.4 kB / 0.4981 GB, free: 1.227 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005554/1.048, allocations: 1.315 MB / 0.4994 GB, free: 1.184 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004398/1.052, allocations: 1.147 MB / 0.5005 GB, free: 1.141 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.002472/1.054, allocations: 1.018 MB / 0.5015 GB, free: 1.129 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001367/1.056, allocations: 0.5777 MB / 0.5021 GB, free: 1.102 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003791/1.06, allocations: 1.239 MB / 0.5033 GB, free: 1.086 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004151/1.064, allocations: 1.396 MB / 0.5046 GB, free: 1.059 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004604/1.069, allocations: 1.2 MB / 0.5058 GB, free: 1.047 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009394/1.07, allocations: 86.19 kB / 0.5059 GB, free: 1.047 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009039/1.07, allocations: 0.5889 MB / 0.5065 GB, free: 1.047 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007163/1.071, allocations: 158.5 kB / 0.5066 GB, free: 1.047 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004218/1.075, allocations: 1.974 MB / 0.5085 GB, free: 0.9258 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/1.076, allocations: 0 / 0.5085 GB, free: 0.9258 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.855e-06/1.076, allocations: 0 / 0.5085 GB, free: 0.9258 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.087e-05/1.076, allocations: 0 / 0.5085 GB, free: 0.9258 MB / 410.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.006225/1.082, allocations: 1.334 MB / 0.5098 GB, free: 16.2 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.623e-05/1.082, allocations: 11.16 kB / 0.5098 GB, free: 16.2 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00285/1.085, allocations: 336.9 kB / 0.5102 GB, free: 16.13 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002327/1.087, allocations: 0.7368 MB / 0.5109 GB, free: 15.86 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001954/1.087, allocations: 141.7 kB / 0.511 GB, free: 15.79 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003368/1.088, allocations: 110.4 kB / 0.5111 GB, free: 15.78 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004713/1.092, allocations: 1.826 MB / 0.5129 GB, free: 15.27 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.3e-05/1.093, allocations: 3.312 kB / 0.5129 GB, free: 15.27 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002696/1.093, allocations: 48.44 kB / 0.513 GB, free: 15.26 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001654/1.093, allocations: 91.33 kB / 0.513 GB, free: 15.25 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004993/1.098, allocations: 1.703 MB / 0.5147 GB, free: 14.96 MB / 426.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.01593/1.114, allocations: 6.764 MB / 0.5213 GB, free: 10.5 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00194/1.116, allocations: 0.6652 MB / 0.522 GB, free: 10.38 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002791/1.116, allocations: 131.2 kB / 0.5221 GB, free: 10.27 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.2e-05/1.116, allocations: 46.22 kB / 0.5221 GB, free: 10.23 MB / 426.7 MB Notification: Performance of pre-optimization done (n=53): time 3.145e-06/1.116, allocations: 0 / 0.5221 GB, free: 10.23 MB / 426.7 MB Notification: Performance of matching and sorting (n=65): time 0.01854/1.135, allocations: 3.918 MB / 0.526 GB, free: 8.934 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.397e-05/1.135, allocations: 109.6 kB / 0.5261 GB, free: 8.809 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001732/1.137, allocations: 0.8627 MB / 0.5269 GB, free: 8.539 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002637/1.137, allocations: 38.52 kB / 0.5269 GB, free: 8.508 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005947/1.138, allocations: 0.5766 MB / 0.5275 GB, free: 8.117 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004097/1.138, allocations: 241.2 kB / 0.5277 GB, free: 7.945 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001181/1.138, allocations: 27.12 kB / 0.5278 GB, free: 7.941 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001851/1.139, allocations: 356.5 kB / 0.5281 GB, free: 7.613 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001414/1.14, allocations: 0.5474 MB / 0.5286 GB, free: 7.52 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001906/1.142, allocations: 0.9368 MB / 0.5296 GB, free: 6.953 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001893/1.144, allocations: 0.6809 MB / 0.5302 GB, free: 6.852 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.79e-05/1.144, allocations: 2.938 kB / 0.5302 GB, free: 6.852 MB / 426.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.005064/1.149, allocations: 1.885 MB / 0.5321 GB, free: 6.535 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.006e-05/1.149, allocations: 17.77 kB / 0.5321 GB, free: 6.531 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.446e-05/1.149, allocations: 11.19 kB / 0.5321 GB, free: 6.531 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008144/1.157, allocations: 1.309 MB / 0.5334 GB, free: 6.164 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001352/1.159, allocations: 169.8 kB / 0.5335 GB, free: 6.145 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004314/1.163, allocations: 1.726 MB / 0.5352 GB, free: 5.102 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00196/1.165, allocations: 120 kB / 0.5353 GB, free: 5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002664/1.165, allocations: 75.92 kB / 0.5354 GB, free: 4.938 MB / 426.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.001157/1.167, allocations: 413 kB / 0.5358 GB, free: 4.637 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003857/1.167, allocations: 94.88 kB / 0.5359 GB, free: 4.543 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00398/1.171, allocations: 1.321 MB / 0.5372 GB, free: 3.648 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.63e-05/1.171, allocations: 12 kB / 0.5372 GB, free: 3.637 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/1.171, allocations: 0 / 0.5372 GB, free: 3.637 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.522e-05/1.171, allocations: 3.984 kB / 0.5372 GB, free: 3.633 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007464/1.178, allocations: 2.725 MB / 0.5399 GB, free: 1.625 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-05/1.179, allocations: 7.922 kB / 0.5399 GB, free: 1.617 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003581/1.182, allocations: 306.8 kB / 0.5402 GB, free: 1.328 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003449/1.183, allocations: 75.16 kB / 0.5402 GB, free: 1.27 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002121/1.183, allocations: 36.97 kB / 0.5403 GB, free: 1.246 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003534/1.186, allocations: 2.856 MB / 0.543 GB, free: 14.33 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/1.186, allocations: 0 / 0.543 GB, free: 14.33 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004891/1.191, allocations: 1.829 MB / 0.5448 GB, free: 13.02 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001115/1.192, allocations: 309.4 kB / 0.5451 GB, free: 12.76 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004239/1.193, allocations: 31.23 kB / 0.5452 GB, free: 12.74 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001774/1.195, allocations: 73.72 kB / 0.5452 GB, free: 12.68 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002377/1.195, allocations: 59.69 kB / 0.5453 GB, free: 12.63 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002052/1.195, allocations: 55.08 kB / 0.5453 GB, free: 12.58 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001467/1.197, allocations: 0.6655 MB / 0.546 GB, free: 12.09 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.01e-07/1.197, allocations: 4 kB / 0.546 GB, free: 12.09 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002687/1.199, allocations: 0.4948 MB / 0.5465 GB, free: 11.63 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (72): * Single equations (assignments): 70 * 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.003613/1.203, allocations: 0.6543 MB / 0.5471 GB, free: 11.03 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004532/1.208, allocations: 1.437 MB / 0.5485 GB, free: 10.01 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.505e-05/1.208, allocations: 7 kB / 0.5485 GB, free: 10 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002757/1.21, allocations: 0.8047 MB / 0.5493 GB, free: 9.398 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005172/1.216, allocations: 0.5856 MB / 0.5499 GB, free: 8.906 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009607/1.225, allocations: 3.429 MB / 0.5532 GB, free: 5.773 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001314/1.227, allocations: 1.195 MB / 0.5544 GB, free: 4.605 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007969/1.228, allocations: 110.7 kB / 0.5545 GB, free: 4.5 MB / 442.7 MB Notification: Performance of SimCode: time 2.515e-06/1.228, allocations: 0 / 0.5545 GB, free: 4.5 MB / 442.7 MB Notification: Performance of Templates: time 0.0672/1.295, allocations: 30.01 MB / 0.5838 GB, free: 6.652 MB / 474.7 MB