Power factor analysis using CircuitMod 