Ticket #6030: test_2.mos

File test_2.mos, 642 bytes (added by Karim.Abdelhak, 4 years ago)

actual failing mos

Line 
1setCommandLineOptions("-d=newInst"); getErrorString();
2loadModel(Modelica); getErrorString();
3loadFile("package.mo"); getErrorString();
4// first simulation with a=5
5writeFile("Resources/Parameters.txt", "a=5"); getErrorString();
6simulate(ParametersTest.M); getErrorString();
7val(config.a); getErrorString();
8closeSimulationResultFile();
9deleteFile("ParametersTest.M_res.mat"); getErrorString();
10writeFile("Resources/Parameters.txt", "a=3"); getErrorString();
11// resimulate with a=3
12system("./ParametersTest.M"); getErrorString();
13// for windows use this:
14// system("ParametersTest.M.exe"); getErrorString();
15val(config.a); getErrorString();
16