Running command: "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Channel.dp_internalFlowOverall_DPMFLOW,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.485/2.485, allocations: 270 MB / 283.6 MB, free: 1.965 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.76e-05/3.779e-05, allocations: 4 kB / 348.5 MB, free: 2.738 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3953/0.3954, allocations: 61.87 MB / 410.4 MB, free: 10.69 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2763/0.6718, allocations: 111.5 MB / 0.5097 GB, free: 11.01 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005303/0.6724, allocations: 95.92 kB / 0.5098 GB, free: 10.91 MB / 442.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 4.0.0/Fluid/Dissipation.mo:4871:11-4872: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 4.0.0/Fluid/Dissipation.mo:4893:11-4894: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 4.0.0/Fluid/Dissipation.mo:4853:11-4869: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 4.0.0/Fluid/Dissipation.mo:4875:11-4891: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.4708/1.143, allocations: 28.52 MB / 0.5376 GB, free: 107.1 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.813e-06/1.143, allocations: 0 / 0.5376 GB, free: 107.1 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.789e-05/1.143, allocations: 8 kB / 0.5376 GB, free: 107.1 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: 240 * Number of variables: 240 Notification: Performance of Generate backend data structure: time 0.002528/1.146, allocations: 0.9002 MB / 0.5385 GB, free: 106.2 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.474e-05/1.146, allocations: 11.97 kB / 0.5385 GB, free: 106.1 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002673/1.146, allocations: 147.9 kB / 0.5386 GB, free: 106 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001807/1.146, allocations: 75.06 kB / 0.5387 GB, free: 105.9 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000697/1.147, allocations: 354.1 kB / 0.539 GB, free: 105.5 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.603e-05/1.147, allocations: 58 kB / 0.5391 GB, free: 105.5 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001814/1.147, allocations: 83.92 kB / 0.5392 GB, free: 105.4 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002326/1.15, allocations: 1.143 MB / 0.5403 GB, free: 104.2 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.256e-05/1.15, allocations: 3.938 kB / 0.5403 GB, free: 104.2 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001205/1.15, allocations: 32 kB / 0.5403 GB, free: 104.2 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001172/1.15, allocations: 65.97 kB / 0.5404 GB, free: 104.1 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003421/1.153, allocations: 1.659 MB / 0.542 GB, free: 102.5 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007498/1.161, allocations: 2.97 MB / 0.5449 GB, free: 99.37 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001177/1.162, allocations: 395.5 kB / 0.5453 GB, free: 98.97 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002955/1.163, allocations: 137.3 kB / 0.5454 GB, free: 98.84 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.329e-05/1.163, allocations: 16.2 kB / 0.5454 GB, free: 98.82 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.088e-05/1.163, allocations: 38.84 kB / 0.5455 GB, free: 98.77 MB / 442.7 MB Notification: Performance of pre-optimization done (n=34): time 2.986e-06/1.163, allocations: 0 / 0.5455 GB, free: 98.77 MB / 442.7 MB Notification: Performance of matching and sorting (n=34): time 0.0008642/1.164, allocations: 323.7 kB / 0.5458 GB, free: 98.45 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.886e-05/1.164, allocations: 59.39 kB / 0.5458 GB, free: 98.38 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002178/1.164, allocations: 177.7 kB / 0.546 GB, free: 98.2 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 3.469e-05/1.164, allocations: 33.7 kB / 0.546 GB, free: 98.16 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001702/1.164, allocations: 382.1 kB / 0.5464 GB, free: 97.78 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001015/1.164, allocations: 118.3 kB / 0.5465 GB, free: 97.66 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.501e-05/1.164, allocations: 12 kB / 0.5465 GB, free: 97.65 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.451e-05/1.164, allocations: 338.8 kB / 0.5469 GB, free: 97.31 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000311/1.165, allocations: 129.1 kB / 0.547 GB, free: 97.18 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004019/1.165, allocations: 325.3 kB / 0.5473 GB, free: 96.77 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004252/1.165, allocations: 196 kB / 0.5475 GB, free: 96.58 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.033e-06/1.165, allocations: 4 kB / 0.5475 GB, free: 96.58 MB / 442.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001116/1.167, allocations: 496.7 kB / 0.548 GB, free: 96.09 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.577e-05/1.167, allocations: 8 kB / 0.548 GB, free: 96.08 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.547e-05/1.167, allocations: 8 kB / 0.548 GB, free: 96.07 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.277e-05/1.167, allocations: 15.98 kB / 0.548 GB, free: 96.05 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001724/1.168, allocations: 208.5 kB / 0.5482 GB, free: 95.85 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001364/1.17, allocations: 2.985 MB / 0.5511 GB, free: 92.75 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005568/1.17, allocations: 67.78 kB / 0.5512 GB, free: 92.68 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.358e-05/1.171, allocations: 32 kB / 0.5512 GB, free: 92.65 MB / 442.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.0001678/1.171, allocations: 136.8 kB / 0.5513 GB, free: 92.51 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.967e-05/1.171, allocations: 23.75 kB / 0.5513 GB, free: 92.49 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001795/1.173, allocations: 0.5416 MB / 0.5519 GB, free: 91.94 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.654e-06/1.173, allocations: 4 kB / 0.5519 GB, free: 91.94 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.251e-06/1.173, allocations: 0 / 0.5519 GB, free: 91.94 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/1.173, allocations: 3.984 kB / 0.5519 GB, free: 91.93 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002915/1.176, allocations: 1.154 MB / 0.553 GB, free: 90.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.143e-06/1.176, allocations: 4 kB / 0.553 GB, free: 90.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001191/1.177, allocations: 172.1 kB / 0.5532 GB, free: 90.53 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.404e-05/1.177, allocations: 11.98 kB / 0.5532 GB, free: 90.52 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.412e-05/1.177, allocations: 16 kB / 0.5532 GB, free: 90.5 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001218/1.178, allocations: 2.961 MB / 0.5561 GB, free: 87.42 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.043e-06/1.178, allocations: 4.031 kB / 0.5561 GB, free: 87.42 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008462/1.179, allocations: 0.5586 MB / 0.5566 GB, free: 86.77 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.715e-05/1.179, allocations: 104.8 kB / 0.5567 GB, free: 86.65 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.369e-05/1.179, allocations: 11.98 kB / 0.5568 GB, free: 86.64 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003651/1.18, allocations: 16 kB / 0.5568 GB, free: 86.62 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00011/1.18, allocations: 39.91 kB / 0.5568 GB, free: 86.58 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.85e-05/1.18, allocations: 23.98 kB / 0.5568 GB, free: 86.56 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0001246/1.18, allocations: 127.2 kB / 0.557 GB, free: 86.43 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.31e-07/1.18, allocations: 4 kB / 0.557 GB, free: 86.43 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001477/1.181, allocations: 378.6 kB / 0.5573 GB, free: 86.06 MB / 442.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.002268/1.184, allocations: 1.951 MB / 0.5592 GB, free: 84.02 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001443/1.185, allocations: 413.1 kB / 0.5596 GB, free: 83.62 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.641e-06/1.185, allocations: 0 / 0.5596 GB, free: 83.62 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008306/1.186, allocations: 215.7 kB / 0.5598 GB, free: 83.41 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003719/1.186, allocations: 28.98 kB / 0.5599 GB, free: 83.38 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003042/1.19, allocations: 1.107 MB / 0.5609 GB, free: 82.21 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005204/1.19, allocations: 1.007 MB / 0.5619 GB, free: 81.18 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0008598/1.191, allocations: 162.6 kB / 0.5621 GB, free: 81.02 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003628/1.191, allocations: 203.4 kB / 0.5623 GB, free: 80.82 MB / 442.7 MB Notification: Performance of SimCode: time 1.423e-06/1.191, allocations: 0 / 0.5623 GB, free: 80.82 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04135/1.233, allocations: 12.42 MB / 0.5744 GB, free: 68.6 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000254/1.233, allocations: 230.4 kB / 0.5746 GB, free: 68.29 MB / 442.7 MB Error: Error building simulator. Build log: clang -Os -fPIC -mfpmath=sse -fno-dollars-in-identifiers -Os -march=native -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_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW.o ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW.c In file included from ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW.c:7: In file included from ./ModelicaTest_4_0_0_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 -Os -march=native -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_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW_functions.o ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW_functions.c In file included from ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW_functions.c:2: In file included from ./ModelicaTest_4_0_0_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_4_0_0_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_4_0_0_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_4_0_0_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_4_0_0_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_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW_functions.o' failed make: *** [ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW_functions.o] Error 1