Skip to content

Commit

Permalink
fixup! test: add tests for FMIComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
AayushSabharwal committed Dec 23, 2024
1 parent 632e311 commit fe195b8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/extensions/fmi.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import ModelingToolkit as MTK
prob = ODEProblem{true, SciMLBase.FullSpecialize}(
sys, [sys.mass__s => 0.5, sys.mass__v => 0.0], (0.0, 8.0))
sol = solve(prob, Tsit5(); reltol = 1e-8, abstol = 1e-8)
@test SciMLBase.successful_retcode(sol)

truesol = FMI.simulate(fmu, (0.0, 8.0); saveat = 0.0:0.1:8.0)
@test sol(0.0:0.1:8.0).utruesol.states.u atol=1e-4
Expand Down

0 comments on commit fe195b8

Please sign in to comment.