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.87/1.87, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.093e-05/2.147e-05, allocations: 4 kB / 249.6 MB, free: 15.3 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2547/0.2547, allocations: 44.49 MB / 294.1 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.28/6.535, allocations: 2.584 GB / 2.871 GB, free: 9.559 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002205/6.535, allocations: 81.52 kB / 2.871 GB, free: 9.516 MB / 410.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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/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/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/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/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/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/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/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.084/8.619, allocations: 495.7 MB / 3.355 GB, free: 17.5 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.154e-06/8.619, allocations: 0 / 3.355 GB, free: 17.5 MB / 426.7 MB Notification: Performance of Transformations before backend: time 8.166e-05/8.619, allocations: 32.09 kB / 3.355 GB, free: 17.47 MB / 426.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.008268/8.627, allocations: 2.182 MB / 3.357 GB, free: 15.25 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/8.627, allocations: 12.03 kB / 3.357 GB, free: 15.24 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006982/8.634, allocations: 0.7097 MB / 3.358 GB, free: 14.53 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002626/8.637, allocations: 0.9503 MB / 3.359 GB, free: 13.55 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.436e-05/8.637, allocations: 35.94 kB / 3.359 GB, free: 13.52 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001716/8.637, allocations: 56 kB / 3.359 GB, free: 13.46 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002667/8.64, allocations: 1.066 MB / 3.36 GB, free: 12.39 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002636/8.643, allocations: 1.232 MB / 3.361 GB, free: 11.02 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.014e-05/8.643, allocations: 7.938 kB / 3.361 GB, free: 11.02 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001338/8.643, allocations: 4 kB / 3.361 GB, free: 11.01 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.416e-05/8.643, allocations: 28 kB / 3.361 GB, free: 10.98 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 1.383/10.03, allocations: 264 MB / 3.619 GB, free: 66.16 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001636/10.03, allocations: 0.5366 MB / 3.62 GB, free: 66.11 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000806/10.03, allocations: 280.2 kB / 3.62 GB, free: 66.09 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1181/10.15, allocations: 47.3 MB / 3.666 GB, free: 37.8 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.458e-05/10.15, allocations: 42.84 kB / 3.666 GB, free: 37.76 MB / 490.7 MB Notification: Performance of pre-optimization done (n=49): time 4.593e-06/10.15, allocations: 0 / 3.666 GB, free: 37.76 MB / 490.7 MB Notification: Performance of matching and sorting (n=49): time 0.006499/10.15, allocations: 1.506 MB / 3.668 GB, free: 37.68 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.864e-05/10.15, allocations: 189 kB / 3.668 GB, free: 37.46 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001523/10.15, allocations: 0.8703 MB / 3.669 GB, free: 37.3 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 9.392e-05/10.15, allocations: 28.64 kB / 3.669 GB, free: 37.27 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004175/10.16, allocations: 0.6979 MB / 3.669 GB, free: 36.91 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001722/10.16, allocations: 186.2 kB / 3.67 GB, free: 36.82 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.996e-05/10.16, allocations: 0 / 3.67 GB, free: 36.82 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 9.893e-05/10.16, allocations: 360.7 kB / 3.67 GB, free: 36.5 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006645/10.16, allocations: 315 kB / 3.67 GB, free: 36.5 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008668/10.16, allocations: 0.7859 MB / 3.671 GB, free: 35.89 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003943/10.16, allocations: 0.7197 MB / 3.672 GB, free: 35.87 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.775e-05/10.16, allocations: 3.844 kB / 3.672 GB, free: 35.87 MB / 490.7 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.005607/10.17, allocations: 1.47 MB / 3.673 GB, free: 35.78 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.187e-05/10.17, allocations: 12.97 kB / 3.673 GB, free: 35.78 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.307e-05/10.17, allocations: 18.56 kB / 3.673 GB, free: 35.78 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005618/10.17, allocations: 186.6 kB / 3.673 GB, free: 35.77 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001652/10.17, allocations: 329.5 kB / 3.674 GB, free: 35.77 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001972/10.17, allocations: 1.643 MB / 3.675 GB, free: 34.66 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001676/10.17, allocations: 163.5 kB / 3.676 GB, free: 34.61 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000152/10.17, allocations: 78.56 kB / 3.676 GB, free: 34.61 MB / 490.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.0002578/10.17, allocations: 158 kB / 3.676 GB, free: 34.5 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002309/10.17, allocations: 110.9 kB / 3.676 GB, free: 34.44 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005267/10.18, allocations: 3.006 MB / 3.679 GB, free: 34.23 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.376e-05/10.18, allocations: 18.27 kB / 3.679 GB, free: 34.23 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.393e-06/10.18, allocations: 0 / 3.679 GB, free: 34.23 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.367e-05/10.18, allocations: 8.172 kB / 3.679 GB, free: 34.23 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002305/10.18, allocations: 1.343 MB / 3.68 GB, free: 34.03 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.857e-06/10.18, allocations: 0 / 3.68 GB, free: 34.03 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001185/10.18, allocations: 140.9 kB / 3.68 GB, free: 34.03 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002582/10.18, allocations: 2.137 MB / 3.682 GB, free: 34.01 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.165e-05/10.19, allocations: 11.33 kB / 3.682 GB, free: 34.01 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003231/10.19, allocations: 2.993 MB / 3.685 GB, free: 32.86 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.881e-06/10.19, allocations: 3.891 kB / 3.685 GB, free: 32.86 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003956/10.19, allocations: 2.175 MB / 3.687 GB, free: 32.16 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005171/10.19, allocations: 291.3 kB / 3.688 GB, free: 31.93 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002397/10.19, allocations: 4 kB / 3.688 GB, free: 31.93 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007746/10.19, allocations: 31.36 kB / 3.688 GB, free: 31.91 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.806e-05/10.19, allocations: 30.44 kB / 3.688 GB, free: 31.89 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.045e-05/10.19, allocations: 18.25 kB / 3.688 GB, free: 31.88 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001307/10.2, allocations: 0.7878 MB / 3.689 GB, free: 31.41 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.48e-07/10.2, allocations: 0 / 3.689 GB, free: 31.41 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005484/10.2, allocations: 1.27 MB / 3.69 GB, free: 30.36 MB / 490.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: 8 ($cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 37 * 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 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.008072/10.21, allocations: 1.886 MB / 3.692 GB, free: 29.04 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.002893/10.21, allocations: 0.977 MB / 3.693 GB, free: 28.47 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 5.617e-06/10.21, allocations: 0 / 3.693 GB, free: 28.47 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001909/10.21, allocations: 0.5344 MB / 3.693 GB, free: 28.18 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002508/10.22, allocations: 425 kB / 3.693 GB, free: 27.96 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003133/10.22, allocations: 1.627 MB / 3.695 GB, free: 26.66 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006747/10.22, allocations: 1.193 MB / 3.696 GB, free: 25.65 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003808/10.22, allocations: 115.3 kB / 3.696 GB, free: 25.56 MB / 490.7 MB Notification: Performance of SimCode: time 1.684e-06/10.22, allocations: 0 / 3.696 GB, free: 25.56 MB / 490.7 MB Notification: Performance of Templates: time 0.3394/10.56, allocations: 49.65 MB / 3.745 GB, free: 96.56 MB / 490.7 MB