#5880 closed defect (fixed)
MSL Electrical machine model only works in the Linux Jenkins tests, but not with -nfAPI
Reported by: | casella | Owned by: | adrpo |
---|---|---|---|
Priority: | blocker | Milestone: | 1.16.0 |
Component: | Code Generation | Version: | |
Keywords: | Cc: | adrpo |
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 Changed 4 years ago by adeas31
- Component changed from OMEdit to Code Generation
- Owner changed from adeas31 to mahge930
- Status changed from new to assigned
comment:2 Changed 4 years ago by mahge930
- Status changed from assigned to accepted
Changed 4 years ago by adeas31
comment:3 Changed 4 years ago by casella
comment:4 Changed 4 years ago by mahge930
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 Changed 4 years ago by casella
Will do ASAP. But this is obviously an OMEdit issue, if you use OMDev you are following a different path.
comment:6 Changed 4 years ago by adeas31
- Cc adrpo added
- Owner changed from mahge930 to adrpo
- Status changed from accepted to 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 Changed 4 years ago by casella
- Summary changed from MSL Electrical machine model only works in the Linux Jenkins tests, but not on Windows to MSL Electrical machine model only works in the Linux Jenkins tests, but not on with -nfAPI
comment:8 Changed 4 years ago by casella
- Summary changed from MSL Electrical machine model only works in the Linux Jenkins tests, but not on with -nfAPI to MSL Electrical machine model only works in the Linux Jenkins tests, but not with -nfAPI
comment:9 Changed 4 years ago by adrpo
- Status changed from assigned to accepted
comment:10 Changed 4 years ago by adrpo
- Resolution set to fixed
- Status changed from accepted to closed
Should be fixed with PR:
https://github.com/OpenModelica/OpenModelica/pull/6719
comment:11 Changed 4 years ago by casella
Works fine, thanks @adrpo!
With the current master version it fails to compile the simulation executable. Here is the compile log,