Generated Code

The following is c code generated by the CellML API from this CellML file. (Back to language selection)

The raw code is available.

/*
   There are a total of 8 entries in the algebraic variable array.
   There are a total of 1 entries in each of the rate and state variable arrays.
   There are a total of 559 entries in the constant variable array.
 */
/*
 * CONSTANTS[0] is BFM in component input_values (L_per_minute).
 * CONSTANTS[1] is OVA in component input_values (mL_per_L).
 * CONSTANTS[2] is HM in component input_values (dimensionless).
 * CONSTANTS[3] is AOM in component input_values (dimensionless).
 * CONSTANTS[4] is A1K in component parameter_values (minute).
 * CONSTANTS[5] is A2K in component parameter_values (minute).
 * CONSTANTS[6] is A3K in component parameter_values (minute).
 * CONSTANTS[7] is A4K in component parameter_values (minute).
 * CONSTANTS[8] is A4K2 in component parameter_values (minute).
 * CONSTANTS[9] is AARK in component parameter_values (mmHg_minute_per_L).
 * CONSTANTS[10] is AARLL in component parameter_values (mmHg_minute_per_L).
 * CONSTANTS[11] is ADHINF in component parameter_values (dimensionless).
 * CONSTANTS[12] is ADHKLL in component parameter_values (dimensionless).
 * CONSTANTS[13] is ADHKUL in component parameter_values (dimensionless).
 * CONSTANTS[14] is ADHPAM in component parameter_values (per_mmHg2).
 * CONSTANTS[15] is ADHPUL in component parameter_values (mmHg).
 * CONSTANTS[16] is ADHTC in component parameter_values (minute).
 * CONSTANTS[17] is ADHVLL in component parameter_values (dimensionless).
 * CONSTANTS[18] is ADHVUL in component parameter_values (dimensionless).
 * CONSTANTS[19] is AH10 in component parameter_values (dimensionless).
 * CONSTANTS[20] is AH11 in component parameter_values (minute).
 * CONSTANTS[21] is AH9 in component parameter_values (per_mmHg).
 * CONSTANTS[22] is AHMNAR in component parameter_values (dimensionless).
 * CONSTANTS[23] is AHTHM in component parameter_values (dimensionless).
 * CONSTANTS[24] is ALCLK in component parameter_values (dimensionless).
 * CONSTANTS[25] is ALDINF in component parameter_values (dimensionless).
 * CONSTANTS[26] is ALDKNS in component parameter_values (dimensionless).
 * CONSTANTS[27] is ALDMM in component parameter_values (dimensionless).
 * CONSTANTS[28] is AM1LL in component parameter_values (dimensionless).
 * CONSTANTS[29] is AM1UL in component parameter_values (dimensionless).
 * CONSTANTS[30] is AMCSNS in component parameter_values (dimensionless).
 * CONSTANTS[31] is AMKM in component parameter_values (dimensionless).
 * CONSTANTS[32] is AMKMUL in component parameter_values (dimensionless).
 * CONSTANTS[33] is AMM1LM in component parameter_values (dimensionless).
 * CONSTANTS[34] is AMM4 in component parameter_values (dimensionless).
 * CONSTANTS[35] is AMNALL in component parameter_values (dimensionless).
 * CONSTANTS[36] is AMNAM in component parameter_values (dimensionless).
 * CONSTANTS[37] is AMNAUL in component parameter_values (dimensionless).
 * CONSTANTS[38] is AMT in component parameter_values (minute).
 * CONSTANTS[39] is ANCSNS in component parameter_values (dimensionless).
 * CONSTANTS[40] is ANGINF in component parameter_values (dimensionless).
 * CONSTANTS[41] is ANGKNS in component parameter_values (dimensionless).
 * CONSTANTS[42] is ANMALD in component parameter_values (dimensionless).
 * CONSTANTS[43] is ANMAM in component parameter_values (dimensionless).
 * CONSTANTS[44] is ANMARL in component parameter_values (dimensionless).
 * CONSTANTS[45] is ANMEM in component parameter_values (dimensionless).
 * CONSTANTS[46] is ANMKEL in component parameter_values (dimensionless).
 * CONSTANTS[47] is ANMKEM in component parameter_values (dimensionless).
 * CONSTANTS[48] is ANMLL in component parameter_values (dimensionless).
 * CONSTANTS[49] is ANMNAM in component parameter_values (dimensionless).
 * CONSTANTS[50] is ANMSLT in component parameter_values (dimensionless).
 * CONSTANTS[51] is ANMTM in component parameter_values (dimensionless).
 * CONSTANTS[52] is ANMUL in component parameter_values (dimensionless).
 * CONSTANTS[53] is ANPTC in component parameter_values (minute).
 * CONSTANTS[54] is ANPXAF in component parameter_values (mmHg_minute_per_L).
 * CONSTANTS[55] is ANPXUL in component parameter_values (dimensionless).
 * CONSTANTS[56] is ANT in component parameter_values (minute).
 * CONSTANTS[57] is ANULL in component parameter_values (dimensionless).
 * CONSTANTS[58] is ANUM in component parameter_values (dimensionless).
 * CONSTANTS[59] is ANUVM in component parameter_values (dimensionless).
 * CONSTANTS[60] is ANV in component parameter_values (minute).
 * CONSTANTS[61] is ANXM in component parameter_values (dimensionless).
 * CONSTANTS[62] is ANY in component parameter_values (litre).
 * CONSTANTS[63] is AR1LM in component parameter_values (dimensionless).
 * CONSTANTS[64] is AR2LM in component parameter_values (dimensionless).
 * CONSTANTS[65] is ARF in component parameter_values (dimensionless).
 * CONSTANTS[66] is AUC1 in component parameter_values (dimensionless).
 * CONSTANTS[67] is AUDMP in component parameter_values (minute).
 * CONSTANTS[68] is AUK in component parameter_values (per_minute).
 * CONSTANTS[69] is AUL in component parameter_values (litre).
 * CONSTANTS[70] is AULPM in component parameter_values (dimensionless).
 * CONSTANTS[71] is AUM1 in component parameter_values (dimensionless).
 * CONSTANTS[72] is AUM2 in component parameter_values (dimensionless).
 * CONSTANTS[73] is AUMAX in component parameter_values (dimensionless).
 * CONSTANTS[74] is AUMIN in component parameter_values (dimensionless).
 * CONSTANTS[75] is AUMK1 in component parameter_values (dimensionless).
 * CONSTANTS[76] is AUN1 in component parameter_values (dimensionless).
 * CONSTANTS[77] is AURG in component parameter_values (dimensionless).
 * CONSTANTS[78] is AUS in component parameter_values (dimensionless).
 * CONSTANTS[79] is AUSLP in component parameter_values (dimensionless).
 * CONSTANTS[80] is AUTO in component parameter_values (dimensionless).
 * CONSTANTS[81] is AUTOGN in component parameter_values (dimensionless).
 * CONSTANTS[82] is AUTOSN in component parameter_values (dimensionless).
 * CONSTANTS[83] is AUX in component parameter_values (dimensionless).
 * CONSTANTS[84] is BAROTC in component parameter_values (minute).
 * CONSTANTS[85] is CFC in component parameter_values (L_per_minute_per_mmHg).
 * CONSTANTS[86] is CKEEX in component parameter_values (dimensionless).
 * CONSTANTS[87] is CMPTSS in component parameter_values (dimensionless).
 * CONSTANTS[88] is CN2 in component parameter_values (per_mmHg).
 * CONSTANTS[89] is CN7 in component parameter_values (dimensionless).
 * CONSTANTS[90] is CNR in component parameter_values (monovalent_mEq_per_litre).
 * CONSTANTS[91] is CPF in component parameter_values (L_per_minute_per_mmHg).
 * CONSTANTS[92] is CPK in component parameter_values (L_per_minute_per_mmHg).
 * CONSTANTS[93] is CPR in component parameter_values (gram_per_L).
 * CONSTANTS[94] is CV in component parameter_values (L_per_mmHg).
 * CONSTANTS[95] is CRRFLX in component parameter_values (mmHg).
 * CONSTANTS[96] is DIURET in component parameter_values (dimensionless).
 * CONSTANTS[97] is DHDTR in component parameter_values (per_mmHg_per_minute).
 * CONSTANTS[98] is DTNAR in component parameter_values (monovalent_mEq_per_minute).
 * CONSTANTS[99] is DTNARL in component parameter_values (monovalent_mEq_per_minute).
 * CONSTANTS[100] is EARK in component parameter_values (mmHg_minute_per_L).
 * CONSTANTS[101] is EARLL in component parameter_values (mmHg_minute_per_L).
 * CONSTANTS[102] is EFAFR in component parameter_values (dimensionless).
 * CONSTANTS[103] is EXC in component parameter_values (dimensionless).
 * CONSTANTS[104] is EXCML in component parameter_values (dimensionless).
 * CONSTANTS[105] is EXCXP in component parameter_values (dimensionless).
 * CONSTANTS[106] is EXCXP2 in component parameter_values (dimensionless).
 * CONSTANTS[107] is EXE in component parameter_values (mmHg).
 * CONSTANTS[108] is GCOPF in component parameter_values (per_mmHg).
 * CONSTANTS[109] is GFLC in component parameter_values (L_per_minute_per_mmHg).
 * CONSTANTS[110] is GFNDMP in component parameter_values (dimensionless).
 * CONSTANTS[111] is GFNLL in component parameter_values (L_per_minute).
 * CONSTANTS[112] is GPPD in component parameter_values (dimensionless).
 * CONSTANTS[113] is HM6 in component parameter_values (mmHg).
 * CONSTANTS[114] is HM8 in component parameter_values (L_per_minute_per_mmHg).
 * CONSTANTS[115] is HTAUML in component parameter_values (dimensionless).
 * CONSTANTS[116] is KORGN in component parameter_values (dimensionless).
 * CONSTANTS[117] is KORNER in component parameter_values (dimensionless).
 * CONSTANTS[118] is KORREN in component parameter_values (dimensionless).
 * CONSTANTS[119] is KORTC in component parameter_values (minute).
 * CONSTANTS[120] is LPDE in component parameter_values (dimensionless).
 * CONSTANTS[121] is LPK in component parameter_values (L_per_minute).
 * CONSTANTS[122] is LPPR in component parameter_values (gram_per_minute).
 * CONSTANTS[123] is MDFL1 in component parameter_values (dimensionless).
 * CONSTANTS[124] is MDFLKM in component parameter_values (monovalent_mEq_per_litre).
 * CONSTANTS[125] is MDFLW2 in component parameter_values (dimensionless).
 * CONSTANTS[126] is MDFLWX in component parameter_values (dimensionless).
 * CONSTANTS[127] is MDMP in component parameter_values (dimensionless).
 * CONSTANTS[128] is O2A in component parameter_values (dimensionless).
 * CONSTANTS[129] is O2CHMO in component parameter_values (per_mmHg).
 * CONSTANTS[130] is OMM in component parameter_values (mL_per_minute).
 * CONSTANTS[131] is PA4 in component parameter_values (dimensionless).
 * CONSTANTS[132] is PAEX in component parameter_values (dimensionless).
 * CONSTANTS[133] is PCE in component parameter_values (dimensionless).
 * CONSTANTS[134] is PCR in component parameter_values (mmHg).
 * CONSTANTS[135] is PR1LL in component parameter_values (mmHg).
 * CONSTANTS[136] is PGHF in component parameter_values (L_mmHg_per_gram).
 * CONSTANTS[137] is PK2 in component parameter_values (mmHg_per_mL).
 * CONSTANTS[138] is PL2 in component parameter_values (L_mL_per_minute_per_mmHg).
 * CONSTANTS[139] is PLDF in component parameter_values (mmHg).
 * CONSTANTS[140] is PM5 in component parameter_values (per_mmHg).
 * CONSTANTS[141] is PO2ADV in component parameter_values (dimensionless).
 * CONSTANTS[142] is POK in component parameter_values (dimensionless).
 * CONSTANTS[143] is POM in component parameter_values (dimensionless).
 * CONSTANTS[144] is POM2 in component parameter_values (dimensionless).
 * CONSTANTS[145] is PON in component parameter_values (dimensionless).
 * CONSTANTS[146] is POR in component parameter_values (mmHg).
 * CONSTANTS[147] is POZ in component parameter_values (dimensionless).
 * CONSTANTS[148] is PXTP in component parameter_values (mmHg).
 * CONSTANTS[149] is QAOLM in component parameter_values (dimensionless).
 * CONSTANTS[150] is QRF in component parameter_values (L_per_minute).
 * CONSTANTS[151] is RABSC in component parameter_values (per_mmHg).
 * CONSTANTS[152] is RAM in component parameter_values (mmHg_minute_per_L).
 * CONSTANTS[153] is RAPRSP in component parameter_values (mmHg).
 * CONSTANTS[154] is RAR in component parameter_values (mmHg_minute_per_L).
 * CONSTANTS[155] is RCDFDP in component parameter_values (minute).
 * CONSTANTS[156] is RCDFPC in component parameter_values (dimensionless).
 * CONSTANTS[157] is REK in component parameter_values (dimensionless).
 * CONSTANTS[158] is RFABKM in component parameter_values (monovalent_mEq_per_minute).
 * CONSTANTS[159] is RFABDM in component parameter_values (dimensionless).
 * CONSTANTS[160] is RFABDP in component parameter_values (dimensionless).
 * CONSTANTS[161] is RFCDFT in component parameter_values (dimensionless).
 * CONSTANTS[162] is RKC in component parameter_values (per_minute).
 * CONSTANTS[163] is RNAGTC in component parameter_values (minute).
 * CONSTANTS[164] is RNAUAD in component parameter_values (per_minute).
 * CONSTANTS[165] is RPS in component parameter_values (dimensionless).
 * CONSTANTS[166] is RTPPR in component parameter_values (dimensionless).
 * CONSTANTS[167] is RTPPRS in component parameter_values (mmHg).
 * CONSTANTS[168] is RTSPRS in component parameter_values (mmHg).
 * CONSTANTS[169] is RVRS in component parameter_values (mmHg_minute_per_L).
 * CONSTANTS[170] is RVSM in component parameter_values (mmHg_minute_per_L).
 * CONSTANTS[171] is SR in component parameter_values (dimensionless).
 * CONSTANTS[172] is SR2 in component parameter_values (dimensionless).
 * CONSTANTS[173] is SRK in component parameter_values (minute).
 * CONSTANTS[174] is SRK2 in component parameter_values (minute).
 * CONSTANTS[175] is STA in component parameter_values (dimensionless).
 * CONSTANTS[176] is TENSGN in component parameter_values (dimensionless).
 * CONSTANTS[177] is TENSTC in component parameter_values (minute).
 * CONSTANTS[178] is TIMETR in component parameter_values (minute).
 * CONSTANTS[179] is TRNSFS in component parameter_values (dimensionless).
 * CONSTANTS[180] is TRPL in component parameter_values (L_per_minute).
 * CONSTANTS[181] is TSSLML in component parameter_values (dimensionless).
 * CONSTANTS[182] is TSSLTC in component parameter_values (per_minute).
 * CONSTANTS[183] is TVDDL in component parameter_values (minute).
 * CONSTANTS[184] is U in component parameter_values (dimensionless).
 * CONSTANTS[185] is VID1 in component parameter_values (L_per_minute).
 * CONSTANTS[186] is VIDML in component parameter_values (litre2_per_monovalent_mEq_per_minute).
 * CONSTANTS[187] is VNTSTM in component parameter_values (dimensionless).
 * CONSTANTS[188] is VP1 in component parameter_values (dimensionless).
 * CONSTANTS[189] is VPTISS in component parameter_values (litre).
 * CONSTANTS[190] is VTSF in component parameter_values (litre).
 * CONSTANTS[191] is VV9 in component parameter_values (litre).
 * CONSTANTS[192] is X in component parameter_values (dimensionless).
 * CONSTANTS[193] is Z in component parameter_values (dimensionless).
 * CONSTANTS[194] is Z4 in component parameter_values (dimensionless).
 * CONSTANTS[195] is Z5 in component parameter_values (dimensionless).
 * CONSTANTS[196] is Z6 in component parameter_values (dimensionless).
 * CONSTANTS[197] is Z7 in component parameter_values (dimensionless).
 * CONSTANTS[198] is Z10 in component parameter_values (mmHg).
 * CONSTANTS[199] is Z11 in component parameter_values (per_mmHg2).
 * CONSTANTS[200] is Z12 in component parameter_values (dimensionless).
 * CONSTANTS[201] is Z13 in component parameter_values (dimensionless).
 * CONSTANTS[202] is Z14 in component parameter_values (dimensionless).
 * CONSTANTS[203] is Z16 in component parameter_values (dimensionless).
 * CONSTANTS[204] is Z18 in component parameter_values (dimensionless).
 * CONSTANTS[205] is Z19 in component parameter_values (dimensionless).
 * CONSTANTS[206] is KID in component parameter_values (monovalent_mEq_per_minute).
 * CONSTANTS[207] is URFORM in component parameter_values (mOsm_per_minute).
 * CONSTANTS[208] is AUV in component parameter_values (dimensionless).
 * CONSTANTS[209] is AUY in component parameter_values (dimensionless).
 * CONSTANTS[210] is O2M in component parameter_values (mL_per_minute).
 * CONSTANTS[211] is NID in component parameter_values (monovalent_mEq_per_minute).
 * CONSTANTS[212] is ATRFBM in component parameter_values (dimensionless).
 * CONSTANTS[213] is GBL in component parameter_values (mmHg).
 * CONSTANTS[214] is RNAUGN in component parameter_values (minute_per_L).
 * CONSTANTS[215] is RNAULL in component parameter_values (dimensionless).
 * CONSTANTS[216] is RNAUUL in component parameter_values (dimensionless).
 * CONSTANTS[217] is HSR in component parameter_values (dimensionless).
 * CONSTANTS[218] is HSL in component parameter_values (dimensionless).
 * CONSTANTS[219] is HMK in component parameter_values (dimensionless).
 * CONSTANTS[220] is PO2AMB in component parameter_values (mmHg).
 * CONSTANTS[221] is HKM in component parameter_values (dimensionless).
 * CONSTANTS[222] is DR in component parameter_values (L_per_minute).
 * CONSTANTS[223] is ANPKNS in component parameter_values (dimensionless).
 * CONSTANTS[224] is RMULT1 in component parameter_values (dimensionless).
 * CONSTANTS[225] is GLPCA in component parameter_values (mmHg).
 * CONSTANTS[226] is RFN in component parameter_values (L_per_minute).
 * CONSTANTS[227] is RFABX in component parameter_values (dimensionless).
 * CONSTANTS[228] is ANPINF in component parameter_values (dimensionless).
 * CONSTANTS[229] is FIS in component parameter_values (L_per_minute_per_mmHg).
 * CONSTANTS[230] is CPPD in component parameter_values (gram_per_L).
 * CONSTANTS[231] is TRRBC in component parameter_values (L_per_minute).
 * CONSTANTS[232] is HYL in component parameter_values (gram).
 * CONSTANTS[233] is ATRVM in component parameter_values (litre).
 * CONSTANTS[234] is ADHC_init in component state_variables (dimensionless).
 * CONSTANTS[235] is AHY_init in component state_variables (dimensionless).
 * CONSTANTS[236] is AMC_init in component state_variables (dimensionless).
 * CONSTANTS[237] is AMM1T_init in component state_variables (dimensionless).
 * CONSTANTS[238] is AMM2_init in component state_variables (dimensionless).
 * CONSTANTS[239] is ANC_init in component state_variables (dimensionless).
 * CONSTANTS[240] is ANPC_init in component state_variables (dimensionless).
 * CONSTANTS[241] is ANX1_init in component state_variables (dimensionless).
 * CONSTANTS[242] is AR1T_init in component state_variables (dimensionless).
 * CONSTANTS[243] is AR2T_init in component state_variables (dimensionless).
 * CONSTANTS[244] is AR3T_init in component state_variables (dimensionless).
 * CONSTANTS[245] is AU1_init in component state_variables (dimensionless).
 * CONSTANTS[246] is AU4_init in component state_variables (dimensionless).
 * CONSTANTS[247] is AU6_init in component state_variables (dimensionless).
 * CONSTANTS[248] is DTKA_init in component state_variables (monovalent_mEq_per_minute).
 * CONSTANTS[249] is HMD1_init in component state_variables (dimensionless).
 * CONSTANTS[250] is HPL_init in component state_variables (dimensionless).
 * CONSTANTS[251] is HPR_init in component state_variables (dimensionless).
 * CONSTANTS[252] is KTOT_init in component state_variables (monovalent_mEq).
 * CONSTANTS[253] is NAE_init in component state_variables (monovalent_mEq).
 * CONSTANTS[254] is O2VAD1_init in component state_variables (dimensionless).
 * CONSTANTS[255] is OSV_init in component state_variables (dimensionless).
 * CONSTANTS[256] is OVA_init in component state_variables (mL_per_L).
 * CONSTANTS[257] is OVS_init in component state_variables (dimensionless).
 * CONSTANTS[258] is PAR1_init in component state_variables (mmHg).
 * CONSTANTS[259] is PC_init in component state_variables (mmHg).
 * CONSTANTS[260] is PLUR_init in component state_variables (mOsm).
 * CONSTANTS[261] is PPR1_init in component state_variables (gram).
 * CONSTANTS[262] is PRP_init in component state_variables (gram).
 * CONSTANTS[263] is QO2T_init in component state_variables (mL).
 * CONSTANTS[264] is QOM1_init in component state_variables (mL).
 * CONSTANTS[265] is RNAUG3_init in component state_variables (dimensionless).
 * CONSTANTS[266] is TSP_init in component state_variables (gram).
 * CONSTANTS[267] is TVD_init in component state_variables (L_per_minute).
 * CONSTANTS[268] is VAS1_init in component state_variables (litre).
 * CONSTANTS[269] is VIC_init in component state_variables (litre).
 * CONSTANTS[270] is VLA1_init in component state_variables (litre).
 * CONSTANTS[271] is VPA1_init in component state_variables (litre).
 * CONSTANTS[272] is VPF1_init in component state_variables (litre).
 * CONSTANTS[273] is VP_init in component state_variables (litre).
 * CONSTANTS[274] is VRA1_init in component state_variables (litre).
 * CONSTANTS[275] is VRC_init in component state_variables (litre).
 * CONSTANTS[276] is VTS2_init in component state_variables (litre).
 * CONSTANTS[277] is VTW_init in component state_variables (litre).
 * CONSTANTS[278] is VV6_init in component state_variables (litre).
 * CONSTANTS[279] is VV7_init in component state_variables (litre).
 * CONSTANTS[280] is VVS1_init in component state_variables (litre).
 * VOI is time in component environment (minute).
 * ALGEBRAIC[1] is PMO in component pressure_of_O2_in_M_tissue_cells (mmHg).
 * ALGEBRAIC[4] is RMO in component delivery_of_O2_to_M_tissues (mL_per_minute).
 * CONSTANTS[281] is A1K in component parameter_values (minute).
 * CONSTANTS[282] is A2K in component parameter_values (minute).
 * CONSTANTS[283] is A3K in component parameter_values (minute).
 * CONSTANTS[284] is A4K in component parameter_values (minute).
 * CONSTANTS[285] is A4K2 in component parameter_values (minute).
 * CONSTANTS[286] is AARK in component parameter_values (mmHg_minute_per_L).
 * CONSTANTS[287] is AARLL in component parameter_values (mmHg_minute_per_L).
 * CONSTANTS[288] is ADHINF in component parameter_values (dimensionless).
 * CONSTANTS[289] is ADHKLL in component parameter_values (dimensionless).
 * CONSTANTS[290] is ADHKUL in component parameter_values (dimensionless).
 * CONSTANTS[291] is ADHPAM in component parameter_values (per_mmHg2).
 * CONSTANTS[292] is ADHPUL in component parameter_values (mmHg).
 * CONSTANTS[293] is ADHTC in component parameter_values (minute).
 * CONSTANTS[294] is ADHVLL in component parameter_values (dimensionless).
 * CONSTANTS[295] is ADHVUL in component parameter_values (dimensionless).
 * CONSTANTS[296] is AH10 in component parameter_values (dimensionless).
 * CONSTANTS[297] is AH11 in component parameter_values (minute).
 * CONSTANTS[298] is AH9 in component parameter_values (per_mmHg).
 * CONSTANTS[299] is AHMNAR in component parameter_values (dimensionless).
 * CONSTANTS[300] is AHTHM in component parameter_values (dimensionless).
 * CONSTANTS[301] is ALCLK in component parameter_values (dimensionless).
 * CONSTANTS[302] is ALDINF in component parameter_values (dimensionless).
 * CONSTANTS[303] is ALDKNS in component parameter_values (dimensionless).
 * CONSTANTS[304] is ALDMM in component parameter_values (dimensionless).
 * CONSTANTS[305] is AM1LL in component parameter_values (dimensionless).
 * CONSTANTS[306] is AM1UL in component parameter_values (dimensionless).
 * CONSTANTS[307] is AMCSNS in component parameter_values (dimensionless).
 * CONSTANTS[308] is AMKM in component parameter_values (dimensionless).
 * CONSTANTS[309] is AMKMUL in component parameter_values (dimensionless).
 * CONSTANTS[310] is AMM1LM in component parameter_values (dimensionless).
 * CONSTANTS[311] is AMM4 in component parameter_values (dimensionless).
 * CONSTANTS[312] is AMNALL in component parameter_values (dimensionless).
 * CONSTANTS[313] is AMNAM in component parameter_values (dimensionless).
 * CONSTANTS[314] is AMNAUL in component parameter_values (dimensionless).
 * CONSTANTS[315] is AMT in component parameter_values (minute).
 * CONSTANTS[316] is ANCSNS in component parameter_values (dimensionless).
 * CONSTANTS[317] is ANGINF in component parameter_values (dimensionless).
 * CONSTANTS[318] is ANGKNS in component parameter_values (dimensionless).
 * CONSTANTS[319] is ANMALD in component parameter_values (dimensionless).
 * CONSTANTS[320] is ANMAM in component parameter_values (dimensionless).
 * CONSTANTS[321] is ANMARL in component parameter_values (dimensionless).
 * CONSTANTS[322] is ANMEM in component parameter_values (dimensionless).
 * CONSTANTS[323] is ANMKEL in component parameter_values (dimensionless).
 * CONSTANTS[324] is ANMKEM in component parameter_values (dimensionless).
 * CONSTANTS[325] is ANMLL in component parameter_values (dimensionless).
 * CONSTANTS[326] is ANMNAM in component parameter_values (dimensionless).
 * CONSTANTS[327] is ANMSLT in component parameter_values (dimensionless).
 * CONSTANTS[328] is ANMTM in component parameter_values (dimensionless).
 * CONSTANTS[329] is ANMUL in component parameter_values (dimensionless).
 * CONSTANTS[330] is ANPTC in component parameter_values (minute).
 * CONSTANTS[331] is ANPXAF in component parameter_values (mmHg_minute_per_L).
 * CONSTANTS[332] is ANPXUL in component parameter_values (dimensionless).
 * CONSTANTS[333] is ANT in component parameter_values (minute).
 * CONSTANTS[334] is ANULL in component parameter_values (dimensionless).
 * CONSTANTS[335] is ANUM in component parameter_values (dimensionless).
 * CONSTANTS[336] is ANUVM in component parameter_values (dimensionless).
 * CONSTANTS[337] is ANV in component parameter_values (minute).
 * CONSTANTS[338] is ANXM in component parameter_values (dimensionless).
 * CONSTANTS[339] is ANY in component parameter_values (litre).
 * CONSTANTS[340] is AR1LM in component parameter_values (dimensionless).
 * CONSTANTS[341] is AR2LM in component parameter_values (dimensionless).
 * CONSTANTS[342] is ARF in component parameter_values (dimensionless).
 * CONSTANTS[343] is AUC1 in component parameter_values (dimensionless).
 * CONSTANTS[344] is AUDMP in component parameter_values (minute).
 * CONSTANTS[345] is AUK in component parameter_values (per_minute).
 * CONSTANTS[346] is AUL in component parameter_values (litre).
 * CONSTANTS[347] is AULPM in component parameter_values (dimensionless).
 * CONSTANTS[348] is AUM1 in component parameter_values (dimensionless).
 * CONSTANTS[349] is AUM2 in component parameter_values (dimensionless).
 * CONSTANTS[350] is AUMAX in component parameter_values (dimensionless).
 * CONSTANTS[351] is AUMIN in component parameter_values (dimensionless).
 * CONSTANTS[352] is AUMK1 in component parameter_values (dimensionless).
 * CONSTANTS[353] is AUN1 in component parameter_values (dimensionless).
 * CONSTANTS[354] is AURG in component parameter_values (dimensionless).
 * CONSTANTS[355] is AUS in component parameter_values (dimensionless).
 * CONSTANTS[356] is AUSLP in component parameter_values (dimensionless).
 * CONSTANTS[357] is AUTO in component parameter_values (dimensionless).
 * CONSTANTS[358] is AUTOGN in component parameter_values (dimensionless).
 * CONSTANTS[359] is AUTOSN in component parameter_values (dimensionless).
 * CONSTANTS[360] is AUX in component parameter_values (dimensionless).
 * CONSTANTS[361] is BAROTC in component parameter_values (minute).
 * CONSTANTS[362] is CFC in component parameter_values (L_per_minute_per_mmHg).
 * CONSTANTS[363] is CKEEX in component parameter_values (dimensionless).
 * CONSTANTS[364] is CMPTSS in component parameter_values (dimensionless).
 * CONSTANTS[365] is CN2 in component parameter_values (per_mmHg).
 * CONSTANTS[366] is CN7 in component parameter_values (dimensionless).
 * CONSTANTS[367] is CNR in component parameter_values (monovalent_mEq_per_litre).
 * CONSTANTS[368] is CPF in component parameter_values (L_per_minute_per_mmHg).
 * CONSTANTS[369] is CPK in component parameter_values (L_per_minute_per_mmHg).
 * CONSTANTS[370] is CPR in component parameter_values (gram_per_L).
 * CONSTANTS[371] is CV in component parameter_values (L_per_mmHg).
 * CONSTANTS[372] is CRRFLX in component parameter_values (mmHg).
 * CONSTANTS[373] is DIURET in component parameter_values (dimensionless).
 * CONSTANTS[374] is DHDTR in component parameter_values (per_mmHg_per_minute).
 * CONSTANTS[375] is DTNAR in component parameter_values (monovalent_mEq_per_minute).
 * CONSTANTS[376] is DTNARL in component parameter_values (monovalent_mEq_per_minute).
 * CONSTANTS[377] is EARK in component parameter_values (mmHg_minute_per_L).
 * CONSTANTS[378] is EARLL in component parameter_values (mmHg_minute_per_L).
 * CONSTANTS[379] is EFAFR in component parameter_values (dimensionless).
 * CONSTANTS[380] is EXC in component parameter_values (dimensionless).
 * CONSTANTS[381] is EXCML in component parameter_values (dimensionless).
 * CONSTANTS[382] is EXCXP in component parameter_values (dimensionless).
 * CONSTANTS[383] is EXCXP2 in component parameter_values (dimensionless).
 * CONSTANTS[384] is EXE in component parameter_values (mmHg).
 * CONSTANTS[385] is GCOPF in component parameter_values (per_mmHg).
 * CONSTANTS[386] is GFLC in component parameter_values (L_per_minute_per_mmHg).
 * CONSTANTS[387] is GFNDMP in component parameter_values (dimensionless).
 * CONSTANTS[388] is GFNLL in component parameter_values (L_per_minute).
 * CONSTANTS[389] is GPPD in component parameter_values (dimensionless).
 * CONSTANTS[390] is HM6 in component parameter_values (mmHg).
 * CONSTANTS[391] is HM8 in component parameter_values (L_per_minute_per_mmHg).
 * CONSTANTS[392] is HTAUML in component parameter_values (dimensionless).
 * CONSTANTS[393] is KORGN in component parameter_values (dimensionless).
 * CONSTANTS[394] is KORNER in component parameter_values (dimensionless).
 * CONSTANTS[395] is KORREN in component parameter_values (dimensionless).
 * CONSTANTS[396] is KORTC in component parameter_values (minute).
 * CONSTANTS[397] is LPDE in component parameter_values (dimensionless).
 * CONSTANTS[398] is LPK in component parameter_values (L_per_minute).
 * CONSTANTS[399] is LPPR in component parameter_values (gram_per_minute).
 * CONSTANTS[400] is MDFL1 in component parameter_values (dimensionless).
 * CONSTANTS[401] is MDFLKM in component parameter_values (monovalent_mEq_per_litre).
 * CONSTANTS[402] is MDFLW2 in component parameter_values (dimensionless).
 * CONSTANTS[403] is MDFLWX in component parameter_values (dimensionless).
 * CONSTANTS[404] is MDMP in component parameter_values (dimensionless).
 * CONSTANTS[405] is O2A in component parameter_values (dimensionless).
 * CONSTANTS[406] is O2CHMO in component parameter_values (per_mmHg).
 * CONSTANTS[407] is OMM in component parameter_values (mL_per_minute).
 * CONSTANTS[408] is PA4 in component parameter_values (dimensionless).
 * CONSTANTS[409] is PAEX in component parameter_values (dimensionless).
 * CONSTANTS[410] is PCE in component parameter_values (dimensionless).
 * CONSTANTS[411] is PCR in component parameter_values (mmHg).
 * CONSTANTS[412] is PR1LL in component parameter_values (mmHg).
 * CONSTANTS[413] is PGHF in component parameter_values (L_mmHg_per_gram).
 * CONSTANTS[414] is PK2 in component parameter_values (mmHg_per_mL).
 * CONSTANTS[415] is PL2 in component parameter_values (L_mL_per_minute_per_mmHg).
 * CONSTANTS[416] is PLDF in component parameter_values (mmHg).
 * CONSTANTS[417] is PM5 in component parameter_values (per_mmHg).
 * CONSTANTS[418] is PO2ADV in component parameter_values (dimensionless).
 * CONSTANTS[419] is POK in component parameter_values (dimensionless).
 * CONSTANTS[420] is POM in component parameter_values (dimensionless).
 * CONSTANTS[421] is POM2 in component parameter_values (dimensionless).
 * CONSTANTS[422] is PON in component parameter_values (dimensionless).
 * CONSTANTS[423] is POR in component parameter_values (mmHg).
 * CONSTANTS[424] is POZ in component parameter_values (dimensionless).
 * CONSTANTS[425] is PXTP in component parameter_values (mmHg).
 * CONSTANTS[426] is QAOLM in component parameter_values (dimensionless).
 * CONSTANTS[427] is QRF in component parameter_values (L_per_minute).
 * CONSTANTS[428] is RABSC in component parameter_values (per_mmHg).
 * CONSTANTS[429] is RAM in component parameter_values (mmHg_minute_per_L).
 * CONSTANTS[430] is RAPRSP in component parameter_values (mmHg).
 * CONSTANTS[431] is RAR in component parameter_values (mmHg_minute_per_L).
 * CONSTANTS[432] is RCDFDP in component parameter_values (minute).
 * CONSTANTS[433] is RCDFPC in component parameter_values (dimensionless).
 * CONSTANTS[434] is REK in component parameter_values (dimensionless).
 * CONSTANTS[435] is RFABKM in component parameter_values (monovalent_mEq_per_minute).
 * CONSTANTS[436] is RFABDM in component parameter_values (dimensionless).
 * CONSTANTS[437] is RFABDP in component parameter_values (dimensionless).
 * CONSTANTS[438] is RFCDFT in component parameter_values (dimensionless).
 * CONSTANTS[439] is RKC in component parameter_values (per_minute).
 * CONSTANTS[440] is RNAGTC in component parameter_values (minute).
 * CONSTANTS[441] is RNAUAD in component parameter_values (per_minute).
 * CONSTANTS[442] is RPS in component parameter_values (dimensionless).
 * CONSTANTS[443] is RTPPR in component parameter_values (dimensionless).
 * CONSTANTS[444] is RTPPRS in component parameter_values (mmHg).
 * CONSTANTS[445] is RTSPRS in component parameter_values (mmHg).
 * CONSTANTS[446] is RVRS in component parameter_values (mmHg_minute_per_L).
 * CONSTANTS[447] is RVSM in component parameter_values (mmHg_minute_per_L).
 * CONSTANTS[448] is SR in component parameter_values (dimensionless).
 * CONSTANTS[449] is SR2 in component parameter_values (dimensionless).
 * CONSTANTS[450] is SRK in component parameter_values (minute).
 * CONSTANTS[451] is SRK2 in component parameter_values (minute).
 * CONSTANTS[452] is STA in component parameter_values (dimensionless).
 * CONSTANTS[453] is TENSGN in component parameter_values (dimensionless).
 * CONSTANTS[454] is TENSTC in component parameter_values (minute).
 * CONSTANTS[455] is TIMETR in component parameter_values (minute).
 * CONSTANTS[456] is TRNSFS in component parameter_values (dimensionless).
 * CONSTANTS[457] is TRPL in component parameter_values (L_per_minute).
 * CONSTANTS[458] is TSSLML in component parameter_values (dimensionless).
 * CONSTANTS[459] is TSSLTC in component parameter_values (per_minute).
 * CONSTANTS[460] is TVDDL in component parameter_values (minute).
 * CONSTANTS[461] is U in component parameter_values (dimensionless).
 * CONSTANTS[462] is VID1 in component parameter_values (L_per_minute).
 * CONSTANTS[463] is VIDML in component parameter_values (litre2_per_monovalent_mEq_per_minute).
 * CONSTANTS[464] is VNTSTM in component parameter_values (dimensionless).
 * CONSTANTS[465] is VP1 in component parameter_values (dimensionless).
 * CONSTANTS[466] is VPTISS in component parameter_values (litre).
 * CONSTANTS[467] is VTSF in component parameter_values (litre).
 * CONSTANTS[468] is VV9 in component parameter_values (litre).
 * CONSTANTS[469] is X in component parameter_values (dimensionless).
 * CONSTANTS[470] is Z in component parameter_values (dimensionless).
 * CONSTANTS[471] is Z4 in component parameter_values (dimensionless).
 * CONSTANTS[472] is Z5 in component parameter_values (dimensionless).
 * CONSTANTS[473] is Z6 in component parameter_values (dimensionless).
 * CONSTANTS[474] is Z7 in component parameter_values (dimensionless).
 * CONSTANTS[475] is Z10 in component parameter_values (mmHg).
 * CONSTANTS[476] is Z11 in component parameter_values (per_mmHg2).
 * CONSTANTS[477] is Z12 in component parameter_values (dimensionless).
 * CONSTANTS[478] is Z13 in component parameter_values (dimensionless).
 * CONSTANTS[479] is Z14 in component parameter_values (dimensionless).
 * CONSTANTS[480] is Z16 in component parameter_values (dimensionless).
 * CONSTANTS[481] is Z18 in component parameter_values (dimensionless).
 * CONSTANTS[482] is Z19 in component parameter_values (dimensionless).
 * CONSTANTS[483] is KID in component parameter_values (monovalent_mEq_per_minute).
 * CONSTANTS[484] is URFORM in component parameter_values (mOsm_per_minute).
 * CONSTANTS[485] is AUV in component parameter_values (dimensionless).
 * CONSTANTS[486] is AUY in component parameter_values (dimensionless).
 * CONSTANTS[487] is O2M in component parameter_values (mL_per_minute).
 * CONSTANTS[488] is NID in component parameter_values (monovalent_mEq_per_minute).
 * CONSTANTS[489] is ATRFBM in component parameter_values (dimensionless).
 * CONSTANTS[490] is GBL in component parameter_values (mmHg).
 * CONSTANTS[491] is RNAUGN in component parameter_values (minute_per_L).
 * CONSTANTS[492] is RNAULL in component parameter_values (dimensionless).
 * CONSTANTS[493] is RNAUUL in component parameter_values (dimensionless).
 * CONSTANTS[494] is HSR in component parameter_values (dimensionless).
 * CONSTANTS[495] is HSL in component parameter_values (dimensionless).
 * CONSTANTS[496] is HMK in component parameter_values (dimensionless).
 * CONSTANTS[497] is PO2AMB in component parameter_values (mmHg).
 * CONSTANTS[498] is HKM in component parameter_values (dimensionless).
 * CONSTANTS[499] is DR in component parameter_values (L_per_minute).
 * CONSTANTS[500] is ANPKNS in component parameter_values (dimensionless).
 * CONSTANTS[501] is RMULT1 in component parameter_values (dimensionless).
 * CONSTANTS[502] is GLPCA in component parameter_values (mmHg).
 * CONSTANTS[503] is RFN in component parameter_values (L_per_minute).
 * CONSTANTS[504] is RFABX in component parameter_values (dimensionless).
 * CONSTANTS[505] is ANPINF in component parameter_values (dimensionless).
 * CONSTANTS[506] is FIS in component parameter_values (L_per_minute_per_mmHg).
 * CONSTANTS[507] is CPPD in component parameter_values (gram_per_L).
 * CONSTANTS[508] is TRRBC in component parameter_values (L_per_minute).
 * CONSTANTS[509] is HYL in component parameter_values (gram).
 * CONSTANTS[510] is ATRVM in component parameter_values (litre).
 * CONSTANTS[511] is ADHC_init in component state_variables (dimensionless).
 * CONSTANTS[512] is AHY_init in component state_variables (dimensionless).
 * CONSTANTS[513] is AMC_init in component state_variables (dimensionless).
 * CONSTANTS[514] is AMM1T_init in component state_variables (dimensionless).
 * CONSTANTS[515] is AMM2_init in component state_variables (dimensionless).
 * CONSTANTS[516] is ANC_init in component state_variables (dimensionless).
 * CONSTANTS[517] is ANPC_init in component state_variables (dimensionless).
 * CONSTANTS[518] is ANX1_init in component state_variables (dimensionless).
 * CONSTANTS[519] is AR1T_init in component state_variables (dimensionless).
 * CONSTANTS[520] is AR2T_init in component state_variables (dimensionless).
 * CONSTANTS[521] is AR3T_init in component state_variables (dimensionless).
 * CONSTANTS[522] is AU1_init in component state_variables (dimensionless).
 * CONSTANTS[523] is AU4_init in component state_variables (dimensionless).
 * CONSTANTS[524] is AU6_init in component state_variables (dimensionless).
 * CONSTANTS[525] is DTKA_init in component state_variables (monovalent_mEq_per_minute).
 * CONSTANTS[526] is HMD1_init in component state_variables (dimensionless).
 * CONSTANTS[527] is HPL_init in component state_variables (dimensionless).
 * CONSTANTS[528] is HPR_init in component state_variables (dimensionless).
 * CONSTANTS[529] is KTOT_init in component state_variables (monovalent_mEq).
 * CONSTANTS[530] is NAE_init in component state_variables (monovalent_mEq).
 * CONSTANTS[531] is O2VAD1_init in component state_variables (dimensionless).
 * CONSTANTS[532] is OSV_init in component state_variables (dimensionless).
 * CONSTANTS[533] is OVA_init in component state_variables (mL_per_L).
 * CONSTANTS[534] is OVS_init in component state_variables (dimensionless).
 * CONSTANTS[535] is PAR1_init in component state_variables (mmHg).
 * CONSTANTS[536] is PC_init in component state_variables (mmHg).
 * CONSTANTS[537] is PLUR_init in component state_variables (mOsm).
 * CONSTANTS[538] is PPR1_init in component state_variables (gram).
 * CONSTANTS[539] is PRP_init in component state_variables (gram).
 * CONSTANTS[540] is QO2T_init in component state_variables (mL).
 * CONSTANTS[541] is QOM1_init in component state_variables (mL).
 * CONSTANTS[542] is RNAUG3_init in component state_variables (dimensionless).
 * CONSTANTS[543] is TSP_init in component state_variables (gram).
 * CONSTANTS[544] is TVD_init in component state_variables (L_per_minute).
 * CONSTANTS[545] is VAS1_init in component state_variables (litre).
 * CONSTANTS[546] is VIC_init in component state_variables (litre).
 * CONSTANTS[547] is VLA1_init in component state_variables (litre).
 * CONSTANTS[548] is VPA1_init in component state_variables (litre).
 * CONSTANTS[549] is VPF1_init in component state_variables (litre).
 * CONSTANTS[550] is VP_init in component state_variables (litre).
 * CONSTANTS[551] is VRA1_init in component state_variables (litre).
 * CONSTANTS[552] is VRC_init in component state_variables (litre).
 * CONSTANTS[553] is VTS2_init in component state_variables (litre).
 * CONSTANTS[554] is VTW_init in component state_variables (litre).
 * CONSTANTS[555] is VV6_init in component state_variables (litre).
 * CONSTANTS[556] is VV7_init in component state_variables (litre).
 * CONSTANTS[557] is VVS1_init in component state_variables (litre).
 * CONSTANTS[558] is O2ARTM in component M_O2_blood_supply (mL_per_minute).
 * ALGEBRAIC[5] is PVO in component M_venous_O2_content (mmHg).
 * ALGEBRAIC[6] is OVS in component M_venous_O2_content (dimensionless).
 * ALGEBRAIC[3] is MMO in component metabolic_O2_consumption_by_M_tissue (mL_per_minute).
 * ALGEBRAIC[2] is P2O in component metabolic_O2_consumption_by_M_tissue (mmHg).
 * ALGEBRAIC[0] is QOM in component volume_of_O2_in_M_tissue (mL).
 * ALGEBRAIC[7] is DO2M in component volume_of_O2_in_M_tissue (mL_per_minute).
 * STATES[0] is QOM1 in component volume_of_O2_in_M_tissue (mL).
 * RATES[0] is d/dt QOM1 in component volume_of_O2_in_M_tissue (mL).
 */
