Integration within ModelingToolkit Models

DOS is a function and not symbolic? Then you need:

@register_symbolic HeatCapacity(kB,Tel,μ,DOS::Function)