Why the don't the theoretical and practical output of comparator match for small input?
The short answer is that the TL084 is not suitable for your application. It is not intended for single-supply operation at 5V, and the common mode input range doesn't go down to the negative supply voltage.