encapsulated function controllablePoles import Modelica; import Modelica_LinearSystems2; import Modelica_LinearSystems2.StateSpace; import Modelica_LinearSystems2.Internal; input StateSpace ss = StateSpace(A = [-1], B = [1], C = [0], D = [0]) "State space system"; output Real cPoles[:, 2] "controllable poles"; output Real ncPoles[:, 2] "uncontrollable poles"; output Real poles[size(ss.A, 1), 2] "controllable and uncontrollable poles"; end controllablePoles;