Skip to content

Commit

Permalink
Expected output
Browse files Browse the repository at this point in the history
  • Loading branch information
ptaeuber authored and OpenModelica-Hudson committed Aug 31, 2017
1 parent 7e16a2c commit 1a22a75
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions simulation/modelica/initialization/homotopy1.mos
Expand Up @@ -22,7 +22,7 @@ end initializationTests;
"); getErrorString();

setCommandLineOptions("--homotopyApproach=local"); getErrorString();
simulate(initializationTests.homotopy1, startTime=0.0, stopTime=0.0); getErrorString();
simulate(initializationTests.homotopy1, startTime=0.0, stopTime=0.0, simflags="-homotopyOnFirstTry"); getErrorString();
res := OpenModelica.Scripting.readSimulationResult("initializationTests.homotopy1_res.mat", {time, x, y}, 2); getErrorString();

setCommandLineOptions("--homotopyApproach=global"); getErrorString();
Expand All @@ -36,8 +36,8 @@ res := OpenModelica.Scripting.readSimulationResult("initializationTests.homotopy
// ""
// record SimulationResult
// resultFile = "initializationTests.homotopy1_res.mat",
// simulationOptions = "startTime = 0.0, stopTime = 0.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'initializationTests.homotopy1', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''",
// messages = "stdout | info | The initialization finished successfully without homotopy method.
// simulationOptions = "startTime = 0.0, stopTime = 0.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'initializationTests.homotopy1', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = '-homotopyOnFirstTry'",
// messages = "stdout | info | The initialization finished successfully with homotopy method.
// stdout | info | The simulation finished successfully.
// "
// end SimulationResult;
Expand Down
6 changes: 3 additions & 3 deletions simulation/modelica/initialization/homotopy2.mos
Expand Up @@ -24,7 +24,7 @@ end initializationTests;
"); getErrorString();

setCommandLineOptions("--initOptModules+=inlineHomotopy --homotopyApproach=local -d=dumpSimCode"); getErrorString();
simulate(initializationTests.homotopy2, startTime=0.0, stopTime=0.0); getErrorString();
simulate(initializationTests.homotopy2, startTime=0.0, stopTime=0.0, simflags="-homotopyOnFirstTry"); getErrorString();
res := OpenModelica.Scripting.readSimulationResult("initializationTests.homotopy2_res.mat", {time, x, y, z}, 2); getErrorString();

setCommandLineOptions("--initOptModules+=inlineHomotopy --homotopyApproach=global -d=dumpSimCode"); getErrorString();
Expand Down Expand Up @@ -172,8 +172,8 @@ res := OpenModelica.Scripting.readSimulationResult("initializationTests.homotopy
//
// record SimulationResult
// resultFile = "initializationTests.homotopy2_res.mat",
// simulationOptions = "startTime = 0.0, stopTime = 0.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'initializationTests.homotopy2', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''",
// messages = "stdout | info | The initialization finished successfully without homotopy method.
// simulationOptions = "startTime = 0.0, stopTime = 0.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'initializationTests.homotopy2', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = '-homotopyOnFirstTry'",
// messages = "stdout | info | The initialization finished successfully with homotopy method.
// stdout | info | The simulation finished successfully.
// "
// end SimulationResult;
Expand Down

0 comments on commit 1a22a75

Please sign in to comment.