 %  DOQCS : http://doqcs.ncbs.res.in/ 
 %  Accession Name = MAPK_network_2003 
 %  Accession Number = 50 
 %  Transcriber = Upinder S. Bhalla, NCBS 
 %  Developer = Upinder S. Bhalla, NCBS 
 %  Species = Generic mammalian 
 %  Tissue = Brain - Neuronal 
 %  Cell Compartment = Synapse 
 %  Notes =  This is a network model of many pathways present at the neuronal synapse. The network has properties of temporal tuning as well as steady-state computational properties. In its default form the network is bistable.<a href="http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrieve&db=pubmed&dopt=Abstract&list_uids=15298883&query_hl=11">Bhalla US Biophys J. 2004 Aug;87(2):745-53</a> 
 
   % Note: All the concentrations are in micro Mole (uM)

function moose_convert
%Matlab simulation for chemical kinetics

% Saved on Wed Feb  2 16:59:35 2005

% Automatically generated from kkit model in MOOSE by conv_matlab

global buff;
tspan=[0, 250];
% Molecule names
molnames = {
'1 /kinetics/PKC/PKC-Ca'
'2 /kinetics/PKC/PKC-DAG-AA*'
'3 /kinetics/PKC/PKC-Ca-AA*'
'4 /kinetics/PKC/PKC-Ca-memb*'
'5 /kinetics/PKC/PKC-DAG-memb*'
'6 /kinetics/PKC/PKC-basal*'
'7 /kinetics/PKC/PKC-AA*'
'8 /kinetics/PKC/PKC-Ca-DAG'
'9 /kinetics/PKC/PKC-DAG'
'10 /kinetics/PKC/PKC-DAG-AA'
'11 /kinetics/PKC/PKC-cytosolic'
'12 /kinetics/DAG'
'13 /kinetics/AA'
'14 /kinetics/PKC-active/PKC-act-raf/PKC-act-raf_cplx'
'15 /kinetics/PKC-active/PKC-inact-GAP/PKC-inact-GAP_cplx'
'16 /kinetics/PKC-active/PKC-act-GEF/PKC-act-GEF_cplx'
'17 /kinetics/PKC-active/PKC-phosph-neurogranin/PKC-phosph-neurogranin_cplx'
'18 /kinetics/PKC-active/PKC-phosph-ng-CaM/PKC-phosph-ng-CaM_cplx'
'19 /kinetics/PKC-active/phosph-AC2/phosph-AC2_cplx'
'20 /kinetics/PLA2/PLA2-cytosolic'
'21 /kinetics/PLA2/PLA2-Ca*'
'22 /kinetics/PLA2/PLA2-Ca*/kenz/kenz_cplx'
'23 /kinetics/PLA2/PIP2-PLA2*'
'24 /kinetics/PLA2/PIP2-PLA2*/kenz/kenz_cplx'
'25 /kinetics/PLA2/PIP2-Ca-PLA2*'
'26 /kinetics/PLA2/PIP2-Ca-PLA2*/kenz/kenz_cplx'
'27 /kinetics/PLA2/DAG-Ca-PLA2*'
'28 /kinetics/PLA2/DAG-Ca-PLA2*/kenz/kenz_cplx'
'29 /kinetics/PLA2/PLA2*-Ca'
'30 /kinetics/PLA2/PLA2*-Ca/kenz/kenz_cplx'
'31 /kinetics/PLA2/PLA2*'
'32 /kinetics/MAPK*'
'33 /kinetics/MAPK*/MAPK*/MAPK*_cplx'
'34 /kinetics/MAPK*/MAPK*-feedback/MAPK*-feedback_cplx'
'35 /kinetics/MAPK*/phosph_Sos/phosph_Sos_cplx'
'36 /kinetics/IP3'
'37 /kinetics/PLCbeta/PLC'
'38 /kinetics/PLCbeta/PLC-Ca'
'39 /kinetics/PLCbeta/PLC-Ca/PLC-Ca/PLC-Ca_cplx'
'40 /kinetics/PLCbeta/PLC-Ca-Gq'
'41 /kinetics/PLCbeta/PLC-Ca-Gq/PLCb-Ca-Gq/PLCb-Ca-Gq_cplx'
'42 /kinetics/PLCbeta/PLC-Gq'
'43 /kinetics/BetaGamma'
'44 /kinetics/G*GTP'
'45 /kinetics/G*GDP'
'46 /kinetics/Gq/G-GDP'
'47 /kinetics/Gq/mGluR'
'48 /kinetics/Gq/Rec-Glu'
'49 /kinetics/Gq/Rec-Gq'
'50 /kinetics/Gq/Rec-Glu-Gq'
'51 /kinetics/Gq/Blocked-rec-Gq'
'52 /kinetics/MAPK/craf-1'
'53 /kinetics/MAPK/craf-1*'
'54 /kinetics/MAPK/MAPKK'
'55 /kinetics/MAPK/MAPK'
'56 /kinetics/MAPK/craf-1**'
'57 /kinetics/MAPK/MAPK-tyr'
'58 /kinetics/MAPK/MAPKK*'
'59 /kinetics/MAPK/MAPKK*/MAPKKtyr/MAPKKtyr_cplx'
'60 /kinetics/MAPK/MAPKK*/MAPKKthr/MAPKKthr_cplx'
'61 /kinetics/MAPK/MAPKK-ser'
'62 /kinetics/MAPK/Raf-GTP-Ras*'
'63 /kinetics/MAPK/Raf-GTP-Ras*/Raf-GTP-Ras*.1/Raf-GTP-Ras*.1_cplx'
'64 /kinetics/MAPK/Raf-GTP-Ras*/Raf-GTP-Ras*.2/Raf-GTP-Ras*.2_cplx'
'65 /kinetics/MKP-1'
'66 /kinetics/MKP-1/MKP1-tyr-deph/MKP1-tyr-deph_cplx'
'67 /kinetics/MKP-1/MKP1-thr-deph/MKP1-thr-deph_cplx'
'68 /kinetics/PPhosphatase2A'
'69 /kinetics/PPhosphatase2A/craf-deph/craf-deph_cplx'
'70 /kinetics/PPhosphatase2A/MAPKK-deph/MAPKK-deph_cplx'
'71 /kinetics/PPhosphatase2A/MAPKK-deph-ser/MAPKK-deph-ser_cplx'
'72 /kinetics/PPhosphatase2A/craf**-deph/craf**-deph_cplx'
'73 /kinetics/Ras/GEF-Gprot-bg'
'74 /kinetics/Ras/GEF-Gprot-bg/GEF-bg_act-ras/GEF-bg_act-ras_cplx'
'75 /kinetics/Ras/inact-GEF'
'76 /kinetics/Ras/GEF*'
'77 /kinetics/Ras/GEF*/GEF*-act-ras/GEF*-act-ras_cplx'
'78 /kinetics/Ras/GTP-Ras'
'79 /kinetics/Ras/GDP-Ras'
'80 /kinetics/Ras/GAP*'
'81 /kinetics/Ras/GAP'
'82 /kinetics/Ras/GAP/GAP-inact-ras/GAP-inact-ras_cplx'
'83 /kinetics/Ras/inact-GEF*'
'84 /kinetics/Ras/CaM-GEF'
'85 /kinetics/Ras/CaM-GEF/CaM-GEF-act-ras/CaM-GEF-act-ras_cplx'
'86 /kinetics/PKA-active'
'87 /kinetics/PKA-active/PKA-phosph-GEF/PKA-phosph-GEF_cplx'
'88 /kinetics/PKA-active/PKA-phosph-I1/PKA-phosph-I1_cplx'
'89 /kinetics/PKA-active/phosph-PDE/phosph-PDE_cplx'
'90 /kinetics/CaM-Ca4'
'91 /kinetics/Shc*.Sos.Grb2'
'92 /kinetics/Shc*.Sos.Grb2/Sos.Ras_GEF/Sos.Ras_GEF_cplx'
'93 /kinetics/EGFR/EGFR'
'94 /kinetics/EGFR/L.EGFR'
'95 /kinetics/EGFR/L.EGFR/phosph_PLC_g/phosph_PLC_g_cplx'
'96 /kinetics/EGFR/L.EGFR/phosph_Shc/phosph_Shc_cplx'
'97 /kinetics/EGFR/SHC'
'98 /kinetics/EGFR/SHC*'
'99 /kinetics/EGFR/Internal_L.EGFR'
'100 /kinetics/Sos/Sos*.Grb2'
'101 /kinetics/Sos/Grb2'
'102 /kinetics/Sos/Sos.Grb2'
'103 /kinetics/Sos/Sos*'
'104 /kinetics/Sos/Sos'
'105 /kinetics/PLC_g/PLC_g'
'106 /kinetics/PLC_g/PLC_G*'
'107 /kinetics/PLC_g/Ca.PLC_g'
'108 /kinetics/PLC_g/Ca.PLC_g*'
'109 /kinetics/CaMKII/CaMKII'
'110 /kinetics/CaMKII/CaMKII-CaM'
'111 /kinetics/CaMKII/CaMKII-thr286*-CaM'
'112 /kinetics/CaMKII/CaMKII***'
'113 /kinetics/CaMKII/CaMKII-thr286'
'114 /kinetics/CaMKII/CaMK-thr306'
'115 /kinetics/CaMKII/tot_CaM_CaMKII/CaM_act_305/CaM_act_305_cplx'
'116 /kinetics/CaMKII/tot_CaM_CaMKII/CaM_act_286/CaM_act_286_cplx'
'117 /kinetics/CaMKII/tot_autonomous_CaMKII/auton_305/auton_305_cplx'
'118 /kinetics/CaMKII/tot_autonomous_CaMKII/auton_286/auton_286_cplx'
'119 /kinetics/PP1-active'
'120 /kinetics/PP1-active/Deph-thr286/Deph-thr286_cplx'
'121 /kinetics/PP1-active/Deph-thr305/Deph-thr305_cplx'
'122 /kinetics/PP1-active/Deph-thr306/Deph-thr306_cplx'
'123 /kinetics/PP1-active/Deph-thr286c/Deph-thr286c_cplx'
'124 /kinetics/PP1-active/Deph_thr286b/Deph_thr286b_cplx'
'125 /kinetics/CaM/CaM'
'126 /kinetics/CaM/neurogranin-CaM'
'127 /kinetics/CaM/neurogranin*'
'128 /kinetics/CaM/neurogranin'
'129 /kinetics/CaM-Ca3'
'130 /kinetics/CaM-TR2-Ca2'
'131 /kinetics/CaM(Ca)n-CaNAB/dephosph_neurogranin/dephosph_neurogranin_cplx'
'132 /kinetics/CaM(Ca)n-CaNAB/dephosph_inhib1/dephosph_inhib1_cplx'
'133 /kinetics/CaM(Ca)n-CaNAB/dephosph-PP1-I*/dephosph-PP1-I*_cplx'
'134 /kinetics/PP1/I1'
'135 /kinetics/PP1/I1*'
'136 /kinetics/PP1/PP1-I1*'
'137 /kinetics/PP1/PP1-I1'
'138 /kinetics/PP2A'
'139 /kinetics/PP2A/PP2A-dephosph-I1/PP2A-dephosph-I1_cplx'
'140 /kinetics/PP2A/PP2A-dephosph-PP1-I*/PP2A-dephosph-PP1-I*_cplx'
'141 /kinetics/CaNAB-Ca4'
'142 /kinetics/CaNAB-Ca4/dephosph_inhib1_noCaM/dephosph_inhib1_noCaM_cplx'
'143 /kinetics/PP2B/CaNAB'
'144 /kinetics/PP2B/CaNAB-Ca2'
'145 /kinetics/PP2B/CaMCa3-CaNAB'
'146 /kinetics/PP2B/CaMCa2-CANAB'
'147 /kinetics/PP2B/CaMCa4-CaNAB'
'148 /kinetics/PKA/R2C2'
'149 /kinetics/PKA/R2C2-cAMP'
'150 /kinetics/PKA/R2C2-cAMP2'
'151 /kinetics/PKA/R2C2-cAMP3'
'152 /kinetics/PKA/R2C2-cAMP4'
'153 /kinetics/PKA/R2C-cAMP4'
'154 /kinetics/PKA/R2-cAMP4'
'155 /kinetics/PKA/PKA-inhibitor'
'156 /kinetics/PKA/inhibited-PKA'
'157 /kinetics/cAMP'
'158 /kinetics/AC/AC1-CaM'
'159 /kinetics/AC/AC1'
'160 /kinetics/AC/AC2*'
'161 /kinetics/AC/AC2-Gs'
'162 /kinetics/AC/AC2'
'163 /kinetics/AC/AC1-Gs'
'164 /kinetics/AC/AMP'
'165 /kinetics/AC/AC2*-Gs'
'166 /kinetics/AC/cAMP-PDE'
'167 /kinetics/AC/cAMP-PDE/PDE/PDE_cplx'
'168 /kinetics/AC/cAMP-PDE*'
'169 /kinetics/AC/cAMP-PDE*/PDE*/PDE*_cplx'
'170 /kinetics/AC/PDE1'
'171 /kinetics/AC/PDE1/PDE1/PDE1_cplx'
'172 /kinetics/AC/CaM.PDE1'
'173 /kinetics/AC/CaM.PDE1/CaM.PDE1/CaM.PDE1_cplx'
'174 /kinetics/Gs-alpha'
};

