encapsulated function polesAndZeros
import Modelica;
import Complex;
import Modelica_LinearSystems2;
import Modelica_LinearSystems2.StateSpace;
import Modelica_LinearSystems2.Internal.PolesAndZeros;
import Modelica_LinearSystems2.Internal;
input StateSpace ss "State space system";
input StateSpace ssm = Modelica_LinearSystems2.StateSpace.Transformation.toIrreducibleForm(ss);
output Internal.PolesAndZeros pz(redeclare Real p_real[size(ssm.A, 1)], redeclare Real p_im[size(ssm.A, 1)], redeclare Real z_real[size(StateSpace.Analysis.invariantZeros(ssm), 1)], redeclare Real z_im[size(StateSpace.Analysis.invariantZeros(ssm), 1)]);
end polesAndZeros;