function analysis2 import Modelica_LinearSystems2; import Modelica_LinearSystems2.StateSpace; import Re = Modelica.ComplexMath.real; import Im = Modelica.ComplexMath.imag; import Modelica.ComplexMath.j; input StateSpace ssi = Modelica_LinearSystems2.StateSpace(A = [-6.0, 0, 2, -13.0; -9.0, -12.0, -3.25, 19.25; 0, 0, 1, 34.0; 0, 0, -34.0, -31.0]/6, B = [1; 1; 1; 1], C = identity(4), D = zeros(4, 1), xNames = {"x1", "x2", "x3", "x4"}, uNames = {"u"}, yNames = {"y1", "y2", "y3", "y4"}); input Modelica_LinearSystems2.Internal.AnalyseOptions analyseOptions = Modelica_LinearSystems2.Internal.AnalyseOptions(plotEigenValues = true, plotInvariantZeros = true, plotStepResponse = true, plotFrequencyResponse = false, printEigenValues = true, printEigenValueProperties = true, printInvariantZeros = true, printControllability = false, printObservability = false, headingEigenValues = "Eigenvalues", headingInvariantzeros = "Invariant zeros", headingStepResponse = "Step response", headingFrequencyResponse = "Frequency response"); input Boolean systemOnFile = false "True, if state space system is defined on file" annotation( Dialog(group = "system data definition"), choices(checkBox = true)); input String fileName = "NoName" "file where matrix [A, B; C, D] is stored" annotation( Dialog(group = "system data definition", loadSelector(filter = "MAT files (*.mat);; All files (*.*)", caption = "state space system data file"), enable = systemOnFile)); input String matrixName = "ABCD" "Name of the state space system matrix" annotation( Dialog(group = "system data definition", enable = systemOnFile)); output Boolean ok; end analysis2;