-
Notifications
You must be signed in to change notification settings - Fork 298
/
problem8_newton.mos
23 lines (20 loc) · 1.22 KB
/
problem8_newton.mos
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// name: problem8 [newton]
// status: correct
// teardown_command: rm -f nonlinear_system.problem8* _nonlinear_system.problem8* output.log
loadFile("nlsTestPackage.mo"); getErrorString();
simulate(nonlinear_system.problem8, stopTime=100, method="dassl", simflags="-nls=newton", tolerance=0.5e-7); getErrorString();
val(a,{0.0,1.0,10.0,100.0});
// Result:
// true
// ""
// record SimulationResult
// resultFile = "nonlinear_system.problem8_res.mat",
// simulationOptions = "startTime = 0.0, stopTime = 100.0, numberOfIntervals = 500, tolerance = 5e-08, method = 'dassl', fileNamePrefix = 'nonlinear_system.problem8', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = '-nls=newton'",
// 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\").
// "
// {37.0,-3.705051462646683,-0.7132731924274377,-1.600730522043431e-08}
// endResult