Skip to content

Commit

Permalink
Add test case for #3323
Browse files Browse the repository at this point in the history
  • Loading branch information
lochel committed May 24, 2015
1 parent 0bc3a73 commit 72a94bb
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
33 changes: 33 additions & 0 deletions simulation/modelica/others/Bug3323.mos
@@ -0,0 +1,33 @@
// name: Bug3323.mos
// keywords: alias
// status: correct
//
// test for #3323
//

loadString("
model Bug3323
Real x1;
Real x2;
equation
x1 + x2 = 0;
x1 - x2 = 1;
end Bug3323;
"); getErrorString();

simulate(Bug3323); getErrorString();
val(x1, 0.0);
val(x2, 0.0);

// Result:
// true
// ""
// record SimulationResult
// resultFile = "Bug3323_res.mat",
// simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'Bug3323', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''",
// messages = ""
// end SimulationResult;
// ""
// 0.5
// -0.5
// endResult
1 change: 1 addition & 0 deletions simulation/modelica/others/Makefile
Expand Up @@ -11,6 +11,7 @@ Bug2788.mos \
Bug2833.mos \
Bug3023.mos \
Bug3261.mos \
Bug3323.mos \
BugTest1830.mos \
ChangeCorrect.mos \
CombiTable1DBug.mos \
Expand Down

0 comments on commit 72a94bb

Please sign in to comment.