Place onions, washed beans, jalapenos, garlic, salt, pepper, caraway seeds and cook over low heat. Pour into water and stir. Boil for 8 hours, adding water as needed.
After the beans are cooked, strain leaving a liquid. Mash the beans with a potato press while adding the remaining liquid to achieve the desired consistency.