Guilin Sun
Ansys Employee

We could not comment on Python result as it is 3rd party software.

The "internal S matrix" is the S matrix at each interface between cells, eg, the modes decomposion at both sides of the interface without any correction. Please use Lumerical script to check. It could be different operation of the matrix multiplication.