testing models in HyperStudy fails - error: copy of model rescource failed and solver input file doesn't exist

Melih Ayyildiz_22506
Melih Ayyildiz_22506 Altair Community Member
edited January 8 in Community Q&A

I have been following the internal example of the Flux environment unter the example tree: co-simulation: multidisciplinary design optimization for electric motors. I have been following the steps of case 2, in which all HyperStudy connectors of each model (FluxMotor, Flux, etc.) are already made and just ready to  use.

I made the connection to all inputs and outputs and linked all the connectors. After this I wanted to test the model by clicking on "run definition". I immediately got many different errors messages. What seemed interesting to me was that HyperStudy tries to open files and each time the slash is either a forward or backward slash. As far as I know in python scripts a folder is divided by backward slashes. Could this be the reason why it is not running? 

All the files that I have used are attached to this post as a zip. The error log from the console is attached as well.

image

Best Answer

Answers

  • Diana_38240
    Diana_38240
    Altair Employee
    edited January 8 Answer ✓

    Hello Melih,

    Please look at the following blog:

    https://community.altair.com/community?id=community_blog&sys_id=f3e9a121dbb45910cfd5f6a4e296192f

    I think that the FluxMotor (model 1) failed because of the cause described in 4) in the blog.

    As the models are linked it is expected that the others in the workflow fail consequently.

    Hope it helps.

  • Melih Ayyildiz_22506
    Melih Ayyildiz_22506 Altair Community Member
    edited December 2023

    Hello Diana, 

    thank you for your answer. At my first try before making this post, the runtime of testing the models was less than a second. With your recommendation of the blog the runtime was somewhere around three minutes but unfortunately I encountered some new errors.

    image

    The console states that three txt files have been made which state the errors. All files are attached to this answer. The last one states specifically:

    com.cedrat.motor.motorcommon.common.error.FmHidenException: System error#12

    Do you know a solution to this problem?

    I will attach the project files as azip-file as well.

    Edit 1:
    I have read your blog regarding HyperStudy and Flux connection. I am assuming that the python postprocessing files might have an error in it. I didn't change or name the flux installation path. Could this be the reason for the error?

    The post processing file looks like this so far:

    import os
    INSTALL = os.environ[     "INSTALLFLUX"]+ "\\.."
    macroFile1 = INSTALL+"\Extensions\Macros\CreateIOTabulatedParameterFrom2DCurve.PFM"
    macroFile2 = INSTALL+"\Extensions\Macros\Analyse2DCurve.PFM"

  • Melih Ayyildiz_22506
    Melih Ayyildiz_22506 Altair Community Member
    edited December 2023

    Hello Melih,

    Please look at the following blog:

    https://community.altair.com/community?id=community_blog&sys_id=f3e9a121dbb45910cfd5f6a4e296192f

    I think that the FluxMotor (model 1) failed because of the cause described in 4) in the blog.

    As the models are linked it is expected that the others in the workflow fail consequently.

    Hope it helps.

    Hello Diana, 

    I answered on your first reply below. Could you check it for me?