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/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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/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.127/2.127, allocations: 235 MB / 248.1 MB, free: 14.39 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.028e-05/4.056e-05, allocations: 4 kB / 309.7 MB, free: 1.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3375/0.3376, allocations: 54.85 MB / 364.5 MB, free: 5.535 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.797/6.135, allocations: 2.594 GB / 2.95 GB, free: 86.15 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002478/6.135, allocations: 79.95 kB / 2.95 GB, free: 86.07 MB / 490.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.302/8.437, allocations: 0.4943 GB / 3.444 GB, free: 38.82 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.241e-06/8.437, allocations: 2.406 kB / 3.444 GB, free: 38.82 MB / 490.7 MB Notification: Performance of Transformations before backend: time 9.699e-05/8.437, allocations: 29.64 kB / 3.444 GB, free: 38.82 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.008876/8.446, allocations: 2.187 MB / 3.446 GB, free: 37.95 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.511e-05/8.446, allocations: 12.06 kB / 3.446 GB, free: 37.95 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006259/8.453, allocations: 0.62 MB / 3.447 GB, free: 37.88 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002328/8.455, allocations: 0.9393 MB / 3.448 GB, free: 37.57 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.564e-05/8.455, allocations: 70.12 kB / 3.448 GB, free: 37.56 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001595/8.455, allocations: 92.94 kB / 3.448 GB, free: 37.56 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004696/8.46, allocations: 1.738 MB / 3.45 GB, free: 37.18 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.676e-05/8.46, allocations: 3.844 kB / 3.45 GB, free: 37.18 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001451/8.46, allocations: 49.91 kB / 3.45 GB, free: 37.18 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.563e-05/8.46, allocations: 26.38 kB / 3.45 GB, free: 37.18 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004609/8.465, allocations: 1.494 MB / 3.451 GB, free: 37.17 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009153/8.474, allocations: 8.062 MB / 3.459 GB, free: 31.57 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003648/8.478, allocations: 1.753 MB / 3.461 GB, free: 30.77 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007185/8.478, allocations: 364.6 kB / 3.461 GB, free: 30.76 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2111/8.69, allocations: 80.7 MB / 3.54 GB, free: 17.62 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.096e-05/8.69, allocations: 42.31 kB / 3.54 GB, free: 17.59 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=69): time 4.285e-06/8.69, allocations: 0 / 3.54 GB, free: 17.59 MB / 0.5105 GB Notification: Performance of matching and sorting (n=69): time 0.005751/8.695, allocations: 1.59 MB / 3.542 GB, free: 17.48 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001299/8.696, allocations: 187.9 kB / 3.542 GB, free: 17.26 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001775/8.697, allocations: 0.8167 MB / 3.543 GB, free: 17.09 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0001452/8.698, allocations: 36.39 kB / 3.543 GB, free: 17.05 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004158/8.698, allocations: 0.6154 MB / 3.543 GB, free: 16.68 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002469/8.698, allocations: 245.1 kB / 3.543 GB, free: 16.53 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.918e-05/8.698, allocations: 27.03 kB / 3.544 GB, free: 16.53 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000194/8.699, allocations: 355.9 kB / 3.544 GB, free: 16.21 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006774/8.699, allocations: 293.5 kB / 3.544 GB, free: 16.21 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008632/8.7, allocations: 0.7635 MB / 3.545 GB, free: 15.59 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008474/8.701, allocations: 428.3 kB / 3.545 GB, free: 15.56 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.263e-05/8.701, allocations: 3.844 kB / 3.545 GB, free: 15.56 MB / 0.5105 GB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002563/8.704, allocations: 1.192 MB / 3.546 GB, free: 15.47 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 3.324e-05/8.704, allocations: 16.81 kB / 3.546 GB, free: 15.47 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.157e-05/8.704, allocations: 14.47 kB / 3.546 GB, free: 15.47 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008082/8.712, allocations: 0.8185 MB / 3.547 GB, free: 15.45 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001923/8.714, allocations: 313.8 kB / 3.548 GB, free: 15.44 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002186/8.716, allocations: 1.52 MB / 3.549 GB, free: 30.32 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001492/8.718, allocations: 160.6 kB / 3.549 GB, free: 30.25 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001578/8.718, allocations: 64.98 kB / 3.549 GB, free: 30.25 MB / 0.5261 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.0002976/8.718, allocations: 192.8 kB / 3.549 GB, free: 30.13 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002607/8.718, allocations: 117.2 kB / 3.55 GB, free: 30.07 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005925/8.724, allocations: 4.437 MB / 3.554 GB, free: 29.64 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.083e-05/8.724, allocations: 43.16 kB / 3.554 GB, free: 29.64 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.029e-05/8.724, allocations: 0 / 3.554 GB, free: 29.64 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.6e-05/8.724, allocations: 3.609 kB / 3.554 GB, free: 29.64 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007044/8.731, allocations: 4.877 MB / 3.559 GB, free: 28.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.367e-05/8.731, allocations: 3.953 kB / 3.559 GB, free: 28.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001266/8.733, allocations: 182.8 kB / 3.559 GB, free: 28.5 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008738/8.742, allocations: 1.877 MB / 3.561 GB, free: 28.46 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001157/8.742, allocations: 19.09 kB / 3.561 GB, free: 28.46 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003044/8.745, allocations: 1.915 MB / 3.563 GB, free: 27.31 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.8e-06/8.745, allocations: 0 / 3.563 GB, free: 27.31 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004719/8.75, allocations: 1.992 MB / 3.565 GB, free: 26.87 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001018/8.751, allocations: 327.8 kB / 3.565 GB, free: 26.63 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003728/8.751, allocations: 14.09 kB / 3.565 GB, free: 26.63 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001372/8.752, allocations: 59.38 kB / 3.565 GB, free: 26.62 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001462/8.753, allocations: 51.62 kB / 3.565 GB, free: 26.61 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.231e-05/8.753, allocations: 30.03 kB / 3.565 GB, free: 26.61 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001971/8.755, allocations: 0.6883 MB / 3.566 GB, free: 26.49 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.502e-06/8.755, allocations: 0 / 3.566 GB, free: 26.49 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.006233/8.761, allocations: 1.332 MB / 3.567 GB, free: 26.3 MB / 0.5261 GB 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 () * 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.008144/8.769, allocations: 1.753 MB / 3.569 GB, free: 25.91 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.003323/8.773, allocations: 1.242 MB / 3.57 GB, free: 25.88 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 6.789e-06/8.773, allocations: 4.125 kB / 3.57 GB, free: 25.87 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002699/8.775, allocations: 0.9264 MB / 3.571 GB, free: 25.51 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003301/8.779, allocations: 0.5334 MB / 3.571 GB, free: 25.22 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4799/9.259, allocations: 80.89 MB / 3.65 GB, free: 81.75 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008667/9.26, allocations: 1.338 MB / 3.652 GB, free: 81.04 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003429/9.26, allocations: 104.9 kB / 3.652 GB, free: 81.04 MB / 0.5261 GB Notification: Performance of SimCode: time 1.818e-06/9.26, allocations: 0 / 3.652 GB, free: 81.04 MB / 0.5261 GB Notification: Performance of Templates: time 0.07339/9.333, allocations: 51.24 MB / 3.702 GB, free: 77.71 MB / 0.5261 GB