Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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.2_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion") Notification: Performance of loadModel(ModelicaTest): time 2.234/2.234, allocations: 235.1 MB / 243 MB, free: 9.59 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.248e-05/2.256e-05, allocations: 4 kB / 303.2 MB, free: 13.29 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2756/0.2756, allocations: 54.85 MB / 358 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.305/6.58, allocations: 2.593 GB / 2.943 GB, free: 108.1 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002349/6.581, allocations: 82.5 kB / 2.943 GB, free: 108.1 MB / 474.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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/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/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/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/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/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/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/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.08/8.66, allocations: 494.8 MB / 3.426 GB, free: 6.398 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.247e-06/8.66, allocations: 0 / 3.426 GB, free: 6.398 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001107/8.66, allocations: 31.08 kB / 3.426 GB, free: 6.371 MB / 490.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.00939/8.67, allocations: 2.174 MB / 3.428 GB, free: 4.168 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/8.67, allocations: 15.97 kB / 3.428 GB, free: 4.152 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005969/8.676, allocations: 0.6163 MB / 3.429 GB, free: 3.535 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002668/8.679, allocations: 0.9356 MB / 3.43 GB, free: 2.574 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.813e-05/8.679, allocations: 34.66 kB / 3.43 GB, free: 2.543 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001894/8.679, allocations: 52 kB / 3.43 GB, free: 2.492 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002474/8.681, allocations: 0.9724 MB / 3.431 GB, free: 1.52 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002586/8.684, allocations: 1.177 MB / 3.432 GB, free: 228 kB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.913e-05/8.684, allocations: 7.938 kB / 3.432 GB, free: 220 kB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000139/8.684, allocations: 4 kB / 3.432 GB, free: 216 kB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.551e-05/8.684, allocations: 28 kB / 3.432 GB, free: 188 kB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 1.313/9.998, allocations: 263.9 MB / 3.69 GB, free: 91.01 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001039/9.999, allocations: 0.4885 MB / 3.69 GB, free: 90.96 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004557/9.999, allocations: 237.1 kB / 3.69 GB, free: 90.94 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1089/10.11, allocations: 47.29 MB / 3.737 GB, free: 62.65 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.985e-05/10.11, allocations: 40.53 kB / 3.737 GB, free: 62.61 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=41): time 5.253e-06/10.11, allocations: 4 kB / 3.737 GB, free: 62.61 MB / 0.5573 GB Notification: Performance of matching and sorting (n=41): time 0.006436/10.11, allocations: 1.434 MB / 3.738 GB, free: 62.53 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.476e-05/10.11, allocations: 183.7 kB / 3.738 GB, free: 62.31 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001523/10.12, allocations: 0.8726 MB / 3.739 GB, free: 62.16 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 8.048e-05/10.12, allocations: 25.7 kB / 3.739 GB, free: 62.12 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.000414/10.12, allocations: 0.7031 MB / 3.74 GB, free: 61.76 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001661/10.12, allocations: 152.5 kB / 3.74 GB, free: 61.69 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.929e-05/10.12, allocations: 0 / 3.74 GB, free: 61.69 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 9.569e-05/10.12, allocations: 355.2 kB / 3.74 GB, free: 61.38 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005446/10.12, allocations: 281 kB / 3.74 GB, free: 61.38 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007372/10.12, allocations: 0.7484 MB / 3.741 GB, free: 60.77 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003815/10.12, allocations: 0.6952 MB / 3.742 GB, free: 60.74 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-05/10.12, allocations: 2.938 kB / 3.742 GB, free: 60.74 MB / 0.5573 GB Notification: Performance of matching and sorting (n=144) (initialization): time 0.005563/10.13, allocations: 1.388 MB / 3.743 GB, free: 60.65 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 3.081e-05/10.13, allocations: 10.38 kB / 3.743 GB, free: 60.65 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.252e-05/10.13, allocations: 22.94 kB / 3.743 GB, free: 60.65 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005995/10.13, allocations: 192.6 kB / 3.743 GB, free: 60.64 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001747/10.13, allocations: 315.3 kB / 3.744 GB, free: 60.64 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002046/10.13, allocations: 1.635 MB / 3.745 GB, free: 59.52 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001676/10.13, allocations: 158.3 kB / 3.745 GB, free: 59.48 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001822/10.13, allocations: 77.95 kB / 3.746 GB, free: 59.47 MB / 0.5573 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.0002527/10.13, allocations: 157.5 kB / 3.746 GB, free: 59.36 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002687/10.14, allocations: 108.6 kB / 3.746 GB, free: 59.31 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005091/10.14, allocations: 2.914 MB / 3.749 GB, free: 59.1 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.604e-05/10.14, allocations: 21.58 kB / 3.749 GB, free: 59.1 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.235e-06/10.14, allocations: 0 / 3.749 GB, free: 59.1 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.279e-05/10.14, allocations: 6.938 kB / 3.749 GB, free: 59.1 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002308/10.14, allocations: 1.284 MB / 3.75 GB, free: 58.91 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.143e-06/10.14, allocations: 0 / 3.75 GB, free: 58.91 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001039/10.14, allocations: 129 kB / 3.75 GB, free: 58.9 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002695/10.15, allocations: 2.172 MB / 3.752 GB, free: 58.85 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.09e-05/10.15, allocations: 8.531 kB / 3.752 GB, free: 58.85 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003229/10.15, allocations: 2.991 MB / 3.755 GB, free: 57.69 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.287e-06/10.15, allocations: 0 / 3.755 GB, free: 57.69 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003733/10.15, allocations: 2.096 MB / 3.757 GB, free: 57.29 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006014/10.15, allocations: 288.7 kB / 3.757 GB, free: 57.12 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002274/10.15, allocations: 0 / 3.757 GB, free: 57.12 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006287/10.16, allocations: 23.7 kB / 3.757 GB, free: 57.12 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.017e-05/10.16, allocations: 31.88 kB / 3.757 GB, free: 57.12 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.785e-05/10.16, allocations: 19.44 kB / 3.757 GB, free: 57.12 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.001323/10.16, allocations: 0.7795 MB / 3.758 GB, free: 57.01 MB / 0.5573 GB Notification: Performance of sort global known variables: time 9.93e-07/10.16, allocations: 0 / 3.758 GB, free: 57.01 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.005481/10.16, allocations: 1.273 MB / 3.759 GB, free: 56.98 MB / 0.5573 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.008652/10.17, allocations: 1.885 MB / 3.761 GB, free: 56.69 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.002879/10.17, allocations: 0.8918 MB / 3.762 GB, free: 56.68 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 7.286e-06/10.17, allocations: 0 / 3.762 GB, free: 56.68 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001891/10.18, allocations: 490.5 kB / 3.763 GB, free: 56.67 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002816/10.18, allocations: 430.2 kB / 3.763 GB, free: 56.63 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003417/10.18, allocations: 1.582 MB / 3.765 GB, free: 56.13 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006927/10.18, allocations: 1.177 MB / 3.766 GB, free: 55.41 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003419/10.18, allocations: 101.2 kB / 3.766 GB, free: 55.41 MB / 0.5573 GB Notification: Performance of SimCode: time 1.868e-06/10.18, allocations: 4 kB / 3.766 GB, free: 55.41 MB / 0.5573 GB Notification: Performance of Templates: time 0.07236/10.26, allocations: 48.71 MB / 3.813 GB, free: 35.91 MB / 0.5573 GB