It looks tight. I think it is better to take an earlier one if possible.
Otherwise, you may run a lot. If there is any delay, you will miss
the connection.
You go through USA immigration and custom at Ottawa airport. So, you don,t need to do it again in Chicago; if you are connecting to same airline, you even don't need to pickup & recheck in your luggage s.