Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_cpp_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") Notification: Performance of loadModel(Modelica): time 1.828/1.828, allocations: 194.9 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003685/0.0003687, allocations: 8 kB / 263.9 MB, free: 13.58 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0838/0.08421, allocations: 44.51 MB / 308.4 MB, free: 1 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.052/6.137, allocations: 2.585 GB / 2.886 GB, free: 74.07 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000214/6.137, allocations: 87.7 kB / 2.886 GB, free: 74.03 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.178/8.315, allocations: 0.497 GB / 3.383 GB, free: 32.87 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.355e-06/8.315, allocations: 0 / 3.383 GB, free: 32.87 MB / 426.7 MB Notification: Performance of Transformations before backend: time 9.881e-05/8.315, allocations: 37.56 kB / 3.383 GB, free: 32.86 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.008541/8.323, allocations: 2.328 MB / 3.385 GB, free: 31.59 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.965e-05/8.323, allocations: 7.594 kB / 3.385 GB, free: 31.59 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006886/8.33, allocations: 0.7103 MB / 3.386 GB, free: 31.43 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002319/8.333, allocations: 0.954 MB / 3.387 GB, free: 30.88 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.618e-05/8.333, allocations: 75.33 kB / 3.387 GB, free: 30.84 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000172/8.333, allocations: 103.5 kB / 3.387 GB, free: 30.81 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004726/8.338, allocations: 1.7 MB / 3.389 GB, free: 29.95 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.897e-05/8.338, allocations: 11.7 kB / 3.389 GB, free: 29.94 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001525/8.338, allocations: 49.66 kB / 3.389 GB, free: 29.91 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.593e-05/8.338, allocations: 24.97 kB / 3.389 GB, free: 29.91 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004678/8.343, allocations: 1.51 MB / 3.39 GB, free: 29.45 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01008/8.353, allocations: 8.254 MB / 3.398 GB, free: 22.66 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003791/8.357, allocations: 1.69 MB / 3.4 GB, free: 21.55 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.5115/8.868, allocations: 80.42 MB / 3.479 GB, free: 24.04 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.291e-05/8.868, allocations: 47.34 kB / 3.479 GB, free: 24 MB / 442.7 MB Notification: Performance of pre-optimization done (n=77): time 4.997e-06/8.868, allocations: 1.969 kB / 3.479 GB, free: 24 MB / 442.7 MB Notification: Performance of matching and sorting (n=77): time 0.006936/8.875, allocations: 2.031 MB / 3.481 GB, free: 23.84 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000143/8.875, allocations: 195.7 kB / 3.481 GB, free: 23.62 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00136/8.877, allocations: 0.8134 MB / 3.482 GB, free: 23.48 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001524/8.877, allocations: 44.17 kB / 3.482 GB, free: 23.45 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004188/8.877, allocations: 0.611 MB / 3.482 GB, free: 23.14 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002557/8.878, allocations: 280 kB / 3.482 GB, free: 23.01 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.114e-05/8.878, allocations: 28.09 kB / 3.482 GB, free: 23.01 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002057/8.878, allocations: 354 kB / 3.483 GB, free: 22.7 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007548/8.879, allocations: 336.8 kB / 3.483 GB, free: 22.7 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000966/8.88, allocations: 0.8238 MB / 3.484 GB, free: 22.09 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009311/8.881, allocations: 460.7 kB / 3.484 GB, free: 22.06 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.321e-05/8.881, allocations: 3.281 kB / 3.484 GB, free: 22.06 MB / 442.7 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.00289/8.883, allocations: 1.306 MB / 3.486 GB, free: 21.97 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.425e-05/8.884, allocations: 18.53 kB / 3.486 GB, free: 21.97 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.24e-05/8.884, allocations: 14.47 kB / 3.486 GB, free: 21.97 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007291/8.891, allocations: 0.8232 MB / 3.486 GB, free: 21.95 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001938/8.893, allocations: 329.5 kB / 3.487 GB, free: 21.94 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00164/8.895, allocations: 1.529 MB / 3.488 GB, free: 20.83 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001476/8.896, allocations: 156.1 kB / 3.488 GB, free: 20.79 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001438/8.896, allocations: 78.67 kB / 3.489 GB, free: 20.79 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 () * 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.0007369/8.897, allocations: 298.2 kB / 3.489 GB, free: 20.68 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002613/8.897, allocations: 110.4 kB / 3.489 GB, free: 20.62 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006109/8.903, allocations: 4.562 MB / 3.493 GB, free: 20.23 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.783e-05/8.903, allocations: 43.62 kB / 3.493 GB, free: 20.23 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.711e-06/8.903, allocations: 0 / 3.493 GB, free: 20.23 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.865e-05/8.904, allocations: 10.72 kB / 3.493 GB, free: 20.23 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007497/8.911, allocations: 5.022 MB / 3.498 GB, free: 19.1 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.219e-05/8.911, allocations: 3.469 kB / 3.498 GB, free: 19.1 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001422/8.912, allocations: 190.7 kB / 3.499 GB, free: 19.1 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008906/8.921, allocations: 1.885 MB / 3.5 GB, free: 19.05 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001427/8.922, allocations: 23.23 kB / 3.5 GB, free: 19.05 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002013/8.924, allocations: 1.904 MB / 3.502 GB, free: 17.91 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.43e-06/8.924, allocations: 0 / 3.502 GB, free: 17.91 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003684/8.927, allocations: 2.086 MB / 3.504 GB, free: 17.47 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001033/8.928, allocations: 327.3 kB / 3.505 GB, free: 17.23 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003916/8.929, allocations: 20.41 kB / 3.505 GB, free: 17.23 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001456/8.93, allocations: 57.77 kB / 3.505 GB, free: 17.23 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001618/8.931, allocations: 57.83 kB / 3.505 GB, free: 17.22 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001168/8.931, allocations: 32.16 kB / 3.505 GB, free: 17.22 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001929/8.933, allocations: 0.6974 MB / 3.505 GB, free: 17.11 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.418e-06/8.933, allocations: 0 / 3.505 GB, free: 17.11 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.008139/8.941, allocations: 1.337 MB / 3.507 GB, free: 17.04 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 () * 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.009492/8.95, allocations: 1.77 MB / 3.508 GB, free: 16.76 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003794/8.954, allocations: 1.355 MB / 3.51 GB, free: 16.72 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.225e-06/8.954, allocations: 1.969 kB / 3.51 GB, free: 16.72 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002625/8.957, allocations: 0.9953 MB / 3.511 GB, free: 16.69 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003222/8.96, allocations: 0.5387 MB / 3.511 GB, free: 16.65 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1964/9.157, allocations: 82.36 MB / 3.592 GB, free: 2.367 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001331/9.158, allocations: 1.354 MB / 3.593 GB, free: 1.227 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004606/9.158, allocations: 116.9 kB / 3.593 GB, free: 1.133 MB / 458.7 MB Notification: Performance of SimCode: time 1.689e-06/9.158, allocations: 0 / 3.593 GB, free: 1.133 MB / 458.7 MB Notification: Performance of Templates: time 0.5379/9.696, allocations: 52.87 MB / 3.645 GB, free: 65.79 MB / 458.7 MB