Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.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) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|leftBoundary1.ports.1..m_flow|leftBoundary1.ports.1..p|leftBoundary1.ports.1..h_outflow|rightBoundary1.ports.1..m_flow|rightBoundary1.ports.1..p|rightBoundary1.ports.1..h_outflow|suddenExpansion1.port_b.m_flow|suddenExpansion1.port_b.p|suddenExpansion1.port_b.h_outflow|leftBoundary2.ports.1..m_flow|leftBoundary2.ports.1..p|leftBoundary2.ports.1..h_outflow|rightBoundary2.ports.1..m_flow|rightBoundary2.ports.1..p|rightBoundary2.ports.1..h_outflow|suddenExpansion2.port_b.m_flow|suddenExpansion2.port_b.p|suddenExpansion2.port_b.h_outflow|leftAdapter.port_b.m_flow|leftAdapter.port_b.p|leftAdapter.port_b.h_outflow|rightAdapter.port_b.m_flow|rightAdapter.port_b.p|rightAdapter.port_b.h_outflow",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion") Notification: Performance of loadModel(ModelicaTest): time 2.06/2.06, allocations: 209.2 MB / 225.4 MB, free: 0.6133 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004637/0.0004637, allocations: 23.98 kB / 283.1 MB, free: 9.676 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3649/0.3654, allocations: 48.69 MB / 331.8 MB, free: 6.508 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.141/7.507, allocations: 2.483 GB / 2.807 GB, free: 38.73 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003155/7.507, allocations: 91.06 kB / 2.807 GB, free: 38.68 MB / 442.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.731/10.24, allocations: 497.1 MB / 3.293 GB, free: 32.77 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.354e-06/10.24, allocations: 0 / 3.293 GB, free: 32.77 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001027/10.24, allocations: 35.31 kB / 3.293 GB, free: 32.77 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 248 * Number of variables: 248 Notification: Performance of Generate backend data structure: time 0.01037/10.25, allocations: 2.215 MB / 3.295 GB, free: 31.56 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/10.25, allocations: 14 kB / 3.295 GB, free: 31.56 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00576/10.25, allocations: 0.5907 MB / 3.296 GB, free: 31.42 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002647/10.26, allocations: 0.9457 MB / 3.296 GB, free: 30.87 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.497e-05/10.26, allocations: 69.5 kB / 3.297 GB, free: 30.84 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002078/10.26, allocations: 94.75 kB / 3.297 GB, free: 30.8 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004548/10.26, allocations: 1.645 MB / 3.298 GB, free: 30 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.086e-05/10.26, allocations: 7.906 kB / 3.298 GB, free: 30 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001576/10.26, allocations: 49.22 kB / 3.298 GB, free: 29.96 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.806e-05/10.26, allocations: 27 kB / 3.298 GB, free: 29.96 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004276/10.27, allocations: 1.414 MB / 3.3 GB, free: 29.54 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01045/10.28, allocations: 8.051 MB / 3.308 GB, free: 22.89 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003801/10.28, allocations: 1.645 MB / 3.309 GB, free: 21.8 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.6381/10.92, allocations: 80.21 MB / 3.387 GB, free: 36.22 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.931e-05/10.92, allocations: 46.95 kB / 3.388 GB, free: 36.18 MB / 458.7 MB Notification: Performance of pre-optimization done (n=69): time 3.997e-06/10.92, allocations: 0 / 3.388 GB, free: 36.18 MB / 458.7 MB Notification: Performance of matching and sorting (n=69): time 0.007643/10.93, allocations: 1.903 MB / 3.389 GB, free: 36.04 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.358e-05/10.93, allocations: 187.5 kB / 3.39 GB, free: 35.82 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001677/10.93, allocations: 0.9223 MB / 3.39 GB, free: 35.68 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001684/10.93, allocations: 39.73 kB / 3.391 GB, free: 35.65 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004862/10.93, allocations: 0.6096 MB / 3.391 GB, free: 35.35 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003243/10.93, allocations: 251.3 kB / 3.391 GB, free: 35.23 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.907e-05/10.93, allocations: 23.72 kB / 3.391 GB, free: 35.23 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001044/10.93, allocations: 356.4 kB / 3.392 GB, free: 34.91 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007727/10.93, allocations: 298.9 kB / 3.392 GB, free: 34.91 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001083/10.93, allocations: 0.7841 MB / 3.393 GB, free: 34.32 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00107/10.93, allocations: 426.3 kB / 3.393 GB, free: 34.31 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.326e-05/10.93, allocations: 4.75 kB / 3.393 GB, free: 34.31 MB / 458.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.003151/10.94, allocations: 1.214 MB / 3.394 GB, free: 34.23 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.752e-05/10.94, allocations: 14.38 kB / 3.394 GB, free: 34.23 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.285e-05/10.94, allocations: 14.62 kB / 3.394 GB, free: 34.23 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01232/10.95, allocations: 0.8292 MB / 3.395 GB, free: 34.22 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002552/10.95, allocations: 306.7 kB / 3.395 GB, free: 34.22 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001524/10.95, allocations: 1.535 MB / 3.397 GB, free: 33.11 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001665/10.95, allocations: 144.4 kB / 3.397 GB, free: 33.08 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001998/10.96, allocations: 72.08 kB / 3.397 GB, free: 33.08 MB / 458.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 (rightAdapter.state_b.phase,rightAdapter.state_a.phase,rightAdapter.state_a_nondes.phase,rightAdapter.state_b_des.phase,leftAdapter.state_b.phase,leftAdapter.state_a.phase,leftAdapter.state_a_nondes.phase,leftAdapter.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 (130): * Single equations (assignments): 128 * 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.0007965/10.96, allocations: 300.5 kB / 3.397 GB, free: 32.96 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003411/10.96, allocations: 108.7 kB / 3.398 GB, free: 32.91 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006671/10.96, allocations: 4.454 MB / 3.402 GB, free: 32.55 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.783e-05/10.96, allocations: 45.08 kB / 3.402 GB, free: 32.55 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.345e-05/10.96, allocations: 3.953 kB / 3.402 GB, free: 32.55 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.176e-05/10.96, allocations: 3.516 kB / 3.402 GB, free: 32.55 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007825/10.97, allocations: 4.894 MB / 3.407 GB, free: 31.48 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.639e-05/10.97, allocations: 0 / 3.407 GB, free: 31.48 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001811/10.97, allocations: 173.9 kB / 3.407 GB, free: 31.48 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01318/10.99, allocations: 1.886 MB / 3.409 GB, free: 31.45 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001761/10.99, allocations: 24.11 kB / 3.409 GB, free: 31.45 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002003/10.99, allocations: 1.898 MB / 3.411 GB, free: 30.31 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.891e-06/10.99, allocations: 7 kB / 3.411 GB, free: 30.31 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003525/10.99, allocations: 1.991 MB / 3.413 GB, free: 29.89 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007827/10.99, allocations: 326.2 kB / 3.413 GB, free: 29.66 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003187/10.99, allocations: 16.84 kB / 3.413 GB, free: 29.66 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009402/10.99, allocations: 58.31 kB / 3.413 GB, free: 29.65 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001183/10.99, allocations: 54.08 kB / 3.413 GB, free: 29.64 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.011e-05/10.99, allocations: 22.34 kB / 3.413 GB, free: 29.64 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001435/11, allocations: 0.701 MB / 3.414 GB, free: 29.54 MB / 458.7 MB Notification: Performance of sort global known variables: time 6.31e-07/11, allocations: 3.875 kB / 3.414 GB, free: 29.54 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.008041/11, allocations: 1.315 MB / 3.415 GB, free: 29.46 MB / 458.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 (75): * Single equations (assignments): 65 * 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.01306/11.02, allocations: 1.758 MB / 3.417 GB, free: 29.27 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0177/11.03, allocations: 1.268 MB / 3.418 GB, free: 29.23 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.394e-06/11.03, allocations: 0 / 3.418 GB, free: 29.23 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004518/11.04, allocations: 0.937 MB / 3.419 GB, free: 29.21 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01399/11.05, allocations: 0.5317 MB / 3.419 GB, free: 29.19 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2168/11.27, allocations: 78.35 MB / 3.496 GB, free: 15.49 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008717/11.27, allocations: 1.341 MB / 3.497 GB, free: 14.35 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004372/11.27, allocations: 103 kB / 3.497 GB, free: 14.26 MB / 458.7 MB Notification: Performance of SimCode: time 1.322e-06/11.27, allocations: 0 / 3.497 GB, free: 14.26 MB / 458.7 MB Notification: Performance of Templates: time 0.5166/11.79, allocations: 51.33 MB / 3.547 GB, free: 62.85 MB / 474.7 MB