Your onions will give off a lot of liquid while cooking. You can drain this off and use it in other recipes OR
Cook with the lid off for the last several hours. This will allow the liquid to evaporate and your onions to condense. .