Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) 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_cpp_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") Notification: Performance of loadModel(Modelica): time 1.591/1.591, allocations: 171.1 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003691/0.0003692, allocations: 11.98 kB / 233.2 MB, free: 3.027 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07007/0.07047, allocations: 38.77 MB / 272 MB, free: 12.18 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.778/5.849, allocations: 2.475 GB / 2.741 GB, free: 6.266 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002163/5.849, allocations: 88.45 kB / 2.741 GB, free: 6.18 MB / 362.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1/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.1/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.1/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.1/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.1/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.1/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.1/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.284/8.133, allocations: 498.1 MB / 3.227 GB, free: 29.66 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.523e-06/8.133, allocations: 0 / 3.227 GB, free: 29.66 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001125/8.133, allocations: 29.27 kB / 3.227 GB, free: 29.66 MB / 378.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.009196/8.142, allocations: 2.233 MB / 3.229 GB, free: 28.62 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.827e-05/8.142, allocations: 10.44 kB / 3.229 GB, free: 28.62 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006696/8.149, allocations: 0.6785 MB / 3.23 GB, free: 28.54 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002313/8.152, allocations: 0.9504 MB / 3.231 GB, free: 28.23 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.605e-05/8.152, allocations: 72.83 kB / 3.231 GB, free: 28.23 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001719/8.152, allocations: 100.2 kB / 3.231 GB, free: 28.23 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004598/8.156, allocations: 1.705 MB / 3.233 GB, free: 27.82 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.826e-05/8.156, allocations: 7.125 kB / 3.233 GB, free: 27.82 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001724/8.157, allocations: 47.86 kB / 3.233 GB, free: 27.82 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.459e-05/8.157, allocations: 25.62 kB / 3.233 GB, free: 27.82 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004499/8.161, allocations: 1.508 MB / 3.234 GB, free: 27.81 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009815/8.171, allocations: 8.274 MB / 3.242 GB, free: 22.19 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003583/8.175, allocations: 1.689 MB / 3.244 GB, free: 21.39 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1963/8.371, allocations: 80.21 MB / 3.322 GB, free: 5.348 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.2703/8.641, allocations: 40.5 kB / 3.322 GB, free: 63.5 MB / 410.7 MB Notification: Performance of pre-optimization done (n=77): time 5.387e-06/8.641, allocations: 0 / 3.322 GB, free: 63.5 MB / 410.7 MB Notification: Performance of matching and sorting (n=77): time 0.007873/8.649, allocations: 2.025 MB / 3.324 GB, free: 63.36 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.947e-05/8.649, allocations: 196.1 kB / 3.325 GB, free: 63.14 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001634/8.651, allocations: 0.8179 MB / 3.325 GB, free: 63 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001489/8.651, allocations: 36.8 kB / 3.325 GB, free: 62.97 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004587/8.652, allocations: 0.6162 MB / 3.326 GB, free: 62.67 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002914/8.652, allocations: 276.5 kB / 3.326 GB, free: 62.54 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.679e-05/8.652, allocations: 25.81 kB / 3.326 GB, free: 62.54 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.851e-05/8.652, allocations: 356.9 kB / 3.327 GB, free: 62.23 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000772/8.653, allocations: 339.2 kB / 3.327 GB, free: 62.23 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009439/8.654, allocations: 0.8137 MB / 3.328 GB, free: 61.64 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009222/8.655, allocations: 466.8 kB / 3.328 GB, free: 61.63 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.196e-05/8.655, allocations: 2.844 kB / 3.328 GB, free: 61.63 MB / 410.7 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.002743/8.658, allocations: 1.312 MB / 3.329 GB, free: 61.55 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.962e-05/8.658, allocations: 11.44 kB / 3.33 GB, free: 61.55 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.359e-05/8.658, allocations: 18.91 kB / 3.33 GB, free: 61.55 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006928/8.665, allocations: 0.8238 MB / 3.33 GB, free: 61.54 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001732/8.667, allocations: 328.8 kB / 3.331 GB, free: 61.54 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001302/8.668, allocations: 1.526 MB / 3.332 GB, free: 60.43 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001646/8.67, allocations: 160.1 kB / 3.332 GB, free: 60.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00021/8.67, allocations: 71.08 kB / 3.332 GB, free: 60.4 MB / 410.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 () * Number of clocked 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.0007858/8.671, allocations: 306.2 kB / 3.333 GB, free: 60.28 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000326/8.671, allocations: 108.8 kB / 3.333 GB, free: 60.22 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007152/8.678, allocations: 4.559 MB / 3.337 GB, free: 59.86 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.846e-05/8.678, allocations: 48.88 kB / 3.337 GB, free: 59.86 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.144e-05/8.678, allocations: 0 / 3.337 GB, free: 59.86 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.18e-05/8.678, allocations: 6.172 kB / 3.337 GB, free: 59.86 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008123/8.686, allocations: 5.02 MB / 3.342 GB, free: 58.75 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.552e-05/8.686, allocations: 7.797 kB / 3.342 GB, free: 58.75 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001267/8.688, allocations: 199.3 kB / 3.342 GB, free: 58.75 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007986/8.696, allocations: 1.879 MB / 3.344 GB, free: 58.73 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001474/8.696, allocations: 24.08 kB / 3.344 GB, free: 58.73 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00162/8.698, allocations: 1.905 MB / 3.346 GB, free: 57.59 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.323e-06/8.698, allocations: 0 / 3.346 GB, free: 57.59 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003178/8.701, allocations: 2.086 MB / 3.348 GB, free: 57.15 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000575/8.701, allocations: 322.7 kB / 3.348 GB, free: 56.91 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002084/8.702, allocations: 18.73 kB / 3.348 GB, free: 56.91 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008167/8.702, allocations: 69.67 kB / 3.349 GB, free: 56.9 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.601e-05/8.703, allocations: 57.58 kB / 3.349 GB, free: 56.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.785e-05/8.703, allocations: 32.83 kB / 3.349 GB, free: 56.9 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001194/8.704, allocations: 0.7028 MB / 3.349 GB, free: 56.79 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.08e-07/8.704, allocations: 0 / 3.349 GB, free: 56.79 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005531/8.709, allocations: 1.333 MB / 3.351 GB, free: 56.71 MB / 410.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 () * Number of clocked 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.008189/8.718, allocations: 1.74 MB / 3.352 GB, free: 56.54 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003673/8.721, allocations: 1.373 MB / 3.354 GB, free: 56.5 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.613e-06/8.721, allocations: 0 / 3.354 GB, free: 56.5 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00273/8.724, allocations: 0.9801 MB / 3.355 GB, free: 56.48 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003213/8.727, allocations: 0.5428 MB / 3.355 GB, free: 56.46 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1548/8.882, allocations: 78.33 MB / 3.432 GB, free: 46.5 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008465/8.883, allocations: 1.343 MB / 3.433 GB, free: 45.37 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000417/8.884, allocations: 113.5 kB / 3.433 GB, free: 45.28 MB / 410.7 MB Notification: Performance of SimCode: time 1.841e-06/8.884, allocations: 0 / 3.433 GB, free: 45.28 MB / 410.7 MB Notification: Performance of Templates: time 0.323/9.207, allocations: 52.28 MB / 3.484 GB, free: 56.18 MB / 410.7 MB