Skip to content

OMJulia "simulate()" does not work with OMC v1.17.0 #42

@valfaro

Description

@valfaro

OMJulia v0.1.0 was tested before with OpenModelica v1.16.X and work fine, but now it does not work with OM compiler v1.17.0
"getX" and "setX" methos are ok but "simulate()" fails

Example of the error message:
ERROR: LoadError: failed process: Process(C:/Users/victo/AppData/Local/Temp/jl_c4ikD7/SisHidraTk1e.exe, ProcessExited(3221225781)) [3221225781]

Stacktrace:
[1] pipeline_error at .\process.jl:525 [inlined]
[2] #run#565(::Bool, ::typeof(run), ::Base.CmdRedirect) at .\process.jl:440
[3] run at .\process.jl:438 [inlined]
[4] (::OMJulia.var"#24#73"{OMJulia.OMCSession})() at C:\Users\victo.julia\packages\OMJulia\ZLXEs\src\OMJulia.jl:450
[5] top-level scope at C:\Users\victo\OneDrive\Documentos\J-OMJulia\SisHidraTk1e_omj.jl:21
in expression starting at C:\Users\victo\OneDrive\Documentos\J-OMJulia\SisHidraTk1e_omj.jl:21

Following messages are displayed in all cases:
[1] pipeline_error at .\process.jl:525 [inlined]
[2] #run#565(::Bool, ::typeof(run), ::Base.CmdRedirect) at .\process.jl:440
[3] run at .\process.jl:438 [inlined]

----

Same Modelica models simulatios were made using OMPython and OpenModelica v1.17.0 and have no errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions