Tutorial on PSIM software simulations