Compact Modeling for Silicon Photonic Heterogeneously Integrated Circuits