On the Onsager Variation Principle and its Generalization for Nonlinear Irreversible Thermodynamics