FMU (generated from pythonfmu) deployment in Altair

Blaise
Blaise Altair Community Member

Hello,

I've generated a FMU from Python script that I'm trying to deploy in Altair. But I'm getting this error (see attached image) which I've been trying to detect the source of.

[VERBOSE][FMICAPI] Calling fmi2GetModelTypesPlatform
[INFO][Activate] fmi2_import_instantiate()
[WARNING][Activate] FMU does not make an internal copy of provided instance name (violation of fmiString handling)
[FMU][FMU status:Fatal] Fatal py exception encountered: [ctor] findClass
OSError(22, 'La procédure spécifiée est introuvable.', None, 127)
[ERROR][Activate] Could not instantiate the model

[VERBOSE][Activate] Main FMU block: Flag= 5 t=0.0000000000000000 phase=PHASE_DISCRETE(1) isJacobian=0 isSolverCalling=0 isCriticalEvent=0 isTry=0 (entry):
[INFO][Activate] Number of DoStep calls=0 (including 0 try DoStep calls)
[INFO][Activate] Number of GetFMUState=0
[INFO][Activate] Number of SetFMUState=0
[VERBOSE][FMILIB] Releasing allocated library resources
[VERBOSE][FMILIB] Releasing FMU CAPI interface
[VERBOSE][FMICAPI] Successfully unloaded FMU binary
[VERBOSE][Activate] Main FMU block: Flag= 5 --------------------------------(done).

Thanks in advance for any help.

Answers

  • RSGarciarivas
    RSGarciarivas
    Altair Employee

    Hi Blaise. If your FMU was created succesfully on another tool, can you look at the directories it contains, please?

    If your goal is to run the FMU in a Twin Activate simulation, have you tried running it on the FMU block? Where in Twin Activate are you running the Python script (in the Python command window or in the ExecPython block)?

    Rafael