Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Using FMU parser.exe

asked 2021-03-31 02:29:37 -0500

Cold wong's avatar

updated 2021-03-31 02:30:44 -0500

How to use FMU parser.exe? I have try it by ExternalInterfacesApplicationGuide step by step. But it still doesn't work In windows command interface enter:-printidf or other. I'll appreciate if there is some tutorial in detail.

I use Energyplus 9.2.0 now.

edit retag flag offensive close merge delete


What's the actual command you typed? You need to pass it a *.fmu file. Try parser -printidf xxx.fmu

Julien Marrec's avatar Julien Marrec  ( 2021-03-31 03:55:03 -0500 )edit

Yes, I have typed it.But it seems no feedback.

Cold wong's avatar Cold wong  ( 2021-04-01 04:48:53 -0500 )edit

On Linux it's --printidf. Try parser.exe --help. Also, on Ubuntu it doesn't work

$ /usr/local/EnergyPlus-9-5-0/PreProcess/FMUParser/parser --printidf ShadingController.fmu 
free(): double free detected in tcache 2
Aborted (core dumped)
Julien Marrec's avatar Julien Marrec  ( 2021-04-01 09:09:46 -0500 )edit

1 Answer

Sort by » oldest newest most voted

answered 2021-04-01 09:16:45 -0500

C:\Users\julien\EnergyPlus\datasets\FMUs>C:\EnergyPlusV9-4-0\PreProcess\FMUParser\parser --printidf ShadingController.fmu

This creates a ShadingController/ folder and a tmp.idf

Here is the parser help:

$ parser --help
        parser - parse xml file

        parser OPTION...FMUFILE...[-name objNam]

        The parser parses informaiton in modelDescription.xml file in functional mock-up unit for co-simulation.

        -d, --delete
                delete the unpacked fmu folder
        -h, --help
                print help information
        -p, --printidf
                print temporary IDF file for Energyplus
        -u, --unpack
                unpack the FMU
        -v, --verbose
                print debug information. It is the only option that can combine with other options.
        -n, --name
                extract the fmu in folder objNam. The default folder name is fmu's name without the ".fmu".

        To generate a temporary IDF file from a fmu named havc.fmu in Linux
                parser -p hvac.fmu

        To unpack the fmu havc.fmu in a folder called MyFMU in linux
                parser -u havc.fmu -n MyFMU
        Wangda Zuo, Thierry S. Nouidui, Michael Wetter @ Lawrence Berkeley National Laboratory
        Copyright (c) 2012, The Regents of the University of California, through Lawrence Berkeley National Laboratory subject to receipt of any required approvals from the U.S. Dept. of Energy. All rights reserved
edit flag offensive delete link more


Thanks, Julien! It must type C:\EnergyPlusV9-2-0\PreProcess\FMUParser\parser first and then add the command code. It helps me a lot, millions of thanks!!! ∠( ᐛ 」∠)_

Cold wong's avatar Cold wong  ( 2021-04-01 21:51:35 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops


Question Tools

1 follower


Asked: 2021-03-31 02:29:37 -0500

Seen: 214 times

Last updated: Apr 01 '21