Running command: "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_overall_DPMFLOW,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_overall_DPMFLOW",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.643/2.643, allocations: 249.5 MB / 261.6 MB, free: 2.172 MB / 202.8 MB Notification: Performance of FrontEnd - loaded program: time 4.427e-05/4.432e-05, allocations: 4 kB / 323.5 MB, free: 4.207 MB / 266.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4129/0.413, allocations: 58.84 MB / 382.3 MB, free: 10.33 MB / 314.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.191/0.604, allocations: 102.4 MB / 484.7 MB, free: 6.066 MB / 410.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003914/0.6045, allocations: 95.94 kB / 484.8 MB, free: 5.973 MB / 410.8 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.3/Fluid/Dissipation.mo:6086:11-6092:61:writable] Error: Type mismatch in binding roughness = roughness, expected subtype of enumeration(Neglected, Considered)[4], got type enumeration(Neglected, Considered). [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.3/Fluid/Dissipation.mo:6094:11-6097:69:writable] Error: Type mismatch in binding eta = eta, expected subtype of Real[4], got type Real. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.3/Fluid/Dissipation.mo:6100:11-6106:59:writable] Error: Type mismatch in binding roughness = roughness, expected subtype of enumeration(Neglected, Considered)[4], got type enumeration(Neglected, Considered). [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.3/Fluid/Dissipation.mo:6108:11-6111:67:writable] Error: Type mismatch in binding eta = eta, expected subtype of Real[4], got type Real. Notification: Performance of FrontEnd - DAE generated: time 0.1001/0.7046, allocations: 17.82 MB / 0.4909 GB, free: 4.031 MB / 426.8 MB Notification: Performance of FrontEnd: time 1.814e-06/0.7046, allocations: 0 / 0.4909 GB, free: 4.031 MB / 426.8 MB Notification: Performance of Transformations before backend: time 1.452e-05/0.7047, allocations: 4 kB / 0.4909 GB, free: 4.027 MB / 426.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.001532/0.7062, allocations: 0.6385 MB / 0.4915 GB, free: 3.344 MB / 426.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.132e-05/0.7063, allocations: 8.031 kB / 0.4915 GB, free: 3.336 MB / 426.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001245/0.7064, allocations: 78.52 kB / 0.4916 GB, free: 3.25 MB / 426.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.066e-05/0.7065, allocations: 31.58 kB / 0.4916 GB, free: 3.219 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003878/0.7069, allocations: 234.7 kB / 0.4918 GB, free: 2.949 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.502e-05/0.707, allocations: 20.77 kB / 0.4919 GB, free: 2.93 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.621e-05/0.707, allocations: 31.98 kB / 0.4919 GB, free: 2.898 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00104/0.7081, allocations: 434 kB / 0.4923 GB, free: 2.465 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.833e-05/0.7081, allocations: 3.938 kB / 0.4923 GB, free: 2.461 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.047e-05/0.7082, allocations: 15.94 kB / 0.4923 GB, free: 2.445 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.835e-05/0.7083, allocations: 44.75 kB / 0.4924 GB, free: 2.402 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001192/0.7095, allocations: 0.5129 MB / 0.4929 GB, free: 1.891 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003177/0.7127, allocations: 1.347 MB / 0.4942 GB, free: 436 kB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000895/0.7136, allocations: 263 kB / 0.4944 GB, free: 164 kB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002568/0.7139, allocations: 88.81 kB / 0.4945 GB, free: 72 kB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 5.906e-05/0.714, allocations: 4.391 kB / 0.4945 GB, free: 68 kB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.531e-05/0.7141, allocations: 30.56 kB / 0.4946 GB, free: 28 kB / 426.8 MB Notification: Performance of pre-optimization done (n=25): time 3.687e-06/0.7141, allocations: 0 / 0.4946 GB, free: 28 kB / 426.8 MB Notification: Performance of matching and sorting (n=25): time 0.0007827/0.7149, allocations: 225.7 kB / 0.4948 GB, free: 15.8 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.738e-05/0.7149, allocations: 59.34 kB / 0.4948 GB, free: 15.73 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001894/0.7151, allocations: 126 kB / 0.4949 GB, free: 15.6 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 3.646e-05/0.7152, allocations: 33.7 kB / 0.495 GB, free: 15.56 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001621/0.7154, allocations: 191.8 kB / 0.4952 GB, free: 15.36 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001083/0.7155, allocations: 86.75 kB / 0.4952 GB, free: 15.28 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.615e-05/0.7155, allocations: 11.94 kB / 0.4953 GB, free: 15.27 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 0.000155/0.7157, allocations: 330.8 kB / 0.4956 GB, free: 14.93 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002206/0.7159, allocations: 67.97 kB / 0.4956 GB, free: 14.87 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000301/0.7162, allocations: 162.2 kB / 0.4958 GB, free: 14.67 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002972/0.7165, allocations: 99.92 kB / 0.4959 GB, free: 14.57 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.7166, allocations: 0 / 0.4959 GB, free: 14.57 MB / 442.8 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.000813/0.7174, allocations: 281.4 kB / 0.4962 GB, free: 14.29 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.755e-05/0.7174, allocations: 8 kB / 0.4962 GB, free: 14.29 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.858e-06/0.7175, allocations: 0 / 0.4962 GB, free: 14.29 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.612e-05/0.7175, allocations: 8 kB / 0.4962 GB, free: 14.28 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001125/0.7186, allocations: 127.8 kB / 0.4963 GB, free: 14.15 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001865/0.7205, allocations: 2.368 MB / 0.4986 GB, free: 11.69 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003799/0.7209, allocations: 35.67 kB / 0.4986 GB, free: 11.66 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.003e-05/0.721, allocations: 19.98 kB / 0.4987 GB, free: 11.64 MB / 442.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 1 (roughness) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001677/0.7212, allocations: 116.9 kB / 0.4988 GB, free: 11.52 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.235e-05/0.7213, allocations: 11.91 kB / 0.4988 GB, free: 11.5 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0012/0.7225, allocations: 345.8 kB / 0.4991 GB, free: 11.15 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.608e-06/0.7225, allocations: 4 kB / 0.4991 GB, free: 11.15 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.7225, allocations: 0 / 0.4991 GB, free: 11.15 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.094e-05/0.7225, allocations: 7.938 kB / 0.4991 GB, free: 11.14 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006322/0.7232, allocations: 337.2 kB / 0.4994 GB, free: 10.76 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.7232, allocations: 4 kB / 0.4994 GB, free: 10.76 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001/0.7242, allocations: 123.8 kB / 0.4996 GB, free: 10.64 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.187e-06/0.7242, allocations: 0 / 0.4996 GB, free: 10.64 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.634e-05/0.7243, allocations: 11.98 kB / 0.4996 GB, free: 10.62 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001566/0.7259, allocations: 2.36 MB / 0.5019 GB, free: 8.172 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.7259, allocations: 4.062 kB / 0.5019 GB, free: 8.168 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007515/0.7267, allocations: 339.5 kB / 0.5022 GB, free: 7.82 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 8.602e-05/0.7268, allocations: 92.86 kB / 0.5023 GB, free: 7.711 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.888e-05/0.7268, allocations: 8 kB / 0.5023 GB, free: 7.703 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002898/0.7271, allocations: 19.94 kB / 0.5023 GB, free: 7.684 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.867e-05/0.7272, allocations: 19.91 kB / 0.5023 GB, free: 7.664 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.017e-05/0.7273, allocations: 12 kB / 0.5024 GB, free: 7.652 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.0001253/0.7274, allocations: 110.9 kB / 0.5025 GB, free: 7.547 MB / 442.8 MB Notification: Performance of sort global known variables: time 4.71e-07/0.7274, allocations: 0 / 0.5025 GB, free: 7.547 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.001178/0.7286, allocations: 259.3 kB / 0.5027 GB, free: 7.293 MB / 442.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002266/0.7309, allocations: 1.159 MB / 0.5038 GB, free: 6.113 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.001124/0.7321, allocations: 251.7 kB / 0.5041 GB, free: 5.867 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.7321, allocations: 0 / 0.5041 GB, free: 5.867 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0006438/0.7328, allocations: 152.3 kB / 0.5042 GB, free: 5.719 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002792/0.7331, allocations: 8.641 kB / 0.5042 GB, free: 5.711 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001996/0.7351, allocations: 0.5884 MB / 0.5048 GB, free: 5.09 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004904/0.7356, allocations: 0.8063 MB / 0.5056 GB, free: 4.258 MB / 442.8 MB Notification: Performance of simCode: alias equations: time 0.0005807/0.7362, allocations: 101.8 kB / 0.5057 GB, free: 4.156 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002178/0.7364, allocations: 87.41 kB / 0.5058 GB, free: 4.07 MB / 442.8 MB Notification: Performance of SimCode: time 1.173e-06/0.7365, allocations: 0 / 0.5058 GB, free: 4.07 MB / 442.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03745/0.7739, allocations: 8.397 MB / 0.514 GB, free: 11.77 MB / 458.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003391/0.7743, allocations: 223.5 kB / 0.5142 GB, free: 11.54 MB / 458.8 MB Error: Error building simulator. Build log: clang -Os -fPIC -mfpmath=sse -fno-dollars-in-identifiers -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I'/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -c -o ModelicaTest_3_2_3_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_overall_DPMFLOW.o ModelicaTest_3_2_3_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_overall_DPMFLOW.c In file included from ModelicaTest_3_2_3_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_overall_DPMFLOW.c:7: In file included from ./ModelicaTest_3_2_3_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_overall_DPMFLOW_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:111: ./gc/omc_gc.h:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:221:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ 2 warnings generated. clang -Os -fPIC -mfpmath=sse -fno-dollars-in-identifiers -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I'/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -c -o ModelicaTest_3_2_3_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_overall_DPMFLOW_functions.o ModelicaTest_3_2_3_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_overall_DPMFLOW_functions.c In file included from ModelicaTest_3_2_3_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_overall_DPMFLOW_functions.c:2: In file included from ./ModelicaTest_3_2_3_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_overall_DPMFLOW_functions.h:3: In file included from ./meta/meta_modelica.h:49: ./gc/omc_gc.h:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:221:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ ModelicaTest_3_2_3_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_overall_DPMFLOW_functions.c:246:455: error: passing 'Modelica_Fluid_Dissipation_PressureLoss_StraightPipe_dp__overall__IN__con' to parameter of incompatible type 'Modelica_Fluid_Dissipation_PressureLoss_StraightPipe_dp__turbulent__IN__con' _DP = (omc_Modelica_Fluid_Dissipation_Utilities_Functions_General_Stepsmoother(threadData, _Re_lam_min, _Re_lam_max, _Re)) * (omc_Modelica_Fluid_Dissipation_PressureLoss_StraightPipe_dp__laminar__DP(threadData, _IN_con_lam, _IN_var, _m_flow)) + (omc_Modelica_Fluid_Dissipation_Utilities_Functions_General_Stepsmoother(threadData, _Re_lam_max, _Re_lam_min, _Re)) * (omc_Modelica_Fluid_Dissipation_PressureLoss_StraightPipe_dp__turbulent__DP(threadData, _IN_con, _IN_var, _m_flow)); ^~~~~~~ ./ModelicaTest_3_2_3_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_overall_DPMFLOW_functions.h:385:192: note: passing argument to parameter '_IN_con' here modelica_real omc_Modelica_Fluid_Dissipation_PressureLoss_StraightPipe_dp__turbulent__DP(threadData_t *threadData, Modelica_Fluid_Dissipation_PressureLoss_StraightPipe_dp__turbulent__IN__con _IN_con, Modelica_Fluid_Dissipation_PressureLoss_StraightPipe_dp__turbulent__IN__var _IN_var, modelica_real _m_flow); ^ ModelicaTest_3_2_3_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_overall_DPMFLOW_functions.c:581:455: error: passing 'Modelica_Fluid_Dissipation_PressureLoss_StraightPipe_dp__overall__IN__con' to parameter of incompatible type 'Modelica_Fluid_Dissipation_PressureLoss_StraightPipe_dp__turbulent__IN__con' _M_FLOW = (omc_Modelica_Fluid_Dissipation_Utilities_Functions_General_Stepsmoother(threadData, _Re_lam_min, _Re_turb, _Re)) * (omc_Modelica_Fluid_Dissipation_PressureLoss_StraightPipe_dp__laminar__MFLOW(threadData, _IN_con_lam, _IN_var, _dp)) + (omc_Modelica_Fluid_Dissipation_Utilities_Functions_General_Stepsmoother(threadData, _Re_turb, _Re_lam_min, _Re)) * (omc_Modelica_Fluid_Dissipation_PressureLoss_StraightPipe_dp__turbulent__MFLOW(threadData, _IN_con, _IN_var, _dp)); ^~~~~~~ ./ModelicaTest_3_2_3_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_overall_DPMFLOW_functions.h:411:195: note: passing argument to parameter '_IN_con' here modelica_real omc_Modelica_Fluid_Dissipation_PressureLoss_StraightPipe_dp__turbulent__MFLOW(threadData_t *threadData, Modelica_Fluid_Dissipation_PressureLoss_StraightPipe_dp__turbulent__IN__con _IN_con, Modelica_Fluid_Dissipation_PressureLoss_StraightPipe_dp__turbulent__IN__var _IN_var, modelica_real _dp); ^ 2 warnings and 2 errors generated. : recipe for target 'ModelicaTest_3_2_3_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_overall_DPMFLOW_functions.o' failed make: *** [ModelicaTest_3_2_3_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_overall_DPMFLOW_functions.o] Error 1