Skip to content

Commit

Permalink
fix fmi3 tests and remove debug printing
Browse files Browse the repository at this point in the history
  • Loading branch information
halentin committed Jul 5, 2024
1 parent 8d7297c commit b9a0d24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions src/FMI2/int.jl
Original file line number Diff line number Diff line change
Expand Up @@ -365,9 +365,6 @@ function fmi2GetReal(c::FMU2Component, vr::fmi2ValueReferenceFormat)
nvr = Csize_t(length(vr))
values = zeros(fmi2Real, nvr)
fmi2GetReal!(c, vr, nvr, values)
println(values)
println(length(values))
println(typeof(values))
if length(values) == 1
return values[1]
else
Expand Down
4 changes: 2 additions & 2 deletions test/FMI3/model_description.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ myFMU = loadFMU("BouncingBall", "ModelicaReferenceFMUs", "0.0.30", "3.0")
# [TODO] scheduledExecution

@test getInstantiationToken(myFMU) == "{1AE5E10D-9521-4DE3-80B9-D0EAAA7D5AF1}" # [TODO] update
@test getGenerationTool(myFMU) == "Reference FMUs (v0.0.20)"
@test getGenerationDateAndTime(myFMU) == "[Unknown generation date and time]"
@test getGenerationTool(myFMU) == "Reference FMUs (v0.0.30)"
@test getGenerationDateAndTime(myFMU) == "2024-04-18T08:15:35.162720+00:00"
@test getNumberOfEventIndicators(myFMU) == 1
@test canGetSetFMUState(myFMU)
@test canSerializeFMUState(myFMU)
Expand Down

0 comments on commit b9a0d24

Please sign in to comment.