Skip to content

Commit

Permalink
Add experiment annotation to EightConflictProb
Browse files Browse the repository at this point in the history
  • Loading branch information
lochel committed Apr 27, 2015
1 parent b3e2c13 commit dc2ec3c
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
2 changes: 1 addition & 1 deletion PNlib/Examples/DisTest/EightConflictProb.mo
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ equation
connect(T8.inPlaces[1], P1.outTransition[8]) annotation(Line(points={{5.2,-20},
{-0.4,-20},{-0.4,0.875},{-29.2,0.875}}, color = {0, 0, 0}, smooth = Smooth.None));
annotation(Diagram(coordinateSystem(preserveAspectRatio = false, extent={{-60,-60},
{60,60}}), graphics));
{60,60}}), graphics), experiment(StartTime=0.0, StopTime=10.0));
end EightConflictProb;
39 changes: 39 additions & 0 deletions Testing/OpenModelica/PNlib.Examples.DisTest.EightConflictProb.mos
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
// name: PNlib.Examples.DisTest.EightConflictProb
// keywords: PNlib, discrete
// status: correct

loadFile("../../PNlib/package.mo"); getErrorString();
simulate(PNlib.Examples.DisTest.EightConflictProb); getErrorString();
res := OpenModelica.Scripting.compareSimulationResults("PNlib.Examples.DisTest.EightConflictProb_res.mat",
"../../ReferenceFiles/PNlib.Examples.DisTest.EightConflictProb.mat",
"PNlib.Examples.DisTest.EightConflictProb_diff.csv", 0.01, 0.0001,
{
"P1.t",
"T1.fire",
"T1.instantaneousSpeed",
"T1.maximumSpeed",
"T2.fire",
"T2.instantaneousSpeed",
"T2.maximumSpeed",
"T3.fire",
"T3.instantaneousSpeed",
"T3.maximumSpeed",
"T4.fire",
"T4.instantaneousSpeed",
"T4.maximumSpeed",
"T5.fire",
"T5.instantaneousSpeed",
"T5.maximumSpeed",
"T6.fire",
"T6.instantaneousSpeed",
"T6.maximumSpeed",
"T7.fire",
"T7.instantaneousSpeed",
"T7.maximumSpeed",
"T8.fire",
"T8.instantaneousSpeed",
"T8.maximumSpeed"
}); getErrorString();

// Result:
// endResult

0 comments on commit dc2ec3c

Please sign in to comment.