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.1_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas") Notification: Performance of loadModel(ModelicaTest): time 1.949/1.949, allocations: 209.3 MB / 224.4 MB, free: 0.5117 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.508e-05/3.511e-05, allocations: 7.984 kB / 276.2 MB, free: 15.85 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3555/0.3555, allocations: 48.7 MB / 324.9 MB, free: 2.895 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.2506/0.6062, allocations: 138.8 MB / 463.6 MB, free: 4.477 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.01702/0.6233, allocations: 8.294 MB / 471.9 MB, free: 12.16 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001081/0.6244, allocations: 31.75 kB / 472 MB, free: 12.13 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001268/0.6257, allocations: 306.4 kB / 472.3 MB, free: 11.83 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005233/0.631, allocations: 1.3 MB / 473.6 MB, free: 10.53 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00461/0.6356, allocations: 1.138 MB / 474.7 MB, free: 9.387 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.002457/0.6381, allocations: 1.021 MB / 475.7 MB, free: 8.363 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001441/0.6396, allocations: 0.5767 MB / 476.3 MB, free: 7.789 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003921/0.6435, allocations: 1.232 MB / 477.5 MB, free: 6.555 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004368/0.6479, allocations: 1.392 MB / 478.9 MB, free: 5.16 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004148/0.6521, allocations: 1.116 MB / 480 MB, free: 4.043 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007373/0.6529, allocations: 84 kB / 480.1 MB, free: 3.961 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009091/0.6538, allocations: 0.5847 MB / 480.7 MB, free: 3.375 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006244/0.6545, allocations: 156 kB / 480.8 MB, free: 3.223 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004221/0.6587, allocations: 1.982 MB / 482.8 MB, free: 1.242 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.379e-06/0.6588, allocations: 0 / 482.8 MB, free: 1.242 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.836e-06/0.6588, allocations: 0 / 482.8 MB, free: 1.242 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.933e-05/0.6588, allocations: 0 / 482.8 MB, free: 1.242 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.2664/0.9253, allocations: 1.333 MB / 484.2 MB, free: 142 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.053e-05/0.9253, allocations: 9.594 kB / 484.2 MB, free: 142 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002904/0.9283, allocations: 336.5 kB / 484.5 MB, free: 142 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002294/0.9306, allocations: 0.729 MB / 485.2 MB, free: 141.6 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002049/0.9309, allocations: 139.9 kB / 485.4 MB, free: 141.5 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004236/0.9313, allocations: 111.7 kB / 485.5 MB, free: 141.5 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005248/0.9366, allocations: 1.827 MB / 487.3 MB, free: 140.7 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.867e-05/0.9367, allocations: 8.547 kB / 487.3 MB, free: 140.7 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002596/0.9369, allocations: 47.72 kB / 487.4 MB, free: 140.7 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001911/0.9371, allocations: 92.61 kB / 487.4 MB, free: 140.7 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005228/0.9424, allocations: 1.701 MB / 489.1 MB, free: 140.1 MB / 410.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.01465/0.9571, allocations: 6 MB / 495.2 MB, free: 136.4 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00206/0.9592, allocations: 0.6593 MB / 495.8 MB, free: 136.1 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001488/0.9594, allocations: 20.8 kB / 495.8 MB, free: 136.1 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.479e-05/0.9594, allocations: 45.81 kB / 495.9 MB, free: 136.1 MB / 410.7 MB Notification: Performance of pre-optimization done (n=53): time 2.916e-06/0.9595, allocations: 0 / 495.9 MB, free: 136.1 MB / 410.7 MB Notification: Performance of matching and sorting (n=65): time 0.01863/0.9781, allocations: 3.928 MB / 499.8 MB, free: 134.4 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.399e-05/0.9782, allocations: 110.1 kB / 499.9 MB, free: 134.3 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001806/0.98, allocations: 0.8575 MB / 0.489 GB, free: 133.8 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002746/0.9803, allocations: 42.95 kB / 0.4891 GB, free: 133.8 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003987/0.9807, allocations: 0.5694 MB / 0.4896 GB, free: 133.3 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003116/0.9811, allocations: 244.8 kB / 0.4899 GB, free: 133.1 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001148/0.9812, allocations: 27.19 kB / 0.4899 GB, free: 133 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001007/0.9813, allocations: 351.5 kB / 0.4902 GB, free: 132.7 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001441/0.9828, allocations: 0.5517 MB / 0.4908 GB, free: 132.4 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001689/0.9845, allocations: 0.9326 MB / 0.4917 GB, free: 131.6 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001741/0.9863, allocations: 0.6824 MB / 0.4923 GB, free: 131.3 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.379e-05/0.9863, allocations: 6.906 kB / 0.4923 GB, free: 131.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.005065/0.9914, allocations: 1.888 MB / 0.4942 GB, free: 130.3 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.686e-05/0.9915, allocations: 10.56 kB / 0.4942 GB, free: 130.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.005e-05/0.9915, allocations: 14.94 kB / 0.4942 GB, free: 130.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008115/0.9996, allocations: 1.312 MB / 0.4955 GB, free: 129.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001249/1.001, allocations: 172.6 kB / 0.4957 GB, free: 129.8 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004119/1.005, allocations: 1.727 MB / 0.4973 GB, free: 128.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002115/1.007, allocations: 113.8 kB / 0.4975 GB, free: 128.6 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002309/1.008, allocations: 75.27 kB / 0.4975 GB, free: 128.6 MB / 410.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.0009648/1.008, allocations: 404.4 kB / 0.4979 GB, free: 128.3 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003335/1.009, allocations: 102.2 kB / 0.498 GB, free: 128.3 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003512/1.012, allocations: 1.328 MB / 0.4993 GB, free: 127.5 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.462e-05/1.012, allocations: 7.906 kB / 0.4993 GB, free: 127.5 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.536e-06/1.012, allocations: 1.656 kB / 0.4993 GB, free: 127.5 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.389e-05/1.012, allocations: 3.984 kB / 0.4993 GB, free: 127.5 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006347/1.019, allocations: 2.618 MB / 0.5019 GB, free: 125.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.618e-06/1.019, allocations: 4 kB / 0.5019 GB, free: 125.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003324/1.022, allocations: 315.7 kB / 0.5022 GB, free: 125.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002865/1.023, allocations: 68.69 kB / 0.5022 GB, free: 125.1 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001449/1.023, allocations: 35.98 kB / 0.5023 GB, free: 125.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002627/1.025, allocations: 2.855 MB / 0.5051 GB, free: 121.9 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.137e-06/1.025, allocations: 4.031 kB / 0.5051 GB, free: 121.9 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004215/1.03, allocations: 1.832 MB / 0.5069 GB, free: 120.1 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001028/1.031, allocations: 307.8 kB / 0.5072 GB, free: 119.8 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000465/1.031, allocations: 31.98 kB / 0.5072 GB, free: 119.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00176/1.033, allocations: 67.94 kB / 0.5073 GB, free: 119.7 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001928/1.033, allocations: 60.53 kB / 0.5073 GB, free: 119.6 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001787/1.033, allocations: 59.95 kB / 0.5074 GB, free: 119.5 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001169/1.035, allocations: 0.6629 MB / 0.508 GB, free: 118.9 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.11e-07/1.035, allocations: 0 / 0.508 GB, free: 118.9 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002318/1.037, allocations: 0.4948 MB / 0.5085 GB, free: 118.4 MB / 410.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.003416/1.04, allocations: 0.6632 MB / 0.5091 GB, free: 117.8 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004402/1.045, allocations: 1.43 MB / 0.5105 GB, free: 116.4 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.078e-05/1.045, allocations: 8.75 kB / 0.5105 GB, free: 116.4 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002422/1.047, allocations: 0.8069 MB / 0.5113 GB, free: 115.6 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004824/1.052, allocations: 0.5841 MB / 0.5119 GB, free: 115 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008064/1.06, allocations: 3.422 MB / 0.5152 GB, free: 111.5 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000872/1.061, allocations: 1.205 MB / 0.5164 GB, free: 110.3 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007368/1.062, allocations: 111.4 kB / 0.5165 GB, free: 110.2 MB / 410.7 MB Notification: Performance of SimCode: time 1.002e-06/1.062, allocations: 0 / 0.5165 GB, free: 110.2 MB / 410.7 MB Notification: Performance of Templates: time 0.05404/1.116, allocations: 30 MB / 0.5458 GB, free: 80.18 MB / 410.7 MB