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.606/1.606, allocations: 171.2 MB / 184.2 MB, free: 12.04 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.012e-05/3.034e-05, allocations: 4 kB / 228.8 MB, free: 15.41 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2106/0.2107, allocations: 38.78 MB / 267.6 MB, free: 9.438 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.564/5.775, allocations: 2.475 GB / 2.736 GB, free: 44.91 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002562/5.775, allocations: 79.95 kB / 2.736 GB, free: 44.83 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.322/8.097, allocations: 496.3 MB / 3.221 GB, free: 30 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.189e-06/8.097, allocations: 0 / 3.221 GB, free: 30 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.839e-05/8.097, allocations: 32.41 kB / 3.221 GB, free: 30 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.008157/8.105, allocations: 2.089 MB / 3.223 GB, free: 29.09 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.041e-05/8.105, allocations: 10.06 kB / 3.223 GB, free: 29.09 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006883/8.112, allocations: 0.6759 MB / 3.224 GB, free: 29.01 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002292/8.114, allocations: 0.956 MB / 3.225 GB, free: 28.7 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.584e-05/8.114, allocations: 75.98 kB / 3.225 GB, free: 28.7 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000169/8.114, allocations: 101.1 kB / 3.225 GB, free: 28.7 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004721/8.119, allocations: 1.796 MB / 3.227 GB, free: 28.28 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.869e-05/8.119, allocations: 3.75 kB / 3.227 GB, free: 28.28 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001676/8.119, allocations: 47.59 kB / 3.227 GB, free: 28.28 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.542e-05/8.119, allocations: 26.62 kB / 3.227 GB, free: 28.28 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004533/8.124, allocations: 1.594 MB / 3.228 GB, free: 28.27 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009893/8.134, allocations: 8.256 MB / 3.236 GB, free: 22.66 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003853/8.138, allocations: 1.801 MB / 3.238 GB, free: 21.87 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007977/8.139, allocations: 405.9 kB / 3.238 GB, free: 21.85 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2069/8.346, allocations: 80.65 MB / 3.317 GB, free: 25.14 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.176e-05/8.346, allocations: 46.05 kB / 3.317 GB, free: 25.1 MB / 426.7 MB Notification: Performance of pre-optimization done (n=77): time 4.7e-06/8.346, allocations: 3.938 kB / 3.317 GB, free: 25.09 MB / 426.7 MB Notification: Performance of matching and sorting (n=77): time 0.006071/8.352, allocations: 1.69 MB / 3.319 GB, free: 24.98 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001289/8.352, allocations: 191.7 kB / 3.319 GB, free: 24.77 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001531/8.353, allocations: 0.8036 MB / 3.32 GB, free: 24.6 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001682/8.354, allocations: 39.67 kB / 3.32 GB, free: 24.57 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004224/8.354, allocations: 0.6104 MB / 3.321 GB, free: 24.19 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002734/8.354, allocations: 283.2 kB / 3.321 GB, free: 24.02 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.246e-05/8.354, allocations: 30.72 kB / 3.321 GB, free: 24.02 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001919/8.355, allocations: 352.4 kB / 3.321 GB, free: 23.7 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007108/8.355, allocations: 328.6 kB / 3.321 GB, free: 23.7 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009017/8.356, allocations: 0.8061 MB / 3.322 GB, free: 23.08 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008771/8.357, allocations: 456.5 kB / 3.323 GB, free: 23.05 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.34e-05/8.357, allocations: 10.91 kB / 3.323 GB, free: 23.05 MB / 426.7 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.002781/8.36, allocations: 1.282 MB / 3.324 GB, free: 22.95 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.26e-05/8.36, allocations: 11.66 kB / 3.324 GB, free: 22.95 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.365e-05/8.36, allocations: 18.28 kB / 3.324 GB, free: 22.95 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007018/8.367, allocations: 0.8228 MB / 3.325 GB, free: 22.92 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002013/8.369, allocations: 324 kB / 3.325 GB, free: 22.92 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001619/8.371, allocations: 1.532 MB / 3.327 GB, free: 21.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001481/8.372, allocations: 156.6 kB / 3.327 GB, free: 21.73 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001529/8.373, allocations: 68.41 kB / 3.327 GB, free: 21.73 MB / 426.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.0003435/8.373, allocations: 201.9 kB / 3.327 GB, free: 21.6 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002581/8.373, allocations: 109 kB / 3.327 GB, free: 21.55 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006038/8.379, allocations: 4.531 MB / 3.332 GB, free: 21.11 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.835e-05/8.379, allocations: 42.95 kB / 3.332 GB, free: 21.11 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.135e-05/8.379, allocations: 3.422 kB / 3.332 GB, free: 21.11 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.753e-05/8.379, allocations: 3.703 kB / 3.332 GB, free: 21.11 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007265/8.387, allocations: 5.006 MB / 3.336 GB, free: 19.77 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.457e-05/8.387, allocations: 7.953 kB / 3.336 GB, free: 19.77 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001512/8.388, allocations: 192 kB / 3.337 GB, free: 19.63 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008405/8.397, allocations: 1.885 MB / 3.338 GB, free: 18.2 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000156/8.397, allocations: 21.73 kB / 3.338 GB, free: 18.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001941/8.399, allocations: 1.904 MB / 3.34 GB, free: 16.66 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.614e-06/8.399, allocations: 4 kB / 3.34 GB, free: 16.66 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002981/8.402, allocations: 2.059 MB / 3.342 GB, free: 15.35 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005806/8.403, allocations: 325.4 kB / 3.343 GB, free: 15.05 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000207/8.403, allocations: 22.58 kB / 3.343 GB, free: 15.04 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008035/8.404, allocations: 62 kB / 3.343 GB, free: 15 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.762e-05/8.404, allocations: 60.78 kB / 3.343 GB, free: 14.97 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.72e-05/8.404, allocations: 31.83 kB / 3.343 GB, free: 14.95 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001166/8.405, allocations: 0.6863 MB / 3.344 GB, free: 14.5 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.082e-06/8.405, allocations: 4 kB / 3.344 GB, free: 14.49 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005302/8.41, allocations: 1.325 MB / 3.345 GB, free: 13.28 MB / 426.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.008175/8.418, allocations: 1.763 MB / 3.347 GB, free: 11.99 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003481/8.422, allocations: 1.334 MB / 3.348 GB, free: 11.2 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.872e-06/8.422, allocations: 7.844 kB / 3.348 GB, free: 11.2 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002619/8.425, allocations: 0.9745 MB / 3.349 GB, free: 10.7 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003392/8.428, allocations: 0.5377 MB / 3.349 GB, free: 10.4 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4119/8.84, allocations: 77.06 MB / 3.425 GB, free: 71.48 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008635/8.841, allocations: 1.347 MB / 3.426 GB, free: 70.75 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004211/8.841, allocations: 114.3 kB / 3.426 GB, free: 70.74 MB / 426.7 MB Notification: Performance of SimCode: time 2.081e-06/8.841, allocations: 0 / 3.426 GB, free: 70.74 MB / 426.7 MB Notification: Performance of Templates: time 0.07448/8.916, allocations: 52.01 MB / 3.477 GB, free: 62.45 MB / 426.7 MB