| 1 | loadString("package Source
|
|---|
| 2 | import Modelica.Constants.pi;
|
|---|
| 3 | import SI = Modelica.SIunits;
|
|---|
| 4 |
|
|---|
| 5 | package Components
|
|---|
| 6 | model Component
|
|---|
| 7 | parameter SI.Radius r = 1 \"Radius\";
|
|---|
| 8 | parameter SI.Area area = r^2*pi;
|
|---|
| 9 | end Component;
|
|---|
| 10 | end Components;
|
|---|
| 11 |
|
|---|
| 12 | model Example
|
|---|
| 13 | Components.Component component;
|
|---|
| 14 | parameter SI.Length l = 1;
|
|---|
| 15 | annotation(experiment(StartTime = 0, StopTime = 1, Tolerance = 1e-6, Interval = 0.002));
|
|---|
| 16 | end Example;
|
|---|
| 17 | end Source;");
|
|---|
| 18 | getErrorString();
|
|---|
| 19 | copyClass(Source.Example, "Example");
|
|---|
| 20 | getErrorString();
|
|---|
| 21 | list(Example);
|
|---|
| 22 | getErrorString();
|
|---|
| 23 | checkModel(Example);
|
|---|
| 24 | getErrorString();
|
|---|