Running command: translateModel(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|suddenExpansion1.dp|suddenExpansion1.m_flow|suddenExpansion1.port_b_T|suddenExpansion2.dp|suddenExpansion2.m_flow|suddenExpansion2.port_b_T",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") Notification: Performance of loadModel(Modelica): time 1.704/1.704, allocations: 171.1 MB / 186.3 MB, free: 1.414 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.111e-05/3.083e-05, allocations: 4 kB / 228.1 MB, free: 7.992 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08046/0.08051, allocations: 38.76 MB / 266.9 MB, free: 1.145 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.3049/0.3854, allocations: 50.88 MB / 317.8 MB, free: 4.375 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0338/0.4193, allocations: 17.96 MB / 335.7 MB, free: 10.55 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002038/0.4214, allocations: 40.12 kB / 335.8 MB, free: 10.54 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002493/0.4239, allocations: 0.5226 MB / 336.3 MB, free: 10.05 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01804/0.442, allocations: 4.292 MB / 340.6 MB, free: 6.328 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009868/0.4519, allocations: 2.365 MB / 343 MB, free: 4.371 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0302/0.4822, allocations: 12.21 MB / 355.2 MB, free: 10.03 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001233/0.4835, allocations: 479.5 kB / 355.6 MB, free: 9.555 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002484/0.486, allocations: 0.8259 MB / 356.5 MB, free: 8.727 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001522/0.4875, allocations: 0.5997 MB / 357.1 MB, free: 8.125 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02087/0.5084, allocations: 6.833 MB / 363.9 MB, free: 1.285 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003221/0.5117, allocations: 436 kB / 364.3 MB, free: 0.8594 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000667/0.5124, allocations: 223.1 kB / 364.5 MB, free: 0.6406 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007182/0.5131, allocations: 148 kB / 364.7 MB, free: 0.4961 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01064/0.5238, allocations: 3.667 MB / 368.3 MB, free: 12.82 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.5238, allocations: 0 / 368.3 MB, free: 12.82 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.544e-06/0.5239, allocations: 0 / 368.3 MB, free: 12.82 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.079e-05/0.5239, allocations: 0 / 368.3 MB, free: 12.82 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.007979/0.5319, allocations: 1.965 MB / 370.3 MB, free: 10.8 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.943e-05/0.532, allocations: 12.03 kB / 370.3 MB, free: 10.79 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0071/0.5391, allocations: 0.6228 MB / 370.9 MB, free: 10.17 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003244/0.5424, allocations: 0.9843 MB / 371.9 MB, free: 9.141 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001235/0.5426, allocations: 78.02 kB / 372 MB, free: 9.062 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003102/0.5429, allocations: 96 kB / 372.1 MB, free: 8.969 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005792/0.5487, allocations: 1.652 MB / 373.8 MB, free: 7.168 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.356e-05/0.5488, allocations: 7.938 kB / 373.8 MB, free: 7.16 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002418/0.549, allocations: 48 kB / 373.8 MB, free: 7.113 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.519e-05/0.5491, allocations: 31.95 kB / 373.8 MB, free: 7.082 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005625/0.5547, allocations: 1.448 MB / 375.3 MB, free: 5.629 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01359/0.5684, allocations: 8.125 MB / 383.4 MB, free: 12.9 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004769/0.5732, allocations: 1.674 MB / 385.1 MB, free: 11.06 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.5341/1.107, allocations: 81.35 MB / 466.4 MB, free: 118.3 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.268e-05/1.107, allocations: 51.39 kB / 466.5 MB, free: 118.3 MB / 362.7 MB Notification: Performance of pre-optimization done (n=77): time 3.687e-06/1.107, allocations: 0 / 466.5 MB, free: 118.3 MB / 362.7 MB Notification: Performance of matching and sorting (n=77): time 0.008171/1.116, allocations: 1.932 MB / 468.4 MB, free: 117 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.713e-05/1.116, allocations: 190.2 kB / 468.6 MB, free: 116.8 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001221/1.117, allocations: 0.7152 MB / 469.3 MB, free: 116.1 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001275/1.117, allocations: 37.7 kB / 469.4 MB, free: 116 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003983/1.118, allocations: 0.6163 MB / 470 MB, free: 115.4 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002696/1.118, allocations: 282.8 kB / 470.3 MB, free: 115.2 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.999e-05/1.118, allocations: 28 kB / 470.3 MB, free: 115.1 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001026/1.118, allocations: 358.8 kB / 470.6 MB, free: 114.8 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007894/1.119, allocations: 294.5 kB / 470.9 MB, free: 114.5 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001018/1.12, allocations: 0.8112 MB / 471.7 MB, free: 113.4 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00106/1.121, allocations: 422.2 kB / 472.1 MB, free: 113 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-05/1.121, allocations: 4 kB / 472.1 MB, free: 113 MB / 362.7 MB Notification: Performance of matching and sorting (n=153) (initialization): time 0.002993/1.124, allocations: 1.234 MB / 473.4 MB, free: 111.8 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.132e-05/1.124, allocations: 17.62 kB / 473.4 MB, free: 111.8 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.499e-05/1.124, allocations: 16 kB / 473.4 MB, free: 111.8 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005634/1.13, allocations: 0.5331 MB / 473.9 MB, free: 111.2 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002124/1.132, allocations: 303.5 kB / 474.2 MB, free: 110.9 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001269/1.133, allocations: 1.374 MB / 475.6 MB, free: 109.5 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001418/1.135, allocations: 155.7 kB / 475.8 MB, free: 109.4 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001364/1.135, allocations: 75.97 kB / 475.8 MB, free: 109.3 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * Number of states: 0 () * Number of discrete variables: 20 (rightAdaptor.state_b.phase,rightAdaptor.state_a.phase,rightAdaptor.state_a_nondes.phase,rightAdaptor.state_b_des.phase,leftAdaptor.state_b.phase,leftAdaptor.state_a.phase,leftAdaptor.state_a_nondes.phase,leftAdaptor.state_b_des.phase,suddenExpansion2.state_b.phase,suddenExpansion2.state_a.phase,suddenExpansion2.state_a_nondes.phase,suddenExpansion2.state_b_des.phase,rightBoundary2.medium.phase,leftBoundary2.medium.phase,suddenExpansion1.state_b.phase,suddenExpansion1.state_a.phase,suddenExpansion1.state_a_nondes.phase,suddenExpansion1.state_b_des.phase,rightBoundary1.medium.phase,leftBoundary1.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (137): * Single equations (assignments): 135 * 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: 0 * Non-linear torn systems: 1 {3 14} Notification: Performance of prepare postOptimizeDAE: time 0.0006018/1.135, allocations: 307.6 kB / 476.1 MB, free: 109 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002496/1.136, allocations: 112.9 kB / 476.3 MB, free: 108.9 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006618/1.142, allocations: 4.479 MB / 480.7 MB, free: 104.4 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-05/1.142, allocations: 43.94 kB / 480.8 MB, free: 104.3 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.122e-05/1.142, allocations: 0 / 480.8 MB, free: 104.3 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.911e-05/1.142, allocations: 7.969 kB / 480.8 MB, free: 104.3 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006938/1.149, allocations: 4.849 MB / 485.6 MB, free: 99.33 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-05/1.149, allocations: 0.5625 kB / 485.6 MB, free: 99.33 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001464/1.151, allocations: 167.7 kB / 485.8 MB, free: 99.17 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006312/1.157, allocations: 1.596 MB / 487.4 MB, free: 97.57 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001489/1.158, allocations: 23.92 kB / 487.4 MB, free: 97.55 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001531/1.159, allocations: 1.743 MB / 489.2 MB, free: 95.76 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/1.159, allocations: 12.12 kB / 489.2 MB, free: 95.75 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003233/1.162, allocations: 1.989 MB / 491.2 MB, free: 93.7 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005454/1.163, allocations: 329.9 kB / 491.5 MB, free: 93.35 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000285/1.163, allocations: 16 kB / 491.5 MB, free: 93.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009047/1.164, allocations: 59.86 kB / 491.6 MB, free: 93.28 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.865e-05/1.164, allocations: 52.5 kB / 491.6 MB, free: 93.23 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.37e-05/1.164, allocations: 31.98 kB / 491.6 MB, free: 93.2 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001107/1.165, allocations: 0.6202 MB / 492.3 MB, free: 92.57 MB / 362.7 MB Notification: Performance of sort global known variables: time 4e-07/1.165, allocations: 0 / 492.3 MB, free: 92.57 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004322/1.17, allocations: 1.225 MB / 493.5 MB, free: 91.43 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 24 ($cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (81): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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: 0 * Non-linear torn systems: 1 {3 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.006789/1.177, allocations: 1.262 MB / 494.7 MB, free: 90.38 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003842/1.181, allocations: 1.269 MB / 496 MB, free: 89.12 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.013e-06/1.181, allocations: 0 / 496 MB, free: 89.12 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002688/1.183, allocations: 0.9069 MB / 496.9 MB, free: 88.21 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00478/1.188, allocations: 0.5395 MB / 497.5 MB, free: 87.68 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007125/1.195, allocations: 3.944 MB / 0.4897 GB, free: 83.77 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008161/1.196, allocations: 1.347 MB / 0.491 GB, free: 82.39 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000472/1.197, allocations: 119.4 kB / 0.4911 GB, free: 82.28 MB / 362.7 MB Notification: Performance of SimCode: time 1.422e-06/1.197, allocations: 0 / 0.4911 GB, free: 82.28 MB / 362.7 MB Notification: Performance of Templates: time 0.08769/1.284, allocations: 49.51 MB / 0.5394 GB, free: 32.74 MB / 362.7 MB