John Hughes activity https://gitlab.com/jondo2010 2025-11-18T13:47:36Z tag:gitlab.com,2025-11-18:4824443202 John Hughes opened issue #14: Add flatten_attr attribute at Kevin Cox / hard-xml 2025-11-18T13:47:36Z jondo2010 John Hughes tag:gitlab.com,2024-02-11:3152543410 John Hughes pushed to project branch master at John Hughes / rust-fmi 2024-02-11T13:13:50Z jondo2010 John Hughes

John Hughes (aba8d445) at 11 Feb 13:13

Update file README.md

tag:gitlab.com,2024-02-11:3152541279 John Hughes closed issue #4: Get listed on FMI tools page at John Hughes / rust-fmi 2024-02-11T13:09:36Z jondo2010 John Hughes

I would like to encourage you to get listed on the FMI tools page https://fmi-standard.org/tools/, see https://github.com/modelica/fmi-standard.org/blob/main/CONTRIBUTING.md#updating-the-tools-list for hints. Thanks for this open source project!

tag:gitlab.com,2024-02-11:3152541276 John Hughes commented on issue #4 at John Hughes / rust-fmi 2024-02-11T13:09:36Z jondo2010 John Hughes

https://github.com/modelica/fmi-standard.org/pull/582

tag:gitlab.com,2024-02-11:3152533972 John Hughes closed issue #2: FMI 3.0 progress at John Hughes / rust-fmi 2024-02-11T12:56:29Z jondo2010 John Hughes

Thanks for this crate! I have been using it's FMI 2.0 support in my Rust projects. I was wondering what your plans are with respect to supporting FMI 3.0. I noticed that initial work has started in the fmi3 branch.

Are you planning on bringing FMI 3.0 support to this project? Does the fmi3 branch already support a subset of the standard? What steps would still need to be taken implementation wise to get to a fully supported FMI 3.0 implementation?

tag:gitlab.com,2024-02-11:3152533967 John Hughes commented on issue #2 at John Hughes / rust-fmi 2024-02-11T12:56:28Z jondo2010 John Hughes

Hi @nielsmeima, I've migrated rust-fmi from Gitlab over to Github, and in the latest release I have added support for FMI3.0. github.com/jondo2010/rust-fmi

tag:gitlab.com,2023-05-03:2567589762 John Hughes opened merge request !11: Attempt to fix git fetch issue on appveyor at John Hughes / rust-fmi 2023-05-03T13:27:31Z jondo2010 John Hughes
tag:gitlab.com,2023-05-03:2567588676 John Hughes pushed new project branch fix-appveyor at John Hughes / rust-fmi 2023-05-03T13:27:11Z jondo2010 John Hughes

John Hughes (90aebc85) at 03 May 13:27

Attempt to fix git fetch issue on appveyor

tag:gitlab.com,2023-05-03:2567551122 John Hughes approved merge request !10: Don't reuse va_args at John Hughes / rust-fmi 2023-05-03T13:15:10Z jondo2010 John Hughes

In the implementation of callback_logger_handler, we reuse the va_args twice, one time to compute the length, the other to produce the string.

But this is not allowed, we need to either switch to vasprintf (but it seems to be Linux only) or to do a copy (either by using va_copy or by reinitializing the va_arg, that's what is done in this CL)

This used to display the wrong thing, and could cause a crash in some case

tag:gitlab.com,2023-05-03:2567551036 John Hughes accepted merge request !10: Don't reuse va_args at John Hughes / rust-fmi 2023-05-03T13:15:08Z jondo2010 John Hughes

In the implementation of callback_logger_handler, we reuse the va_args twice, one time to compute the length, the other to produce the string.

But this is not allowed, we need to either switch to vasprintf (but it seems to be Linux only) or to do a copy (either by using va_copy or by reinitializing the va_arg, that's what is done in this CL)

This used to display the wrong thing, and could cause a crash in some case

tag:gitlab.com,2023-05-03:2567551032 John Hughes pushed to project branch master at John Hughes / rust-fmi 2023-05-03T13:15:08Z jondo2010 John Hughes

John Hughes (00a89dc9) at 03 May 13:15

Merge branch 'fixLog' into 'master'

... and 1 more commit

tag:gitlab.com,2023-05-03:2567550896 John Hughes commented on merge request !10 at John Hughes / rust-fmi 2023-05-03T13:15:06Z jondo2010 John Hughes

Looks good 👍

tag:gitlab.com,2023-05-03:2567511405 John Hughes commented on merge request !9 at John Hughes / rust-fmi 2023-05-03T13:03:08Z jondo2010 John Hughes

Hi @tinou98, thanks for the PR! Definitely looks like an improvement. In particular, I never fully fleshed-out the CoSim stuff, so this is a good step in that direction.

tag:gitlab.com,2023-04-04:2511301473 John Hughes commented on issue #3 at John Hughes / rust-fmi 2023-04-04T18:23:28Z jondo2010 John Hughes

So I dug in and did some additional testing over the last week, and I think there's something wrong with your FMU. I don't have a native Linux machine available to test, but was able to cross-compile and test in Docker using the fmi_check utility in the repo. The FMU initializes, but segfaults inside do_step().

I also re-built and tried out FMUs generated from the master version of OpenModelica on Mac and was able to get things to work.

Finally, I made some small fixes here that prevent a possible panic in the logging callback, and makes the importer look for the shared library in the same places that FMILibrary uses.

tag:gitlab.com,2023-04-02:2505894749 John Hughes pushed to project branch master at John Hughes / rust-fmi 2023-04-02T11:38:57Z jondo2010 John Hughes

John Hughes (918c10d7) at 02 Apr 11:38

  • Determine FMI_PLATFORM path at compile-time, as done in FMILibrary.
tag:gitlab.com,2023-03-29:2498509512 John Hughes commented on issue #3 at John Hughes / rust-fmi 2023-03-29T14:21:27Z jondo2010 John Hughes

Hi! Interesting failure. Based on your first error, it looks like the FMU is logging a NULL message to the callback_logger_handler, which isn't currently handled graciously. What are you using to build your FMU? Would it be possible to share it with me?

tag:gitlab.com,2023-03-13:2463820900 John Hughes deleted project branch 2023-update at John Hughes / rust-fmi 2023-03-13T20:44:28Z jondo2010 John Hughes

John Hughes (e63c7d42) at 13 Mar 20:44

tag:gitlab.com,2023-03-13:2463820840 John Hughes accepted merge request !8: Updates for rust2021 edition, bump deps at John Hughes / rust-fmi 2023-03-13T20:44:27Z jondo2010 John Hughes
tag:gitlab.com,2023-03-13:2463820834 John Hughes pushed to project branch master at John Hughes / rust-fmi 2023-03-13T20:44:27Z jondo2010 John Hughes

John Hughes (dd5ad503) at 13 Mar 20:44

Merge branch '2023-update' into 'master'

... and 1 more commit

tag:gitlab.com,2023-03-13:2463807915 John Hughes commented on issue #2 at John Hughes / rust-fmi 2023-03-13T20:36:25Z jondo2010 John Hughes

Hi, happy to hear this crate is still getting some use. I started playing around with the FMI3 stuff a while ago, there's quite a bit of work left to getting the XML to fully parse, and I didn't even start on the ffi portion. Curious what your use case is? I don't have access to a commercial Dymola license since quite a few years, and it looks like OpenModelica doesn't yet support FMI3.0.