Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for HideResult annotation
- Loading branch information
Showing
3 changed files
with
36 additions
and
7 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,28 @@ | ||
// name: Bug2536.mos | ||
// status: correct | ||
|
||
loadString(" | ||
model Bug2536 | ||
Real a=time annotation(HideResult=true); | ||
Real b=time annotation(HideResult=false); | ||
Real c=time; | ||
end Bug2536; | ||
"); getErrorString(); | ||
|
||
res := simulate(Bug2536); getErrorString(); | ||
resultFile := res.resultFile; | ||
OpenModelica.Scripting.readSimulationResultVars(resultFile); getErrorString(); | ||
|
||
// Result: | ||
// true | ||
// "" | ||
// record SimulationResult | ||
// resultFile = "Bug2536_res.mat", | ||
// simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'Bug2536', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''", | ||
// messages = "" | ||
// end SimulationResult; | ||
// "" | ||
// "Bug2536_res.mat" | ||
// {"b","c","time"} | ||
// "" | ||
// 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