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

Java Array index Error in SSA-Direct Reaction-based Abstraction #609

Open
buggsley opened this issue Jul 21, 2020 · 3 comments
Open

Java Array index Error in SSA-Direct Reaction-based Abstraction #609

buggsley opened this issue Jul 21, 2020 · 3 comments
Labels
Milestone

Comments

@buggsley
Copy link

iBioSim Version 3.0.0

Operating system: Windows 10

Bug reported by: [email protected]

Description:
When trying to preform a reaction-based abstraction on my model using the SSA-Direct (Dynamic) simulator, iBioSim immediately throws an error: "java.lang.IndexOutOfBoundsException: Index: 0, Size: 0"
The model is BIOMD0000000565 from the EMBL-EBI BioModels database. All simulation options were left as default except: Abstraction was set to Reaction-based, analysis type was set to Monte Carlo, and Possible Simulators/Analyzers was set to SSA-Direct (Dynamic).

Stack trace:
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.rangeCheck(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at org.sbml.jsbml.ASTNode.getChild(ASTNode.java:2498)
at org.sbml.jsbml.ASTNode.getLeftChild(ASTNode.java:2620)
at edu.utah.ece.async.ibiosim.analysis.simulation.flattened.Simulator.setupSingleReaction(Simulator.java:6299)
at edu.utah.ece.async.ibiosim.analysis.simulation.flattened.Simulator.setupReactions(Simulator.java:6548)
at edu.utah.ece.async.ibiosim.analysis.simulation.flattened.SimulatorSSADirect.initialize(SimulatorSSADirect.java:270)
at edu.utah.ece.async.ibiosim.analysis.simulation.flattened.SimulatorSSADirect.(SimulatorSSADirect.java:51)
at edu.utah.ece.async.ibiosim.analysis.simulation.DynamicSimulation.simulate(DynamicSimulation.java:98)
at edu.utah.ece.async.ibiosim.analysis.Run.executeSimulation(Run.java:466)
at edu.utah.ece.async.ibiosim.analysis.Run.execute(Run.java:148)
at edu.utah.ece.async.ibiosim.gui.analysisView.AnalysisView.run(AnalysisView.java:907)
at edu.utah.ece.async.ibiosim.gui.analysisView.AnalysisThread.run(AnalysisThread.java:43)

@buggsley buggsley added the BUG label Jul 21, 2020
@michaelcotner
Copy link

The model that I used was downloaded from https://www.ebi.ac.uk/biomodels-main/BIOMD0000000565

@zgzn
Copy link
Collaborator

zgzn commented Aug 17, 2020

@cjmyers This is the error for the multi-compartment SBML model we emailed you before. Can you give us pointers on how to fix it? Thanks.

@cjmyers
Copy link
Contributor

cjmyers commented Aug 28, 2020

Please try this again using the rkf45 ODE simulation method (the method you used is not very stable). If you don't see this one, please make sure you have reb2sac installed. This is also a stiff model, so I set a time limit of 1.0 seconds. It take a long time to simulate, so it likely has a very fast time constants. Do not use abstraction on this model as it will not help.

@LukasBuecherl LukasBuecherl added this to the 3.2 milestone Apr 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants