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_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") Notification: Performance of loadModel(Modelica): time 1.628/1.628, allocations: 171.2 MB / 185.7 MB, free: 1.391 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.524e-05/3.53e-05, allocations: 4 kB / 228.1 MB, free: 7.328 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0808/0.08087, allocations: 38.77 MB / 266.9 MB, free: 484 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.2978/0.3788, allocations: 50.89 MB / 317.8 MB, free: 5.086 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.03232/0.4111, allocations: 17.97 MB / 335.8 MB, free: 10.34 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00186/0.413, allocations: 42 kB / 335.8 MB, free: 10.32 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002296/0.4154, allocations: 0.5248 MB / 336.3 MB, free: 9.832 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01734/0.4328, allocations: 4.29 MB / 340.6 MB, free: 6.109 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009466/0.4423, allocations: 2.364 MB / 343 MB, free: 4.156 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0303/0.4726, allocations: 12.22 MB / 355.2 MB, free: 9.551 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001257/0.4739, allocations: 483.5 kB / 355.7 MB, free: 9.074 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002635/0.4766, allocations: 0.8181 MB / 356.5 MB, free: 8.254 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001633/0.4783, allocations: 0.5997 MB / 357.1 MB, free: 7.652 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02089/0.4992, allocations: 6.84 MB / 363.9 MB, free: 0.8047 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002938/0.5022, allocations: 436 kB / 364.4 MB, free: 388 kB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005459/0.5028, allocations: 219.1 kB / 364.6 MB, free: 168 kB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006462/0.5034, allocations: 148 kB / 364.7 MB, free: 20 kB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01014/0.5136, allocations: 3.656 MB / 368.4 MB, free: 12.35 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.5136, allocations: 0 / 368.4 MB, free: 12.35 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.775e-06/0.5137, allocations: 0 / 368.4 MB, free: 12.35 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.221e-05/0.5137, allocations: 4 kB / 368.4 MB, free: 12.35 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.007882/0.5216, allocations: 1.969 MB / 370.3 MB, free: 10.33 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.616e-05/0.5217, allocations: 8.031 kB / 370.4 MB, free: 10.32 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007099/0.5288, allocations: 0.6228 MB / 371 MB, free: 9.695 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003208/0.5321, allocations: 0.996 MB / 372 MB, free: 8.656 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001212/0.5322, allocations: 74.02 kB / 372 MB, free: 8.582 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003033/0.5325, allocations: 96 kB / 372.1 MB, free: 8.488 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005693/0.5382, allocations: 1.659 MB / 373.8 MB, free: 6.68 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.868e-05/0.5383, allocations: 3.938 kB / 373.8 MB, free: 6.676 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001862/0.5385, allocations: 48 kB / 373.9 MB, free: 6.629 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.587e-05/0.5386, allocations: 27.95 kB / 373.9 MB, free: 6.602 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005648/0.5443, allocations: 1.459 MB / 375.3 MB, free: 5.137 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01347/0.5578, allocations: 8.114 MB / 383.5 MB, free: 12.42 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004709/0.5625, allocations: 1.674 MB / 385.1 MB, free: 10.58 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.5145/1.077, allocations: 81.35 MB / 466.5 MB, free: 117.8 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.576e-05/1.077, allocations: 43.25 kB / 466.5 MB, free: 117.8 MB / 362.7 MB Notification: Performance of pre-optimization done (n=77): time 3.567e-06/1.077, allocations: 0 / 466.5 MB, free: 117.8 MB / 362.7 MB Notification: Performance of matching and sorting (n=77): time 0.008208/1.085, allocations: 1.934 MB / 468.5 MB, free: 116.4 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.574e-05/1.086, allocations: 192.5 kB / 468.6 MB, free: 116.1 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001197/1.087, allocations: 0.7152 MB / 469.4 MB, free: 115.4 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001402/1.087, allocations: 41.7 kB / 469.4 MB, free: 115.4 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004402/1.087, allocations: 0.6082 MB / 470 MB, free: 114.8 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002858/1.088, allocations: 281.8 kB / 470.3 MB, free: 114.5 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.958e-05/1.088, allocations: 24 kB / 470.3 MB, free: 114.5 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001261/1.088, allocations: 353.9 kB / 470.7 MB, free: 114.2 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008187/1.089, allocations: 294.5 kB / 470.9 MB, free: 113.9 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001029/1.09, allocations: 0.814 MB / 471.8 MB, free: 112.8 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001052/1.091, allocations: 420.9 kB / 472.2 MB, free: 112.4 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.235e-05/1.091, allocations: 8 kB / 472.2 MB, free: 112.4 MB / 362.7 MB Notification: Performance of matching and sorting (n=153) (initialization): time 0.003257/1.094, allocations: 1.292 MB / 473.5 MB, free: 111.1 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.064e-05/1.094, allocations: 12 kB / 473.5 MB, free: 111.1 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.452e-05/1.094, allocations: 16 kB / 473.5 MB, free: 111.1 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005542/1.1, allocations: 0.5322 MB / 474 MB, free: 110.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002136/1.102, allocations: 308 kB / 474.3 MB, free: 110.2 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00125/1.103, allocations: 1.37 MB / 475.7 MB, free: 108.8 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001447/1.105, allocations: 156.8 kB / 475.8 MB, free: 108.7 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001587/1.105, allocations: 75.98 kB / 475.9 MB, free: 108.6 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.0006042/1.106, allocations: 299.9 kB / 476.2 MB, free: 108.3 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002746/1.106, allocations: 110.7 kB / 476.3 MB, free: 108.2 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006596/1.112, allocations: 4.483 MB / 480.8 MB, free: 103.7 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.278e-05/1.113, allocations: 45.34 kB / 480.8 MB, free: 103.7 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.121e-05/1.113, allocations: 3.984 kB / 480.9 MB, free: 103.7 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.728e-05/1.113, allocations: 3.984 kB / 480.9 MB, free: 103.6 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007083/1.12, allocations: 4.856 MB / 485.7 MB, free: 98.64 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.645e-05/1.12, allocations: 0 / 485.7 MB, free: 98.64 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001488/1.121, allocations: 171.7 kB / 485.9 MB, free: 98.47 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006292/1.128, allocations: 1.587 MB / 487.5 MB, free: 96.88 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001497/1.128, allocations: 23.98 kB / 487.5 MB, free: 96.86 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001552/1.129, allocations: 1.751 MB / 489.2 MB, free: 95.06 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.387e-06/1.129, allocations: 0 / 489.2 MB, free: 95.06 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003131/1.133, allocations: 1.997 MB / 491.2 MB, free: 93 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004995/1.133, allocations: 326 kB / 491.6 MB, free: 92.66 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002801/1.133, allocations: 19.75 kB / 491.6 MB, free: 92.64 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009305/1.134, allocations: 63.86 kB / 491.6 MB, free: 92.58 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.681e-05/1.134, allocations: 48.5 kB / 491.7 MB, free: 92.54 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.279e-05/1.135, allocations: 35.92 kB / 491.7 MB, free: 92.5 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001026/1.136, allocations: 0.6163 MB / 492.3 MB, free: 91.88 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.81e-07/1.136, allocations: 0 / 492.3 MB, free: 91.88 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004064/1.14, allocations: 1.225 MB / 493.6 MB, free: 90.74 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.006584/1.146, allocations: 1.254 MB / 494.8 MB, free: 89.69 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004294/1.151, allocations: 1.26 MB / 496.1 MB, free: 88.44 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.396e-06/1.151, allocations: 4 kB / 496.1 MB, free: 88.44 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0036/1.154, allocations: 0.899 MB / 497 MB, free: 87.54 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006688/1.161, allocations: 0.541 MB / 497.5 MB, free: 87.01 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006373/1.168, allocations: 3.903 MB / 0.4897 GB, free: 83.15 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000812/1.168, allocations: 1.351 MB / 0.491 GB, free: 81.77 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001993/1.17, allocations: 0.5883 MB / 0.4916 GB, free: 81.18 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003563/1.171, allocations: 119.4 kB / 0.4917 GB, free: 81.07 MB / 362.7 MB Notification: Performance of SimCode: time 1.202e-06/1.171, allocations: 0 / 0.4917 GB, free: 81.07 MB / 362.7 MB Notification: Performance of Templates: time 0.08923/1.26, allocations: 42.45 MB / 0.5331 GB, free: 38.64 MB / 362.7 MB