Ticket #5252: TestPriorities.mo
File TestPriorities.mo, 399 bytes (added by , 6 years ago) |
---|
Line | |
---|---|
1 | package TestPriorities |
2 | type Pressure = Real(start = 1e5, nominal = 1e6); |
3 | |
4 | model M |
5 | parameter Pressure pstart = 2e5; |
6 | parameter Pressure pnom = 3e5; |
7 | Pressure p1; |
8 | Pressure p2(start = pstart, nominal = pnom); |
9 | equation |
10 | p1 = p2; |
11 | p1 + log(p1) = 2e5; |
12 | end M; |
13 | |
14 | |
15 | model Test |
16 | M m1; |
17 | M m2(pstart = 5e5, pnom = 6e5); |
18 | end Test; |
19 | end TestPriorities; |