Semiconductor device model