Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example model failures #62

Open
kyleam opened this issue Oct 24, 2024 · 0 comments
Open

Example model failures #62

kyleam opened this issue Oct 24, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@kyleam
Copy link

kyleam commented Oct 24, 2024

run time init dimension error

The neutropeniaPopulation.stan model fails with a dimension mismatch.

Running example-models/neutropeniaPopulation/neutropeniaPopulation.stan fails with

Exception: mismatch in number dimensions declared and found in context; processing stage=data initialization; variable name=ii; dims declared=(445); dims found=() (in '[...]/Torsten/example-models/neutropeniaPopulation/neutropeniaPopulation.stan', line 64, column 2 to column 31)

This is perhaps related to stanc3 v2.32.1 starting to check the shapes of initial values against what's specified in the model: stanc3#1316.

array syntax failures

The following models in example-models/ fail to compile due to using outdated array syntax:

  • chemical_reactions_with_stiffness_diff/chem_group_nonstiff.stan
  • chemical_reactions_with_stiffness_diff/chem_group_stiff.stan
  • chemical_reactions_with_unbalance_load/chem_group.stan
  • harmonic_oscillator_ode_group_model/sho_group.stan
  • harmonic_oscillator_ode_group_model/sho_loop.stan
  • harmonic_oscillator_ode_group_model/sho_simu_group.stan
  • lotka_volterra_ode_group_model/lv.stan
  • lotka_volterra_ode_group_model/lv_group.stan
  • multiDoseME2PK1/multiDoseME2PK1.stan

These should of course be straightforward to update. However, at least some of these array errors mask other errors (e.g., lv_group.stan hits into the "not a stan math member" error).

failures due to "unregistered" stanc3 issues

The following example models fail to compile due to "not a stan math member" errors (related to gh-56):

  • chemical_reactions/chem_group.stan
  • chemical_reactions_with_stiffness_diff/chem_group.stan

The following examples fail to compile due to "undeclared identifier" errors (related to gh-53 and gh-54):

  • chemical_reactions_with_unbalance_load/chem.stan
  • harmonic_oscillator_ode_group_model/sho_pmx_loop.stan
  • lotka_volterra_ode_group_model/lv_pmx.stan
  • ttpn2/ttpn2.stan
  • ttpn2/ttpn2Sim.stan

Similarly, the following example models use old Torsten function names:

  • harmonic_oscillator_ode_group_model/sho_loop.stan (integrate_ode_bdf)
  • lotka_volterra_ode_group_model/lv.stan (integrate_ode_rk45)
  • ttpn2/ttpn2.stan (generalOdeModel_rk45)
@kyleam kyleam added the bug Something isn't working label Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants