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 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

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  ( 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
0

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
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
edit flag offensive delete link more

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  ( 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

Careers

Question Tools

1 follower

Stats

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

Seen: 199 times

Last updated: Apr 01 '21