Skip to content

Commit

Permalink
enable when test for new DAEmode
Browse files Browse the repository at this point in the history
  • Loading branch information
Willi Braun authored and OpenModelica-Hudson committed Mar 1, 2018
1 parent fbb9716 commit d7469be
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions simulation/modelica/daemode/testDAEp5.mos
Expand Up @@ -5,7 +5,7 @@

loadFile("./testDAEPackage.mo");
getErrorString();
/*

setCommandLineOptions("+daeMode=new");
simulate(testDAE.p5, simflags="-daeMode", method="ida");
getErrorString();
Expand All @@ -17,7 +17,7 @@ val(z,0.0);
val(x,1.0);
val(y,1.0);
val(z,1.0);
*/

setCommandLineOptions("+daeMode=dynamic");
simulate(testDAE.p5, simflags="-daeMode", method="ida");
getErrorString();
Expand All @@ -43,7 +43,6 @@ val(y,1.0);
val(z,1.0);



// Result:
// true
// ""
Expand All @@ -60,6 +59,22 @@ val(z,1.0);
// 0.0
// 1.0
// -3.0
// 0.2519655434850686
// 0.7318499548700694
// -3.0
// true
// record SimulationResult
// resultFile = "testDAE.p5_res.mat",
// simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'ida', fileNamePrefix = 'testDAE.p5', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = '-daeMode'",
// messages = "LOG_SUCCESS | info | The initialization finished successfully without homotopy method.
// LOG_SUCCESS | info | The simulation finished successfully.
// "
// 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").
// "
// 0.0
// 1.0
// -3.0
// 0.2519640877410129
// 0.7318508809081514
// -3.0
Expand Down

0 comments on commit d7469be

Please sign in to comment.