IBM Support

PI44074: GENERATING SINGLE FILE (DMCA SCENARIO) CREATE DIFFERENT CODE.

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

APAR status

  • Closed as program error.

Error description

  • Receive an error during code compilation. Making a random change
    to the model will appear to resolve the issue. This was found
    based off of another defect.
    (https://jazzop05.rtp.raleigh.ibm.com:9943/jazz/web/projects/Rha
    psody#action=com.ibm.team.workitem.viewWorkItem&id=247587)
    
    This is caused by:
    OMREGISTER_REACTIVE_CLASS(FunctionalAnalysisPkg_AdaptiveCCPkg)
    
    which is at the end of the AdaptiveCC.cpp
    
    Running the pre-processor to expand this macro, gave the
    following:
    myReal(userClassPtr)
    {AOMSchedDispatcher::instance()->registerAOMInstance(myReal,
    (AOMInstance*)this);} (FunctionalAnalysisPkg_AdaptiveCCPkg)
    
    It appears the macro is incorrectly formed.
    
    The symptom of Roundtrip/generate removes the parameter is not
    because Roundtrip change the model.
    It is a defect in code generation. Generating code for the
    configuration, or generating single file (DMCA scenario) create
    different code.
    This case is simulink code generation problem (in this case the
    code generated for single file is correct)
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Rhapsody 8.1.2.1                                             *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * The model contains Simulink block and should be compiled     *
    * using Matlab tool. In this case OMREGISTER_REACTIVE_CLASS    *
    * should contain "package" argument. When the code is          *
    * generated for some block after RT, it mistakenly generates   *
    * OMREGISTER_REACTIVE_CLASS  without parameter.                *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    

Problem conclusion

  • Fixed in 8.1.4 - OMREGISTER_REACTIVE_CLASS macro call is always
    generated with  parameter if scope contains Simulink block.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI44074

  • Reported component name

    TLOGIC RHAPSODY

  • Reported component ID

    5724V74RP

  • Reported release

    812

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2015-06-30

  • Closed date

    2015-12-16

  • Last modified date

    2015-12-16

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    TLOGIC RHAPSODY

  • Fixed component ID

    5724V74RP

Applicable component levels

  • R812 PSY

       UP



Document information

More support for: Rational Rhapsody

Software version: 8.1.2

Reference #: PI44074

Modified date: 16 December 2015