Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestComponents_Fittings_TestSuddenExpansion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.958/1.958, allocations: 209.2 MB / 224.8 MB, free: 300 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004389/0.0004389, allocations: 16 kB / 282.7 MB, free: 9.488 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3491/0.3496, allocations: 48.7 MB / 331.4 MB, free: 6.52 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.117/7.466, allocations: 2.483 GB / 2.807 GB, free: 38.51 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002926/7.467, allocations: 87.31 kB / 2.807 GB, free: 38.46 MB / 442.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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/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/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/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/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/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/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.669/10.14, allocations: 497.1 MB / 3.292 GB, free: 33.38 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.194e-06/10.14, allocations: 0 / 3.292 GB, free: 33.38 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001001/10.14, allocations: 30.61 kB / 3.292 GB, free: 33.38 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.01019/10.15, allocations: 2.218 MB / 3.295 GB, free: 32.15 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.675e-05/10.15, allocations: 18.22 kB / 3.295 GB, free: 32.15 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004272/10.15, allocations: 148.1 kB / 3.295 GB, free: 32.05 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00587/10.15, allocations: 0.5877 MB / 3.295 GB, free: 31.91 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002598/10.15, allocations: 0.9496 MB / 3.296 GB, free: 31.36 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.25e-05/10.15, allocations: 75.41 kB / 3.296 GB, free: 31.33 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002251/10.15, allocations: 94.69 kB / 3.296 GB, free: 31.3 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00464/10.16, allocations: 1.633 MB / 3.298 GB, free: 30.5 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.844e-05/10.16, allocations: 7.906 kB / 3.298 GB, free: 30.49 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001636/10.16, allocations: 46.48 kB / 3.298 GB, free: 30.46 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.794e-05/10.16, allocations: 27.81 kB / 3.298 GB, free: 30.46 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004301/10.16, allocations: 1.41 MB / 3.299 GB, free: 30.03 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01058/10.17, allocations: 8.052 MB / 3.307 GB, free: 23.38 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003752/10.18, allocations: 1.651 MB / 3.309 GB, free: 22.29 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.6508/10.83, allocations: 80.22 MB / 3.387 GB, free: 37.39 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.072e-05/10.83, allocations: 45.33 kB / 3.387 GB, free: 37.36 MB / 458.7 MB Notification: Performance of pre-optimization done (n=69): time 5.39e-06/10.83, allocations: 0 / 3.387 GB, free: 37.36 MB / 458.7 MB Notification: Performance of matching and sorting (n=69): time 0.007384/10.84, allocations: 1.902 MB / 3.389 GB, free: 37.21 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.256e-05/10.84, allocations: 195.1 kB / 3.389 GB, free: 37 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001511/10.84, allocations: 0.8107 MB / 3.39 GB, free: 36.86 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001573/10.84, allocations: 38.95 kB / 3.39 GB, free: 36.83 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004546/10.84, allocations: 0.6111 MB / 3.391 GB, free: 36.52 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002854/10.84, allocations: 255.8 kB / 3.391 GB, free: 36.4 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.698e-05/10.84, allocations: 22.62 kB / 3.391 GB, free: 36.4 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001019/10.84, allocations: 357.3 kB / 3.391 GB, free: 36.09 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007124/10.84, allocations: 296.5 kB / 3.392 GB, free: 36.09 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009835/10.84, allocations: 0.7776 MB / 3.392 GB, free: 35.49 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009165/10.84, allocations: 429.2 kB / 3.393 GB, free: 35.48 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.129e-05/10.84, allocations: 3.375 kB / 3.393 GB, free: 35.48 MB / 458.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002703/10.85, allocations: 1.212 MB / 3.394 GB, free: 35.41 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.16e-05/10.85, allocations: 13.72 kB / 3.394 GB, free: 35.41 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.054e-05/10.85, allocations: 15.75 kB / 3.394 GB, free: 35.41 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01159/10.86, allocations: 0.8246 MB / 3.395 GB, free: 35.4 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002434/10.86, allocations: 308.5 kB / 3.395 GB, free: 35.4 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001463/10.86, allocations: 1.53 MB / 3.397 GB, free: 34.29 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001584/10.86, allocations: 149.7 kB / 3.397 GB, free: 34.26 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001675/10.86, allocations: 67.38 kB / 3.397 GB, free: 34.26 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.0007948/10.86, allocations: 300.6 kB / 3.397 GB, free: 34.14 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003146/10.86, allocations: 110.2 kB / 3.397 GB, free: 34.09 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00626/10.87, allocations: 4.449 MB / 3.402 GB, free: 33.73 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.493e-05/10.87, allocations: 42.69 kB / 3.402 GB, free: 33.73 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.373e-05/10.87, allocations: 3.953 kB / 3.402 GB, free: 33.73 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.959e-05/10.87, allocations: 7.422 kB / 3.402 GB, free: 33.73 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007443/10.88, allocations: 4.892 MB / 3.406 GB, free: 32.65 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-05/10.88, allocations: 0 / 3.406 GB, free: 32.65 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001773/10.88, allocations: 180.9 kB / 3.407 GB, free: 32.65 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01258/10.89, allocations: 1.89 MB / 3.408 GB, free: 32.62 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001732/10.89, allocations: 18.41 kB / 3.408 GB, free: 32.62 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0019/10.89, allocations: 1.906 MB / 3.41 GB, free: 31.48 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.599e-06/10.89, allocations: 3.688 kB / 3.41 GB, free: 31.48 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003228/10.9, allocations: 2 MB / 3.412 GB, free: 31.05 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000695/10.9, allocations: 323.3 kB / 3.413 GB, free: 30.81 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002572/10.9, allocations: 18.64 kB / 3.413 GB, free: 30.81 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008875/10.9, allocations: 64.16 kB / 3.413 GB, free: 30.8 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001239/10.9, allocations: 53.31 kB / 3.413 GB, free: 30.8 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.138e-05/10.9, allocations: 29.45 kB / 3.413 GB, free: 30.8 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001295/10.9, allocations: 0.6943 MB / 3.413 GB, free: 30.69 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.31e-07/10.9, allocations: 7.062 kB / 3.413 GB, free: 30.69 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006923/10.91, allocations: 1.321 MB / 3.415 GB, free: 30.61 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.01417/10.92, allocations: 4.278 MB / 3.419 GB, free: 29.47 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00449/10.93, allocations: 1.27 MB / 3.42 GB, free: 29.44 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.624e-06/10.93, allocations: 0 / 3.42 GB, free: 29.44 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003493/10.93, allocations: 0.9377 MB / 3.421 GB, free: 29.43 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004799/10.94, allocations: 0.5298 MB / 3.422 GB, free: 29.4 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2143/11.15, allocations: 93.54 MB / 3.513 GB, free: 0.7578 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001034/11.15, allocations: 1.334 MB / 3.514 GB, free: 15.63 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00121/11.15, allocations: 0.6242 MB / 3.515 GB, free: 15.28 MB / 474.7 MB Notification: Performance of SimCode: time 1.312e-06/11.15, allocations: 0 / 3.515 GB, free: 15.28 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.23/15.38, allocations: 56.96 MB / 3.57 GB, free: 65.29 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion_res.mat does not exist to compare? outputFormat=mat