Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added daeMode problem7 (records testcase)
- Loading branch information
1 parent
6f62e74
commit 4737c56
Showing
2 changed files
with
115 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
// name: testDAE.p7 | ||
// status: correct | ||
// teardown_command: rm -f testDAE.p7* output.log | ||
|
||
|
||
loadFile("./testDAEPackage.mo"); | ||
getErrorString(); | ||
|
||
simulate(testDAE.p7); | ||
getErrorString(); | ||
|
||
val(x,0.0); | ||
val(y,0.0); | ||
|
||
val(x,1.0); | ||
val(y,1.0); | ||
|
||
setCommandLineOptions("+daeMode=dynamic"); | ||
simulate(testDAE.p7, simflags="-daeMode", method="ida"); | ||
getErrorString(); | ||
|
||
val(x,0.0); | ||
val(y,0.0); | ||
|
||
val(x,1.0); | ||
val(y,1.0); | ||
|
||
setCommandLineOptions("+daeMode=all"); | ||
simulate(testDAE.p7, simflags="-daeMode", method="ida"); | ||
getErrorString(); | ||
|
||
val(x,0.0); | ||
val(y,0.0); | ||
|
||
val(x,1.0); | ||
val(y,1.0); | ||
|
||
|
||
|
||
// Result: | ||
// true | ||
// "" | ||
// record SimulationResult | ||
// resultFile = "testDAE.p7_res.mat", | ||
// simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'testDAE.p7', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''", | ||
// messages = "" | ||
// end SimulationResult; | ||
// "Warning: The initial conditions are not fully specified. For more information set -d=initialization. In OMEdit Tools->Options->Simulation->OMCFlags, in OMNotebook call setCommandLineOptions("-d=initialization"). | ||
// Warning: There are iteration variables with default zero start attribute. For more information set -d=initialization. In OMEdit Tools->Options->Simulation->OMCFlags, in OMNotebook call setCommandLineOptions("-d=initialization"). | ||
// " | ||
// 0.9 | ||
// 0.0 | ||
// 2.391669920617771 | ||
// 0.4103029387651521 | ||
// true | ||
// record SimulationResult | ||
// resultFile = "testDAE.p7_res.mat", | ||
// simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'ida', fileNamePrefix = 'testDAE.p7', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = '-daeMode'", | ||
// messages = "" | ||
// end SimulationResult; | ||
// "Warning: The initial conditions are not fully specified. For more information set -d=initialization. In OMEdit Tools->Options->Simulation->OMCFlags, in OMNotebook call setCommandLineOptions("-d=initialization"). | ||
// Warning: There are iteration variables with default zero start attribute. For more information set -d=initialization. In OMEdit Tools->Options->Simulation->OMCFlags, in OMNotebook call setCommandLineOptions("-d=initialization"). | ||
// " | ||
// 0.9 | ||
// 0.0 | ||
// 2.391665238603284 | ||
// 0.4103115806759719 | ||
// true | ||
// record SimulationResult | ||
// resultFile = "testDAE.p7_res.mat", | ||
// simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'ida', fileNamePrefix = 'testDAE.p7', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = '-daeMode'", | ||
// messages = "" | ||
// end SimulationResult; | ||
// "Warning: The initial conditions are not fully specified. For more information set -d=initialization. In OMEdit Tools->Options->Simulation->OMCFlags, in OMNotebook call setCommandLineOptions("-d=initialization"). | ||
// Warning: There are iteration variables with default zero start attribute. For more information set -d=initialization. In OMEdit Tools->Options->Simulation->OMCFlags, in OMNotebook call setCommandLineOptions("-d=initialization"). | ||
// " | ||
// 0.9 | ||
// 0.0 | ||
// 2.391659403667771 | ||
// 0.4103081681124501 | ||
// endResult |