Look at the datasheet then learn about how Mosfets work.
It is a P-channel Mosfet so your circuit needs a negative power supply, or turn the Mosfet upside down.
If your circuit has a negative supply then the left Mosfet would be turned on and its source would be close to -5V. The right Mosfet would be turned off and its source would be 0V.
Like most Mosfets, the IRF9140 is turned on the most with 10V between gate and source.
Excuse my posting title(j-channel), I understand its a p-channel.
I had a n-channel simulating as i expected but could not get the p-channel right, I ended up flipping it upside down as you suggested and now its working correctly.
I downloaded the data sheet and it is a P channel so you need a negative supply voltage (with respect to the source) and a negative gate voltage to turn it on.
The datasheet For the Mosfet says that its max leakage current is 25uA with 80V across it with its junction at 25 degrees C. So the one is your sim is leaking a little too much at 11uA with only 5V across it.
The IRF9140 is rated for 11A to 18A so why use it with a 10k load where its max current is only 0.5mA?
A 2N3055 is a BJT with a 15A similar rating. Its max leakage current is a whopping 200mA at its rated max voltage and its junction at 25 degrees C.
If you look at the data sheet of the IFR9140 its leakage current is specified as 25 uA max. So if you need a MOSFET that has less leakage, then you need to select a lower power one.
This is a high power MOSFET designed for a maximum of 18A so it has some leakage. 11uA sounds about right given that, as I said above, it has a max leakage of 25uA.
No I have not built it with MOSFETS. I currnently have it built with BJTs.
Like I said before, I never had any intention of using the IRF9140... It was simply the only model I had available for simulation. I just wanted to tinker around and figure out how to use a MOSFET, since I have never dealt with them in actual application.