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.277/2.277, allocations: 234.9 MB / 250.5 MB, free: 10.52 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006605/0.0006607, allocations: 16 kB / 314.5 MB, free: 10.43 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3632/0.3639, allocations: 54.86 MB / 369.4 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.894/8.257, allocations: 2.594 GB / 2.955 GB, free: 102 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002817/8.258, allocations: 83.58 kB / 2.955 GB, free: 102 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.848/11.11, allocations: 0.4961 GB / 3.451 GB, free: 50.91 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.896e-06/11.11, allocations: 0 / 3.451 GB, free: 50.91 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001574/11.11, allocations: 32.67 kB / 3.451 GB, free: 50.91 MB / 0.4948 GB 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.01252/11.12, allocations: 2.321 MB / 3.453 GB, free: 50.12 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.63e-05/11.12, allocations: 9.812 kB / 3.453 GB, free: 50.12 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005894/11.12, allocations: 154.7 kB / 3.453 GB, free: 50.08 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006606/11.13, allocations: 0.6202 MB / 3.454 GB, free: 50.01 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003123/11.13, allocations: 0.9402 MB / 3.455 GB, free: 49.72 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.263e-05/11.13, allocations: 76.34 kB / 3.455 GB, free: 49.72 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002242/11.13, allocations: 93.11 kB / 3.455 GB, free: 49.72 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005197/11.13, allocations: 1.647 MB / 3.456 GB, free: 49.33 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.151e-05/11.14, allocations: 8.562 kB / 3.457 GB, free: 49.33 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000184/11.14, allocations: 46.38 kB / 3.457 GB, free: 49.33 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.84e-05/11.14, allocations: 26.69 kB / 3.457 GB, free: 49.33 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00469/11.14, allocations: 1.41 MB / 3.458 GB, free: 49.33 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01203/11.15, allocations: 8.054 MB / 3.466 GB, free: 43.75 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003992/11.16, allocations: 1.653 MB / 3.467 GB, free: 42.95 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2909/11.45, allocations: 80.26 MB / 3.546 GB, free: 30.21 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6e-05/11.45, allocations: 46.81 kB / 3.546 GB, free: 30.17 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=69): time 4.729e-06/11.45, allocations: 0 / 3.546 GB, free: 30.17 MB / 0.5261 GB Notification: Performance of matching and sorting (n=69): time 0.007541/11.45, allocations: 1.895 MB / 3.548 GB, free: 29.96 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001401/11.45, allocations: 190.7 kB / 3.548 GB, free: 29.74 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001489/11.46, allocations: 0.8171 MB / 3.549 GB, free: 29.58 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001306/11.46, allocations: 38.73 kB / 3.549 GB, free: 29.55 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.000472/11.46, allocations: 0.6092 MB / 3.549 GB, free: 29.18 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002569/11.46, allocations: 248.8 kB / 3.55 GB, free: 29.02 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.244e-05/11.46, allocations: 22.5 kB / 3.55 GB, free: 29.02 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001842/11.46, allocations: 356.4 kB / 3.55 GB, free: 28.71 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007035/11.46, allocations: 306.9 kB / 3.55 GB, free: 28.7 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000951/11.46, allocations: 0.7706 MB / 3.551 GB, free: 28.09 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000937/11.46, allocations: 433.3 kB / 3.551 GB, free: 28.06 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.218e-05/11.46, allocations: 7.219 kB / 3.551 GB, free: 28.06 MB / 0.5261 GB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002799/11.46, allocations: 1.212 MB / 3.553 GB, free: 27.97 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 3.334e-05/11.46, allocations: 18.72 kB / 3.553 GB, free: 27.96 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.262e-05/11.46, allocations: 14.59 kB / 3.553 GB, free: 27.96 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01148/11.47, allocations: 0.8184 MB / 3.553 GB, free: 27.94 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00244/11.48, allocations: 313.4 kB / 3.554 GB, free: 27.93 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00177/11.48, allocations: 1.53 MB / 3.555 GB, free: 26.81 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001624/11.48, allocations: 151.5 kB / 3.555 GB, free: 26.75 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001451/11.48, allocations: 67.81 kB / 3.555 GB, free: 26.75 MB / 0.5261 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.0007942/11.48, allocations: 299.2 kB / 3.556 GB, free: 26.62 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002993/11.48, allocations: 111.1 kB / 3.556 GB, free: 26.56 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006289/11.49, allocations: 4.448 MB / 3.56 GB, free: 26.11 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.106e-05/11.49, allocations: 44.39 kB / 3.56 GB, free: 26.11 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.13e-05/11.49, allocations: 3.375 kB / 3.56 GB, free: 26.11 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.03e-05/11.49, allocations: 5.438 kB / 3.56 GB, free: 26.11 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007735/11.5, allocations: 4.894 MB / 3.565 GB, free: 24.98 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.499e-05/11.5, allocations: 0 / 3.565 GB, free: 24.98 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001774/11.5, allocations: 184 kB / 3.565 GB, free: 24.98 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01235/11.51, allocations: 1.889 MB / 3.567 GB, free: 24.93 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001556/11.51, allocations: 22.27 kB / 3.567 GB, free: 24.93 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002064/11.51, allocations: 1.897 MB / 3.569 GB, free: 23.79 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/11.51, allocations: 7.188 kB / 3.569 GB, free: 23.79 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003156/11.52, allocations: 2.001 MB / 3.571 GB, free: 23.36 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000617/11.52, allocations: 324.6 kB / 3.571 GB, free: 23.13 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002362/11.52, allocations: 20.5 kB / 3.571 GB, free: 23.13 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008933/11.52, allocations: 64.83 kB / 3.571 GB, free: 23.11 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.825e-05/11.52, allocations: 50.02 kB / 3.571 GB, free: 23.11 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.52e-05/11.52, allocations: 20.78 kB / 3.571 GB, free: 23.11 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001259/11.52, allocations: 0.7024 MB / 3.572 GB, free: 23 MB / 0.5261 GB Notification: Performance of sort global known variables: time 6.71e-07/11.52, allocations: 0 / 3.572 GB, free: 23 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.006366/11.53, allocations: 1.332 MB / 3.573 GB, free: 22.8 MB / 0.5261 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.01359/11.54, allocations: 4.277 MB / 3.577 GB, free: 21.46 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.004291/11.54, allocations: 1.259 MB / 3.579 GB, free: 21.42 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 6.181e-06/11.54, allocations: 0 / 3.579 GB, free: 21.42 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003326/11.55, allocations: 0.9389 MB / 3.58 GB, free: 21.4 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004552/11.55, allocations: 0.5324 MB / 3.58 GB, free: 21.36 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6719/12.22, allocations: 97.91 MB / 3.676 GB, free: 66.23 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009228/12.22, allocations: 1.338 MB / 3.677 GB, free: 65.52 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001093/12.23, allocations: 0.6266 MB / 3.678 GB, free: 65.52 MB / 0.5261 GB Notification: Performance of SimCode: time 1.202e-06/12.23, allocations: 2.125 kB / 3.678 GB, free: 65.52 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.985/16.21, allocations: 57.11 MB / 3.733 GB, free: 62.59 MB / 0.5261 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