-
Notifications
You must be signed in to change notification settings - Fork 297
/
testDAEModeFileSplit_Issue4851.mos
26 lines (23 loc) · 1.18 KB
/
testDAEModeFileSplit_Issue4851.mos
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// name: testDAEModeFileSplit_Issue4851.mos
// status: correct
// teardown_command: rm -f PowerGrids.Examples.IEEE14bus.IEEE14busGen2Disconnection* output.log
// tests that we split the big 16dae.c files into parts
loadFile("pg.mo");
getErrorString();
setCommandLineOptions("--daeMode");
buildModel(PowerGrids.Examples.IEEE14bus.IEEE14busGen2Disconnection); getErrorString();
system("ls *16dae_part*.c"); getErrorString();
// Result:
// true
// ""
// true
// {"PowerGrids.Examples.IEEE14bus.IEEE14busGen2Disconnection","PowerGrids.Examples.IEEE14bus.IEEE14busGen2Disconnection_init.xml"}
// "Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts.
// "
// PowerGrids.Examples.IEEE14bus.IEEE14busGen2Disconnection_16dae_part0.c
// PowerGrids.Examples.IEEE14bus.IEEE14busGen2Disconnection_16dae_part1.c
// PowerGrids.Examples.IEEE14bus.IEEE14busGen2Disconnection_16dae_part2.c
// PowerGrids.Examples.IEEE14bus.IEEE14busGen2Disconnection_16dae_part3.c
// 0
// ""
// endResult