First time here? Check out the Help page!

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

Using FMU parser.exe

asked 3 years ago

Cold wong's avatar

updated 3 years ago

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.

Preview: (hide)

Comments

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  ( 3 years ago )

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

Cold wong's avatar Cold wong  ( 3 years ago )

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  ( 3 years ago )

1 Answer

Sort by » oldest newest most voted
0

answered 3 years ago

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
NAME
        parser - parse xml file

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

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

OPTION
        -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.
OTHERS
        -n, --name
                extract the fmu in folder objNam. The default folder name is fmu's name without the ".fmu".

EXAMPLE
        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
AUTHOR
        Wangda Zuo, Thierry S. Nouidui, Michael Wetter @ Lawrence Berkeley National Laboratory
LICENSE
        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
Preview: (hide)
link

Comments

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  ( 3 years ago )

Your Answer

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

Add Answer

Training Workshops

Careers

Question Tools

1 follower

Stats

Asked: 3 years ago

Seen: 254 times

Last updated: Apr 01 '21