void
initConsts(double* CONSTANTS, double* RATES, double *STATES)
{
CONSTANTS[0] = 0.989949;
CONSTANTS[1] = 204.497;
CONSTANTS[2] = 40.0381;
CONSTANTS[3] = 1.00002;
CONSTANTS[4] = 0.5;
CONSTANTS[5] = 60;
CONSTANTS[6] = 40000;
CONSTANTS[7] = 0.1;
CONSTANTS[8] = 40000;
CONSTANTS[9] = 1;
CONSTANTS[10] = 4;
CONSTANTS[11] = 0;
CONSTANTS[12] = 0.2;
CONSTANTS[13] = 5;
CONSTANTS[14] = 0.3;
CONSTANTS[15] = 85;
CONSTANTS[16] = 15;
CONSTANTS[17] = 0.93617;
CONSTANTS[18] = 2.5;
CONSTANTS[19] = 0.333;
CONSTANTS[20] = 1000;
CONSTANTS[21] = 1;
CONSTANTS[22] = 0.3;
CONSTANTS[23] = 2;
CONSTANTS[24] = 0.3;
CONSTANTS[25] = 0;
CONSTANTS[26] = 0;
CONSTANTS[27] = 2.5;
CONSTANTS[28] = 0;
CONSTANTS[29] = 5;
CONSTANTS[30] = 0.65;
CONSTANTS[31] = 0.5;
CONSTANTS[32] = 12;
CONSTANTS[33] = 0.005;
CONSTANTS[34] = 0.005;
CONSTANTS[35] = 0.04;
CONSTANTS[36] = 0.8;
CONSTANTS[37] = 15;
CONSTANTS[38] = 60;
CONSTANTS[39] = 0.4;
CONSTANTS[40] = 0;
CONSTANTS[41] = 0;
CONSTANTS[42] = 2.5;
CONSTANTS[43] = 1.4;
CONSTANTS[44] = 0.86;
CONSTANTS[45] = 1.6;
CONSTANTS[46] = 0.3;
CONSTANTS[47] = 2;
CONSTANTS[48] = 0.7;
CONSTANTS[49] = 1;
CONSTANTS[50] = 2;
CONSTANTS[51] = 1.5;
CONSTANTS[52] = 1.8;
CONSTANTS[53] = 4;
CONSTANTS[54] = 1.5;
CONSTANTS[55] = 10;
CONSTANTS[56] = 12;
CONSTANTS[57] = 0.8;
CONSTANTS[58] = 6;
CONSTANTS[59] = 0;
CONSTANTS[60] = 5000;
CONSTANTS[61] = 0;
CONSTANTS[62] = -0.2;
CONSTANTS[63] = 0.005;
CONSTANTS[64] = 0.005;
CONSTANTS[65] = 0.5;
CONSTANTS[66] = 0.3;
CONSTANTS[67] = 0.3;
CONSTANTS[68] = 0.004;
CONSTANTS[69] = 1.5;
CONSTANTS[70] = 0;
CONSTANTS[71] = 3;
CONSTANTS[72] = 1;
CONSTANTS[73] = 5.0;
CONSTANTS[74] = 0.4;
CONSTANTS[75] = 0.3;
CONSTANTS[76] = 0.5;
CONSTANTS[77] = 1.0;
CONSTANTS[78] = 1;
CONSTANTS[79] = 1.5;
CONSTANTS[80] = 0;
CONSTANTS[81] = 7;
CONSTANTS[82] = 0.9;
CONSTANTS[83] = 1;
CONSTANTS[84] = 0.16;
CONSTANTS[85] = 0.01167;
CONSTANTS[86] = 4;
CONSTANTS[87] = 2;
CONSTANTS[88] = 0.0212;
CONSTANTS[89] = 0.2;
CONSTANTS[90] = 139;
CONSTANTS[91] = 0.0003;
CONSTANTS[92] = 0.000253;
CONSTANTS[93] = 40;
CONSTANTS[94] = 0.1;
CONSTANTS[95] = 0;
CONSTANTS[96] = 1;
CONSTANTS[97] = 0.05;
CONSTANTS[98] = 0.675;
CONSTANTS[99] = 1e-06;
CONSTANTS[100] = 1;
CONSTANTS[101] = 24;
CONSTANTS[102] = 0;
CONSTANTS[103] = 1;
CONSTANTS[104] = 0.01;
CONSTANTS[105] = 1.0;
CONSTANTS[106] = 0.17;
CONSTANTS[107] = 0;
CONSTANTS[108] = 0.8092;
CONSTANTS[109] = 0.0208333;
CONSTANTS[110] = 3;
CONSTANTS[111] = 0.001;
CONSTANTS[112] = 1.0;
CONSTANTS[113] = 1850;
CONSTANTS[114] = 4.714e-08;
CONSTANTS[115] = 0.4;
CONSTANTS[116] = 1;
CONSTANTS[117] = 0;
CONSTANTS[118] = 0;
CONSTANTS[119] = 10000;
CONSTANTS[120] = 8;
CONSTANTS[121] = 2.728e-14;
CONSTANTS[122] = 0.03;
CONSTANTS[123] = 10;
CONSTANTS[124] = 0.667;
CONSTANTS[125] = 0.005;
CONSTANTS[126] = 0.01;
CONSTANTS[127] = 0;
CONSTANTS[128] = 0.1;
CONSTANTS[129] = 0.01;
CONSTANTS[130] = 57.1;
CONSTANTS[131] = 1;
CONSTANTS[132] = 2;
CONSTANTS[133] = 1;
CONSTANTS[134] = 15;
CONSTANTS[135] = 0;
CONSTANTS[136] = -2;
CONSTANTS[137] = 0.79167;
CONSTANTS[138] = 1.8;
CONSTANTS[139] = 4.2;
CONSTANTS[140] = 30;
CONSTANTS[141] = 0.001;
CONSTANTS[142] = 0.1;
CONSTANTS[143] = 0.04;
CONSTANTS[144] = 2;
CONSTANTS[145] = 0.1;
CONSTANTS[146] = 35;
CONSTANTS[147] = 2;
CONSTANTS[148] = 8;
CONSTANTS[149] = 0.2;
CONSTANTS[150] = 0.15;
CONSTANTS[151] = 0.5;
CONSTANTS[152] = 96.3;
CONSTANTS[153] = 0;
CONSTANTS[154] = 30.52;
CONSTANTS[155] = 2000;
CONSTANTS[156] = 0;
CONSTANTS[157] = 1;
CONSTANTS[158] = 0.03;
CONSTANTS[159] = 0.3;
CONSTANTS[160] = 1;
CONSTANTS[161] = 0;
CONSTANTS[162] = 5.8e-06;
CONSTANTS[163] = 15;
CONSTANTS[164] = 0;
CONSTANTS[165] = 0;
CONSTANTS[166] = 0.9;
CONSTANTS[167] = 15.2;
CONSTANTS[168] = 6;
CONSTANTS[169] = 19.167;
CONSTANTS[170] = 1;
CONSTANTS[171] = 1;
CONSTANTS[172] = 1;
CONSTANTS[173] = 5;
CONSTANTS[174] = 10000;
CONSTANTS[175] = 0;
CONSTANTS[176] = 0;
CONSTANTS[177] = 0.05;
CONSTANTS[178] = 0;
CONSTANTS[179] = 0;
CONSTANTS[180] = 0;
CONSTANTS[181] = 0.15;
CONSTANTS[182] = 0.005;
CONSTANTS[183] = 30;
CONSTANTS[184] = 4;
CONSTANTS[185] = 0.01;
CONSTANTS[186] = 0.01;
CONSTANTS[187] = 1;
CONSTANTS[188] = 0.01;
CONSTANTS[189] = 0.0175;
CONSTANTS[190] = 6;
CONSTANTS[191] = 2.51;
CONSTANTS[192] = 4;
CONSTANTS[193] = 1;
CONSTANTS[194] = 0.5;
CONSTANTS[195] = 0.3;
CONSTANTS[196] = 20;
CONSTANTS[197] = 5;
CONSTANTS[198] = 45;
CONSTANTS[199] = 0.01;
CONSTANTS[200] = 5;
CONSTANTS[201] = 0.625;
CONSTANTS[202] = 5;
CONSTANTS[203] = 5;
CONSTANTS[204] = 5;
CONSTANTS[205] = 5;
CONSTANTS[206] = 0.08;
CONSTANTS[207] = 0.24;
CONSTANTS[208] = 0.55;
CONSTANTS[209] = 0;
CONSTANTS[210] = 164;
CONSTANTS[211] = 0.1;
CONSTANTS[212] = 0;
CONSTANTS[213] = 0;
CONSTANTS[214] = 0.6;
CONSTANTS[215] = 0.3;
CONSTANTS[216] = 10;
CONSTANTS[217] = 1;
CONSTANTS[218] = 1;
CONSTANTS[219] = 90;
CONSTANTS[220] = 150;
CONSTANTS[221] = 0.53333;
CONSTANTS[222] = 0;
CONSTANTS[223] = 0;
CONSTANTS[224] = 1;
CONSTANTS[225] = 1.0;
CONSTANTS[226] = 1.22057;
CONSTANTS[227] = 0.8;
CONSTANTS[228] = 0;
CONSTANTS[229] = 0;
CONSTANTS[230] = 31.9719;
CONSTANTS[231] = 0;
CONSTANTS[232] = 60;
CONSTANTS[233] = 0;
CONSTANTS[234] = 1.0;
CONSTANTS[235] = 0.301963;
CONSTANTS[236] = 1.0;
CONSTANTS[237] = 1.00269;
CONSTANTS[238] = 1.09071;
CONSTANTS[239] = 0.859476;
CONSTANTS[240] = 1.0;
CONSTANTS[241] = 0;
CONSTANTS[242] = 1.02127;
CONSTANTS[243] = 1.01179;
CONSTANTS[244] = 1.1448;
CONSTANTS[245] = 1.00007;
CONSTANTS[246] = -0.060024;
CONSTANTS[247] = 1.00132;
CONSTANTS[248] = 0.0367573;
CONSTANTS[249] = 1;
CONSTANTS[250] = 1.00163;
CONSTANTS[251] = 1.00237;
CONSTANTS[252] = 3622.54;
CONSTANTS[253] = 2109.91;
CONSTANTS[254] = 2.368e-07;
CONSTANTS[255] = 0.694163;
CONSTANTS[256] = 204.497;
CONSTANTS[257] = 0.699673;
CONSTANTS[258] = 103.525;
CONSTANTS[259] = 16.9144;
CONSTANTS[260] = 159.549;
CONSTANTS[261] = 0.419998;
CONSTANTS[262] = 216.243;
CONSTANTS[263] = 72.2362;
CONSTANTS[264] = 48.0839;
CONSTANTS[265] = 0;
CONSTANTS[266] = 279.945;
CONSTANTS[267] = 0.000980838;
CONSTANTS[268] = 0.862514;
CONSTANTS[269] = 25.0404;
CONSTANTS[270] = 0.379883;
CONSTANTS[271] = 0.38131;
CONSTANTS[272] = 0.0123238;
CONSTANTS[273] = 3.00449;
CONSTANTS[274] = 0.100043;
CONSTANTS[275] = 2.00439;
CONSTANTS[276] = 0;
CONSTANTS[277] = 39.8952;
CONSTANTS[278] = 0.0101913;
CONSTANTS[279] = 0.00366525;
CONSTANTS[280] = 3.28246;
CONSTANTS[281] = 0.5;
CONSTANTS[282] = 60;
CONSTANTS[283] = 40000;
CONSTANTS[284] = 0.1;
CONSTANTS[285] = 40000;
CONSTANTS[286] = 1;
CONSTANTS[287] = 4;
CONSTANTS[288] = 0;
CONSTANTS[289] = 0.2;
CONSTANTS[290] = 5;
CONSTANTS[291] = 0.3;
CONSTANTS[292] = 85;
CONSTANTS[293] = 15;
CONSTANTS[294] = 0.93617;
CONSTANTS[295] = 2.5;
CONSTANTS[296] = 0.333;
CONSTANTS[297] = 1000;
CONSTANTS[298] = 1;
CONSTANTS[299] = 0.3;
CONSTANTS[300] = 2;
CONSTANTS[301] = 0.3;
CONSTANTS[302] = 0;
CONSTANTS[303] = 0;
CONSTANTS[304] = 2.5;
CONSTANTS[305] = 0;
CONSTANTS[306] = 5;
CONSTANTS[307] = 0.65;
CONSTANTS[308] = 0.5;
CONSTANTS[309] = 12;
CONSTANTS[310] = 0.005;
CONSTANTS[311] = 0.005;
CONSTANTS[312] = 0.04;
CONSTANTS[313] = 0.8;
CONSTANTS[314] = 15;
CONSTANTS[315] = 60;
CONSTANTS[316] = 0.4;
CONSTANTS[317] = 0;
CONSTANTS[318] = 0;
CONSTANTS[319] = 2.5;
CONSTANTS[320] = 1.4;
CONSTANTS[321] = 0.86;
CONSTANTS[322] = 1.6;
CONSTANTS[323] = 0.3;
CONSTANTS[324] = 2;
CONSTANTS[325] = 0.7;
CONSTANTS[326] = 1;
CONSTANTS[327] = 2;
CONSTANTS[328] = 1.5;
CONSTANTS[329] = 1.8;
CONSTANTS[330] = 4;
CONSTANTS[331] = 1.5;
CONSTANTS[332] = 10;
CONSTANTS[333] = 12;
CONSTANTS[334] = 0.8;
CONSTANTS[335] = 6;
CONSTANTS[336] = 0;
CONSTANTS[337] = 5000;
CONSTANTS[338] = 0;
CONSTANTS[339] = -0.2;
CONSTANTS[340] = 0.005;
CONSTANTS[341] = 0.005;
CONSTANTS[342] = 0.5;
CONSTANTS[343] = 0.3;
CONSTANTS[344] = 0.3;
CONSTANTS[345] = 0.004;
CONSTANTS[346] = 1.5;
CONSTANTS[347] = 0;
CONSTANTS[348] = 3;
CONSTANTS[349] = 1;
CONSTANTS[350] = 5.0;
CONSTANTS[351] = 0.4;
CONSTANTS[352] = 0.3;
CONSTANTS[353] = 0.5;
CONSTANTS[354] = 1.0;
CONSTANTS[355] = 1;
CONSTANTS[356] = 1.5;
CONSTANTS[357] = 0;
CONSTANTS[358] = 7;
CONSTANTS[359] = 0.9;
CONSTANTS[360] = 1;
CONSTANTS[361] = 0.16;
CONSTANTS[362] = 0.01167;
CONSTANTS[363] = 4;
CONSTANTS[364] = 2;
CONSTANTS[365] = 0.0212;
CONSTANTS[366] = 0.2;
CONSTANTS[367] = 139;
CONSTANTS[368] = 0.0003;
CONSTANTS[369] = 0.000253;
CONSTANTS[370] = 40;
CONSTANTS[371] = 0.1;
CONSTANTS[372] = 0;
CONSTANTS[373] = 1;
CONSTANTS[374] = 0.05;
CONSTANTS[375] = 0.675;
CONSTANTS[376] = 1e-06;
CONSTANTS[377] = 1;
CONSTANTS[378] = 24;
CONSTANTS[379] = 0;
CONSTANTS[380] = 1;
CONSTANTS[381] = 0.01;
CONSTANTS[382] = 1.0;
CONSTANTS[383] = 0.17;
CONSTANTS[384] = 0;
CONSTANTS[385] = 0.8092;
CONSTANTS[386] = 0.0208333;
CONSTANTS[387] = 3;
CONSTANTS[388] = 0.001;
CONSTANTS[389] = 1.0;
CONSTANTS[390] = 1850;
CONSTANTS[391] = 4.714e-08;
CONSTANTS[392] = 0.4;
CONSTANTS[393] = 1;
CONSTANTS[394] = 0;
CONSTANTS[395] = 0;
CONSTANTS[396] = 10000;
CONSTANTS[397] = 8;
CONSTANTS[398] = 2.728e-14;
CONSTANTS[399] = 0.03;
CONSTANTS[400] = 10;
CONSTANTS[401] = 0.667;
CONSTANTS[402] = 0.005;
CONSTANTS[403] = 0.01;
CONSTANTS[404] = 0;
CONSTANTS[405] = 0.1;
CONSTANTS[406] = 0.01;
CONSTANTS[407] = 57.1;
CONSTANTS[408] = 1;
CONSTANTS[409] = 2;
CONSTANTS[410] = 1;
CONSTANTS[411] = 15;
CONSTANTS[412] = 0;
CONSTANTS[413] = -2;
CONSTANTS[414] = 0.79167;
CONSTANTS[415] = 1.8;
CONSTANTS[416] = 4.2;
CONSTANTS[417] = 30;
CONSTANTS[418] = 0.001;
CONSTANTS[419] = 0.1;
CONSTANTS[420] = 0.04;
CONSTANTS[421] = 2;
CONSTANTS[422] = 0.1;
CONSTANTS[423] = 35;
CONSTANTS[424] = 2;
CONSTANTS[425] = 8;
CONSTANTS[426] = 0.2;
CONSTANTS[427] = 0.15;
CONSTANTS[428] = 0.5;
CONSTANTS[429] = 96.3;
CONSTANTS[430] = 0;
CONSTANTS[431] = 30.52;
CONSTANTS[432] = 2000;
CONSTANTS[433] = 0;
CONSTANTS[434] = 1;
CONSTANTS[435] = 0.03;
CONSTANTS[436] = 0.3;
CONSTANTS[437] = 1;
CONSTANTS[438] = 0;
CONSTANTS[439] = 5.8e-06;
CONSTANTS[440] = 15;
CONSTANTS[441] = 0;
CONSTANTS[442] = 0;
CONSTANTS[443] = 0.9;
CONSTANTS[444] = 15.2;
CONSTANTS[445] = 6;
CONSTANTS[446] = 19.167;
CONSTANTS[447] = 1;
CONSTANTS[448] = 1;
CONSTANTS[449] = 1;
CONSTANTS[450] = 5;
CONSTANTS[451] = 10000;
CONSTANTS[452] = 0;
CONSTANTS[453] = 0;
CONSTANTS[454] = 0.05;
CONSTANTS[455] = 0;
CONSTANTS[456] = 0;
CONSTANTS[457] = 0;
CONSTANTS[458] = 0.15;
CONSTANTS[459] = 0.005;
CONSTANTS[460] = 30;
CONSTANTS[461] = 4;
CONSTANTS[462] = 0.01;
CONSTANTS[463] = 0.01;
CONSTANTS[464] = 1;
CONSTANTS[465] = 0.01;
CONSTANTS[466] = 0.0175;
CONSTANTS[467] = 6;
CONSTANTS[468] = 2.51;
CONSTANTS[469] = 4;
CONSTANTS[470] = 1;
CONSTANTS[471] = 0.5;
CONSTANTS[472] = 0.3;
CONSTANTS[473] = 20;
CONSTANTS[474] = 5;
CONSTANTS[475] = 45;
CONSTANTS[476] = 0.01;
CONSTANTS[477] = 5;
CONSTANTS[478] = 0.625;
CONSTANTS[479] = 5;
CONSTANTS[480] = 5;
CONSTANTS[481] = 5;
CONSTANTS[482] = 5;
CONSTANTS[483] = 0.08;
CONSTANTS[484] = 0.24;
CONSTANTS[485] = 0.55;
CONSTANTS[486] = 0;
CONSTANTS[487] = 164;
CONSTANTS[488] = 0.1;
CONSTANTS[489] = 0;
CONSTANTS[490] = 0;
CONSTANTS[491] = 0.6;
CONSTANTS[492] = 0.3;
CONSTANTS[493] = 10;
CONSTANTS[494] = 1;
CONSTANTS[495] = 1;
CONSTANTS[496] = 90;
CONSTANTS[497] = 150;
CONSTANTS[498] = 0.53333;
CONSTANTS[499] = 0;
CONSTANTS[500] = 0;
CONSTANTS[501] = 1;
CONSTANTS[502] = 1.0;
CONSTANTS[503] = 1.22057;
CONSTANTS[504] = 0.8;
CONSTANTS[505] = 0;
CONSTANTS[506] = 0;
CONSTANTS[507] = 31.9719;
CONSTANTS[508] = 0;
CONSTANTS[509] = 60;
CONSTANTS[510] = 0;
CONSTANTS[511] = 1.0;
CONSTANTS[512] = 0.301963;
CONSTANTS[513] = 1.0;
CONSTANTS[514] = 1.00269;
CONSTANTS[515] = 1.09071;
CONSTANTS[516] = 0.859476;
CONSTANTS[517] = 1.0;
CONSTANTS[518] = 0;
CONSTANTS[519] = 1.02127;
CONSTANTS[520] = 1.01179;
CONSTANTS[521] = 1.1448;
CONSTANTS[522] = 1.00007;
CONSTANTS[523] = -0.060024;
CONSTANTS[524] = 1.00132;
CONSTANTS[525] = 0.0367573;
CONSTANTS[526] = 1;
CONSTANTS[527] = 1.00163;
CONSTANTS[528] = 1.00237;
CONSTANTS[529] = 3622.54;
CONSTANTS[530] = 2109.91;
CONSTANTS[531] = 2.368e-07;
CONSTANTS[532] = 0.694163;
CONSTANTS[533] = 204.497;
CONSTANTS[534] = 0.699673;
CONSTANTS[535] = 103.525;
CONSTANTS[536] = 16.9144;
CONSTANTS[537] = 159.549;
CONSTANTS[538] = 0.419998;
CONSTANTS[539] = 216.243;
CONSTANTS[540] = 72.2362;
CONSTANTS[541] = 48.0839;
CONSTANTS[542] = 0;
CONSTANTS[543] = 279.945;
CONSTANTS[544] = 0.000980838;
CONSTANTS[545] = 0.862514;
CONSTANTS[546] = 25.0404;
CONSTANTS[547] = 0.379883;
CONSTANTS[548] = 0.38131;
CONSTANTS[549] = 0.0123238;
CONSTANTS[550] = 3.00449;
CONSTANTS[551] = 0.100043;
CONSTANTS[552] = 2.00439;
CONSTANTS[553] = 0;
CONSTANTS[554] = 39.8952;
CONSTANTS[555] = 0.0101913;
CONSTANTS[556] = 0.00366525;
CONSTANTS[557] = 3.28246;
CONSTANTS[558] =  CONSTANTS[1]*CONSTANTS[0];
STATES[0] = CONSTANTS[541];
}
void
computeRates(double VOI, double* CONSTANTS, double* RATES, double* STATES, double* ALGEBRAIC)
{
ALGEBRAIC[0] = (STATES[0]<0.000100000 ? 0.000100000 : STATES[0]);
ALGEBRAIC[1] =  CONSTANTS[414]*ALGEBRAIC[0];
rootfind_0(VOI, CONSTANTS, RATES, STATES, ALGEBRAIC, pret);
ALGEBRAIC[2] = (ALGEBRAIC[1]>38.0000 ? 38.0000 : ALGEBRAIC[1]);
ALGEBRAIC[3] =  CONSTANTS[3]*CONSTANTS[407]*CONSTANTS[380]*(1.00000 - pow(38.0001 - ALGEBRAIC[2], 3.00000)/54872.0);
ALGEBRAIC[7] = ALGEBRAIC[4] - ALGEBRAIC[3];
RATES[0] = ALGEBRAIC[7];
}
void
computeVariables(double VOI, double* CONSTANTS, double* RATES, double* STATES, double* ALGEBRAIC)
{
ALGEBRAIC[0] = (STATES[0]<0.000100000 ? 0.000100000 : STATES[0]);
ALGEBRAIC[1] =  CONSTANTS[414]*ALGEBRAIC[0];
ALGEBRAIC[2] = (ALGEBRAIC[1]>38.0000 ? 38.0000 : ALGEBRAIC[1]);
ALGEBRAIC[3] =  CONSTANTS[3]*CONSTANTS[407]*CONSTANTS[380]*(1.00000 - pow(38.0001 - ALGEBRAIC[2], 3.00000)/54872.0);
ALGEBRAIC[7] = ALGEBRAIC[4] - ALGEBRAIC[3];
}