bufnames = {
'1 /kinetics/PLA2/APC'
'2 /kinetics/temp-PIP2'
'3 /kinetics/Glu'
'4 /kinetics/PLCbeta/Inositol'
'5 /kinetics/PLCbeta/PC'
'6 /kinetics/PIP2'
'7 /kinetics/Gq/mGluRAntag'
'8 /kinetics/EGFR/EGF'
'9 /kinetics/AC/ATP'
'10 /kinetics/Ca'
};

sumtotnames = {
'1 /kinetics/PKC-active'
'2 /kinetics/CaMKII/tot_CaM_CaMKII'
'3 /kinetics/CaMKII/tot_autonomous_CaMKII'
'4 /kinetics/CaM(Ca)n-CaNAB'
};

% Initial concs of 174 molecules
y0(1) = 3.72083e-17;
y0(2) = 4.91367e-18;
y0(3) = 1.75e-16;
y0(4) = 1.3896e-17;
y0(5) = 9.43517e-21;
y0(6) = 0;
y0(7) = 1.81333e-17;
y0(8) = 8.46317e-23;
y0(9) = 1.16102e-16;
y0(10) = 2.51883e-19;
y0(11) = 1;
y0(12) = 0;
y0(13) = 0;
y0(14) = 0;
y0(15) = 0;
y0(16) = 0;
y0(17) = 0;
y0(18) = 0;
y0(19) = 0;
y0(20) = 0.4;
y0(21) = 0;
y0(22) = 0;
y0(23) = 0;
y0(24) = 0;
y0(25) = 0;
y0(26) = 0;
y0(27) = 0;
y0(28) = 0;
y0(29) = 0;
y0(30) = 0;
y0(31) = 0;
y0(32) = 0;
y0(33) = 0;
y0(34) = 0;
y0(35) = 0;
y0(36) = 0.73;
y0(37) = 0.8;
y0(38) = 0;
y0(39) = 0;
y0(40) = 0;
y0(41) = 0;
y0(42) = 0;
y0(43) = 0;
y0(44) = 0;
y0(45) = 0;
y0(46) = 1;
y0(47) = 0.3;
y0(48) = 0;
y0(49) = 0;
y0(50) = 0;
y0(51) = 0;
y0(52) = 0.2;
y0(53) = 0;
y0(54) = 0.18;
y0(55) = 0.36;
y0(56) = 0;
y0(57) = 0;
y0(58) = 0;
y0(59) = 0;
y0(60) = 0;
y0(61) = 0;
y0(62) = 0;
y0(63) = 0;
y0(64) = 0;
y0(65) = 0.0024;
y0(66) = 0;
y0(67) = 0;
y0(68) = 0.224;
y0(69) = 0;
y0(70) = 0;
y0(71) = 0;
y0(72) = 0;
y0(73) = 0;
y0(74) = 0;
y0(75) = 0.1;
y0(76) = 0;
y0(77) = 0;
y0(78) = 0;
y0(79) = 0.2;
y0(80) = 0;
y0(81) = 0.002;
y0(82) = 0;
y0(83) = 0;
y0(84) = 0;
y0(85) = 0;
y0(86) = 0;
y0(87) = 0;
y0(88) = 0;
y0(89) = 0;
y0(90) = 0;
y0(91) = 0;
y0(92) = 0;
y0(93) = 0.166667;
y0(94) = 0;
y0(95) = 0;
y0(96) = 0;
y0(97) = 0.5;
y0(98) = 0;
y0(99) = 0;
y0(100) = 0;
y0(101) = 1;
y0(102) = 0;
y0(103) = 0;
y0(104) = 0.1;
y0(105) = 0.82;
y0(106) = 0;
y0(107) = 0;
y0(108) = 0;
y0(109) = 70;
y0(110) = 0;
y0(111) = 0;
y0(112) = 0;
y0(113) = 0;
y0(114) = 0;
y0(115) = 0;
y0(116) = 0;
y0(117) = 0;
y0(118) = 0;
y0(119) = 1.8;
y0(120) = 0;
y0(121) = 0;
y0(122) = 0;
y0(123) = 0;
y0(124) = 0;
y0(125) = 20;
y0(126) = 0;
y0(127) = 0;
y0(128) = 10;
y0(129) = 0;
y0(130) = 0;
y0(131) = 0;
y0(132) = 0;
y0(133) = 0;
y0(134) = 1.8;
y0(135) = 0.001;
y0(136) = 0;
y0(137) = 0;
y0(138) = 0.12;
y0(139) = 0;
y0(140) = 0;
y0(141) = 0;
y0(142) = 0;
y0(143) = 1;
y0(144) = 0;
y0(145) = 0;
y0(146) = 0;
y0(147) = 0;
y0(148) = 0.5;
y0(149) = 0;
y0(150) = 0;
y0(151) = 0;
y0(152) = 0;
y0(153) = 0;
y0(154) = 0;
y0(155) = 0.25;
y0(156) = 0;
y0(157) = 0;
y0(158) = 0;
y0(159) = 0.02;
y0(160) = 0;
y0(161) = 0;
y0(162) = 0.015;
y0(163) = 0;
y0(164) = 325490;
y0(165) = 0;
y0(166) = 0.45;
y0(167) = 0;
y0(168) = 0;
y0(169) = 0;
y0(170) = 2;
y0(171) = 0;
y0(172) = 0;
y0(173) = 0;
y0(174) = 0;
buff(1) = 30;
buff(2) = 2.5;
buff(3) = 0;
buff(4) = 0;
buff(5) = 0;
buff(6) = 10;
buff(7) = 0;
buff(8) = 0;
buff(9) = 5000;
buff(10) = 0.08;
% Sumtotal eqn for /kinetics/PKC-active: sumtot(1) =  (y(2) + y(4) + y(3) + y(5) + y(6) + y(7) )
% Sumtotal eqn for /kinetics/CaMKII/tot_CaM_CaMKII: sumtot(2) =  (y(110) + y(111) )
% Sumtotal eqn for /kinetics/CaMKII/tot_autonomous_CaMKII: sumtot(3) =  (y(113) + y(112) )
% Sumtotal eqn for /kinetics/CaM(Ca)n-CaNAB: sumtot(4) =  (y(147) + y(145) + y(146) )
% Call the ODE solver and display results
[t, y] = ode23s(@f, tspan, y0);

