Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update expected output for new failure
Dynamic state selection initialization fails for most of these models.
- Loading branch information
1 parent
5a15550
commit 6edbc33
Showing
9 changed files
with
35 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
// name: Pendulum | ||
// keywords: Simulate, readSimulationData | ||
// status: correct | ||
// status: incorrect | ||
// teardown_command: rm -rf Pendulum.cpp Pendulum Pendulum.exe Pendulum.libs Pendulum.log Pendulum.makefile Pendulum_*.* | ||
// | ||
// | ||
// Simulate Pendulum example (index reduction, linear and nonlinear equation systems) | ||
// | ||
loadFile("Pendulum.mo"); | ||
simulate(Pendulum,numberOfIntervals=300,stopTime=5.0, tolerance=1e-10); | ||
echo(false); | ||
x := simulate(Pendulum,numberOfIntervals=300,stopTime=5.0, tolerance=1e-10); | ||
x := x.messages; | ||
if x<>"" then | ||
print("*** Dynamic state selection probably failed ***\n"); | ||
// TODO: Remove this code when DSS works properly again | ||
exit(1); | ||
end if; | ||
echo(true); | ||
x; | ||
val(x,1.0); | ||
val(x,2.0); | ||
val(x,3.0); | ||
|
||
val(y,1.0); | ||
val(y,2.0); | ||
val(y,3.0); | ||
|
||
// Result: | ||
// true | ||
// record SimulationResult | ||
// resultFile = "Pendulum_res.mat", | ||
// simulationOptions = "startTime = 0.0, stopTime = 5.0, numberOfIntervals = 300, tolerance = 1e-10, method = 'dassl', fileNamePrefix = 'Pendulum', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''", | ||
// messages = "" | ||
// end SimulationResult; | ||
// -0.9864424195145796 | ||
// 0.795701434659157 | ||
// -0.1832577788991176 | ||
// -0.1641077480871099 | ||
// -0.6056890513137574 | ||
// -0.9830648943345307 | ||
// *** Dynamic state selection probably failed *** | ||
// endResult |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters