Only CRA can determine your tax residence, but based on your input you would be considered a resident of Panama,and non-resident in Canada.
The tax treaty between Panama and Canada will have an Article which stipulates where your pension should be taxed.