Using JuMP to solve the heat equation - performance tips requested

Please read Please read: make it easier to help you and provide your code as text that can be copy-pasted.

Did you take a look at where the time is being spent? I guess most of the 12 minutes is inside Ipopt. You have ~10^6 variables and constraints.

If you continue to use Ipopt, you should try a more efficient linear solver: https://github.com/jump-dev/Ipopt.jl#linear-solvers