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.863/1.863, allocations: 209.2 MB / 224.8 MB, free: 344 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004993/0.0004994, allocations: 12 kB / 282.6 MB, free: 9.602 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2914/0.292, allocations: 48.7 MB / 331.3 MB, free: 6.512 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.999/6.291, allocations: 2.483 GB / 2.807 GB, free: 55.61 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002144/6.291, allocations: 89.5 kB / 2.807 GB, free: 55.52 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.269/8.56, allocations: 497.1 MB / 3.292 GB, free: 36.07 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.401e-06/8.56, allocations: 3.438 kB / 3.292 GB, free: 36.07 MB / 442.7 MB Notification: Performance of Transformations before backend: time 9.34e-05/8.56, allocations: 31.89 kB / 3.292 GB, free: 36.06 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.008556/8.569, allocations: 2.216 MB / 3.294 GB, free: 34.86 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/8.569, allocations: 7.625 kB / 3.294 GB, free: 34.86 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005783/8.574, allocations: 0.5855 MB / 3.295 GB, free: 34.72 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002263/8.577, allocations: 0.9451 MB / 3.296 GB, free: 34.17 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.317e-05/8.577, allocations: 73.09 kB / 3.296 GB, free: 34.14 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001704/8.577, allocations: 94.84 kB / 3.296 GB, free: 34.11 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004707/8.582, allocations: 1.639 MB / 3.298 GB, free: 33.3 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.604e-05/8.582, allocations: 7 kB / 3.298 GB, free: 33.29 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001684/8.582, allocations: 50.36 kB / 3.298 GB, free: 33.26 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.569e-05/8.582, allocations: 26.84 kB / 3.298 GB, free: 33.26 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004493/8.586, allocations: 1.412 MB / 3.299 GB, free: 32.83 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008936/8.595, allocations: 8.054 MB / 3.307 GB, free: 26.18 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003473/8.599, allocations: 1.644 MB / 3.309 GB, free: 25.09 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4861/9.085, allocations: 80.21 MB / 3.387 GB, free: 39.7 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.12e-05/9.085, allocations: 47.28 kB / 3.387 GB, free: 39.65 MB / 458.7 MB Notification: Performance of pre-optimization done (n=69): time 5.121e-06/9.085, allocations: 0 / 3.387 GB, free: 39.65 MB / 458.7 MB Notification: Performance of matching and sorting (n=69): time 0.006906/9.092, allocations: 1.898 MB / 3.389 GB, free: 39.51 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.915e-05/9.092, allocations: 190 kB / 3.389 GB, free: 39.29 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001419/9.094, allocations: 0.8155 MB / 3.39 GB, free: 39.15 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001072/9.094, allocations: 37.77 kB / 3.39 GB, free: 39.12 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003732/9.094, allocations: 0.6136 MB / 3.39 GB, free: 38.82 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002339/9.094, allocations: 258 kB / 3.391 GB, free: 38.7 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.3e-05/9.094, allocations: 22.41 kB / 3.391 GB, free: 38.7 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 9.207e-05/9.095, allocations: 352.7 kB / 3.391 GB, free: 38.38 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006011/9.095, allocations: 297.7 kB / 3.391 GB, free: 38.38 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008524/9.096, allocations: 0.7822 MB / 3.392 GB, free: 37.77 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008251/9.097, allocations: 422.4 kB / 3.393 GB, free: 37.74 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.1e-05/9.097, allocations: 3.625 kB / 3.393 GB, free: 37.74 MB / 458.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002507/9.099, allocations: 1.217 MB / 3.394 GB, free: 37.65 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.078e-05/9.099, allocations: 14.59 kB / 3.394 GB, free: 37.65 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.232e-05/9.1, allocations: 13.41 kB / 3.394 GB, free: 37.65 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007035/9.107, allocations: 0.825 MB / 3.395 GB, free: 37.63 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00174/9.108, allocations: 312.9 kB / 3.395 GB, free: 37.62 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001289/9.11, allocations: 1.53 MB / 3.396 GB, free: 36.52 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001432/9.111, allocations: 155.1 kB / 3.397 GB, free: 36.48 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001277/9.111, allocations: 67.14 kB / 3.397 GB, free: 36.48 MB / 458.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 () * 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.0006789/9.112, allocations: 286.1 kB / 3.397 GB, free: 36.36 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002342/9.112, allocations: 109.4 kB / 3.397 GB, free: 36.3 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005488/9.118, allocations: 4.45 MB / 3.401 GB, free: 35.92 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.611e-05/9.118, allocations: 48.03 kB / 3.401 GB, free: 35.92 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.055e-05/9.118, allocations: 3.953 kB / 3.401 GB, free: 35.92 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.708e-05/9.118, allocations: 7.094 kB / 3.401 GB, free: 35.92 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006802/9.125, allocations: 4.893 MB / 3.406 GB, free: 34.84 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.206e-05/9.125, allocations: 0 / 3.406 GB, free: 34.84 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001272/9.126, allocations: 179.2 kB / 3.406 GB, free: 34.84 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008346/9.134, allocations: 1.886 MB / 3.408 GB, free: 34.8 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001175/9.135, allocations: 18.56 kB / 3.408 GB, free: 34.8 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00169/9.136, allocations: 1.911 MB / 3.41 GB, free: 33.65 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.751e-06/9.136, allocations: 0 / 3.41 GB, free: 33.65 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002737/9.139, allocations: 2.004 MB / 3.412 GB, free: 33.21 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005416/9.14, allocations: 323.1 kB / 3.412 GB, free: 32.98 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002066/9.14, allocations: 13.97 kB / 3.412 GB, free: 32.98 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008029/9.141, allocations: 63.88 kB / 3.412 GB, free: 32.97 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.455e-05/9.141, allocations: 43.05 kB / 3.412 GB, free: 32.96 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.451e-05/9.141, allocations: 38.53 kB / 3.412 GB, free: 32.96 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001187/9.142, allocations: 0.6967 MB / 3.413 GB, free: 32.85 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.009e-06/9.142, allocations: 3.281 kB / 3.413 GB, free: 32.85 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005371/9.147, allocations: 1.325 MB / 3.414 GB, free: 32.77 MB / 458.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 () * 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.008357/9.156, allocations: 1.745 MB / 3.416 GB, free: 32.5 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00338/9.159, allocations: 1.265 MB / 3.417 GB, free: 32.46 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.88e-06/9.159, allocations: 0 / 3.417 GB, free: 32.46 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002638/9.162, allocations: 0.9384 MB / 3.418 GB, free: 32.45 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00349/9.165, allocations: 0.5287 MB / 3.419 GB, free: 32.4 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1994/9.365, allocations: 78.35 MB / 3.495 GB, free: 16.42 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00178/9.367, allocations: 1.332 MB / 3.497 GB, free: 15.3 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006957/9.367, allocations: 105.8 kB / 3.497 GB, free: 15.2 MB / 458.7 MB Notification: Performance of SimCode: time 2.418e-06/9.367, allocations: 3.938 kB / 3.497 GB, free: 15.2 MB / 458.7 MB Notification: Performance of Templates: time 0.3649/9.732, allocations: 51.32 MB / 3.547 GB, free: 65.43 MB / 474.7 MB