-
Notifications
You must be signed in to change notification settings - Fork 297
/
CombiTimeTable.mos
27 lines (23 loc) · 1.25 KB
/
CombiTimeTable.mos
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// name: ScalableTestSuite.Elementary.Tables.Models.CombiTimeTable
// keywords: NewBackend
// status: correct
// cflags: --newBackend
loadModel(ScalableTestSuite); getErrorString();
simulate(ScalableTestSuite.Elementary.Tables.Models.CombiTimeTable); getErrorString();
res := OpenModelica.Scripting.compareSimulationResults("ScalableTestSuite.Elementary.Tables.Models.CombiTimeTable_res.mat",
"ReferenceFiles/ScalableTestSuite.Elementary.Tables.Models.CombiTimeTable_res.mat",
"ScalableTestSuite.Elementary.Tables.Models.CombiTimeTable_diff.csv",0.01,0.0001,
{"combiTimeTable.y[1]"});
// Result:
// true
// ""
// record SimulationResult
// resultFile = "ScalableTestSuite.Elementary.Tables.Models.CombiTimeTable_res.mat",
// simulationOptions = "startTime = 0.0, stopTime = 1.0, numberOfIntervals = 1, tolerance = 1e-6, method = 'dassl', fileNamePrefix = 'ScalableTestSuite.Elementary.Tables.Models.CombiTimeTable', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''",
// messages = "LOG_SUCCESS | info | The initialization finished successfully without homotopy method.
// LOG_SUCCESS | info | The simulation finished successfully.
// "
// end SimulationResult;
// ""
// {"Files Equal!"}
// endResult