Skip to content
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.

enable when test for new DAEmode #864

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
21 changes: 18 additions & 3 deletions simulation/modelica/daemode/testDAEp5.mos
Original file line number Diff line number Diff line change
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