Mix tomatoes, onions, garlic, thyme, salt, pepper, and red pepper flakes together with some olive oil and spread out on a cookie sheet. Roast for 30 minutes. Tomatoes should be blistered and juicy. Onions should be brown. If garlic is burned, discard burned cloves.