Modeling and simulation of multilayer flip-chip package