Keep in mind that the 'integrand' must be "created" beforehand: see the 'CreateIntegrand' model and the 'integrand_setup' function. Note that here f is to be defined without the singular 1/(x-c) part:
function qawc
extends Modelica.Icons.Function;
input Integer n_par;
input Real par[n_par], a, b, c, rel_err;
input Integer limit;
output Real y, err;
end qawc;