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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.287/2.287, allocations: 235.1 MB / 243 MB, free: 9.578 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.203e-05/3.24e-05, allocations: 7.938 kB / 303.3 MB, free: 13.18 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3513/0.3514, allocations: 54.85 MB / 358.1 MB, free: 14.93 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.564/7.915, allocations: 2.593 GB / 2.943 GB, free: 118 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002962/7.916, allocations: 87.81 kB / 2.943 GB, free: 118 MB / 490.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Fluid/Interfaces.mo:734:9-739:39:writable] Notification: From here: [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.333/10.25, allocations: 494.7 MB / 3.426 GB, free: 44.53 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.084e-06/10.25, allocations: 0 / 3.426 GB, free: 44.53 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001043/10.25, allocations: 32.25 kB / 3.426 GB, free: 44.53 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.01067/10.26, allocations: 2.185 MB / 3.428 GB, free: 43.37 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.046e-05/10.26, allocations: 10.34 kB / 3.428 GB, free: 43.37 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006151/10.27, allocations: 0.6231 MB / 3.429 GB, free: 43.23 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00264/10.27, allocations: 0.9362 MB / 3.43 GB, free: 42.68 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.912e-05/10.27, allocations: 33.34 kB / 3.43 GB, free: 42.68 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00016/10.27, allocations: 53.12 kB / 3.43 GB, free: 42.68 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002411/10.27, allocations: 0.9714 MB / 3.431 GB, free: 42.32 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002334/10.27, allocations: 1.172 MB / 3.432 GB, free: 41.63 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.029e-05/10.27, allocations: 7.344 kB / 3.432 GB, free: 41.63 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001379/10.27, allocations: 3.969 kB / 3.432 GB, free: 41.63 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.73e-05/10.27, allocations: 28.56 kB / 3.432 GB, free: 41.63 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 1.881/12.15, allocations: 263.9 MB / 3.69 GB, free: 109.7 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001174/12.16, allocations: 488.3 kB / 3.69 GB, free: 109.7 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004878/12.16, allocations: 239.7 kB / 3.69 GB, free: 109.6 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.158/12.31, allocations: 47.29 MB / 3.737 GB, free: 82.69 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.865e-05/12.31, allocations: 41.41 kB / 3.737 GB, free: 82.65 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=41): time 4.559e-06/12.31, allocations: 0 / 3.737 GB, free: 82.65 MB / 0.5417 GB Notification: Performance of matching and sorting (n=41): time 0.006916/12.32, allocations: 1.433 MB / 3.738 GB, free: 82.58 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.846e-05/12.32, allocations: 189.5 kB / 3.738 GB, free: 82.36 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001768/12.32, allocations: 0.8732 MB / 3.739 GB, free: 82.2 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0001247/12.32, allocations: 29.39 kB / 3.739 GB, free: 82.17 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005307/12.32, allocations: 0.6965 MB / 3.74 GB, free: 81.8 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002117/12.32, allocations: 158.8 kB / 3.74 GB, free: 81.73 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.817e-05/12.32, allocations: 0 / 3.74 GB, free: 81.73 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001081/12.32, allocations: 351.4 kB / 3.74 GB, free: 81.42 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006665/12.33, allocations: 277.1 kB / 3.741 GB, free: 81.42 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009369/12.33, allocations: 0.7523 MB / 3.741 GB, free: 80.81 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00419/12.33, allocations: 0.6925 MB / 3.742 GB, free: 80.79 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.501e-05/12.33, allocations: 7.438 kB / 3.742 GB, free: 80.79 MB / 0.5417 GB Notification: Performance of matching and sorting (n=144) (initialization): time 0.006203/12.34, allocations: 1.39 MB / 3.743 GB, free: 80.7 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 3.737e-05/12.34, allocations: 12.47 kB / 3.743 GB, free: 80.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.613e-05/12.34, allocations: 14.72 kB / 3.743 GB, free: 80.7 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006676/12.34, allocations: 185.5 kB / 3.744 GB, free: 80.69 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002511/12.34, allocations: 315.7 kB / 3.744 GB, free: 80.68 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002334/12.34, allocations: 1.657 MB / 3.745 GB, free: 79.56 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002029/12.34, allocations: 150.4 kB / 3.746 GB, free: 79.52 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002444/12.34, allocations: 72.22 kB / 3.746 GB, free: 79.52 MB / 0.5417 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.0002966/12.35, allocations: 162.8 kB / 3.746 GB, free: 79.41 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004394/12.35, allocations: 0.8652 MB / 3.747 GB, free: 79.3 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002932/12.35, allocations: 106.4 kB / 3.747 GB, free: 79.25 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005962/12.36, allocations: 2.928 MB / 3.75 GB, free: 79.04 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.223e-05/12.36, allocations: 16.92 kB / 3.75 GB, free: 79.04 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.025e-05/12.36, allocations: 0 / 3.75 GB, free: 79.04 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.661e-05/12.36, allocations: 6.984 kB / 3.75 GB, free: 79.04 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002787/12.36, allocations: 1.288 MB / 3.751 GB, free: 78.85 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.05e-05/12.36, allocations: 3.938 kB / 3.751 GB, free: 78.85 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001423/12.36, allocations: 118.4 kB / 3.751 GB, free: 78.85 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003339/12.36, allocations: 2.18 MB / 3.753 GB, free: 78.79 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001113/12.36, allocations: 4.188 kB / 3.753 GB, free: 78.79 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003794/12.37, allocations: 2.987 MB / 3.756 GB, free: 77.64 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.045e-06/12.37, allocations: 0 / 3.756 GB, free: 77.64 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004416/12.37, allocations: 2.096 MB / 3.758 GB, free: 77.24 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007891/12.37, allocations: 288.6 kB / 3.758 GB, free: 77.07 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003393/12.37, allocations: 96 / 3.758 GB, free: 77.07 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007981/12.37, allocations: 25.92 kB / 3.758 GB, free: 77.07 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.151e-05/12.37, allocations: 27.64 kB / 3.758 GB, free: 77.07 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.258e-05/12.37, allocations: 15.5 kB / 3.758 GB, free: 77.07 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001501/12.38, allocations: 0.781 MB / 3.759 GB, free: 76.96 MB / 0.5417 GB Notification: Performance of sort global known variables: time 6.41e-07/12.38, allocations: 4 kB / 3.759 GB, free: 76.95 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.006886/12.38, allocations: 1.276 MB / 3.76 GB, free: 76.89 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 29 * 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 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.01484/12.4, allocations: 3.821 MB / 3.764 GB, free: 75.76 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.003842/12.4, allocations: 0.8915 MB / 3.765 GB, free: 75.74 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 7.043e-06/12.4, allocations: 0 / 3.765 GB, free: 75.74 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.002834/12.4, allocations: 493.9 kB / 3.766 GB, free: 75.73 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004018/12.41, allocations: 421.6 kB / 3.766 GB, free: 75.7 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00885/12.42, allocations: 2.113 MB / 3.768 GB, free: 75.12 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007438/12.42, allocations: 1.186 MB / 3.769 GB, free: 74.39 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001001/12.42, allocations: 0.5188 MB / 3.77 GB, free: 74.39 MB / 0.5417 GB Notification: Performance of SimCode: time 1.222e-06/12.42, allocations: 0 / 3.77 GB, free: 74.39 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.223/16.64, allocations: 54.63 MB / 3.823 GB, free: 63.23 MB / 0.5417 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