While the beans are cooking, in a soup pot over medium heat, warm the olive oil. Add onion, carrot and bacon and sauté until onion is soft, about 10 minutes. Add the garlic and cook for another minute. Add the ham hocks, tomatoes and chicken stock and bring to a boil. Reduce heat to low and cook uncovered until the ham just starts to fall away from the bone, about one hour. Add the beans and continue simmering until the ham falls from the bone, and the beans are tender, about another hour.