// This model generated automatically from SBML
// WARNING: Renamed variable _space_R_space__minus_5_minus_Phosphomevalonate to xxx_space_R_space__minus_5_minus_Phosphomevalonate due to JSim namespace restrictions
// WARNING: Renamed variable _space_R_space__minus_Mevalonate to xxx_space_R_space__minus_Mevalonate due to JSim namespace restrictions
// WARNING: Renamed variable _space_S_space__minus_3_minus_Hydroxy_minus_3_minus_methylglutaryl_minus_CoA to xxx_space_S_space__minus_3_minus_Hydroxy_minus_3_minus_methylglutaryl_minus_CoA due to JSim namespace restrictions
// unit definitions
import nsrunit;
unit conversion off;
// SBML property definitions
property sbmlRole=string;
property sbmlName=string;
property sbmlCompartment=string;
// SBML reactions
// R02082: _space_R_space__minus_Mevalonate <=> _space_S_space__minus_3_minus_Hydroxy_minus_3_minus_methylglutaryl_minus_CoA
// R02003: Geranyl_space_diphosphate Isopentenyl_space_diphosphate <=> trans_space_trans_minus_Farnesyl_space_diphosphate
// R01658: Dimethylallyl_space_diphosphate Isopentenyl_space_diphosphate <=> Geranyl_space_diphosphate
// R01123: Isopentenyl_space_diphosphate => Dimethylallyl_space_diphosphate
// R02245: _space_R_space__minus_Mevalonate <=> _space_R_space__minus_5_minus_Phosphomevalonate
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 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_10 = 0 M;
real E2_space_7_space_1_space_36 = 0 M;
real E1_space_1_space_1_space_34 = 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 xxx_space_R_space__minus_5_minus_Phosphomevalonate(time) M;
real xxx_space_R_space__minus_Mevalonate(time) M;
real xxx_space_S_space__minus_3_minus_Hydroxy_minus_3_minus_methylglutaryl_minus_CoA(time) M;
real R02082(time) katal;
extern real R02082.kf;
extern real R02082.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;
real R01123(time) katal;
extern real R01123.kf;
extern real R01123.kb;
real R02245(time) katal;
extern real R02245.kf;
extern real R02245.kb;
// equations
when (time=time.min) Dimethylallyl_space_diphosphate = 0;
(Dimethylallyl_space_diphosphate*uVol):time = -1*R01658 + R01123;
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*R02003 + -1*R01658 + -1*R01123;
when (time=time.min) trans_space_trans_minus_Farnesyl_space_diphosphate = 0;
(trans_space_trans_minus_Farnesyl_space_diphosphate*uVol):time = R02003;
when (time=time.min) xxx_space_R_space__minus_5_minus_Phosphomevalonate = 0;
(xxx_space_R_space__minus_5_minus_Phosphomevalonate*uVol):time = R02245;
when (time=time.min) xxx_space_R_space__minus_Mevalonate = 0;
(xxx_space_R_space__minus_Mevalonate*uVol):time = -1*R02082 + -1*R02245;
when (time=time.min) xxx_space_S_space__minus_3_minus_Hydroxy_minus_3_minus_methylglutaryl_minus_CoA = 0;
(xxx_space_S_space__minus_3_minus_Hydroxy_minus_3_minus_methylglutaryl_minus_CoA*uVol):time = R02082;
R02082 = R02082.kf*_space_R_space__minus_Mevalonate - R02082.kb*_space_S_space__minus_3_minus_Hydroxy_minus_3_minus_methylglutaryl_minus_CoA;
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;
R01123 = R01123.kf*Isopentenyl_space_diphosphate - R01123.kb*Dimethylallyl_space_diphosphate;
R02245 = R02245.kf*_space_R_space__minus_Mevalonate - R02245.kb*_space_R_space__minus_5_minus_Phosphomevalonate;
// variable properties
default.sbmlRole="compartment";
uVol.sbmlRole="compartment";
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_10.sbmlRole="species";
E2_space_5_space_1_space_10.sbmlCompartment="uVol";
E2_space_7_space_1_space_36.sbmlRole="species";
E2_space_7_space_1_space_36.sbmlCompartment="uVol";
E1_space_1_space_1_space_34.sbmlRole="species";
E1_space_1_space_1_space_34.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";
xxx_space_R_space__minus_5_minus_Phosphomevalonate.sbmlRole="species";
xxx_space_R_space__minus_5_minus_Phosphomevalonate.sbmlName="_space_R_space__minus_5_minus_Phosphomevalonate";
xxx_space_R_space__minus_5_minus_Phosphomevalonate.sbmlCompartment="uVol";
xxx_space_R_space__minus_Mevalonate.sbmlRole="species";
xxx_space_R_space__minus_Mevalonate.sbmlName="_space_R_space__minus_Mevalonate";
xxx_space_R_space__minus_Mevalonate.sbmlCompartment="uVol";
xxx_space_S_space__minus_3_minus_Hydroxy_minus_3_minus_methylglutaryl_minus_CoA.sbmlRole="species";
xxx_space_S_space__minus_3_minus_Hydroxy_minus_3_minus_methylglutaryl_minus_CoA.sbmlName="_space_S_space__minus_3_minus_Hydroxy_minus_3_minus_methylglutaryl_minus_CoA";
xxx_space_S_space__minus_3_minus_Hydroxy_minus_3_minus_methylglutaryl_minus_CoA.sbmlCompartment="uVol";
R02082.sbmlRole="rate";
R02082.kf.sbmlRole="rate";
R02082.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";
R01123.sbmlRole="rate";
R01123.kf.sbmlRole="rate";
R01123.kb.sbmlRole="rate";
R02245.sbmlRole="rate";
R02245.kf.sbmlRole="rate";
R02245.kb.sbmlRole="rate";
}