0

Using FMU parser.exe

  • retag add tags

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.

Cold wong's avatar
67
Cold wong
asked 2021-03-31 02:29:37 -0500, updated 2021-03-31 02:30:44 -0500
edit flag offensive 0 remove flag 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
add a comment see more comments

1 Answer

0
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
Julien Marrec's avatar
29.7k
Julien Marrec
answered 2021-04-01 09:16:45 -0500
edit flag offensive 0 remove flag delete 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 (2021-04-01 21:51:35 -0500) edit
add a comment see more comments