#5880 closed defect (fixed)
MSL Electrical machine model only works in the Linux Jenkins tests, but not with -nfAPI
Reported by: | Francesco Casella | Owned by: | Adrian Pop |
---|---|---|---|
Priority: | blocker | Milestone: | 1.16.0 |
Component: | Code Generation | Version: | |
Keywords: | Cc: | Adrian Pop |
Description
Please consider the Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase
model of MSL 3.2.3. It simulates correctly in our Jenkins test, but if you run it with the latest Windows nighly, lots of errors are generated and the simulation breaks around time = 6, with smee3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re
blowing up to infinity.
@adeas31, this is quite odd, can you please check what happens here?
Attachments (1)
Change History (12)
comment:1 by , 5 years ago
Component: | OMEdit → Code Generation |
---|---|
Owner: | changed from | to
Status: | new → assigned |
comment:2 by , 5 years ago
Status: | assigned → accepted |
---|
by , 5 years ago
Attachment: | script.mos added |
---|
comment:3 by , 5 years ago
comment:4 by , 5 years ago
I can not reproduce this as of 46dda5311a1760eb3f9ce892531711f3cc2f18b2.
Compilation and simulation completes successfully for both old and new front-ends on my machine. I am using the 64 bit version.
Can you verify again with this version just to make sure? I am using OMDev directly to compile from source and you are using nightly. If we still have the problem then I will have to check the nightly and see what difference we have in configurations between the two.
comment:5 by , 5 years ago
Will do ASAP. But this is obviously an OMEdit issue, if you use OMDev you are following a different path.
comment:6 by , 5 years ago
Cc: | added |
---|---|
Owner: | changed from | to
Status: | accepted → assigned |
I debugged a bit more and for sure it is not OMEdit issue. Here is the script to reproduce the issue,
setCommandLineOptions("-d=newInst"); getErrorString(); setCommandLineOptions("-d=nfAPI"); getErrorString(); loadModel(Modelica); getErrorString(); simulate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase); getErrorString();
Surprisingly the problematic part is setCommandLineOptions("-d=nfAPI");
. If you remove this line everything works fine. @adrpo why is this flag making the simulation terminate?
comment:7 by , 5 years ago
Summary: | MSL Electrical machine model only works in the Linux Jenkins tests, but not on Windows → MSL Electrical machine model only works in the Linux Jenkins tests, but not on with -nfAPI |
---|
comment:8 by , 5 years ago
Summary: | MSL Electrical machine model only works in the Linux Jenkins tests, but not on with -nfAPI → MSL Electrical machine model only works in the Linux Jenkins tests, but not with -nfAPI |
---|
comment:9 by , 4 years ago
Status: | assigned → accepted |
---|
comment:10 by , 4 years ago
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
Should be fixed with PR:
https://github.com/OpenModelica/OpenModelica/pull/6719
With the current master version it fails to compile the simulation executable. Here is the compile log,