Ticket #5344: script.mos

File script.mos, 630 bytes (added by Adeel Asghar, 7 years ago)
Line 
1loadString("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;
17end Source;");
18getErrorString();
19copyClass(Source.Example, "Example");
20getErrorString();
21list(Example);
22getErrorString();
23checkModel(Example);
24getErrorString();