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: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Fittings_TestSuddenExpansion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.56/2.56, allocations: 235 MB / 248.1 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.821e-05/3.837e-05, allocations: 4 kB / 309.8 MB, free: 1.23 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4202/0.4203, allocations: 54.85 MB / 364.6 MB, free: 5.539 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.227/8.647, allocations: 2.594 GB / 2.95 GB, free: 109.4 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002618/8.648, allocations: 83.42 kB / 2.95 GB, free: 109.4 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.52/11.17, allocations: 0.4943 GB / 3.444 GB, free: 38.75 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.394e-06/11.17, allocations: 0 / 3.444 GB, free: 38.75 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001344/11.17, allocations: 27.2 kB / 3.444 GB, free: 38.75 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.01105/11.18, allocations: 2.191 MB / 3.446 GB, free: 37.6 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.989e-05/11.18, allocations: 7.844 kB / 3.446 GB, free: 37.6 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004285/11.18, allocations: 152.7 kB / 3.447 GB, free: 37.5 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006321/11.19, allocations: 0.6158 MB / 3.447 GB, free: 37.36 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002914/11.19, allocations: 0.9388 MB / 3.448 GB, free: 36.81 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.919e-05/11.19, allocations: 70.53 kB / 3.448 GB, free: 36.78 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002208/11.19, allocations: 96.06 kB / 3.448 GB, free: 36.75 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00539/11.19, allocations: 1.734 MB / 3.45 GB, free: 35.9 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.058e-05/11.19, allocations: 7.281 kB / 3.45 GB, free: 35.89 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001906/11.19, allocations: 45.88 kB / 3.45 GB, free: 35.86 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.84e-05/11.19, allocations: 30.12 kB / 3.45 GB, free: 35.86 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004967/11.2, allocations: 1.497 MB / 3.452 GB, free: 35.39 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01176/11.21, allocations: 8.061 MB / 3.459 GB, free: 28.73 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004068/11.22, allocations: 1.754 MB / 3.461 GB, free: 27.59 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008819/11.22, allocations: 362.8 kB / 3.461 GB, free: 27.44 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.7072/11.92, allocations: 80.71 MB / 3.54 GB, free: 41.59 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.297e-05/11.92, allocations: 39.81 kB / 3.54 GB, free: 41.55 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=69): time 4.479e-06/11.92, allocations: 3.719 kB / 3.54 GB, free: 41.55 MB / 0.4948 GB Notification: Performance of matching and sorting (n=69): time 0.00598/11.93, allocations: 1.599 MB / 3.542 GB, free: 41.5 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.014e-05/11.93, allocations: 188.8 kB / 3.542 GB, free: 41.29 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001472/11.93, allocations: 0.8105 MB / 3.543 GB, free: 41.14 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 8.635e-05/11.93, allocations: 39.64 kB / 3.543 GB, free: 41.11 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004455/11.93, allocations: 0.6086 MB / 3.543 GB, free: 40.8 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002686/11.93, allocations: 252.4 kB / 3.544 GB, free: 40.69 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.109e-05/11.93, allocations: 23.19 kB / 3.544 GB, free: 40.69 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001108/11.93, allocations: 352.2 kB / 3.544 GB, free: 40.38 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006987/11.93, allocations: 290.2 kB / 3.544 GB, free: 40.38 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001052/11.93, allocations: 0.7667 MB / 3.545 GB, free: 39.78 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009308/11.94, allocations: 423.9 kB / 3.546 GB, free: 39.77 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-05/11.94, allocations: 8.719 kB / 3.546 GB, free: 39.77 MB / 0.4948 GB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002764/11.94, allocations: 1.194 MB / 3.547 GB, free: 39.69 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 3.149e-05/11.94, allocations: 14.66 kB / 3.547 GB, free: 39.69 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.345e-05/11.94, allocations: 18.62 kB / 3.547 GB, free: 39.69 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01166/11.95, allocations: 0.8193 MB / 3.548 GB, free: 39.68 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002486/11.95, allocations: 314.3 kB / 3.548 GB, free: 39.68 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001459/11.95, allocations: 1.521 MB / 3.549 GB, free: 38.57 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001559/11.96, allocations: 158.3 kB / 3.549 GB, free: 38.54 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001258/11.96, allocations: 66.11 kB / 3.55 GB, free: 38.54 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 () * 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.0002799/11.96, allocations: 192.3 kB / 3.55 GB, free: 38.43 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002106/11.96, allocations: 110.1 kB / 3.55 GB, free: 38.37 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006561/11.96, allocations: 4.428 MB / 3.554 GB, free: 38.02 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.323e-05/11.96, allocations: 49.14 kB / 3.554 GB, free: 38.02 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.368e-05/11.96, allocations: 0.875 kB / 3.554 GB, free: 38.02 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.945e-05/11.96, allocations: 4.359 kB / 3.554 GB, free: 38.02 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00741/11.97, allocations: 4.888 MB / 3.559 GB, free: 36.93 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-05/11.97, allocations: 1.812 kB / 3.559 GB, free: 36.93 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001742/11.97, allocations: 181.1 kB / 3.559 GB, free: 36.93 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01325/11.99, allocations: 1.882 MB / 3.561 GB, free: 36.9 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001864/11.99, allocations: 21.53 kB / 3.561 GB, free: 36.9 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001798/11.99, allocations: 1.913 MB / 3.563 GB, free: 35.76 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/11.99, allocations: 3.875 kB / 3.563 GB, free: 35.76 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003121/11.99, allocations: 1.984 MB / 3.565 GB, free: 35.33 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000627/11.99, allocations: 324.8 kB / 3.565 GB, free: 35.11 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002181/11.99, allocations: 17.5 kB / 3.565 GB, free: 35.11 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008664/11.99, allocations: 55.75 kB / 3.565 GB, free: 35.11 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001033/11.99, allocations: 50.61 kB / 3.565 GB, free: 35.11 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.719e-05/11.99, allocations: 21.69 kB / 3.565 GB, free: 35.11 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.00126/11.99, allocations: 0.6934 MB / 3.566 GB, free: 34.99 MB / 0.4948 GB Notification: Performance of sort global known variables: time 5.01e-07/11.99, allocations: 0 / 3.566 GB, free: 34.99 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006752/12, allocations: 1.336 MB / 3.567 GB, free: 34.91 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 () * 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.01417/12.02, allocations: 4.252 MB / 3.571 GB, free: 33.79 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.004566/12.02, allocations: 1.253 MB / 3.573 GB, free: 33.76 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.304e-06/12.02, allocations: 3.219 kB / 3.573 GB, free: 33.76 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.003538/12.02, allocations: 0.9243 MB / 3.574 GB, free: 33.75 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00507/12.03, allocations: 0.5345 MB / 3.574 GB, free: 33.72 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1983/12.23, allocations: 81.47 MB / 3.654 GB, free: 15.27 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008759/12.23, allocations: 1.338 MB / 3.655 GB, free: 14.15 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001087/12.23, allocations: 0.6286 MB / 3.656 GB, free: 14.05 MB / 0.4948 GB Notification: Performance of SimCode: time 1.573e-06/12.23, allocations: 0 / 3.656 GB, free: 14.05 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.559/16.79, allocations: 58.14 MB / 3.712 GB, free: 77.12 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion_res.mat does not exist to compare? outputFormat=mat