Ticket #6030: test.mos
| File test.mos, 431 bytes (added by , 6 years ago) |
|---|
| Line | |
|---|---|
| 1 | loadModel(Modelica); getErrorString(); |
| 2 | loadFile("package.mo"); getErrorString(); |
| 3 | |
| 4 | // first simulation with a=5 |
| 5 | writeFile("Resources/Parameters.txt", "a=5"); getErrorString(); |
| 6 | |
| 7 | simulate(ParametersTest.M); getErrorString(); |
| 8 | val(config.a); getErrorString(); |
| 9 | |
| 10 | writeFile("Resources/Parameters.txt", "a=3"); getErrorString(); |
| 11 | |
| 12 | // second simulation with a=3 |
| 13 | simulate(ParametersTest.M); getErrorString(); |
| 14 | val(config.a); getErrorString(); |
| 15 |
