🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

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

User: "Melih Ayyildiz_22506"
Altair Community Member
Updated by Melih Ayyildiz_22506

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

Find more posts tagged with

Sort by:
1 - 3 of 31
    User: "Diana_38240"
    Altair Employee
    Accepted Answer
    Updated by Diana_38240

    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.

    User: "Melih Ayyildiz_22506"
    Altair Community Member
    OP
    Updated by Melih Ayyildiz_22506

    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"

    User: "Melih Ayyildiz_22506"
    Altair Community Member
    OP
    Updated by Melih Ayyildiz_22506

    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?