void objfunc_0(double *p, double *hx, int m, int n, void *adata)
{
  struct rootfind_info* rfi = (struct rootfind_info*)adata;
#define VOI rfi->aVOI
#define CONSTANTS rfi->aCONSTANTS
#define RATES rfi->aRATES
#define STATES rfi->aSTATES
#define ALGEBRAIC rfi->aALGEBRAIC
#define pret rfi->aPRET
  ALGEBRAIC[4] = p[0];
  ALGEBRAIC[5] = p[1];
  ALGEBRAIC[6] = p[2];
  hx[0] = ALGEBRAIC[6] - (CONSTANTS[558] - ALGEBRAIC[4])/( CONSTANTS[2]*5.25000*CONSTANTS[0]);
  hx[1] = ALGEBRAIC[5] -  57.1400*ALGEBRAIC[6]*pow(CONSTANTS[380], CONSTANTS[383]);
  hx[2] = ALGEBRAIC[4] -  (ALGEBRAIC[5] - ALGEBRAIC[1])*CONSTANTS[417]*CONSTANTS[0];
#undef VOI
#undef CONSTANTS
#undef RATES
#undef STATES
#undef ALGEBRAIC
#undef pret
}
void rootfind_0(double VOI, double* CONSTANTS, double* RATES,
double* STATES, double* ALGEBRAIC, int* pret)
{
  static double p[3] = {0.1,0.1,0.1};
  double bp[3], work[LM_DIF_WORKSZ(3, 3)];
  struct rootfind_info rfi;
  rfi.aVOI = VOI;
  rfi.aCONSTANTS = CONSTANTS;
  rfi.aRATES = RATES;
  rfi.aSTATES = STATES;
  rfi.aALGEBRAIC = ALGEBRAIC;
  rfi.aPRET = pret;
  do_levmar(objfunc_0, p, bp, work, pret, 3, &rfi);
  ALGEBRAIC[4] = p[0];
  ALGEBRAIC[5] = p[1];
  ALGEBRAIC[6] = p[2];
}