Skip to content

Commit

Permalink
Use same stopTime as reference file
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoelund committed May 19, 2015
1 parent 6a8642c commit 268a040
Showing 1 changed file with 8 additions and 7 deletions.
Expand Up @@ -3,7 +3,7 @@
// status: correct
// depends: Modelica.Electrical.Analog.Examples.CauerLowPassSC_eqs_prof.json
//
// Simulation Results
// Simulation Results
// Modelica Standard Library
//

Expand All @@ -12,13 +12,13 @@ setCompiler("gcc"); getErrorString();
setCXXCompiler("g++"); getErrorString();
setDebugFlags("hpcom"); getErrorString();
setCommandLineOptions("+n=2 +hpcomScheduler=mcp +hpcomCode=pthreads_spin"); getErrorString();
simulate(Modelica.Electrical.Analog.Examples.CauerLowPassSC, stopTime=10.0); getErrorString();
res := OpenModelica.Scripting.compareSimulationResults("Modelica.Electrical.Analog.Examples.CauerLowPassSC_res.mat",
simulate(Modelica.Electrical.Analog.Examples.CauerLowPassSC); getErrorString();
OpenModelica.Scripting.compareSimulationResults("Modelica.Electrical.Analog.Examples.CauerLowPassSC_res.mat",
getEnvironmentVar("REFERENCEFILES")+"/msl32/Modelica.Electrical.Analog.Examples.CauerLowPassSC.mat",
"Modelica.Electrical.Analog.Examples.CauerLowPassSC_diff.csv",0.01,0.0001,
{
"Modelica.Electrical.Analog.Examples.CauerLowPassSC_diff.csv",
vars={
"C1.v","C2.v","C3.v","C4.v","C7.v","R4.Capacitor1.v","R5.Capacitor1.v","R8.Capacitor1.v","R9.Capacitor1.v","R1.Capacitor1.v","R2.Capacitor1.v","R3.Capacitor1.v","Rp1.Capacitor1.v"
});
}); getErrorString();


// Result:
Expand All @@ -41,9 +41,10 @@ res := OpenModelica.Scripting.compareSimulationResults("Modelica.Electrical.Anal
// HpcOm is still under construction.
// record SimulationResult
// resultFile = "Modelica.Electrical.Analog.Examples.CauerLowPassSC_res.mat",
// simulationOptions = "startTime = 0.0, stopTime = 10.0, numberOfIntervals = 1500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'Modelica.Electrical.Analog.Examples.CauerLowPassSC', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''",
// simulationOptions = "startTime = 0.0, stopTime = 60.0, numberOfIntervals = 1500, tolerance = 1e-06, method = 'dassl', fileNamePrefix = 'Modelica.Electrical.Analog.Examples.CauerLowPassSC', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''",
// messages = ""
// end SimulationResult;
// ""
// {"Files Equal!"}
// ""
// endResult

0 comments on commit 268a040

Please sign in to comment.