Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.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) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,fileNamePrefix="Modelica_3_2_1_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.587/1.587, allocations: 171.2 MB / 186.1 MB, free: 1.113 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004719/0.0004717, allocations: 11.94 kB / 233.4 MB, free: 2.266 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.117/0.1175, allocations: 38.77 MB / 272.1 MB, free: 11.42 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.479/7.597, allocations: 2.475 GB / 2.741 GB, free: 42.34 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002937/7.597, allocations: 79.83 kB / 2.741 GB, free: 42.29 MB / 362.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.792/10.39, allocations: 498.1 MB / 3.227 GB, free: 29.41 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.853e-06/10.39, allocations: 0 / 3.227 GB, free: 29.41 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001033/10.39, allocations: 30.38 kB / 3.227 GB, free: 29.41 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.01049/10.4, allocations: 2.227 MB / 3.229 GB, free: 28.41 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.375e-05/10.4, allocations: 12.06 kB / 3.229 GB, free: 28.41 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004672/10.4, allocations: 158.3 kB / 3.23 GB, free: 28.38 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006958/10.41, allocations: 0.6859 MB / 3.23 GB, free: 28.3 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002693/10.41, allocations: 0.9509 MB / 3.231 GB, free: 27.99 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.472e-05/10.41, allocations: 73.11 kB / 3.231 GB, free: 27.99 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001975/10.41, allocations: 99.91 kB / 3.231 GB, free: 27.99 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004804/10.41, allocations: 1.705 MB / 3.233 GB, free: 27.57 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.477e-05/10.41, allocations: 8.469 kB / 3.233 GB, free: 27.57 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001841/10.41, allocations: 47.12 kB / 3.233 GB, free: 27.57 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.407e-05/10.42, allocations: 25.41 kB / 3.233 GB, free: 27.57 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004617/10.42, allocations: 1.518 MB / 3.235 GB, free: 27.56 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01449/10.43, allocations: 8.258 MB / 3.243 GB, free: 21.96 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003977/10.44, allocations: 1.693 MB / 3.244 GB, free: 21.16 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3143/10.75, allocations: 80.23 MB / 3.323 GB, free: 24.42 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.415e-05/10.75, allocations: 48.62 kB / 3.323 GB, free: 24.38 MB / 426.7 MB Notification: Performance of pre-optimization done (n=77): time 5.501e-06/10.75, allocations: 0 / 3.323 GB, free: 24.38 MB / 426.7 MB Notification: Performance of matching and sorting (n=77): time 0.01138/10.76, allocations: 2.033 MB / 3.325 GB, free: 24.16 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001642/10.76, allocations: 187.9 kB / 3.325 GB, free: 23.95 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002114/10.77, allocations: 0.8191 MB / 3.326 GB, free: 23.78 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001667/10.77, allocations: 42.58 kB / 3.326 GB, free: 23.75 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006575/10.77, allocations: 0.6074 MB / 3.326 GB, free: 23.44 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003761/10.77, allocations: 278.5 kB / 3.327 GB, free: 23.27 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001117/10.77, allocations: 21.75 kB / 3.327 GB, free: 23.27 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002274/10.77, allocations: 348.9 kB / 3.327 GB, free: 22.96 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00127/10.77, allocations: 340.5 kB / 3.327 GB, free: 22.96 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001675/10.77, allocations: 0.8199 MB / 3.328 GB, free: 22.34 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001567/10.77, allocations: 457.9 kB / 3.328 GB, free: 22.32 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.752e-05/10.77, allocations: 5.469 kB / 3.328 GB, free: 22.32 MB / 426.7 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.004711/10.78, allocations: 1.364 MB / 3.33 GB, free: 22.2 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.029e-05/10.78, allocations: 15.34 kB / 3.33 GB, free: 22.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.993e-05/10.78, allocations: 13.19 kB / 3.33 GB, free: 22.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0408/10.82, allocations: 0.8244 MB / 3.331 GB, free: 22.16 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008673/10.83, allocations: 330.9 kB / 3.331 GB, free: 22.16 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002201/10.83, allocations: 1.528 MB / 3.332 GB, free: 21.05 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00959/10.84, allocations: 160.8 kB / 3.333 GB, free: 20.97 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003707/10.84, allocations: 73.03 kB / 3.333 GB, free: 20.97 MB / 426.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 (rightAdaptor.state_b.phase,rightAdaptor.state_a.phase,rightAdaptor.state_a_nondes.phase,rightAdaptor.state_b_des.phase,leftAdaptor.state_b.phase,leftAdaptor.state_a.phase,leftAdaptor.state_a_nondes.phase,leftAdaptor.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 (138): * Single equations (assignments): 136 * 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.001077/10.84, allocations: 303.3 kB / 3.333 GB, free: 20.84 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004742/10.84, allocations: 111.6 kB / 3.333 GB, free: 20.79 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01277/10.85, allocations: 4.559 MB / 3.338 GB, free: 20.35 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.385e-05/10.85, allocations: 44.02 kB / 3.338 GB, free: 20.35 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.377e-05/10.85, allocations: 0 / 3.338 GB, free: 20.35 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.212e-05/10.85, allocations: 10.14 kB / 3.338 GB, free: 20.35 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008974/10.86, allocations: 5.025 MB / 3.342 GB, free: 19.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.329e-05/10.86, allocations: 6.328 kB / 3.342 GB, free: 19.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0019/10.86, allocations: 189.1 kB / 3.343 GB, free: 19.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0119/10.88, allocations: 1.885 MB / 3.345 GB, free: 19.16 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001641/10.88, allocations: 23.19 kB / 3.345 GB, free: 19.16 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002044/10.88, allocations: 1.903 MB / 3.346 GB, free: 18.02 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/10.88, allocations: 4.094 kB / 3.346 GB, free: 18.01 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00343/10.88, allocations: 2.084 MB / 3.348 GB, free: 17.2 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006133/10.88, allocations: 332.1 kB / 3.349 GB, free: 16.9 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002336/10.88, allocations: 16.62 kB / 3.349 GB, free: 16.89 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001009/10.88, allocations: 64.36 kB / 3.349 GB, free: 16.85 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001133/10.88, allocations: 57.06 kB / 3.349 GB, free: 16.82 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.721e-05/10.88, allocations: 30.39 kB / 3.349 GB, free: 16.8 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001244/10.89, allocations: 0.7011 MB / 3.35 GB, free: 16.39 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.61e-07/10.89, allocations: 0 / 3.35 GB, free: 16.39 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006654/10.89, allocations: 1.331 MB / 3.351 GB, free: 15.17 MB / 426.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 (83): * Single equations (assignments): 73 * 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.01371/10.91, allocations: 4.359 MB / 3.355 GB, free: 12.06 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004595/10.91, allocations: 1.364 MB / 3.356 GB, free: 11.29 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/10.91, allocations: 0 / 3.356 GB, free: 11.29 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002885/10.91, allocations: 0.965 MB / 3.357 GB, free: 10.81 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004538/10.92, allocations: 0.5269 MB / 3.358 GB, free: 10.52 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4962/11.41, allocations: 93.72 MB / 3.449 GB, free: 56.55 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009053/11.42, allocations: 1.353 MB / 3.451 GB, free: 55.81 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002061/11.42, allocations: 0.5689 MB / 3.451 GB, free: 55.77 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001087/11.42, allocations: 0.6543 MB / 3.452 GB, free: 55.77 MB / 426.7 MB Notification: Performance of SimCode: time 2.244e-06/11.42, allocations: 0.7812 kB / 3.452 GB, free: 55.77 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1945/11.61, allocations: 66.36 MB / 3.517 GB, free: 30.93 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000324/11.61, allocations: 265.6 kB / 3.517 GB, free: 30.56 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.617/17.23, allocations: 7.938 kB / 3.517 GB, free: 30.55 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings_res.mat does not exist to compare? outputFormat=mat