I am confused by how op-amps work. I have a single-supply op-amp: the power rails are +5V and ground. The circuit in the image says the op-amp is an LM741 but it's actually the op-amp built into the Cypress PSoC 4200M chip (data sheet). My understanding is that op-amps generally cannot output a voltage that is too close to the power rail. Therefore I expect that if I configure the op-amp as a voltage follower and tie the positive input to ground, I should get something greater than 0V from the output.
Looking at the data sheet, I think that, assuming I set the power to low and my load is minimal (it's an ADC), the output should range from 0.1V to VDDA (5V) - 0.1V = 4.9V. Does that look correct?
The reason I'm confused about this is when I simulate the circuit in CircuitLab (with the LM741) and run the DC sweep simulation, I see the LM741 outputting the full range of voltages from 0V all the way up to 5V. It seems to be behaving as an "ideal" op-amp. But what's the point in choosing the op-amp model in the simulator and entering all the parameters if it's not going to simulate correctly? Am I doing something wrong or does CL just not simulate op-amps correctly or do I not understand how op-amps work?