The proposed bitumen upgrader in the Sarnia-Lambton region refine diluted bitumen into naphtha, diesel and heavy gas oil. A key step in this process is hydrotreating, in which the fed hydrocarbons are saturated with hydrogen, and impurities such as nitrogen and sulfur are removed. According to the Canadian Nuclear Society, in Ontario, approximately 60% of the power generated comes from nuclear energy, the remainder is composed of hydro, gas, wind, solar and biofuels. However, due to the inflexibility in nuclear and wind productions, and the increased efficiency of appliances and equipment, Ontario is left with an excess base load of electricity. The aim of this study is to evaluate the techno-economic feasibility of an electrolytic-hydrogen production plant that utilizes this excess electricity with the goal of minimizing total cost and emissions. Load-shifting using compressed storage is considered, and total cost compared with conventional methods, namely steam methane reforming. A total of five control algorithms are developed and compared to one another. From these, optimal performance in cost and CO2 reduction is observed when historical electricity price data is directly used.