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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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 1.823/1.823, allocations: 209.3 MB / 222.4 MB, free: 7.719 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.848e-05/2.87e-05, allocations: 4 kB / 277.8 MB, free: 15.3 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08672/0.08678, allocations: 48.71 MB / 326.6 MB, free: 14.5 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.335/6.422, allocations: 2.483 GB / 2.802 GB, free: 74.3 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002185/6.422, allocations: 80.45 kB / 2.802 GB, free: 74.25 MB / 426.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/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@2/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@2/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@2/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@2/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@2/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@2/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.369/8.792, allocations: 495.3 MB / 3.286 GB, free: 37.86 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.243e-06/8.792, allocations: 0 / 3.286 GB, free: 37.86 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001066/8.792, allocations: 35.83 kB / 3.286 GB, free: 37.85 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.008044/8.8, allocations: 2.077 MB / 3.288 GB, free: 36.87 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.328e-05/8.8, allocations: 11.38 kB / 3.288 GB, free: 36.87 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005694/8.806, allocations: 0.5921 MB / 3.288 GB, free: 36.8 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002268/8.808, allocations: 0.9393 MB / 3.289 GB, free: 36.49 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.945e-05/8.808, allocations: 74.84 kB / 3.289 GB, free: 36.48 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001641/8.808, allocations: 93.91 kB / 3.29 GB, free: 36.48 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004724/8.813, allocations: 1.734 MB / 3.291 GB, free: 36.09 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.808e-05/8.813, allocations: 6.312 kB / 3.291 GB, free: 36.09 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000158/8.813, allocations: 47.27 kB / 3.291 GB, free: 36.08 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.68e-05/8.813, allocations: 29.03 kB / 3.291 GB, free: 36.08 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004217/8.817, allocations: 1.498 MB / 3.293 GB, free: 36.04 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009321/8.827, allocations: 8.05 MB / 3.301 GB, free: 30.41 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003816/8.831, allocations: 1.753 MB / 3.302 GB, free: 29.6 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007229/8.831, allocations: 362 kB / 3.303 GB, free: 29.59 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2072/9.039, allocations: 80.66 MB / 3.381 GB, free: 4.152 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.614e-05/9.039, allocations: 43 kB / 3.382 GB, free: 4.102 MB / 474.7 MB Notification: Performance of pre-optimization done (n=69): time 4.658e-06/9.039, allocations: 0 / 3.382 GB, free: 4.102 MB / 474.7 MB Notification: Performance of matching and sorting (n=69): time 0.00554/9.044, allocations: 1.597 MB / 3.383 GB, free: 2.82 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001417/9.044, allocations: 188.4 kB / 3.383 GB, free: 2.594 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001648/9.046, allocations: 0.8127 MB / 3.384 GB, free: 1.828 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000156/9.046, allocations: 37.7 kB / 3.384 GB, free: 1.785 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005619/9.047, allocations: 0.6044 MB / 3.385 GB, free: 1.215 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003055/9.047, allocations: 250.1 kB / 3.385 GB, free: 0.9961 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.791e-05/9.047, allocations: 35.88 kB / 3.385 GB, free: 0.9609 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002085/9.048, allocations: 348.3 kB / 3.385 GB, free: 0.625 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007146/9.048, allocations: 293.2 kB / 3.386 GB, free: 360 kB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2819/9.33, allocations: 0.767 MB / 3.386 GB, free: 70.69 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001066/9.331, allocations: 425.5 kB / 3.387 GB, free: 70.68 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.682e-05/9.331, allocations: 6.344 kB / 3.387 GB, free: 70.68 MB / 474.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.003096/9.334, allocations: 1.192 MB / 3.388 GB, free: 70.64 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.519e-05/9.335, allocations: 13.84 kB / 3.388 GB, free: 70.64 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.11e-05/9.335, allocations: 16.72 kB / 3.388 GB, free: 70.64 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008067/9.343, allocations: 0.8248 MB / 3.389 GB, free: 70.63 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001784/9.345, allocations: 306 kB / 3.389 GB, free: 70.63 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001402/9.346, allocations: 1.529 MB / 3.391 GB, free: 69.54 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001407/9.347, allocations: 152.8 kB / 3.391 GB, free: 69.54 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001278/9.348, allocations: 67.22 kB / 3.391 GB, free: 69.54 MB / 474.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 () * 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.0002698/9.348, allocations: 196.2 kB / 3.391 GB, free: 69.43 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002252/9.348, allocations: 106.1 kB / 3.391 GB, free: 69.43 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005974/9.354, allocations: 4.433 MB / 3.395 GB, free: 69.08 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.495e-05/9.354, allocations: 47 kB / 3.395 GB, free: 69.08 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.063e-05/9.354, allocations: 1.25 kB / 3.395 GB, free: 69.08 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.686e-05/9.354, allocations: 9.922 kB / 3.395 GB, free: 69.08 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007198/9.361, allocations: 4.872 MB / 3.4 GB, free: 68 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.237e-05/9.361, allocations: 2.906 kB / 3.4 GB, free: 68 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001225/9.363, allocations: 175.9 kB / 3.4 GB, free: 68 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00881/9.372, allocations: 1.886 MB / 3.402 GB, free: 67.98 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000134/9.372, allocations: 23.11 kB / 3.402 GB, free: 67.98 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001786/9.374, allocations: 1.905 MB / 3.404 GB, free: 66.84 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.85e-06/9.374, allocations: 5.844 kB / 3.404 GB, free: 66.84 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003036/9.377, allocations: 1.987 MB / 3.406 GB, free: 66.41 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005649/9.377, allocations: 325 kB / 3.406 GB, free: 66.22 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002104/9.377, allocations: 18.98 kB / 3.406 GB, free: 66.21 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000778/9.378, allocations: 55.64 kB / 3.406 GB, free: 66.21 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.849e-05/9.378, allocations: 54.42 kB / 3.406 GB, free: 66.21 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.54e-05/9.378, allocations: 28.09 kB / 3.406 GB, free: 66.21 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001208/9.38, allocations: 0.6915 MB / 3.407 GB, free: 66.09 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.104e-06/9.38, allocations: 0 / 3.407 GB, free: 66.09 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.005356/9.385, allocations: 1.313 MB / 3.408 GB, free: 66.06 MB / 474.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 () * 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.008205/9.393, allocations: 1.756 MB / 3.41 GB, free: 65.87 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.003394/9.397, allocations: 1.248 MB / 3.411 GB, free: 65.83 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.902e-06/9.397, allocations: 3.906 kB / 3.411 GB, free: 65.83 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002792/9.4, allocations: 0.9226 MB / 3.412 GB, free: 65.82 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003787/9.403, allocations: 0.5285 MB / 3.413 GB, free: 65.81 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1637/9.567, allocations: 76.85 MB / 3.488 GB, free: 62.28 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000866/9.568, allocations: 1.334 MB / 3.489 GB, free: 61.54 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003702/9.568, allocations: 106.3 kB / 3.489 GB, free: 61.54 MB / 474.7 MB Notification: Performance of SimCode: time 1.777e-06/9.568, allocations: 3.281 kB / 3.489 GB, free: 61.54 MB / 474.7 MB Notification: Performance of Templates: time 0.07322/9.642, allocations: 51.1 MB / 3.539 GB, free: 30.3 MB / 474.7 MB