Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.691/1.691, allocations: 171.1 MB / 187.3 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003662/0.0003663, allocations: 12 kB / 233.8 MB, free: 0.9727 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0911/0.0915, allocations: 38.75 MB / 272.5 MB, free: 10.14 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.133/7.224, allocations: 2.475 GB / 2.741 GB, free: 87.64 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002465/7.225, allocations: 82.47 kB / 2.741 GB, free: 87.63 MB / 362.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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/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/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/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/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/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/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.453/9.678, allocations: 498.1 MB / 3.228 GB, free: 24.23 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.585e-06/9.678, allocations: 3.281 kB / 3.228 GB, free: 24.23 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001005/9.678, allocations: 30.34 kB / 3.228 GB, free: 24.22 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.01028/9.688, allocations: 2.229 MB / 3.23 GB, free: 22.98 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.552e-05/9.688, allocations: 7.25 kB / 3.23 GB, free: 22.98 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00724/9.695, allocations: 0.6867 MB / 3.231 GB, free: 22.81 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002955/9.698, allocations: 0.9521 MB / 3.231 GB, free: 22.26 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.036e-05/9.699, allocations: 75.8 kB / 3.232 GB, free: 22.22 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00023/9.699, allocations: 98.69 kB / 3.232 GB, free: 22.19 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005286/9.704, allocations: 1.709 MB / 3.233 GB, free: 21.35 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.98e-05/9.704, allocations: 7.844 kB / 3.233 GB, free: 21.34 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001947/9.704, allocations: 45.09 kB / 3.233 GB, free: 21.31 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.305e-05/9.704, allocations: 30.97 kB / 3.233 GB, free: 21.31 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00507/9.709, allocations: 1.517 MB / 3.235 GB, free: 20.85 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01346/9.723, allocations: 8.259 MB / 3.243 GB, free: 14.09 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004061/9.727, allocations: 1.691 MB / 3.245 GB, free: 12.97 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.5987/10.33, allocations: 80.21 MB / 3.323 GB, free: 25.43 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.923e-05/10.33, allocations: 41.75 kB / 3.323 GB, free: 25.39 MB / 410.7 MB Notification: Performance of pre-optimization done (n=77): time 3.686e-06/10.33, allocations: 0 / 3.323 GB, free: 25.39 MB / 410.7 MB Notification: Performance of matching and sorting (n=77): time 0.008324/10.33, allocations: 2.027 MB / 3.325 GB, free: 25.23 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001133/10.33, allocations: 193.2 kB / 3.325 GB, free: 25.02 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001657/10.34, allocations: 0.9219 MB / 3.326 GB, free: 24.87 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001882/10.34, allocations: 40.36 kB / 3.326 GB, free: 24.84 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004447/10.34, allocations: 0.6179 MB / 3.327 GB, free: 24.53 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003439/10.34, allocations: 280.3 kB / 3.327 GB, free: 24.4 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.08e-05/10.34, allocations: 24.81 kB / 3.327 GB, free: 24.4 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001668/10.34, allocations: 353.1 kB / 3.327 GB, free: 24.09 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009498/10.34, allocations: 340.3 kB / 3.328 GB, free: 24.09 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001159/10.34, allocations: 0.8271 MB / 3.328 GB, free: 23.48 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001235/10.34, allocations: 460.1 kB / 3.329 GB, free: 23.45 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.289e-05/10.34, allocations: 5.844 kB / 3.329 GB, free: 23.45 MB / 410.7 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.003495/10.34, allocations: 1.312 MB / 3.33 GB, free: 23.36 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.339e-05/10.34, allocations: 10.84 kB / 3.33 GB, free: 23.36 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.368e-05/10.34, allocations: 14.47 kB / 3.33 GB, free: 23.36 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01217/10.36, allocations: 0.8274 MB / 3.331 GB, free: 23.33 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002736/10.36, allocations: 322.5 kB / 3.331 GB, free: 23.33 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001677/10.36, allocations: 1.537 MB / 3.333 GB, free: 22.21 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001748/10.36, allocations: 162.7 kB / 3.333 GB, free: 22.17 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001919/10.36, allocations: 68.86 kB / 3.333 GB, free: 22.17 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.0008351/10.36, allocations: 299.6 kB / 3.333 GB, free: 22.05 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000322/10.36, allocations: 112.9 kB / 3.333 GB, free: 22 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007104/10.37, allocations: 4.548 MB / 3.338 GB, free: 21.61 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.729e-05/10.37, allocations: 50.19 kB / 3.338 GB, free: 21.61 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.271e-05/10.37, allocations: 3.953 kB / 3.338 GB, free: 21.6 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.801e-05/10.37, allocations: 5.438 kB / 3.338 GB, free: 21.6 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008576/10.38, allocations: 5.019 MB / 3.343 GB, free: 20.49 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.641e-05/10.38, allocations: 0 / 3.343 GB, free: 20.49 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002067/10.38, allocations: 196.2 kB / 3.343 GB, free: 20.49 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01282/10.4, allocations: 1.881 MB / 3.345 GB, free: 20.45 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001789/10.4, allocations: 20.97 kB / 3.345 GB, free: 20.45 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002045/10.4, allocations: 1.908 MB / 3.347 GB, free: 19.3 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/10.4, allocations: 0 / 3.347 GB, free: 19.3 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003591/10.4, allocations: 2.078 MB / 3.349 GB, free: 18.88 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006545/10.4, allocations: 329.1 kB / 3.349 GB, free: 18.64 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002987/10.4, allocations: 17.47 kB / 3.349 GB, free: 18.64 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001044/10.4, allocations: 57.39 kB / 3.349 GB, free: 18.62 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001092/10.4, allocations: 56.08 kB / 3.349 GB, free: 18.62 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.24e-05/10.4, allocations: 29.39 kB / 3.349 GB, free: 18.62 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001315/10.4, allocations: 0.7033 MB / 3.35 GB, free: 18.51 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.31e-07/10.4, allocations: 0 / 3.35 GB, free: 18.51 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006326/10.41, allocations: 1.34 MB / 3.351 GB, free: 18.43 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.01048/10.42, allocations: 1.741 MB / 3.353 GB, free: 18.16 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004923/10.43, allocations: 1.371 MB / 3.354 GB, free: 18.12 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.215e-06/10.43, allocations: 3.719 kB / 3.354 GB, free: 18.12 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003743/10.43, allocations: 0.9958 MB / 3.355 GB, free: 18.1 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004889/10.44, allocations: 0.5439 MB / 3.356 GB, free: 18.05 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5098/10.95, allocations: 78.39 MB / 3.432 GB, free: 59.36 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009483/10.95, allocations: 1.345 MB / 3.434 GB, free: 58.64 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006295/10.95, allocations: 117.4 kB / 3.434 GB, free: 58.64 MB / 410.7 MB Notification: Performance of SimCode: time 1.613e-06/10.95, allocations: 0 / 3.434 GB, free: 58.64 MB / 410.7 MB Notification: Performance of Templates: time 0.09748/11.04, allocations: 52.29 MB / 3.485 GB, free: 55.12 MB / 410.7 MB