Skip to content

Commit

Permalink
- activate synchronous test with total model
Browse files Browse the repository at this point in the history
  • Loading branch information
vwaurich committed Aug 4, 2016
1 parent 9453b64 commit 810d7e2
Show file tree
Hide file tree
Showing 3 changed files with 423 additions and 2 deletions.
1 change: 1 addition & 0 deletions openmodelica/cppruntime/Makefile
@@ -1,6 +1,7 @@
TEST = ../../rtest -v

TESTFILES = \
MultipleBaseClocks.mos \
tearnonlin1.mos \
WhenStatement1.mos \
BouncingBall.mos \
Expand Down
11 changes: 9 additions & 2 deletions openmodelica/cppruntime/MultipleBaseClocks.mos
Expand Up @@ -6,7 +6,7 @@
//

loadModel(Modelica, languageStandard="3.3");getErrorString();
loadFile("MultipleBaseClocks.mo");getErrorString();
loadFile("MultipleBaseClocksTotal.mo");getErrorString();
setCommandLineOptions("+simCodeTarget=Cpp");getErrorString();

simulate(MultipleBaseClocks,method="dassl",stopTime=1.0, tolerance=1e-10, numberOfIntervals=100,outputFormat="mat");getErrorString();
Expand All @@ -18,10 +18,17 @@ res := OpenModelica.Scripting.compareSimulationResults("MultipleBaseClocks_res.m

// Result:
// true
// ""
// true
// ""
// true
// ""
// record SimulationResult
// resultFile = "MultipleBaseClocks_res.mat",
// simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 100, tolerance = 0.0000000001, method = 'dassl', fileNamePrefix = 'MultipleBaseClocks', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''",
// simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 100, tolerance = 1e-010, method = 'dassl', fileNamePrefix = 'MultipleBaseClocks', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''",
// messages = ""
// end SimulationResult;
// ""
// {"Files Equal!"}
// ""
// endResult

0 comments on commit 810d7e2

Please sign in to comment.