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.2_cpp_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") Notification: Performance of loadModel(Modelica): time 2.067/2.067, allocations: 194.9 MB / 211.2 MB, free: 7.871 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.337e-05/2.358e-05, allocations: 0 / 258.8 MB, free: 8.23 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3263/0.3264, allocations: 44.5 MB / 303.3 MB, free: 12.79 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.08648/0.4129, allocations: 51.28 MB / 354.6 MB, free: 10.23 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.03591/0.4489, allocations: 18.13 MB / 372.7 MB, free: 8.066 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001935/0.4509, allocations: 43.69 kB / 372.7 MB, free: 8.023 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002318/0.4532, allocations: 0.5207 MB / 373.3 MB, free: 7.5 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01692/0.4702, allocations: 4.342 MB / 377.6 MB, free: 3.145 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00967/0.4799, allocations: 2.414 MB / 380 MB, free: 0.7227 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0311/0.511, allocations: 12.37 MB / 392.4 MB, free: 4.348 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001343/0.5124, allocations: 491.5 kB / 392.9 MB, free: 3.863 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002608/0.5151, allocations: 0.8414 MB / 393.7 MB, free: 3.02 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001532/0.5167, allocations: 0.5959 MB / 394.3 MB, free: 2.422 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0205/0.5372, allocations: 6.965 MB / 401.3 MB, free: 11.45 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003277/0.5405, allocations: 448 kB / 401.7 MB, free: 11.01 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007488/0.5413, allocations: 219.1 kB / 401.9 MB, free: 10.8 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006698/0.542, allocations: 152 kB / 402.1 MB, free: 10.65 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01021/0.5523, allocations: 3.703 MB / 405.8 MB, free: 6.938 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.5523, allocations: 4 kB / 405.8 MB, free: 6.934 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.515e-06/0.5523, allocations: 0 / 405.8 MB, free: 6.934 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.511e-05/0.5524, allocations: 0 / 405.8 MB, free: 6.934 MB / 346.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.00822/0.5606, allocations: 2.063 MB / 407.8 MB, free: 4.816 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.862e-05/0.5607, allocations: 8.031 kB / 407.8 MB, free: 4.809 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007152/0.5678, allocations: 0.654 MB / 408.5 MB, free: 4.152 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003165/0.571, allocations: 0.9883 MB / 409.5 MB, free: 3.117 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000104/0.5712, allocations: 74.02 kB / 409.6 MB, free: 3.043 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002782/0.5715, allocations: 100 kB / 409.7 MB, free: 2.945 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005672/0.5772, allocations: 1.655 MB / 411.3 MB, free: 1.141 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.038e-05/0.5773, allocations: 7.938 kB / 411.3 MB, free: 1.133 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001908/0.5775, allocations: 44 kB / 411.4 MB, free: 1.09 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.858e-05/0.5776, allocations: 31.98 kB / 411.4 MB, free: 1.059 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005493/0.5831, allocations: 1.444 MB / 412.8 MB, free: 15.61 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01319/0.5963, allocations: 8.129 MB / 421 MB, free: 6.867 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004749/0.6011, allocations: 1.683 MB / 422.6 MB, free: 5.02 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.5447/1.146, allocations: 81.4 MB / 0.4922 GB, free: 35.59 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.083e-05/1.146, allocations: 47.06 kB / 0.4923 GB, free: 35.54 MB / 362.7 MB Notification: Performance of pre-optimization done (n=77): time 3.637e-06/1.146, allocations: 0 / 0.4923 GB, free: 35.54 MB / 362.7 MB Notification: Performance of matching and sorting (n=77): time 0.008097/1.154, allocations: 1.932 MB / 0.4942 GB, free: 33.63 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.221e-05/1.154, allocations: 188.5 kB / 0.4943 GB, free: 33.41 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001196/1.155, allocations: 0.7234 MB / 0.4951 GB, free: 32.69 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000115/1.156, allocations: 33.7 kB / 0.4951 GB, free: 32.65 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003967/1.156, allocations: 0.6203 MB / 0.4957 GB, free: 32.05 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002468/1.156, allocations: 280.8 kB / 0.496 GB, free: 31.78 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.657e-05/1.156, allocations: 24 kB / 0.496 GB, free: 31.76 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.92e-05/1.156, allocations: 358.8 kB / 0.4963 GB, free: 31.4 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008292/1.157, allocations: 291.6 kB / 0.4966 GB, free: 31.11 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001027/1.158, allocations: 0.8061 MB / 0.4974 GB, free: 30.06 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001193/1.159, allocations: 424.6 kB / 0.4978 GB, free: 29.65 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.39e-05/1.16, allocations: 11.98 kB / 0.4978 GB, free: 29.64 MB / 362.7 MB Notification: Performance of matching and sorting (n=153) (initialization): time 0.003158/1.163, allocations: 1.241 MB / 0.499 GB, free: 28.39 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.289e-05/1.163, allocations: 12 kB / 0.499 GB, free: 28.38 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.347e-05/1.163, allocations: 16 kB / 0.499 GB, free: 28.36 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005671/1.169, allocations: 0.5291 MB / 0.4996 GB, free: 27.83 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00215/1.171, allocations: 311.5 kB / 0.4999 GB, free: 27.53 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00124/1.172, allocations: 1.363 MB / 0.5012 GB, free: 26.12 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001561/1.174, allocations: 162.7 kB / 0.5013 GB, free: 25.96 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001422/1.174, allocations: 76.83 kB / 0.5014 GB, free: 25.88 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.0006186/1.174, allocations: 302.4 kB / 0.5017 GB, free: 25.59 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002708/1.175, allocations: 110.7 kB / 0.5018 GB, free: 25.48 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006614/1.181, allocations: 4.484 MB / 0.5062 GB, free: 20.99 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.818e-05/1.181, allocations: 51.88 kB / 0.5062 GB, free: 20.94 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.026e-05/1.181, allocations: 3.938 kB / 0.5062 GB, free: 20.94 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.723e-05/1.181, allocations: 3.984 kB / 0.5062 GB, free: 20.93 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007227/1.189, allocations: 4.843 MB / 0.511 GB, free: 15.94 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.091e-05/1.189, allocations: 4 kB / 0.511 GB, free: 15.93 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001559/1.19, allocations: 171.7 kB / 0.5111 GB, free: 15.77 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006404/1.197, allocations: 1.591 MB / 0.5127 GB, free: 14.17 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001548/1.197, allocations: 23.98 kB / 0.5127 GB, free: 14.14 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001607/1.199, allocations: 1.75 MB / 0.5144 GB, free: 12.35 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/1.199, allocations: 0 / 0.5144 GB, free: 12.35 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003368/1.202, allocations: 1.989 MB / 0.5164 GB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005806/1.203, allocations: 333.9 kB / 0.5167 GB, free: 9.953 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002929/1.203, allocations: 23.94 kB / 0.5167 GB, free: 9.93 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001037/1.204, allocations: 55.86 kB / 0.5168 GB, free: 9.875 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001932/1.204, allocations: 56.44 kB / 0.5168 GB, free: 9.82 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001104/1.204, allocations: 32 kB / 0.5169 GB, free: 9.789 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001347/1.206, allocations: 0.6163 MB / 0.5175 GB, free: 9.168 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.72e-07/1.206, allocations: 3.938 kB / 0.5175 GB, free: 9.164 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004446/1.21, allocations: 1.233 MB / 0.5187 GB, free: 8.016 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.006842/1.217, allocations: 1.253 MB / 0.5199 GB, free: 6.965 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003983/1.221, allocations: 1.253 MB / 0.5211 GB, free: 5.711 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.164e-06/1.221, allocations: 0 / 0.5211 GB, free: 5.711 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002648/1.224, allocations: 0.9072 MB / 0.522 GB, free: 4.801 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004783/1.229, allocations: 0.5578 MB / 0.5225 GB, free: 4.258 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007133/1.236, allocations: 3.934 MB / 0.5264 GB, free: 364 kB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001276/1.237, allocations: 1.343 MB / 0.5277 GB, free: 14.98 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005501/1.238, allocations: 119.4 kB / 0.5278 GB, free: 14.86 MB / 378.7 MB Notification: Performance of SimCode: time 4.138e-06/1.238, allocations: 4 kB / 0.5278 GB, free: 14.86 MB / 378.7 MB Notification: Performance of Templates: time 0.3627/1.601, allocations: 49.67 MB / 0.5763 GB, free: 152.9 MB / 410.7 MB