Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add test for ticket:3999 and fix expected output
- Loading branch information
Willi Braun
committed
Sep 29, 2016
1 parent
9906a4d
commit be9dc57
Showing
8 changed files
with
922 additions
and
887 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// name: ticket3999 | ||
// keywords: nonlinear system solver, enumeration, crefs | ||
// status: correct | ||
// cflags: | ||
// teardown_command: rm -rf ticket3999.nls* output.log | ||
|
||
loadString(" | ||
within ; | ||
package ticket3999 | ||
encapsulated type et = enumeration(E1, E2); | ||
model enumNls | ||
Real z[et]; | ||
equation | ||
z[et.E2]^2+ z[et.E1]^2 = 1; | ||
z[et.E1]^2+2*z[et.E2] = time; | ||
end enumNls; | ||
end ticket3999; | ||
"); | ||
getErrorString(); | ||
|
||
simulate(ticket3999.enumNls); | ||
getErrorString(); | ||
|
||
|
||
// Result: | ||
// true | ||
// "" | ||
// record SimulationResult | ||
// resultFile = "ticket3999.enumNls_res.mat", | ||
// simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'ticket3999.enumNls', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''", | ||
// messages = "" | ||
// end SimulationResult; | ||
// "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"). | ||
// " | ||
// 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
Oops, something went wrong.