Simulation of nonlinear multiport engineering systems