When integrating the function $1/x$ over $[0,1]$, the exact analytic result is $+\infty$. With a discretized $\Omega_h$, I was expecting the same since the integral over the very first interval $[0,h]$ is already $+\infty$. However,
from dolfin import *
r = Expression('x[0]')
mesh = UnitIntervalMesh(160)
print(assemble(1.0/r * dx, mesh=mesh))
yields
7.038685468848289
and the value depends on the discretization. What is happening here exactly?