Running command: "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Channel.dp_internalFlowOverall_DPMFLOW,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.208/2.208, allocations: 209.3 MB / 221.5 MB, free: 1.941 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.933e-05/3.944e-05, allocations: 0 / 273.2 MB, free: 132 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1203/0.1203, allocations: 48.71 MB / 321.9 MB, free: 15.32 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.498/0.6184, allocations: 98.54 MB / 420.4 MB, free: 7.016 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003794/0.6188, allocations: 99.91 kB / 420.5 MB, free: 6.918 MB / 346.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/Fluid/Dissipation.mo:4955:11-4956:126:writable] Error: Type mismatch in binding eta = eta, expected subtype of Real[5], got type Real. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/Fluid/Dissipation.mo:4977:11-4978:120:writable] Error: Type mismatch in binding eta = eta, expected subtype of Real[5], got type Real. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/Fluid/Dissipation.mo:4937:11-4953:48:writable] Error: Type mismatch in binding K = K, expected subtype of Real[5], got type Real. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/Fluid/Dissipation.mo:4959:11-4975:59:writable] Error: Type mismatch in binding K = K, expected subtype of Real[5], got type Real. Notification: Performance of FrontEnd - DAE generated: time 0.1397/0.7586, allocations: 27.79 MB / 448.3 MB, free: 10.82 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.519e-06/0.7586, allocations: 0 / 448.3 MB, free: 10.82 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.746e-05/0.7587, allocations: 11.94 kB / 448.3 MB, free: 10.8 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: 240 * Number of variables: 240 Notification: Performance of Generate backend data structure: time 0.002795/0.7615, allocations: 0.9041 MB / 449.3 MB, free: 9.852 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.766e-05/0.7616, allocations: 12.03 kB / 449.3 MB, free: 9.84 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000297/0.7619, allocations: 143.9 kB / 449.4 MB, free: 9.691 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002084/0.7621, allocations: 75.02 kB / 449.5 MB, free: 9.617 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007621/0.7629, allocations: 354 kB / 449.8 MB, free: 9.23 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.63e-05/0.7629, allocations: 58 kB / 449.9 MB, free: 9.176 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000188/0.7631, allocations: 76 kB / 450 MB, free: 9.102 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002678/0.7658, allocations: 1.147 MB / 451.1 MB, free: 7.945 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.66e-05/0.7659, allocations: 0 / 451.1 MB, free: 7.945 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001353/0.766, allocations: 28 kB / 451.1 MB, free: 7.918 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001393/0.7662, allocations: 73.95 kB / 451.2 MB, free: 7.848 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003733/0.7699, allocations: 1.656 MB / 452.9 MB, free: 6.191 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007772/0.7778, allocations: 2.975 MB / 455.8 MB, free: 3.066 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001343/0.7792, allocations: 403.5 kB / 456.2 MB, free: 2.66 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003431/0.7795, allocations: 133.4 kB / 456.4 MB, free: 2.527 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.601e-05/0.7796, allocations: 8.266 kB / 456.4 MB, free: 2.52 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.096e-05/0.7796, allocations: 38.84 kB / 456.4 MB, free: 2.473 MB / 378.7 MB Notification: Performance of pre-optimization done (n=34): time 3.627e-06/0.7797, allocations: 0 / 456.4 MB, free: 2.473 MB / 378.7 MB Notification: Performance of matching and sorting (n=34): time 0.0009615/0.7806, allocations: 331.7 kB / 456.7 MB, free: 2.145 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.216e-05/0.7807, allocations: 59.36 kB / 456.8 MB, free: 2.074 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002759/0.781, allocations: 185.6 kB / 457 MB, free: 1.883 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.19e-05/0.781, allocations: 29.7 kB / 457 MB, free: 1.848 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002902/0.7813, allocations: 378.2 kB / 457.4 MB, free: 1.469 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001675/0.7815, allocations: 122.3 kB / 457.5 MB, free: 1.348 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.639e-05/0.7816, allocations: 8 kB / 457.5 MB, free: 1.34 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001543/0.7817, allocations: 334.8 kB / 457.8 MB, free: 1.004 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003643/0.7821, allocations: 137 kB / 458 MB, free: 0.8672 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005231/0.7827, allocations: 321.3 kB / 458.3 MB, free: 480 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004903/0.7832, allocations: 200.4 kB / 458.5 MB, free: 280 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.011e-06/0.7832, allocations: 4 kB / 458.5 MB, free: 276 kB / 378.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001316/0.7845, allocations: 0.4893 MB / 459 MB, free: 15.77 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.924e-05/0.7846, allocations: 8 kB / 459 MB, free: 15.77 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.678e-05/0.7846, allocations: 8 kB / 459 MB, free: 15.76 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.904e-05/0.7846, allocations: 8 kB / 459 MB, free: 15.75 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001515/0.7861, allocations: 207.8 kB / 459.2 MB, free: 15.55 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002062/0.7882, allocations: 3.001 MB / 462.2 MB, free: 12.43 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005798/0.7889, allocations: 55.58 kB / 462.2 MB, free: 12.38 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.536e-05/0.789, allocations: 31.98 kB / 462.3 MB, free: 12.34 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 6 (roughness,geometry[5],geometry[4],geometry[3],geometry[2],geometry[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * 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: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002114/0.7892, allocations: 144.9 kB / 462.4 MB, free: 12.2 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.8e-05/0.7893, allocations: 23.72 kB / 462.4 MB, free: 12.17 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00198/0.7913, allocations: 0.5386 MB / 463 MB, free: 11.63 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.047e-06/0.7913, allocations: 4 kB / 463 MB, free: 11.62 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.7913, allocations: 0 / 463 MB, free: 11.62 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.457e-06/0.7913, allocations: 3.984 kB / 463 MB, free: 11.62 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002784/0.7941, allocations: 1.15 MB / 464.1 MB, free: 10.39 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.453e-06/0.7942, allocations: 0 / 464.1 MB, free: 10.39 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001254/0.7955, allocations: 175.8 kB / 464.3 MB, free: 10.22 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.455e-05/0.7955, allocations: 4 kB / 464.3 MB, free: 10.21 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.193e-05/0.7956, allocations: 15.98 kB / 464.3 MB, free: 10.2 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001984/0.7976, allocations: 2.966 MB / 467.3 MB, free: 7.117 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.456e-06/0.7976, allocations: 4 kB / 467.3 MB, free: 7.113 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001054/0.7987, allocations: 0.5543 MB / 467.8 MB, free: 6.469 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001048/0.7988, allocations: 100.8 kB / 467.9 MB, free: 6.352 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.603e-05/0.7989, allocations: 8 kB / 468 MB, free: 6.344 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003619/0.7993, allocations: 23.94 kB / 468 MB, free: 6.32 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001278/0.7994, allocations: 35.95 kB / 468 MB, free: 6.285 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.81e-05/0.7995, allocations: 23.94 kB / 468 MB, free: 6.262 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001692/0.7997, allocations: 127.2 kB / 468.2 MB, free: 6.137 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.7997, allocations: 3.938 kB / 468.2 MB, free: 6.133 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001757/0.8014, allocations: 386.6 kB / 468.5 MB, free: 5.754 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * 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: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003055/0.8045, allocations: 1.951 MB / 470.5 MB, free: 3.723 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001718/0.8063, allocations: 409.1 kB / 470.9 MB, free: 3.324 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.671e-06/0.8064, allocations: 0 / 470.9 MB, free: 3.324 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009205/0.8073, allocations: 215.8 kB / 471.1 MB, free: 3.113 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004159/0.8077, allocations: 24.12 kB / 471.1 MB, free: 3.086 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003552/0.8113, allocations: 1.103 MB / 472.2 MB, free: 1.918 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008672/0.8122, allocations: 1.007 MB / 473.2 MB, free: 0.8867 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0009754/0.8132, allocations: 170.5 kB / 473.4 MB, free: 0.7227 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004586/0.8137, allocations: 211.3 kB / 473.6 MB, free: 0.5156 MB / 394.7 MB Notification: Performance of SimCode: time 1.342e-06/0.8137, allocations: 0 / 473.6 MB, free: 0.5156 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06405/0.8778, allocations: 12.41 MB / 486 MB, free: 4.211 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00039/0.8782, allocations: 242.9 kB / 486.3 MB, free: 3.891 MB / 410.7 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_1_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW.o ModelicaTest_3_2_1_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW.c In file included from ModelicaTest_3_2_1_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW.c:7: In file included from ./ModelicaTest_3_2_1_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_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_1_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW_functions.o ModelicaTest_3_2_1_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW_functions.c In file included from ModelicaTest_3_2_1_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW_functions.c:2: In file included from ./ModelicaTest_3_2_1_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_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_1_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW_functions.c:321:452: 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 = (0.5) * ((omc_Modelica_Fluid_Dissipation_Utilities_Functions_General_Stepsmoother(threadData, _Re_lam_min, _Re_lam_max, _Re)) * ((_CF_lam) * ((_IN_con._L) * ((real_int_pow(threadData, _d_hyd, -2)) * ((_velocity) * (_IN_var._eta)))))) + (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_2_con, _IN_2_var, _m_flow_turb)); ^~~~~~~~~ ./ModelicaTest_3_2_1_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW_functions.h:381: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_1_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW_functions.c:927:499: 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 = (2.0) * ((omc_Modelica_Fluid_Dissipation_Utilities_Functions_General_Stepsmoother(threadData, _Re_lam_min, _Re_turb, _Re)) * ((_IN_var._rho) * ((_A_cross) * ((_dp) * (((tmp69 * tmp69)) / tmp70))))) + (1.273239544735163) * ((omc_Modelica_Fluid_Dissipation_Utilities_Functions_General_Stepsmoother(threadData, _Re_turb, _Re_lam_min, _Re)) * ((_A_cross) * ((real_int_pow(threadData, _d_hyd, -2)) * (omc_Modelica_Fluid_Dissipation_PressureLoss_StraightPipe_dp__turbulent__MFLOW(threadData, _IN_2_con, _IN_2_var, _dp))))); ^~~~~~~~~ ./ModelicaTest_3_2_1_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW_functions.h:407: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_1_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW_functions.o' failed make: *** [ModelicaTest_3_2_1_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW_functions.o] Error 1