One embodiment of the present invention provides a system that determines
an accurate process model. During operation, the system receives process
data. Next, the system receives an optical model which models an optical
system of a photolithography process. The system then determines a stack
model using the optical model, wherein the stack model models the effects
of the photolithography process on the stack layers. Finally, the system
determines a process model using the optical model, the stack model, and
the process data.