Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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 1.916/1.916, allocations: 209.4 MB / 217.3 MB, free: 4.172 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.124e-05/2.139e-05, allocations: 7.984 kB / 271.3 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2621/0.2621, allocations: 48.68 MB / 320 MB, free: 14.39 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.658/5.92, allocations: 2.482 GB / 2.795 GB, free: 107 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002321/5.92, allocations: 80.83 kB / 2.795 GB, free: 107 MB / 426.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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/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/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/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/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/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/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/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.186/8.107, allocations: 484 MB / 3.268 GB, free: 36.52 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.412e-06/8.107, allocations: 0 / 3.268 GB, free: 36.52 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001151/8.107, allocations: 26.95 kB / 3.268 GB, free: 36.52 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.007713/8.115, allocations: 2.085 MB / 3.27 GB, free: 35.62 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.988e-05/8.115, allocations: 10.19 kB / 3.27 GB, free: 35.62 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005707/8.12, allocations: 0.5831 MB / 3.27 GB, free: 35.55 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002221/8.123, allocations: 0.9394 MB / 3.271 GB, free: 35.25 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.914e-05/8.123, allocations: 31.12 kB / 3.271 GB, free: 35.25 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001482/8.123, allocations: 58.91 kB / 3.271 GB, free: 35.25 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002154/8.125, allocations: 0.9763 MB / 3.272 GB, free: 35.24 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002164/8.127, allocations: 1.165 MB / 3.273 GB, free: 34.86 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.477e-05/8.127, allocations: 7.188 kB / 3.273 GB, free: 34.86 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001241/8.128, allocations: 6.594 kB / 3.273 GB, free: 34.86 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.481e-05/8.128, allocations: 28.39 kB / 3.274 GB, free: 34.86 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.9852/9.113, allocations: 263.6 MB / 3.531 GB, free: 16.52 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001835/9.115, allocations: 0.491 MB / 3.531 GB, free: 16.46 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008054/9.115, allocations: 242.3 kB / 3.532 GB, free: 16.44 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1442/9.26, allocations: 47.28 MB / 3.578 GB, free: 8.426 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.308e-05/9.26, allocations: 41.98 kB / 3.578 GB, free: 8.379 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=41): time 3.741e-06/9.26, allocations: 3.719 kB / 3.578 GB, free: 8.379 MB / 0.5105 GB Notification: Performance of matching and sorting (n=41): time 0.006497/9.266, allocations: 1.443 MB / 3.579 GB, free: 7.617 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001326/9.266, allocations: 188.6 kB / 3.579 GB, free: 7.395 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002429/9.269, allocations: 0.8662 MB / 3.58 GB, free: 6.848 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0001132/9.269, allocations: 25.7 kB / 3.58 GB, free: 6.816 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008326/9.27, allocations: 0.7024 MB / 3.581 GB, free: 6.395 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002838/9.27, allocations: 149.9 kB / 3.581 GB, free: 6.301 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.765e-05/9.27, allocations: 0 / 3.581 GB, free: 6.301 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002657/9.271, allocations: 352.2 kB / 3.582 GB, free: 5.98 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001083/9.272, allocations: 286.1 kB / 3.582 GB, free: 5.828 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001661/9.273, allocations: 0.743 MB / 3.583 GB, free: 5.043 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005981/9.279, allocations: 0.6893 MB / 3.583 GB, free: 4.676 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.051e-05/9.279, allocations: 6.953 kB / 3.583 GB, free: 4.672 MB / 0.5105 GB Notification: Performance of matching and sorting (n=144) (initialization): time 0.005485/9.285, allocations: 1.402 MB / 3.585 GB, free: 3.836 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 3.645e-05/9.285, allocations: 8 kB / 3.585 GB, free: 3.828 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.905e-05/9.285, allocations: 17.81 kB / 3.585 GB, free: 3.812 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005892/9.286, allocations: 189.3 kB / 3.585 GB, free: 3.691 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001556/9.287, allocations: 313.7 kB / 3.585 GB, free: 3.473 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002356/9.29, allocations: 1.655 MB / 3.587 GB, free: 2.074 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001499/9.291, allocations: 157.6 kB / 3.587 GB, free: 1.969 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001639/9.291, allocations: 72.67 kB / 3.587 GB, free: 1.914 MB / 0.5105 GB 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 () * 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.0002621/9.292, allocations: 150.2 kB / 3.587 GB, free: 1.789 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002388/9.292, allocations: 102.8 kB / 3.587 GB, free: 1.688 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005292/9.297, allocations: 2.932 MB / 3.59 GB, free: 248 kB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.68e-05/9.297, allocations: 21.86 kB / 3.59 GB, free: 240 kB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-06/9.297, allocations: 0 / 3.59 GB, free: 240 kB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.032e-05/9.297, allocations: 3.516 kB / 3.59 GB, free: 240 kB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2773/9.575, allocations: 1.402 MB / 3.591 GB, free: 115.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-05/9.575, allocations: 0.5 kB / 3.591 GB, free: 115.9 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001033/9.576, allocations: 117 kB / 3.592 GB, free: 115.9 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003249/9.579, allocations: 2.175 MB / 3.594 GB, free: 115.8 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.69e-05/9.579, allocations: 4.188 kB / 3.594 GB, free: 115.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003562/9.583, allocations: 2.982 MB / 3.597 GB, free: 114.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.356e-06/9.583, allocations: 5.25 kB / 3.597 GB, free: 114.7 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003833/9.587, allocations: 2.102 MB / 3.599 GB, free: 114.4 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005908/9.587, allocations: 290.5 kB / 3.599 GB, free: 114.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000239/9.587, allocations: 5.594 kB / 3.599 GB, free: 114.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006854/9.588, allocations: 16.88 kB / 3.599 GB, free: 114.3 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.744e-05/9.588, allocations: 32.28 kB / 3.599 GB, free: 114.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.289e-05/9.588, allocations: 15 kB / 3.599 GB, free: 114.3 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001322/9.59, allocations: 0.7821 MB / 3.6 GB, free: 114.2 MB / 0.5105 GB Notification: Performance of sort global known variables: time 9.37e-07/9.59, allocations: 2.625 kB / 3.6 GB, free: 114.2 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.005394/9.595, allocations: 1.262 MB / 3.601 GB, free: 114.1 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 29 * 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 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.00809/9.603, allocations: 1.872 MB / 3.603 GB, free: 114 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.002732/9.606, allocations: 0.8971 MB / 3.604 GB, free: 114 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 5.275e-06/9.606, allocations: 0.875 kB / 3.604 GB, free: 114 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.002148/9.608, allocations: 492.2 kB / 3.604 GB, free: 114 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002944/9.611, allocations: 426.7 kB / 3.605 GB, free: 114 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003075/9.614, allocations: 1.572 MB / 3.606 GB, free: 113.5 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007091/9.615, allocations: 1.183 MB / 3.607 GB, free: 112.8 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003379/9.615, allocations: 104.2 kB / 3.607 GB, free: 112.8 MB / 0.5105 GB Notification: Performance of SimCode: time 1.692e-06/9.615, allocations: 1.031 kB / 3.607 GB, free: 112.8 MB / 0.5105 GB Notification: Performance of Templates: time 0.07115/9.686, allocations: 48.53 MB / 3.655 GB, free: 110 MB / 0.5105 GB