Window conduction always equal solar gains (the fenestration area has no impact on heating loads in cold climate?)

Please read the Forum Guidelines as this script is too large for me to figure out which part you want someone to look at.

You are probably not setting up all the terms of your load balance correctly (all of those list item components before the actual load balance are pretty certainly going to make the results illogical, especially for surface energy flow). I recommend using the HB Annual Loads component for load balances since that will construct all of the terms of the balance correctly.