COPASI API  4.16.103
test000051.cpp
Go to the documentation of this file.
1 // Begin CVS Header
2 // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/sbml/unittests/test000051.cpp,v $
3 // $Revision: 1.6 $
4 // $Name: $
5 // $Author: gauges $
6 // $Date: 2010/03/11 11:52:00 $
7 // End CVS Header
8 
9 // Copyright (C) 2010 by Pedro Mendes, Virginia Tech Intellectual
10 // Properties, Inc., University of Heidelberg, and The University
11 // of Manchester.
12 // All rights reserved.
13 
14 // Copyright (C) 2008 by Pedro Mendes, Virginia Tech Intellectual
15 // Properties, Inc., EML Research, gGmbH, University of Heidelberg,
16 // and The University of Manchester.
17 // All rights reserved.
18 
19 #include "test000051.h"
20 
21 #include <sstream>
22 #include "utilities.hpp"
24 
25 #include "sbml/SBMLDocument.h"
26 #include "sbml/Model.h"
27 #include "sbml/Rule.h"
28 #include "sbml/Species.h"
29 #include "sbml/Parameter.h"
30 #include "sbml/math/ASTNode.h"
31 
33 
34 CCopasiDataModel* test000051::pCOPASIDATAMODEL = NULL;
35 
37 {
38  // Create the root container.
39  CCopasiRootContainer::init(0, NULL, false);
40  // Create the global data model.
42 }
43 
45 {
47 }
48 
50 {
51  // load the CPS file
52  // export to SBML
53  // check the resulting SBML model
54  CCopasiDataModel* pDataModel = pCOPASIDATAMODEL;
55  std::istringstream iss(test000051::MODEL_STRING);
56  CPPUNIT_ASSERT(load_cps_model_from_stream(iss, *pDataModel) == true);
57  CPPUNIT_ASSERT(pDataModel->getModel() != NULL);
58  CPPUNIT_ASSERT(pDataModel->exportSBMLToString(NULL, 2, 3).empty() == false);
59  SBMLDocument* pDocument = pDataModel->getCurrentSBMLDocument();
60  CPPUNIT_ASSERT(pDocument != NULL);
61  Model* pModel = pDocument->getModel();
62  CPPUNIT_ASSERT(pModel != NULL);
63  // assert that there is only one compartment and
64  // assert the compartment is constant
65  CPPUNIT_ASSERT(pModel->getNumCompartments() == 1);
66  Compartment* pCompartment = pModel->getCompartment(0);
67  CPPUNIT_ASSERT(pCompartment->getConstant() == true);
68  CPPUNIT_ASSERT(pModel->getNumParameters() == 0);
69  CPPUNIT_ASSERT(pModel->getNumSpecies() == 1);
70  const Species* pSpecies = pModel->getSpecies(0);
71  std::string idSpeciesA = pSpecies->getId();
72  CPPUNIT_ASSERT(pSpecies->getHasOnlySubstanceUnits() == false);
73  CPPUNIT_ASSERT(pModel->getNumRules() == 1);
74  AssignmentRule* pRule = dynamic_cast<AssignmentRule*>(pModel->getRule(0));
75  CPPUNIT_ASSERT(pRule != NULL);
76  CPPUNIT_ASSERT(pRule->getVariable() == idSpeciesA);
77  const ASTNode* pMath = pRule->getMath();
78  CPPUNIT_ASSERT(pMath != NULL);
79  // make sure the mathematical expression contains a piecewise
80  // function definition
81  CPPUNIT_ASSERT(pMath->getType() == AST_FUNCTION_PIECEWISE);
82  CPPUNIT_ASSERT(pMath->getNumChildren() == 3);
83  CPPUNIT_ASSERT(pMath->getChild(0) != NULL);
84  CPPUNIT_ASSERT(pMath->getChild(0)->getType() == AST_REAL);
85  CPPUNIT_ASSERT(pMath->getChild(0)->getReal() < 1e-6);
86  CPPUNIT_ASSERT(pMath->getChild(2) != NULL);
87  CPPUNIT_ASSERT(pMath->getChild(2)->getType() == AST_REAL);
88  CPPUNIT_ASSERT(fabs((pMath->getChild(2)->getReal() - 10.0) / 10.0) < 1e-3);
89  pMath = pMath->getChild(1);
90  CPPUNIT_ASSERT(pMath != NULL);
91  CPPUNIT_ASSERT(pMath->getType() == AST_RELATIONAL_LT);
92  CPPUNIT_ASSERT(pMath->getNumChildren() == 2);
93  CPPUNIT_ASSERT(pMath->getChild(0) != NULL);
94  CPPUNIT_ASSERT(pMath->getChild(0)->getType() == AST_NAME_TIME);
95  CPPUNIT_ASSERT(pMath->getChild(1) != NULL);
96  CPPUNIT_ASSERT(pMath->getChild(1)->getType() == AST_REAL);
97  CPPUNIT_ASSERT(fabs((pMath->getChild(1)->getReal() - 5.0) / 5.0) < 1e-3);
98  CPPUNIT_ASSERT(pModel->getNumReactions() == 0);
99 }
100 
101 const char* test000051::MODEL_STRING =
102  "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
103  "<!-- generated with COPASI 4.3 (Build 25) (http://www.copasi.org) at 2008-03-04 00:11:31 UTC -->\n"
104  "<COPASI xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"http://www.copasi.org/static/schema.xsd\" versionMajor=\"1\" versionMinor=\"0\" versionDevel=\"25\">\n"
105  " <Model key=\"Model_0\" name=\"New Model\" timeUnit=\"s\" volumeUnit=\"ml\" quantityUnit=\"mmol\" type=\"deterministic\">\n"
106  " <Comment>\n"
107  " <body xmlns=\"http://www.w3.org/1999/xhtml\">\n"
108  " \n"
109  " </body>\n"
110  " </Comment>\n"
111  " <ListOfCompartments>\n"
112  " <Compartment key=\"Compartment_0\" name=\"compartment\" simulationType=\"fixed\">\n"
113  " </Compartment>\n"
114  " </ListOfCompartments>\n"
115  " <ListOfMetabolites>\n"
116  " <Metabolite key=\"Metabolite_0\" name=\"species\" simulationType=\"assignment\" compartment=\"Compartment_0\">\n"
117  " <Expression>\n"
118  " if(&lt;CN=Root,Model=New Model,Reference=Time&gt; lt 5,0,10)\n"
119  " </Expression>\n"
120  " </Metabolite>\n"
121  " </ListOfMetabolites>\n"
122  " <StateTemplate>\n"
123  " <StateTemplateVariable objectReference=\"Model_0\"/>\n"
124  " <StateTemplateVariable objectReference=\"Metabolite_0\"/>\n"
125  " <StateTemplateVariable objectReference=\"Compartment_0\"/>\n"
126  " </StateTemplate>\n"
127  " <InitialState type=\"initialState\">\n"
128  " 0 0 1\n"
129  " </InitialState>\n"
130  " </Model>\n"
131  " <ListOfTasks>\n"
132  " <Task key=\"Task_9\" name=\"Steady-State\" type=\"steadyState\" scheduled=\"false\" updateModel=\"false\">\n"
133  " <Report reference=\"Report_6\" target=\"\" append=\"1\"/>\n"
134  " <Problem>\n"
135  " <Parameter name=\"JacobianRequested\" type=\"bool\" value=\"1\"/>\n"
136  " <Parameter name=\"StabilityAnalysisRequested\" type=\"bool\" value=\"1\"/>\n"
137  " </Problem>\n"
138  " <Method name=\"Enhanced Newton\" type=\"EnhancedNewton\">\n"
139  " <Parameter name=\"Resolution\" type=\"unsignedFloat\" value=\"1e-009\"/>\n"
140  " <Parameter name=\"Derivation Factor\" type=\"unsignedFloat\" value=\"0.001\"/>\n"
141  " <Parameter name=\"Use Newton\" type=\"bool\" value=\"1\"/>\n"
142  " <Parameter name=\"Use Integration\" type=\"bool\" value=\"1\"/>\n"
143  " <Parameter name=\"Use Back Integration\" type=\"bool\" value=\"1\"/>\n"
144  " <Parameter name=\"Accept Negative Concentrations\" type=\"bool\" value=\"0\"/>\n"
145  " <Parameter name=\"Iteration Limit\" type=\"unsignedInteger\" value=\"50\"/>\n"
146  " </Method>\n"
147  " </Task>\n"
148  " <Task key=\"Task_8\" name=\"Time-Course\" type=\"timeCourse\" scheduled=\"false\" updateModel=\"false\">\n"
149  " <Problem>\n"
150  " <Parameter name=\"StepNumber\" type=\"unsignedInteger\" value=\"100\"/>\n"
151  " <Parameter name=\"StepSize\" type=\"float\" value=\"0.01\"/>\n"
152  " <Parameter name=\"Duration\" type=\"float\" value=\"1\"/>\n"
153  " <Parameter name=\"TimeSeriesRequested\" type=\"bool\" value=\"1\"/>\n"
154  " <Parameter name=\"OutputStartTime\" type=\"float\" value=\"0\"/>\n"
155  " </Problem>\n"
156  " <Method name=\"Deterministic (LSODA)\" type=\"Deterministic(LSODA)\">\n"
157  " <Parameter name=\"Integrate Reduced Model\" type=\"bool\" value=\"1\"/>\n"
158  " <Parameter name=\"Relative Tolerance\" type=\"unsignedFloat\" value=\"1e-006\"/>\n"
159  " <Parameter name=\"Absolute Tolerance\" type=\"unsignedFloat\" value=\"1e-012\"/>\n"
160  " <Parameter name=\"Adams Max Order\" type=\"unsignedInteger\" value=\"12\"/>\n"
161  " <Parameter name=\"BDF Max Order\" type=\"unsignedInteger\" value=\"5\"/>\n"
162  " <Parameter name=\"Max Internal Steps\" type=\"unsignedInteger\" value=\"10000\"/>\n"
163  " </Method>\n"
164  " </Task>\n"
165  " <Task key=\"Task_7\" name=\"Scan\" type=\"scan\" scheduled=\"false\" updateModel=\"false\">\n"
166  " <Problem>\n"
167  " <Parameter name=\"Subtask\" type=\"unsignedInteger\" value=\"1\"/>\n"
168  " <ParameterGroup name=\"ScanItems\">\n"
169  " </ParameterGroup>\n"
170  " <Parameter name=\"Output in subtask\" type=\"bool\" value=\"1\"/>\n"
171  " <Parameter name=\"Adjust initial conditions\" type=\"bool\" value=\"0\"/>\n"
172  " </Problem>\n"
173  " <Method name=\"Scan Framework\" type=\"ScanFramework\">\n"
174  " </Method>\n"
175  " </Task>\n"
176  " <Task key=\"Task_6\" name=\"Elementary Flux Modes\" type=\"fluxMode\" scheduled=\"false\" updateModel=\"false\">\n"
177  " <Report reference=\"Report_5\" target=\"\" append=\"1\"/>\n"
178  " <Problem>\n"
179  " </Problem>\n"
180  " <Method name=\"EFM Algorithm\" type=\"EFMAlgorithm\">\n"
181  " </Method>\n"
182  " </Task>\n"
183  " <Task key=\"Task_5\" name=\"Optimization\" type=\"optimization\" scheduled=\"false\" updateModel=\"false\">\n"
184  " <Report reference=\"Report_4\" target=\"\" append=\"1\"/>\n"
185  " <Problem>\n"
186  " <Parameter name=\"Steady-State\" type=\"key\" value=\"\"/>\n"
187  " <Parameter name=\"Time-Course\" type=\"key\" value=\"\"/>\n"
188  " <Parameter name=\"ObjectiveFunction\" type=\"key\" value=\"\"/>\n"
189  " <Parameter name=\"Maximize\" type=\"bool\" value=\"0\"/>\n"
190  " <ParameterGroup name=\"OptimizationItemList\">\n"
191  " </ParameterGroup>\n"
192  " <ParameterGroup name=\"OptimizationConstraintList\">\n"
193  " </ParameterGroup>\n"
194  " </Problem>\n"
195  " <Method name=\"Random Search\" type=\"RandomSearch\">\n"
196  " <Parameter name=\"Number of Iterations\" type=\"unsignedInteger\" value=\"100000\"/>\n"
197  " <Parameter name=\"Random Number Generator\" type=\"unsignedInteger\" value=\"1\"/>\n"
198  " <Parameter name=\"Seed\" type=\"unsignedInteger\" value=\"0\"/>\n"
199  " </Method>\n"
200  " </Task>\n"
201  " <Task key=\"Task_4\" name=\"Parameter Estimation\" type=\"parameterFitting\" scheduled=\"false\" updateModel=\"false\">\n"
202  " <Report reference=\"Report_3\" target=\"\" append=\"1\"/>\n"
203  " <Problem>\n"
204  " <Parameter name=\"Steady-State\" type=\"key\" value=\"Task_9\"/>\n"
205  " <Parameter name=\"Time-Course\" type=\"key\" value=\"Task_8\"/>\n"
206  " <ParameterGroup name=\"OptimizationItemList\">\n"
207  " </ParameterGroup>\n"
208  " <ParameterGroup name=\"OptimizationConstraintList\">\n"
209  " </ParameterGroup>\n"
210  " <ParameterGroup name=\"Experiment Set\">\n"
211  " </ParameterGroup>\n"
212  " </Problem>\n"
213  " <Method name=\"Evolutionary Programming\" type=\"EvolutionaryProgram\">\n"
214  " <Parameter name=\"Number of Generations\" type=\"unsignedInteger\" value=\"200\"/>\n"
215  " <Parameter name=\"Population Size\" type=\"unsignedInteger\" value=\"20\"/>\n"
216  " <Parameter name=\"Random Number Generator\" type=\"unsignedInteger\" value=\"1\"/>\n"
217  " <Parameter name=\"Seed\" type=\"unsignedInteger\" value=\"0\"/>\n"
218  " </Method>\n"
219  " </Task>\n"
220  " <Task key=\"Task_3\" name=\"Metabolic Control Analysis\" type=\"metabolicControlAnalysis\" scheduled=\"false\" updateModel=\"false\">\n"
221  " <Report reference=\"Report_2\" target=\"\" append=\"1\"/>\n"
222  " <Problem>\n"
223  " <Parameter name=\"Steady-State\" type=\"key\" value=\"Task_9\"/>\n"
224  " </Problem>\n"
225  " <Method name=\"MCA Method (Reder)\" type=\"MCAMethod(Reder)\">\n"
226  " <Parameter name=\"Modulation Factor\" type=\"unsignedFloat\" value=\"1e-009\"/>\n"
227  " </Method>\n"
228  " </Task>\n"
229  " <Task key=\"Task_2\" name=\"Lyapunov Exponents\" type=\"lyapunovExponents\" scheduled=\"false\" updateModel=\"false\">\n"
230  " <Report reference=\"Report_1\" target=\"\" append=\"1\"/>\n"
231  " <Problem>\n"
232  " <Parameter name=\"ExponentNumber\" type=\"unsignedInteger\" value=\"3\"/>\n"
233  " <Parameter name=\"DivergenceRequested\" type=\"bool\" value=\"1\"/>\n"
234  " <Parameter name=\"TransientTime\" type=\"float\" value=\"0\"/>\n"
235  " </Problem>\n"
236  " <Method name=\"Wolf Method\" type=\"WolfMethod\">\n"
237  " <Parameter name=\"Orthonormalization Interval\" type=\"unsignedFloat\" value=\"1\"/>\n"
238  " <Parameter name=\"Overall time\" type=\"unsignedFloat\" value=\"1000\"/>\n"
239  " <Parameter name=\"Relative Tolerance\" type=\"unsignedFloat\" value=\"1e-006\"/>\n"
240  " <Parameter name=\"Use Default Absolute Tolerance\" type=\"bool\" value=\"1\"/>\n"
241  " <Parameter name=\"Absolute Tolerance\" type=\"unsignedFloat\" value=\"1e-012\"/>\n"
242  " <Parameter name=\"Adams Max Order\" type=\"unsignedInteger\" value=\"12\"/>\n"
243  " <Parameter name=\"BDF Max Order\" type=\"unsignedInteger\" value=\"5\"/>\n"
244  " <Parameter name=\"Max Internal Steps\" type=\"unsignedInteger\" value=\"10000\"/>\n"
245  " </Method>\n"
246  " </Task>\n"
247  " <Task key=\"Task_1\" name=\"Sensitivities\" type=\"sensitivities\" scheduled=\"false\" updateModel=\"false\">\n"
248  " <Report reference=\"Report_0\" target=\"\" append=\"1\"/>\n"
249  " <Problem>\n"
250  " <Parameter name=\"SubtaskType\" type=\"unsignedInteger\" value=\"1\"/>\n"
251  " <ParameterGroup name=\"TargetFunctions\">\n"
252  " <Parameter name=\"SingleObject\" type=\"cn\" value=\"\"/>\n"
253  " <Parameter name=\"ObjectListType\" type=\"unsignedInteger\" value=\"7\"/>\n"
254  " </ParameterGroup>\n"
255  " <ParameterGroup name=\"ListOfVariables\">\n"
256  " <ParameterGroup name=\"Variables\">\n"
257  " <Parameter name=\"SingleObject\" type=\"cn\" value=\"\"/>\n"
258  " <Parameter name=\"ObjectListType\" type=\"unsignedInteger\" value=\"41\"/>\n"
259  " </ParameterGroup>\n"
260  " </ParameterGroup>\n"
261  " </Problem>\n"
262  " <Method name=\"Sensitivities Method\" type=\"SensitivitiesMethod\">\n"
263  " <Parameter name=\"Delta factor\" type=\"unsignedFloat\" value=\"1e-006\"/>\n"
264  " <Parameter name=\"Delta minimum\" type=\"unsignedFloat\" value=\"1e-012\"/>\n"
265  " </Method>\n"
266  " </Task>\n"
267  " <Task key=\"Task_0\" name=\"Moieties\" type=\"moieties\" scheduled=\"false\" updateModel=\"false\">\n"
268  " <Problem>\n"
269  " </Problem>\n"
270  " <Method name=\"Householder Reduction\" type=\"Householder\">\n"
271  " </Method>\n"
272  " </Task>\n"
273  " </ListOfTasks>\n"
274  " <ListOfReports>\n"
275  " <Report key=\"Report_6\" name=\"Steady-State\" taskType=\"steadyState\" separator=\"&#x09;\" precision=\"6\">\n"
276  " <Comment>\n"
277  " <body xmlns=\"http://www.w3.org/1999/xhtml\">\n"
278  " Automatically generated report.\n"
279  " </body>\n"
280  " </Comment>\n"
281  " <Footer>\n"
282  " <Object cn=\"CN=Root,Vector=TaskList[Steady-State]\"/>\n"
283  " </Footer>\n"
284  " </Report>\n"
285  " <Report key=\"Report_5\" name=\"Elementary Flux Modes\" taskType=\"fluxMode\" separator=\"&#x09;\" precision=\"6\">\n"
286  " <Comment>\n"
287  " <body xmlns=\"http://www.w3.org/1999/xhtml\">\n"
288  " Automatically generated report.\n"
289  " </body>\n"
290  " </Comment>\n"
291  " <Footer>\n"
292  " <Object cn=\"CN=Root,Vector=TaskList[Elementary Flux Modes],Object=Result\"/>\n"
293  " </Footer>\n"
294  " </Report>\n"
295  " <Report key=\"Report_4\" name=\"Optimization\" taskType=\"optimization\" separator=\"&#x09;\" precision=\"6\">\n"
296  " <Comment>\n"
297  " <body xmlns=\"http://www.w3.org/1999/xhtml\">\n"
298  " Automatically generated report.\n"
299  " </body>\n"
300  " </Comment>\n"
301  " <Header>\n"
302  " <Object cn=\"CN=Root,Vector=TaskList[Optimization],Object=Description\"/>\n"
303  " <Object cn=\"String=\\[Function Evaluations\\]\"/>\n"
304  " <Object cn=\"Separator=&#x09;\"/>\n"
305  " <Object cn=\"String=\\[Best Value\\]\"/>\n"
306  " <Object cn=\"Separator=&#x09;\"/>\n"
307  " <Object cn=\"String=\\[Best Parameters\\]\"/>\n"
308  " </Header>\n"
309  " <Body>\n"
310  " <Object cn=\"CN=Root,Vector=TaskList[Optimization],Problem=Optimization,Reference=Function Evaluations\"/>\n"
311  " <Object cn=\"Separator=&#x09;\"/>\n"
312  " <Object cn=\"CN=Root,Vector=TaskList[Optimization],Problem=Optimization,Reference=Best Value\"/>\n"
313  " <Object cn=\"Separator=&#x09;\"/>\n"
314  " <Object cn=\"CN=Root,Vector=TaskList[Optimization],Problem=Optimization,Reference=Best Parameters\"/>\n"
315  " </Body>\n"
316  " <Footer>\n"
317  " <Object cn=\"String=&#x0a;\"/>\n"
318  " <Object cn=\"CN=Root,Vector=TaskList[Optimization],Object=Result\"/>\n"
319  " </Footer>\n"
320  " </Report>\n"
321  " <Report key=\"Report_3\" name=\"Parameter Estimation\" taskType=\"parameterFitting\" separator=\"&#x09;\" precision=\"6\">\n"
322  " <Comment>\n"
323  " <body xmlns=\"http://www.w3.org/1999/xhtml\">\n"
324  " Automatically generated report.\n"
325  " </body>\n"
326  " </Comment>\n"
327  " <Header>\n"
328  " <Object cn=\"CN=Root,Vector=TaskList[Parameter Estimation],Object=Description\"/>\n"
329  " <Object cn=\"String=\\[Function Evaluations\\]\"/>\n"
330  " <Object cn=\"Separator=&#x09;\"/>\n"
331  " <Object cn=\"String=\\[Best Value\\]\"/>\n"
332  " <Object cn=\"Separator=&#x09;\"/>\n"
333  " <Object cn=\"String=\\[Best Parameters\\]\"/>\n"
334  " </Header>\n"
335  " <Body>\n"
336  " <Object cn=\"CN=Root,Vector=TaskList[Parameter Estimation],Problem=Parameter Estimation,Reference=Function Evaluations\"/>\n"
337  " <Object cn=\"Separator=&#x09;\"/>\n"
338  " <Object cn=\"CN=Root,Vector=TaskList[Parameter Estimation],Problem=Parameter Estimation,Reference=Best Value\"/>\n"
339  " <Object cn=\"Separator=&#x09;\"/>\n"
340  " <Object cn=\"CN=Root,Vector=TaskList[Parameter Estimation],Problem=Parameter Estimation,Reference=Best Parameters\"/>\n"
341  " </Body>\n"
342  " <Footer>\n"
343  " <Object cn=\"String=&#x0a;\"/>\n"
344  " <Object cn=\"CN=Root,Vector=TaskList[Parameter Estimation],Object=Result\"/>\n"
345  " </Footer>\n"
346  " </Report>\n"
347  " <Report key=\"Report_2\" name=\"Metabolic Control Analysis\" taskType=\"metabolicControlAnalysis\" separator=\"&#x09;\" precision=\"6\">\n"
348  " <Comment>\n"
349  " <body xmlns=\"http://www.w3.org/1999/xhtml\">\n"
350  " Automatically generated report.\n"
351  " </body>\n"
352  " </Comment>\n"
353  " <Header>\n"
354  " <Object cn=\"CN=Root,Vector=TaskList[Metabolic Control Analysis],Object=Description\"/>\n"
355  " </Header>\n"
356  " <Footer>\n"
357  " <Object cn=\"String=&#x0a;\"/>\n"
358  " <Object cn=\"CN=Root,Vector=TaskList[Metabolic Control Analysis],Object=Result\"/>\n"
359  " </Footer>\n"
360  " </Report>\n"
361  " <Report key=\"Report_1\" name=\"Lyapunov Exponents\" taskType=\"lyapunovExponents\" separator=\"&#x09;\" precision=\"6\">\n"
362  " <Comment>\n"
363  " <body xmlns=\"http://www.w3.org/1999/xhtml\">\n"
364  " Automatically generated report.\n"
365  " </body>\n"
366  " </Comment>\n"
367  " <Header>\n"
368  " <Object cn=\"CN=Root,Vector=TaskList[Lyapunov Exponents],Object=Description\"/>\n"
369  " </Header>\n"
370  " <Footer>\n"
371  " <Object cn=\"String=&#x0a;\"/>\n"
372  " <Object cn=\"CN=Root,Vector=TaskList[Lyapunov Exponents],Object=Result\"/>\n"
373  " </Footer>\n"
374  " </Report>\n"
375  " <Report key=\"Report_0\" name=\"Sensitivities\" taskType=\"sensitivities\" separator=\"&#x09;\" precision=\"6\">\n"
376  " <Comment>\n"
377  " <body xmlns=\"http://www.w3.org/1999/xhtml\">\n"
378  " Automatically generated report.\n"
379  " </body>\n"
380  " </Comment>\n"
381  " <Header>\n"
382  " <Object cn=\"CN=Root,Vector=TaskList[Sensitivities],Object=Description\"/>\n"
383  " </Header>\n"
384  " <Footer>\n"
385  " <Object cn=\"String=&#x0a;\"/>\n"
386  " <Object cn=\"CN=Root,Vector=TaskList[Sensitivities],Object=Result\"/>\n"
387  " </Footer>\n"
388  " </Report>\n"
389  " </ListOfReports>\n"
390  " <GUI>\n"
391  " </GUI>\n"
392  "</COPASI>\n"
393  ;
SBMLDocument * getCurrentSBMLDocument()
void test_bug988()
Definition: test000051.cpp:49
void tearDown()
Definition: test000051.cpp:44
std::string exportSBMLToString(CProcessReport *pExportHandler, int sbmlLevel, int sbmlVersion)
static const char * MODEL_STRING
Definition: test000051.h:31
bool load_cps_model_from_stream(std::istream &is, CCopasiDataModel &dataModel)
Definition: utilities.cpp:21
static CCopasiDataModel * pCOPASIDATAMODEL
Definition: test000051.h:32
static CCopasiDataModel * addDatamodel()
static void init(int argc, char *argv[], const bool &withGui=false)
void setUp()
Definition: test000051.cpp:36