Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.314/2.314, allocations: 234.9 MB / 251.1 MB, free: 9.699 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006273/0.0006273, allocations: 16 kB / 314.9 MB, free: 9.73 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3632/0.3638, allocations: 54.86 MB / 369.8 MB, free: 12.8 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.683/8.047, allocations: 2.594 GB / 2.955 GB, free: 123.7 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003171/8.047, allocations: 84.98 kB / 2.955 GB, free: 123.7 MB / 490.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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/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/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/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/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/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/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.546/10.59, allocations: 0.4961 GB / 3.451 GB, free: 7.121 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.645e-06/10.59, allocations: 0 / 3.451 GB, free: 7.121 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.000109/10.59, allocations: 26.97 kB / 3.451 GB, free: 7.098 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.01041/10.6, allocations: 2.314 MB / 3.453 GB, free: 4.758 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.329e-05/10.6, allocations: 8.031 kB / 3.453 GB, free: 4.75 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00599/10.61, allocations: 0.624 MB / 3.454 GB, free: 4.129 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002873/10.61, allocations: 0.95 MB / 3.455 GB, free: 3.16 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.656e-05/10.61, allocations: 74 kB / 3.455 GB, free: 3.086 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002012/10.61, allocations: 92 kB / 3.455 GB, free: 2.996 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005051/10.62, allocations: 1.65 MB / 3.457 GB, free: 1.223 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.394e-05/10.62, allocations: 7.938 kB / 3.457 GB, free: 1.215 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001779/10.62, allocations: 44 kB / 3.457 GB, free: 1.172 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.806e-05/10.62, allocations: 27.98 kB / 3.457 GB, free: 1.145 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004757/10.62, allocations: 1.412 MB / 3.458 GB, free: 15.73 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01438/10.64, allocations: 8.059 MB / 3.466 GB, free: 7.16 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004604/10.64, allocations: 1.654 MB / 3.468 GB, free: 5.352 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.7311/11.37, allocations: 80.25 MB / 3.546 GB, free: 27.77 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.061e-05/11.37, allocations: 50.81 kB / 3.546 GB, free: 27.73 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=69): time 3.517e-06/11.37, allocations: 0 / 3.546 GB, free: 27.73 MB / 0.5105 GB Notification: Performance of matching and sorting (n=69): time 0.007389/11.38, allocations: 1.889 MB / 3.548 GB, free: 27.59 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001392/11.38, allocations: 196.3 kB / 3.548 GB, free: 27.36 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00173/11.38, allocations: 0.9171 MB / 3.549 GB, free: 27.22 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0001774/11.38, allocations: 38.95 kB / 3.549 GB, free: 27.19 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004588/11.38, allocations: 0.62 MB / 3.55 GB, free: 26.88 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002698/11.38, allocations: 250.8 kB / 3.55 GB, free: 26.76 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.242e-05/11.38, allocations: 21.34 kB / 3.55 GB, free: 26.76 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001796/11.38, allocations: 354.2 kB / 3.55 GB, free: 26.45 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007367/11.38, allocations: 301.8 kB / 3.551 GB, free: 26.45 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001017/11.39, allocations: 0.7776 MB / 3.551 GB, free: 25.84 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009429/11.39, allocations: 428.9 kB / 3.552 GB, free: 25.81 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.37e-05/11.39, allocations: 7.625 kB / 3.552 GB, free: 25.81 MB / 0.5105 GB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002792/11.39, allocations: 1.21 MB / 3.553 GB, free: 25.72 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 3.858e-05/11.39, allocations: 14.31 kB / 3.553 GB, free: 25.72 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.282e-05/11.39, allocations: 16.44 kB / 3.553 GB, free: 25.72 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01248/11.4, allocations: 0.8245 MB / 3.554 GB, free: 25.69 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002509/11.4, allocations: 308.6 kB / 3.554 GB, free: 25.69 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00183/11.41, allocations: 1.536 MB / 3.556 GB, free: 24.57 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001555/11.41, allocations: 152.1 kB / 3.556 GB, free: 24.53 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001485/11.41, allocations: 65.09 kB / 3.556 GB, free: 24.53 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 () * 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.0007872/11.41, allocations: 302.3 kB / 3.556 GB, free: 24.41 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002937/11.41, allocations: 103.7 kB / 3.556 GB, free: 24.36 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006554/11.42, allocations: 4.458 MB / 3.561 GB, free: 23.96 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.614e-05/11.42, allocations: 47.33 kB / 3.561 GB, free: 23.96 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.195e-05/11.42, allocations: 0 / 3.561 GB, free: 23.96 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.734e-05/11.42, allocations: 3.75 kB / 3.561 GB, free: 23.96 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007752/11.42, allocations: 4.895 MB / 3.565 GB, free: 22.89 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.446e-05/11.42, allocations: 3.656 kB / 3.565 GB, free: 22.89 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001781/11.43, allocations: 170.9 kB / 3.566 GB, free: 22.89 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01307/11.44, allocations: 1.888 MB / 3.567 GB, free: 22.85 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001463/11.44, allocations: 22 kB / 3.567 GB, free: 22.85 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0021/11.44, allocations: 1.903 MB / 3.569 GB, free: 21.71 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/11.44, allocations: 0 / 3.569 GB, free: 21.71 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003291/11.44, allocations: 1.99 MB / 3.571 GB, free: 21.29 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006986/11.45, allocations: 328 kB / 3.572 GB, free: 21.09 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000325/11.45, allocations: 18.19 kB / 3.572 GB, free: 21.09 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009662/11.45, allocations: 56.25 kB / 3.572 GB, free: 21.08 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001063/11.45, allocations: 52.56 kB / 3.572 GB, free: 21.08 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.866e-05/11.45, allocations: 27.17 kB / 3.572 GB, free: 21.08 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001354/11.45, allocations: 0.6996 MB / 3.572 GB, free: 20.97 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.61e-07/11.45, allocations: 0 / 3.572 GB, free: 20.97 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.006543/11.46, allocations: 1.331 MB / 3.574 GB, free: 20.89 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: 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.01104/11.47, allocations: 1.754 MB / 3.575 GB, free: 20.62 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.004523/11.47, allocations: 1.262 MB / 3.577 GB, free: 20.59 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 6.512e-06/11.47, allocations: 0 / 3.577 GB, free: 20.59 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003722/11.47, allocations: 0.9367 MB / 3.577 GB, free: 20.56 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00485/11.48, allocations: 0.5332 MB / 3.578 GB, free: 20.52 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2244/11.7, allocations: 82.75 MB / 3.659 GB, free: 8.809 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001228/11.71, allocations: 1.338 MB / 3.66 GB, free: 7.68 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004801/11.71, allocations: 102.8 kB / 3.66 GB, free: 7.586 MB / 0.5261 GB Notification: Performance of SimCode: time 1.413e-06/11.71, allocations: 0 / 3.66 GB, free: 7.586 MB / 0.5261 GB Notification: Performance of Templates: time 0.4867/12.19, allocations: 51.5 MB / 3.711 GB, free: 77.52 MB / 0.5261 GB