Skip to content

Commit

Permalink
Use --maxSizeLinearTearing=0 instead of --disableLinearTearing
Browse files Browse the repository at this point in the history
  • Loading branch information
ptaeuber authored and OpenModelica-Hudson committed May 30, 2016
1 parent 3662170 commit c44afbc
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 14 deletions.
8 changes: 6 additions & 2 deletions simulation/modelica/linear_system/NPendulum.mos
Expand Up @@ -40,7 +40,7 @@ res := OpenModelica.Scripting.compareSimulationResults("NPendulum.pendulum_res.m
{"phi[10]"});


setCommandLineOptions("--disableLinearTearing");
setCommandLineOptions("--maxSizeLinearTearing=0");
getErrorString();
buildModel(NPendulum.pendulum); getErrorString();

Expand Down Expand Up @@ -92,7 +92,11 @@ res := OpenModelica.Scripting.compareSimulationResults("NPendulum.pendulum_res.m
// true
// ""
// {"NPendulum.pendulum","NPendulum.pendulum_init.xml"}
// ""
// "Notification: Tearing is skipped for strong component 1 because system size of 102 exceeds maximum system size for tearing of linear systems (0).
// To adjust the maximum system size for tearing use --maxSizeLinearTearing=<size> and --maxSizeNonlinearTearing=<size>.
// Notification: Tearing is skipped for strong component 2 because system size of 98 exceeds maximum system size for tearing of linear systems (0).
// To adjust the maximum system size for tearing use --maxSizeLinearTearing=<size> and --maxSizeNonlinearTearing=<size>.
// "
// 0
// {"Files Equal!"}
// 0
Expand Down
6 changes: 5 additions & 1 deletion simulation/modelica/linear_system/NPendulum40.mos
Expand Up @@ -6,7 +6,7 @@
loadFile("NPendulum.mo");
getErrorString();

setCommandLineOptions("--disableLinearTearing");
setCommandLineOptions("--maxSizeLinearTearing=0");
buildModel(NPendulum.pendulum40); getErrorString();
system("./NPendulum.pendulum40 -ls umfpack");
res := OpenModelica.Scripting.compareSimulationResults("NPendulum.pendulum40_res.mat",
Expand All @@ -27,6 +27,10 @@ res := OpenModelica.Scripting.compareSimulationResults("NPendulum.pendulum40_res
// "Notification: Automatically loaded package Modelica 3.2.1 due to uses annotation.
// Notification: Automatically loaded package Complex 3.2.1 due to uses annotation.
// Notification: Automatically loaded package ModelicaServices 3.2.1 due to uses annotation.
// Notification: Tearing is skipped for strong component 1 because system size of 462 exceeds maximum system size for tearing of linear systems (0).
// To adjust the maximum system size for tearing use --maxSizeLinearTearing=<size> and --maxSizeNonlinearTearing=<size>.
// Notification: Tearing is skipped for strong component 2 because system size of 428 exceeds maximum system size for tearing of linear systems (0).
// To adjust the maximum system size for tearing use --maxSizeLinearTearing=<size> and --maxSizeNonlinearTearing=<size>.
// "
// 0
// {"Files Equal!"}
Expand Down
32 changes: 26 additions & 6 deletions simulation/modelica/linear_system/problem2.mos
Expand Up @@ -65,7 +65,7 @@ val(i2, 0.0);
val(i2, 1.0);


setCommandLineOptions("--disableLinearTearing");
setCommandLineOptions("--maxSizeLinearTearing=0");

simulate(linear_system.problem2);
getErrorString();
Expand Down Expand Up @@ -195,7 +195,11 @@ val(i2, 1.0);
// simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'linear_system.problem2', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''",
// messages = ""
// end SimulationResult;
// ""
// "Notification: Tearing is skipped for strong component 1 because system size of 5 exceeds maximum system size for tearing of linear systems (0).
// To adjust the maximum system size for tearing use --maxSizeLinearTearing=<size> and --maxSizeNonlinearTearing=<size>.
// Notification: Tearing is skipped for strong component 2 because system size of 5 exceeds maximum system size for tearing of linear systems (0).
// To adjust the maximum system size for tearing use --maxSizeLinearTearing=<size> and --maxSizeNonlinearTearing=<size>.
// "
// 0.0
// 2.804903282692988
// -0.0
Expand All @@ -205,7 +209,11 @@ val(i2, 1.0);
// simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'linear_system.problem2', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = '-ls lapack'",
// messages = ""
// end SimulationResult;
// ""
// "Notification: Tearing is skipped for strong component 1 because system size of 5 exceeds maximum system size for tearing of linear systems (0).
// To adjust the maximum system size for tearing use --maxSizeLinearTearing=<size> and --maxSizeNonlinearTearing=<size>.
// Notification: Tearing is skipped for strong component 2 because system size of 5 exceeds maximum system size for tearing of linear systems (0).
// To adjust the maximum system size for tearing use --maxSizeLinearTearing=<size> and --maxSizeNonlinearTearing=<size>.
// "
// 0.0
// 2.804903282692988
// -0.0
Expand All @@ -215,7 +223,11 @@ val(i2, 1.0);
// simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'linear_system.problem2', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = '-ls umfpack'",
// messages = ""
// end SimulationResult;
// ""
// "Notification: Tearing is skipped for strong component 1 because system size of 5 exceeds maximum system size for tearing of linear systems (0).
// To adjust the maximum system size for tearing use --maxSizeLinearTearing=<size> and --maxSizeNonlinearTearing=<size>.
// Notification: Tearing is skipped for strong component 2 because system size of 5 exceeds maximum system size for tearing of linear systems (0).
// To adjust the maximum system size for tearing use --maxSizeLinearTearing=<size> and --maxSizeNonlinearTearing=<size>.
// "
// 0.0
// 2.804903282692989
// 0.0
Expand All @@ -225,7 +237,11 @@ val(i2, 1.0);
// simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'linear_system.problem2', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = '-ls lis'",
// messages = ""
// end SimulationResult;
// ""
// "Notification: Tearing is skipped for strong component 1 because system size of 5 exceeds maximum system size for tearing of linear systems (0).
// To adjust the maximum system size for tearing use --maxSizeLinearTearing=<size> and --maxSizeNonlinearTearing=<size>.
// Notification: Tearing is skipped for strong component 2 because system size of 5 exceeds maximum system size for tearing of linear systems (0).
// To adjust the maximum system size for tearing use --maxSizeLinearTearing=<size> and --maxSizeNonlinearTearing=<size>.
// "
// -2.817354240111432e-27
// 2.783634542322879
// -9.720195818495717e-28
Expand All @@ -235,7 +251,11 @@ val(i2, 1.0);
// simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'linear_system.problem2', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = '-ls klu'",
// messages = ""
// end SimulationResult;
// ""
// "Notification: Tearing is skipped for strong component 1 because system size of 5 exceeds maximum system size for tearing of linear systems (0).
// To adjust the maximum system size for tearing use --maxSizeLinearTearing=<size> and --maxSizeNonlinearTearing=<size>.
// Notification: Tearing is skipped for strong component 2 because system size of 5 exceeds maximum system size for tearing of linear systems (0).
// To adjust the maximum system size for tearing use --maxSizeLinearTearing=<size> and --maxSizeNonlinearTearing=<size>.
// "
// 0.0
// 2.804903282692988
// 0.0
Expand Down
26 changes: 21 additions & 5 deletions simulation/modelica/linear_system/problem3.mos
Expand Up @@ -6,7 +6,7 @@
// Solving of a linear system of equations

loadFile("linearTestPackage.mo"); getErrorString();
setCommandLineOptions("--disableLinearTearing");
setCommandLineOptions("--maxSizeLinearTearing=0");

simulate(linear_system.problem3);
getErrorString();
Expand Down Expand Up @@ -50,7 +50,11 @@ val(x[2], 1.0);
// simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'linear_system.problem3', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''",
// messages = ""
// end SimulationResult;
// ""
// "Notification: Tearing is skipped for strong component 1 because system size of 2 exceeds maximum system size for tearing of linear systems (0).
// To adjust the maximum system size for tearing use --maxSizeLinearTearing=<size> and --maxSizeNonlinearTearing=<size>.
// Notification: Tearing is skipped for strong component 2 because system size of 2 exceeds maximum system size for tearing of linear systems (0).
// To adjust the maximum system size for tearing use --maxSizeLinearTearing=<size> and --maxSizeNonlinearTearing=<size>.
// "
// 10.0
// 9.980736544657136
// 1.0
Expand All @@ -60,7 +64,11 @@ val(x[2], 1.0);
// simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'linear_system.problem3', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = '-ls lis'",
// messages = ""
// end SimulationResult;
// ""
// "Notification: Tearing is skipped for strong component 1 because system size of 2 exceeds maximum system size for tearing of linear systems (0).
// To adjust the maximum system size for tearing use --maxSizeLinearTearing=<size> and --maxSizeNonlinearTearing=<size>.
// Notification: Tearing is skipped for strong component 2 because system size of 2 exceeds maximum system size for tearing of linear systems (0).
// To adjust the maximum system size for tearing use --maxSizeLinearTearing=<size> and --maxSizeNonlinearTearing=<size>.
// "
// 9.999999999999998
// 9.980736544657136
// 0.9999999999999999
Expand All @@ -70,7 +78,11 @@ val(x[2], 1.0);
// simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'linear_system.problem3', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = '-ls lapack'",
// messages = ""
// end SimulationResult;
// ""
// "Notification: Tearing is skipped for strong component 1 because system size of 2 exceeds maximum system size for tearing of linear systems (0).
// To adjust the maximum system size for tearing use --maxSizeLinearTearing=<size> and --maxSizeNonlinearTearing=<size>.
// Notification: Tearing is skipped for strong component 2 because system size of 2 exceeds maximum system size for tearing of linear systems (0).
// To adjust the maximum system size for tearing use --maxSizeLinearTearing=<size> and --maxSizeNonlinearTearing=<size>.
// "
// 10.0
// 9.980736544657136
// 1.0
Expand All @@ -80,7 +92,11 @@ val(x[2], 1.0);
// simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'linear_system.problem3', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = '-ls umfpack'",
// messages = ""
// end SimulationResult;
// ""
// "Notification: Tearing is skipped for strong component 1 because system size of 2 exceeds maximum system size for tearing of linear systems (0).
// To adjust the maximum system size for tearing use --maxSizeLinearTearing=<size> and --maxSizeNonlinearTearing=<size>.
// Notification: Tearing is skipped for strong component 2 because system size of 2 exceeds maximum system size for tearing of linear systems (0).
// To adjust the maximum system size for tearing use --maxSizeLinearTearing=<size> and --maxSizeNonlinearTearing=<size>.
// "
// 10.0
// 9.980736544657136
// 1.0
Expand Down

0 comments on commit c44afbc

Please sign in to comment.