Ticket #4138: P.mo

File P.mo, 729 bytes (added by Francesco Casella, 8 years ago)
Line 
1package P
2 model M0
3// parameter Real p = 3;
4// parameter Real q =10;
5// final parameter Real r = 2;
6 Real p = 3;
7 Real q =10;
8 Real r = 2;
9 Real x, y, z;
10 Real a, b, c;
11 Real d, e, f, g;
12 equation
13 x = b;
14 y = p*x + a;
15 z - x = q;
16 a = 10;
17 b - a = r;
18 c + a - 2 = 14;
19 d = 40;
20 e = 0;
21 f = 50;
22 c+ d+ e +x +a = 0;
23 end M0;
24
25 model M
26 parameter Real p = 3;
27 M0 m01(p = p);
28 M0 m02(p = p);
29 M0 m03(p = p);
30 M0 m04(p = p);
31 M0 m05(p = p);
32 M0 m06(p = p);
33 M0 m07(p = p);
34 M0 m08(p = p);
35 M0 m09(p = p);
36 M0 m10(p = p);
37 end M;
38
39 model S
40 M m1(p = 1);
41 M m2(p = 2);
42 end S;
43end P;