Thank you professor. Sorry for the late reply I had to move.
So, you mean every variable used should be defined in the steady state file?
Also, is it necessary to enter the equations in the steady state file in any particular order? Because I get the error
“variable might be used before it is defined”.
Exactly. The code needs to be sequentially executable without relying on objects whose value has not yet been computed. Otherwise, you are back to a problem of solving simultaneous equations.