Skip to content

Commit 861abff

Browse files
test: improve analysis point test
1 parent c014d8c commit 861abff

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

test/downstream/analysis_points.jl

+8-1
Original file line numberDiff line numberDiff line change
@@ -485,5 +485,12 @@ end
485485
systems = [model, inverse_model, pid, filt, sensor, inverse_sensor, r, add],
486486
name = :closed_loop)
487487
# just ensure the system simplifies
488-
Blocks.get_sensitivity(closed_loop, :y)
488+
mats, _ = get_sensitivity(closed_loop, :y)
489+
S = CS.ss(mats...)
490+
fr = CS.freqrespv(S, [0.01, 1, 100])
491+
# https://github.com/SciML/ModelingToolkit.jl/pull/3469
492+
reference_fr = ComplexF64[-1.2505330104772838e-11 - 2.500062613816021e-9im,
493+
-0.0024688370221621625 - 0.002279011866413123im,
494+
1.8100018764334602 + 0.3623845793211718im]
495+
@test isapprox(fr, reference_fr)
489496
end

0 commit comments

Comments
 (0)