Skip to content

Commit adce77c

Browse files
authored
Merge pull request #1392 from virtualcell/fix-sedml-repeated-1
OMEX Execution fails with repeated task of size 1
2 parents 8333ce3 + 52cd0ec commit adce77c

File tree

10 files changed

+130
-110
lines changed

10 files changed

+130
-110
lines changed

vcell-cli/src/test/java/org/vcell/cli/run/BSTSBasedOmexExecTest.java

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -123,21 +123,19 @@ static Map<String, FAULT> knownFaults() {
123123
FAULT.SEDML_ERRONEOUS_UNIT_SYSTEM);
124124

125125

126-
// faults.put("misc-projects/BIOMD0000000005.omex", null); // works
127-
faults.put("misc-projects/BIOMD0000000302.omex", FAULT.MATH_GENERATION_FAILURE); // | Root(root) | OMEX_EXECUTE(BSTS_OmexFile_8639905465728503850omex) | SIMULATIONS_RUN(runSimulations) | **** Error: Unable to initialize bioModel for the given selection: MappingException occurred: failed to generate math: generated an invalid mathDescription: Initial condition for variable 'h_post' references variable 'V_post'. Initial conditions cannot reference variables.
126+
//faults.put("misc-projects/BIOMD0000000005.omex", null); // works
128127
faults.put("misc-projects/BIOMD0000000175.omex", FAULT.MATH_GENERATION_FAILURE); // | Root(root) | OMEX_EXECUTE(BSTS_OmexFile_6652012719407098827omex) | SIMULATIONS_RUN(runSimulations) | **** Error: Unable to initialize bioModel for the given selection: MappingException occurred: failed to generate math: Unable to sort, unknown identifier I_Net_E44PPI3K_binding
129-
faults.put("misc-projects/BIOMD0000000618.omex", FAULT.SBML_IMPORT_FAILURE); // | Root(root) | OMEX_EXECUTE(BSTS_OmexFile_13012177097014737572omex) | SIMULATIONS_RUN(runSimulations) | **** Error: Error processing model: model2 - couldn't find SBase with sid=null in SBMLSymbolMapping
130-
//faults.put("misc-projects/BIOMD0000000569.omex", null); // works!!
131-
//faults.put("misc-projects/BIOMD0000000973.omex", null); // works!!
128+
faults.put("misc-projects/BIOMD0000000302.omex", FAULT.MATH_GENERATION_FAILURE); // | Root(root) | OMEX_EXECUTE(BSTS_OmexFile_8639905465728503850omex) | SIMULATIONS_RUN(runSimulations) | **** Error: Unable to initialize bioModel for the given selection: MappingException occurred: failed to generate math: generated an invalid mathDescription: Initial condition for variable 'h_post' references variable 'V_post'. Initial conditions cannot reference variables.
132129
//faults.put("misc-projects/BIOMD0000000520.omex", null); // works!!
133-
faults.put("misc-projects/BIOMD0000000731.omex", FAULT.SBML_IMPORT_FAILURE); // | Root(root) | OMEX_EXECUTE(BSTS_OmexFile_7811157837075929926omex) | SIMULATIONS_RUN(runSimulations) | **** Error: Unable to initialize bioModel for the given selection: Failed to translate SBML model into BioModel: Error binding global parameter 'Treg_origin_fraction_CD4' to model: 'func_TRegs_Production_from_CD4' is either not found in your model or is not allowed to be used in the current context. Check that you have provided the correct and full name (e.g. Ca_Cytosol).
134-
faults.put("misc-projects/BIOMD0000001061.omex", FAULT.SEDML_NO_SEDMLS_TO_EXECUTE); // | Root(root) | OMEX_EXECUTE(BSTS_OmexFile_6151950245083004772omex) | **** Error: writeErrorList(): BSTS_OmexFile_6151950245083004772omex | java.lang.RuntimeException: There are no SED-MLs in the archive to execute
135-
faults.put("misc-projects/BIOMD0000001064.omex", FAULT.SEDML_NO_SEDMLS_TO_EXECUTE); // | Root(root) | OMEX_EXECUTE(BSTS_OmexFile_855930052238018769omex) | **** Error: writeErrorList(): BSTS_OmexFile_855930052238018769omex | java.lang.RuntimeException: There are no SED-MLs in the archive to execute
130+
faults.put("misc-projects/BIOMD0000000561.omex", FAULT.UNCATETORIZED_FAULT); // (not a dynamic system - can't solve) | Root(root) | OMEX_EXECUTE(BSTS_OmexFile_4023640363466179720omex) | SIMULATIONS_RUN(runSimulations) | BioModel(BSTS_OmexFile_4023640363466179720omex_Martins2013.sedml_model) | SIMULATION_RUN(task1_task1) | **** Error: Failed execution: Model 'BSTS_OmexFile_4023640363466179720omex_Martins2013.sedml_model' Task 'task1'.
131+
//faults.put("misc-projects/BIOMD0000000569.omex", null); // works!!
132+
faults.put("misc-projects/BIOMD0000000618.omex", FAULT.SBML_IMPORT_FAILURE); // | Root(root) | OMEX_EXECUTE(BSTS_OmexFile_13012177097014737572omex) | SIMULATIONS_RUN(runSimulations) | **** Error: Error processing model: model2 - couldn't find SBase with sid=null in SBMLSymbolMapping
136133
//faults.put("misc-projects/BIOMD0000000651.omex", null); // works!!
137134
//faults.put("misc-projects/BIOMD0000000668.omex", null); // works!!
138135
//faults.put("misc-projects/BIOMD0000000669.omex", null); // works!!
139136
//faults.put("misc-projects/BIOMD0000000676.omex", null); // works!!
140137
//faults.put("misc-projects/BIOMD0000000718.omex", null); // works!!
138+
faults.put("misc-projects/BIOMD0000000731.omex", FAULT.SBML_IMPORT_FAILURE); // | Root(root) | OMEX_EXECUTE(BSTS_OmexFile_7811157837075929926omex) | SIMULATIONS_RUN(runSimulations) | **** Error: Unable to initialize bioModel for the given selection: Failed to translate SBML model into BioModel: Error binding global parameter 'Treg_origin_fraction_CD4' to model: 'func_TRegs_Production_from_CD4' is either not found in your model or is not allowed to be used in the current context. Check that you have provided the correct and full name (e.g. Ca_Cytosol).
141139
//faults.put("misc-projects/BIOMD0000000842.omex", null); // works!!
142140
//faults.put("misc-projects/BIOMD0000000843.omex", null); // works!!
143141
//faults.put("misc-projects/BIOMD0000000932.omex", null); // works!!
@@ -146,6 +144,7 @@ static Map<String, FAULT> knownFaults() {
146144
//faults.put("misc-projects/BIOMD0000000957.omex", null); // works!!
147145
//faults.put("misc-projects/BIOMD0000000968.omex", null); // works!!
148146
//faults.put("misc-projects/BIOMD0000000972.omex", null); // works!!
147+
//faults.put("misc-projects/BIOMD0000000973.omex", null); // works!!
149148
//faults.put("misc-projects/BIOMD0000000983.omex", null); // works!!
150149
//faults.put("misc-projects/BIOMD0000000985.omex", null); // works!!
151150
//faults.put("misc-projects/BIOMD0000000989.omex", null); // works!!
@@ -154,6 +153,8 @@ static Map<String, FAULT> knownFaults() {
154153
//faults.put("misc-projects/BIOMD0000001010.omex", null); // works!!
155154
//faults.put("misc-projects/BIOMD0000001014.omex", null); // works!!
156155
//faults.put("misc-projects/BIOMD0000001018.omex", null); // works!!
156+
faults.put("misc-projects/BIOMD0000001061.omex", FAULT.SEDML_NO_SEDMLS_TO_EXECUTE); // | Root(root) | OMEX_EXECUTE(BSTS_OmexFile_6151950245083004772omex) | **** Error: writeErrorList(): BSTS_OmexFile_6151950245083004772omex | java.lang.RuntimeException: There are no SED-MLs in the archive to execute
157+
faults.put("misc-projects/BIOMD0000001064.omex", FAULT.SEDML_NO_SEDMLS_TO_EXECUTE); // | Root(root) | OMEX_EXECUTE(BSTS_OmexFile_855930052238018769omex) | **** Error: writeErrorList(): BSTS_OmexFile_855930052238018769omex | java.lang.RuntimeException: There are no SED-MLs in the archive to execute
157158
//faults.put("misc-projects/BIOMD0000001072.omex", null); // works!!
158159
//faults.put("misc-projects/BIOMD0000001077.omex", null); // works!!
159160

@@ -170,6 +171,13 @@ public static Collection<String> testCases() {
170171

171172
return Arrays.stream(BSTSBasedTestSuiteFiles.getBSTSTestCases()).filter(filter).collect(Collectors.toList());
172173
// return Arrays.asList(
174+
// "misc-projects/BIOMD0000000561.omex",
175+
// "misc-projects/BIOMD0000000679.omex",
176+
// "misc-projects/BIOMD0000000680.omex",
177+
// "misc-projects/BIOMD0000000681.omex",
178+
// "misc-projects/BIOMD0000000684.omex",
179+
// "misc-projects/BIOMD0000000724.omex",
180+
// "misc-projects/BIOMD0000000915.omex"
173181
// "misc-projects/BIOMD0000000302.omex",
174182
// "misc-projects/BIOMD0000000175.omex",
175183
// "misc-projects/BIOMD0000000618.omex",

0 commit comments

Comments
 (0)