// This model generated automatically from SBML
// unit definitions
import nsrunit;
unit conversion off;
// SBML property definitions
property sbmlRole=string;
property sbmlName=string;
property sbmlCompartment=string;
// SBML reactions
// R01123: Isopentenyl_space_diphosphate => Dimethylallyl_space_diphosphate
// R06223: trans_space_trans_minus_Farnesyl_space_diphosphate <=> Squalene
// R02061: trans_space_trans_minus_Farnesyl_space_diphosphate Isopentenyl_space_diphosphate <=> Geranylgeranyl_space_diphosphate
// R02003: Geranyl_space_diphosphate Isopentenyl_space_diphosphate <=> trans_space_trans_minus_Farnesyl_space_diphosphate
// R01658: Dimethylallyl_space_diphosphate Isopentenyl_space_diphosphate <=> Geranyl_space_diphosphate
math main {
realDomain time second;
time.min=0;
extern time.max;
extern time.delta;
// variable definitions
real default = 1 L;
real uVol = 1 L;
real E2_space_5_space_1_space_29 = 0 M;
real E5_space_3_space_3_space_2 = 0 M;
real E2_space_5_space_1_space_1 = 0 M;
real E2_space_5_space_1_space_21 = 0 M;
real Dimethylallyl_space_diphosphate(time) M;
real Geranyl_space_diphosphate(time) M;
real Isopentenyl_space_diphosphate(time) M;
real trans_space_trans_minus_Farnesyl_space_diphosphate(time) M;
real Squalene(time) M;
real Geranylgeranyl_space_diphosphate(time) M;
real R01123(time) katal;
extern real R01123.kf;
extern real R01123.kb;
real R06223(time) katal;
extern real R06223.kf;
extern real R06223.kb;
real R02061(time) katal;
extern real R02061.kf;
extern real R02061.kb;
real R02003(time) katal;
extern real R02003.kf;
extern real R02003.kb;
real R01658(time) katal;
extern real R01658.kf;
extern real R01658.kb;
// equations
when (time=time.min) Dimethylallyl_space_diphosphate = 0;
(Dimethylallyl_space_diphosphate*uVol):time = R01123 + -1*R01658;
when (time=time.min) Geranyl_space_diphosphate = 0;
(Geranyl_space_diphosphate*uVol):time = -1*R02003 + R01658;
when (time=time.min) Isopentenyl_space_diphosphate = 0;
(Isopentenyl_space_diphosphate*uVol):time = -1*R01123 + -1*R02061 + -1*R02003 + -1*R01658;
when (time=time.min) trans_space_trans_minus_Farnesyl_space_diphosphate = 0;
(trans_space_trans_minus_Farnesyl_space_diphosphate*uVol):time = -1*R06223 + -1*R02061 + R02003;
when (time=time.min) Squalene = 0;
(Squalene*uVol):time = R06223;
when (time=time.min) Geranylgeranyl_space_diphosphate = 0;
(Geranylgeranyl_space_diphosphate*uVol):time = R02061;
R01123 = R01123.kf*Isopentenyl_space_diphosphate - R01123.kb*Dimethylallyl_space_diphosphate;
R06223 = R06223.kf*trans_space_trans_minus_Farnesyl_space_diphosphate - R06223.kb*Squalene;
R02061 = R02061.kf*trans_space_trans_minus_Farnesyl_space_diphosphate*Isopentenyl_space_diphosphate - R02061.kb*Geranylgeranyl_space_diphosphate;
R02003 = R02003.kf*Geranyl_space_diphosphate*Isopentenyl_space_diphosphate - R02003.kb*trans_space_trans_minus_Farnesyl_space_diphosphate;
R01658 = R01658.kf*Dimethylallyl_space_diphosphate*Isopentenyl_space_diphosphate - R01658.kb*Geranyl_space_diphosphate;
// variable properties
default.sbmlRole="compartment";
uVol.sbmlRole="compartment";
E2_space_5_space_1_space_29.sbmlRole="species";
E2_space_5_space_1_space_29.sbmlCompartment="uVol";
E5_space_3_space_3_space_2.sbmlRole="species";
E5_space_3_space_3_space_2.sbmlCompartment="uVol";
E2_space_5_space_1_space_1.sbmlRole="species";
E2_space_5_space_1_space_1.sbmlCompartment="uVol";
E2_space_5_space_1_space_21.sbmlRole="species";
E2_space_5_space_1_space_21.sbmlCompartment="uVol";
Dimethylallyl_space_diphosphate.sbmlRole="species";
Dimethylallyl_space_diphosphate.sbmlCompartment="uVol";
Geranyl_space_diphosphate.sbmlRole="species";
Geranyl_space_diphosphate.sbmlCompartment="uVol";
Isopentenyl_space_diphosphate.sbmlRole="species";
Isopentenyl_space_diphosphate.sbmlCompartment="uVol";
trans_space_trans_minus_Farnesyl_space_diphosphate.sbmlRole="species";
trans_space_trans_minus_Farnesyl_space_diphosphate.sbmlCompartment="uVol";
Squalene.sbmlRole="species";
Squalene.sbmlCompartment="uVol";
Geranylgeranyl_space_diphosphate.sbmlRole="species";
Geranylgeranyl_space_diphosphate.sbmlCompartment="uVol";
R01123.sbmlRole="rate";
R01123.kf.sbmlRole="rate";
R01123.kb.sbmlRole="rate";
R06223.sbmlRole="rate";
R06223.kf.sbmlRole="rate";
R06223.kb.sbmlRole="rate";
R02061.sbmlRole="rate";
R02061.kf.sbmlRole="rate";
R02061.kb.sbmlRole="rate";
R02003.sbmlRole="rate";
R02003.kf.sbmlRole="rate";
R02003.kb.sbmlRole="rate";
R01658.sbmlRole="rate";
R01658.kf.sbmlRole="rate";
R01658.kb.sbmlRole="rate";
}