Baking a Fluid at 150res crashes, but baking at 300res doesn't?
The issue with the extra ram usage comes from the tubing you have the inflow located inside. While the rest of your scene appears to be simpler than the glass simulation, this pipe as an obstacle around the inflow object is where blender is having trouble. It appears that the biggest issue is the bend in the pipe.

For a solution, cut the pipe as it passes into the domain and disable the fluid obstacle settings for the pipe outside of the domain.

The easiest way to do that would be to select the end of the pipe and the next edge loop and use P->Selection to separate the end into a new object.