hold on;
plot(t,y(:,32));
% Evaluation function
function dydt = f(t, y)
global buff;
dydt = [
 + 0.6 * y(11) * buff(10) - 0.5 * y(1) - 0.0079998 * y(12) * y(1) + 8.6348 * y(8) - 1.2705 * y(1) + 3.5026 * y(4) - 0.0012 * y(1) * y(13) + 0.1 * y(3)
 + 2 * y(10) - 0.2 * y(2)
 + 0.0012 * y(1) * y(13) - 0.1 * y(3)
 + 1.2705 * y(1) - 3.5026 * y(4)
 + 1 * y(8) - 0.1 * y(5)
 + 1 * y(11) - 50 * y(6)
 + 0.00012 * y(13) * y(11) - 0.1 * y(7)
 + 0.0079998 * y(12) * y(1) - 8.6348 * y(8) - 1 * y(8) + 0.1 * y(5)
 + 0.0006 * y(11) * y(12) - 0.1 * y(9) - 0.018 * y(9) * y(13) + 2 * y(10)
 + 0.018 * y(9) * y(13) - 2 * y(10) - 2 * y(10) + 0.2 * y(2)
 - 0.6 * y(11) * buff(10) + 0.5 * y(1) - 1 * y(11) + 50 * y(6) - 0.00012 * y(13) * y(11) + 0.1 * y(7) - 0.0006 * y(11) * y(12) + 0.1 * y(9)
 - 0.0079998 * y(12) * y(1) + 8.6348 * y(8) - 0.0006 * y(11) * y(12) + 0.1 * y(9) - 0.003 * y(12) * y(21) + 4 * y(27) + 48 * y(41) - 0.15 * y(12) + 10 * y(39) + 8.4e+06 * y(107) * buff(6) / ( 5.83333e+07 + buff(6) ) + 3.42e+07 * y(108) * buff(6) / ( 1.1875e+07 + buff(6) )
 - 0.0012 * y(1) * y(13) + 0.1 * y(3) - 0.00012 * y(13) * y(11) + 0.1 * y(7) - 0.018 * y(9) * y(13) + 2 * y(10) + 5.4 * y(22) + 11.04 * y(24) + 36 * y(26) + 60 * y(28) + 120 * y(30) - 0.4 * y(13)
 + 0.3 * y(52) *  (y(2) + y(4) + y(3) + y(5) + y(6) + y(7) ) - 16 * y(14) - 4 * y(14)
 + 6 * y(81) *  (y(2) + y(4) + y(3) + y(5) + y(6) + y(7) ) - 16 * y(15) - 4 * y(15)
 + 6 * y(75) *  (y(2) + y(4) + y(3) + y(5) + y(6) + y(7) ) - 16 * y(16) - 4 * y(16)
 + 0.102 * y(128) *  (y(2) + y(4) + y(3) + y(5) + y(6) + y(7) ) - 2.34 * y(17) - 0.58 * y(17)
 + 0.0612 * y(126) *  (y(2) + y(4) + y(3) + y(5) + y(6) + y(7) ) - 1.4 * y(18) - 0.35 * y(18)
 + 0.6 * y(162) *  (y(2) + y(4) + y(3) + y(5) + y(6) + y(7) ) - 16 * y(19) - 4 * y(19)
 - 1.00002 * y(20) * buff(10) + 0.1 * y(21) - 0.0012 * buff(2) * y(20) + 0.5 * y(23) - 3.9 * y(20) * y(32) + 80 * y(33) + 0.17 * y(31)
 + 1.00002 * y(20) * buff(10) - 0.1 * y(21) - 1.35 * buff(1) * y(21) + 21.6 * y(22) + 5.4 * y(22) - 0.012 * buff(2) * y(21) + 0.1 * y(25) - 0.003 * y(12) * y(21) + 4 * y(27)
 + 1.35 * buff(1) * y(21) - 21.6 * y(22) - 5.4 * y(22)
 + 0.0012 * buff(2) * y(20) - 0.5 * y(23) - 2.76 * buff(1) * y(23) + 44.16 * y(24) + 11.04 * y(24)
 + 2.76 * buff(1) * y(23) - 44.16 * y(24) - 11.04 * y(24)
 + 0.012 * buff(2) * y(21) - 0.1 * y(25) - 9 * buff(1) * y(25) + 144 * y(26) + 36 * y(26)
 + 9 * buff(1) * y(25) - 144 * y(26) - 36 * y(26)
 + 0.003 * y(12) * y(21) - 4 * y(27) - 15 * buff(1) * y(27) + 240 * y(28) + 60 * y(28)
 + 15 * buff(1) * y(27) - 240 * y(28) - 60 * y(28)
 - 30 * buff(1) * y(29) + 480 * y(30) + 120 * y(30) + 6 * y(31) * buff(10) - 0.1 * y(29)
 + 30 * buff(1) * y(29) - 480 * y(30) - 120 * y(30)
 + 20 * y(33) - 6 * y(31) * buff(10) + 0.1 * y(29) - 0.17 * y(31)
 - 3.9 * y(20) * y(32) + 80 * y(33) + 20 * y(33) - 1.95 * y(53) * y(32) + 40 * y(34) + 10 * y(34) + 0.15 * y(60) - 75 * y(32) * y(65) + 4 * y(67) - 19.5 * y(104) * y(32) + 40 * y(35) + 10 * y(35)
 + 3.9 * y(20) * y(32) - 80 * y(33) - 20 * y(33)
 + 1.95 * y(53) * y(32) - 40 * y(34) - 10 * y(34)
 + 19.5 * y(104) * y(32) - 40 * y(35) - 10 * y(35)
 + 48 * y(41) - 2.5 * y(36) + 10 * y(39) + 8.4e+06 * y(107) * buff(6) / ( 5.83333e+07 + buff(6) ) + 3.42e+07 * y(108) * buff(6) / ( 1.1875e+07 + buff(6) )
 - 3 * buff(10) * y(37) + 1 * y(38) - 2.52 * y(37) * y(44) + 1 * y(42)
 + 3 * buff(10) * y(37) - 1 * y(38) - 25.2 * y(44) * y(38) + 1 * y(40) + 0.0133 * y(40) - 2.52 * buff(6) * y(38) + 40 * y(39) + 10 * y(39)
 + 2.52 * buff(6) * y(38) - 40 * y(39) - 10 * y(39)
 - 48 * buff(6) * y(40) + 192 * y(41) + 48 * y(41) + 25.2 * y(44) * y(38) - 1 * y(40) - 0.0133 * y(40) + 30 * buff(10) * y(42) - 1 * y(40)
 + 48 * buff(6) * y(40) - 192 * y(41) - 48 * y(41)
 + 2.52 * y(37) * y(44) - 1 * y(42) - 30 * buff(10) * y(42) + 1 * y(40)
 - 6 * y(45) * y(43) + 0.0001 * y(46) + 0.01 * y(50) - 6 * y(43) * y(75) + 1 * y(73)
 - 25.2 * y(44) * y(38) + 1 * y(40) - 2.52 * y(37) * y(44) + 1 * y(42) - 0.0133 * y(44) + 0.0001 * y(46) + 0.01 * y(50)
 + 0.0133 * y(40) + 0.0133 * y(44) - 6 * y(45) * y(43)
 + 6 * y(45) * y(43) - 0.0001 * y(46) - 0.006 * y(46) * y(48) + 0.0001 * y(50) - 0.6 * y(46) * y(47) + 1 * y(49)
 - 16.8 * y(47) * buff(3) + 10 * y(48) - 0.6 * y(46) * y(47) + 1 * y(49)
 + 16.8 * y(47) * buff(3) - 10 * y(48) - 0.006 * y(46) * y(48) + 0.0001 * y(50) + 0.01 * y(50)
 - 16.8 * buff(3) * y(49) + 0.1 * y(50) + 0.6 * y(46) * y(47) - 1 * y(49) - 60 * y(49) * buff(7) + 0.01 * y(51)
 + 0.006 * y(46) * y(48) - 0.0001 * y(50) + 16.8 * buff(3) * y(49) - 0.1 * y(50) - 0.01 * y(50)
 + 60 * y(49) * buff(7) - 0.01 * y(51)
 - 0.3 * y(52) *  (y(2) + y(4) + y(3) + y(5) + y(6) + y(7) ) + 16 * y(14) + 6 * y(69)
 + 4 * y(14) - 1.95 * y(53) * y(32) + 40 * y(34) - 1.98 * y(53) * y(68) + 25 * y(69) + 6 * y(72) - 24 * y(53) * y(78) + 0.5 * y(62)
 + 6 * y(71) - 3.3 * y(54) * y(62) + 0.42 * y(63)
 - 16.2 * y(55) * y(58) + 0.6 * y(59) + 1 * y(66)
 + 10 * y(34) - 1.98 * y(56) * y(68) + 25 * y(72)
 + 0.15 * y(59) - 16.2 * y(57) * y(58) + 0.6 * y(60) - 75 * y(57) * y(65) + 4 * y(66) + 1 * y(67)
 - 16.2 * y(55) * y(58) + 0.6 * y(59) + 0.15 * y(59) - 16.2 * y(57) * y(58) + 0.6 * y(60) + 0.15 * y(60) - 1.98 * y(58) * y(68) + 25 * y(70) + 0.105 * y(64)
 + 16.2 * y(55) * y(58) - 0.6 * y(59) - 0.15 * y(59)
 + 16.2 * y(57) * y(58) - 0.6 * y(60) - 0.15 * y(60)
 + 6 * y(70) - 1.98 * y(61) * y(68) + 25 * y(71) + 0.105 * y(63) - 3.3 * y(61) * y(62) + 0.42 * y(64)
 + 24 * y(53) * y(78) - 0.5 * y(62) - 3.3 * y(54) * y(62) + 0.42 * y(63) + 0.105 * y(63) - 3.3 * y(61) * y(62) + 0.42 * y(64) + 0.105 * y(64)
 + 3.3 * y(54) * y(62) - 0.42 * y(63) - 0.105 * y(63)
 + 3.3 * y(61) * y(62) - 0.42 * y(64) - 0.105 * y(64)
 - 75 * y(57) * y(65) + 4 * y(66) + 1 * y(66) - 75 * y(32) * y(65) + 4 * y(67) + 1 * y(67)
 + 75 * y(57) * y(65) - 4 * y(66) - 1 * y(66)
 + 75 * y(32) * y(65) - 4 * y(67) - 1 * y(67)
 - 1.98 * y(53) * y(68) + 25 * y(69) + 6 * y(69) - 1.98 * y(58) * y(68) + 25 * y(70) + 6 * y(70) - 1.98 * y(61) * y(68) + 25 * y(71) + 6 * y(71) - 1.98 * y(56) * y(68) + 25 * y(72) + 6 * y(72)
 + 1.98 * y(53) * y(68) - 25 * y(69) - 6 * y(69)
 + 1.98 * y(58) * y(68) - 25 * y(70) - 6 * y(70)
 + 1.98 * y(61) * y(68) - 25 * y(71) - 6 * y(71)
 + 1.98 * y(56) * y(68) - 25 * y(72) - 6 * y(72)
 - 0.198 * y(79) * y(73) + 0.08 * y(74) + 0.02 * y(74) + 6 * y(43) * y(75) - 1 * y(73)
 + 0.198 * y(79) * y(73) - 0.08 * y(74) - 0.02 * y(74)
 - 6 * y(43) * y(75) + 1 * y(73) - 6 * y(75) *  (y(2) + y(4) + y(3) + y(5) + y(6) + y(7) ) + 16 * y(16) + 1 * y(76) - 6 * y(75) * y(86) + 36 * y(87) - 60 * y(75) * y(90) + 1 * y(84) + 1 * y(83)
 + 4 * y(16) - 1 * y(76) - 0.198 * y(79) * y(76) + 0.08 * y(77) + 0.02 * y(77)
 + 0.198 * y(79) * y(76) - 0.08 * y(77) - 0.02 * y(77)
 + 0.02 * y(74) - 49.4856 * y(78) * y(81) + 40 * y(82) - 0.0001 * y(78) + 0.02 * y(77) + 0.02 * y(85) - 24 * y(53) * y(78) + 0.5 * y(62) + 0.02 * y(92)
 - 0.198 * y(79) * y(73) + 0.08 * y(74) + 10 * y(82) + 0.0001 * y(78) - 0.198 * y(79) * y(76) + 0.08 * y(77) - 0.198 * y(79) * y(84) + 0.08 * y(85) - 0.198 * y(79) * y(91) + 0.08 * y(92)
 + 4 * y(15) - 0.1 * y(80)
 - 49.4856 * y(78) * y(81) + 40 * y(82) + 10 * y(82) - 6 * y(81) *  (y(2) + y(4) + y(3) + y(5) + y(6) + y(7) ) + 16 * y(15) + 0.1 * y(80)
 + 49.4856 * y(78) * y(81) - 40 * y(82) - 10 * y(82)
 + 9 * y(87) - 1 * y(83)
 + 60 * y(75) * y(90) - 1 * y(84) - 0.198 * y(79) * y(84) + 0.08 * y(85) + 0.02 * y(85)
 + 0.198 * y(79) * y(84) - 0.08 * y(85) - 0.02 * y(85)
 - 6 * y(75) * y(86) + 36 * y(87) + 9 * y(87) - 6 * y(134) * y(86) + 36 * y(88) + 9 * y(88) + 60 * y(152) - 18 * y(86) * y(153) + 60 * y(153) - 18 * y(86) * y(154) - 60 * y(86) * y(155) + 1 * y(156) - 6 * y(166) * y(86) + 36 * y(89) + 9 * y(89)
 + 6 * y(75) * y(86) - 36 * y(87) - 9 * y(87)
 + 6 * y(134) * y(86) - 36 * y(88) - 9 * y(88)
 + 6 * y(166) * y(86) - 36 * y(89) - 9 * y(89)
 - 60 * y(75) * y(90) + 1 * y(84) - 49.9998 * y(90) * y(109) + 5 * y(110) - 1000.2 * y(113) * y(90) + 0.1 * y(111) + 0.465 * y(129) * buff(10) - 10 * y(90) - 600 * y(90) * y(141) + 1 * y(147) - 49.9998 * y(90) * y(159) + 1 * y(158) - 720 * y(170) * y(90) + 5 * y(172)
 + 0.49998 * y(102) * y(98) - 0.1 * y(91) - 0.198 * y(79) * y(91) + 0.08 * y(92) + 0.02 * y(92)
 + 0.198 * y(79) * y(91) - 0.08 * y(92) - 0.02 * y(92)
 - 4.2 * y(93) * buff(8) + 0.25 * y(94)
 + 4.2 * y(93) * buff(8) - 0.25 * y(94) - 3 * y(107) * y(94) + 0.8 * y(95) + 0.2 * y(95) - 1.2 * y(97) * y(94) + 0.8 * y(96) + 0.2 * y(96) - 0.002 * y(94) + 0.00033 * y(99)
 + 3 * y(107) * y(94) - 0.8 * y(95) - 0.2 * y(95)
 + 1.2 * y(97) * y(94) - 0.8 * y(96) - 0.2 * y(96)
 + 0.0016667 * y(98) - 1.2 * y(97) * y(94) + 0.8 * y(96)
 - 0.0016667 * y(98) - 0.49998 * y(102) * y(98) + 0.1 * y(91) + 0.2 * y(96)
 + 0.002 * y(94) - 0.00033 * y(99)
 + 0.0250002 * y(103) * y(101) - 0.0168 * y(100)
 - 0.0250002 * y(101) * y(104) + 0.0168 * y(102) - 0.0250002 * y(103) * y(101) + 0.0168 * y(100)
 + 0.0250002 * y(101) * y(104) - 0.0168 * y(102) - 0.49998 * y(102) * y(98) + 0.1 * y(91)
 + 10 * y(35) - 0.0250002 * y(103) * y(101) + 0.0168 * y(100) - 0.001 * y(103)
 - 0.0250002 * y(101) * y(104) + 0.0168 * y(102) - 19.5 * y(104) * y(32) + 40 * y(35) + 0.001 * y(103)
 - 180 * y(105) * buff(10) + 10 * y(107)
 - 12 * buff(10) * y(106) + 10 * y(108)
 + 180 * y(105) * buff(10) - 10 * y(107) - 3 * y(107) * y(94) + 0.8 * y(95) + 0.05 * y(108)
 + 12 * buff(10) * y(106) - 10 * y(108) + 0.2 * y(95) - 0.05 * y(108)
 - 49.9998 * y(90) * y(109) + 5 * y(110) + 0.35 * y(122) + 0.35 * y(124) - 0.003 * y(109)
 + 49.9998 * y(90) * y(109) - 5 * y(110) + 0.35 * y(120) - 0.0220068 * y(110) *  (y(110) + y(111) ) + 2 * y(116) - 0.014286 * y(110) *  (y(113) + y(112) ) + 2 * y(118)
 + 1000.2 * y(113) * y(90) - 0.1 * y(111) - 0.3432 * y(111) * y(119) + 1.4 * y(120) + 0.5 * y(116) + 0.5 * y(118)
 - 0.3432 * y(112) * y(119) + 1.4 * y(121) - 0.3432 * y(112) * y(119) + 1.4 * y(123) + 6 * y(115) + 6 * y(117)
 - 1000.2 * y(113) * y(90) + 0.1 * y(111) + 0.35 * y(121) - 0.3432 * y(113) * y(119) + 1.4 * y(124) + 0.003 * y(109) - 0.264084 * y(113) *  (y(110) + y(111) ) + 24 * y(115) - 0.171426 * y(113) *  (y(113) + y(112) ) + 24 * y(117)
 - 0.3432 * y(114) * y(119) + 1.4 * y(122) + 0.35 * y(123)
 + 0.264084 * y(113) *  (y(110) + y(111) ) - 24 * y(115) - 6 * y(115)
 + 0.0220068 * y(110) *  (y(110) + y(111) ) - 2 * y(116) - 0.5 * y(116)
 + 0.171426 * y(113) *  (y(113) + y(112) ) - 24 * y(117) - 6 * y(117)
 + 0.014286 * y(110) *  (y(113) + y(112) ) - 2 * y(118) - 0.5 * y(118)
 - 0.3432 * y(111) * y(119) + 1.4 * y(120) + 0.35 * y(120) - 0.3432 * y(112) * y(119) + 1.4 * y(121) + 0.35 * y(121) - 0.3432 * y(114) * y(119) + 1.4 * y(122) + 0.35 * y(122) - 0.3432 * y(113) * y(119) + 1.4 * y(124) + 0.35 * y(124) - 0.3432 * y(112) * y(119) + 1.4 * y(123) + 0.35 * y(123) - 499.98 * y(135) * y(119) + 0.1 * y(136) + 1 * y(137)
 + 0.3432 * y(111) * y(119) - 1.4 * y(120) - 0.35 * y(120)
 + 0.3432 * y(112) * y(119) - 1.4 * y(121) - 0.35 * y(121)
 + 0.3432 * y(114) * y(119) - 1.4 * y(122) - 0.35 * y(122)
 + 0.3432 * y(112) * y(119) - 1.4 * y(123) - 0.35 * y(123)
 + 0.3432 * y(113) * y(119) - 1.4 * y(124) - 0.35 * y(124)
 - 72 * y(125) * buff(10)*buff(10) + 72 * y(130) - 0.3 * y(128) * y(125) + 1 * y(126) + 0.35 * y(18)
 + 0.3 * y(128) * y(125) - 1 * y(126) - 0.0612 * y(126) *  (y(2) + y(4) + y(3) + y(5) + y(6) + y(7) ) + 1.4 * y(18)
 - 0.3336 * y(127) *  (y(147) + y(145) + y(146) ) + 2.67 * y(131) + 0.58 * y(17) + 0.35 * y(18) - 0.005 * y(127)
 + 0.67 * y(131) - 0.3 * y(128) * y(125) + 1 * y(126) - 0.102 * y(128) *  (y(2) + y(4) + y(3) + y(5) + y(6) + y(7) ) + 2.34 * y(17) + 0.005 * y(127)
 + 3.6 * y(130) * buff(10) - 10 * y(129) - 0.465 * y(129) * buff(10) + 10 * y(90) - 2.238 * y(129) * y(141) + 1 * y(145)
 + 72 * y(125) * buff(10)*buff(10) - 72 * y(130) - 3.6 * y(130) * buff(10) + 10 * y(129) - 0.24 * y(141) * y(130) + 1 * y(146)
 + 0.3336 * y(127) *  (y(147) + y(145) + y(146) ) - 2.67 * y(131) - 0.67 * y(131)
 + 0.342 * y(135) *  (y(147) + y(145) + y(146) ) - 1.36 * y(132) - 0.34 * y(132)
 + 0.342 * y(136) *  (y(147) + y(145) + y(146) ) - 1.36 * y(133) - 0.34 * y(133)
 - 6 * y(134) * y(86) + 36 * y(88) + 0.034 * y(142) + 0.34 * y(132) + 6 * y(139) + 1 * y(137)
 - 499.98 * y(135) * y(119) + 0.1 * y(136) + 9 * y(88) - 0.0342 * y(135) * y(141) + 0.136 * y(142) - 0.342 * y(135) *  (y(147) + y(145) + y(146) ) + 1.36 * y(132) - 3.96 * y(135) * y(138) + 25 * y(139)
 + 499.98 * y(135) * y(119) - 0.1 * y(136) - 3.96 * y(136) * y(138) + 25 * y(140) - 0.342 * y(136) *  (y(147) + y(145) + y(146) ) + 1.36 * y(133)
 - 1 * y(137) + 6 * y(140) + 0.34 * y(133)
 - 3.96 * y(135) * y(138) + 25 * y(139) + 6 * y(139) - 3.96 * y(136) * y(138) + 25 * y(140) + 6 * y(140)
 + 3.96 * y(135) * y(138) - 25 * y(139) - 6 * y(139)
 + 3.96 * y(136) * y(138) - 25 * y(140) - 6 * y(140)
 - 0.0342 * y(135) * y(141) + 0.136 * y(142) + 0.034 * y(142) + 3.6 * buff(10)*buff(10) * y(144) - 1 * y(141) - 0.24 * y(141) * y(130) + 1 * y(146) - 600 * y(90) * y(141) + 1 * y(147) - 2.238 * y(129) * y(141) + 1 * y(145)
 + 0.0342 * y(135) * y(141) - 0.136 * y(142) - 0.034 * y(142)
 - 10008 * y(143) * buff(10)*buff(10) + 1 * y(144)
 + 10008 * y(143) * buff(10)*buff(10) - 1 * y(144) - 3.6 * buff(10)*buff(10) * y(144) + 1 * y(141)
 + 2.238 * y(129) * y(141) - 1 * y(145)
 + 0.24 * y(141) * y(130) - 1 * y(146)
 + 600 * y(90) * y(141) - 1 * y(147)
 - 54 * y(148) * y(157) + 33 * y(149)
 + 54 * y(148) * y(157) - 33 * y(149) - 54 * y(149) * y(157) + 33 * y(150)
 + 54 * y(149) * y(157) - 33 * y(150) - 75 * y(150) * y(157) + 110 * y(151)
 + 75 * y(150) * y(157) - 110 * y(151) - 75 * y(157) * y(151) + 32.5 * y(152)
 + 75 * y(157) * y(151) - 32.5 * y(152) - 60 * y(152) + 18 * y(86) * y(153)
 + 60 * y(152) - 18 * y(86) * y(153) - 60 * y(153) + 18 * y(86) * y(154)
 + 60 * y(153) - 18 * y(86) * y(154)
 - 60 * y(86) * y(155) + 1 * y(156)
 + 60 * y(86) * y(155) - 1 * y(156)
 - 54 * y(148) * y(157) + 33 * y(149) - 54 * y(149) * y(157) + 33 * y(150) - 75 * y(150) * y(157) + 110 * y(151) - 75 * y(157) * y(151) + 32.5 * y(152) + 4.2e+06 * y(160) * buff(9) / ( 1.2069e+07 + buff(9) ) + 1.08e+07 * y(161) * buff(9) / ( 1.2e+07 + buff(9) ) + 1.08e+07 * y(158) * buff(9) / ( 1.2e+07 + buff(9) ) + 1.08e+07 * y(163) * buff(9) / ( 1.2e+07 + buff(9) ) + 3.24e+07 * y(165) * buff(9) / ( 3.6e+07 + buff(9) ) - 5.04 * y(157) * y(168) + 80 * y(169) - 2.52 * y(157) * y(166) + 40 * y(167) - 0.21 * y(157) * y(170) + 6.67 * y(171) - 1.26 * y(157) * y(172) + 40 * y(173)
 + 49.9998 * y(90) * y(159) - 1 * y(158)
 - 49.9998 * y(90) * y(159) + 1 * y(158) - 126 * y(174) * y(159) + 1 * y(163)
 + 4 * y(19) - 0.1 * y(160) - 833.28 * y(174) * y(160) + 1 * y(165)
 + 499.998 * y(162) * y(174) - 1 * y(161)
 - 499.998 * y(162) * y(174) + 1 * y(161) - 0.6 * y(162) *  (y(2) + y(4) + y(3) + y(5) + y(6) + y(7) ) + 16 * y(19) + 0.1 * y(160)
 + 126 * y(174) * y(159) - 1 * y(163)
 + 1.2e+07 * y(169) + 6e+06 * y(167) + 6e+06 * y(173) + 1.0002e+06 * y(171)
 + 833.28 * y(174) * y(160) - 1 * y(165)
 - 2.52 * y(157) * y(166) + 40 * y(167) + 10 * y(167) + 0.1 * y(168) - 6 * y(166) * y(86) + 36 * y(89)
 + 2.52 * y(157) * y(166) - 40 * y(167) - 10 * y(167)
 - 5.04 * y(157) * y(168) + 80 * y(169) + 20 * y(169) - 0.1 * y(168) + 9 * y(89)
 + 5.04 * y(157) * y(168) - 80 * y(169) - 20 * y(169)
 - 0.21 * y(157) * y(170) + 6.67 * y(171) + 1.667 * y(171) - 720 * y(170) * y(90) + 5 * y(172)
 + 0.21 * y(157) * y(170) - 6.67 * y(171) - 1.667 * y(171)
 - 1.26 * y(157) * y(172) + 40 * y(173) + 10 * y(173) + 720 * y(170) * y(90) - 5 * y(172)
 + 1.26 * y(157) * y(172) - 40 * y(173) - 10 * y(173)
 - 499.998 * y(162) * y(174) + 1 * y(161) - 126 * y(174) * y(159) + 1 * y(163) - 833.28 * y(174) * y(160) + 1 * y(165)
];

% end of model
