Iterative Learning Control of Constrained Systems With Varying Trial Lengths Under Alignment Condition