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_trunk_cpp_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") Notification: Performance of loadModel(Modelica): time 2.273/2.273, allocations: 224.8 MB / 241.1 MB, free: 1.695 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.844e-05/2.841e-05, allocations: 4 kB / 294.6 MB, free: 11.43 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.1129, allocations: 50.4 MB / 345 MB, free: 8.984 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.08536/0.1984, allocations: 51.57 MB / 396.5 MB, free: 5.277 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.3695/0.5679, allocations: 18.15 MB / 414.7 MB, free: 5.754 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002522/0.5705, allocations: 42.28 kB / 414.7 MB, free: 5.75 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003398/0.574, allocations: 0.5233 MB / 415.3 MB, free: 5.742 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02624/0.6003, allocations: 4.355 MB / 419.6 MB, free: 5.641 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01513/0.6155, allocations: 2.417 MB / 422 MB, free: 5.582 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.04448/0.66, allocations: 12.38 MB / 434.4 MB, free: 5.168 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00169/0.6618, allocations: 493.6 kB / 434.9 MB, free: 5.004 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003838/0.6657, allocations: 0.84 MB / 435.7 MB, free: 4.902 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00251/0.6682, allocations: 0.6078 MB / 436.3 MB, free: 4.68 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02929/0.6976, allocations: 6.966 MB / 443.3 MB, free: 15.22 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004385/0.7021, allocations: 448 kB / 443.7 MB, free: 14.78 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009204/0.703, allocations: 234.1 kB / 444 MB, free: 14.67 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001285/0.7044, allocations: 148 kB / 444.1 MB, free: 14.52 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01583/0.7202, allocations: 3.715 MB / 447.8 MB, free: 11.4 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.481e-06/0.7203, allocations: 0 / 447.8 MB, free: 11.4 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.306e-06/0.7203, allocations: 0 / 447.8 MB, free: 11.4 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.345e-05/0.7204, allocations: 0 / 447.8 MB, free: 11.4 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.01316/0.7336, allocations: 2.059 MB / 449.9 MB, free: 9.422 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.682e-05/0.7337, allocations: 12.03 kB / 449.9 MB, free: 9.41 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01216/0.7458, allocations: 0.6545 MB / 450.6 MB, free: 8.828 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004525/0.7504, allocations: 0.9673 MB / 451.5 MB, free: 8.082 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001601/0.7506, allocations: 72.27 kB / 451.6 MB, free: 8.039 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004224/0.7511, allocations: 97 kB / 451.7 MB, free: 7.977 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009408/0.7605, allocations: 1.66 MB / 453.3 MB, free: 6.586 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.208e-05/0.7606, allocations: 7.188 kB / 453.4 MB, free: 6.582 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002754/0.7609, allocations: 45.5 kB / 453.4 MB, free: 6.57 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.111e-05/0.761, allocations: 28 kB / 453.4 MB, free: 6.543 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009366/0.7704, allocations: 1.453 MB / 454.9 MB, free: 5.508 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02473/0.7952, allocations: 8.431 MB / 463.3 MB, free: 13.63 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007931/0.8032, allocations: 1.688 MB / 465 MB, free: 12.08 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2758/1.079, allocations: 63.98 MB / 0.5166 GB, free: 5.582 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.917e-05/1.079, allocations: 43.06 kB / 0.5166 GB, free: 5.531 MB / 426.7 MB Notification: Performance of pre-optimization done (n=77): time 3.968e-06/1.079, allocations: 0 / 0.5166 GB, free: 5.531 MB / 426.7 MB Notification: Performance of matching and sorting (n=77): time 0.009469/1.089, allocations: 1.991 MB / 0.5186 GB, free: 3.523 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001379/1.089, allocations: 192.5 kB / 0.5187 GB, free: 3.293 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00189/1.091, allocations: 0.8337 MB / 0.5196 GB, free: 2.445 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002148/1.091, allocations: 45.7 kB / 0.5196 GB, free: 2.395 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006019/1.092, allocations: 0.5515 MB / 0.5201 GB, free: 1.84 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004398/1.092, allocations: 278.4 kB / 0.5204 GB, free: 1.57 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.289e-05/1.092, allocations: 20 kB / 0.5204 GB, free: 1.551 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001986/1.092, allocations: 358.8 kB / 0.5208 GB, free: 1.191 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00103/1.093, allocations: 294.5 kB / 0.521 GB, free: 0.9062 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001415/1.095, allocations: 0.7375 MB / 0.5218 GB, free: 15.98 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001348/1.096, allocations: 410.6 kB / 0.5222 GB, free: 15.59 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-05/1.096, allocations: 4 kB / 0.5222 GB, free: 15.59 MB / 442.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003652/1.1, allocations: 1.165 MB / 0.5233 GB, free: 14.5 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.079e-05/1.1, allocations: 12 kB / 0.5233 GB, free: 14.48 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.643e-05/1.1, allocations: 12 kB / 0.5233 GB, free: 14.47 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005961/1.106, allocations: 0.5263 MB / 0.5238 GB, free: 13.95 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002294/1.108, allocations: 281.5 kB / 0.5241 GB, free: 13.69 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001766/1.11, allocations: 1.382 MB / 0.5255 GB, free: 12.27 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00169/1.112, allocations: 166.6 kB / 0.5256 GB, free: 12.11 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002583/1.112, allocations: 59.98 kB / 0.5257 GB, free: 12.05 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * 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 (124): * Single equations (assignments): 122 * 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.0007962/1.113, allocations: 294.3 kB / 0.526 GB, free: 11.77 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004143/1.114, allocations: 126.6 kB / 0.5261 GB, free: 11.64 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008795/1.122, allocations: 4.501 MB / 0.5305 GB, free: 7.164 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.341e-05/1.122, allocations: 47.94 kB / 0.5305 GB, free: 7.117 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.131e-05/1.122, allocations: 3.375 kB / 0.5305 GB, free: 7.117 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.632e-05/1.123, allocations: 7.984 kB / 0.5305 GB, free: 7.109 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009493/1.132, allocations: 4.947 MB / 0.5354 GB, free: 2.012 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.849e-05/1.132, allocations: 0 / 0.5354 GB, free: 2.012 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001635/1.134, allocations: 171.4 kB / 0.5355 GB, free: 1.852 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007112/1.141, allocations: 1.59 MB / 0.5371 GB, free: 268 kB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001776/1.141, allocations: 30.8 kB / 0.5371 GB, free: 240 kB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002244/1.143, allocations: 1.742 MB / 0.5388 GB, free: 14.45 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/1.143, allocations: 0 / 0.5388 GB, free: 14.45 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004247/1.148, allocations: 2.025 MB / 0.5408 GB, free: 12.37 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007955/1.149, allocations: 357.8 kB / 0.5411 GB, free: 12 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003671/1.149, allocations: 16 kB / 0.5411 GB, free: 11.98 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001152/1.15, allocations: 63.8 kB / 0.5412 GB, free: 11.92 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001353/1.15, allocations: 56.5 kB / 0.5413 GB, free: 11.86 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001031/1.15, allocations: 35.97 kB / 0.5413 GB, free: 11.82 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001836/1.152, allocations: 0.8186 MB / 0.5421 GB, free: 11 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.91e-07/1.152, allocations: 0 / 0.5421 GB, free: 11 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004945/1.157, allocations: 1.23 MB / 0.5433 GB, free: 9.773 MB / 458.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.007512/1.165, allocations: 1.266 MB / 0.5445 GB, free: 8.613 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004502/1.169, allocations: 1.246 MB / 0.5457 GB, free: 7.41 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.316e-06/1.169, allocations: 7.562 kB / 0.5457 GB, free: 7.406 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003118/1.173, allocations: 0.9048 MB / 0.5466 GB, free: 6.516 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006437/1.179, allocations: 0.6877 MB / 0.5473 GB, free: 5.828 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008997/1.188, allocations: 3.762 MB / 0.551 GB, free: 2.035 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001694/1.19, allocations: 1.347 MB / 0.5523 GB, free: 0.6562 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000775/1.191, allocations: 123.4 kB / 0.5524 GB, free: 0.5352 MB / 458.7 MB Notification: Performance of SimCode: time 1.333e-06/1.191, allocations: 2.438 kB / 0.5524 GB, free: 0.5352 MB / 458.7 MB Notification: Performance of Templates: time 0.3981/1.589, allocations: 51.23 MB / 0.6024 GB, free: 166.8 MB / 474.7 MB