Opened 10 years ago

Closed 8 years ago

Last modified 8 years ago

#2782 closed defect (fixed)

Code generation fails on Jacobian columns

Reported by: janssen Owned by: vwaurich
Priority: high Milestone: 1.9.4
Component: Code Generation Version: trunk
Keywords: Cc:

Description

I'm seeing a compile error (using r21903 on OS X), which seems to be down to incorrect code generation:

C2M2L_Decl.Mechanics.MultiBody.Joints.Tests.Test_Universal_Joint_03lsy.c:4231:50: error: use of undeclared identifier 'C2M2L_Decl_Mechanics_MultiBody_Joints_Tests_Test_Universal_Joint_functionJacNLSJac4_column'
  linearSystemData[0].analyticalJacobianColumn = C2M2L_Decl_Mechanics_MultiBody_Joints_Tests_Test_Universal_Joint_functionJacNLSJac4_column;
                                                 ^
C2M2L_Decl.Mechanics.MultiBody.Joints.Tests.Test_Universal_Joint_03lsy.c:4232:51: error: use of undeclared identifier 'C2M2L_Decl_Mechanics_MultiBody_Joints_Tests_Test_Universal_Joint_initialAnalyticJacobianNLSJac4'
  linearSystemData[0].initialAnalyticalJacobian = C2M2L_Decl_Mechanics_MultiBody_Joints_Tests_Test_Universal_Joint_initialAnalyticJacobianNLSJac4;
                                                  ^
C2M2L_Decl.Mechanics.MultiBody.Joints.Tests.Test_Universal_Joint_03lsy.c:4243:50: error: use of undeclared identifier 'C2M2L_Decl_Mechanics_MultiBody_Joints_Tests_Test_Universal_Joint_functionJacNLSJac5_column'
  linearSystemData[1].analyticalJacobianColumn = C2M2L_Decl_Mechanics_MultiBody_Joints_Tests_Test_Universal_Joint_functionJacNLSJac5_column;
                                                 ^
C2M2L_Decl.Mechanics.MultiBody.Joints.Tests.Test_Universal_Joint_03lsy.c:4244:51: error: use of undeclared identifier 'C2M2L_Decl_Mechanics_MultiBody_Joints_Tests_Test_Universal_Joint_initialAnalyticJacobianNLSJac5'
  linearSystemData[1].initialAnalyticalJacobian = C2M2L_Decl_Mechanics_MultiBody_Joints_Tests_Test_Universal_Joint_initialAnalyticJacobianNLSJac5;
                                                  ^
C2M2L_Decl.Mechanics.MultiBody.Joints.Tests.Test_Universal_Joint_03lsy.c:4255:50: error: use of undeclared identifier 'C2M2L_Decl_Mechanics_MultiBody_Joints_Tests_Test_Universal_Joint_functionJacNLSJac6_column'
  linearSystemData[2].analyticalJacobianColumn = C2M2L_Decl_Mechanics_MultiBody_Joints_Tests_Test_Universal_Joint_functionJacNLSJac6_column;
                                                 ^
C2M2L_Decl.Mechanics.MultiBody.Joints.Tests.Test_Universal_Joint_03lsy.c:4256:51: error: use of undeclared identifier 'C2M2L_Decl_Mechanics_MultiBody_Joints_Tests_Test_Universal_Joint_initialAnalyticJacobianNLSJac6'
  linearSystemData[2].initialAnalyticalJacobian = C2M2L_Decl_Mechanics_MultiBody_Joints_Tests_Test_Universal_Joint_initialAnalyticJacobianNLSJac6;
                                                  ^
6 errors generated.
make: *** [C2M2L_Decl.Mechanics.MultiBody.Joints.Tests.Test_Universal_Joint_03lsy.o] Error 1

Unfortunately, this model is too large and too IP-encumbered to share with you. I am hoping you can figure out what the problem is from these error messages.

Change History (7)

comment:1 Changed 10 years ago by sjoelund.se

  • Owner changed from lochel to vwaurich
  • Status changed from new to assigned

This is broken since commit r20610

comment:2 Changed 10 years ago by janssen

I've been told this worked in 21542. My informant suspects r21558 broke it.

comment:3 Changed 10 years ago by sjoelund.se

Oops. I checked C2M2L_Ext :) That version does give the same error-message as this one (and I know the exact revision that broke it). If r21558 broke the C2M2L_Decl version, try to compile using +d=nodoLinearTearing; I suspect fixing r20610 would fix C2M2L_Decl too though (@vwaurich; is a fix coming?).

comment:4 Changed 10 years ago by vwaurich

Unfortunately, I cannot fix or investigate this without having a model. Besides that it seems to be rather an issue of linear tearing than partial function evaluation. Does it compile with nodoLinearTearing?

comment:5 Changed 8 years ago by wbraun

  • Milestone changed from Future to 1.9.4
  • Resolution set to fixed
  • Status changed from assigned to closed

I guess this fixed already, since a lot of such issues have been fix in the meanwhile.
In case it's still an issue please reopen it and update the error message.

comment:6 Changed 8 years ago by sjoelund.se

  • Milestone changed from 1.9.4 to 1.9.4-1.9.x

Milestone renamed

comment:7 Changed 8 years ago by sjoelund.se

  • Milestone changed from 1.9.4-1.9.x to 1.9.4

Milestone renamed

Note: See TracTickets for help on using tickets.