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 1.826/1.826, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.994e-05/3.034e-05, allocations: 0 / 255.3 MB, free: 3.207 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08036/0.08042, allocations: 44.5 MB / 299.8 MB, free: 6.648 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.848/5.928, allocations: 2.585 GB / 2.877 GB, free: 83.32 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001983/5.929, allocations: 82.22 kB / 2.877 GB, free: 83.28 MB / 410.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Fluid/Interfaces.mo:327:3-329:69:writable] Warning: Inherited elements are not identical: bug: https://trac.modelica.org/Modelica/ticket/627 first: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start, stateSelect = if momentumDynamics == Modelica.Fluid.Types.Dynamics.SteadyState then StateSelect.default else StateSelect.prefer) "mass flow rates between states" second: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start) "Mass flow rate in design flow direction" Continue .... [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Fluid/Interfaces.mo:327:3-329:69:writable] Warning: Inherited elements are not identical: bug: https://trac.modelica.org/Modelica/ticket/627 first: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start, stateSelect = if momentumDynamics == Modelica.Fluid.Types.Dynamics.SteadyState then StateSelect.default else StateSelect.prefer) "mass flow rates between states" second: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start) "Mass flow rate in design flow direction" Continue .... [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Fluid/Interfaces.mo:327:3-329:69:writable] Warning: Inherited elements are not identical: bug: https://trac.modelica.org/Modelica/ticket/627 first: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start, stateSelect = if momentumDynamics == Modelica.Fluid.Types.Dynamics.SteadyState then StateSelect.default else StateSelect.prefer) "mass flow rates between states" second: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start) "Mass flow rate in design flow direction" Continue .... [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Fluid/Interfaces.mo:327:3-329:69:writable] Warning: Inherited elements are not identical: bug: https://trac.modelica.org/Modelica/ticket/627 first: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start, stateSelect = if momentumDynamics == Modelica.Fluid.Types.Dynamics.SteadyState then StateSelect.default else StateSelect.prefer) "mass flow rates between states" second: Medium.MassFlowRate m_flow(min = if allowFlowReversal then -Modelica.Constants.inf else 0, start = m_flow_start) "Mass flow rate in design flow direction" Continue .... Notification: Performance of FrontEnd - DAE generated: time 2.126/8.054, allocations: 0.4952 GB / 3.373 GB, free: 20.67 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.796e-06/8.054, allocations: 3.938 kB / 3.373 GB, free: 20.67 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.689e-05/8.054, allocations: 30.48 kB / 3.373 GB, free: 20.67 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.008445/8.063, allocations: 2.19 MB / 3.375 GB, free: 19.51 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/8.063, allocations: 9.688 kB / 3.375 GB, free: 19.51 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006916/8.07, allocations: 0.708 MB / 3.376 GB, free: 19.35 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002217/8.072, allocations: 0.9548 MB / 3.376 GB, free: 18.79 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.914e-05/8.072, allocations: 74.17 kB / 3.377 GB, free: 18.75 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001679/8.072, allocations: 96.81 kB / 3.377 GB, free: 18.72 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004723/8.077, allocations: 1.795 MB / 3.378 GB, free: 17.83 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.625e-05/8.077, allocations: 7.891 kB / 3.378 GB, free: 17.82 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001513/8.077, allocations: 48 kB / 3.378 GB, free: 17.79 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.466e-05/8.078, allocations: 25.88 kB / 3.378 GB, free: 17.79 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004709/8.082, allocations: 1.595 MB / 3.38 GB, free: 17.3 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009789/8.092, allocations: 8.258 MB / 3.388 GB, free: 10.55 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003957/8.096, allocations: 1.802 MB / 3.39 GB, free: 9.402 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000822/8.097, allocations: 422.1 kB / 3.39 GB, free: 9.223 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4983/8.595, allocations: 80.95 MB / 3.469 GB, free: 15.09 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.004e-05/8.595, allocations: 42.97 kB / 3.469 GB, free: 15.05 MB / 426.7 MB Notification: Performance of pre-optimization done (n=77): time 4.112e-06/8.595, allocations: 2.969 kB / 3.469 GB, free: 15.05 MB / 426.7 MB Notification: Performance of matching and sorting (n=77): time 0.005802/8.601, allocations: 1.678 MB / 3.471 GB, free: 15.01 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.638e-05/8.601, allocations: 196.4 kB / 3.471 GB, free: 14.79 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001346/8.603, allocations: 0.8084 MB / 3.472 GB, free: 14.64 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 9.234e-05/8.603, allocations: 39.23 kB / 3.472 GB, free: 14.61 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008391/8.604, allocations: 0.6114 MB / 3.473 GB, free: 30.3 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002637/8.604, allocations: 274.9 kB / 3.473 GB, free: 30.17 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.422e-05/8.604, allocations: 25.75 kB / 3.473 GB, free: 30.17 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002021/8.604, allocations: 357.6 kB / 3.473 GB, free: 29.86 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007327/8.605, allocations: 326.1 kB / 3.474 GB, free: 29.86 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009477/8.606, allocations: 0.8085 MB / 3.474 GB, free: 29.25 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009311/8.607, allocations: 453.9 kB / 3.475 GB, free: 29.21 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-05/8.607, allocations: 5.375 kB / 3.475 GB, free: 29.21 MB / 442.7 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.002749/8.61, allocations: 1.282 MB / 3.476 GB, free: 29.13 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.159e-05/8.61, allocations: 16 kB / 3.476 GB, free: 29.13 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.276e-05/8.61, allocations: 15.84 kB / 3.476 GB, free: 29.13 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007776/8.618, allocations: 0.816 MB / 3.477 GB, free: 29.11 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001727/8.619, allocations: 331.4 kB / 3.477 GB, free: 29.1 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001623/8.621, allocations: 1.523 MB / 3.479 GB, free: 27.99 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001518/8.623, allocations: 160.4 kB / 3.479 GB, free: 27.95 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002286/8.623, allocations: 67.78 kB / 3.479 GB, free: 27.95 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 71 * 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 (138): * Single equations (assignments): 136 * 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 12} Notification: Performance of prepare postOptimizeDAE: time 0.0004386/8.623, allocations: 193.9 kB / 3.479 GB, free: 27.84 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003066/8.624, allocations: 109.5 kB / 3.479 GB, free: 27.79 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005985/8.63, allocations: 4.534 MB / 3.484 GB, free: 27.39 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.512e-05/8.63, allocations: 44.72 kB / 3.484 GB, free: 27.39 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.862e-06/8.63, allocations: 0 / 3.484 GB, free: 27.39 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.535e-05/8.63, allocations: 6.047 kB / 3.484 GB, free: 27.39 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007247/8.637, allocations: 5.01 MB / 3.489 GB, free: 26.27 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-05/8.637, allocations: 3.656 kB / 3.489 GB, free: 26.27 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0014/8.638, allocations: 195.9 kB / 3.489 GB, free: 26.27 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008592/8.647, allocations: 1.879 MB / 3.491 GB, free: 26.23 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001393/8.647, allocations: 23.77 kB / 3.491 GB, free: 26.23 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00198/8.649, allocations: 1.911 MB / 3.492 GB, free: 25.08 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.189e-06/8.649, allocations: 0 / 3.492 GB, free: 25.08 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00303/8.652, allocations: 2.07 MB / 3.494 GB, free: 24.64 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006034/8.653, allocations: 328.2 kB / 3.495 GB, free: 24.41 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002394/8.653, allocations: 13.41 kB / 3.495 GB, free: 24.41 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008846/8.654, allocations: 69.69 kB / 3.495 GB, free: 24.39 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.788e-05/8.654, allocations: 51.62 kB / 3.495 GB, free: 24.39 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.373e-05/8.654, allocations: 27.62 kB / 3.495 GB, free: 24.39 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001179/8.655, allocations: 0.6935 MB / 3.496 GB, free: 24.27 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.284e-06/8.655, allocations: 0 / 3.496 GB, free: 24.27 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00525/8.661, allocations: 1.341 MB / 3.497 GB, free: 24.19 MB / 442.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 ($cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (83): * Single equations (assignments): 73 * 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 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.008062/8.669, allocations: 1.756 MB / 3.499 GB, free: 23.92 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003682/8.673, allocations: 1.344 MB / 3.5 GB, free: 23.88 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.58e-06/8.673, allocations: 1.641 kB / 3.5 GB, free: 23.88 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002771/8.675, allocations: 0.9805 MB / 3.501 GB, free: 23.86 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003482/8.679, allocations: 0.5226 MB / 3.501 GB, free: 23.82 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1634/8.842, allocations: 80.87 MB / 3.58 GB, free: 13.79 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001264/8.844, allocations: 1.352 MB / 3.582 GB, free: 12.65 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000459/8.844, allocations: 115.3 kB / 3.582 GB, free: 12.56 MB / 458.7 MB Notification: Performance of SimCode: time 1.81e-06/8.844, allocations: 0 / 3.582 GB, free: 12.56 MB / 458.7 MB Notification: Performance of Templates: time 0.3951/9.239, allocations: 52.31 MB / 3.633 GB, free: 63.18 MB / 458.7 MB