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_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas") Notification: Performance of loadModel(ModelicaTest): time 2.335/2.335, allocations: 234.9 MB / 249.4 MB, free: 10.02 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.355e-05/3.358e-05, allocations: 4 kB / 308 MB, free: 15.33 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3829/0.383, allocations: 54.86 MB / 362.9 MB, free: 12.29 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.2576/0.6406, allocations: 138.9 MB / 0.49 GB, free: 2.543 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.3945/1.035, allocations: 7.951 MB / 0.4978 GB, free: 2.406 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001216/1.036, allocations: 26.91 kB / 0.4978 GB, free: 2.406 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00139/1.038, allocations: 322.7 kB / 0.4981 GB, free: 2.398 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005798/1.044, allocations: 1.312 MB / 0.4994 GB, free: 2.359 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00518/1.049, allocations: 1.15 MB / 0.5005 GB, free: 2.316 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.002721/1.052, allocations: 1.025 MB / 0.5015 GB, free: 2.301 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001529/1.053, allocations: 0.5853 MB / 0.5021 GB, free: 2.266 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00424/1.058, allocations: 1.242 MB / 0.5033 GB, free: 2.246 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005206/1.063, allocations: 1.394 MB / 0.5047 GB, free: 2.223 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005757/1.069, allocations: 1.189 MB / 0.5058 GB, free: 2.215 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001099/1.07, allocations: 93.19 kB / 0.5059 GB, free: 2.211 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001106/1.071, allocations: 0.5929 MB / 0.5065 GB, free: 2.211 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008918/1.072, allocations: 158.4 kB / 0.5066 GB, free: 2.211 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004305/1.076, allocations: 1.966 MB / 0.5086 GB, free: 2.09 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/1.076, allocations: 2.719 kB / 0.5086 GB, free: 2.09 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.086e-06/1.076, allocations: 0 / 0.5086 GB, free: 2.09 MB / 426.7 MB Notification: Performance of Transformations before backend: time 6.71e-05/1.076, allocations: 3.188 kB / 0.5086 GB, free: 2.09 MB / 426.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.004859/1.081, allocations: 1.339 MB / 0.5099 GB, free: 17.36 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.656e-05/1.081, allocations: 11 kB / 0.5099 GB, free: 17.36 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002838/1.084, allocations: 341.7 kB / 0.5102 GB, free: 17.3 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002361/1.087, allocations: 0.7377 MB / 0.5109 GB, free: 17.01 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001993/1.087, allocations: 141 kB / 0.5111 GB, free: 16.95 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003221/1.087, allocations: 109.8 kB / 0.5112 GB, free: 16.94 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005008/1.092, allocations: 1.82 MB / 0.5129 GB, free: 16.74 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.466e-05/1.092, allocations: 4.625 kB / 0.513 GB, free: 16.74 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002737/1.093, allocations: 45.38 kB / 0.513 GB, free: 16.74 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001618/1.093, allocations: 97.55 kB / 0.5131 GB, free: 16.73 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005215/1.098, allocations: 1.703 MB / 0.5148 GB, free: 16.73 MB / 442.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.01658/1.115, allocations: 6.761 MB / 0.5214 GB, free: 13.2 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002063/1.117, allocations: 0.6593 MB / 0.522 GB, free: 13.17 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002959/1.117, allocations: 135.1 kB / 0.5221 GB, free: 13.07 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.381e-05/1.117, allocations: 44.2 kB / 0.5222 GB, free: 13.03 MB / 442.7 MB Notification: Performance of pre-optimization done (n=53): time 3.377e-06/1.117, allocations: 0 / 0.5222 GB, free: 13.03 MB / 442.7 MB Notification: Performance of matching and sorting (n=65): time 0.01858/1.136, allocations: 3.911 MB / 0.526 GB, free: 12.06 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001037/1.136, allocations: 109 kB / 0.5261 GB, free: 11.93 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001844/1.138, allocations: 0.8682 MB / 0.5269 GB, free: 11.66 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002812/1.138, allocations: 43.23 kB / 0.527 GB, free: 11.62 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006064/1.139, allocations: 0.5602 MB / 0.5275 GB, free: 11.29 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004238/1.139, allocations: 240.4 kB / 0.5278 GB, free: 11.12 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001266/1.139, allocations: 23.38 kB / 0.5278 GB, free: 11.12 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.00021/1.14, allocations: 355.9 kB / 0.5281 GB, free: 10.79 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001577/1.141, allocations: 0.5523 MB / 0.5287 GB, free: 10.7 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00196/1.143, allocations: 0.9212 MB / 0.5296 GB, free: 10.14 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001924/1.145, allocations: 0.6842 MB / 0.5302 GB, free: 10.05 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.287e-05/1.145, allocations: 13.64 kB / 0.5302 GB, free: 10.04 MB / 442.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.005563/1.151, allocations: 1.941 MB / 0.5321 GB, free: 9.691 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.435e-05/1.151, allocations: 12.69 kB / 0.5321 GB, free: 9.688 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.553e-05/1.151, allocations: 11.47 kB / 0.5322 GB, free: 9.688 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008504/1.159, allocations: 1.31 MB / 0.5334 GB, free: 9.324 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001423/1.161, allocations: 169.7 kB / 0.5336 GB, free: 9.305 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004858/1.166, allocations: 1.719 MB / 0.5353 GB, free: 8.578 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002302/1.168, allocations: 113.9 kB / 0.5354 GB, free: 8.543 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000303/1.169, allocations: 83.39 kB / 0.5355 GB, free: 8.531 MB / 442.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.00103/1.17, allocations: 398.8 kB / 0.5358 GB, free: 8.363 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003349/1.17, allocations: 99.28 kB / 0.5359 GB, free: 8.316 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003691/1.174, allocations: 1.324 MB / 0.5372 GB, free: 8.012 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.45e-05/1.174, allocations: 7.969 kB / 0.5372 GB, free: 8.012 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.378e-06/1.174, allocations: 0 / 0.5372 GB, free: 8.012 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.68e-05/1.174, allocations: 15.03 kB / 0.5373 GB, free: 8 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006954/1.181, allocations: 2.716 MB / 0.5399 GB, free: 7.039 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.386e-06/1.181, allocations: 7.25 kB / 0.5399 GB, free: 7.035 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003422/1.184, allocations: 318.9 kB / 0.5402 GB, free: 6.965 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003276/1.185, allocations: 67.41 kB / 0.5403 GB, free: 6.934 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001865/1.185, allocations: 39.08 kB / 0.5403 GB, free: 6.926 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003537/1.188, allocations: 2.846 MB / 0.5431 GB, free: 4.254 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/1.188, allocations: 3.875 kB / 0.5431 GB, free: 4.254 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004743/1.193, allocations: 1.832 MB / 0.5449 GB, free: 3.77 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0012/1.195, allocations: 318 kB / 0.5452 GB, free: 3.586 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005012/1.195, allocations: 26.39 kB / 0.5452 GB, free: 3.582 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001868/1.197, allocations: 71.7 kB / 0.5453 GB, free: 3.555 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000274/1.197, allocations: 55.11 kB / 0.5453 GB, free: 3.535 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002296/1.198, allocations: 59.67 kB / 0.5454 GB, free: 3.523 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00146/1.199, allocations: 0.6646 MB / 0.546 GB, free: 3.328 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.62e-07/1.199, allocations: 0 / 0.546 GB, free: 3.328 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002708/1.202, allocations: 0.4936 MB / 0.5465 GB, free: 3.289 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.003766/1.206, allocations: 0.6716 MB / 0.5472 GB, free: 2.996 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004854/1.21, allocations: 1.441 MB / 0.5486 GB, free: 2.016 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.769e-05/1.211, allocations: 5 kB / 0.5486 GB, free: 2.012 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003201/1.214, allocations: 0.8118 MB / 0.5494 GB, free: 1.402 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005254/1.219, allocations: 0.5871 MB / 0.55 GB, free: 0.9062 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009301/1.228, allocations: 3.347 MB / 0.5532 GB, free: 13.82 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001457/1.23, allocations: 1.193 MB / 0.5544 GB, free: 12.66 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002836/1.233, allocations: 405.1 kB / 0.5548 GB, free: 12.27 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007674/1.234, allocations: 106.7 kB / 0.5549 GB, free: 12.16 MB / 458.7 MB Notification: Performance of SimCode: time 1.203e-06/1.234, allocations: 0 / 0.5549 GB, free: 12.16 MB / 458.7 MB Notification: Performance of Templates: time 0.09103/1.325, allocations: 31.98 MB / 0.5861 GB, free: 12.36 MB / 490.7 MB