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.176/2.176, allocations: 234.9 MB / 250.5 MB, free: 10.52 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004708/0.0004709, allocations: 12 kB / 314.4 MB, free: 10.53 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2769/0.2774, allocations: 54.87 MB / 369.3 MB, free: 10.84 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.177/6.454, allocations: 2.594 GB / 2.955 GB, free: 148.4 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002278/6.454, allocations: 91.52 kB / 2.955 GB, free: 148.4 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 1.983/8.438, allocations: 0.496 GB / 3.451 GB, free: 43.55 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.26e-06/8.438, allocations: 0 / 3.451 GB, free: 43.55 MB / 490.7 MB Notification: Performance of Transformations before backend: time 8.594e-05/8.438, allocations: 32.06 kB / 3.451 GB, free: 43.55 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.008312/8.446, allocations: 2.314 MB / 3.453 GB, free: 42.32 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.838e-05/8.446, allocations: 9.844 kB / 3.453 GB, free: 42.32 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005614/8.452, allocations: 0.6238 MB / 3.454 GB, free: 42.18 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002196/8.454, allocations: 0.9442 MB / 3.454 GB, free: 41.62 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.646e-05/8.454, allocations: 79.64 kB / 3.455 GB, free: 41.59 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001568/8.454, allocations: 93.16 kB / 3.455 GB, free: 41.56 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004169/8.458, allocations: 1.641 MB / 3.456 GB, free: 40.76 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.629e-05/8.458, allocations: 7.812 kB / 3.456 GB, free: 40.75 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001474/8.459, allocations: 45.91 kB / 3.456 GB, free: 40.72 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.543e-05/8.459, allocations: 27.03 kB / 3.456 GB, free: 40.72 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003984/8.463, allocations: 1.406 MB / 3.458 GB, free: 40.3 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009269/8.472, allocations: 8.057 MB / 3.466 GB, free: 33.64 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003448/8.475, allocations: 1.653 MB / 3.467 GB, free: 32.54 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4901/8.966, allocations: 80.26 MB / 3.546 GB, free: 49.27 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.867e-05/8.966, allocations: 41.97 kB / 3.546 GB, free: 49.23 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=69): time 3.787e-06/8.966, allocations: 3.156 kB / 3.546 GB, free: 49.23 MB / 0.4948 GB Notification: Performance of matching and sorting (n=69): time 0.006414/8.972, allocations: 1.893 MB / 3.547 GB, free: 49.1 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.751e-05/8.972, allocations: 197.1 kB / 3.548 GB, free: 48.88 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001301/8.974, allocations: 0.8112 MB / 3.548 GB, free: 48.74 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 8.245e-05/8.974, allocations: 42.39 kB / 3.548 GB, free: 48.71 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.000382/8.974, allocations: 0.6161 MB / 3.549 GB, free: 48.4 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002223/8.974, allocations: 246.8 kB / 3.549 GB, free: 48.29 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.319e-05/8.974, allocations: 24 kB / 3.549 GB, free: 48.29 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 9.837e-05/8.975, allocations: 358.5 kB / 3.55 GB, free: 47.97 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000616/8.975, allocations: 298.6 kB / 3.55 GB, free: 47.97 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007943/8.976, allocations: 0.7737 MB / 3.551 GB, free: 47.38 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007655/8.977, allocations: 427.5 kB / 3.551 GB, free: 47.38 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.085e-05/8.977, allocations: 3.875 kB / 3.551 GB, free: 47.38 MB / 0.4948 GB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002368/8.979, allocations: 1.217 MB / 3.552 GB, free: 47.3 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.913e-05/8.979, allocations: 9.875 kB / 3.552 GB, free: 47.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.427e-05/8.979, allocations: 18.47 kB / 3.552 GB, free: 47.3 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006994/8.986, allocations: 0.8216 MB / 3.553 GB, free: 47.29 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00155/8.988, allocations: 308.7 kB / 3.553 GB, free: 47.29 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001271/8.989, allocations: 1.532 MB / 3.555 GB, free: 46.18 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001345/8.99, allocations: 154.4 kB / 3.555 GB, free: 46.14 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001375/8.991, allocations: 70.09 kB / 3.555 GB, free: 46.14 MB / 0.4948 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.000658/8.991, allocations: 292.6 kB / 3.555 GB, free: 46.02 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002436/8.992, allocations: 110.3 kB / 3.556 GB, free: 45.96 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005163/8.997, allocations: 4.455 MB / 3.56 GB, free: 45.61 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-05/8.997, allocations: 43.52 kB / 3.56 GB, free: 45.61 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.549e-06/8.997, allocations: 0 / 3.56 GB, free: 45.61 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.491e-05/8.997, allocations: 11.31 kB / 3.56 GB, free: 45.61 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006226/9.003, allocations: 4.889 MB / 3.565 GB, free: 44.53 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.221e-05/9.003, allocations: 5.375 kB / 3.565 GB, free: 44.53 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001074/9.004, allocations: 175 kB / 3.565 GB, free: 44.53 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008073/9.012, allocations: 1.888 MB / 3.567 GB, free: 44.5 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001198/9.012, allocations: 22 kB / 3.567 GB, free: 44.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001685/9.014, allocations: 1.905 MB / 3.569 GB, free: 43.37 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/9.014, allocations: 5.922 kB / 3.569 GB, free: 43.36 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002785/9.017, allocations: 2.005 MB / 3.571 GB, free: 42.93 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005196/9.018, allocations: 328.3 kB / 3.571 GB, free: 42.71 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001858/9.018, allocations: 17.47 kB / 3.571 GB, free: 42.71 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000687/9.018, allocations: 56.98 kB / 3.571 GB, free: 42.7 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.686e-05/9.019, allocations: 47.09 kB / 3.571 GB, free: 42.7 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.181e-05/9.019, allocations: 25.69 kB / 3.571 GB, free: 42.7 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001127/9.02, allocations: 0.7048 MB / 3.572 GB, free: 42.59 MB / 0.4948 GB Notification: Performance of sort global known variables: time 9.62e-07/9.02, allocations: 0 / 3.572 GB, free: 42.59 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005125/9.025, allocations: 1.331 MB / 3.573 GB, free: 42.52 MB / 0.4948 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.008024/9.033, allocations: 1.749 MB / 3.575 GB, free: 42.33 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.00327/9.036, allocations: 1.266 MB / 3.576 GB, free: 42.3 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 5.426e-06/9.036, allocations: 0 / 3.576 GB, free: 42.3 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002723/9.039, allocations: 0.9338 MB / 3.577 GB, free: 42.28 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003006/9.042, allocations: 0.534 MB / 3.577 GB, free: 42.25 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1496/9.192, allocations: 82.38 MB / 3.658 GB, free: 24.72 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008084/9.193, allocations: 1.334 MB / 3.659 GB, free: 23.59 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003226/9.193, allocations: 103 kB / 3.659 GB, free: 23.5 MB / 0.4948 GB Notification: Performance of SimCode: time 2.541e-06/9.193, allocations: 0 / 3.659 GB, free: 23.5 MB / 0.4948 GB Notification: Performance of Templates: time 0.3845/9.577, allocations: 51.49 MB / 3.71 GB, free: 79.85 MB / 0.5105 GB