7 #define COMPACT_PRINTOUT_P_THRESHOLD 8
14 int main(
int argc,
char * argv[])
17 double start, stop, interval;
20 char logfilepath[1000];
26 int iteration_number = 0;
28 int * p_iteration_number = &iteration_number;
39 int FLAME_firm_bank_init_loans_message_board_write;
40 int FLAME_firm_bank_init_loans_message_board_read;
41 int FLAME_firm_bank_init_deposit_message_board_write;
42 int FLAME_firm_bank_init_deposit_message_board_read;
43 int FLAME_firm_bank_update_deposit_message_board_write;
44 int FLAME_firm_bank_update_deposit_message_board_read;
45 int FLAME_household_bank_init_mortgages_message_board_write;
46 int FLAME_household_bank_init_mortgages_message_board_read;
47 int FLAME_household_bank_init_deposit_message_board_write;
48 int FLAME_household_bank_init_deposit_message_board_read;
49 int FLAME_household_bank_update_deposit_message_board_write;
50 int FLAME_household_bank_update_deposit_message_board_read;
51 int FLAME_bank_centralbank_init_debt_message_board_write;
52 int FLAME_bank_centralbank_init_debt_message_board_read;
53 int FLAME_bank_centralbank_init_deposit_message_board_write;
54 int FLAME_bank_centralbank_init_deposit_message_board_read;
55 int FLAME_bank_centralbank_update_deposit_message_board_write;
56 int FLAME_bank_centralbank_update_deposit_message_board_read;
57 int FLAME_fund_centralbank_init_deposit_message_board_write;
58 int FLAME_fund_centralbank_init_deposit_message_board_read;
59 int FLAME_fund_centralbank_update_deposit_message_board_write;
60 int FLAME_fund_centralbank_update_deposit_message_board_read;
61 int FLAME_gov_centralbank_init_deposit_message_board_write;
62 int FLAME_gov_centralbank_init_deposit_message_board_read;
63 int FLAME_gov_centralbank_update_deposit_message_board_write;
64 int FLAME_gov_centralbank_update_deposit_message_board_read;
65 int FLAME_interest_rate_message_board_write;
66 int FLAME_interest_rate_message_board_read;
67 int FLAME_capital_tax_rate_message_board_write;
68 int FLAME_capital_tax_rate_message_board_read;
69 int FLAME_labour_tax_rate_message_board_write;
70 int FLAME_labour_tax_rate_message_board_read;
71 int FLAME_household_jpoffice_id_message_board_write;
72 int FLAME_household_jpoffice_id_message_board_read;
73 int FLAME_jpoffice_household_employer_message_board_write;
74 int FLAME_jpoffice_household_employer_message_board_read;
75 int FLAME_firm_jpoffice_id_message_board_write;
76 int FLAME_firm_jpoffice_id_message_board_read;
77 int FLAME_jpoffice_firm_employee_message_board_write;
78 int FLAME_jpoffice_firm_employee_message_board_read;
79 int FLAME_buy_message_board_write;
80 int FLAME_buy_message_board_read;
81 int FLAME_bought_message_board_write;
82 int FLAME_bought_message_board_read;
83 int FLAME_sell_message_board_write;
84 int FLAME_sell_message_board_read;
85 int FLAME_sold_message_board_write;
86 int FLAME_sold_message_board_read;
87 int FLAME_goods_transactions_summary_message_board_write;
88 int FLAME_goods_transactions_summary_message_board_read;
89 int FLAME_centralbank_households_quarterly_cpi_message_board_write;
90 int FLAME_centralbank_households_quarterly_cpi_message_board_read;
91 int FLAME_fired_message_board_write;
92 int FLAME_fired_message_board_read;
93 int FLAME_vacancy_stage1_message_board_write;
94 int FLAME_vacancy_stage1_message_board_read;
95 int FLAME_job_application_stage2_message_board_write;
96 int FLAME_job_application_stage2_message_board_read;
97 int FLAME_job_application_stage1_message_board_write;
98 int FLAME_job_application_stage1_message_board_read;
99 int FLAME_job_match_stage1_message_board_write;
100 int FLAME_job_match_stage1_message_board_read;
101 int FLAME_job_change_message_board_write;
102 int FLAME_job_change_message_board_read;
103 int FLAME_vacancy_stage2_message_board_write;
104 int FLAME_vacancy_stage2_message_board_read;
105 int FLAME_job_match_stage2_message_board_write;
106 int FLAME_job_match_stage2_message_board_read;
107 int FLAME_employment_status_message_board_write;
108 int FLAME_employment_status_message_board_read;
109 int FLAME_firm_household_wage_payment_message_board_write;
110 int FLAME_firm_household_wage_payment_message_board_read;
111 int FLAME_firm_bank_loan_request_1_message_board_write;
112 int FLAME_firm_bank_loan_request_1_message_board_read;
113 int FLAME_firm_bank_loan_request_2_message_board_write;
114 int FLAME_firm_bank_loan_request_2_message_board_read;
115 int FLAME_bank_firm_loan_acknowledge_1_message_board_write;
116 int FLAME_bank_firm_loan_acknowledge_1_message_board_read;
117 int FLAME_bank_firm_loan_acknowledge_2_message_board_write;
118 int FLAME_bank_firm_loan_acknowledge_2_message_board_read;
119 int FLAME_bank_centralbank_debt_request_message_board_write;
120 int FLAME_bank_centralbank_debt_request_message_board_read;
121 int FLAME_household_share_message_board_write;
122 int FLAME_household_share_message_board_read;
123 int FLAME_capital_tax_message_board_write;
124 int FLAME_capital_tax_message_board_read;
125 int FLAME_labour_tax_message_board_write;
126 int FLAME_labour_tax_message_board_read;
127 int FLAME_unemployment_benefit_message_board_write;
128 int FLAME_unemployment_benefit_message_board_read;
129 int FLAME_general_benefit_message_board_write;
130 int FLAME_general_benefit_message_board_read;
131 int FLAME_fund_request_message_board_write;
132 int FLAME_fund_request_message_board_read;
133 int FLAME_fund_request_ack_message_board_write;
134 int FLAME_fund_request_ack_message_board_read;
135 int FLAME_new_entrant_loan_message_board_write;
136 int FLAME_new_entrant_loan_message_board_read;
137 int FLAME_firm_bank_interest_on_loan_message_board_write;
138 int FLAME_firm_bank_interest_on_loan_message_board_read;
139 int FLAME_loan_writeoff_message_board_write;
140 int FLAME_loan_writeoff_message_board_read;
141 int FLAME_firm_bank_insolvent_account_message_board_write;
142 int FLAME_firm_bank_insolvent_account_message_board_read;
143 int FLAME_firm_net_profit_message_board_write;
144 int FLAME_firm_net_profit_message_board_read;
145 int FLAME_bank_net_profit_message_board_write;
146 int FLAME_bank_net_profit_message_board_read;
147 int FLAME_bank_centralbank_interest_payment_message_board_write;
148 int FLAME_bank_centralbank_interest_payment_message_board_read;
149 int FLAME_bank_centralbank_debt_payment_message_board_write;
150 int FLAME_bank_centralbank_debt_payment_message_board_read;
151 int FLAME_gov_centralbank_debt_request_message_board_write;
152 int FLAME_gov_centralbank_debt_request_message_board_read;
153 int FLAME_gov_centralbank_debt_payment_message_board_write;
154 int FLAME_gov_centralbank_debt_payment_message_board_read;
155 int FLAME_centralbank_government_profit_message_board_write;
156 int FLAME_centralbank_government_profit_message_board_read;
157 int FLAME_housing_price_message_board_write;
158 int FLAME_housing_price_message_board_read;
159 int FLAME_buy_housing_message_board_write;
160 int FLAME_buy_housing_message_board_read;
161 int FLAME_sell_housing_message_board_write;
162 int FLAME_sell_housing_message_board_read;
163 int FLAME_bought_housing_message_board_write;
164 int FLAME_bought_housing_message_board_read;
165 int FLAME_sold_housing_message_board_write;
166 int FLAME_sold_housing_message_board_read;
167 int FLAME_bank_reagency_credibility_message_board_write;
168 int FLAME_bank_reagency_credibility_message_board_read;
169 int FLAME_mortgage_requests_message_board_write;
170 int FLAME_mortgage_requests_message_board_read;
171 int FLAME_mortgage_payment_from_sale_message_board_write;
172 int FLAME_mortgage_payment_from_sale_message_board_read;
173 int FLAME_mortgage_payment_message_board_write;
174 int FLAME_mortgage_payment_message_board_read;
175 int FLAME_mortgage_writeoff_message_board_write;
176 int FLAME_mortgage_writeoff_message_board_read;
177 int FLAME_housing_transactions_summary_message_board_write;
178 int FLAME_housing_transactions_summary_message_board_read;
181 double cloud_data[6] = {0.0,0.0,0.0,0.0,0.0,0.0};
183 int FLAME_debug_count;
186 int partition_method=1;
199 if (rc != MB_SUCCESS)
201 fprintf(stderr,
"ERROR: Failed to initialise Message Board environment\n");
204 fprintf(stderr,
"\t reason: MPI library not initialised\n");
206 case MB_ERR_MEMALLOC:
207 fprintf(stderr,
"\t reason: out of memory\n");
210 fprintf(stderr,
"\t MB_Env_Init returned error code: %d (see libmboard docs for details)\n", rc);
222 if(
current_xmachine == NULL) {printf(
"**** ERROR in Memory check current_xmachine\n");exit(EXIT_FAILURE);}
229 printf(
"FLAME Application: ICEACE \n");
232 printf(
"Debug mode enabled \n");
233 FLAME_debug_count = 0;
235 if(FLAME_debug_count == 0) {}
243 printf(
"Usage: %s <number of iterations> [<states_directory>]/<init_state> <partitions> [-f # | -f #+#]\n",argv[0]);
244 printf(
"\t-f\tOutput frequency, 1st # is frequency, 2nd # is the offset if required\n");
250 iteration_total = atoi(argv[1]);
251 printf(
"Iterations: %i\n", iteration_total);
256 printf(
"Need two parameters\n");
259 strcpy(inputpath, argv[2]);
264 while(inputpath[i] !=
'\0')
267 if(inputpath[i] ==
'\\') lastd=i;
269 if(inputpath[i] ==
'/') lastd=i;
289 if(strcmp(argv[i],
"-f") == 0)
295 c = strchr(argv[(i+1)],
'+');
304 argv[(i+1)][c-argv[(i+1)]] =
'\0';
311 printf(
"Output frequency cannot be zero\n");
319 printf(
"Output frequency number not defined\n");
324 if(strcmp(argv[i],
"-g") == 0) partition_method = 1;
325 if(strcmp(argv[i],
"-r") == 0) partition_method = 2;
372 sprintf(logfilepath,
"%slog.xml",
outputpath);
373 if((file = fopen(logfilepath,
"w"))==NULL)
375 printf(
"Error: cannot open file '%s' for writing\n", logfilepath);
378 (void)fputs(
"<model_run>\n", file);
379 (void)fputs(
"<codetype>", file);
380 (void)fputs(
"serial", file);
382 (void)fputs(
"</codetype>\n", file);
383 (void)fputs(
"<nodes>", file);
385 (void)fputs(data, file);
386 (void)fputs(
"</nodes>\n", file);
389 (void)fputs(
"<!-- <time> unit: milliseconds -->\n", file);
391 sprintf(data,
"unspecified");
393 (void)fputs(
"<!-- <time> timer resolution: ", file);
394 (void)fputs(data, file);
395 (void)fputs(
")-->\n", file);
399 sprintf(data,
"%.2e ms", (stop - start) * 1000.0);
400 (void)fputs(
"<!-- <time> timer overhead: ~", file);
401 (void)fputs(data, file);
402 (void)fputs(
")-->\n", file);
409 FLAME_firm_bank_init_loans_message_board_write = 0;
410 FLAME_firm_bank_init_loans_message_board_read = 0;
418 if(FLAME_firm_bank_init_loans_message_board_write == 0 &&
419 FLAME_firm_bank_init_loans_message_board_read == 0)
421 if(FLAME_firm_bank_init_loans_message_board_write == 1 &&
422 FLAME_firm_bank_init_loans_message_board_read == 0)
424 if(FLAME_firm_bank_init_loans_message_board_write == 0 &&
425 FLAME_firm_bank_init_loans_message_board_read == 1)
427 if(FLAME_firm_bank_init_loans_message_board_write == 1 &&
428 FLAME_firm_bank_init_loans_message_board_read == 1)
431 if (rc != MB_SUCCESS)
433 fprintf(stderr,
"ERROR: Could not set access mode of 'firm_bank_init_loans' board\n");
436 fprintf(stderr,
"\t reason: 'firm_bank_init_loans' board is invalid\n");
439 fprintf(stderr,
"\t reason: 'firm_bank_init_loans' board is locked\n");
441 case MB_ERR_MEMALLOC:
442 fprintf(stderr,
"\t reason: out of memory\n");
444 case MB_ERR_INTERNAL:
445 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
448 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
455 FLAME_firm_bank_init_deposit_message_board_write = 0;
456 FLAME_firm_bank_init_deposit_message_board_read = 0;
464 if(FLAME_firm_bank_init_deposit_message_board_write == 0 &&
465 FLAME_firm_bank_init_deposit_message_board_read == 0)
467 if(FLAME_firm_bank_init_deposit_message_board_write == 1 &&
468 FLAME_firm_bank_init_deposit_message_board_read == 0)
470 if(FLAME_firm_bank_init_deposit_message_board_write == 0 &&
471 FLAME_firm_bank_init_deposit_message_board_read == 1)
473 if(FLAME_firm_bank_init_deposit_message_board_write == 1 &&
474 FLAME_firm_bank_init_deposit_message_board_read == 1)
477 if (rc != MB_SUCCESS)
479 fprintf(stderr,
"ERROR: Could not set access mode of 'firm_bank_init_deposit' board\n");
482 fprintf(stderr,
"\t reason: 'firm_bank_init_deposit' board is invalid\n");
485 fprintf(stderr,
"\t reason: 'firm_bank_init_deposit' board is locked\n");
487 case MB_ERR_MEMALLOC:
488 fprintf(stderr,
"\t reason: out of memory\n");
490 case MB_ERR_INTERNAL:
491 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
494 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
501 FLAME_firm_bank_update_deposit_message_board_write = 0;
502 FLAME_firm_bank_update_deposit_message_board_read = 0;
510 if(FLAME_firm_bank_update_deposit_message_board_write == 0 &&
511 FLAME_firm_bank_update_deposit_message_board_read == 0)
513 if(FLAME_firm_bank_update_deposit_message_board_write == 1 &&
514 FLAME_firm_bank_update_deposit_message_board_read == 0)
516 if(FLAME_firm_bank_update_deposit_message_board_write == 0 &&
517 FLAME_firm_bank_update_deposit_message_board_read == 1)
519 if(FLAME_firm_bank_update_deposit_message_board_write == 1 &&
520 FLAME_firm_bank_update_deposit_message_board_read == 1)
523 if (rc != MB_SUCCESS)
525 fprintf(stderr,
"ERROR: Could not set access mode of 'firm_bank_update_deposit' board\n");
528 fprintf(stderr,
"\t reason: 'firm_bank_update_deposit' board is invalid\n");
531 fprintf(stderr,
"\t reason: 'firm_bank_update_deposit' board is locked\n");
533 case MB_ERR_MEMALLOC:
534 fprintf(stderr,
"\t reason: out of memory\n");
536 case MB_ERR_INTERNAL:
537 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
540 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
547 FLAME_household_bank_init_mortgages_message_board_write = 0;
548 FLAME_household_bank_init_mortgages_message_board_read = 0;
556 if(FLAME_household_bank_init_mortgages_message_board_write == 0 &&
557 FLAME_household_bank_init_mortgages_message_board_read == 0)
559 if(FLAME_household_bank_init_mortgages_message_board_write == 1 &&
560 FLAME_household_bank_init_mortgages_message_board_read == 0)
562 if(FLAME_household_bank_init_mortgages_message_board_write == 0 &&
563 FLAME_household_bank_init_mortgages_message_board_read == 1)
565 if(FLAME_household_bank_init_mortgages_message_board_write == 1 &&
566 FLAME_household_bank_init_mortgages_message_board_read == 1)
569 if (rc != MB_SUCCESS)
571 fprintf(stderr,
"ERROR: Could not set access mode of 'household_bank_init_mortgages' board\n");
574 fprintf(stderr,
"\t reason: 'household_bank_init_mortgages' board is invalid\n");
577 fprintf(stderr,
"\t reason: 'household_bank_init_mortgages' board is locked\n");
579 case MB_ERR_MEMALLOC:
580 fprintf(stderr,
"\t reason: out of memory\n");
582 case MB_ERR_INTERNAL:
583 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
586 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
593 FLAME_household_bank_init_deposit_message_board_write = 0;
594 FLAME_household_bank_init_deposit_message_board_read = 0;
602 if(FLAME_household_bank_init_deposit_message_board_write == 0 &&
603 FLAME_household_bank_init_deposit_message_board_read == 0)
605 if(FLAME_household_bank_init_deposit_message_board_write == 1 &&
606 FLAME_household_bank_init_deposit_message_board_read == 0)
608 if(FLAME_household_bank_init_deposit_message_board_write == 0 &&
609 FLAME_household_bank_init_deposit_message_board_read == 1)
611 if(FLAME_household_bank_init_deposit_message_board_write == 1 &&
612 FLAME_household_bank_init_deposit_message_board_read == 1)
615 if (rc != MB_SUCCESS)
617 fprintf(stderr,
"ERROR: Could not set access mode of 'household_bank_init_deposit' board\n");
620 fprintf(stderr,
"\t reason: 'household_bank_init_deposit' board is invalid\n");
623 fprintf(stderr,
"\t reason: 'household_bank_init_deposit' board is locked\n");
625 case MB_ERR_MEMALLOC:
626 fprintf(stderr,
"\t reason: out of memory\n");
628 case MB_ERR_INTERNAL:
629 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
632 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
639 FLAME_household_bank_update_deposit_message_board_write = 0;
640 FLAME_household_bank_update_deposit_message_board_read = 0;
648 if(FLAME_household_bank_update_deposit_message_board_write == 0 &&
649 FLAME_household_bank_update_deposit_message_board_read == 0)
651 if(FLAME_household_bank_update_deposit_message_board_write == 1 &&
652 FLAME_household_bank_update_deposit_message_board_read == 0)
654 if(FLAME_household_bank_update_deposit_message_board_write == 0 &&
655 FLAME_household_bank_update_deposit_message_board_read == 1)
657 if(FLAME_household_bank_update_deposit_message_board_write == 1 &&
658 FLAME_household_bank_update_deposit_message_board_read == 1)
661 if (rc != MB_SUCCESS)
663 fprintf(stderr,
"ERROR: Could not set access mode of 'household_bank_update_deposit' board\n");
666 fprintf(stderr,
"\t reason: 'household_bank_update_deposit' board is invalid\n");
669 fprintf(stderr,
"\t reason: 'household_bank_update_deposit' board is locked\n");
671 case MB_ERR_MEMALLOC:
672 fprintf(stderr,
"\t reason: out of memory\n");
674 case MB_ERR_INTERNAL:
675 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
678 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
685 FLAME_bank_centralbank_init_debt_message_board_write = 0;
686 FLAME_bank_centralbank_init_debt_message_board_read = 0;
694 if(FLAME_bank_centralbank_init_debt_message_board_write == 0 &&
695 FLAME_bank_centralbank_init_debt_message_board_read == 0)
697 if(FLAME_bank_centralbank_init_debt_message_board_write == 1 &&
698 FLAME_bank_centralbank_init_debt_message_board_read == 0)
700 if(FLAME_bank_centralbank_init_debt_message_board_write == 0 &&
701 FLAME_bank_centralbank_init_debt_message_board_read == 1)
703 if(FLAME_bank_centralbank_init_debt_message_board_write == 1 &&
704 FLAME_bank_centralbank_init_debt_message_board_read == 1)
707 if (rc != MB_SUCCESS)
709 fprintf(stderr,
"ERROR: Could not set access mode of 'bank_centralbank_init_debt' board\n");
712 fprintf(stderr,
"\t reason: 'bank_centralbank_init_debt' board is invalid\n");
715 fprintf(stderr,
"\t reason: 'bank_centralbank_init_debt' board is locked\n");
717 case MB_ERR_MEMALLOC:
718 fprintf(stderr,
"\t reason: out of memory\n");
720 case MB_ERR_INTERNAL:
721 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
724 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
731 FLAME_bank_centralbank_init_deposit_message_board_write = 0;
732 FLAME_bank_centralbank_init_deposit_message_board_read = 0;
740 if(FLAME_bank_centralbank_init_deposit_message_board_write == 0 &&
741 FLAME_bank_centralbank_init_deposit_message_board_read == 0)
743 if(FLAME_bank_centralbank_init_deposit_message_board_write == 1 &&
744 FLAME_bank_centralbank_init_deposit_message_board_read == 0)
746 if(FLAME_bank_centralbank_init_deposit_message_board_write == 0 &&
747 FLAME_bank_centralbank_init_deposit_message_board_read == 1)
749 if(FLAME_bank_centralbank_init_deposit_message_board_write == 1 &&
750 FLAME_bank_centralbank_init_deposit_message_board_read == 1)
753 if (rc != MB_SUCCESS)
755 fprintf(stderr,
"ERROR: Could not set access mode of 'bank_centralbank_init_deposit' board\n");
758 fprintf(stderr,
"\t reason: 'bank_centralbank_init_deposit' board is invalid\n");
761 fprintf(stderr,
"\t reason: 'bank_centralbank_init_deposit' board is locked\n");
763 case MB_ERR_MEMALLOC:
764 fprintf(stderr,
"\t reason: out of memory\n");
766 case MB_ERR_INTERNAL:
767 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
770 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
777 FLAME_bank_centralbank_update_deposit_message_board_write = 0;
778 FLAME_bank_centralbank_update_deposit_message_board_read = 0;
786 if(FLAME_bank_centralbank_update_deposit_message_board_write == 0 &&
787 FLAME_bank_centralbank_update_deposit_message_board_read == 0)
789 if(FLAME_bank_centralbank_update_deposit_message_board_write == 1 &&
790 FLAME_bank_centralbank_update_deposit_message_board_read == 0)
792 if(FLAME_bank_centralbank_update_deposit_message_board_write == 0 &&
793 FLAME_bank_centralbank_update_deposit_message_board_read == 1)
795 if(FLAME_bank_centralbank_update_deposit_message_board_write == 1 &&
796 FLAME_bank_centralbank_update_deposit_message_board_read == 1)
799 if (rc != MB_SUCCESS)
801 fprintf(stderr,
"ERROR: Could not set access mode of 'bank_centralbank_update_deposit' board\n");
804 fprintf(stderr,
"\t reason: 'bank_centralbank_update_deposit' board is invalid\n");
807 fprintf(stderr,
"\t reason: 'bank_centralbank_update_deposit' board is locked\n");
809 case MB_ERR_MEMALLOC:
810 fprintf(stderr,
"\t reason: out of memory\n");
812 case MB_ERR_INTERNAL:
813 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
816 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
823 FLAME_fund_centralbank_init_deposit_message_board_write = 0;
824 FLAME_fund_centralbank_init_deposit_message_board_read = 0;
832 if(FLAME_fund_centralbank_init_deposit_message_board_write == 0 &&
833 FLAME_fund_centralbank_init_deposit_message_board_read == 0)
835 if(FLAME_fund_centralbank_init_deposit_message_board_write == 1 &&
836 FLAME_fund_centralbank_init_deposit_message_board_read == 0)
838 if(FLAME_fund_centralbank_init_deposit_message_board_write == 0 &&
839 FLAME_fund_centralbank_init_deposit_message_board_read == 1)
841 if(FLAME_fund_centralbank_init_deposit_message_board_write == 1 &&
842 FLAME_fund_centralbank_init_deposit_message_board_read == 1)
845 if (rc != MB_SUCCESS)
847 fprintf(stderr,
"ERROR: Could not set access mode of 'fund_centralbank_init_deposit' board\n");
850 fprintf(stderr,
"\t reason: 'fund_centralbank_init_deposit' board is invalid\n");
853 fprintf(stderr,
"\t reason: 'fund_centralbank_init_deposit' board is locked\n");
855 case MB_ERR_MEMALLOC:
856 fprintf(stderr,
"\t reason: out of memory\n");
858 case MB_ERR_INTERNAL:
859 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
862 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
869 FLAME_fund_centralbank_update_deposit_message_board_write = 0;
870 FLAME_fund_centralbank_update_deposit_message_board_read = 0;
878 if(FLAME_fund_centralbank_update_deposit_message_board_write == 0 &&
879 FLAME_fund_centralbank_update_deposit_message_board_read == 0)
881 if(FLAME_fund_centralbank_update_deposit_message_board_write == 1 &&
882 FLAME_fund_centralbank_update_deposit_message_board_read == 0)
884 if(FLAME_fund_centralbank_update_deposit_message_board_write == 0 &&
885 FLAME_fund_centralbank_update_deposit_message_board_read == 1)
887 if(FLAME_fund_centralbank_update_deposit_message_board_write == 1 &&
888 FLAME_fund_centralbank_update_deposit_message_board_read == 1)
891 if (rc != MB_SUCCESS)
893 fprintf(stderr,
"ERROR: Could not set access mode of 'fund_centralbank_update_deposit' board\n");
896 fprintf(stderr,
"\t reason: 'fund_centralbank_update_deposit' board is invalid\n");
899 fprintf(stderr,
"\t reason: 'fund_centralbank_update_deposit' board is locked\n");
901 case MB_ERR_MEMALLOC:
902 fprintf(stderr,
"\t reason: out of memory\n");
904 case MB_ERR_INTERNAL:
905 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
908 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
915 FLAME_gov_centralbank_init_deposit_message_board_write = 0;
916 FLAME_gov_centralbank_init_deposit_message_board_read = 0;
924 if(FLAME_gov_centralbank_init_deposit_message_board_write == 0 &&
925 FLAME_gov_centralbank_init_deposit_message_board_read == 0)
927 if(FLAME_gov_centralbank_init_deposit_message_board_write == 1 &&
928 FLAME_gov_centralbank_init_deposit_message_board_read == 0)
930 if(FLAME_gov_centralbank_init_deposit_message_board_write == 0 &&
931 FLAME_gov_centralbank_init_deposit_message_board_read == 1)
933 if(FLAME_gov_centralbank_init_deposit_message_board_write == 1 &&
934 FLAME_gov_centralbank_init_deposit_message_board_read == 1)
937 if (rc != MB_SUCCESS)
939 fprintf(stderr,
"ERROR: Could not set access mode of 'gov_centralbank_init_deposit' board\n");
942 fprintf(stderr,
"\t reason: 'gov_centralbank_init_deposit' board is invalid\n");
945 fprintf(stderr,
"\t reason: 'gov_centralbank_init_deposit' board is locked\n");
947 case MB_ERR_MEMALLOC:
948 fprintf(stderr,
"\t reason: out of memory\n");
950 case MB_ERR_INTERNAL:
951 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
954 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
961 FLAME_gov_centralbank_update_deposit_message_board_write = 0;
962 FLAME_gov_centralbank_update_deposit_message_board_read = 0;
970 if(FLAME_gov_centralbank_update_deposit_message_board_write == 0 &&
971 FLAME_gov_centralbank_update_deposit_message_board_read == 0)
973 if(FLAME_gov_centralbank_update_deposit_message_board_write == 1 &&
974 FLAME_gov_centralbank_update_deposit_message_board_read == 0)
976 if(FLAME_gov_centralbank_update_deposit_message_board_write == 0 &&
977 FLAME_gov_centralbank_update_deposit_message_board_read == 1)
979 if(FLAME_gov_centralbank_update_deposit_message_board_write == 1 &&
980 FLAME_gov_centralbank_update_deposit_message_board_read == 1)
983 if (rc != MB_SUCCESS)
985 fprintf(stderr,
"ERROR: Could not set access mode of 'gov_centralbank_update_deposit' board\n");
988 fprintf(stderr,
"\t reason: 'gov_centralbank_update_deposit' board is invalid\n");
991 fprintf(stderr,
"\t reason: 'gov_centralbank_update_deposit' board is locked\n");
993 case MB_ERR_MEMALLOC:
994 fprintf(stderr,
"\t reason: out of memory\n");
996 case MB_ERR_INTERNAL:
997 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
1000 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
1007 FLAME_interest_rate_message_board_write = 0;
1008 FLAME_interest_rate_message_board_read = 0;
1019 if(FLAME_interest_rate_message_board_write == 0 &&
1020 FLAME_interest_rate_message_board_read == 0)
1022 if(FLAME_interest_rate_message_board_write == 1 &&
1023 FLAME_interest_rate_message_board_read == 0)
1025 if(FLAME_interest_rate_message_board_write == 0 &&
1026 FLAME_interest_rate_message_board_read == 1)
1028 if(FLAME_interest_rate_message_board_write == 1 &&
1029 FLAME_interest_rate_message_board_read == 1)
1032 if (rc != MB_SUCCESS)
1034 fprintf(stderr,
"ERROR: Could not set access mode of 'interest_rate' board\n");
1036 case MB_ERR_INVALID:
1037 fprintf(stderr,
"\t reason: 'interest_rate' board is invalid\n");
1040 fprintf(stderr,
"\t reason: 'interest_rate' board is locked\n");
1042 case MB_ERR_MEMALLOC:
1043 fprintf(stderr,
"\t reason: out of memory\n");
1045 case MB_ERR_INTERNAL:
1046 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
1049 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
1056 FLAME_capital_tax_rate_message_board_write = 0;
1057 FLAME_capital_tax_rate_message_board_read = 0;
1065 if(FLAME_capital_tax_rate_message_board_write == 0 &&
1066 FLAME_capital_tax_rate_message_board_read == 0)
1068 if(FLAME_capital_tax_rate_message_board_write == 1 &&
1069 FLAME_capital_tax_rate_message_board_read == 0)
1071 if(FLAME_capital_tax_rate_message_board_write == 0 &&
1072 FLAME_capital_tax_rate_message_board_read == 1)
1074 if(FLAME_capital_tax_rate_message_board_write == 1 &&
1075 FLAME_capital_tax_rate_message_board_read == 1)
1078 if (rc != MB_SUCCESS)
1080 fprintf(stderr,
"ERROR: Could not set access mode of 'capital_tax_rate' board\n");
1082 case MB_ERR_INVALID:
1083 fprintf(stderr,
"\t reason: 'capital_tax_rate' board is invalid\n");
1086 fprintf(stderr,
"\t reason: 'capital_tax_rate' board is locked\n");
1088 case MB_ERR_MEMALLOC:
1089 fprintf(stderr,
"\t reason: out of memory\n");
1091 case MB_ERR_INTERNAL:
1092 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
1095 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
1102 FLAME_labour_tax_rate_message_board_write = 0;
1103 FLAME_labour_tax_rate_message_board_read = 0;
1112 if(FLAME_labour_tax_rate_message_board_write == 0 &&
1113 FLAME_labour_tax_rate_message_board_read == 0)
1115 if(FLAME_labour_tax_rate_message_board_write == 1 &&
1116 FLAME_labour_tax_rate_message_board_read == 0)
1118 if(FLAME_labour_tax_rate_message_board_write == 0 &&
1119 FLAME_labour_tax_rate_message_board_read == 1)
1121 if(FLAME_labour_tax_rate_message_board_write == 1 &&
1122 FLAME_labour_tax_rate_message_board_read == 1)
1125 if (rc != MB_SUCCESS)
1127 fprintf(stderr,
"ERROR: Could not set access mode of 'labour_tax_rate' board\n");
1129 case MB_ERR_INVALID:
1130 fprintf(stderr,
"\t reason: 'labour_tax_rate' board is invalid\n");
1133 fprintf(stderr,
"\t reason: 'labour_tax_rate' board is locked\n");
1135 case MB_ERR_MEMALLOC:
1136 fprintf(stderr,
"\t reason: out of memory\n");
1138 case MB_ERR_INTERNAL:
1139 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
1142 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
1149 FLAME_household_jpoffice_id_message_board_write = 0;
1150 FLAME_household_jpoffice_id_message_board_read = 0;
1158 if(FLAME_household_jpoffice_id_message_board_write == 0 &&
1159 FLAME_household_jpoffice_id_message_board_read == 0)
1161 if(FLAME_household_jpoffice_id_message_board_write == 1 &&
1162 FLAME_household_jpoffice_id_message_board_read == 0)
1164 if(FLAME_household_jpoffice_id_message_board_write == 0 &&
1165 FLAME_household_jpoffice_id_message_board_read == 1)
1167 if(FLAME_household_jpoffice_id_message_board_write == 1 &&
1168 FLAME_household_jpoffice_id_message_board_read == 1)
1171 if (rc != MB_SUCCESS)
1173 fprintf(stderr,
"ERROR: Could not set access mode of 'household_jpoffice_id' board\n");
1175 case MB_ERR_INVALID:
1176 fprintf(stderr,
"\t reason: 'household_jpoffice_id' board is invalid\n");
1179 fprintf(stderr,
"\t reason: 'household_jpoffice_id' board is locked\n");
1181 case MB_ERR_MEMALLOC:
1182 fprintf(stderr,
"\t reason: out of memory\n");
1184 case MB_ERR_INTERNAL:
1185 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
1188 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
1195 FLAME_jpoffice_household_employer_message_board_write = 0;
1196 FLAME_jpoffice_household_employer_message_board_read = 0;
1204 if(FLAME_jpoffice_household_employer_message_board_write == 0 &&
1205 FLAME_jpoffice_household_employer_message_board_read == 0)
1207 if(FLAME_jpoffice_household_employer_message_board_write == 1 &&
1208 FLAME_jpoffice_household_employer_message_board_read == 0)
1210 if(FLAME_jpoffice_household_employer_message_board_write == 0 &&
1211 FLAME_jpoffice_household_employer_message_board_read == 1)
1213 if(FLAME_jpoffice_household_employer_message_board_write == 1 &&
1214 FLAME_jpoffice_household_employer_message_board_read == 1)
1217 if (rc != MB_SUCCESS)
1219 fprintf(stderr,
"ERROR: Could not set access mode of 'jpoffice_household_employer' board\n");
1221 case MB_ERR_INVALID:
1222 fprintf(stderr,
"\t reason: 'jpoffice_household_employer' board is invalid\n");
1225 fprintf(stderr,
"\t reason: 'jpoffice_household_employer' board is locked\n");
1227 case MB_ERR_MEMALLOC:
1228 fprintf(stderr,
"\t reason: out of memory\n");
1230 case MB_ERR_INTERNAL:
1231 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
1234 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
1241 FLAME_firm_jpoffice_id_message_board_write = 0;
1242 FLAME_firm_jpoffice_id_message_board_read = 0;
1250 if(FLAME_firm_jpoffice_id_message_board_write == 0 &&
1251 FLAME_firm_jpoffice_id_message_board_read == 0)
1253 if(FLAME_firm_jpoffice_id_message_board_write == 1 &&
1254 FLAME_firm_jpoffice_id_message_board_read == 0)
1256 if(FLAME_firm_jpoffice_id_message_board_write == 0 &&
1257 FLAME_firm_jpoffice_id_message_board_read == 1)
1259 if(FLAME_firm_jpoffice_id_message_board_write == 1 &&
1260 FLAME_firm_jpoffice_id_message_board_read == 1)
1263 if (rc != MB_SUCCESS)
1265 fprintf(stderr,
"ERROR: Could not set access mode of 'firm_jpoffice_id' board\n");
1267 case MB_ERR_INVALID:
1268 fprintf(stderr,
"\t reason: 'firm_jpoffice_id' board is invalid\n");
1271 fprintf(stderr,
"\t reason: 'firm_jpoffice_id' board is locked\n");
1273 case MB_ERR_MEMALLOC:
1274 fprintf(stderr,
"\t reason: out of memory\n");
1276 case MB_ERR_INTERNAL:
1277 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
1280 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
1287 FLAME_jpoffice_firm_employee_message_board_write = 0;
1288 FLAME_jpoffice_firm_employee_message_board_read = 0;
1296 if(FLAME_jpoffice_firm_employee_message_board_write == 0 &&
1297 FLAME_jpoffice_firm_employee_message_board_read == 0)
1299 if(FLAME_jpoffice_firm_employee_message_board_write == 1 &&
1300 FLAME_jpoffice_firm_employee_message_board_read == 0)
1302 if(FLAME_jpoffice_firm_employee_message_board_write == 0 &&
1303 FLAME_jpoffice_firm_employee_message_board_read == 1)
1305 if(FLAME_jpoffice_firm_employee_message_board_write == 1 &&
1306 FLAME_jpoffice_firm_employee_message_board_read == 1)
1309 if (rc != MB_SUCCESS)
1311 fprintf(stderr,
"ERROR: Could not set access mode of 'jpoffice_firm_employee' board\n");
1313 case MB_ERR_INVALID:
1314 fprintf(stderr,
"\t reason: 'jpoffice_firm_employee' board is invalid\n");
1317 fprintf(stderr,
"\t reason: 'jpoffice_firm_employee' board is locked\n");
1319 case MB_ERR_MEMALLOC:
1320 fprintf(stderr,
"\t reason: out of memory\n");
1322 case MB_ERR_INTERNAL:
1323 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
1326 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
1333 FLAME_buy_message_board_write = 0;
1334 FLAME_buy_message_board_read = 0;
1342 if(FLAME_buy_message_board_write == 0 &&
1343 FLAME_buy_message_board_read == 0)
1344 rc = MB_SetAccessMode(
b_buy, MB_MODE_IDLE);
1345 if(FLAME_buy_message_board_write == 1 &&
1346 FLAME_buy_message_board_read == 0)
1347 rc = MB_SetAccessMode(
b_buy, MB_MODE_WRITEONLY);
1348 if(FLAME_buy_message_board_write == 0 &&
1349 FLAME_buy_message_board_read == 1)
1350 rc = MB_SetAccessMode(
b_buy, MB_MODE_READONLY);
1351 if(FLAME_buy_message_board_write == 1 &&
1352 FLAME_buy_message_board_read == 1)
1353 rc = MB_SetAccessMode(
b_buy, MB_MODE_READWRITE);
1355 if (rc != MB_SUCCESS)
1357 fprintf(stderr,
"ERROR: Could not set access mode of 'buy' board\n");
1359 case MB_ERR_INVALID:
1360 fprintf(stderr,
"\t reason: 'buy' board is invalid\n");
1363 fprintf(stderr,
"\t reason: 'buy' board is locked\n");
1365 case MB_ERR_MEMALLOC:
1366 fprintf(stderr,
"\t reason: out of memory\n");
1368 case MB_ERR_INTERNAL:
1369 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
1372 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
1379 FLAME_bought_message_board_write = 0;
1380 FLAME_bought_message_board_read = 0;
1388 if(FLAME_bought_message_board_write == 0 &&
1389 FLAME_bought_message_board_read == 0)
1390 rc = MB_SetAccessMode(
b_bought, MB_MODE_IDLE);
1391 if(FLAME_bought_message_board_write == 1 &&
1392 FLAME_bought_message_board_read == 0)
1393 rc = MB_SetAccessMode(
b_bought, MB_MODE_WRITEONLY);
1394 if(FLAME_bought_message_board_write == 0 &&
1395 FLAME_bought_message_board_read == 1)
1396 rc = MB_SetAccessMode(
b_bought, MB_MODE_READONLY);
1397 if(FLAME_bought_message_board_write == 1 &&
1398 FLAME_bought_message_board_read == 1)
1399 rc = MB_SetAccessMode(
b_bought, MB_MODE_READWRITE);
1401 if (rc != MB_SUCCESS)
1403 fprintf(stderr,
"ERROR: Could not set access mode of 'bought' board\n");
1405 case MB_ERR_INVALID:
1406 fprintf(stderr,
"\t reason: 'bought' board is invalid\n");
1409 fprintf(stderr,
"\t reason: 'bought' board is locked\n");
1411 case MB_ERR_MEMALLOC:
1412 fprintf(stderr,
"\t reason: out of memory\n");
1414 case MB_ERR_INTERNAL:
1415 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
1418 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
1425 FLAME_sell_message_board_write = 0;
1426 FLAME_sell_message_board_read = 0;
1434 if(FLAME_sell_message_board_write == 0 &&
1435 FLAME_sell_message_board_read == 0)
1436 rc = MB_SetAccessMode(
b_sell, MB_MODE_IDLE);
1437 if(FLAME_sell_message_board_write == 1 &&
1438 FLAME_sell_message_board_read == 0)
1439 rc = MB_SetAccessMode(
b_sell, MB_MODE_WRITEONLY);
1440 if(FLAME_sell_message_board_write == 0 &&
1441 FLAME_sell_message_board_read == 1)
1442 rc = MB_SetAccessMode(
b_sell, MB_MODE_READONLY);
1443 if(FLAME_sell_message_board_write == 1 &&
1444 FLAME_sell_message_board_read == 1)
1445 rc = MB_SetAccessMode(
b_sell, MB_MODE_READWRITE);
1447 if (rc != MB_SUCCESS)
1449 fprintf(stderr,
"ERROR: Could not set access mode of 'sell' board\n");
1451 case MB_ERR_INVALID:
1452 fprintf(stderr,
"\t reason: 'sell' board is invalid\n");
1455 fprintf(stderr,
"\t reason: 'sell' board is locked\n");
1457 case MB_ERR_MEMALLOC:
1458 fprintf(stderr,
"\t reason: out of memory\n");
1460 case MB_ERR_INTERNAL:
1461 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
1464 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
1471 FLAME_sold_message_board_write = 0;
1472 FLAME_sold_message_board_read = 0;
1480 if(FLAME_sold_message_board_write == 0 &&
1481 FLAME_sold_message_board_read == 0)
1482 rc = MB_SetAccessMode(
b_sold, MB_MODE_IDLE);
1483 if(FLAME_sold_message_board_write == 1 &&
1484 FLAME_sold_message_board_read == 0)
1485 rc = MB_SetAccessMode(
b_sold, MB_MODE_WRITEONLY);
1486 if(FLAME_sold_message_board_write == 0 &&
1487 FLAME_sold_message_board_read == 1)
1488 rc = MB_SetAccessMode(
b_sold, MB_MODE_READONLY);
1489 if(FLAME_sold_message_board_write == 1 &&
1490 FLAME_sold_message_board_read == 1)
1491 rc = MB_SetAccessMode(
b_sold, MB_MODE_READWRITE);
1493 if (rc != MB_SUCCESS)
1495 fprintf(stderr,
"ERROR: Could not set access mode of 'sold' board\n");
1497 case MB_ERR_INVALID:
1498 fprintf(stderr,
"\t reason: 'sold' board is invalid\n");
1501 fprintf(stderr,
"\t reason: 'sold' board is locked\n");
1503 case MB_ERR_MEMALLOC:
1504 fprintf(stderr,
"\t reason: out of memory\n");
1506 case MB_ERR_INTERNAL:
1507 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
1510 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
1517 FLAME_goods_transactions_summary_message_board_write = 0;
1518 FLAME_goods_transactions_summary_message_board_read = 0;
1527 if(FLAME_goods_transactions_summary_message_board_write == 0 &&
1528 FLAME_goods_transactions_summary_message_board_read == 0)
1530 if(FLAME_goods_transactions_summary_message_board_write == 1 &&
1531 FLAME_goods_transactions_summary_message_board_read == 0)
1533 if(FLAME_goods_transactions_summary_message_board_write == 0 &&
1534 FLAME_goods_transactions_summary_message_board_read == 1)
1536 if(FLAME_goods_transactions_summary_message_board_write == 1 &&
1537 FLAME_goods_transactions_summary_message_board_read == 1)
1540 if (rc != MB_SUCCESS)
1542 fprintf(stderr,
"ERROR: Could not set access mode of 'goods_transactions_summary' board\n");
1544 case MB_ERR_INVALID:
1545 fprintf(stderr,
"\t reason: 'goods_transactions_summary' board is invalid\n");
1548 fprintf(stderr,
"\t reason: 'goods_transactions_summary' board is locked\n");
1550 case MB_ERR_MEMALLOC:
1551 fprintf(stderr,
"\t reason: out of memory\n");
1553 case MB_ERR_INTERNAL:
1554 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
1557 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
1564 FLAME_centralbank_households_quarterly_cpi_message_board_write = 0;
1565 FLAME_centralbank_households_quarterly_cpi_message_board_read = 0;
1573 if(FLAME_centralbank_households_quarterly_cpi_message_board_write == 0 &&
1574 FLAME_centralbank_households_quarterly_cpi_message_board_read == 0)
1576 if(FLAME_centralbank_households_quarterly_cpi_message_board_write == 1 &&
1577 FLAME_centralbank_households_quarterly_cpi_message_board_read == 0)
1579 if(FLAME_centralbank_households_quarterly_cpi_message_board_write == 0 &&
1580 FLAME_centralbank_households_quarterly_cpi_message_board_read == 1)
1582 if(FLAME_centralbank_households_quarterly_cpi_message_board_write == 1 &&
1583 FLAME_centralbank_households_quarterly_cpi_message_board_read == 1)
1586 if (rc != MB_SUCCESS)
1588 fprintf(stderr,
"ERROR: Could not set access mode of 'centralbank_households_quarterly_cpi' board\n");
1590 case MB_ERR_INVALID:
1591 fprintf(stderr,
"\t reason: 'centralbank_households_quarterly_cpi' board is invalid\n");
1594 fprintf(stderr,
"\t reason: 'centralbank_households_quarterly_cpi' board is locked\n");
1596 case MB_ERR_MEMALLOC:
1597 fprintf(stderr,
"\t reason: out of memory\n");
1599 case MB_ERR_INTERNAL:
1600 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
1603 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
1610 FLAME_fired_message_board_write = 0;
1611 FLAME_fired_message_board_read = 0;
1619 if(FLAME_fired_message_board_write == 0 &&
1620 FLAME_fired_message_board_read == 0)
1621 rc = MB_SetAccessMode(
b_fired, MB_MODE_IDLE);
1622 if(FLAME_fired_message_board_write == 1 &&
1623 FLAME_fired_message_board_read == 0)
1624 rc = MB_SetAccessMode(
b_fired, MB_MODE_WRITEONLY);
1625 if(FLAME_fired_message_board_write == 0 &&
1626 FLAME_fired_message_board_read == 1)
1627 rc = MB_SetAccessMode(
b_fired, MB_MODE_READONLY);
1628 if(FLAME_fired_message_board_write == 1 &&
1629 FLAME_fired_message_board_read == 1)
1630 rc = MB_SetAccessMode(
b_fired, MB_MODE_READWRITE);
1632 if (rc != MB_SUCCESS)
1634 fprintf(stderr,
"ERROR: Could not set access mode of 'fired' board\n");
1636 case MB_ERR_INVALID:
1637 fprintf(stderr,
"\t reason: 'fired' board is invalid\n");
1640 fprintf(stderr,
"\t reason: 'fired' board is locked\n");
1642 case MB_ERR_MEMALLOC:
1643 fprintf(stderr,
"\t reason: out of memory\n");
1645 case MB_ERR_INTERNAL:
1646 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
1649 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
1656 FLAME_vacancy_stage1_message_board_write = 0;
1657 FLAME_vacancy_stage1_message_board_read = 0;
1665 if(FLAME_vacancy_stage1_message_board_write == 0 &&
1666 FLAME_vacancy_stage1_message_board_read == 0)
1668 if(FLAME_vacancy_stage1_message_board_write == 1 &&
1669 FLAME_vacancy_stage1_message_board_read == 0)
1671 if(FLAME_vacancy_stage1_message_board_write == 0 &&
1672 FLAME_vacancy_stage1_message_board_read == 1)
1674 if(FLAME_vacancy_stage1_message_board_write == 1 &&
1675 FLAME_vacancy_stage1_message_board_read == 1)
1678 if (rc != MB_SUCCESS)
1680 fprintf(stderr,
"ERROR: Could not set access mode of 'vacancy_stage1' board\n");
1682 case MB_ERR_INVALID:
1683 fprintf(stderr,
"\t reason: 'vacancy_stage1' board is invalid\n");
1686 fprintf(stderr,
"\t reason: 'vacancy_stage1' board is locked\n");
1688 case MB_ERR_MEMALLOC:
1689 fprintf(stderr,
"\t reason: out of memory\n");
1691 case MB_ERR_INTERNAL:
1692 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
1695 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
1702 FLAME_job_application_stage2_message_board_write = 0;
1703 FLAME_job_application_stage2_message_board_read = 0;
1711 if(FLAME_job_application_stage2_message_board_write == 0 &&
1712 FLAME_job_application_stage2_message_board_read == 0)
1714 if(FLAME_job_application_stage2_message_board_write == 1 &&
1715 FLAME_job_application_stage2_message_board_read == 0)
1717 if(FLAME_job_application_stage2_message_board_write == 0 &&
1718 FLAME_job_application_stage2_message_board_read == 1)
1720 if(FLAME_job_application_stage2_message_board_write == 1 &&
1721 FLAME_job_application_stage2_message_board_read == 1)
1724 if (rc != MB_SUCCESS)
1726 fprintf(stderr,
"ERROR: Could not set access mode of 'job_application_stage2' board\n");
1728 case MB_ERR_INVALID:
1729 fprintf(stderr,
"\t reason: 'job_application_stage2' board is invalid\n");
1732 fprintf(stderr,
"\t reason: 'job_application_stage2' board is locked\n");
1734 case MB_ERR_MEMALLOC:
1735 fprintf(stderr,
"\t reason: out of memory\n");
1737 case MB_ERR_INTERNAL:
1738 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
1741 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
1748 FLAME_job_application_stage1_message_board_write = 0;
1749 FLAME_job_application_stage1_message_board_read = 0;
1757 if(FLAME_job_application_stage1_message_board_write == 0 &&
1758 FLAME_job_application_stage1_message_board_read == 0)
1760 if(FLAME_job_application_stage1_message_board_write == 1 &&
1761 FLAME_job_application_stage1_message_board_read == 0)
1763 if(FLAME_job_application_stage1_message_board_write == 0 &&
1764 FLAME_job_application_stage1_message_board_read == 1)
1766 if(FLAME_job_application_stage1_message_board_write == 1 &&
1767 FLAME_job_application_stage1_message_board_read == 1)
1770 if (rc != MB_SUCCESS)
1772 fprintf(stderr,
"ERROR: Could not set access mode of 'job_application_stage1' board\n");
1774 case MB_ERR_INVALID:
1775 fprintf(stderr,
"\t reason: 'job_application_stage1' board is invalid\n");
1778 fprintf(stderr,
"\t reason: 'job_application_stage1' board is locked\n");
1780 case MB_ERR_MEMALLOC:
1781 fprintf(stderr,
"\t reason: out of memory\n");
1783 case MB_ERR_INTERNAL:
1784 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
1787 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
1794 FLAME_job_match_stage1_message_board_write = 0;
1795 FLAME_job_match_stage1_message_board_read = 0;
1804 if(FLAME_job_match_stage1_message_board_write == 0 &&
1805 FLAME_job_match_stage1_message_board_read == 0)
1807 if(FLAME_job_match_stage1_message_board_write == 1 &&
1808 FLAME_job_match_stage1_message_board_read == 0)
1810 if(FLAME_job_match_stage1_message_board_write == 0 &&
1811 FLAME_job_match_stage1_message_board_read == 1)
1813 if(FLAME_job_match_stage1_message_board_write == 1 &&
1814 FLAME_job_match_stage1_message_board_read == 1)
1817 if (rc != MB_SUCCESS)
1819 fprintf(stderr,
"ERROR: Could not set access mode of 'job_match_stage1' board\n");
1821 case MB_ERR_INVALID:
1822 fprintf(stderr,
"\t reason: 'job_match_stage1' board is invalid\n");
1825 fprintf(stderr,
"\t reason: 'job_match_stage1' board is locked\n");
1827 case MB_ERR_MEMALLOC:
1828 fprintf(stderr,
"\t reason: out of memory\n");
1830 case MB_ERR_INTERNAL:
1831 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
1834 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
1841 FLAME_job_change_message_board_write = 0;
1842 FLAME_job_change_message_board_read = 0;
1850 if(FLAME_job_change_message_board_write == 0 &&
1851 FLAME_job_change_message_board_read == 0)
1853 if(FLAME_job_change_message_board_write == 1 &&
1854 FLAME_job_change_message_board_read == 0)
1855 rc = MB_SetAccessMode(
b_job_change, MB_MODE_WRITEONLY);
1856 if(FLAME_job_change_message_board_write == 0 &&
1857 FLAME_job_change_message_board_read == 1)
1859 if(FLAME_job_change_message_board_write == 1 &&
1860 FLAME_job_change_message_board_read == 1)
1861 rc = MB_SetAccessMode(
b_job_change, MB_MODE_READWRITE);
1863 if (rc != MB_SUCCESS)
1865 fprintf(stderr,
"ERROR: Could not set access mode of 'job_change' board\n");
1867 case MB_ERR_INVALID:
1868 fprintf(stderr,
"\t reason: 'job_change' board is invalid\n");
1871 fprintf(stderr,
"\t reason: 'job_change' board is locked\n");
1873 case MB_ERR_MEMALLOC:
1874 fprintf(stderr,
"\t reason: out of memory\n");
1876 case MB_ERR_INTERNAL:
1877 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
1880 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
1887 FLAME_vacancy_stage2_message_board_write = 0;
1888 FLAME_vacancy_stage2_message_board_read = 0;
1896 if(FLAME_vacancy_stage2_message_board_write == 0 &&
1897 FLAME_vacancy_stage2_message_board_read == 0)
1899 if(FLAME_vacancy_stage2_message_board_write == 1 &&
1900 FLAME_vacancy_stage2_message_board_read == 0)
1902 if(FLAME_vacancy_stage2_message_board_write == 0 &&
1903 FLAME_vacancy_stage2_message_board_read == 1)
1905 if(FLAME_vacancy_stage2_message_board_write == 1 &&
1906 FLAME_vacancy_stage2_message_board_read == 1)
1909 if (rc != MB_SUCCESS)
1911 fprintf(stderr,
"ERROR: Could not set access mode of 'vacancy_stage2' board\n");
1913 case MB_ERR_INVALID:
1914 fprintf(stderr,
"\t reason: 'vacancy_stage2' board is invalid\n");
1917 fprintf(stderr,
"\t reason: 'vacancy_stage2' board is locked\n");
1919 case MB_ERR_MEMALLOC:
1920 fprintf(stderr,
"\t reason: out of memory\n");
1922 case MB_ERR_INTERNAL:
1923 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
1926 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
1933 FLAME_job_match_stage2_message_board_write = 0;
1934 FLAME_job_match_stage2_message_board_read = 0;
1943 if(FLAME_job_match_stage2_message_board_write == 0 &&
1944 FLAME_job_match_stage2_message_board_read == 0)
1946 if(FLAME_job_match_stage2_message_board_write == 1 &&
1947 FLAME_job_match_stage2_message_board_read == 0)
1949 if(FLAME_job_match_stage2_message_board_write == 0 &&
1950 FLAME_job_match_stage2_message_board_read == 1)
1952 if(FLAME_job_match_stage2_message_board_write == 1 &&
1953 FLAME_job_match_stage2_message_board_read == 1)
1956 if (rc != MB_SUCCESS)
1958 fprintf(stderr,
"ERROR: Could not set access mode of 'job_match_stage2' board\n");
1960 case MB_ERR_INVALID:
1961 fprintf(stderr,
"\t reason: 'job_match_stage2' board is invalid\n");
1964 fprintf(stderr,
"\t reason: 'job_match_stage2' board is locked\n");
1966 case MB_ERR_MEMALLOC:
1967 fprintf(stderr,
"\t reason: out of memory\n");
1969 case MB_ERR_INTERNAL:
1970 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
1973 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
1980 FLAME_employment_status_message_board_write = 0;
1981 FLAME_employment_status_message_board_read = 0;
1992 if(FLAME_employment_status_message_board_write == 0 &&
1993 FLAME_employment_status_message_board_read == 0)
1995 if(FLAME_employment_status_message_board_write == 1 &&
1996 FLAME_employment_status_message_board_read == 0)
1998 if(FLAME_employment_status_message_board_write == 0 &&
1999 FLAME_employment_status_message_board_read == 1)
2001 if(FLAME_employment_status_message_board_write == 1 &&
2002 FLAME_employment_status_message_board_read == 1)
2005 if (rc != MB_SUCCESS)
2007 fprintf(stderr,
"ERROR: Could not set access mode of 'employment_status' board\n");
2009 case MB_ERR_INVALID:
2010 fprintf(stderr,
"\t reason: 'employment_status' board is invalid\n");
2013 fprintf(stderr,
"\t reason: 'employment_status' board is locked\n");
2015 case MB_ERR_MEMALLOC:
2016 fprintf(stderr,
"\t reason: out of memory\n");
2018 case MB_ERR_INTERNAL:
2019 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
2022 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
2029 FLAME_firm_household_wage_payment_message_board_write = 0;
2030 FLAME_firm_household_wage_payment_message_board_read = 0;
2038 if(FLAME_firm_household_wage_payment_message_board_write == 0 &&
2039 FLAME_firm_household_wage_payment_message_board_read == 0)
2041 if(FLAME_firm_household_wage_payment_message_board_write == 1 &&
2042 FLAME_firm_household_wage_payment_message_board_read == 0)
2044 if(FLAME_firm_household_wage_payment_message_board_write == 0 &&
2045 FLAME_firm_household_wage_payment_message_board_read == 1)
2047 if(FLAME_firm_household_wage_payment_message_board_write == 1 &&
2048 FLAME_firm_household_wage_payment_message_board_read == 1)
2051 if (rc != MB_SUCCESS)
2053 fprintf(stderr,
"ERROR: Could not set access mode of 'firm_household_wage_payment' board\n");
2055 case MB_ERR_INVALID:
2056 fprintf(stderr,
"\t reason: 'firm_household_wage_payment' board is invalid\n");
2059 fprintf(stderr,
"\t reason: 'firm_household_wage_payment' board is locked\n");
2061 case MB_ERR_MEMALLOC:
2062 fprintf(stderr,
"\t reason: out of memory\n");
2064 case MB_ERR_INTERNAL:
2065 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
2068 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
2075 FLAME_firm_bank_loan_request_1_message_board_write = 0;
2076 FLAME_firm_bank_loan_request_1_message_board_read = 0;
2084 if(FLAME_firm_bank_loan_request_1_message_board_write == 0 &&
2085 FLAME_firm_bank_loan_request_1_message_board_read == 0)
2087 if(FLAME_firm_bank_loan_request_1_message_board_write == 1 &&
2088 FLAME_firm_bank_loan_request_1_message_board_read == 0)
2090 if(FLAME_firm_bank_loan_request_1_message_board_write == 0 &&
2091 FLAME_firm_bank_loan_request_1_message_board_read == 1)
2093 if(FLAME_firm_bank_loan_request_1_message_board_write == 1 &&
2094 FLAME_firm_bank_loan_request_1_message_board_read == 1)
2097 if (rc != MB_SUCCESS)
2099 fprintf(stderr,
"ERROR: Could not set access mode of 'firm_bank_loan_request_1' board\n");
2101 case MB_ERR_INVALID:
2102 fprintf(stderr,
"\t reason: 'firm_bank_loan_request_1' board is invalid\n");
2105 fprintf(stderr,
"\t reason: 'firm_bank_loan_request_1' board is locked\n");
2107 case MB_ERR_MEMALLOC:
2108 fprintf(stderr,
"\t reason: out of memory\n");
2110 case MB_ERR_INTERNAL:
2111 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
2114 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
2121 FLAME_firm_bank_loan_request_2_message_board_write = 0;
2122 FLAME_firm_bank_loan_request_2_message_board_read = 0;
2130 if(FLAME_firm_bank_loan_request_2_message_board_write == 0 &&
2131 FLAME_firm_bank_loan_request_2_message_board_read == 0)
2133 if(FLAME_firm_bank_loan_request_2_message_board_write == 1 &&
2134 FLAME_firm_bank_loan_request_2_message_board_read == 0)
2136 if(FLAME_firm_bank_loan_request_2_message_board_write == 0 &&
2137 FLAME_firm_bank_loan_request_2_message_board_read == 1)
2139 if(FLAME_firm_bank_loan_request_2_message_board_write == 1 &&
2140 FLAME_firm_bank_loan_request_2_message_board_read == 1)
2143 if (rc != MB_SUCCESS)
2145 fprintf(stderr,
"ERROR: Could not set access mode of 'firm_bank_loan_request_2' board\n");
2147 case MB_ERR_INVALID:
2148 fprintf(stderr,
"\t reason: 'firm_bank_loan_request_2' board is invalid\n");
2151 fprintf(stderr,
"\t reason: 'firm_bank_loan_request_2' board is locked\n");
2153 case MB_ERR_MEMALLOC:
2154 fprintf(stderr,
"\t reason: out of memory\n");
2156 case MB_ERR_INTERNAL:
2157 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
2160 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
2167 FLAME_bank_firm_loan_acknowledge_1_message_board_write = 0;
2168 FLAME_bank_firm_loan_acknowledge_1_message_board_read = 0;
2176 if(FLAME_bank_firm_loan_acknowledge_1_message_board_write == 0 &&
2177 FLAME_bank_firm_loan_acknowledge_1_message_board_read == 0)
2179 if(FLAME_bank_firm_loan_acknowledge_1_message_board_write == 1 &&
2180 FLAME_bank_firm_loan_acknowledge_1_message_board_read == 0)
2182 if(FLAME_bank_firm_loan_acknowledge_1_message_board_write == 0 &&
2183 FLAME_bank_firm_loan_acknowledge_1_message_board_read == 1)
2185 if(FLAME_bank_firm_loan_acknowledge_1_message_board_write == 1 &&
2186 FLAME_bank_firm_loan_acknowledge_1_message_board_read == 1)
2189 if (rc != MB_SUCCESS)
2191 fprintf(stderr,
"ERROR: Could not set access mode of 'bank_firm_loan_acknowledge_1' board\n");
2193 case MB_ERR_INVALID:
2194 fprintf(stderr,
"\t reason: 'bank_firm_loan_acknowledge_1' board is invalid\n");
2197 fprintf(stderr,
"\t reason: 'bank_firm_loan_acknowledge_1' board is locked\n");
2199 case MB_ERR_MEMALLOC:
2200 fprintf(stderr,
"\t reason: out of memory\n");
2202 case MB_ERR_INTERNAL:
2203 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
2206 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
2213 FLAME_bank_firm_loan_acknowledge_2_message_board_write = 0;
2214 FLAME_bank_firm_loan_acknowledge_2_message_board_read = 0;
2222 if(FLAME_bank_firm_loan_acknowledge_2_message_board_write == 0 &&
2223 FLAME_bank_firm_loan_acknowledge_2_message_board_read == 0)
2225 if(FLAME_bank_firm_loan_acknowledge_2_message_board_write == 1 &&
2226 FLAME_bank_firm_loan_acknowledge_2_message_board_read == 0)
2228 if(FLAME_bank_firm_loan_acknowledge_2_message_board_write == 0 &&
2229 FLAME_bank_firm_loan_acknowledge_2_message_board_read == 1)
2231 if(FLAME_bank_firm_loan_acknowledge_2_message_board_write == 1 &&
2232 FLAME_bank_firm_loan_acknowledge_2_message_board_read == 1)
2235 if (rc != MB_SUCCESS)
2237 fprintf(stderr,
"ERROR: Could not set access mode of 'bank_firm_loan_acknowledge_2' board\n");
2239 case MB_ERR_INVALID:
2240 fprintf(stderr,
"\t reason: 'bank_firm_loan_acknowledge_2' board is invalid\n");
2243 fprintf(stderr,
"\t reason: 'bank_firm_loan_acknowledge_2' board is locked\n");
2245 case MB_ERR_MEMALLOC:
2246 fprintf(stderr,
"\t reason: out of memory\n");
2248 case MB_ERR_INTERNAL:
2249 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
2252 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
2259 FLAME_bank_centralbank_debt_request_message_board_write = 0;
2260 FLAME_bank_centralbank_debt_request_message_board_read = 0;
2268 if(FLAME_bank_centralbank_debt_request_message_board_write == 0 &&
2269 FLAME_bank_centralbank_debt_request_message_board_read == 0)
2271 if(FLAME_bank_centralbank_debt_request_message_board_write == 1 &&
2272 FLAME_bank_centralbank_debt_request_message_board_read == 0)
2274 if(FLAME_bank_centralbank_debt_request_message_board_write == 0 &&
2275 FLAME_bank_centralbank_debt_request_message_board_read == 1)
2277 if(FLAME_bank_centralbank_debt_request_message_board_write == 1 &&
2278 FLAME_bank_centralbank_debt_request_message_board_read == 1)
2281 if (rc != MB_SUCCESS)
2283 fprintf(stderr,
"ERROR: Could not set access mode of 'bank_centralbank_debt_request' board\n");
2285 case MB_ERR_INVALID:
2286 fprintf(stderr,
"\t reason: 'bank_centralbank_debt_request' board is invalid\n");
2289 fprintf(stderr,
"\t reason: 'bank_centralbank_debt_request' board is locked\n");
2291 case MB_ERR_MEMALLOC:
2292 fprintf(stderr,
"\t reason: out of memory\n");
2294 case MB_ERR_INTERNAL:
2295 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
2298 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
2305 FLAME_household_share_message_board_write = 0;
2306 FLAME_household_share_message_board_read = 0;
2314 if(FLAME_household_share_message_board_write == 0 &&
2315 FLAME_household_share_message_board_read == 0)
2317 if(FLAME_household_share_message_board_write == 1 &&
2318 FLAME_household_share_message_board_read == 0)
2320 if(FLAME_household_share_message_board_write == 0 &&
2321 FLAME_household_share_message_board_read == 1)
2323 if(FLAME_household_share_message_board_write == 1 &&
2324 FLAME_household_share_message_board_read == 1)
2327 if (rc != MB_SUCCESS)
2329 fprintf(stderr,
"ERROR: Could not set access mode of 'household_share' board\n");
2331 case MB_ERR_INVALID:
2332 fprintf(stderr,
"\t reason: 'household_share' board is invalid\n");
2335 fprintf(stderr,
"\t reason: 'household_share' board is locked\n");
2337 case MB_ERR_MEMALLOC:
2338 fprintf(stderr,
"\t reason: out of memory\n");
2340 case MB_ERR_INTERNAL:
2341 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
2344 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
2351 FLAME_capital_tax_message_board_write = 0;
2352 FLAME_capital_tax_message_board_read = 0;
2360 if(FLAME_capital_tax_message_board_write == 0 &&
2361 FLAME_capital_tax_message_board_read == 0)
2363 if(FLAME_capital_tax_message_board_write == 1 &&
2364 FLAME_capital_tax_message_board_read == 0)
2366 if(FLAME_capital_tax_message_board_write == 0 &&
2367 FLAME_capital_tax_message_board_read == 1)
2369 if(FLAME_capital_tax_message_board_write == 1 &&
2370 FLAME_capital_tax_message_board_read == 1)
2373 if (rc != MB_SUCCESS)
2375 fprintf(stderr,
"ERROR: Could not set access mode of 'capital_tax' board\n");
2377 case MB_ERR_INVALID:
2378 fprintf(stderr,
"\t reason: 'capital_tax' board is invalid\n");
2381 fprintf(stderr,
"\t reason: 'capital_tax' board is locked\n");
2383 case MB_ERR_MEMALLOC:
2384 fprintf(stderr,
"\t reason: out of memory\n");
2386 case MB_ERR_INTERNAL:
2387 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
2390 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
2397 FLAME_labour_tax_message_board_write = 0;
2398 FLAME_labour_tax_message_board_read = 0;
2406 if(FLAME_labour_tax_message_board_write == 0 &&
2407 FLAME_labour_tax_message_board_read == 0)
2409 if(FLAME_labour_tax_message_board_write == 1 &&
2410 FLAME_labour_tax_message_board_read == 0)
2411 rc = MB_SetAccessMode(
b_labour_tax, MB_MODE_WRITEONLY);
2412 if(FLAME_labour_tax_message_board_write == 0 &&
2413 FLAME_labour_tax_message_board_read == 1)
2415 if(FLAME_labour_tax_message_board_write == 1 &&
2416 FLAME_labour_tax_message_board_read == 1)
2417 rc = MB_SetAccessMode(
b_labour_tax, MB_MODE_READWRITE);
2419 if (rc != MB_SUCCESS)
2421 fprintf(stderr,
"ERROR: Could not set access mode of 'labour_tax' board\n");
2423 case MB_ERR_INVALID:
2424 fprintf(stderr,
"\t reason: 'labour_tax' board is invalid\n");
2427 fprintf(stderr,
"\t reason: 'labour_tax' board is locked\n");
2429 case MB_ERR_MEMALLOC:
2430 fprintf(stderr,
"\t reason: out of memory\n");
2432 case MB_ERR_INTERNAL:
2433 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
2436 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
2443 FLAME_unemployment_benefit_message_board_write = 0;
2444 FLAME_unemployment_benefit_message_board_read = 0;
2452 if(FLAME_unemployment_benefit_message_board_write == 0 &&
2453 FLAME_unemployment_benefit_message_board_read == 0)
2455 if(FLAME_unemployment_benefit_message_board_write == 1 &&
2456 FLAME_unemployment_benefit_message_board_read == 0)
2458 if(FLAME_unemployment_benefit_message_board_write == 0 &&
2459 FLAME_unemployment_benefit_message_board_read == 1)
2461 if(FLAME_unemployment_benefit_message_board_write == 1 &&
2462 FLAME_unemployment_benefit_message_board_read == 1)
2465 if (rc != MB_SUCCESS)
2467 fprintf(stderr,
"ERROR: Could not set access mode of 'unemployment_benefit' board\n");
2469 case MB_ERR_INVALID:
2470 fprintf(stderr,
"\t reason: 'unemployment_benefit' board is invalid\n");
2473 fprintf(stderr,
"\t reason: 'unemployment_benefit' board is locked\n");
2475 case MB_ERR_MEMALLOC:
2476 fprintf(stderr,
"\t reason: out of memory\n");
2478 case MB_ERR_INTERNAL:
2479 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
2482 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
2489 FLAME_general_benefit_message_board_write = 0;
2490 FLAME_general_benefit_message_board_read = 0;
2498 if(FLAME_general_benefit_message_board_write == 0 &&
2499 FLAME_general_benefit_message_board_read == 0)
2501 if(FLAME_general_benefit_message_board_write == 1 &&
2502 FLAME_general_benefit_message_board_read == 0)
2504 if(FLAME_general_benefit_message_board_write == 0 &&
2505 FLAME_general_benefit_message_board_read == 1)
2507 if(FLAME_general_benefit_message_board_write == 1 &&
2508 FLAME_general_benefit_message_board_read == 1)
2511 if (rc != MB_SUCCESS)
2513 fprintf(stderr,
"ERROR: Could not set access mode of 'general_benefit' board\n");
2515 case MB_ERR_INVALID:
2516 fprintf(stderr,
"\t reason: 'general_benefit' board is invalid\n");
2519 fprintf(stderr,
"\t reason: 'general_benefit' board is locked\n");
2521 case MB_ERR_MEMALLOC:
2522 fprintf(stderr,
"\t reason: out of memory\n");
2524 case MB_ERR_INTERNAL:
2525 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
2528 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
2535 FLAME_fund_request_message_board_write = 0;
2536 FLAME_fund_request_message_board_read = 0;
2544 if(FLAME_fund_request_message_board_write == 0 &&
2545 FLAME_fund_request_message_board_read == 0)
2547 if(FLAME_fund_request_message_board_write == 1 &&
2548 FLAME_fund_request_message_board_read == 0)
2550 if(FLAME_fund_request_message_board_write == 0 &&
2551 FLAME_fund_request_message_board_read == 1)
2553 if(FLAME_fund_request_message_board_write == 1 &&
2554 FLAME_fund_request_message_board_read == 1)
2557 if (rc != MB_SUCCESS)
2559 fprintf(stderr,
"ERROR: Could not set access mode of 'fund_request' board\n");
2561 case MB_ERR_INVALID:
2562 fprintf(stderr,
"\t reason: 'fund_request' board is invalid\n");
2565 fprintf(stderr,
"\t reason: 'fund_request' board is locked\n");
2567 case MB_ERR_MEMALLOC:
2568 fprintf(stderr,
"\t reason: out of memory\n");
2570 case MB_ERR_INTERNAL:
2571 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
2574 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
2581 FLAME_fund_request_ack_message_board_write = 0;
2582 FLAME_fund_request_ack_message_board_read = 0;
2590 if(FLAME_fund_request_ack_message_board_write == 0 &&
2591 FLAME_fund_request_ack_message_board_read == 0)
2593 if(FLAME_fund_request_ack_message_board_write == 1 &&
2594 FLAME_fund_request_ack_message_board_read == 0)
2596 if(FLAME_fund_request_ack_message_board_write == 0 &&
2597 FLAME_fund_request_ack_message_board_read == 1)
2599 if(FLAME_fund_request_ack_message_board_write == 1 &&
2600 FLAME_fund_request_ack_message_board_read == 1)
2603 if (rc != MB_SUCCESS)
2605 fprintf(stderr,
"ERROR: Could not set access mode of 'fund_request_ack' board\n");
2607 case MB_ERR_INVALID:
2608 fprintf(stderr,
"\t reason: 'fund_request_ack' board is invalid\n");
2611 fprintf(stderr,
"\t reason: 'fund_request_ack' board is locked\n");
2613 case MB_ERR_MEMALLOC:
2614 fprintf(stderr,
"\t reason: out of memory\n");
2616 case MB_ERR_INTERNAL:
2617 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
2620 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
2627 FLAME_new_entrant_loan_message_board_write = 0;
2628 FLAME_new_entrant_loan_message_board_read = 0;
2636 if(FLAME_new_entrant_loan_message_board_write == 0 &&
2637 FLAME_new_entrant_loan_message_board_read == 0)
2639 if(FLAME_new_entrant_loan_message_board_write == 1 &&
2640 FLAME_new_entrant_loan_message_board_read == 0)
2642 if(FLAME_new_entrant_loan_message_board_write == 0 &&
2643 FLAME_new_entrant_loan_message_board_read == 1)
2645 if(FLAME_new_entrant_loan_message_board_write == 1 &&
2646 FLAME_new_entrant_loan_message_board_read == 1)
2649 if (rc != MB_SUCCESS)
2651 fprintf(stderr,
"ERROR: Could not set access mode of 'new_entrant_loan' board\n");
2653 case MB_ERR_INVALID:
2654 fprintf(stderr,
"\t reason: 'new_entrant_loan' board is invalid\n");
2657 fprintf(stderr,
"\t reason: 'new_entrant_loan' board is locked\n");
2659 case MB_ERR_MEMALLOC:
2660 fprintf(stderr,
"\t reason: out of memory\n");
2662 case MB_ERR_INTERNAL:
2663 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
2666 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
2673 FLAME_firm_bank_interest_on_loan_message_board_write = 0;
2674 FLAME_firm_bank_interest_on_loan_message_board_read = 0;
2682 if(FLAME_firm_bank_interest_on_loan_message_board_write == 0 &&
2683 FLAME_firm_bank_interest_on_loan_message_board_read == 0)
2685 if(FLAME_firm_bank_interest_on_loan_message_board_write == 1 &&
2686 FLAME_firm_bank_interest_on_loan_message_board_read == 0)
2688 if(FLAME_firm_bank_interest_on_loan_message_board_write == 0 &&
2689 FLAME_firm_bank_interest_on_loan_message_board_read == 1)
2691 if(FLAME_firm_bank_interest_on_loan_message_board_write == 1 &&
2692 FLAME_firm_bank_interest_on_loan_message_board_read == 1)
2695 if (rc != MB_SUCCESS)
2697 fprintf(stderr,
"ERROR: Could not set access mode of 'firm_bank_interest_on_loan' board\n");
2699 case MB_ERR_INVALID:
2700 fprintf(stderr,
"\t reason: 'firm_bank_interest_on_loan' board is invalid\n");
2703 fprintf(stderr,
"\t reason: 'firm_bank_interest_on_loan' board is locked\n");
2705 case MB_ERR_MEMALLOC:
2706 fprintf(stderr,
"\t reason: out of memory\n");
2708 case MB_ERR_INTERNAL:
2709 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
2712 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
2719 FLAME_loan_writeoff_message_board_write = 0;
2720 FLAME_loan_writeoff_message_board_read = 0;
2728 if(FLAME_loan_writeoff_message_board_write == 0 &&
2729 FLAME_loan_writeoff_message_board_read == 0)
2731 if(FLAME_loan_writeoff_message_board_write == 1 &&
2732 FLAME_loan_writeoff_message_board_read == 0)
2734 if(FLAME_loan_writeoff_message_board_write == 0 &&
2735 FLAME_loan_writeoff_message_board_read == 1)
2737 if(FLAME_loan_writeoff_message_board_write == 1 &&
2738 FLAME_loan_writeoff_message_board_read == 1)
2741 if (rc != MB_SUCCESS)
2743 fprintf(stderr,
"ERROR: Could not set access mode of 'loan_writeoff' board\n");
2745 case MB_ERR_INVALID:
2746 fprintf(stderr,
"\t reason: 'loan_writeoff' board is invalid\n");
2749 fprintf(stderr,
"\t reason: 'loan_writeoff' board is locked\n");
2751 case MB_ERR_MEMALLOC:
2752 fprintf(stderr,
"\t reason: out of memory\n");
2754 case MB_ERR_INTERNAL:
2755 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
2758 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
2765 FLAME_firm_bank_insolvent_account_message_board_write = 0;
2766 FLAME_firm_bank_insolvent_account_message_board_read = 0;
2774 if(FLAME_firm_bank_insolvent_account_message_board_write == 0 &&
2775 FLAME_firm_bank_insolvent_account_message_board_read == 0)
2777 if(FLAME_firm_bank_insolvent_account_message_board_write == 1 &&
2778 FLAME_firm_bank_insolvent_account_message_board_read == 0)
2780 if(FLAME_firm_bank_insolvent_account_message_board_write == 0 &&
2781 FLAME_firm_bank_insolvent_account_message_board_read == 1)
2783 if(FLAME_firm_bank_insolvent_account_message_board_write == 1 &&
2784 FLAME_firm_bank_insolvent_account_message_board_read == 1)
2787 if (rc != MB_SUCCESS)
2789 fprintf(stderr,
"ERROR: Could not set access mode of 'firm_bank_insolvent_account' board\n");
2791 case MB_ERR_INVALID:
2792 fprintf(stderr,
"\t reason: 'firm_bank_insolvent_account' board is invalid\n");
2795 fprintf(stderr,
"\t reason: 'firm_bank_insolvent_account' board is locked\n");
2797 case MB_ERR_MEMALLOC:
2798 fprintf(stderr,
"\t reason: out of memory\n");
2800 case MB_ERR_INTERNAL:
2801 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
2804 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
2811 FLAME_firm_net_profit_message_board_write = 0;
2812 FLAME_firm_net_profit_message_board_read = 0;
2820 if(FLAME_firm_net_profit_message_board_write == 0 &&
2821 FLAME_firm_net_profit_message_board_read == 0)
2823 if(FLAME_firm_net_profit_message_board_write == 1 &&
2824 FLAME_firm_net_profit_message_board_read == 0)
2826 if(FLAME_firm_net_profit_message_board_write == 0 &&
2827 FLAME_firm_net_profit_message_board_read == 1)
2829 if(FLAME_firm_net_profit_message_board_write == 1 &&
2830 FLAME_firm_net_profit_message_board_read == 1)
2833 if (rc != MB_SUCCESS)
2835 fprintf(stderr,
"ERROR: Could not set access mode of 'firm_net_profit' board\n");
2837 case MB_ERR_INVALID:
2838 fprintf(stderr,
"\t reason: 'firm_net_profit' board is invalid\n");
2841 fprintf(stderr,
"\t reason: 'firm_net_profit' board is locked\n");
2843 case MB_ERR_MEMALLOC:
2844 fprintf(stderr,
"\t reason: out of memory\n");
2846 case MB_ERR_INTERNAL:
2847 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
2850 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
2857 FLAME_bank_net_profit_message_board_write = 0;
2858 FLAME_bank_net_profit_message_board_read = 0;
2866 if(FLAME_bank_net_profit_message_board_write == 0 &&
2867 FLAME_bank_net_profit_message_board_read == 0)
2869 if(FLAME_bank_net_profit_message_board_write == 1 &&
2870 FLAME_bank_net_profit_message_board_read == 0)
2872 if(FLAME_bank_net_profit_message_board_write == 0 &&
2873 FLAME_bank_net_profit_message_board_read == 1)
2875 if(FLAME_bank_net_profit_message_board_write == 1 &&
2876 FLAME_bank_net_profit_message_board_read == 1)
2879 if (rc != MB_SUCCESS)
2881 fprintf(stderr,
"ERROR: Could not set access mode of 'bank_net_profit' board\n");
2883 case MB_ERR_INVALID:
2884 fprintf(stderr,
"\t reason: 'bank_net_profit' board is invalid\n");
2887 fprintf(stderr,
"\t reason: 'bank_net_profit' board is locked\n");
2889 case MB_ERR_MEMALLOC:
2890 fprintf(stderr,
"\t reason: out of memory\n");
2892 case MB_ERR_INTERNAL:
2893 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
2896 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
2903 FLAME_bank_centralbank_interest_payment_message_board_write = 0;
2904 FLAME_bank_centralbank_interest_payment_message_board_read = 0;
2912 if(FLAME_bank_centralbank_interest_payment_message_board_write == 0 &&
2913 FLAME_bank_centralbank_interest_payment_message_board_read == 0)
2915 if(FLAME_bank_centralbank_interest_payment_message_board_write == 1 &&
2916 FLAME_bank_centralbank_interest_payment_message_board_read == 0)
2918 if(FLAME_bank_centralbank_interest_payment_message_board_write == 0 &&
2919 FLAME_bank_centralbank_interest_payment_message_board_read == 1)
2921 if(FLAME_bank_centralbank_interest_payment_message_board_write == 1 &&
2922 FLAME_bank_centralbank_interest_payment_message_board_read == 1)
2925 if (rc != MB_SUCCESS)
2927 fprintf(stderr,
"ERROR: Could not set access mode of 'bank_centralbank_interest_payment' board\n");
2929 case MB_ERR_INVALID:
2930 fprintf(stderr,
"\t reason: 'bank_centralbank_interest_payment' board is invalid\n");
2933 fprintf(stderr,
"\t reason: 'bank_centralbank_interest_payment' board is locked\n");
2935 case MB_ERR_MEMALLOC:
2936 fprintf(stderr,
"\t reason: out of memory\n");
2938 case MB_ERR_INTERNAL:
2939 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
2942 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
2949 FLAME_bank_centralbank_debt_payment_message_board_write = 0;
2950 FLAME_bank_centralbank_debt_payment_message_board_read = 0;
2958 if(FLAME_bank_centralbank_debt_payment_message_board_write == 0 &&
2959 FLAME_bank_centralbank_debt_payment_message_board_read == 0)
2961 if(FLAME_bank_centralbank_debt_payment_message_board_write == 1 &&
2962 FLAME_bank_centralbank_debt_payment_message_board_read == 0)
2964 if(FLAME_bank_centralbank_debt_payment_message_board_write == 0 &&
2965 FLAME_bank_centralbank_debt_payment_message_board_read == 1)
2967 if(FLAME_bank_centralbank_debt_payment_message_board_write == 1 &&
2968 FLAME_bank_centralbank_debt_payment_message_board_read == 1)
2971 if (rc != MB_SUCCESS)
2973 fprintf(stderr,
"ERROR: Could not set access mode of 'bank_centralbank_debt_payment' board\n");
2975 case MB_ERR_INVALID:
2976 fprintf(stderr,
"\t reason: 'bank_centralbank_debt_payment' board is invalid\n");
2979 fprintf(stderr,
"\t reason: 'bank_centralbank_debt_payment' board is locked\n");
2981 case MB_ERR_MEMALLOC:
2982 fprintf(stderr,
"\t reason: out of memory\n");
2984 case MB_ERR_INTERNAL:
2985 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
2988 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
2995 FLAME_gov_centralbank_debt_request_message_board_write = 0;
2996 FLAME_gov_centralbank_debt_request_message_board_read = 0;
3004 if(FLAME_gov_centralbank_debt_request_message_board_write == 0 &&
3005 FLAME_gov_centralbank_debt_request_message_board_read == 0)
3007 if(FLAME_gov_centralbank_debt_request_message_board_write == 1 &&
3008 FLAME_gov_centralbank_debt_request_message_board_read == 0)
3010 if(FLAME_gov_centralbank_debt_request_message_board_write == 0 &&
3011 FLAME_gov_centralbank_debt_request_message_board_read == 1)
3013 if(FLAME_gov_centralbank_debt_request_message_board_write == 1 &&
3014 FLAME_gov_centralbank_debt_request_message_board_read == 1)
3017 if (rc != MB_SUCCESS)
3019 fprintf(stderr,
"ERROR: Could not set access mode of 'gov_centralbank_debt_request' board\n");
3021 case MB_ERR_INVALID:
3022 fprintf(stderr,
"\t reason: 'gov_centralbank_debt_request' board is invalid\n");
3025 fprintf(stderr,
"\t reason: 'gov_centralbank_debt_request' board is locked\n");
3027 case MB_ERR_MEMALLOC:
3028 fprintf(stderr,
"\t reason: out of memory\n");
3030 case MB_ERR_INTERNAL:
3031 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3034 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
3041 FLAME_gov_centralbank_debt_payment_message_board_write = 0;
3042 FLAME_gov_centralbank_debt_payment_message_board_read = 0;
3050 if(FLAME_gov_centralbank_debt_payment_message_board_write == 0 &&
3051 FLAME_gov_centralbank_debt_payment_message_board_read == 0)
3053 if(FLAME_gov_centralbank_debt_payment_message_board_write == 1 &&
3054 FLAME_gov_centralbank_debt_payment_message_board_read == 0)
3056 if(FLAME_gov_centralbank_debt_payment_message_board_write == 0 &&
3057 FLAME_gov_centralbank_debt_payment_message_board_read == 1)
3059 if(FLAME_gov_centralbank_debt_payment_message_board_write == 1 &&
3060 FLAME_gov_centralbank_debt_payment_message_board_read == 1)
3063 if (rc != MB_SUCCESS)
3065 fprintf(stderr,
"ERROR: Could not set access mode of 'gov_centralbank_debt_payment' board\n");
3067 case MB_ERR_INVALID:
3068 fprintf(stderr,
"\t reason: 'gov_centralbank_debt_payment' board is invalid\n");
3071 fprintf(stderr,
"\t reason: 'gov_centralbank_debt_payment' board is locked\n");
3073 case MB_ERR_MEMALLOC:
3074 fprintf(stderr,
"\t reason: out of memory\n");
3076 case MB_ERR_INTERNAL:
3077 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3080 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
3087 FLAME_centralbank_government_profit_message_board_write = 0;
3088 FLAME_centralbank_government_profit_message_board_read = 0;
3096 if(FLAME_centralbank_government_profit_message_board_write == 0 &&
3097 FLAME_centralbank_government_profit_message_board_read == 0)
3099 if(FLAME_centralbank_government_profit_message_board_write == 1 &&
3100 FLAME_centralbank_government_profit_message_board_read == 0)
3102 if(FLAME_centralbank_government_profit_message_board_write == 0 &&
3103 FLAME_centralbank_government_profit_message_board_read == 1)
3105 if(FLAME_centralbank_government_profit_message_board_write == 1 &&
3106 FLAME_centralbank_government_profit_message_board_read == 1)
3109 if (rc != MB_SUCCESS)
3111 fprintf(stderr,
"ERROR: Could not set access mode of 'centralbank_government_profit' board\n");
3113 case MB_ERR_INVALID:
3114 fprintf(stderr,
"\t reason: 'centralbank_government_profit' board is invalid\n");
3117 fprintf(stderr,
"\t reason: 'centralbank_government_profit' board is locked\n");
3119 case MB_ERR_MEMALLOC:
3120 fprintf(stderr,
"\t reason: out of memory\n");
3122 case MB_ERR_INTERNAL:
3123 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3126 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
3133 FLAME_housing_price_message_board_write = 0;
3134 FLAME_housing_price_message_board_read = 0;
3143 if(FLAME_housing_price_message_board_write == 0 &&
3144 FLAME_housing_price_message_board_read == 0)
3146 if(FLAME_housing_price_message_board_write == 1 &&
3147 FLAME_housing_price_message_board_read == 0)
3149 if(FLAME_housing_price_message_board_write == 0 &&
3150 FLAME_housing_price_message_board_read == 1)
3152 if(FLAME_housing_price_message_board_write == 1 &&
3153 FLAME_housing_price_message_board_read == 1)
3156 if (rc != MB_SUCCESS)
3158 fprintf(stderr,
"ERROR: Could not set access mode of 'housing_price' board\n");
3160 case MB_ERR_INVALID:
3161 fprintf(stderr,
"\t reason: 'housing_price' board is invalid\n");
3164 fprintf(stderr,
"\t reason: 'housing_price' board is locked\n");
3166 case MB_ERR_MEMALLOC:
3167 fprintf(stderr,
"\t reason: out of memory\n");
3169 case MB_ERR_INTERNAL:
3170 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3173 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
3180 FLAME_buy_housing_message_board_write = 0;
3181 FLAME_buy_housing_message_board_read = 0;
3189 if(FLAME_buy_housing_message_board_write == 0 &&
3190 FLAME_buy_housing_message_board_read == 0)
3192 if(FLAME_buy_housing_message_board_write == 1 &&
3193 FLAME_buy_housing_message_board_read == 0)
3195 if(FLAME_buy_housing_message_board_write == 0 &&
3196 FLAME_buy_housing_message_board_read == 1)
3198 if(FLAME_buy_housing_message_board_write == 1 &&
3199 FLAME_buy_housing_message_board_read == 1)
3202 if (rc != MB_SUCCESS)
3204 fprintf(stderr,
"ERROR: Could not set access mode of 'buy_housing' board\n");
3206 case MB_ERR_INVALID:
3207 fprintf(stderr,
"\t reason: 'buy_housing' board is invalid\n");
3210 fprintf(stderr,
"\t reason: 'buy_housing' board is locked\n");
3212 case MB_ERR_MEMALLOC:
3213 fprintf(stderr,
"\t reason: out of memory\n");
3215 case MB_ERR_INTERNAL:
3216 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3219 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
3226 FLAME_sell_housing_message_board_write = 0;
3227 FLAME_sell_housing_message_board_read = 0;
3236 if(FLAME_sell_housing_message_board_write == 0 &&
3237 FLAME_sell_housing_message_board_read == 0)
3239 if(FLAME_sell_housing_message_board_write == 1 &&
3240 FLAME_sell_housing_message_board_read == 0)
3242 if(FLAME_sell_housing_message_board_write == 0 &&
3243 FLAME_sell_housing_message_board_read == 1)
3245 if(FLAME_sell_housing_message_board_write == 1 &&
3246 FLAME_sell_housing_message_board_read == 1)
3249 if (rc != MB_SUCCESS)
3251 fprintf(stderr,
"ERROR: Could not set access mode of 'sell_housing' board\n");
3253 case MB_ERR_INVALID:
3254 fprintf(stderr,
"\t reason: 'sell_housing' board is invalid\n");
3257 fprintf(stderr,
"\t reason: 'sell_housing' board is locked\n");
3259 case MB_ERR_MEMALLOC:
3260 fprintf(stderr,
"\t reason: out of memory\n");
3262 case MB_ERR_INTERNAL:
3263 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3266 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
3273 FLAME_bought_housing_message_board_write = 0;
3274 FLAME_bought_housing_message_board_read = 0;
3282 if(FLAME_bought_housing_message_board_write == 0 &&
3283 FLAME_bought_housing_message_board_read == 0)
3285 if(FLAME_bought_housing_message_board_write == 1 &&
3286 FLAME_bought_housing_message_board_read == 0)
3288 if(FLAME_bought_housing_message_board_write == 0 &&
3289 FLAME_bought_housing_message_board_read == 1)
3291 if(FLAME_bought_housing_message_board_write == 1 &&
3292 FLAME_bought_housing_message_board_read == 1)
3295 if (rc != MB_SUCCESS)
3297 fprintf(stderr,
"ERROR: Could not set access mode of 'bought_housing' board\n");
3299 case MB_ERR_INVALID:
3300 fprintf(stderr,
"\t reason: 'bought_housing' board is invalid\n");
3303 fprintf(stderr,
"\t reason: 'bought_housing' board is locked\n");
3305 case MB_ERR_MEMALLOC:
3306 fprintf(stderr,
"\t reason: out of memory\n");
3308 case MB_ERR_INTERNAL:
3309 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3312 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
3319 FLAME_sold_housing_message_board_write = 0;
3320 FLAME_sold_housing_message_board_read = 0;
3329 if(FLAME_sold_housing_message_board_write == 0 &&
3330 FLAME_sold_housing_message_board_read == 0)
3332 if(FLAME_sold_housing_message_board_write == 1 &&
3333 FLAME_sold_housing_message_board_read == 0)
3335 if(FLAME_sold_housing_message_board_write == 0 &&
3336 FLAME_sold_housing_message_board_read == 1)
3338 if(FLAME_sold_housing_message_board_write == 1 &&
3339 FLAME_sold_housing_message_board_read == 1)
3342 if (rc != MB_SUCCESS)
3344 fprintf(stderr,
"ERROR: Could not set access mode of 'sold_housing' board\n");
3346 case MB_ERR_INVALID:
3347 fprintf(stderr,
"\t reason: 'sold_housing' board is invalid\n");
3350 fprintf(stderr,
"\t reason: 'sold_housing' board is locked\n");
3352 case MB_ERR_MEMALLOC:
3353 fprintf(stderr,
"\t reason: out of memory\n");
3355 case MB_ERR_INTERNAL:
3356 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3359 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
3366 FLAME_bank_reagency_credibility_message_board_write = 0;
3367 FLAME_bank_reagency_credibility_message_board_read = 0;
3375 if(FLAME_bank_reagency_credibility_message_board_write == 0 &&
3376 FLAME_bank_reagency_credibility_message_board_read == 0)
3378 if(FLAME_bank_reagency_credibility_message_board_write == 1 &&
3379 FLAME_bank_reagency_credibility_message_board_read == 0)
3381 if(FLAME_bank_reagency_credibility_message_board_write == 0 &&
3382 FLAME_bank_reagency_credibility_message_board_read == 1)
3384 if(FLAME_bank_reagency_credibility_message_board_write == 1 &&
3385 FLAME_bank_reagency_credibility_message_board_read == 1)
3388 if (rc != MB_SUCCESS)
3390 fprintf(stderr,
"ERROR: Could not set access mode of 'bank_reagency_credibility' board\n");
3392 case MB_ERR_INVALID:
3393 fprintf(stderr,
"\t reason: 'bank_reagency_credibility' board is invalid\n");
3396 fprintf(stderr,
"\t reason: 'bank_reagency_credibility' board is locked\n");
3398 case MB_ERR_MEMALLOC:
3399 fprintf(stderr,
"\t reason: out of memory\n");
3401 case MB_ERR_INTERNAL:
3402 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3405 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
3412 FLAME_mortgage_requests_message_board_write = 0;
3413 FLAME_mortgage_requests_message_board_read = 0;
3421 if(FLAME_mortgage_requests_message_board_write == 0 &&
3422 FLAME_mortgage_requests_message_board_read == 0)
3424 if(FLAME_mortgage_requests_message_board_write == 1 &&
3425 FLAME_mortgage_requests_message_board_read == 0)
3427 if(FLAME_mortgage_requests_message_board_write == 0 &&
3428 FLAME_mortgage_requests_message_board_read == 1)
3430 if(FLAME_mortgage_requests_message_board_write == 1 &&
3431 FLAME_mortgage_requests_message_board_read == 1)
3434 if (rc != MB_SUCCESS)
3436 fprintf(stderr,
"ERROR: Could not set access mode of 'mortgage_requests' board\n");
3438 case MB_ERR_INVALID:
3439 fprintf(stderr,
"\t reason: 'mortgage_requests' board is invalid\n");
3442 fprintf(stderr,
"\t reason: 'mortgage_requests' board is locked\n");
3444 case MB_ERR_MEMALLOC:
3445 fprintf(stderr,
"\t reason: out of memory\n");
3447 case MB_ERR_INTERNAL:
3448 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3451 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
3458 FLAME_mortgage_payment_from_sale_message_board_write = 0;
3459 FLAME_mortgage_payment_from_sale_message_board_read = 0;
3467 if(FLAME_mortgage_payment_from_sale_message_board_write == 0 &&
3468 FLAME_mortgage_payment_from_sale_message_board_read == 0)
3470 if(FLAME_mortgage_payment_from_sale_message_board_write == 1 &&
3471 FLAME_mortgage_payment_from_sale_message_board_read == 0)
3473 if(FLAME_mortgage_payment_from_sale_message_board_write == 0 &&
3474 FLAME_mortgage_payment_from_sale_message_board_read == 1)
3476 if(FLAME_mortgage_payment_from_sale_message_board_write == 1 &&
3477 FLAME_mortgage_payment_from_sale_message_board_read == 1)
3480 if (rc != MB_SUCCESS)
3482 fprintf(stderr,
"ERROR: Could not set access mode of 'mortgage_payment_from_sale' board\n");
3484 case MB_ERR_INVALID:
3485 fprintf(stderr,
"\t reason: 'mortgage_payment_from_sale' board is invalid\n");
3488 fprintf(stderr,
"\t reason: 'mortgage_payment_from_sale' board is locked\n");
3490 case MB_ERR_MEMALLOC:
3491 fprintf(stderr,
"\t reason: out of memory\n");
3493 case MB_ERR_INTERNAL:
3494 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3497 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
3504 FLAME_mortgage_payment_message_board_write = 0;
3505 FLAME_mortgage_payment_message_board_read = 0;
3513 if(FLAME_mortgage_payment_message_board_write == 0 &&
3514 FLAME_mortgage_payment_message_board_read == 0)
3516 if(FLAME_mortgage_payment_message_board_write == 1 &&
3517 FLAME_mortgage_payment_message_board_read == 0)
3519 if(FLAME_mortgage_payment_message_board_write == 0 &&
3520 FLAME_mortgage_payment_message_board_read == 1)
3522 if(FLAME_mortgage_payment_message_board_write == 1 &&
3523 FLAME_mortgage_payment_message_board_read == 1)
3526 if (rc != MB_SUCCESS)
3528 fprintf(stderr,
"ERROR: Could not set access mode of 'mortgage_payment' board\n");
3530 case MB_ERR_INVALID:
3531 fprintf(stderr,
"\t reason: 'mortgage_payment' board is invalid\n");
3534 fprintf(stderr,
"\t reason: 'mortgage_payment' board is locked\n");
3536 case MB_ERR_MEMALLOC:
3537 fprintf(stderr,
"\t reason: out of memory\n");
3539 case MB_ERR_INTERNAL:
3540 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3543 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
3550 FLAME_mortgage_writeoff_message_board_write = 0;
3551 FLAME_mortgage_writeoff_message_board_read = 0;
3559 if(FLAME_mortgage_writeoff_message_board_write == 0 &&
3560 FLAME_mortgage_writeoff_message_board_read == 0)
3562 if(FLAME_mortgage_writeoff_message_board_write == 1 &&
3563 FLAME_mortgage_writeoff_message_board_read == 0)
3565 if(FLAME_mortgage_writeoff_message_board_write == 0 &&
3566 FLAME_mortgage_writeoff_message_board_read == 1)
3568 if(FLAME_mortgage_writeoff_message_board_write == 1 &&
3569 FLAME_mortgage_writeoff_message_board_read == 1)
3572 if (rc != MB_SUCCESS)
3574 fprintf(stderr,
"ERROR: Could not set access mode of 'mortgage_writeoff' board\n");
3576 case MB_ERR_INVALID:
3577 fprintf(stderr,
"\t reason: 'mortgage_writeoff' board is invalid\n");
3580 fprintf(stderr,
"\t reason: 'mortgage_writeoff' board is locked\n");
3582 case MB_ERR_MEMALLOC:
3583 fprintf(stderr,
"\t reason: out of memory\n");
3585 case MB_ERR_INTERNAL:
3586 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3589 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
3596 FLAME_housing_transactions_summary_message_board_write = 0;
3597 FLAME_housing_transactions_summary_message_board_read = 0;
3605 if(FLAME_housing_transactions_summary_message_board_write == 0 &&
3606 FLAME_housing_transactions_summary_message_board_read == 0)
3608 if(FLAME_housing_transactions_summary_message_board_write == 1 &&
3609 FLAME_housing_transactions_summary_message_board_read == 0)
3611 if(FLAME_housing_transactions_summary_message_board_write == 0 &&
3612 FLAME_housing_transactions_summary_message_board_read == 1)
3614 if(FLAME_housing_transactions_summary_message_board_write == 1 &&
3615 FLAME_housing_transactions_summary_message_board_read == 1)
3618 if (rc != MB_SUCCESS)
3620 fprintf(stderr,
"ERROR: Could not set access mode of 'housing_transactions_summary' board\n");
3622 case MB_ERR_INVALID:
3623 fprintf(stderr,
"\t reason: 'housing_transactions_summary' board is invalid\n");
3626 fprintf(stderr,
"\t reason: 'housing_transactions_summary' board is locked\n");
3628 case MB_ERR_MEMALLOC:
3629 fprintf(stderr,
"\t reason: out of memory\n");
3631 case MB_ERR_INTERNAL:
3632 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3635 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
3654 (void)fflush(stdout);
3659 if(FLAME_firm_bank_init_loans_message_board_write == 0)
3668 if (rc != MB_SUCCESS)
3670 fprintf(stderr,
"ERROR: Could not start sync of 'firm_bank_init_loans' board\n");
3672 case MB_ERR_INVALID:
3673 fprintf(stderr,
"\t reason: 'firm_bank_init_loans' board is invalid\n");
3676 fprintf(stderr,
"\t reason: 'firm_bank_init_loans' board is locked\n");
3678 case MB_ERR_MEMALLOC:
3679 fprintf(stderr,
"\t reason: out of memory\n");
3681 case MB_ERR_INTERNAL:
3682 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3685 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
3696 if(FLAME_firm_bank_init_deposit_message_board_write == 0)
3705 if (rc != MB_SUCCESS)
3707 fprintf(stderr,
"ERROR: Could not start sync of 'firm_bank_init_deposit' board\n");
3709 case MB_ERR_INVALID:
3710 fprintf(stderr,
"\t reason: 'firm_bank_init_deposit' board is invalid\n");
3713 fprintf(stderr,
"\t reason: 'firm_bank_init_deposit' board is locked\n");
3715 case MB_ERR_MEMALLOC:
3716 fprintf(stderr,
"\t reason: out of memory\n");
3718 case MB_ERR_INTERNAL:
3719 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3722 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
3733 if(FLAME_firm_bank_update_deposit_message_board_write == 0)
3742 if (rc != MB_SUCCESS)
3744 fprintf(stderr,
"ERROR: Could not start sync of 'firm_bank_update_deposit' board\n");
3746 case MB_ERR_INVALID:
3747 fprintf(stderr,
"\t reason: 'firm_bank_update_deposit' board is invalid\n");
3750 fprintf(stderr,
"\t reason: 'firm_bank_update_deposit' board is locked\n");
3752 case MB_ERR_MEMALLOC:
3753 fprintf(stderr,
"\t reason: out of memory\n");
3755 case MB_ERR_INTERNAL:
3756 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3759 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
3770 if(FLAME_household_bank_init_mortgages_message_board_write == 0)
3779 if (rc != MB_SUCCESS)
3781 fprintf(stderr,
"ERROR: Could not start sync of 'household_bank_init_mortgages' board\n");
3783 case MB_ERR_INVALID:
3784 fprintf(stderr,
"\t reason: 'household_bank_init_mortgages' board is invalid\n");
3787 fprintf(stderr,
"\t reason: 'household_bank_init_mortgages' board is locked\n");
3789 case MB_ERR_MEMALLOC:
3790 fprintf(stderr,
"\t reason: out of memory\n");
3792 case MB_ERR_INTERNAL:
3793 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3796 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
3807 if(FLAME_household_bank_init_deposit_message_board_write == 0)
3816 if (rc != MB_SUCCESS)
3818 fprintf(stderr,
"ERROR: Could not start sync of 'household_bank_init_deposit' board\n");
3820 case MB_ERR_INVALID:
3821 fprintf(stderr,
"\t reason: 'household_bank_init_deposit' board is invalid\n");
3824 fprintf(stderr,
"\t reason: 'household_bank_init_deposit' board is locked\n");
3826 case MB_ERR_MEMALLOC:
3827 fprintf(stderr,
"\t reason: out of memory\n");
3829 case MB_ERR_INTERNAL:
3830 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3833 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
3844 if(FLAME_household_bank_update_deposit_message_board_write == 0)
3853 if (rc != MB_SUCCESS)
3855 fprintf(stderr,
"ERROR: Could not start sync of 'household_bank_update_deposit' board\n");
3857 case MB_ERR_INVALID:
3858 fprintf(stderr,
"\t reason: 'household_bank_update_deposit' board is invalid\n");
3861 fprintf(stderr,
"\t reason: 'household_bank_update_deposit' board is locked\n");
3863 case MB_ERR_MEMALLOC:
3864 fprintf(stderr,
"\t reason: out of memory\n");
3866 case MB_ERR_INTERNAL:
3867 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3870 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
3881 if(FLAME_bank_centralbank_init_debt_message_board_write == 0)
3890 if (rc != MB_SUCCESS)
3892 fprintf(stderr,
"ERROR: Could not start sync of 'bank_centralbank_init_debt' board\n");
3894 case MB_ERR_INVALID:
3895 fprintf(stderr,
"\t reason: 'bank_centralbank_init_debt' board is invalid\n");
3898 fprintf(stderr,
"\t reason: 'bank_centralbank_init_debt' board is locked\n");
3900 case MB_ERR_MEMALLOC:
3901 fprintf(stderr,
"\t reason: out of memory\n");
3903 case MB_ERR_INTERNAL:
3904 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3907 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
3918 if(FLAME_bank_centralbank_init_deposit_message_board_write == 0)
3927 if (rc != MB_SUCCESS)
3929 fprintf(stderr,
"ERROR: Could not start sync of 'bank_centralbank_init_deposit' board\n");
3931 case MB_ERR_INVALID:
3932 fprintf(stderr,
"\t reason: 'bank_centralbank_init_deposit' board is invalid\n");
3935 fprintf(stderr,
"\t reason: 'bank_centralbank_init_deposit' board is locked\n");
3937 case MB_ERR_MEMALLOC:
3938 fprintf(stderr,
"\t reason: out of memory\n");
3940 case MB_ERR_INTERNAL:
3941 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3944 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
3955 if(FLAME_bank_centralbank_update_deposit_message_board_write == 0)
3964 if (rc != MB_SUCCESS)
3966 fprintf(stderr,
"ERROR: Could not start sync of 'bank_centralbank_update_deposit' board\n");
3968 case MB_ERR_INVALID:
3969 fprintf(stderr,
"\t reason: 'bank_centralbank_update_deposit' board is invalid\n");
3972 fprintf(stderr,
"\t reason: 'bank_centralbank_update_deposit' board is locked\n");
3974 case MB_ERR_MEMALLOC:
3975 fprintf(stderr,
"\t reason: out of memory\n");
3977 case MB_ERR_INTERNAL:
3978 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
3981 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
3992 if(FLAME_fund_centralbank_init_deposit_message_board_write == 0)
4001 if (rc != MB_SUCCESS)
4003 fprintf(stderr,
"ERROR: Could not start sync of 'fund_centralbank_init_deposit' board\n");
4005 case MB_ERR_INVALID:
4006 fprintf(stderr,
"\t reason: 'fund_centralbank_init_deposit' board is invalid\n");
4009 fprintf(stderr,
"\t reason: 'fund_centralbank_init_deposit' board is locked\n");
4011 case MB_ERR_MEMALLOC:
4012 fprintf(stderr,
"\t reason: out of memory\n");
4014 case MB_ERR_INTERNAL:
4015 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4018 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
4029 if(FLAME_fund_centralbank_update_deposit_message_board_write == 0)
4038 if (rc != MB_SUCCESS)
4040 fprintf(stderr,
"ERROR: Could not start sync of 'fund_centralbank_update_deposit' board\n");
4042 case MB_ERR_INVALID:
4043 fprintf(stderr,
"\t reason: 'fund_centralbank_update_deposit' board is invalid\n");
4046 fprintf(stderr,
"\t reason: 'fund_centralbank_update_deposit' board is locked\n");
4048 case MB_ERR_MEMALLOC:
4049 fprintf(stderr,
"\t reason: out of memory\n");
4051 case MB_ERR_INTERNAL:
4052 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4055 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
4066 if(FLAME_gov_centralbank_init_deposit_message_board_write == 0)
4075 if (rc != MB_SUCCESS)
4077 fprintf(stderr,
"ERROR: Could not start sync of 'gov_centralbank_init_deposit' board\n");
4079 case MB_ERR_INVALID:
4080 fprintf(stderr,
"\t reason: 'gov_centralbank_init_deposit' board is invalid\n");
4083 fprintf(stderr,
"\t reason: 'gov_centralbank_init_deposit' board is locked\n");
4085 case MB_ERR_MEMALLOC:
4086 fprintf(stderr,
"\t reason: out of memory\n");
4088 case MB_ERR_INTERNAL:
4089 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4092 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
4103 if(FLAME_gov_centralbank_update_deposit_message_board_write == 0)
4112 if (rc != MB_SUCCESS)
4114 fprintf(stderr,
"ERROR: Could not start sync of 'gov_centralbank_update_deposit' board\n");
4116 case MB_ERR_INVALID:
4117 fprintf(stderr,
"\t reason: 'gov_centralbank_update_deposit' board is invalid\n");
4120 fprintf(stderr,
"\t reason: 'gov_centralbank_update_deposit' board is locked\n");
4122 case MB_ERR_MEMALLOC:
4123 fprintf(stderr,
"\t reason: out of memory\n");
4125 case MB_ERR_INTERNAL:
4126 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4129 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
4140 if(FLAME_interest_rate_message_board_write == 0)
4149 if (rc != MB_SUCCESS)
4151 fprintf(stderr,
"ERROR: Could not start sync of 'interest_rate' board\n");
4153 case MB_ERR_INVALID:
4154 fprintf(stderr,
"\t reason: 'interest_rate' board is invalid\n");
4157 fprintf(stderr,
"\t reason: 'interest_rate' board is locked\n");
4159 case MB_ERR_MEMALLOC:
4160 fprintf(stderr,
"\t reason: out of memory\n");
4162 case MB_ERR_INTERNAL:
4163 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4166 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
4177 if(FLAME_capital_tax_rate_message_board_write == 0)
4186 if (rc != MB_SUCCESS)
4188 fprintf(stderr,
"ERROR: Could not start sync of 'capital_tax_rate' board\n");
4190 case MB_ERR_INVALID:
4191 fprintf(stderr,
"\t reason: 'capital_tax_rate' board is invalid\n");
4194 fprintf(stderr,
"\t reason: 'capital_tax_rate' board is locked\n");
4196 case MB_ERR_MEMALLOC:
4197 fprintf(stderr,
"\t reason: out of memory\n");
4199 case MB_ERR_INTERNAL:
4200 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4203 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
4214 if(FLAME_labour_tax_rate_message_board_write == 0)
4223 if (rc != MB_SUCCESS)
4225 fprintf(stderr,
"ERROR: Could not start sync of 'labour_tax_rate' board\n");
4227 case MB_ERR_INVALID:
4228 fprintf(stderr,
"\t reason: 'labour_tax_rate' board is invalid\n");
4231 fprintf(stderr,
"\t reason: 'labour_tax_rate' board is locked\n");
4233 case MB_ERR_MEMALLOC:
4234 fprintf(stderr,
"\t reason: out of memory\n");
4236 case MB_ERR_INTERNAL:
4237 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4240 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
4251 if(FLAME_household_jpoffice_id_message_board_write == 0)
4260 if (rc != MB_SUCCESS)
4262 fprintf(stderr,
"ERROR: Could not start sync of 'household_jpoffice_id' board\n");
4264 case MB_ERR_INVALID:
4265 fprintf(stderr,
"\t reason: 'household_jpoffice_id' board is invalid\n");
4268 fprintf(stderr,
"\t reason: 'household_jpoffice_id' board is locked\n");
4270 case MB_ERR_MEMALLOC:
4271 fprintf(stderr,
"\t reason: out of memory\n");
4273 case MB_ERR_INTERNAL:
4274 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4277 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
4288 if(FLAME_jpoffice_household_employer_message_board_write == 0)
4297 if (rc != MB_SUCCESS)
4299 fprintf(stderr,
"ERROR: Could not start sync of 'jpoffice_household_employer' board\n");
4301 case MB_ERR_INVALID:
4302 fprintf(stderr,
"\t reason: 'jpoffice_household_employer' board is invalid\n");
4305 fprintf(stderr,
"\t reason: 'jpoffice_household_employer' board is locked\n");
4307 case MB_ERR_MEMALLOC:
4308 fprintf(stderr,
"\t reason: out of memory\n");
4310 case MB_ERR_INTERNAL:
4311 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4314 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
4325 if(FLAME_firm_jpoffice_id_message_board_write == 0)
4334 if (rc != MB_SUCCESS)
4336 fprintf(stderr,
"ERROR: Could not start sync of 'firm_jpoffice_id' board\n");
4338 case MB_ERR_INVALID:
4339 fprintf(stderr,
"\t reason: 'firm_jpoffice_id' board is invalid\n");
4342 fprintf(stderr,
"\t reason: 'firm_jpoffice_id' board is locked\n");
4344 case MB_ERR_MEMALLOC:
4345 fprintf(stderr,
"\t reason: out of memory\n");
4347 case MB_ERR_INTERNAL:
4348 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4351 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
4362 if(FLAME_jpoffice_firm_employee_message_board_write == 0)
4371 if (rc != MB_SUCCESS)
4373 fprintf(stderr,
"ERROR: Could not start sync of 'jpoffice_firm_employee' board\n");
4375 case MB_ERR_INVALID:
4376 fprintf(stderr,
"\t reason: 'jpoffice_firm_employee' board is invalid\n");
4379 fprintf(stderr,
"\t reason: 'jpoffice_firm_employee' board is locked\n");
4381 case MB_ERR_MEMALLOC:
4382 fprintf(stderr,
"\t reason: out of memory\n");
4384 case MB_ERR_INTERNAL:
4385 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4388 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
4399 if(FLAME_buy_message_board_write == 0)
4405 rc = MB_SyncStart(
b_buy);
4408 if (rc != MB_SUCCESS)
4410 fprintf(stderr,
"ERROR: Could not start sync of 'buy' board\n");
4412 case MB_ERR_INVALID:
4413 fprintf(stderr,
"\t reason: 'buy' board is invalid\n");
4416 fprintf(stderr,
"\t reason: 'buy' board is locked\n");
4418 case MB_ERR_MEMALLOC:
4419 fprintf(stderr,
"\t reason: out of memory\n");
4421 case MB_ERR_INTERNAL:
4422 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4425 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
4436 if(FLAME_bought_message_board_write == 0)
4445 if (rc != MB_SUCCESS)
4447 fprintf(stderr,
"ERROR: Could not start sync of 'bought' board\n");
4449 case MB_ERR_INVALID:
4450 fprintf(stderr,
"\t reason: 'bought' board is invalid\n");
4453 fprintf(stderr,
"\t reason: 'bought' board is locked\n");
4455 case MB_ERR_MEMALLOC:
4456 fprintf(stderr,
"\t reason: out of memory\n");
4458 case MB_ERR_INTERNAL:
4459 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4462 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
4473 if(FLAME_sell_message_board_write == 0)
4479 rc = MB_SyncStart(
b_sell);
4482 if (rc != MB_SUCCESS)
4484 fprintf(stderr,
"ERROR: Could not start sync of 'sell' board\n");
4486 case MB_ERR_INVALID:
4487 fprintf(stderr,
"\t reason: 'sell' board is invalid\n");
4490 fprintf(stderr,
"\t reason: 'sell' board is locked\n");
4492 case MB_ERR_MEMALLOC:
4493 fprintf(stderr,
"\t reason: out of memory\n");
4495 case MB_ERR_INTERNAL:
4496 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4499 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
4510 if(FLAME_sold_message_board_write == 0)
4516 rc = MB_SyncStart(
b_sold);
4519 if (rc != MB_SUCCESS)
4521 fprintf(stderr,
"ERROR: Could not start sync of 'sold' board\n");
4523 case MB_ERR_INVALID:
4524 fprintf(stderr,
"\t reason: 'sold' board is invalid\n");
4527 fprintf(stderr,
"\t reason: 'sold' board is locked\n");
4529 case MB_ERR_MEMALLOC:
4530 fprintf(stderr,
"\t reason: out of memory\n");
4532 case MB_ERR_INTERNAL:
4533 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4536 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
4547 if(FLAME_goods_transactions_summary_message_board_write == 0)
4556 if (rc != MB_SUCCESS)
4558 fprintf(stderr,
"ERROR: Could not start sync of 'goods_transactions_summary' board\n");
4560 case MB_ERR_INVALID:
4561 fprintf(stderr,
"\t reason: 'goods_transactions_summary' board is invalid\n");
4564 fprintf(stderr,
"\t reason: 'goods_transactions_summary' board is locked\n");
4566 case MB_ERR_MEMALLOC:
4567 fprintf(stderr,
"\t reason: out of memory\n");
4569 case MB_ERR_INTERNAL:
4570 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4573 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
4584 if(FLAME_centralbank_households_quarterly_cpi_message_board_write == 0)
4593 if (rc != MB_SUCCESS)
4595 fprintf(stderr,
"ERROR: Could not start sync of 'centralbank_households_quarterly_cpi' board\n");
4597 case MB_ERR_INVALID:
4598 fprintf(stderr,
"\t reason: 'centralbank_households_quarterly_cpi' board is invalid\n");
4601 fprintf(stderr,
"\t reason: 'centralbank_households_quarterly_cpi' board is locked\n");
4603 case MB_ERR_MEMALLOC:
4604 fprintf(stderr,
"\t reason: out of memory\n");
4606 case MB_ERR_INTERNAL:
4607 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4610 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
4621 if(FLAME_fired_message_board_write == 0)
4630 if (rc != MB_SUCCESS)
4632 fprintf(stderr,
"ERROR: Could not start sync of 'fired' board\n");
4634 case MB_ERR_INVALID:
4635 fprintf(stderr,
"\t reason: 'fired' board is invalid\n");
4638 fprintf(stderr,
"\t reason: 'fired' board is locked\n");
4640 case MB_ERR_MEMALLOC:
4641 fprintf(stderr,
"\t reason: out of memory\n");
4643 case MB_ERR_INTERNAL:
4644 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4647 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
4658 if(FLAME_vacancy_stage1_message_board_write == 0)
4667 if (rc != MB_SUCCESS)
4669 fprintf(stderr,
"ERROR: Could not start sync of 'vacancy_stage1' board\n");
4671 case MB_ERR_INVALID:
4672 fprintf(stderr,
"\t reason: 'vacancy_stage1' board is invalid\n");
4675 fprintf(stderr,
"\t reason: 'vacancy_stage1' board is locked\n");
4677 case MB_ERR_MEMALLOC:
4678 fprintf(stderr,
"\t reason: out of memory\n");
4680 case MB_ERR_INTERNAL:
4681 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4684 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
4695 if(FLAME_job_application_stage2_message_board_write == 0)
4704 if (rc != MB_SUCCESS)
4706 fprintf(stderr,
"ERROR: Could not start sync of 'job_application_stage2' board\n");
4708 case MB_ERR_INVALID:
4709 fprintf(stderr,
"\t reason: 'job_application_stage2' board is invalid\n");
4712 fprintf(stderr,
"\t reason: 'job_application_stage2' board is locked\n");
4714 case MB_ERR_MEMALLOC:
4715 fprintf(stderr,
"\t reason: out of memory\n");
4717 case MB_ERR_INTERNAL:
4718 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4721 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
4732 if(FLAME_job_application_stage1_message_board_write == 0)
4741 if (rc != MB_SUCCESS)
4743 fprintf(stderr,
"ERROR: Could not start sync of 'job_application_stage1' board\n");
4745 case MB_ERR_INVALID:
4746 fprintf(stderr,
"\t reason: 'job_application_stage1' board is invalid\n");
4749 fprintf(stderr,
"\t reason: 'job_application_stage1' board is locked\n");
4751 case MB_ERR_MEMALLOC:
4752 fprintf(stderr,
"\t reason: out of memory\n");
4754 case MB_ERR_INTERNAL:
4755 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4758 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
4769 if(FLAME_job_match_stage1_message_board_write == 0)
4778 if (rc != MB_SUCCESS)
4780 fprintf(stderr,
"ERROR: Could not start sync of 'job_match_stage1' board\n");
4782 case MB_ERR_INVALID:
4783 fprintf(stderr,
"\t reason: 'job_match_stage1' board is invalid\n");
4786 fprintf(stderr,
"\t reason: 'job_match_stage1' board is locked\n");
4788 case MB_ERR_MEMALLOC:
4789 fprintf(stderr,
"\t reason: out of memory\n");
4791 case MB_ERR_INTERNAL:
4792 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4795 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
4806 if(FLAME_job_change_message_board_write == 0)
4815 if (rc != MB_SUCCESS)
4817 fprintf(stderr,
"ERROR: Could not start sync of 'job_change' board\n");
4819 case MB_ERR_INVALID:
4820 fprintf(stderr,
"\t reason: 'job_change' board is invalid\n");
4823 fprintf(stderr,
"\t reason: 'job_change' board is locked\n");
4825 case MB_ERR_MEMALLOC:
4826 fprintf(stderr,
"\t reason: out of memory\n");
4828 case MB_ERR_INTERNAL:
4829 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4832 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
4843 if(FLAME_vacancy_stage2_message_board_write == 0)
4852 if (rc != MB_SUCCESS)
4854 fprintf(stderr,
"ERROR: Could not start sync of 'vacancy_stage2' board\n");
4856 case MB_ERR_INVALID:
4857 fprintf(stderr,
"\t reason: 'vacancy_stage2' board is invalid\n");
4860 fprintf(stderr,
"\t reason: 'vacancy_stage2' board is locked\n");
4862 case MB_ERR_MEMALLOC:
4863 fprintf(stderr,
"\t reason: out of memory\n");
4865 case MB_ERR_INTERNAL:
4866 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4869 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
4880 if(FLAME_job_match_stage2_message_board_write == 0)
4889 if (rc != MB_SUCCESS)
4891 fprintf(stderr,
"ERROR: Could not start sync of 'job_match_stage2' board\n");
4893 case MB_ERR_INVALID:
4894 fprintf(stderr,
"\t reason: 'job_match_stage2' board is invalid\n");
4897 fprintf(stderr,
"\t reason: 'job_match_stage2' board is locked\n");
4899 case MB_ERR_MEMALLOC:
4900 fprintf(stderr,
"\t reason: out of memory\n");
4902 case MB_ERR_INTERNAL:
4903 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4906 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
4917 if(FLAME_employment_status_message_board_write == 0)
4926 if (rc != MB_SUCCESS)
4928 fprintf(stderr,
"ERROR: Could not start sync of 'employment_status' board\n");
4930 case MB_ERR_INVALID:
4931 fprintf(stderr,
"\t reason: 'employment_status' board is invalid\n");
4934 fprintf(stderr,
"\t reason: 'employment_status' board is locked\n");
4936 case MB_ERR_MEMALLOC:
4937 fprintf(stderr,
"\t reason: out of memory\n");
4939 case MB_ERR_INTERNAL:
4940 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4943 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
4954 if(FLAME_firm_household_wage_payment_message_board_write == 0)
4963 if (rc != MB_SUCCESS)
4965 fprintf(stderr,
"ERROR: Could not start sync of 'firm_household_wage_payment' board\n");
4967 case MB_ERR_INVALID:
4968 fprintf(stderr,
"\t reason: 'firm_household_wage_payment' board is invalid\n");
4971 fprintf(stderr,
"\t reason: 'firm_household_wage_payment' board is locked\n");
4973 case MB_ERR_MEMALLOC:
4974 fprintf(stderr,
"\t reason: out of memory\n");
4976 case MB_ERR_INTERNAL:
4977 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
4980 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
4991 if(FLAME_firm_bank_loan_request_1_message_board_write == 0)
5000 if (rc != MB_SUCCESS)
5002 fprintf(stderr,
"ERROR: Could not start sync of 'firm_bank_loan_request_1' board\n");
5004 case MB_ERR_INVALID:
5005 fprintf(stderr,
"\t reason: 'firm_bank_loan_request_1' board is invalid\n");
5008 fprintf(stderr,
"\t reason: 'firm_bank_loan_request_1' board is locked\n");
5010 case MB_ERR_MEMALLOC:
5011 fprintf(stderr,
"\t reason: out of memory\n");
5013 case MB_ERR_INTERNAL:
5014 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5017 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
5028 if(FLAME_firm_bank_loan_request_2_message_board_write == 0)
5037 if (rc != MB_SUCCESS)
5039 fprintf(stderr,
"ERROR: Could not start sync of 'firm_bank_loan_request_2' board\n");
5041 case MB_ERR_INVALID:
5042 fprintf(stderr,
"\t reason: 'firm_bank_loan_request_2' board is invalid\n");
5045 fprintf(stderr,
"\t reason: 'firm_bank_loan_request_2' board is locked\n");
5047 case MB_ERR_MEMALLOC:
5048 fprintf(stderr,
"\t reason: out of memory\n");
5050 case MB_ERR_INTERNAL:
5051 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5054 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
5065 if(FLAME_bank_firm_loan_acknowledge_1_message_board_write == 0)
5074 if (rc != MB_SUCCESS)
5076 fprintf(stderr,
"ERROR: Could not start sync of 'bank_firm_loan_acknowledge_1' board\n");
5078 case MB_ERR_INVALID:
5079 fprintf(stderr,
"\t reason: 'bank_firm_loan_acknowledge_1' board is invalid\n");
5082 fprintf(stderr,
"\t reason: 'bank_firm_loan_acknowledge_1' board is locked\n");
5084 case MB_ERR_MEMALLOC:
5085 fprintf(stderr,
"\t reason: out of memory\n");
5087 case MB_ERR_INTERNAL:
5088 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5091 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
5102 if(FLAME_bank_firm_loan_acknowledge_2_message_board_write == 0)
5111 if (rc != MB_SUCCESS)
5113 fprintf(stderr,
"ERROR: Could not start sync of 'bank_firm_loan_acknowledge_2' board\n");
5115 case MB_ERR_INVALID:
5116 fprintf(stderr,
"\t reason: 'bank_firm_loan_acknowledge_2' board is invalid\n");
5119 fprintf(stderr,
"\t reason: 'bank_firm_loan_acknowledge_2' board is locked\n");
5121 case MB_ERR_MEMALLOC:
5122 fprintf(stderr,
"\t reason: out of memory\n");
5124 case MB_ERR_INTERNAL:
5125 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5128 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
5139 if(FLAME_bank_centralbank_debt_request_message_board_write == 0)
5148 if (rc != MB_SUCCESS)
5150 fprintf(stderr,
"ERROR: Could not start sync of 'bank_centralbank_debt_request' board\n");
5152 case MB_ERR_INVALID:
5153 fprintf(stderr,
"\t reason: 'bank_centralbank_debt_request' board is invalid\n");
5156 fprintf(stderr,
"\t reason: 'bank_centralbank_debt_request' board is locked\n");
5158 case MB_ERR_MEMALLOC:
5159 fprintf(stderr,
"\t reason: out of memory\n");
5161 case MB_ERR_INTERNAL:
5162 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5165 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
5176 if(FLAME_household_share_message_board_write == 0)
5185 if (rc != MB_SUCCESS)
5187 fprintf(stderr,
"ERROR: Could not start sync of 'household_share' board\n");
5189 case MB_ERR_INVALID:
5190 fprintf(stderr,
"\t reason: 'household_share' board is invalid\n");
5193 fprintf(stderr,
"\t reason: 'household_share' board is locked\n");
5195 case MB_ERR_MEMALLOC:
5196 fprintf(stderr,
"\t reason: out of memory\n");
5198 case MB_ERR_INTERNAL:
5199 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5202 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
5213 if(FLAME_capital_tax_message_board_write == 0)
5222 if (rc != MB_SUCCESS)
5224 fprintf(stderr,
"ERROR: Could not start sync of 'capital_tax' board\n");
5226 case MB_ERR_INVALID:
5227 fprintf(stderr,
"\t reason: 'capital_tax' board is invalid\n");
5230 fprintf(stderr,
"\t reason: 'capital_tax' board is locked\n");
5232 case MB_ERR_MEMALLOC:
5233 fprintf(stderr,
"\t reason: out of memory\n");
5235 case MB_ERR_INTERNAL:
5236 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5239 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
5250 if(FLAME_labour_tax_message_board_write == 0)
5259 if (rc != MB_SUCCESS)
5261 fprintf(stderr,
"ERROR: Could not start sync of 'labour_tax' board\n");
5263 case MB_ERR_INVALID:
5264 fprintf(stderr,
"\t reason: 'labour_tax' board is invalid\n");
5267 fprintf(stderr,
"\t reason: 'labour_tax' board is locked\n");
5269 case MB_ERR_MEMALLOC:
5270 fprintf(stderr,
"\t reason: out of memory\n");
5272 case MB_ERR_INTERNAL:
5273 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5276 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
5287 if(FLAME_unemployment_benefit_message_board_write == 0)
5296 if (rc != MB_SUCCESS)
5298 fprintf(stderr,
"ERROR: Could not start sync of 'unemployment_benefit' board\n");
5300 case MB_ERR_INVALID:
5301 fprintf(stderr,
"\t reason: 'unemployment_benefit' board is invalid\n");
5304 fprintf(stderr,
"\t reason: 'unemployment_benefit' board is locked\n");
5306 case MB_ERR_MEMALLOC:
5307 fprintf(stderr,
"\t reason: out of memory\n");
5309 case MB_ERR_INTERNAL:
5310 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5313 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
5324 if(FLAME_general_benefit_message_board_write == 0)
5333 if (rc != MB_SUCCESS)
5335 fprintf(stderr,
"ERROR: Could not start sync of 'general_benefit' board\n");
5337 case MB_ERR_INVALID:
5338 fprintf(stderr,
"\t reason: 'general_benefit' board is invalid\n");
5341 fprintf(stderr,
"\t reason: 'general_benefit' board is locked\n");
5343 case MB_ERR_MEMALLOC:
5344 fprintf(stderr,
"\t reason: out of memory\n");
5346 case MB_ERR_INTERNAL:
5347 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5350 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
5361 if(FLAME_fund_request_message_board_write == 0)
5370 if (rc != MB_SUCCESS)
5372 fprintf(stderr,
"ERROR: Could not start sync of 'fund_request' board\n");
5374 case MB_ERR_INVALID:
5375 fprintf(stderr,
"\t reason: 'fund_request' board is invalid\n");
5378 fprintf(stderr,
"\t reason: 'fund_request' board is locked\n");
5380 case MB_ERR_MEMALLOC:
5381 fprintf(stderr,
"\t reason: out of memory\n");
5383 case MB_ERR_INTERNAL:
5384 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5387 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
5398 if(FLAME_fund_request_ack_message_board_write == 0)
5407 if (rc != MB_SUCCESS)
5409 fprintf(stderr,
"ERROR: Could not start sync of 'fund_request_ack' board\n");
5411 case MB_ERR_INVALID:
5412 fprintf(stderr,
"\t reason: 'fund_request_ack' board is invalid\n");
5415 fprintf(stderr,
"\t reason: 'fund_request_ack' board is locked\n");
5417 case MB_ERR_MEMALLOC:
5418 fprintf(stderr,
"\t reason: out of memory\n");
5420 case MB_ERR_INTERNAL:
5421 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5424 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
5435 if(FLAME_new_entrant_loan_message_board_write == 0)
5444 if (rc != MB_SUCCESS)
5446 fprintf(stderr,
"ERROR: Could not start sync of 'new_entrant_loan' board\n");
5448 case MB_ERR_INVALID:
5449 fprintf(stderr,
"\t reason: 'new_entrant_loan' board is invalid\n");
5452 fprintf(stderr,
"\t reason: 'new_entrant_loan' board is locked\n");
5454 case MB_ERR_MEMALLOC:
5455 fprintf(stderr,
"\t reason: out of memory\n");
5457 case MB_ERR_INTERNAL:
5458 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5461 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
5472 if(FLAME_firm_bank_interest_on_loan_message_board_write == 0)
5481 if (rc != MB_SUCCESS)
5483 fprintf(stderr,
"ERROR: Could not start sync of 'firm_bank_interest_on_loan' board\n");
5485 case MB_ERR_INVALID:
5486 fprintf(stderr,
"\t reason: 'firm_bank_interest_on_loan' board is invalid\n");
5489 fprintf(stderr,
"\t reason: 'firm_bank_interest_on_loan' board is locked\n");
5491 case MB_ERR_MEMALLOC:
5492 fprintf(stderr,
"\t reason: out of memory\n");
5494 case MB_ERR_INTERNAL:
5495 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5498 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
5509 if(FLAME_loan_writeoff_message_board_write == 0)
5518 if (rc != MB_SUCCESS)
5520 fprintf(stderr,
"ERROR: Could not start sync of 'loan_writeoff' board\n");
5522 case MB_ERR_INVALID:
5523 fprintf(stderr,
"\t reason: 'loan_writeoff' board is invalid\n");
5526 fprintf(stderr,
"\t reason: 'loan_writeoff' board is locked\n");
5528 case MB_ERR_MEMALLOC:
5529 fprintf(stderr,
"\t reason: out of memory\n");
5531 case MB_ERR_INTERNAL:
5532 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5535 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
5546 if(FLAME_firm_bank_insolvent_account_message_board_write == 0)
5555 if (rc != MB_SUCCESS)
5557 fprintf(stderr,
"ERROR: Could not start sync of 'firm_bank_insolvent_account' board\n");
5559 case MB_ERR_INVALID:
5560 fprintf(stderr,
"\t reason: 'firm_bank_insolvent_account' board is invalid\n");
5563 fprintf(stderr,
"\t reason: 'firm_bank_insolvent_account' board is locked\n");
5565 case MB_ERR_MEMALLOC:
5566 fprintf(stderr,
"\t reason: out of memory\n");
5568 case MB_ERR_INTERNAL:
5569 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5572 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
5583 if(FLAME_firm_net_profit_message_board_write == 0)
5592 if (rc != MB_SUCCESS)
5594 fprintf(stderr,
"ERROR: Could not start sync of 'firm_net_profit' board\n");
5596 case MB_ERR_INVALID:
5597 fprintf(stderr,
"\t reason: 'firm_net_profit' board is invalid\n");
5600 fprintf(stderr,
"\t reason: 'firm_net_profit' board is locked\n");
5602 case MB_ERR_MEMALLOC:
5603 fprintf(stderr,
"\t reason: out of memory\n");
5605 case MB_ERR_INTERNAL:
5606 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5609 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
5620 if(FLAME_bank_net_profit_message_board_write == 0)
5629 if (rc != MB_SUCCESS)
5631 fprintf(stderr,
"ERROR: Could not start sync of 'bank_net_profit' board\n");
5633 case MB_ERR_INVALID:
5634 fprintf(stderr,
"\t reason: 'bank_net_profit' board is invalid\n");
5637 fprintf(stderr,
"\t reason: 'bank_net_profit' board is locked\n");
5639 case MB_ERR_MEMALLOC:
5640 fprintf(stderr,
"\t reason: out of memory\n");
5642 case MB_ERR_INTERNAL:
5643 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5646 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
5657 if(FLAME_bank_centralbank_interest_payment_message_board_write == 0)
5666 if (rc != MB_SUCCESS)
5668 fprintf(stderr,
"ERROR: Could not start sync of 'bank_centralbank_interest_payment' board\n");
5670 case MB_ERR_INVALID:
5671 fprintf(stderr,
"\t reason: 'bank_centralbank_interest_payment' board is invalid\n");
5674 fprintf(stderr,
"\t reason: 'bank_centralbank_interest_payment' board is locked\n");
5676 case MB_ERR_MEMALLOC:
5677 fprintf(stderr,
"\t reason: out of memory\n");
5679 case MB_ERR_INTERNAL:
5680 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5683 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
5694 if(FLAME_bank_centralbank_debt_payment_message_board_write == 0)
5703 if (rc != MB_SUCCESS)
5705 fprintf(stderr,
"ERROR: Could not start sync of 'bank_centralbank_debt_payment' board\n");
5707 case MB_ERR_INVALID:
5708 fprintf(stderr,
"\t reason: 'bank_centralbank_debt_payment' board is invalid\n");
5711 fprintf(stderr,
"\t reason: 'bank_centralbank_debt_payment' board is locked\n");
5713 case MB_ERR_MEMALLOC:
5714 fprintf(stderr,
"\t reason: out of memory\n");
5716 case MB_ERR_INTERNAL:
5717 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5720 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
5731 if(FLAME_gov_centralbank_debt_request_message_board_write == 0)
5740 if (rc != MB_SUCCESS)
5742 fprintf(stderr,
"ERROR: Could not start sync of 'gov_centralbank_debt_request' board\n");
5744 case MB_ERR_INVALID:
5745 fprintf(stderr,
"\t reason: 'gov_centralbank_debt_request' board is invalid\n");
5748 fprintf(stderr,
"\t reason: 'gov_centralbank_debt_request' board is locked\n");
5750 case MB_ERR_MEMALLOC:
5751 fprintf(stderr,
"\t reason: out of memory\n");
5753 case MB_ERR_INTERNAL:
5754 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5757 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
5768 if(FLAME_gov_centralbank_debt_payment_message_board_write == 0)
5777 if (rc != MB_SUCCESS)
5779 fprintf(stderr,
"ERROR: Could not start sync of 'gov_centralbank_debt_payment' board\n");
5781 case MB_ERR_INVALID:
5782 fprintf(stderr,
"\t reason: 'gov_centralbank_debt_payment' board is invalid\n");
5785 fprintf(stderr,
"\t reason: 'gov_centralbank_debt_payment' board is locked\n");
5787 case MB_ERR_MEMALLOC:
5788 fprintf(stderr,
"\t reason: out of memory\n");
5790 case MB_ERR_INTERNAL:
5791 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5794 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
5805 if(FLAME_centralbank_government_profit_message_board_write == 0)
5814 if (rc != MB_SUCCESS)
5816 fprintf(stderr,
"ERROR: Could not start sync of 'centralbank_government_profit' board\n");
5818 case MB_ERR_INVALID:
5819 fprintf(stderr,
"\t reason: 'centralbank_government_profit' board is invalid\n");
5822 fprintf(stderr,
"\t reason: 'centralbank_government_profit' board is locked\n");
5824 case MB_ERR_MEMALLOC:
5825 fprintf(stderr,
"\t reason: out of memory\n");
5827 case MB_ERR_INTERNAL:
5828 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5831 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
5842 if(FLAME_housing_price_message_board_write == 0)
5851 if (rc != MB_SUCCESS)
5853 fprintf(stderr,
"ERROR: Could not start sync of 'housing_price' board\n");
5855 case MB_ERR_INVALID:
5856 fprintf(stderr,
"\t reason: 'housing_price' board is invalid\n");
5859 fprintf(stderr,
"\t reason: 'housing_price' board is locked\n");
5861 case MB_ERR_MEMALLOC:
5862 fprintf(stderr,
"\t reason: out of memory\n");
5864 case MB_ERR_INTERNAL:
5865 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5868 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
5879 if(FLAME_buy_housing_message_board_write == 0)
5888 if (rc != MB_SUCCESS)
5890 fprintf(stderr,
"ERROR: Could not start sync of 'buy_housing' board\n");
5892 case MB_ERR_INVALID:
5893 fprintf(stderr,
"\t reason: 'buy_housing' board is invalid\n");
5896 fprintf(stderr,
"\t reason: 'buy_housing' board is locked\n");
5898 case MB_ERR_MEMALLOC:
5899 fprintf(stderr,
"\t reason: out of memory\n");
5901 case MB_ERR_INTERNAL:
5902 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5905 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
5916 if(FLAME_sell_housing_message_board_write == 0)
5925 if (rc != MB_SUCCESS)
5927 fprintf(stderr,
"ERROR: Could not start sync of 'sell_housing' board\n");
5929 case MB_ERR_INVALID:
5930 fprintf(stderr,
"\t reason: 'sell_housing' board is invalid\n");
5933 fprintf(stderr,
"\t reason: 'sell_housing' board is locked\n");
5935 case MB_ERR_MEMALLOC:
5936 fprintf(stderr,
"\t reason: out of memory\n");
5938 case MB_ERR_INTERNAL:
5939 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5942 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
5953 if(FLAME_bought_housing_message_board_write == 0)
5962 if (rc != MB_SUCCESS)
5964 fprintf(stderr,
"ERROR: Could not start sync of 'bought_housing' board\n");
5966 case MB_ERR_INVALID:
5967 fprintf(stderr,
"\t reason: 'bought_housing' board is invalid\n");
5970 fprintf(stderr,
"\t reason: 'bought_housing' board is locked\n");
5972 case MB_ERR_MEMALLOC:
5973 fprintf(stderr,
"\t reason: out of memory\n");
5975 case MB_ERR_INTERNAL:
5976 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
5979 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
5990 if(FLAME_sold_housing_message_board_write == 0)
5999 if (rc != MB_SUCCESS)
6001 fprintf(stderr,
"ERROR: Could not start sync of 'sold_housing' board\n");
6003 case MB_ERR_INVALID:
6004 fprintf(stderr,
"\t reason: 'sold_housing' board is invalid\n");
6007 fprintf(stderr,
"\t reason: 'sold_housing' board is locked\n");
6009 case MB_ERR_MEMALLOC:
6010 fprintf(stderr,
"\t reason: out of memory\n");
6012 case MB_ERR_INTERNAL:
6013 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
6016 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
6027 if(FLAME_bank_reagency_credibility_message_board_write == 0)
6036 if (rc != MB_SUCCESS)
6038 fprintf(stderr,
"ERROR: Could not start sync of 'bank_reagency_credibility' board\n");
6040 case MB_ERR_INVALID:
6041 fprintf(stderr,
"\t reason: 'bank_reagency_credibility' board is invalid\n");
6044 fprintf(stderr,
"\t reason: 'bank_reagency_credibility' board is locked\n");
6046 case MB_ERR_MEMALLOC:
6047 fprintf(stderr,
"\t reason: out of memory\n");
6049 case MB_ERR_INTERNAL:
6050 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
6053 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
6064 if(FLAME_mortgage_requests_message_board_write == 0)
6073 if (rc != MB_SUCCESS)
6075 fprintf(stderr,
"ERROR: Could not start sync of 'mortgage_requests' board\n");
6077 case MB_ERR_INVALID:
6078 fprintf(stderr,
"\t reason: 'mortgage_requests' board is invalid\n");
6081 fprintf(stderr,
"\t reason: 'mortgage_requests' board is locked\n");
6083 case MB_ERR_MEMALLOC:
6084 fprintf(stderr,
"\t reason: out of memory\n");
6086 case MB_ERR_INTERNAL:
6087 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
6090 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
6101 if(FLAME_mortgage_payment_from_sale_message_board_write == 0)
6110 if (rc != MB_SUCCESS)
6112 fprintf(stderr,
"ERROR: Could not start sync of 'mortgage_payment_from_sale' board\n");
6114 case MB_ERR_INVALID:
6115 fprintf(stderr,
"\t reason: 'mortgage_payment_from_sale' board is invalid\n");
6118 fprintf(stderr,
"\t reason: 'mortgage_payment_from_sale' board is locked\n");
6120 case MB_ERR_MEMALLOC:
6121 fprintf(stderr,
"\t reason: out of memory\n");
6123 case MB_ERR_INTERNAL:
6124 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
6127 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
6138 if(FLAME_mortgage_payment_message_board_write == 0)
6147 if (rc != MB_SUCCESS)
6149 fprintf(stderr,
"ERROR: Could not start sync of 'mortgage_payment' board\n");
6151 case MB_ERR_INVALID:
6152 fprintf(stderr,
"\t reason: 'mortgage_payment' board is invalid\n");
6155 fprintf(stderr,
"\t reason: 'mortgage_payment' board is locked\n");
6157 case MB_ERR_MEMALLOC:
6158 fprintf(stderr,
"\t reason: out of memory\n");
6160 case MB_ERR_INTERNAL:
6161 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
6164 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
6175 if(FLAME_mortgage_writeoff_message_board_write == 0)
6184 if (rc != MB_SUCCESS)
6186 fprintf(stderr,
"ERROR: Could not start sync of 'mortgage_writeoff' board\n");
6188 case MB_ERR_INVALID:
6189 fprintf(stderr,
"\t reason: 'mortgage_writeoff' board is invalid\n");
6192 fprintf(stderr,
"\t reason: 'mortgage_writeoff' board is locked\n");
6194 case MB_ERR_MEMALLOC:
6195 fprintf(stderr,
"\t reason: out of memory\n");
6197 case MB_ERR_INTERNAL:
6198 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
6201 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
6212 if(FLAME_housing_transactions_summary_message_board_write == 0)
6221 if (rc != MB_SUCCESS)
6223 fprintf(stderr,
"ERROR: Could not start sync of 'housing_transactions_summary' board\n");
6225 case MB_ERR_INVALID:
6226 fprintf(stderr,
"\t reason: 'housing_transactions_summary' board is invalid\n");
6229 fprintf(stderr,
"\t reason: 'housing_transactions_summary' board is locked\n");
6231 case MB_ERR_MEMALLOC:
6232 fprintf(stderr,
"\t reason: out of memory\n");
6234 case MB_ERR_INTERNAL:
6235 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
6238 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
6253 FLAME_debug_count = 0;
6256 { FLAME_debug_count++; }
6259 { FLAME_debug_count++; }
6261 if(FLAME_debug_count != 1)
6263 fprintf(stderr,
"ERROR: A function condition test has failed for agent type 'equityfund' leaving state 'start'\n");
6264 if(FLAME_debug_count > 1)
6265 fprintf(stderr,
"\t reason: there was more than one possible outgoing transition function\n");
6266 if(FLAME_debug_count == 0)
6267 fprintf(stderr,
"\t reason: there was no possible outgoing transition function\n");
6276 FLAME_debug_count = 0;
6279 { FLAME_debug_count++; }
6282 { FLAME_debug_count++; }
6284 if(FLAME_debug_count != 1)
6286 fprintf(stderr,
"ERROR: A function condition test has failed for agent type 'government' leaving state 'start'\n");
6287 if(FLAME_debug_count > 1)
6288 fprintf(stderr,
"\t reason: there was more than one possible outgoing transition function\n");
6289 if(FLAME_debug_count == 0)
6290 fprintf(stderr,
"\t reason: there was no possible outgoing transition function\n");
6340 if(FLAME_fund_centralbank_init_deposit_message_board_write == 1)
6347 if (rc != MB_SUCCESS)
6349 fprintf(stderr,
"ERROR: Could not start sync of 'fund_centralbank_init_deposit' board\n");
6351 case MB_ERR_INVALID:
6352 fprintf(stderr,
"\t reason: 'fund_centralbank_init_deposit' board is invalid\n");
6355 fprintf(stderr,
"\t reason: 'fund_centralbank_init_deposit' board is locked\n");
6357 case MB_ERR_MEMALLOC:
6358 fprintf(stderr,
"\t reason: out of memory\n");
6360 case MB_ERR_INTERNAL:
6361 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
6364 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
6420 if(FLAME_gov_centralbank_init_deposit_message_board_write == 1)
6427 if (rc != MB_SUCCESS)
6429 fprintf(stderr,
"ERROR: Could not start sync of 'gov_centralbank_init_deposit' board\n");
6431 case MB_ERR_INVALID:
6432 fprintf(stderr,
"\t reason: 'gov_centralbank_init_deposit' board is invalid\n");
6435 fprintf(stderr,
"\t reason: 'gov_centralbank_init_deposit' board is locked\n");
6437 case MB_ERR_MEMALLOC:
6438 fprintf(stderr,
"\t reason: out of memory\n");
6440 case MB_ERR_INTERNAL:
6441 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
6444 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
7093 FLAME_debug_count = 0;
7096 { FLAME_debug_count++; }
7099 { FLAME_debug_count++; }
7101 if(FLAME_debug_count != 1)
7103 fprintf(stderr,
"ERROR: A function condition test has failed for agent type 'mall' leaving state 'MallConsumptionMarket'\n");
7104 if(FLAME_debug_count > 1)
7105 fprintf(stderr,
"\t reason: there was more than one possible outgoing transition function\n");
7106 if(FLAME_debug_count == 0)
7107 fprintf(stderr,
"\t reason: there was no possible outgoing transition function\n");
7116 FLAME_debug_count = 0;
7119 { FLAME_debug_count++; }
7122 { FLAME_debug_count++; }
7124 if(FLAME_debug_count != 1)
7126 fprintf(stderr,
"ERROR: A function condition test has failed for agent type 'reagency' leaving state 'REAgencyHousingMarket'\n");
7127 if(FLAME_debug_count > 1)
7128 fprintf(stderr,
"\t reason: there was more than one possible outgoing transition function\n");
7129 if(FLAME_debug_count == 0)
7130 fprintf(stderr,
"\t reason: there was no possible outgoing transition function\n");
7179 if(FLAME_firm_jpoffice_id_message_board_write == 1)
7186 if (rc != MB_SUCCESS)
7188 fprintf(stderr,
"ERROR: Could not start sync of 'firm_jpoffice_id' board\n");
7190 case MB_ERR_INVALID:
7191 fprintf(stderr,
"\t reason: 'firm_jpoffice_id' board is invalid\n");
7194 fprintf(stderr,
"\t reason: 'firm_jpoffice_id' board is locked\n");
7196 case MB_ERR_MEMALLOC:
7197 fprintf(stderr,
"\t reason: out of memory\n");
7199 case MB_ERR_INTERNAL:
7200 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
7203 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
7258 if(FLAME_household_jpoffice_id_message_board_write == 1)
7265 if (rc != MB_SUCCESS)
7267 fprintf(stderr,
"ERROR: Could not start sync of 'household_jpoffice_id' board\n");
7269 case MB_ERR_INVALID:
7270 fprintf(stderr,
"\t reason: 'household_jpoffice_id' board is invalid\n");
7273 fprintf(stderr,
"\t reason: 'household_jpoffice_id' board is locked\n");
7275 case MB_ERR_MEMALLOC:
7276 fprintf(stderr,
"\t reason: out of memory\n");
7278 case MB_ERR_INTERNAL:
7279 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
7282 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
7481 FLAME_debug_count = 0;
7484 { FLAME_debug_count++; }
7487 { FLAME_debug_count++; }
7489 if(FLAME_debug_count != 1)
7491 fprintf(stderr,
"ERROR: A function condition test has failed for agent type 'equityfund' leaving state 'EquityFundCredit'\n");
7492 if(FLAME_debug_count > 1)
7493 fprintf(stderr,
"\t reason: there was more than one possible outgoing transition function\n");
7494 if(FLAME_debug_count == 0)
7495 fprintf(stderr,
"\t reason: there was no possible outgoing transition function\n");
7504 FLAME_debug_count = 0;
7507 { FLAME_debug_count++; }
7510 { FLAME_debug_count++; }
7512 if(FLAME_debug_count != 1)
7514 fprintf(stderr,
"ERROR: A function condition test has failed for agent type 'government' leaving state 'GovernmentCredit'\n");
7515 if(FLAME_debug_count > 1)
7516 fprintf(stderr,
"\t reason: there was more than one possible outgoing transition function\n");
7517 if(FLAME_debug_count == 0)
7518 fprintf(stderr,
"\t reason: there was no possible outgoing transition function\n");
7525 if(FLAME_firm_jpoffice_id_message_board_read == 1)
7531 if (rc != MB_SUCCESS)
7533 fprintf(stderr,
"ERROR: Could not complete sync of 'firm_jpoffice_id' board\n");
7535 case MB_ERR_INVALID:
7536 fprintf(stderr,
"\t reason: 'firm_jpoffice_id' board is invalid\n");
7538 case MB_ERR_MEMALLOC:
7539 fprintf(stderr,
"\t reason: out of memory\n");
7541 case MB_ERR_INTERNAL:
7542 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
7545 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
7559 if(FLAME_household_jpoffice_id_message_board_read == 1)
7565 if (rc != MB_SUCCESS)
7567 fprintf(stderr,
"ERROR: Could not complete sync of 'household_jpoffice_id' board\n");
7569 case MB_ERR_INVALID:
7570 fprintf(stderr,
"\t reason: 'household_jpoffice_id' board is invalid\n");
7572 case MB_ERR_MEMALLOC:
7573 fprintf(stderr,
"\t reason: out of memory\n");
7575 case MB_ERR_INTERNAL:
7576 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
7579 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
7620 if (rc != MB_SUCCESS)
7622 fprintf(stderr,
"ERROR: Could not create Iterator for 'household_jpoffice_id'\n");
7624 case MB_ERR_INVALID:
7625 fprintf(stderr,
"\t reason: 'household_jpoffice_id' board is invalid\n");
7628 fprintf(stderr,
"\t reason: 'household_jpoffice_id' board is locked\n");
7630 case MB_ERR_MEMALLOC:
7631 fprintf(stderr,
"\t reason: out of memory\n");
7633 case MB_ERR_INTERNAL:
7634 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
7639 fprintf(stderr,
"\t MB_Iterator_Create returned error code: %d (see libmboard docs for details)\n", rc);
7656 if (rc != MB_SUCCESS)
7658 fprintf(stderr,
"ERROR: Could not create Iterator for 'firm_jpoffice_id'\n");
7660 case MB_ERR_INVALID:
7661 fprintf(stderr,
"\t reason: 'firm_jpoffice_id' board is invalid\n");
7664 fprintf(stderr,
"\t reason: 'firm_jpoffice_id' board is locked\n");
7666 case MB_ERR_MEMALLOC:
7667 fprintf(stderr,
"\t reason: out of memory\n");
7669 case MB_ERR_INTERNAL:
7670 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
7675 fprintf(stderr,
"\t MB_Iterator_Create returned error code: %d (see libmboard docs for details)\n", rc);
7692 if (rc != MB_SUCCESS)
7694 fprintf(stderr,
"ERROR: Could not delete 'household_jpoffice_id' iterator\n");
7696 case MB_ERR_INVALID:
7697 fprintf(stderr,
"\t reason: 'household_jpoffice_id' iterator is invalid\n");
7699 case MB_ERR_INTERNAL:
7700 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
7703 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
7714 if (rc != MB_SUCCESS)
7716 fprintf(stderr,
"ERROR: Could not delete 'firm_jpoffice_id' iterator\n");
7718 case MB_ERR_INVALID:
7719 fprintf(stderr,
"\t reason: 'firm_jpoffice_id' iterator is invalid\n");
7721 case MB_ERR_INTERNAL:
7722 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
7725 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
7751 if(FLAME_jpoffice_firm_employee_message_board_write == 1)
7758 if (rc != MB_SUCCESS)
7760 fprintf(stderr,
"ERROR: Could not start sync of 'jpoffice_firm_employee' board\n");
7762 case MB_ERR_INVALID:
7763 fprintf(stderr,
"\t reason: 'jpoffice_firm_employee' board is invalid\n");
7766 fprintf(stderr,
"\t reason: 'jpoffice_firm_employee' board is locked\n");
7768 case MB_ERR_MEMALLOC:
7769 fprintf(stderr,
"\t reason: out of memory\n");
7771 case MB_ERR_INTERNAL:
7772 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
7775 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
7786 if(FLAME_jpoffice_household_employer_message_board_write == 1)
7793 if (rc != MB_SUCCESS)
7795 fprintf(stderr,
"ERROR: Could not start sync of 'jpoffice_household_employer' board\n");
7797 case MB_ERR_INVALID:
7798 fprintf(stderr,
"\t reason: 'jpoffice_household_employer' board is invalid\n");
7801 fprintf(stderr,
"\t reason: 'jpoffice_household_employer' board is locked\n");
7803 case MB_ERR_MEMALLOC:
7804 fprintf(stderr,
"\t reason: out of memory\n");
7806 case MB_ERR_INTERNAL:
7807 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
7810 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
7917 if(FLAME_household_jpoffice_id_message_board_read == 0)
7925 if (rc != MB_SUCCESS)
7927 fprintf(stderr,
"ERROR: Could not complete sync of 'household_jpoffice_id' board\n");
7929 case MB_ERR_INVALID:
7930 fprintf(stderr,
"\t reason: 'household_jpoffice_id' board is invalid\n");
7932 case MB_ERR_MEMALLOC:
7933 fprintf(stderr,
"\t reason: out of memory\n");
7935 case MB_ERR_INTERNAL:
7936 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
7939 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
7953 if (rc != MB_SUCCESS)
7955 fprintf(stderr,
"ERROR: Could not clear 'household_jpoffice_id' board\n");
7957 case MB_ERR_INVALID:
7958 fprintf(stderr,
"\t reason: 'household_jpoffice_id' board is invalid\n");
7961 fprintf(stderr,
"\t reason: 'household_jpoffice_id' board is locked\n");
7963 case MB_ERR_INTERNAL:
7964 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
7967 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
7977 if(FLAME_firm_jpoffice_id_message_board_read == 0)
7985 if (rc != MB_SUCCESS)
7987 fprintf(stderr,
"ERROR: Could not complete sync of 'firm_jpoffice_id' board\n");
7989 case MB_ERR_INVALID:
7990 fprintf(stderr,
"\t reason: 'firm_jpoffice_id' board is invalid\n");
7992 case MB_ERR_MEMALLOC:
7993 fprintf(stderr,
"\t reason: out of memory\n");
7995 case MB_ERR_INTERNAL:
7996 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
7999 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
8013 if (rc != MB_SUCCESS)
8015 fprintf(stderr,
"ERROR: Could not clear 'firm_jpoffice_id' board\n");
8017 case MB_ERR_INVALID:
8018 fprintf(stderr,
"\t reason: 'firm_jpoffice_id' board is invalid\n");
8021 fprintf(stderr,
"\t reason: 'firm_jpoffice_id' board is locked\n");
8023 case MB_ERR_INTERNAL:
8024 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
8027 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
8083 if(FLAME_jpoffice_firm_employee_message_board_read == 1)
8089 if (rc != MB_SUCCESS)
8091 fprintf(stderr,
"ERROR: Could not complete sync of 'jpoffice_firm_employee' board\n");
8093 case MB_ERR_INVALID:
8094 fprintf(stderr,
"\t reason: 'jpoffice_firm_employee' board is invalid\n");
8096 case MB_ERR_MEMALLOC:
8097 fprintf(stderr,
"\t reason: out of memory\n");
8099 case MB_ERR_INTERNAL:
8100 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
8103 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
8147 if (rc != MB_SUCCESS)
8149 fprintf(stderr,
"ERROR: Could not create Iterator for 'jpoffice_firm_employee'\n");
8151 case MB_ERR_INVALID:
8152 fprintf(stderr,
"\t reason: 'jpoffice_firm_employee' board is invalid\n");
8155 fprintf(stderr,
"\t reason: 'jpoffice_firm_employee' board is locked\n");
8157 case MB_ERR_MEMALLOC:
8158 fprintf(stderr,
"\t reason: out of memory\n");
8160 case MB_ERR_INTERNAL:
8161 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
8165 fprintf(stderr,
"\t MB_Iterator_CreateFiltered returned error code: %d (see libmboard docs for details)\n", rc);
8183 if (rc != MB_SUCCESS)
8185 fprintf(stderr,
"ERROR: Could not delete 'jpoffice_firm_employee' iterator\n");
8187 case MB_ERR_INVALID:
8188 fprintf(stderr,
"\t reason: 'jpoffice_firm_employee' iterator is invalid\n");
8190 case MB_ERR_INTERNAL:
8191 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
8194 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
8222 if(FLAME_jpoffice_household_employer_message_board_read == 1)
8228 if (rc != MB_SUCCESS)
8230 fprintf(stderr,
"ERROR: Could not complete sync of 'jpoffice_household_employer' board\n");
8232 case MB_ERR_INVALID:
8233 fprintf(stderr,
"\t reason: 'jpoffice_household_employer' board is invalid\n");
8235 case MB_ERR_MEMALLOC:
8236 fprintf(stderr,
"\t reason: out of memory\n");
8238 case MB_ERR_INTERNAL:
8239 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
8242 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
8286 if (rc != MB_SUCCESS)
8288 fprintf(stderr,
"ERROR: Could not create Iterator for 'jpoffice_household_employer'\n");
8290 case MB_ERR_INVALID:
8291 fprintf(stderr,
"\t reason: 'jpoffice_household_employer' board is invalid\n");
8294 fprintf(stderr,
"\t reason: 'jpoffice_household_employer' board is locked\n");
8296 case MB_ERR_MEMALLOC:
8297 fprintf(stderr,
"\t reason: out of memory\n");
8299 case MB_ERR_INTERNAL:
8300 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
8304 fprintf(stderr,
"\t MB_Iterator_CreateFiltered returned error code: %d (see libmboard docs for details)\n", rc);
8322 if (rc != MB_SUCCESS)
8324 fprintf(stderr,
"ERROR: Could not delete 'jpoffice_household_employer' iterator\n");
8326 case MB_ERR_INVALID:
8327 fprintf(stderr,
"\t reason: 'jpoffice_household_employer' iterator is invalid\n");
8329 case MB_ERR_INTERNAL:
8330 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
8333 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
8365 if(FLAME_jpoffice_household_employer_message_board_read == 0)
8373 if (rc != MB_SUCCESS)
8375 fprintf(stderr,
"ERROR: Could not complete sync of 'jpoffice_household_employer' board\n");
8377 case MB_ERR_INVALID:
8378 fprintf(stderr,
"\t reason: 'jpoffice_household_employer' board is invalid\n");
8380 case MB_ERR_MEMALLOC:
8381 fprintf(stderr,
"\t reason: out of memory\n");
8383 case MB_ERR_INTERNAL:
8384 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
8387 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
8401 if (rc != MB_SUCCESS)
8403 fprintf(stderr,
"ERROR: Could not clear 'jpoffice_household_employer' board\n");
8405 case MB_ERR_INVALID:
8406 fprintf(stderr,
"\t reason: 'jpoffice_household_employer' board is invalid\n");
8409 fprintf(stderr,
"\t reason: 'jpoffice_household_employer' board is locked\n");
8411 case MB_ERR_INTERNAL:
8412 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
8415 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
8425 if(FLAME_jpoffice_firm_employee_message_board_read == 0)
8433 if (rc != MB_SUCCESS)
8435 fprintf(stderr,
"ERROR: Could not complete sync of 'jpoffice_firm_employee' board\n");
8437 case MB_ERR_INVALID:
8438 fprintf(stderr,
"\t reason: 'jpoffice_firm_employee' board is invalid\n");
8440 case MB_ERR_MEMALLOC:
8441 fprintf(stderr,
"\t reason: out of memory\n");
8443 case MB_ERR_INTERNAL:
8444 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
8447 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
8461 if (rc != MB_SUCCESS)
8463 fprintf(stderr,
"ERROR: Could not clear 'jpoffice_firm_employee' board\n");
8465 case MB_ERR_INVALID:
8466 fprintf(stderr,
"\t reason: 'jpoffice_firm_employee' board is invalid\n");
8469 fprintf(stderr,
"\t reason: 'jpoffice_firm_employee' board is locked\n");
8471 case MB_ERR_INTERNAL:
8472 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
8475 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
8489 FLAME_debug_count = 0;
8492 { FLAME_debug_count++; }
8495 { FLAME_debug_count++; }
8497 if(FLAME_debug_count != 1)
8499 fprintf(stderr,
"ERROR: A function condition test has failed for agent type 'jpoffice' leaving state 'JPOLabourMarket'\n");
8500 if(FLAME_debug_count > 1)
8501 fprintf(stderr,
"\t reason: there was more than one possible outgoing transition function\n");
8502 if(FLAME_debug_count == 0)
8503 fprintf(stderr,
"\t reason: there was no possible outgoing transition function\n");
8552 if(FLAME_firm_bank_init_deposit_message_board_write == 1)
8559 if (rc != MB_SUCCESS)
8561 fprintf(stderr,
"ERROR: Could not start sync of 'firm_bank_init_deposit' board\n");
8563 case MB_ERR_INVALID:
8564 fprintf(stderr,
"\t reason: 'firm_bank_init_deposit' board is invalid\n");
8567 fprintf(stderr,
"\t reason: 'firm_bank_init_deposit' board is locked\n");
8569 case MB_ERR_MEMALLOC:
8570 fprintf(stderr,
"\t reason: out of memory\n");
8572 case MB_ERR_INTERNAL:
8573 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
8576 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
8587 if(FLAME_firm_bank_init_loans_message_board_write == 1)
8594 if (rc != MB_SUCCESS)
8596 fprintf(stderr,
"ERROR: Could not start sync of 'firm_bank_init_loans' board\n");
8598 case MB_ERR_INVALID:
8599 fprintf(stderr,
"\t reason: 'firm_bank_init_loans' board is invalid\n");
8602 fprintf(stderr,
"\t reason: 'firm_bank_init_loans' board is locked\n");
8604 case MB_ERR_MEMALLOC:
8605 fprintf(stderr,
"\t reason: out of memory\n");
8607 case MB_ERR_INTERNAL:
8608 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
8611 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
8666 if(FLAME_household_bank_init_deposit_message_board_write == 1)
8673 if (rc != MB_SUCCESS)
8675 fprintf(stderr,
"ERROR: Could not start sync of 'household_bank_init_deposit' board\n");
8677 case MB_ERR_INVALID:
8678 fprintf(stderr,
"\t reason: 'household_bank_init_deposit' board is invalid\n");
8681 fprintf(stderr,
"\t reason: 'household_bank_init_deposit' board is locked\n");
8683 case MB_ERR_MEMALLOC:
8684 fprintf(stderr,
"\t reason: out of memory\n");
8686 case MB_ERR_INTERNAL:
8687 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
8690 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
8701 if(FLAME_household_bank_init_mortgages_message_board_write == 1)
8708 if (rc != MB_SUCCESS)
8710 fprintf(stderr,
"ERROR: Could not start sync of 'household_bank_init_mortgages' board\n");
8712 case MB_ERR_INVALID:
8713 fprintf(stderr,
"\t reason: 'household_bank_init_mortgages' board is invalid\n");
8716 fprintf(stderr,
"\t reason: 'household_bank_init_mortgages' board is locked\n");
8718 case MB_ERR_MEMALLOC:
8719 fprintf(stderr,
"\t reason: out of memory\n");
8721 case MB_ERR_INTERNAL:
8722 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
8725 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
8877 if(FLAME_firm_bank_init_loans_message_board_read == 1)
8883 if (rc != MB_SUCCESS)
8885 fprintf(stderr,
"ERROR: Could not complete sync of 'firm_bank_init_loans' board\n");
8887 case MB_ERR_INVALID:
8888 fprintf(stderr,
"\t reason: 'firm_bank_init_loans' board is invalid\n");
8890 case MB_ERR_MEMALLOC:
8891 fprintf(stderr,
"\t reason: out of memory\n");
8893 case MB_ERR_INTERNAL:
8894 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
8897 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
8941 if (rc != MB_SUCCESS)
8943 fprintf(stderr,
"ERROR: Could not create Iterator for 'firm_bank_init_loans'\n");
8945 case MB_ERR_INVALID:
8946 fprintf(stderr,
"\t reason: 'firm_bank_init_loans' board is invalid\n");
8949 fprintf(stderr,
"\t reason: 'firm_bank_init_loans' board is locked\n");
8951 case MB_ERR_MEMALLOC:
8952 fprintf(stderr,
"\t reason: out of memory\n");
8954 case MB_ERR_INTERNAL:
8955 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
8959 fprintf(stderr,
"\t MB_Iterator_CreateFiltered returned error code: %d (see libmboard docs for details)\n", rc);
8977 if (rc != MB_SUCCESS)
8979 fprintf(stderr,
"ERROR: Could not delete 'firm_bank_init_loans' iterator\n");
8981 case MB_ERR_INVALID:
8982 fprintf(stderr,
"\t reason: 'firm_bank_init_loans' iterator is invalid\n");
8984 case MB_ERR_INTERNAL:
8985 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
8988 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
9020 if(FLAME_firm_bank_init_loans_message_board_read == 0)
9028 if (rc != MB_SUCCESS)
9030 fprintf(stderr,
"ERROR: Could not complete sync of 'firm_bank_init_loans' board\n");
9032 case MB_ERR_INVALID:
9033 fprintf(stderr,
"\t reason: 'firm_bank_init_loans' board is invalid\n");
9035 case MB_ERR_MEMALLOC:
9036 fprintf(stderr,
"\t reason: out of memory\n");
9038 case MB_ERR_INTERNAL:
9039 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
9042 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
9056 if (rc != MB_SUCCESS)
9058 fprintf(stderr,
"ERROR: Could not clear 'firm_bank_init_loans' board\n");
9060 case MB_ERR_INVALID:
9061 fprintf(stderr,
"\t reason: 'firm_bank_init_loans' board is invalid\n");
9064 fprintf(stderr,
"\t reason: 'firm_bank_init_loans' board is locked\n");
9066 case MB_ERR_INTERNAL:
9067 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
9070 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
9084 FLAME_debug_count = 0;
9087 { FLAME_debug_count++; }
9090 { FLAME_debug_count++; }
9092 if(FLAME_debug_count != 1)
9094 fprintf(stderr,
"ERROR: A function condition test has failed for agent type 'firm' leaving state 'FirmCreditStart'\n");
9095 if(FLAME_debug_count > 1)
9096 fprintf(stderr,
"\t reason: there was more than one possible outgoing transition function\n");
9097 if(FLAME_debug_count == 0)
9098 fprintf(stderr,
"\t reason: there was no possible outgoing transition function\n");
9285 if(FLAME_household_bank_init_mortgages_message_board_read == 1)
9291 if (rc != MB_SUCCESS)
9293 fprintf(stderr,
"ERROR: Could not complete sync of 'household_bank_init_mortgages' board\n");
9295 case MB_ERR_INVALID:
9296 fprintf(stderr,
"\t reason: 'household_bank_init_mortgages' board is invalid\n");
9298 case MB_ERR_MEMALLOC:
9299 fprintf(stderr,
"\t reason: out of memory\n");
9301 case MB_ERR_INTERNAL:
9302 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
9305 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
9349 if (rc != MB_SUCCESS)
9351 fprintf(stderr,
"ERROR: Could not create Iterator for 'household_bank_init_mortgages'\n");
9353 case MB_ERR_INVALID:
9354 fprintf(stderr,
"\t reason: 'household_bank_init_mortgages' board is invalid\n");
9357 fprintf(stderr,
"\t reason: 'household_bank_init_mortgages' board is locked\n");
9359 case MB_ERR_MEMALLOC:
9360 fprintf(stderr,
"\t reason: out of memory\n");
9362 case MB_ERR_INTERNAL:
9363 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
9367 fprintf(stderr,
"\t MB_Iterator_CreateFiltered returned error code: %d (see libmboard docs for details)\n", rc);
9385 if (rc != MB_SUCCESS)
9387 fprintf(stderr,
"ERROR: Could not delete 'household_bank_init_mortgages' iterator\n");
9389 case MB_ERR_INVALID:
9390 fprintf(stderr,
"\t reason: 'household_bank_init_mortgages' iterator is invalid\n");
9392 case MB_ERR_INTERNAL:
9393 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
9396 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
9428 if(FLAME_household_bank_init_mortgages_message_board_read == 0)
9436 if (rc != MB_SUCCESS)
9438 fprintf(stderr,
"ERROR: Could not complete sync of 'household_bank_init_mortgages' board\n");
9440 case MB_ERR_INVALID:
9441 fprintf(stderr,
"\t reason: 'household_bank_init_mortgages' board is invalid\n");
9443 case MB_ERR_MEMALLOC:
9444 fprintf(stderr,
"\t reason: out of memory\n");
9446 case MB_ERR_INTERNAL:
9447 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
9450 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
9464 if (rc != MB_SUCCESS)
9466 fprintf(stderr,
"ERROR: Could not clear 'household_bank_init_mortgages' board\n");
9468 case MB_ERR_INVALID:
9469 fprintf(stderr,
"\t reason: 'household_bank_init_mortgages' board is invalid\n");
9472 fprintf(stderr,
"\t reason: 'household_bank_init_mortgages' board is locked\n");
9474 case MB_ERR_INTERNAL:
9475 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
9478 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
9492 FLAME_debug_count = 0;
9495 { FLAME_debug_count++; }
9498 { FLAME_debug_count++; }
9500 if(FLAME_debug_count != 1)
9502 fprintf(stderr,
"ERROR: A function condition test has failed for agent type 'household' leaving state 'HHCreditIsCapitalist'\n");
9503 if(FLAME_debug_count > 1)
9504 fprintf(stderr,
"\t reason: there was more than one possible outgoing transition function\n");
9505 if(FLAME_debug_count == 0)
9506 fprintf(stderr,
"\t reason: there was no possible outgoing transition function\n");
9602 if(FLAME_household_bank_init_deposit_message_board_read == 1)
9608 if (rc != MB_SUCCESS)
9610 fprintf(stderr,
"ERROR: Could not complete sync of 'household_bank_init_deposit' board\n");
9612 case MB_ERR_INVALID:
9613 fprintf(stderr,
"\t reason: 'household_bank_init_deposit' board is invalid\n");
9615 case MB_ERR_MEMALLOC:
9616 fprintf(stderr,
"\t reason: out of memory\n");
9618 case MB_ERR_INTERNAL:
9619 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
9622 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
9636 if(FLAME_firm_bank_init_deposit_message_board_read == 1)
9642 if (rc != MB_SUCCESS)
9644 fprintf(stderr,
"ERROR: Could not complete sync of 'firm_bank_init_deposit' board\n");
9646 case MB_ERR_INVALID:
9647 fprintf(stderr,
"\t reason: 'firm_bank_init_deposit' board is invalid\n");
9649 case MB_ERR_MEMALLOC:
9650 fprintf(stderr,
"\t reason: out of memory\n");
9652 case MB_ERR_INTERNAL:
9653 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
9656 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
9700 if (rc != MB_SUCCESS)
9702 fprintf(stderr,
"ERROR: Could not create Iterator for 'household_bank_init_deposit'\n");
9704 case MB_ERR_INVALID:
9705 fprintf(stderr,
"\t reason: 'household_bank_init_deposit' board is invalid\n");
9708 fprintf(stderr,
"\t reason: 'household_bank_init_deposit' board is locked\n");
9710 case MB_ERR_MEMALLOC:
9711 fprintf(stderr,
"\t reason: out of memory\n");
9713 case MB_ERR_INTERNAL:
9714 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
9718 fprintf(stderr,
"\t MB_Iterator_CreateFiltered returned error code: %d (see libmboard docs for details)\n", rc);
9739 if (rc != MB_SUCCESS)
9741 fprintf(stderr,
"ERROR: Could not create Iterator for 'firm_bank_init_deposit'\n");
9743 case MB_ERR_INVALID:
9744 fprintf(stderr,
"\t reason: 'firm_bank_init_deposit' board is invalid\n");
9747 fprintf(stderr,
"\t reason: 'firm_bank_init_deposit' board is locked\n");
9749 case MB_ERR_MEMALLOC:
9750 fprintf(stderr,
"\t reason: out of memory\n");
9752 case MB_ERR_INTERNAL:
9753 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
9757 fprintf(stderr,
"\t MB_Iterator_CreateFiltered returned error code: %d (see libmboard docs for details)\n", rc);
9775 if (rc != MB_SUCCESS)
9777 fprintf(stderr,
"ERROR: Could not delete 'household_bank_init_deposit' iterator\n");
9779 case MB_ERR_INVALID:
9780 fprintf(stderr,
"\t reason: 'household_bank_init_deposit' iterator is invalid\n");
9782 case MB_ERR_INTERNAL:
9783 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
9786 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
9797 if (rc != MB_SUCCESS)
9799 fprintf(stderr,
"ERROR: Could not delete 'firm_bank_init_deposit' iterator\n");
9801 case MB_ERR_INVALID:
9802 fprintf(stderr,
"\t reason: 'firm_bank_init_deposit' iterator is invalid\n");
9804 case MB_ERR_INTERNAL:
9805 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
9808 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
9840 if(FLAME_firm_bank_init_deposit_message_board_read == 0)
9848 if (rc != MB_SUCCESS)
9850 fprintf(stderr,
"ERROR: Could not complete sync of 'firm_bank_init_deposit' board\n");
9852 case MB_ERR_INVALID:
9853 fprintf(stderr,
"\t reason: 'firm_bank_init_deposit' board is invalid\n");
9855 case MB_ERR_MEMALLOC:
9856 fprintf(stderr,
"\t reason: out of memory\n");
9858 case MB_ERR_INTERNAL:
9859 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
9862 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
9876 if (rc != MB_SUCCESS)
9878 fprintf(stderr,
"ERROR: Could not clear 'firm_bank_init_deposit' board\n");
9880 case MB_ERR_INVALID:
9881 fprintf(stderr,
"\t reason: 'firm_bank_init_deposit' board is invalid\n");
9884 fprintf(stderr,
"\t reason: 'firm_bank_init_deposit' board is locked\n");
9886 case MB_ERR_INTERNAL:
9887 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
9890 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
9900 if(FLAME_household_bank_init_deposit_message_board_read == 0)
9908 if (rc != MB_SUCCESS)
9910 fprintf(stderr,
"ERROR: Could not complete sync of 'household_bank_init_deposit' board\n");
9912 case MB_ERR_INVALID:
9913 fprintf(stderr,
"\t reason: 'household_bank_init_deposit' board is invalid\n");
9915 case MB_ERR_MEMALLOC:
9916 fprintf(stderr,
"\t reason: out of memory\n");
9918 case MB_ERR_INTERNAL:
9919 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
9922 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
9936 if (rc != MB_SUCCESS)
9938 fprintf(stderr,
"ERROR: Could not clear 'household_bank_init_deposit' board\n");
9940 case MB_ERR_INVALID:
9941 fprintf(stderr,
"\t reason: 'household_bank_init_deposit' board is invalid\n");
9944 fprintf(stderr,
"\t reason: 'household_bank_init_deposit' board is locked\n");
9946 case MB_ERR_INTERNAL:
9947 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
9950 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
10004 if(FLAME_bank_centralbank_init_deposit_message_board_write == 1)
10011 if (rc != MB_SUCCESS)
10013 fprintf(stderr,
"ERROR: Could not start sync of 'bank_centralbank_init_deposit' board\n");
10015 case MB_ERR_INVALID:
10016 fprintf(stderr,
"\t reason: 'bank_centralbank_init_deposit' board is invalid\n");
10018 case MB_ERR_LOCKED:
10019 fprintf(stderr,
"\t reason: 'bank_centralbank_init_deposit' board is locked\n");
10021 case MB_ERR_MEMALLOC:
10022 fprintf(stderr,
"\t reason: out of memory\n");
10024 case MB_ERR_INTERNAL:
10025 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
10028 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
10039 if(FLAME_bank_centralbank_init_debt_message_board_write == 1)
10046 if (rc != MB_SUCCESS)
10048 fprintf(stderr,
"ERROR: Could not start sync of 'bank_centralbank_init_debt' board\n");
10050 case MB_ERR_INVALID:
10051 fprintf(stderr,
"\t reason: 'bank_centralbank_init_debt' board is invalid\n");
10053 case MB_ERR_LOCKED:
10054 fprintf(stderr,
"\t reason: 'bank_centralbank_init_debt' board is locked\n");
10056 case MB_ERR_MEMALLOC:
10057 fprintf(stderr,
"\t reason: out of memory\n");
10059 case MB_ERR_INTERNAL:
10060 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
10063 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
10214 if(FLAME_gov_centralbank_init_deposit_message_board_read == 1)
10220 if (rc != MB_SUCCESS)
10222 fprintf(stderr,
"ERROR: Could not complete sync of 'gov_centralbank_init_deposit' board\n");
10224 case MB_ERR_INVALID:
10225 fprintf(stderr,
"\t reason: 'gov_centralbank_init_deposit' board is invalid\n");
10227 case MB_ERR_MEMALLOC:
10228 fprintf(stderr,
"\t reason: out of memory\n");
10230 case MB_ERR_INTERNAL:
10231 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
10234 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
10248 if(FLAME_fund_centralbank_init_deposit_message_board_read == 1)
10254 if (rc != MB_SUCCESS)
10256 fprintf(stderr,
"ERROR: Could not complete sync of 'fund_centralbank_init_deposit' board\n");
10258 case MB_ERR_INVALID:
10259 fprintf(stderr,
"\t reason: 'fund_centralbank_init_deposit' board is invalid\n");
10261 case MB_ERR_MEMALLOC:
10262 fprintf(stderr,
"\t reason: out of memory\n");
10264 case MB_ERR_INTERNAL:
10265 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
10268 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
10282 if(FLAME_bank_centralbank_init_deposit_message_board_read == 1)
10288 if (rc != MB_SUCCESS)
10290 fprintf(stderr,
"ERROR: Could not complete sync of 'bank_centralbank_init_deposit' board\n");
10292 case MB_ERR_INVALID:
10293 fprintf(stderr,
"\t reason: 'bank_centralbank_init_deposit' board is invalid\n");
10295 case MB_ERR_MEMALLOC:
10296 fprintf(stderr,
"\t reason: out of memory\n");
10298 case MB_ERR_INTERNAL:
10299 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
10302 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
10316 if(FLAME_bank_centralbank_init_debt_message_board_read == 1)
10322 if (rc != MB_SUCCESS)
10324 fprintf(stderr,
"ERROR: Could not complete sync of 'bank_centralbank_init_debt' board\n");
10326 case MB_ERR_INVALID:
10327 fprintf(stderr,
"\t reason: 'bank_centralbank_init_debt' board is invalid\n");
10329 case MB_ERR_MEMALLOC:
10330 fprintf(stderr,
"\t reason: out of memory\n");
10332 case MB_ERR_INTERNAL:
10333 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
10336 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
10377 if (rc != MB_SUCCESS)
10379 fprintf(stderr,
"ERROR: Could not create Iterator for 'bank_centralbank_init_debt'\n");
10381 case MB_ERR_INVALID:
10382 fprintf(stderr,
"\t reason: 'bank_centralbank_init_debt' board is invalid\n");
10384 case MB_ERR_LOCKED:
10385 fprintf(stderr,
"\t reason: 'bank_centralbank_init_debt' board is locked\n");
10387 case MB_ERR_MEMALLOC:
10388 fprintf(stderr,
"\t reason: out of memory\n");
10390 case MB_ERR_INTERNAL:
10391 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
10396 fprintf(stderr,
"\t MB_Iterator_Create returned error code: %d (see libmboard docs for details)\n", rc);
10413 if (rc != MB_SUCCESS)
10415 fprintf(stderr,
"ERROR: Could not create Iterator for 'bank_centralbank_init_deposit'\n");
10417 case MB_ERR_INVALID:
10418 fprintf(stderr,
"\t reason: 'bank_centralbank_init_deposit' board is invalid\n");
10420 case MB_ERR_LOCKED:
10421 fprintf(stderr,
"\t reason: 'bank_centralbank_init_deposit' board is locked\n");
10423 case MB_ERR_MEMALLOC:
10424 fprintf(stderr,
"\t reason: out of memory\n");
10426 case MB_ERR_INTERNAL:
10427 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
10432 fprintf(stderr,
"\t MB_Iterator_Create returned error code: %d (see libmboard docs for details)\n", rc);
10449 if (rc != MB_SUCCESS)
10451 fprintf(stderr,
"ERROR: Could not create Iterator for 'fund_centralbank_init_deposit'\n");
10453 case MB_ERR_INVALID:
10454 fprintf(stderr,
"\t reason: 'fund_centralbank_init_deposit' board is invalid\n");
10456 case MB_ERR_LOCKED:
10457 fprintf(stderr,
"\t reason: 'fund_centralbank_init_deposit' board is locked\n");
10459 case MB_ERR_MEMALLOC:
10460 fprintf(stderr,
"\t reason: out of memory\n");
10462 case MB_ERR_INTERNAL:
10463 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
10468 fprintf(stderr,
"\t MB_Iterator_Create returned error code: %d (see libmboard docs for details)\n", rc);
10485 if (rc != MB_SUCCESS)
10487 fprintf(stderr,
"ERROR: Could not create Iterator for 'gov_centralbank_init_deposit'\n");
10489 case MB_ERR_INVALID:
10490 fprintf(stderr,
"\t reason: 'gov_centralbank_init_deposit' board is invalid\n");
10492 case MB_ERR_LOCKED:
10493 fprintf(stderr,
"\t reason: 'gov_centralbank_init_deposit' board is locked\n");
10495 case MB_ERR_MEMALLOC:
10496 fprintf(stderr,
"\t reason: out of memory\n");
10498 case MB_ERR_INTERNAL:
10499 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
10504 fprintf(stderr,
"\t MB_Iterator_Create returned error code: %d (see libmboard docs for details)\n", rc);
10521 if (rc != MB_SUCCESS)
10523 fprintf(stderr,
"ERROR: Could not delete 'bank_centralbank_init_debt' iterator\n");
10525 case MB_ERR_INVALID:
10526 fprintf(stderr,
"\t reason: 'bank_centralbank_init_debt' iterator is invalid\n");
10528 case MB_ERR_INTERNAL:
10529 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
10532 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
10543 if (rc != MB_SUCCESS)
10545 fprintf(stderr,
"ERROR: Could not delete 'bank_centralbank_init_deposit' iterator\n");
10547 case MB_ERR_INVALID:
10548 fprintf(stderr,
"\t reason: 'bank_centralbank_init_deposit' iterator is invalid\n");
10550 case MB_ERR_INTERNAL:
10551 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
10554 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
10565 if (rc != MB_SUCCESS)
10567 fprintf(stderr,
"ERROR: Could not delete 'fund_centralbank_init_deposit' iterator\n");
10569 case MB_ERR_INVALID:
10570 fprintf(stderr,
"\t reason: 'fund_centralbank_init_deposit' iterator is invalid\n");
10572 case MB_ERR_INTERNAL:
10573 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
10576 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
10587 if (rc != MB_SUCCESS)
10589 fprintf(stderr,
"ERROR: Could not delete 'gov_centralbank_init_deposit' iterator\n");
10591 case MB_ERR_INVALID:
10592 fprintf(stderr,
"\t reason: 'gov_centralbank_init_deposit' iterator is invalid\n");
10594 case MB_ERR_INTERNAL:
10595 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
10598 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
10630 if(FLAME_bank_centralbank_init_debt_message_board_read == 0)
10638 if (rc != MB_SUCCESS)
10640 fprintf(stderr,
"ERROR: Could not complete sync of 'bank_centralbank_init_debt' board\n");
10642 case MB_ERR_INVALID:
10643 fprintf(stderr,
"\t reason: 'bank_centralbank_init_debt' board is invalid\n");
10645 case MB_ERR_MEMALLOC:
10646 fprintf(stderr,
"\t reason: out of memory\n");
10648 case MB_ERR_INTERNAL:
10649 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
10652 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
10666 if (rc != MB_SUCCESS)
10668 fprintf(stderr,
"ERROR: Could not clear 'bank_centralbank_init_debt' board\n");
10670 case MB_ERR_INVALID:
10671 fprintf(stderr,
"\t reason: 'bank_centralbank_init_debt' board is invalid\n");
10673 case MB_ERR_LOCKED:
10674 fprintf(stderr,
"\t reason: 'bank_centralbank_init_debt' board is locked\n");
10676 case MB_ERR_INTERNAL:
10677 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
10680 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
10690 if(FLAME_bank_centralbank_init_deposit_message_board_read == 0)
10698 if (rc != MB_SUCCESS)
10700 fprintf(stderr,
"ERROR: Could not complete sync of 'bank_centralbank_init_deposit' board\n");
10702 case MB_ERR_INVALID:
10703 fprintf(stderr,
"\t reason: 'bank_centralbank_init_deposit' board is invalid\n");
10705 case MB_ERR_MEMALLOC:
10706 fprintf(stderr,
"\t reason: out of memory\n");
10708 case MB_ERR_INTERNAL:
10709 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
10712 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
10726 if (rc != MB_SUCCESS)
10728 fprintf(stderr,
"ERROR: Could not clear 'bank_centralbank_init_deposit' board\n");
10730 case MB_ERR_INVALID:
10731 fprintf(stderr,
"\t reason: 'bank_centralbank_init_deposit' board is invalid\n");
10733 case MB_ERR_LOCKED:
10734 fprintf(stderr,
"\t reason: 'bank_centralbank_init_deposit' board is locked\n");
10736 case MB_ERR_INTERNAL:
10737 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
10740 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
10750 if(FLAME_fund_centralbank_init_deposit_message_board_read == 0)
10758 if (rc != MB_SUCCESS)
10760 fprintf(stderr,
"ERROR: Could not complete sync of 'fund_centralbank_init_deposit' board\n");
10762 case MB_ERR_INVALID:
10763 fprintf(stderr,
"\t reason: 'fund_centralbank_init_deposit' board is invalid\n");
10765 case MB_ERR_MEMALLOC:
10766 fprintf(stderr,
"\t reason: out of memory\n");
10768 case MB_ERR_INTERNAL:
10769 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
10772 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
10786 if (rc != MB_SUCCESS)
10788 fprintf(stderr,
"ERROR: Could not clear 'fund_centralbank_init_deposit' board\n");
10790 case MB_ERR_INVALID:
10791 fprintf(stderr,
"\t reason: 'fund_centralbank_init_deposit' board is invalid\n");
10793 case MB_ERR_LOCKED:
10794 fprintf(stderr,
"\t reason: 'fund_centralbank_init_deposit' board is locked\n");
10796 case MB_ERR_INTERNAL:
10797 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
10800 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
10810 if(FLAME_gov_centralbank_init_deposit_message_board_read == 0)
10818 if (rc != MB_SUCCESS)
10820 fprintf(stderr,
"ERROR: Could not complete sync of 'gov_centralbank_init_deposit' board\n");
10822 case MB_ERR_INVALID:
10823 fprintf(stderr,
"\t reason: 'gov_centralbank_init_deposit' board is invalid\n");
10825 case MB_ERR_MEMALLOC:
10826 fprintf(stderr,
"\t reason: out of memory\n");
10828 case MB_ERR_INTERNAL:
10829 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
10832 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
10846 if (rc != MB_SUCCESS)
10848 fprintf(stderr,
"ERROR: Could not clear 'gov_centralbank_init_deposit' board\n");
10850 case MB_ERR_INVALID:
10851 fprintf(stderr,
"\t reason: 'gov_centralbank_init_deposit' board is invalid\n");
10853 case MB_ERR_LOCKED:
10854 fprintf(stderr,
"\t reason: 'gov_centralbank_init_deposit' board is locked\n");
10856 case MB_ERR_INTERNAL:
10857 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
10860 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
10874 FLAME_debug_count = 0;
10877 { FLAME_debug_count++; }
10880 { FLAME_debug_count++; }
10882 if(FLAME_debug_count != 1)
10884 fprintf(stderr,
"ERROR: A function condition test has failed for agent type 'firm' leaving state 'FirmCreditStatus'\n");
10885 if(FLAME_debug_count > 1)
10886 fprintf(stderr,
"\t reason: there was more than one possible outgoing transition function\n");
10887 if(FLAME_debug_count == 0)
10888 fprintf(stderr,
"\t reason: there was no possible outgoing transition function\n");
10897 FLAME_debug_count = 0;
10900 { FLAME_debug_count++; }
10903 { FLAME_debug_count++; }
10905 if(FLAME_debug_count != 1)
10907 fprintf(stderr,
"ERROR: A function condition test has failed for agent type 'bank' leaving state 'BankCreditStart'\n");
10908 if(FLAME_debug_count > 1)
10909 fprintf(stderr,
"\t reason: there was more than one possible outgoing transition function\n");
10910 if(FLAME_debug_count == 0)
10911 fprintf(stderr,
"\t reason: there was no possible outgoing transition function\n");
10961 if(FLAME_bank_centralbank_interest_payment_message_board_write == 1)
10968 if (rc != MB_SUCCESS)
10970 fprintf(stderr,
"ERROR: Could not start sync of 'bank_centralbank_interest_payment' board\n");
10972 case MB_ERR_INVALID:
10973 fprintf(stderr,
"\t reason: 'bank_centralbank_interest_payment' board is invalid\n");
10975 case MB_ERR_LOCKED:
10976 fprintf(stderr,
"\t reason: 'bank_centralbank_interest_payment' board is locked\n");
10978 case MB_ERR_MEMALLOC:
10979 fprintf(stderr,
"\t reason: out of memory\n");
10981 case MB_ERR_INTERNAL:
10982 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
10985 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
11041 if(FLAME_firm_bank_loan_request_1_message_board_write == 1)
11048 if (rc != MB_SUCCESS)
11050 fprintf(stderr,
"ERROR: Could not start sync of 'firm_bank_loan_request_1' board\n");
11052 case MB_ERR_INVALID:
11053 fprintf(stderr,
"\t reason: 'firm_bank_loan_request_1' board is invalid\n");
11055 case MB_ERR_LOCKED:
11056 fprintf(stderr,
"\t reason: 'firm_bank_loan_request_1' board is locked\n");
11058 case MB_ERR_MEMALLOC:
11059 fprintf(stderr,
"\t reason: out of memory\n");
11061 case MB_ERR_INTERNAL:
11062 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
11065 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
11220 FLAME_debug_count = 0;
11223 { FLAME_debug_count++; }
11226 { FLAME_debug_count++; }
11228 if(FLAME_debug_count != 1)
11230 fprintf(stderr,
"ERROR: A function condition test has failed for agent type 'centralbank' leaving state 'CentralBankCredit'\n");
11231 if(FLAME_debug_count > 1)
11232 fprintf(stderr,
"\t reason: there was more than one possible outgoing transition function\n");
11233 if(FLAME_debug_count == 0)
11234 fprintf(stderr,
"\t reason: there was no possible outgoing transition function\n");
11283 if(FLAME_bank_net_profit_message_board_write == 1)
11290 if (rc != MB_SUCCESS)
11292 fprintf(stderr,
"ERROR: Could not start sync of 'bank_net_profit' board\n");
11294 case MB_ERR_INVALID:
11295 fprintf(stderr,
"\t reason: 'bank_net_profit' board is invalid\n");
11297 case MB_ERR_LOCKED:
11298 fprintf(stderr,
"\t reason: 'bank_net_profit' board is locked\n");
11300 case MB_ERR_MEMALLOC:
11301 fprintf(stderr,
"\t reason: out of memory\n");
11303 case MB_ERR_INTERNAL:
11304 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
11307 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
11365 if(FLAME_bank_centralbank_interest_payment_message_board_read == 1)
11371 if (rc != MB_SUCCESS)
11373 fprintf(stderr,
"ERROR: Could not complete sync of 'bank_centralbank_interest_payment' board\n");
11375 case MB_ERR_INVALID:
11376 fprintf(stderr,
"\t reason: 'bank_centralbank_interest_payment' board is invalid\n");
11378 case MB_ERR_MEMALLOC:
11379 fprintf(stderr,
"\t reason: out of memory\n");
11381 case MB_ERR_INTERNAL:
11382 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
11385 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
11427 if (rc != MB_SUCCESS)
11429 fprintf(stderr,
"ERROR: Could not create Iterator for 'bank_centralbank_interest_payment'\n");
11431 case MB_ERR_INVALID:
11432 fprintf(stderr,
"\t reason: 'bank_centralbank_interest_payment' board is invalid\n");
11434 case MB_ERR_LOCKED:
11435 fprintf(stderr,
"\t reason: 'bank_centralbank_interest_payment' board is locked\n");
11437 case MB_ERR_MEMALLOC:
11438 fprintf(stderr,
"\t reason: out of memory\n");
11440 case MB_ERR_INTERNAL:
11441 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
11446 fprintf(stderr,
"\t MB_Iterator_Create returned error code: %d (see libmboard docs for details)\n", rc);
11463 if (rc != MB_SUCCESS)
11465 fprintf(stderr,
"ERROR: Could not delete 'bank_centralbank_interest_payment' iterator\n");
11467 case MB_ERR_INVALID:
11468 fprintf(stderr,
"\t reason: 'bank_centralbank_interest_payment' iterator is invalid\n");
11470 case MB_ERR_INTERNAL:
11471 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
11474 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
11506 if(FLAME_bank_centralbank_interest_payment_message_board_read == 0)
11514 if (rc != MB_SUCCESS)
11516 fprintf(stderr,
"ERROR: Could not complete sync of 'bank_centralbank_interest_payment' board\n");
11518 case MB_ERR_INVALID:
11519 fprintf(stderr,
"\t reason: 'bank_centralbank_interest_payment' board is invalid\n");
11521 case MB_ERR_MEMALLOC:
11522 fprintf(stderr,
"\t reason: out of memory\n");
11524 case MB_ERR_INTERNAL:
11525 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
11528 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
11542 if (rc != MB_SUCCESS)
11544 fprintf(stderr,
"ERROR: Could not clear 'bank_centralbank_interest_payment' board\n");
11546 case MB_ERR_INVALID:
11547 fprintf(stderr,
"\t reason: 'bank_centralbank_interest_payment' board is invalid\n");
11549 case MB_ERR_LOCKED:
11550 fprintf(stderr,
"\t reason: 'bank_centralbank_interest_payment' board is locked\n");
11552 case MB_ERR_INTERNAL:
11553 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
11556 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
11610 if(FLAME_bank_centralbank_debt_payment_message_board_write == 1)
11617 if (rc != MB_SUCCESS)
11619 fprintf(stderr,
"ERROR: Could not start sync of 'bank_centralbank_debt_payment' board\n");
11621 case MB_ERR_INVALID:
11622 fprintf(stderr,
"\t reason: 'bank_centralbank_debt_payment' board is invalid\n");
11624 case MB_ERR_LOCKED:
11625 fprintf(stderr,
"\t reason: 'bank_centralbank_debt_payment' board is locked\n");
11627 case MB_ERR_MEMALLOC:
11628 fprintf(stderr,
"\t reason: out of memory\n");
11630 case MB_ERR_INTERNAL:
11631 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
11634 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
11645 if(FLAME_bank_centralbank_debt_request_message_board_write == 1)
11652 if (rc != MB_SUCCESS)
11654 fprintf(stderr,
"ERROR: Could not start sync of 'bank_centralbank_debt_request' board\n");
11656 case MB_ERR_INVALID:
11657 fprintf(stderr,
"\t reason: 'bank_centralbank_debt_request' board is invalid\n");
11659 case MB_ERR_LOCKED:
11660 fprintf(stderr,
"\t reason: 'bank_centralbank_debt_request' board is locked\n");
11662 case MB_ERR_MEMALLOC:
11663 fprintf(stderr,
"\t reason: out of memory\n");
11665 case MB_ERR_INTERNAL:
11666 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
11669 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
11680 if(FLAME_bank_centralbank_update_deposit_message_board_write == 1)
11687 if (rc != MB_SUCCESS)
11689 fprintf(stderr,
"ERROR: Could not start sync of 'bank_centralbank_update_deposit' board\n");
11691 case MB_ERR_INVALID:
11692 fprintf(stderr,
"\t reason: 'bank_centralbank_update_deposit' board is invalid\n");
11694 case MB_ERR_LOCKED:
11695 fprintf(stderr,
"\t reason: 'bank_centralbank_update_deposit' board is locked\n");
11697 case MB_ERR_MEMALLOC:
11698 fprintf(stderr,
"\t reason: out of memory\n");
11700 case MB_ERR_INTERNAL:
11701 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
11704 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
11723 if(FLAME_firm_bank_loan_request_1_message_board_read == 1)
11729 if (rc != MB_SUCCESS)
11731 fprintf(stderr,
"ERROR: Could not complete sync of 'firm_bank_loan_request_1' board\n");
11733 case MB_ERR_INVALID:
11734 fprintf(stderr,
"\t reason: 'firm_bank_loan_request_1' board is invalid\n");
11736 case MB_ERR_MEMALLOC:
11737 fprintf(stderr,
"\t reason: out of memory\n");
11739 case MB_ERR_INTERNAL:
11740 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
11743 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
11787 if (rc != MB_SUCCESS)
11789 fprintf(stderr,
"ERROR: Could not create Iterator for 'firm_bank_loan_request_1'\n");
11791 case MB_ERR_INVALID:
11792 fprintf(stderr,
"\t reason: 'firm_bank_loan_request_1' board is invalid\n");
11794 case MB_ERR_LOCKED:
11795 fprintf(stderr,
"\t reason: 'firm_bank_loan_request_1' board is locked\n");
11797 case MB_ERR_MEMALLOC:
11798 fprintf(stderr,
"\t reason: out of memory\n");
11800 case MB_ERR_INTERNAL:
11801 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
11805 fprintf(stderr,
"\t MB_Iterator_CreateFiltered returned error code: %d (see libmboard docs for details)\n", rc);
11823 if (rc != MB_SUCCESS)
11825 fprintf(stderr,
"ERROR: Could not delete 'firm_bank_loan_request_1' iterator\n");
11827 case MB_ERR_INVALID:
11828 fprintf(stderr,
"\t reason: 'firm_bank_loan_request_1' iterator is invalid\n");
11830 case MB_ERR_INTERNAL:
11831 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
11834 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
11860 if(FLAME_bank_firm_loan_acknowledge_1_message_board_write == 1)
11867 if (rc != MB_SUCCESS)
11869 fprintf(stderr,
"ERROR: Could not start sync of 'bank_firm_loan_acknowledge_1' board\n");
11871 case MB_ERR_INVALID:
11872 fprintf(stderr,
"\t reason: 'bank_firm_loan_acknowledge_1' board is invalid\n");
11874 case MB_ERR_LOCKED:
11875 fprintf(stderr,
"\t reason: 'bank_firm_loan_acknowledge_1' board is locked\n");
11877 case MB_ERR_MEMALLOC:
11878 fprintf(stderr,
"\t reason: out of memory\n");
11880 case MB_ERR_INTERNAL:
11881 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
11884 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
11897 if(FLAME_bank_centralbank_debt_payment_message_board_read == 1)
11903 if (rc != MB_SUCCESS)
11905 fprintf(stderr,
"ERROR: Could not complete sync of 'bank_centralbank_debt_payment' board\n");
11907 case MB_ERR_INVALID:
11908 fprintf(stderr,
"\t reason: 'bank_centralbank_debt_payment' board is invalid\n");
11910 case MB_ERR_MEMALLOC:
11911 fprintf(stderr,
"\t reason: out of memory\n");
11913 case MB_ERR_INTERNAL:
11914 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
11917 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
11931 if(FLAME_bank_centralbank_debt_request_message_board_read == 1)
11937 if (rc != MB_SUCCESS)
11939 fprintf(stderr,
"ERROR: Could not complete sync of 'bank_centralbank_debt_request' board\n");
11941 case MB_ERR_INVALID:
11942 fprintf(stderr,
"\t reason: 'bank_centralbank_debt_request' board is invalid\n");
11944 case MB_ERR_MEMALLOC:
11945 fprintf(stderr,
"\t reason: out of memory\n");
11947 case MB_ERR_INTERNAL:
11948 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
11951 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
11965 if(FLAME_bank_centralbank_update_deposit_message_board_read == 1)
11971 if (rc != MB_SUCCESS)
11973 fprintf(stderr,
"ERROR: Could not complete sync of 'bank_centralbank_update_deposit' board\n");
11975 case MB_ERR_INVALID:
11976 fprintf(stderr,
"\t reason: 'bank_centralbank_update_deposit' board is invalid\n");
11978 case MB_ERR_MEMALLOC:
11979 fprintf(stderr,
"\t reason: out of memory\n");
11981 case MB_ERR_INTERNAL:
11982 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
11985 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
12026 if (rc != MB_SUCCESS)
12028 fprintf(stderr,
"ERROR: Could not create Iterator for 'bank_centralbank_debt_request'\n");
12030 case MB_ERR_INVALID:
12031 fprintf(stderr,
"\t reason: 'bank_centralbank_debt_request' board is invalid\n");
12033 case MB_ERR_LOCKED:
12034 fprintf(stderr,
"\t reason: 'bank_centralbank_debt_request' board is locked\n");
12036 case MB_ERR_MEMALLOC:
12037 fprintf(stderr,
"\t reason: out of memory\n");
12039 case MB_ERR_INTERNAL:
12040 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
12045 fprintf(stderr,
"\t MB_Iterator_Create returned error code: %d (see libmboard docs for details)\n", rc);
12062 if (rc != MB_SUCCESS)
12064 fprintf(stderr,
"ERROR: Could not create Iterator for 'bank_centralbank_debt_payment'\n");
12066 case MB_ERR_INVALID:
12067 fprintf(stderr,
"\t reason: 'bank_centralbank_debt_payment' board is invalid\n");
12069 case MB_ERR_LOCKED:
12070 fprintf(stderr,
"\t reason: 'bank_centralbank_debt_payment' board is locked\n");
12072 case MB_ERR_MEMALLOC:
12073 fprintf(stderr,
"\t reason: out of memory\n");
12075 case MB_ERR_INTERNAL:
12076 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
12081 fprintf(stderr,
"\t MB_Iterator_Create returned error code: %d (see libmboard docs for details)\n", rc);
12098 if (rc != MB_SUCCESS)
12100 fprintf(stderr,
"ERROR: Could not create Iterator for 'bank_centralbank_update_deposit'\n");
12102 case MB_ERR_INVALID:
12103 fprintf(stderr,
"\t reason: 'bank_centralbank_update_deposit' board is invalid\n");
12105 case MB_ERR_LOCKED:
12106 fprintf(stderr,
"\t reason: 'bank_centralbank_update_deposit' board is locked\n");
12108 case MB_ERR_MEMALLOC:
12109 fprintf(stderr,
"\t reason: out of memory\n");
12111 case MB_ERR_INTERNAL:
12112 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
12117 fprintf(stderr,
"\t MB_Iterator_Create returned error code: %d (see libmboard docs for details)\n", rc);
12134 if (rc != MB_SUCCESS)
12136 fprintf(stderr,
"ERROR: Could not delete 'bank_centralbank_debt_request' iterator\n");
12138 case MB_ERR_INVALID:
12139 fprintf(stderr,
"\t reason: 'bank_centralbank_debt_request' iterator is invalid\n");
12141 case MB_ERR_INTERNAL:
12142 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
12145 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
12156 if (rc != MB_SUCCESS)
12158 fprintf(stderr,
"ERROR: Could not delete 'bank_centralbank_debt_payment' iterator\n");
12160 case MB_ERR_INVALID:
12161 fprintf(stderr,
"\t reason: 'bank_centralbank_debt_payment' iterator is invalid\n");
12163 case MB_ERR_INTERNAL:
12164 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
12167 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
12178 if (rc != MB_SUCCESS)
12180 fprintf(stderr,
"ERROR: Could not delete 'bank_centralbank_update_deposit' iterator\n");
12182 case MB_ERR_INVALID:
12183 fprintf(stderr,
"\t reason: 'bank_centralbank_update_deposit' iterator is invalid\n");
12185 case MB_ERR_INTERNAL:
12186 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
12189 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
12221 if(FLAME_bank_centralbank_update_deposit_message_board_read == 0)
12229 if (rc != MB_SUCCESS)
12231 fprintf(stderr,
"ERROR: Could not complete sync of 'bank_centralbank_update_deposit' board\n");
12233 case MB_ERR_INVALID:
12234 fprintf(stderr,
"\t reason: 'bank_centralbank_update_deposit' board is invalid\n");
12236 case MB_ERR_MEMALLOC:
12237 fprintf(stderr,
"\t reason: out of memory\n");
12239 case MB_ERR_INTERNAL:
12240 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
12243 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
12257 if (rc != MB_SUCCESS)
12259 fprintf(stderr,
"ERROR: Could not clear 'bank_centralbank_update_deposit' board\n");
12261 case MB_ERR_INVALID:
12262 fprintf(stderr,
"\t reason: 'bank_centralbank_update_deposit' board is invalid\n");
12264 case MB_ERR_LOCKED:
12265 fprintf(stderr,
"\t reason: 'bank_centralbank_update_deposit' board is locked\n");
12267 case MB_ERR_INTERNAL:
12268 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
12271 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
12281 if(FLAME_firm_bank_loan_request_1_message_board_read == 0)
12289 if (rc != MB_SUCCESS)
12291 fprintf(stderr,
"ERROR: Could not complete sync of 'firm_bank_loan_request_1' board\n");
12293 case MB_ERR_INVALID:
12294 fprintf(stderr,
"\t reason: 'firm_bank_loan_request_1' board is invalid\n");
12296 case MB_ERR_MEMALLOC:
12297 fprintf(stderr,
"\t reason: out of memory\n");
12299 case MB_ERR_INTERNAL:
12300 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
12303 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
12317 if (rc != MB_SUCCESS)
12319 fprintf(stderr,
"ERROR: Could not clear 'firm_bank_loan_request_1' board\n");
12321 case MB_ERR_INVALID:
12322 fprintf(stderr,
"\t reason: 'firm_bank_loan_request_1' board is invalid\n");
12324 case MB_ERR_LOCKED:
12325 fprintf(stderr,
"\t reason: 'firm_bank_loan_request_1' board is locked\n");
12327 case MB_ERR_INTERNAL:
12328 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
12331 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
12341 if(FLAME_bank_centralbank_debt_request_message_board_read == 0)
12349 if (rc != MB_SUCCESS)
12351 fprintf(stderr,
"ERROR: Could not complete sync of 'bank_centralbank_debt_request' board\n");
12353 case MB_ERR_INVALID:
12354 fprintf(stderr,
"\t reason: 'bank_centralbank_debt_request' board is invalid\n");
12356 case MB_ERR_MEMALLOC:
12357 fprintf(stderr,
"\t reason: out of memory\n");
12359 case MB_ERR_INTERNAL:
12360 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
12363 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
12377 if (rc != MB_SUCCESS)
12379 fprintf(stderr,
"ERROR: Could not clear 'bank_centralbank_debt_request' board\n");
12381 case MB_ERR_INVALID:
12382 fprintf(stderr,
"\t reason: 'bank_centralbank_debt_request' board is invalid\n");
12384 case MB_ERR_LOCKED:
12385 fprintf(stderr,
"\t reason: 'bank_centralbank_debt_request' board is locked\n");
12387 case MB_ERR_INTERNAL:
12388 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
12391 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
12401 if(FLAME_bank_centralbank_debt_payment_message_board_read == 0)
12409 if (rc != MB_SUCCESS)
12411 fprintf(stderr,
"ERROR: Could not complete sync of 'bank_centralbank_debt_payment' board\n");
12413 case MB_ERR_INVALID:
12414 fprintf(stderr,
"\t reason: 'bank_centralbank_debt_payment' board is invalid\n");
12416 case MB_ERR_MEMALLOC:
12417 fprintf(stderr,
"\t reason: out of memory\n");
12419 case MB_ERR_INTERNAL:
12420 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
12423 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
12437 if (rc != MB_SUCCESS)
12439 fprintf(stderr,
"ERROR: Could not clear 'bank_centralbank_debt_payment' board\n");
12441 case MB_ERR_INVALID:
12442 fprintf(stderr,
"\t reason: 'bank_centralbank_debt_payment' board is invalid\n");
12444 case MB_ERR_LOCKED:
12445 fprintf(stderr,
"\t reason: 'bank_centralbank_debt_payment' board is locked\n");
12447 case MB_ERR_INTERNAL:
12448 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
12451 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
12465 FLAME_debug_count = 0;
12468 { FLAME_debug_count++; }
12471 { FLAME_debug_count++; }
12473 if(FLAME_debug_count != 1)
12475 fprintf(stderr,
"ERROR: A function condition test has failed for agent type 'centralbank' leaving state 'CentralBankConsumption'\n");
12476 if(FLAME_debug_count > 1)
12477 fprintf(stderr,
"\t reason: there was more than one possible outgoing transition function\n");
12478 if(FLAME_debug_count == 0)
12479 fprintf(stderr,
"\t reason: there was no possible outgoing transition function\n");
12531 if(FLAME_bank_firm_loan_acknowledge_1_message_board_read == 1)
12537 if (rc != MB_SUCCESS)
12539 fprintf(stderr,
"ERROR: Could not complete sync of 'bank_firm_loan_acknowledge_1' board\n");
12541 case MB_ERR_INVALID:
12542 fprintf(stderr,
"\t reason: 'bank_firm_loan_acknowledge_1' board is invalid\n");
12544 case MB_ERR_MEMALLOC:
12545 fprintf(stderr,
"\t reason: out of memory\n");
12547 case MB_ERR_INTERNAL:
12548 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
12551 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
12595 if (rc != MB_SUCCESS)
12597 fprintf(stderr,
"ERROR: Could not create Iterator for 'bank_firm_loan_acknowledge_1'\n");
12599 case MB_ERR_INVALID:
12600 fprintf(stderr,
"\t reason: 'bank_firm_loan_acknowledge_1' board is invalid\n");
12602 case MB_ERR_LOCKED:
12603 fprintf(stderr,
"\t reason: 'bank_firm_loan_acknowledge_1' board is locked\n");
12605 case MB_ERR_MEMALLOC:
12606 fprintf(stderr,
"\t reason: out of memory\n");
12608 case MB_ERR_INTERNAL:
12609 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
12613 fprintf(stderr,
"\t MB_Iterator_CreateFiltered returned error code: %d (see libmboard docs for details)\n", rc);
12631 if (rc != MB_SUCCESS)
12633 fprintf(stderr,
"ERROR: Could not delete 'bank_firm_loan_acknowledge_1' iterator\n");
12635 case MB_ERR_INVALID:
12636 fprintf(stderr,
"\t reason: 'bank_firm_loan_acknowledge_1' iterator is invalid\n");
12638 case MB_ERR_INTERNAL:
12639 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
12642 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
12668 if(FLAME_firm_bank_loan_request_2_message_board_write == 1)
12675 if (rc != MB_SUCCESS)
12677 fprintf(stderr,
"ERROR: Could not start sync of 'firm_bank_loan_request_2' board\n");
12679 case MB_ERR_INVALID:
12680 fprintf(stderr,
"\t reason: 'firm_bank_loan_request_2' board is invalid\n");
12682 case MB_ERR_LOCKED:
12683 fprintf(stderr,
"\t reason: 'firm_bank_loan_request_2' board is locked\n");
12685 case MB_ERR_MEMALLOC:
12686 fprintf(stderr,
"\t reason: out of memory\n");
12688 case MB_ERR_INTERNAL:
12689 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
12692 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
12709 if(FLAME_bank_firm_loan_acknowledge_1_message_board_read == 0)
12717 if (rc != MB_SUCCESS)
12719 fprintf(stderr,
"ERROR: Could not complete sync of 'bank_firm_loan_acknowledge_1' board\n");
12721 case MB_ERR_INVALID:
12722 fprintf(stderr,
"\t reason: 'bank_firm_loan_acknowledge_1' board is invalid\n");
12724 case MB_ERR_MEMALLOC:
12725 fprintf(stderr,
"\t reason: out of memory\n");
12727 case MB_ERR_INTERNAL:
12728 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
12731 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
12745 if (rc != MB_SUCCESS)
12747 fprintf(stderr,
"ERROR: Could not clear 'bank_firm_loan_acknowledge_1' board\n");
12749 case MB_ERR_INVALID:
12750 fprintf(stderr,
"\t reason: 'bank_firm_loan_acknowledge_1' board is invalid\n");
12752 case MB_ERR_LOCKED:
12753 fprintf(stderr,
"\t reason: 'bank_firm_loan_acknowledge_1' board is locked\n");
12755 case MB_ERR_INTERNAL:
12756 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
12759 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
12773 FLAME_debug_count = 0;
12776 { FLAME_debug_count++; }
12779 { FLAME_debug_count++; }
12781 if(FLAME_debug_count != 1)
12783 fprintf(stderr,
"ERROR: A function condition test has failed for agent type 'firm' leaving state 'FirmCreditLoanBorrow2'\n");
12784 if(FLAME_debug_count > 1)
12785 fprintf(stderr,
"\t reason: there was more than one possible outgoing transition function\n");
12786 if(FLAME_debug_count == 0)
12787 fprintf(stderr,
"\t reason: there was no possible outgoing transition function\n");
12794 if(FLAME_firm_bank_loan_request_2_message_board_read == 1)
12800 if (rc != MB_SUCCESS)
12802 fprintf(stderr,
"ERROR: Could not complete sync of 'firm_bank_loan_request_2' board\n");
12804 case MB_ERR_INVALID:
12805 fprintf(stderr,
"\t reason: 'firm_bank_loan_request_2' board is invalid\n");
12807 case MB_ERR_MEMALLOC:
12808 fprintf(stderr,
"\t reason: out of memory\n");
12810 case MB_ERR_INTERNAL:
12811 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
12814 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
12858 if (rc != MB_SUCCESS)
12860 fprintf(stderr,
"ERROR: Could not create Iterator for 'firm_bank_loan_request_2'\n");
12862 case MB_ERR_INVALID:
12863 fprintf(stderr,
"\t reason: 'firm_bank_loan_request_2' board is invalid\n");
12865 case MB_ERR_LOCKED:
12866 fprintf(stderr,
"\t reason: 'firm_bank_loan_request_2' board is locked\n");
12868 case MB_ERR_MEMALLOC:
12869 fprintf(stderr,
"\t reason: out of memory\n");
12871 case MB_ERR_INTERNAL:
12872 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
12876 fprintf(stderr,
"\t MB_Iterator_CreateFiltered returned error code: %d (see libmboard docs for details)\n", rc);
12894 if (rc != MB_SUCCESS)
12896 fprintf(stderr,
"ERROR: Could not delete 'firm_bank_loan_request_2' iterator\n");
12898 case MB_ERR_INVALID:
12899 fprintf(stderr,
"\t reason: 'firm_bank_loan_request_2' iterator is invalid\n");
12901 case MB_ERR_INTERNAL:
12902 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
12905 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
12931 if(FLAME_bank_firm_loan_acknowledge_2_message_board_write == 1)
12938 if (rc != MB_SUCCESS)
12940 fprintf(stderr,
"ERROR: Could not start sync of 'bank_firm_loan_acknowledge_2' board\n");
12942 case MB_ERR_INVALID:
12943 fprintf(stderr,
"\t reason: 'bank_firm_loan_acknowledge_2' board is invalid\n");
12945 case MB_ERR_LOCKED:
12946 fprintf(stderr,
"\t reason: 'bank_firm_loan_acknowledge_2' board is locked\n");
12948 case MB_ERR_MEMALLOC:
12949 fprintf(stderr,
"\t reason: out of memory\n");
12951 case MB_ERR_INTERNAL:
12952 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
12955 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
13017 if(FLAME_firm_bank_loan_request_2_message_board_read == 0)
13025 if (rc != MB_SUCCESS)
13027 fprintf(stderr,
"ERROR: Could not complete sync of 'firm_bank_loan_request_2' board\n");
13029 case MB_ERR_INVALID:
13030 fprintf(stderr,
"\t reason: 'firm_bank_loan_request_2' board is invalid\n");
13032 case MB_ERR_MEMALLOC:
13033 fprintf(stderr,
"\t reason: out of memory\n");
13035 case MB_ERR_INTERNAL:
13036 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
13039 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
13053 if (rc != MB_SUCCESS)
13055 fprintf(stderr,
"ERROR: Could not clear 'firm_bank_loan_request_2' board\n");
13057 case MB_ERR_INVALID:
13058 fprintf(stderr,
"\t reason: 'firm_bank_loan_request_2' board is invalid\n");
13060 case MB_ERR_LOCKED:
13061 fprintf(stderr,
"\t reason: 'firm_bank_loan_request_2' board is locked\n");
13063 case MB_ERR_INTERNAL:
13064 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
13067 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
13079 if(FLAME_bank_firm_loan_acknowledge_2_message_board_read == 1)
13085 if (rc != MB_SUCCESS)
13087 fprintf(stderr,
"ERROR: Could not complete sync of 'bank_firm_loan_acknowledge_2' board\n");
13089 case MB_ERR_INVALID:
13090 fprintf(stderr,
"\t reason: 'bank_firm_loan_acknowledge_2' board is invalid\n");
13092 case MB_ERR_MEMALLOC:
13093 fprintf(stderr,
"\t reason: out of memory\n");
13095 case MB_ERR_INTERNAL:
13096 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
13099 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
13144 if (rc != MB_SUCCESS)
13146 fprintf(stderr,
"ERROR: Could not create Iterator for 'bank_firm_loan_acknowledge_2'\n");
13148 case MB_ERR_INVALID:
13149 fprintf(stderr,
"\t reason: 'bank_firm_loan_acknowledge_2' board is invalid\n");
13151 case MB_ERR_LOCKED:
13152 fprintf(stderr,
"\t reason: 'bank_firm_loan_acknowledge_2' board is locked\n");
13154 case MB_ERR_MEMALLOC:
13155 fprintf(stderr,
"\t reason: out of memory\n");
13157 case MB_ERR_INTERNAL:
13158 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
13162 fprintf(stderr,
"\t MB_Iterator_CreateFiltered returned error code: %d (see libmboard docs for details)\n", rc);
13180 if (rc != MB_SUCCESS)
13182 fprintf(stderr,
"ERROR: Could not delete 'bank_firm_loan_acknowledge_2' iterator\n");
13184 case MB_ERR_INVALID:
13185 fprintf(stderr,
"\t reason: 'bank_firm_loan_acknowledge_2' iterator is invalid\n");
13187 case MB_ERR_INTERNAL:
13188 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
13191 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
13223 if(FLAME_bank_firm_loan_acknowledge_2_message_board_read == 0)
13231 if (rc != MB_SUCCESS)
13233 fprintf(stderr,
"ERROR: Could not complete sync of 'bank_firm_loan_acknowledge_2' board\n");
13235 case MB_ERR_INVALID:
13236 fprintf(stderr,
"\t reason: 'bank_firm_loan_acknowledge_2' board is invalid\n");
13238 case MB_ERR_MEMALLOC:
13239 fprintf(stderr,
"\t reason: out of memory\n");
13241 case MB_ERR_INTERNAL:
13242 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
13245 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
13259 if (rc != MB_SUCCESS)
13261 fprintf(stderr,
"ERROR: Could not clear 'bank_firm_loan_acknowledge_2' board\n");
13263 case MB_ERR_INVALID:
13264 fprintf(stderr,
"\t reason: 'bank_firm_loan_acknowledge_2' board is invalid\n");
13266 case MB_ERR_LOCKED:
13267 fprintf(stderr,
"\t reason: 'bank_firm_loan_acknowledge_2' board is locked\n");
13269 case MB_ERR_INTERNAL:
13270 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
13273 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
13287 FLAME_debug_count = 0;
13290 { FLAME_debug_count++; }
13293 { FLAME_debug_count++; }
13295 if(FLAME_debug_count != 1)
13297 fprintf(stderr,
"ERROR: A function condition test has failed for agent type 'firm' leaving state 'FirmCreditIlliquidityStatus'\n");
13298 if(FLAME_debug_count > 1)
13299 fprintf(stderr,
"\t reason: there was more than one possible outgoing transition function\n");
13300 if(FLAME_debug_count == 0)
13301 fprintf(stderr,
"\t reason: there was no possible outgoing transition function\n");
13351 if(FLAME_fund_request_message_board_write == 1)
13358 if (rc != MB_SUCCESS)
13360 fprintf(stderr,
"ERROR: Could not start sync of 'fund_request' board\n");
13362 case MB_ERR_INVALID:
13363 fprintf(stderr,
"\t reason: 'fund_request' board is invalid\n");
13365 case MB_ERR_LOCKED:
13366 fprintf(stderr,
"\t reason: 'fund_request' board is locked\n");
13368 case MB_ERR_MEMALLOC:
13369 fprintf(stderr,
"\t reason: out of memory\n");
13371 case MB_ERR_INTERNAL:
13372 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
13375 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
13441 FLAME_debug_count = 0;
13444 { FLAME_debug_count++; }
13447 { FLAME_debug_count++; }
13449 if(FLAME_debug_count != 1)
13451 fprintf(stderr,
"ERROR: A function condition test has failed for agent type 'firm' leaving state 'FirmCreditLiquidityRecheck'\n");
13452 if(FLAME_debug_count > 1)
13453 fprintf(stderr,
"\t reason: there was more than one possible outgoing transition function\n");
13454 if(FLAME_debug_count == 0)
13455 fprintf(stderr,
"\t reason: there was no possible outgoing transition function\n");
13462 if(FLAME_fund_request_message_board_read == 1)
13468 if (rc != MB_SUCCESS)
13470 fprintf(stderr,
"ERROR: Could not complete sync of 'fund_request' board\n");
13472 case MB_ERR_INVALID:
13473 fprintf(stderr,
"\t reason: 'fund_request' board is invalid\n");
13475 case MB_ERR_MEMALLOC:
13476 fprintf(stderr,
"\t reason: out of memory\n");
13478 case MB_ERR_INTERNAL:
13479 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
13482 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
13524 if (rc != MB_SUCCESS)
13526 fprintf(stderr,
"ERROR: Could not create Iterator for 'fund_request'\n");
13528 case MB_ERR_INVALID:
13529 fprintf(stderr,
"\t reason: 'fund_request' board is invalid\n");
13531 case MB_ERR_LOCKED:
13532 fprintf(stderr,
"\t reason: 'fund_request' board is locked\n");
13534 case MB_ERR_MEMALLOC:
13535 fprintf(stderr,
"\t reason: out of memory\n");
13537 case MB_ERR_INTERNAL:
13538 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
13543 fprintf(stderr,
"\t MB_Iterator_Create returned error code: %d (see libmboard docs for details)\n", rc);
13560 if (rc != MB_SUCCESS)
13562 fprintf(stderr,
"ERROR: Could not delete 'fund_request' iterator\n");
13564 case MB_ERR_INVALID:
13565 fprintf(stderr,
"\t reason: 'fund_request' iterator is invalid\n");
13567 case MB_ERR_INTERNAL:
13568 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
13571 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
13597 if(FLAME_fund_request_ack_message_board_write == 1)
13604 if (rc != MB_SUCCESS)
13606 fprintf(stderr,
"ERROR: Could not start sync of 'fund_request_ack' board\n");
13608 case MB_ERR_INVALID:
13609 fprintf(stderr,
"\t reason: 'fund_request_ack' board is invalid\n");
13611 case MB_ERR_LOCKED:
13612 fprintf(stderr,
"\t reason: 'fund_request_ack' board is locked\n");
13614 case MB_ERR_MEMALLOC:
13615 fprintf(stderr,
"\t reason: out of memory\n");
13617 case MB_ERR_INTERNAL:
13618 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
13621 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
13683 if(FLAME_fund_request_message_board_read == 0)
13691 if (rc != MB_SUCCESS)
13693 fprintf(stderr,
"ERROR: Could not complete sync of 'fund_request' board\n");
13695 case MB_ERR_INVALID:
13696 fprintf(stderr,
"\t reason: 'fund_request' board is invalid\n");
13698 case MB_ERR_MEMALLOC:
13699 fprintf(stderr,
"\t reason: out of memory\n");
13701 case MB_ERR_INTERNAL:
13702 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
13705 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
13719 if (rc != MB_SUCCESS)
13721 fprintf(stderr,
"ERROR: Could not clear 'fund_request' board\n");
13723 case MB_ERR_INVALID:
13724 fprintf(stderr,
"\t reason: 'fund_request' board is invalid\n");
13726 case MB_ERR_LOCKED:
13727 fprintf(stderr,
"\t reason: 'fund_request' board is locked\n");
13729 case MB_ERR_INTERNAL:
13730 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
13733 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
13745 if(FLAME_bank_net_profit_message_board_read == 1)
13751 if (rc != MB_SUCCESS)
13753 fprintf(stderr,
"ERROR: Could not complete sync of 'bank_net_profit' board\n");
13755 case MB_ERR_INVALID:
13756 fprintf(stderr,
"\t reason: 'bank_net_profit' board is invalid\n");
13758 case MB_ERR_MEMALLOC:
13759 fprintf(stderr,
"\t reason: out of memory\n");
13761 case MB_ERR_INTERNAL:
13762 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
13765 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
13806 if (rc != MB_SUCCESS)
13808 fprintf(stderr,
"ERROR: Could not create Iterator for 'bank_net_profit'\n");
13810 case MB_ERR_INVALID:
13811 fprintf(stderr,
"\t reason: 'bank_net_profit' board is invalid\n");
13813 case MB_ERR_LOCKED:
13814 fprintf(stderr,
"\t reason: 'bank_net_profit' board is locked\n");
13816 case MB_ERR_MEMALLOC:
13817 fprintf(stderr,
"\t reason: out of memory\n");
13819 case MB_ERR_INTERNAL:
13820 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
13825 fprintf(stderr,
"\t MB_Iterator_Create returned error code: %d (see libmboard docs for details)\n", rc);
13842 if (rc != MB_SUCCESS)
13844 fprintf(stderr,
"ERROR: Could not delete 'bank_net_profit' iterator\n");
13846 case MB_ERR_INVALID:
13847 fprintf(stderr,
"\t reason: 'bank_net_profit' iterator is invalid\n");
13849 case MB_ERR_INTERNAL:
13850 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
13853 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
13881 if(FLAME_fund_request_ack_message_board_read == 1)
13887 if (rc != MB_SUCCESS)
13889 fprintf(stderr,
"ERROR: Could not complete sync of 'fund_request_ack' board\n");
13891 case MB_ERR_INVALID:
13892 fprintf(stderr,
"\t reason: 'fund_request_ack' board is invalid\n");
13894 case MB_ERR_MEMALLOC:
13895 fprintf(stderr,
"\t reason: out of memory\n");
13897 case MB_ERR_INTERNAL:
13898 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
13901 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
13946 if (rc != MB_SUCCESS)
13948 fprintf(stderr,
"ERROR: Could not create Iterator for 'fund_request_ack'\n");
13950 case MB_ERR_INVALID:
13951 fprintf(stderr,
"\t reason: 'fund_request_ack' board is invalid\n");
13953 case MB_ERR_LOCKED:
13954 fprintf(stderr,
"\t reason: 'fund_request_ack' board is locked\n");
13956 case MB_ERR_MEMALLOC:
13957 fprintf(stderr,
"\t reason: out of memory\n");
13959 case MB_ERR_INTERNAL:
13960 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
13964 fprintf(stderr,
"\t MB_Iterator_CreateFiltered returned error code: %d (see libmboard docs for details)\n", rc);
13982 if (rc != MB_SUCCESS)
13984 fprintf(stderr,
"ERROR: Could not delete 'fund_request_ack' iterator\n");
13986 case MB_ERR_INVALID:
13987 fprintf(stderr,
"\t reason: 'fund_request_ack' iterator is invalid\n");
13989 case MB_ERR_INTERNAL:
13990 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
13993 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
14025 if(FLAME_fund_request_ack_message_board_read == 0)
14033 if (rc != MB_SUCCESS)
14035 fprintf(stderr,
"ERROR: Could not complete sync of 'fund_request_ack' board\n");
14037 case MB_ERR_INVALID:
14038 fprintf(stderr,
"\t reason: 'fund_request_ack' board is invalid\n");
14040 case MB_ERR_MEMALLOC:
14041 fprintf(stderr,
"\t reason: out of memory\n");
14043 case MB_ERR_INTERNAL:
14044 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
14047 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
14061 if (rc != MB_SUCCESS)
14063 fprintf(stderr,
"ERROR: Could not clear 'fund_request_ack' board\n");
14065 case MB_ERR_INVALID:
14066 fprintf(stderr,
"\t reason: 'fund_request_ack' board is invalid\n");
14068 case MB_ERR_LOCKED:
14069 fprintf(stderr,
"\t reason: 'fund_request_ack' board is locked\n");
14071 case MB_ERR_INTERNAL:
14072 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
14075 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
14085 if(FLAME_bank_net_profit_message_board_read == 0)
14093 if (rc != MB_SUCCESS)
14095 fprintf(stderr,
"ERROR: Could not complete sync of 'bank_net_profit' board\n");
14097 case MB_ERR_INVALID:
14098 fprintf(stderr,
"\t reason: 'bank_net_profit' board is invalid\n");
14100 case MB_ERR_MEMALLOC:
14101 fprintf(stderr,
"\t reason: out of memory\n");
14103 case MB_ERR_INTERNAL:
14104 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
14107 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
14121 if (rc != MB_SUCCESS)
14123 fprintf(stderr,
"ERROR: Could not clear 'bank_net_profit' board\n");
14125 case MB_ERR_INVALID:
14126 fprintf(stderr,
"\t reason: 'bank_net_profit' board is invalid\n");
14128 case MB_ERR_LOCKED:
14129 fprintf(stderr,
"\t reason: 'bank_net_profit' board is locked\n");
14131 case MB_ERR_INTERNAL:
14132 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
14135 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
14149 FLAME_debug_count = 0;
14152 { FLAME_debug_count++; }
14155 { FLAME_debug_count++; }
14157 if(FLAME_debug_count != 1)
14159 fprintf(stderr,
"ERROR: A function condition test has failed for agent type 'firm' leaving state 'FirmCreditBankruptcy'\n");
14160 if(FLAME_debug_count > 1)
14161 fprintf(stderr,
"\t reason: there was more than one possible outgoing transition function\n");
14162 if(FLAME_debug_count == 0)
14163 fprintf(stderr,
"\t reason: there was no possible outgoing transition function\n");
14308 if(FLAME_firm_bank_interest_on_loan_message_board_write == 1)
14315 if (rc != MB_SUCCESS)
14317 fprintf(stderr,
"ERROR: Could not start sync of 'firm_bank_interest_on_loan' board\n");
14319 case MB_ERR_INVALID:
14320 fprintf(stderr,
"\t reason: 'firm_bank_interest_on_loan' board is invalid\n");
14322 case MB_ERR_LOCKED:
14323 fprintf(stderr,
"\t reason: 'firm_bank_interest_on_loan' board is locked\n");
14325 case MB_ERR_MEMALLOC:
14326 fprintf(stderr,
"\t reason: out of memory\n");
14328 case MB_ERR_INTERNAL:
14329 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
14332 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
14393 if(FLAME_firm_net_profit_message_board_write == 1)
14400 if (rc != MB_SUCCESS)
14402 fprintf(stderr,
"ERROR: Could not start sync of 'firm_net_profit' board\n");
14404 case MB_ERR_INVALID:
14405 fprintf(stderr,
"\t reason: 'firm_net_profit' board is invalid\n");
14407 case MB_ERR_LOCKED:
14408 fprintf(stderr,
"\t reason: 'firm_net_profit' board is locked\n");
14410 case MB_ERR_MEMALLOC:
14411 fprintf(stderr,
"\t reason: out of memory\n");
14413 case MB_ERR_INTERNAL:
14414 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
14417 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
14480 if(FLAME_firm_net_profit_message_board_read == 1)
14486 if (rc != MB_SUCCESS)
14488 fprintf(stderr,
"ERROR: Could not complete sync of 'firm_net_profit' board\n");
14490 case MB_ERR_INVALID:
14491 fprintf(stderr,
"\t reason: 'firm_net_profit' board is invalid\n");
14493 case MB_ERR_MEMALLOC:
14494 fprintf(stderr,
"\t reason: out of memory\n");
14496 case MB_ERR_INTERNAL:
14497 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
14500 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
14541 if (rc != MB_SUCCESS)
14543 fprintf(stderr,
"ERROR: Could not create Iterator for 'firm_net_profit'\n");
14545 case MB_ERR_INVALID:
14546 fprintf(stderr,
"\t reason: 'firm_net_profit' board is invalid\n");
14548 case MB_ERR_LOCKED:
14549 fprintf(stderr,
"\t reason: 'firm_net_profit' board is locked\n");
14551 case MB_ERR_MEMALLOC:
14552 fprintf(stderr,
"\t reason: out of memory\n");
14554 case MB_ERR_INTERNAL:
14555 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
14560 fprintf(stderr,
"\t MB_Iterator_Create returned error code: %d (see libmboard docs for details)\n", rc);
14577 if (rc != MB_SUCCESS)
14579 fprintf(stderr,
"ERROR: Could not delete 'firm_net_profit' iterator\n");
14581 case MB_ERR_INVALID:
14582 fprintf(stderr,
"\t reason: 'firm_net_profit' iterator is invalid\n");
14584 case MB_ERR_INTERNAL:
14585 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
14588 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
14620 if(FLAME_firm_net_profit_message_board_read == 0)
14628 if (rc != MB_SUCCESS)
14630 fprintf(stderr,
"ERROR: Could not complete sync of 'firm_net_profit' board\n");
14632 case MB_ERR_INVALID:
14633 fprintf(stderr,
"\t reason: 'firm_net_profit' board is invalid\n");
14635 case MB_ERR_MEMALLOC:
14636 fprintf(stderr,
"\t reason: out of memory\n");
14638 case MB_ERR_INTERNAL:
14639 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
14642 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
14656 if (rc != MB_SUCCESS)
14658 fprintf(stderr,
"ERROR: Could not clear 'firm_net_profit' board\n");
14660 case MB_ERR_INVALID:
14661 fprintf(stderr,
"\t reason: 'firm_net_profit' board is invalid\n");
14663 case MB_ERR_LOCKED:
14664 fprintf(stderr,
"\t reason: 'firm_net_profit' board is locked\n");
14666 case MB_ERR_INTERNAL:
14667 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
14670 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
14684 FLAME_debug_count = 0;
14687 { FLAME_debug_count++; }
14690 { FLAME_debug_count++; }
14692 if(FLAME_debug_count != 1)
14694 fprintf(stderr,
"ERROR: A function condition test has failed for agent type 'firm' leaving state 'FirmCreditInsolvencyCheck'\n");
14695 if(FLAME_debug_count > 1)
14696 fprintf(stderr,
"\t reason: there was more than one possible outgoing transition function\n");
14697 if(FLAME_debug_count == 0)
14698 fprintf(stderr,
"\t reason: there was no possible outgoing transition function\n");
14747 if(FLAME_capital_tax_message_board_write == 1)
14754 if (rc != MB_SUCCESS)
14756 fprintf(stderr,
"ERROR: Could not start sync of 'capital_tax' board\n");
14758 case MB_ERR_INVALID:
14759 fprintf(stderr,
"\t reason: 'capital_tax' board is invalid\n");
14761 case MB_ERR_LOCKED:
14762 fprintf(stderr,
"\t reason: 'capital_tax' board is locked\n");
14764 case MB_ERR_MEMALLOC:
14765 fprintf(stderr,
"\t reason: out of memory\n");
14767 case MB_ERR_INTERNAL:
14768 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
14771 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
14782 if(FLAME_household_share_message_board_write == 1)
14789 if (rc != MB_SUCCESS)
14791 fprintf(stderr,
"ERROR: Could not start sync of 'household_share' board\n");
14793 case MB_ERR_INVALID:
14794 fprintf(stderr,
"\t reason: 'household_share' board is invalid\n");
14796 case MB_ERR_LOCKED:
14797 fprintf(stderr,
"\t reason: 'household_share' board is locked\n");
14799 case MB_ERR_MEMALLOC:
14800 fprintf(stderr,
"\t reason: out of memory\n");
14802 case MB_ERR_INTERNAL:
14803 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
14806 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
14862 if(FLAME_firm_bank_insolvent_account_message_board_write == 1)
14869 if (rc != MB_SUCCESS)
14871 fprintf(stderr,
"ERROR: Could not start sync of 'firm_bank_insolvent_account' board\n");
14873 case MB_ERR_INVALID:
14874 fprintf(stderr,
"\t reason: 'firm_bank_insolvent_account' board is invalid\n");
14876 case MB_ERR_LOCKED:
14877 fprintf(stderr,
"\t reason: 'firm_bank_insolvent_account' board is locked\n");
14879 case MB_ERR_MEMALLOC:
14880 fprintf(stderr,
"\t reason: out of memory\n");
14882 case MB_ERR_INTERNAL:
14883 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
14886 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
14897 if(FLAME_loan_writeoff_message_board_write == 1)
14904 if (rc != MB_SUCCESS)
14906 fprintf(stderr,
"ERROR: Could not start sync of 'loan_writeoff' board\n");
14908 case MB_ERR_INVALID:
14909 fprintf(stderr,
"\t reason: 'loan_writeoff' board is invalid\n");
14911 case MB_ERR_LOCKED:
14912 fprintf(stderr,
"\t reason: 'loan_writeoff' board is locked\n");
14914 case MB_ERR_MEMALLOC:
14915 fprintf(stderr,
"\t reason: out of memory\n");
14917 case MB_ERR_INTERNAL:
14918 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
14921 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
14932 if(FLAME_new_entrant_loan_message_board_write == 1)
14939 if (rc != MB_SUCCESS)
14941 fprintf(stderr,
"ERROR: Could not start sync of 'new_entrant_loan' board\n");
14943 case MB_ERR_INVALID:
14944 fprintf(stderr,
"\t reason: 'new_entrant_loan' board is invalid\n");
14946 case MB_ERR_LOCKED:
14947 fprintf(stderr,
"\t reason: 'new_entrant_loan' board is locked\n");
14949 case MB_ERR_MEMALLOC:
14950 fprintf(stderr,
"\t reason: out of memory\n");
14952 case MB_ERR_INTERNAL:
14953 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
14956 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
15022 FLAME_debug_count = 0;
15025 { FLAME_debug_count++; }
15028 { FLAME_debug_count++; }
15030 if(FLAME_debug_count != 1)
15032 fprintf(stderr,
"ERROR: A function condition test has failed for agent type 'equityfund' leaving state 'EFLabourMarket'\n");
15033 if(FLAME_debug_count > 1)
15034 fprintf(stderr,
"\t reason: there was more than one possible outgoing transition function\n");
15035 if(FLAME_debug_count == 0)
15036 fprintf(stderr,
"\t reason: there was no possible outgoing transition function\n");
15178 if(FLAME_firm_bank_insolvent_account_message_board_read == 1)
15184 if (rc != MB_SUCCESS)
15186 fprintf(stderr,
"ERROR: Could not complete sync of 'firm_bank_insolvent_account' board\n");
15188 case MB_ERR_INVALID:
15189 fprintf(stderr,
"\t reason: 'firm_bank_insolvent_account' board is invalid\n");
15191 case MB_ERR_MEMALLOC:
15192 fprintf(stderr,
"\t reason: out of memory\n");
15194 case MB_ERR_INTERNAL:
15195 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
15198 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
15212 if(FLAME_loan_writeoff_message_board_read == 1)
15218 if (rc != MB_SUCCESS)
15220 fprintf(stderr,
"ERROR: Could not complete sync of 'loan_writeoff' board\n");
15222 case MB_ERR_INVALID:
15223 fprintf(stderr,
"\t reason: 'loan_writeoff' board is invalid\n");
15225 case MB_ERR_MEMALLOC:
15226 fprintf(stderr,
"\t reason: out of memory\n");
15228 case MB_ERR_INTERNAL:
15229 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
15232 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
15276 if (rc != MB_SUCCESS)
15278 fprintf(stderr,
"ERROR: Could not create Iterator for 'loan_writeoff'\n");
15280 case MB_ERR_INVALID:
15281 fprintf(stderr,
"\t reason: 'loan_writeoff' board is invalid\n");
15283 case MB_ERR_LOCKED:
15284 fprintf(stderr,
"\t reason: 'loan_writeoff' board is locked\n");
15286 case MB_ERR_MEMALLOC:
15287 fprintf(stderr,
"\t reason: out of memory\n");
15289 case MB_ERR_INTERNAL:
15290 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
15294 fprintf(stderr,
"\t MB_Iterator_CreateFiltered returned error code: %d (see libmboard docs for details)\n", rc);
15315 if (rc != MB_SUCCESS)
15317 fprintf(stderr,
"ERROR: Could not create Iterator for 'firm_bank_insolvent_account'\n");
15319 case MB_ERR_INVALID:
15320 fprintf(stderr,
"\t reason: 'firm_bank_insolvent_account' board is invalid\n");
15322 case MB_ERR_LOCKED:
15323 fprintf(stderr,
"\t reason: 'firm_bank_insolvent_account' board is locked\n");
15325 case MB_ERR_MEMALLOC:
15326 fprintf(stderr,
"\t reason: out of memory\n");
15328 case MB_ERR_INTERNAL:
15329 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
15333 fprintf(stderr,
"\t MB_Iterator_CreateFiltered returned error code: %d (see libmboard docs for details)\n", rc);
15351 if (rc != MB_SUCCESS)
15353 fprintf(stderr,
"ERROR: Could not delete 'loan_writeoff' iterator\n");
15355 case MB_ERR_INVALID:
15356 fprintf(stderr,
"\t reason: 'loan_writeoff' iterator is invalid\n");
15358 case MB_ERR_INTERNAL:
15359 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
15362 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
15373 if (rc != MB_SUCCESS)
15375 fprintf(stderr,
"ERROR: Could not delete 'firm_bank_insolvent_account' iterator\n");
15377 case MB_ERR_INVALID:
15378 fprintf(stderr,
"\t reason: 'firm_bank_insolvent_account' iterator is invalid\n");
15380 case MB_ERR_INTERNAL:
15381 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
15384 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
15412 if(FLAME_household_share_message_board_read == 1)
15418 if (rc != MB_SUCCESS)
15420 fprintf(stderr,
"ERROR: Could not complete sync of 'household_share' board\n");
15422 case MB_ERR_INVALID:
15423 fprintf(stderr,
"\t reason: 'household_share' board is invalid\n");
15425 case MB_ERR_MEMALLOC:
15426 fprintf(stderr,
"\t reason: out of memory\n");
15428 case MB_ERR_INTERNAL:
15429 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
15432 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
15474 if (rc != MB_SUCCESS)
15476 fprintf(stderr,
"ERROR: Could not create Iterator for 'household_share'\n");
15478 case MB_ERR_INVALID:
15479 fprintf(stderr,
"\t reason: 'household_share' board is invalid\n");
15481 case MB_ERR_LOCKED:
15482 fprintf(stderr,
"\t reason: 'household_share' board is locked\n");
15484 case MB_ERR_MEMALLOC:
15485 fprintf(stderr,
"\t reason: out of memory\n");
15487 case MB_ERR_INTERNAL:
15488 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
15493 fprintf(stderr,
"\t MB_Iterator_Create returned error code: %d (see libmboard docs for details)\n", rc);
15510 if (rc != MB_SUCCESS)
15512 fprintf(stderr,
"ERROR: Could not delete 'household_share' iterator\n");
15514 case MB_ERR_INVALID:
15515 fprintf(stderr,
"\t reason: 'household_share' iterator is invalid\n");
15517 case MB_ERR_INTERNAL:
15518 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
15521 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
15549 if(FLAME_capital_tax_message_board_read == 1)
15555 if (rc != MB_SUCCESS)
15557 fprintf(stderr,
"ERROR: Could not complete sync of 'capital_tax' board\n");
15559 case MB_ERR_INVALID:
15560 fprintf(stderr,
"\t reason: 'capital_tax' board is invalid\n");
15562 case MB_ERR_MEMALLOC:
15563 fprintf(stderr,
"\t reason: out of memory\n");
15565 case MB_ERR_INTERNAL:
15566 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
15569 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
15611 if (rc != MB_SUCCESS)
15613 fprintf(stderr,
"ERROR: Could not create Iterator for 'capital_tax'\n");
15615 case MB_ERR_INVALID:
15616 fprintf(stderr,
"\t reason: 'capital_tax' board is invalid\n");
15618 case MB_ERR_LOCKED:
15619 fprintf(stderr,
"\t reason: 'capital_tax' board is locked\n");
15621 case MB_ERR_MEMALLOC:
15622 fprintf(stderr,
"\t reason: out of memory\n");
15624 case MB_ERR_INTERNAL:
15625 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
15630 fprintf(stderr,
"\t MB_Iterator_Create returned error code: %d (see libmboard docs for details)\n", rc);
15647 if (rc != MB_SUCCESS)
15649 fprintf(stderr,
"ERROR: Could not delete 'capital_tax' iterator\n");
15651 case MB_ERR_INVALID:
15652 fprintf(stderr,
"\t reason: 'capital_tax' iterator is invalid\n");
15654 case MB_ERR_INTERNAL:
15655 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
15658 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
15690 if(FLAME_household_share_message_board_read == 0)
15698 if (rc != MB_SUCCESS)
15700 fprintf(stderr,
"ERROR: Could not complete sync of 'household_share' board\n");
15702 case MB_ERR_INVALID:
15703 fprintf(stderr,
"\t reason: 'household_share' board is invalid\n");
15705 case MB_ERR_MEMALLOC:
15706 fprintf(stderr,
"\t reason: out of memory\n");
15708 case MB_ERR_INTERNAL:
15709 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
15712 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
15726 if (rc != MB_SUCCESS)
15728 fprintf(stderr,
"ERROR: Could not clear 'household_share' board\n");
15730 case MB_ERR_INVALID:
15731 fprintf(stderr,
"\t reason: 'household_share' board is invalid\n");
15733 case MB_ERR_LOCKED:
15734 fprintf(stderr,
"\t reason: 'household_share' board is locked\n");
15736 case MB_ERR_INTERNAL:
15737 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
15740 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
15750 if(FLAME_capital_tax_message_board_read == 0)
15758 if (rc != MB_SUCCESS)
15760 fprintf(stderr,
"ERROR: Could not complete sync of 'capital_tax' board\n");
15762 case MB_ERR_INVALID:
15763 fprintf(stderr,
"\t reason: 'capital_tax' board is invalid\n");
15765 case MB_ERR_MEMALLOC:
15766 fprintf(stderr,
"\t reason: out of memory\n");
15768 case MB_ERR_INTERNAL:
15769 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
15772 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
15786 if (rc != MB_SUCCESS)
15788 fprintf(stderr,
"ERROR: Could not clear 'capital_tax' board\n");
15790 case MB_ERR_INVALID:
15791 fprintf(stderr,
"\t reason: 'capital_tax' board is invalid\n");
15793 case MB_ERR_LOCKED:
15794 fprintf(stderr,
"\t reason: 'capital_tax' board is locked\n");
15796 case MB_ERR_INTERNAL:
15797 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
15800 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
15810 if(FLAME_loan_writeoff_message_board_read == 0)
15818 if (rc != MB_SUCCESS)
15820 fprintf(stderr,
"ERROR: Could not complete sync of 'loan_writeoff' board\n");
15822 case MB_ERR_INVALID:
15823 fprintf(stderr,
"\t reason: 'loan_writeoff' board is invalid\n");
15825 case MB_ERR_MEMALLOC:
15826 fprintf(stderr,
"\t reason: out of memory\n");
15828 case MB_ERR_INTERNAL:
15829 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
15832 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
15846 if (rc != MB_SUCCESS)
15848 fprintf(stderr,
"ERROR: Could not clear 'loan_writeoff' board\n");
15850 case MB_ERR_INVALID:
15851 fprintf(stderr,
"\t reason: 'loan_writeoff' board is invalid\n");
15853 case MB_ERR_LOCKED:
15854 fprintf(stderr,
"\t reason: 'loan_writeoff' board is locked\n");
15856 case MB_ERR_INTERNAL:
15857 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
15860 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
15870 if(FLAME_firm_bank_insolvent_account_message_board_read == 0)
15878 if (rc != MB_SUCCESS)
15880 fprintf(stderr,
"ERROR: Could not complete sync of 'firm_bank_insolvent_account' board\n");
15882 case MB_ERR_INVALID:
15883 fprintf(stderr,
"\t reason: 'firm_bank_insolvent_account' board is invalid\n");
15885 case MB_ERR_MEMALLOC:
15886 fprintf(stderr,
"\t reason: out of memory\n");
15888 case MB_ERR_INTERNAL:
15889 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
15892 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
15906 if (rc != MB_SUCCESS)
15908 fprintf(stderr,
"ERROR: Could not clear 'firm_bank_insolvent_account' board\n");
15910 case MB_ERR_INVALID:
15911 fprintf(stderr,
"\t reason: 'firm_bank_insolvent_account' board is invalid\n");
15913 case MB_ERR_LOCKED:
15914 fprintf(stderr,
"\t reason: 'firm_bank_insolvent_account' board is locked\n");
15916 case MB_ERR_INTERNAL:
15917 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
15920 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
15934 FLAME_debug_count = 0;
15937 { FLAME_debug_count++; }
15940 { FLAME_debug_count++; }
15942 if(FLAME_debug_count != 1)
15944 fprintf(stderr,
"ERROR: A function condition test has failed for agent type 'firm' leaving state 'FirmProductionSkip'\n");
15945 if(FLAME_debug_count > 1)
15946 fprintf(stderr,
"\t reason: there was more than one possible outgoing transition function\n");
15947 if(FLAME_debug_count == 0)
15948 fprintf(stderr,
"\t reason: there was no possible outgoing transition function\n");
15957 FLAME_debug_count = 0;
15960 { FLAME_debug_count++; }
15963 { FLAME_debug_count++; }
15965 if(FLAME_debug_count != 1)
15967 fprintf(stderr,
"ERROR: A function condition test has failed for agent type 'government' leaving state 'GovernmentMonthly'\n");
15968 if(FLAME_debug_count > 1)
15969 fprintf(stderr,
"\t reason: there was more than one possible outgoing transition function\n");
15970 if(FLAME_debug_count == 0)
15971 fprintf(stderr,
"\t reason: there was no possible outgoing transition function\n");
16021 if(FLAME_general_benefit_message_board_write == 1)
16028 if (rc != MB_SUCCESS)
16030 fprintf(stderr,
"ERROR: Could not start sync of 'general_benefit' board\n");
16032 case MB_ERR_INVALID:
16033 fprintf(stderr,
"\t reason: 'general_benefit' board is invalid\n");
16035 case MB_ERR_LOCKED:
16036 fprintf(stderr,
"\t reason: 'general_benefit' board is locked\n");
16038 case MB_ERR_MEMALLOC:
16039 fprintf(stderr,
"\t reason: out of memory\n");
16041 case MB_ERR_INTERNAL:
16042 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
16045 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
16237 if(FLAME_new_entrant_loan_message_board_read == 1)
16243 if (rc != MB_SUCCESS)
16245 fprintf(stderr,
"ERROR: Could not complete sync of 'new_entrant_loan' board\n");
16247 case MB_ERR_INVALID:
16248 fprintf(stderr,
"\t reason: 'new_entrant_loan' board is invalid\n");
16250 case MB_ERR_MEMALLOC:
16251 fprintf(stderr,
"\t reason: out of memory\n");
16253 case MB_ERR_INTERNAL:
16254 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
16257 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
16301 if (rc != MB_SUCCESS)
16303 fprintf(stderr,
"ERROR: Could not create Iterator for 'new_entrant_loan'\n");
16305 case MB_ERR_INVALID:
16306 fprintf(stderr,
"\t reason: 'new_entrant_loan' board is invalid\n");
16308 case MB_ERR_LOCKED:
16309 fprintf(stderr,
"\t reason: 'new_entrant_loan' board is locked\n");
16311 case MB_ERR_MEMALLOC:
16312 fprintf(stderr,
"\t reason: out of memory\n");
16314 case MB_ERR_INTERNAL:
16315 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
16319 fprintf(stderr,
"\t MB_Iterator_CreateFiltered returned error code: %d (see libmboard docs for details)\n", rc);
16337 if (rc != MB_SUCCESS)
16339 fprintf(stderr,
"ERROR: Could not delete 'new_entrant_loan' iterator\n");
16341 case MB_ERR_INVALID:
16342 fprintf(stderr,
"\t reason: 'new_entrant_loan' iterator is invalid\n");
16344 case MB_ERR_INTERNAL:
16345 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
16348 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
16380 if(FLAME_new_entrant_loan_message_board_read == 0)
16388 if (rc != MB_SUCCESS)
16390 fprintf(stderr,
"ERROR: Could not complete sync of 'new_entrant_loan' board\n");
16392 case MB_ERR_INVALID:
16393 fprintf(stderr,
"\t reason: 'new_entrant_loan' board is invalid\n");
16395 case MB_ERR_MEMALLOC:
16396 fprintf(stderr,
"\t reason: out of memory\n");
16398 case MB_ERR_INTERNAL:
16399 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
16402 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
16416 if (rc != MB_SUCCESS)
16418 fprintf(stderr,
"ERROR: Could not clear 'new_entrant_loan' board\n");
16420 case MB_ERR_INVALID:
16421 fprintf(stderr,
"\t reason: 'new_entrant_loan' board is invalid\n");
16423 case MB_ERR_LOCKED:
16424 fprintf(stderr,
"\t reason: 'new_entrant_loan' board is locked\n");
16426 case MB_ERR_INTERNAL:
16427 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
16430 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
16444 FLAME_debug_count = 0;
16447 { FLAME_debug_count++; }
16450 { FLAME_debug_count++; }
16452 if(FLAME_debug_count != 1)
16454 fprintf(stderr,
"ERROR: A function condition test has failed for agent type 'household' leaving state 'HHCreditMonthly'\n");
16455 if(FLAME_debug_count > 1)
16456 fprintf(stderr,
"\t reason: there was more than one possible outgoing transition function\n");
16457 if(FLAME_debug_count == 0)
16458 fprintf(stderr,
"\t reason: there was no possible outgoing transition function\n");
16507 if(FLAME_unemployment_benefit_message_board_write == 1)
16514 if (rc != MB_SUCCESS)
16516 fprintf(stderr,
"ERROR: Could not start sync of 'unemployment_benefit' board\n");
16518 case MB_ERR_INVALID:
16519 fprintf(stderr,
"\t reason: 'unemployment_benefit' board is invalid\n");
16521 case MB_ERR_LOCKED:
16522 fprintf(stderr,
"\t reason: 'unemployment_benefit' board is locked\n");
16524 case MB_ERR_MEMALLOC:
16525 fprintf(stderr,
"\t reason: out of memory\n");
16527 case MB_ERR_INTERNAL:
16528 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
16531 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
16679 if(FLAME_firm_bank_interest_on_loan_message_board_read == 1)
16685 if (rc != MB_SUCCESS)
16687 fprintf(stderr,
"ERROR: Could not complete sync of 'firm_bank_interest_on_loan' board\n");
16689 case MB_ERR_INVALID:
16690 fprintf(stderr,
"\t reason: 'firm_bank_interest_on_loan' board is invalid\n");
16692 case MB_ERR_MEMALLOC:
16693 fprintf(stderr,
"\t reason: out of memory\n");
16695 case MB_ERR_INTERNAL:
16696 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
16699 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
16743 if (rc != MB_SUCCESS)
16745 fprintf(stderr,
"ERROR: Could not create Iterator for 'firm_bank_interest_on_loan'\n");
16747 case MB_ERR_INVALID:
16748 fprintf(stderr,
"\t reason: 'firm_bank_interest_on_loan' board is invalid\n");
16750 case MB_ERR_LOCKED:
16751 fprintf(stderr,
"\t reason: 'firm_bank_interest_on_loan' board is locked\n");
16753 case MB_ERR_MEMALLOC:
16754 fprintf(stderr,
"\t reason: out of memory\n");
16756 case MB_ERR_INTERNAL:
16757 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
16761 fprintf(stderr,
"\t MB_Iterator_CreateFiltered returned error code: %d (see libmboard docs for details)\n", rc);
16779 if (rc != MB_SUCCESS)
16781 fprintf(stderr,
"ERROR: Could not delete 'firm_bank_interest_on_loan' iterator\n");
16783 case MB_ERR_INVALID:
16784 fprintf(stderr,
"\t reason: 'firm_bank_interest_on_loan' iterator is invalid\n");
16786 case MB_ERR_INTERNAL:
16787 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
16790 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
16822 if(FLAME_firm_bank_interest_on_loan_message_board_read == 0)
16830 if (rc != MB_SUCCESS)
16832 fprintf(stderr,
"ERROR: Could not complete sync of 'firm_bank_interest_on_loan' board\n");
16834 case MB_ERR_INVALID:
16835 fprintf(stderr,
"\t reason: 'firm_bank_interest_on_loan' board is invalid\n");
16837 case MB_ERR_MEMALLOC:
16838 fprintf(stderr,
"\t reason: out of memory\n");
16840 case MB_ERR_INTERNAL:
16841 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
16844 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
16858 if (rc != MB_SUCCESS)
16860 fprintf(stderr,
"ERROR: Could not clear 'firm_bank_interest_on_loan' board\n");
16862 case MB_ERR_INVALID:
16863 fprintf(stderr,
"\t reason: 'firm_bank_interest_on_loan' board is invalid\n");
16865 case MB_ERR_LOCKED:
16866 fprintf(stderr,
"\t reason: 'firm_bank_interest_on_loan' board is locked\n");
16868 case MB_ERR_INTERNAL:
16869 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
16872 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
16886 FLAME_debug_count = 0;
16889 { FLAME_debug_count++; }
16892 { FLAME_debug_count++; }
16894 if(FLAME_debug_count != 1)
16896 fprintf(stderr,
"ERROR: A function condition test has failed for agent type 'firm' leaving state 'FirmProductionRegular'\n");
16897 if(FLAME_debug_count > 1)
16898 fprintf(stderr,
"\t reason: there was more than one possible outgoing transition function\n");
16899 if(FLAME_debug_count == 0)
16900 fprintf(stderr,
"\t reason: there was no possible outgoing transition function\n");
16909 FLAME_debug_count = 0;
16912 { FLAME_debug_count++; }
16915 { FLAME_debug_count++; }
16917 if(FLAME_debug_count != 1)
16919 fprintf(stderr,
"ERROR: A function condition test has failed for agent type 'firm' leaving state 'FirmProductionConstructor'\n");
16920 if(FLAME_debug_count > 1)
16921 fprintf(stderr,
"\t reason: there was more than one possible outgoing transition function\n");
16922 if(FLAME_debug_count == 0)
16923 fprintf(stderr,
"\t reason: there was no possible outgoing transition function\n");
16932 FLAME_debug_count = 0;
16935 { FLAME_debug_count++; }
16938 { FLAME_debug_count++; }
16940 if(FLAME_debug_count != 1)
16942 fprintf(stderr,
"ERROR: A function condition test has failed for agent type 'bank' leaving state 'BankHousingMarket'\n");
16943 if(FLAME_debug_count > 1)
16944 fprintf(stderr,
"\t reason: there was more than one possible outgoing transition function\n");
16945 if(FLAME_debug_count == 0)
16946 fprintf(stderr,
"\t reason: there was no possible outgoing transition function\n");
16996 if(FLAME_bank_reagency_credibility_message_board_write == 1)
17003 if (rc != MB_SUCCESS)
17005 fprintf(stderr,
"ERROR: Could not start sync of 'bank_reagency_credibility' board\n");
17007 case MB_ERR_INVALID:
17008 fprintf(stderr,
"\t reason: 'bank_reagency_credibility' board is invalid\n");
17010 case MB_ERR_LOCKED:
17011 fprintf(stderr,
"\t reason: 'bank_reagency_credibility' board is locked\n");
17013 case MB_ERR_MEMALLOC:
17014 fprintf(stderr,
"\t reason: out of memory\n");
17016 case MB_ERR_INTERNAL:
17017 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
17020 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
17258 if(FLAME_general_benefit_message_board_read == 1)
17264 if (rc != MB_SUCCESS)
17266 fprintf(stderr,
"ERROR: Could not complete sync of 'general_benefit' board\n");
17268 case MB_ERR_INVALID:
17269 fprintf(stderr,
"\t reason: 'general_benefit' board is invalid\n");
17271 case MB_ERR_MEMALLOC:
17272 fprintf(stderr,
"\t reason: out of memory\n");
17274 case MB_ERR_INTERNAL:
17275 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
17278 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
17292 if(FLAME_unemployment_benefit_message_board_read == 1)
17298 if (rc != MB_SUCCESS)
17300 fprintf(stderr,
"ERROR: Could not complete sync of 'unemployment_benefit' board\n");
17302 case MB_ERR_INVALID:
17303 fprintf(stderr,
"\t reason: 'unemployment_benefit' board is invalid\n");
17305 case MB_ERR_MEMALLOC:
17306 fprintf(stderr,
"\t reason: out of memory\n");
17308 case MB_ERR_INTERNAL:
17309 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
17312 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
17354 if (rc != MB_SUCCESS)
17356 fprintf(stderr,
"ERROR: Could not create Iterator for 'general_benefit'\n");
17358 case MB_ERR_INVALID:
17359 fprintf(stderr,
"\t reason: 'general_benefit' board is invalid\n");
17361 case MB_ERR_LOCKED:
17362 fprintf(stderr,
"\t reason: 'general_benefit' board is locked\n");
17364 case MB_ERR_MEMALLOC:
17365 fprintf(stderr,
"\t reason: out of memory\n");
17367 case MB_ERR_INTERNAL:
17368 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
17373 fprintf(stderr,
"\t MB_Iterator_Create returned error code: %d (see libmboard docs for details)\n", rc);
17390 if (rc != MB_SUCCESS)
17392 fprintf(stderr,
"ERROR: Could not create Iterator for 'unemployment_benefit'\n");
17394 case MB_ERR_INVALID:
17395 fprintf(stderr,
"\t reason: 'unemployment_benefit' board is invalid\n");
17397 case MB_ERR_LOCKED:
17398 fprintf(stderr,
"\t reason: 'unemployment_benefit' board is locked\n");
17400 case MB_ERR_MEMALLOC:
17401 fprintf(stderr,
"\t reason: out of memory\n");
17403 case MB_ERR_INTERNAL:
17404 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
17409 fprintf(stderr,
"\t MB_Iterator_Create returned error code: %d (see libmboard docs for details)\n", rc);
17426 if (rc != MB_SUCCESS)
17428 fprintf(stderr,
"ERROR: Could not delete 'general_benefit' iterator\n");
17430 case MB_ERR_INVALID:
17431 fprintf(stderr,
"\t reason: 'general_benefit' iterator is invalid\n");
17433 case MB_ERR_INTERNAL:
17434 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
17437 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
17448 if (rc != MB_SUCCESS)
17450 fprintf(stderr,
"ERROR: Could not delete 'unemployment_benefit' iterator\n");
17452 case MB_ERR_INVALID:
17453 fprintf(stderr,
"\t reason: 'unemployment_benefit' iterator is invalid\n");
17455 case MB_ERR_INTERNAL:
17456 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
17459 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
17491 if(FLAME_unemployment_benefit_message_board_read == 0)
17499 if (rc != MB_SUCCESS)
17501 fprintf(stderr,
"ERROR: Could not complete sync of 'unemployment_benefit' board\n");
17503 case MB_ERR_INVALID:
17504 fprintf(stderr,
"\t reason: 'unemployment_benefit' board is invalid\n");
17506 case MB_ERR_MEMALLOC:
17507 fprintf(stderr,
"\t reason: out of memory\n");
17509 case MB_ERR_INTERNAL:
17510 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
17513 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
17527 if (rc != MB_SUCCESS)
17529 fprintf(stderr,
"ERROR: Could not clear 'unemployment_benefit' board\n");
17531 case MB_ERR_INVALID:
17532 fprintf(stderr,
"\t reason: 'unemployment_benefit' board is invalid\n");
17534 case MB_ERR_LOCKED:
17535 fprintf(stderr,
"\t reason: 'unemployment_benefit' board is locked\n");
17537 case MB_ERR_INTERNAL:
17538 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
17541 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
17551 if(FLAME_general_benefit_message_board_read == 0)
17559 if (rc != MB_SUCCESS)
17561 fprintf(stderr,
"ERROR: Could not complete sync of 'general_benefit' board\n");
17563 case MB_ERR_INVALID:
17564 fprintf(stderr,
"\t reason: 'general_benefit' board is invalid\n");
17566 case MB_ERR_MEMALLOC:
17567 fprintf(stderr,
"\t reason: out of memory\n");
17569 case MB_ERR_INTERNAL:
17570 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
17573 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
17587 if (rc != MB_SUCCESS)
17589 fprintf(stderr,
"ERROR: Could not clear 'general_benefit' board\n");
17591 case MB_ERR_INVALID:
17592 fprintf(stderr,
"\t reason: 'general_benefit' board is invalid\n");
17594 case MB_ERR_LOCKED:
17595 fprintf(stderr,
"\t reason: 'general_benefit' board is locked\n");
17597 case MB_ERR_INTERNAL:
17598 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
17601 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
17615 FLAME_debug_count = 0;
17618 { FLAME_debug_count++; }
17621 { FLAME_debug_count++; }
17623 if(FLAME_debug_count != 1)
17625 fprintf(stderr,
"ERROR: A function condition test has failed for agent type 'household' leaving state 'HHLabourStart'\n");
17626 if(FLAME_debug_count > 1)
17627 fprintf(stderr,
"\t reason: there was more than one possible outgoing transition function\n");
17628 if(FLAME_debug_count == 0)
17629 fprintf(stderr,
"\t reason: there was no possible outgoing transition function\n");
17827 FLAME_debug_count = 0;
17830 { FLAME_debug_count++; }
17833 { FLAME_debug_count++; }
17835 if(FLAME_debug_count != 1)
17837 fprintf(stderr,
"ERROR: A function condition test has failed for agent type 'firm' leaving state 'FirmLabourStart'\n");
17838 if(FLAME_debug_count > 1)
17839 fprintf(stderr,
"\t reason: there was more than one possible outgoing transition function\n");
17840 if(FLAME_debug_count == 0)
17841 fprintf(stderr,
"\t reason: there was no possible outgoing transition function\n");
17946 FLAME_debug_count = 0;
17949 { FLAME_debug_count++; }
17952 { FLAME_debug_count++; }
17955 { FLAME_debug_count++; }
17957 if(FLAME_debug_count != 1)
17959 fprintf(stderr,
"ERROR: A function condition test has failed for agent type 'firm' leaving state 'FirmLabourStage1'\n");
17960 if(FLAME_debug_count > 1)
17961 fprintf(stderr,
"\t reason: there was more than one possible outgoing transition function\n");
17962 if(FLAME_debug_count == 0)
17963 fprintf(stderr,
"\t reason: there was no possible outgoing transition function\n");
18013 if(FLAME_fired_message_board_write == 1)
18020 if (rc != MB_SUCCESS)
18022 fprintf(stderr,
"ERROR: Could not start sync of 'fired' board\n");
18024 case MB_ERR_INVALID:
18025 fprintf(stderr,
"\t reason: 'fired' board is invalid\n");
18027 case MB_ERR_LOCKED:
18028 fprintf(stderr,
"\t reason: 'fired' board is locked\n");
18030 case MB_ERR_MEMALLOC:
18031 fprintf(stderr,
"\t reason: out of memory\n");
18033 case MB_ERR_INTERNAL:
18034 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
18037 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
18093 if(FLAME_vacancy_stage1_message_board_write == 1)
18100 if (rc != MB_SUCCESS)
18102 fprintf(stderr,
"ERROR: Could not start sync of 'vacancy_stage1' board\n");
18104 case MB_ERR_INVALID:
18105 fprintf(stderr,
"\t reason: 'vacancy_stage1' board is invalid\n");
18107 case MB_ERR_LOCKED:
18108 fprintf(stderr,
"\t reason: 'vacancy_stage1' board is locked\n");
18110 case MB_ERR_MEMALLOC:
18111 fprintf(stderr,
"\t reason: out of memory\n");
18113 case MB_ERR_INTERNAL:
18114 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
18117 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
18181 if(FLAME_fired_message_board_read == 1)
18184 rc = MB_SyncComplete(
b_fired);
18187 if (rc != MB_SUCCESS)
18189 fprintf(stderr,
"ERROR: Could not complete sync of 'fired' board\n");
18191 case MB_ERR_INVALID:
18192 fprintf(stderr,
"\t reason: 'fired' board is invalid\n");
18194 case MB_ERR_MEMALLOC:
18195 fprintf(stderr,
"\t reason: out of memory\n");
18197 case MB_ERR_INTERNAL:
18198 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
18201 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
18246 if (rc != MB_SUCCESS)
18248 fprintf(stderr,
"ERROR: Could not create Iterator for 'fired'\n");
18250 case MB_ERR_INVALID:
18251 fprintf(stderr,
"\t reason: 'fired' board is invalid\n");
18253 case MB_ERR_LOCKED:
18254 fprintf(stderr,
"\t reason: 'fired' board is locked\n");
18256 case MB_ERR_MEMALLOC:
18257 fprintf(stderr,
"\t reason: out of memory\n");
18259 case MB_ERR_INTERNAL:
18260 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
18264 fprintf(stderr,
"\t MB_Iterator_CreateFiltered returned error code: %d (see libmboard docs for details)\n", rc);
18280 rc = MB_Iterator_Delete(&
i_fired);
18282 if (rc != MB_SUCCESS)
18284 fprintf(stderr,
"ERROR: Could not delete 'fired' iterator\n");
18286 case MB_ERR_INVALID:
18287 fprintf(stderr,
"\t reason: 'fired' iterator is invalid\n");
18289 case MB_ERR_INTERNAL:
18290 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
18293 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
18325 if(FLAME_fired_message_board_read == 0)
18330 rc = MB_SyncComplete(
b_fired);
18333 if (rc != MB_SUCCESS)
18335 fprintf(stderr,
"ERROR: Could not complete sync of 'fired' board\n");
18337 case MB_ERR_INVALID:
18338 fprintf(stderr,
"\t reason: 'fired' board is invalid\n");
18340 case MB_ERR_MEMALLOC:
18341 fprintf(stderr,
"\t reason: out of memory\n");
18343 case MB_ERR_INTERNAL:
18344 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
18347 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
18361 if (rc != MB_SUCCESS)
18363 fprintf(stderr,
"ERROR: Could not clear 'fired' board\n");
18365 case MB_ERR_INVALID:
18366 fprintf(stderr,
"\t reason: 'fired' board is invalid\n");
18368 case MB_ERR_LOCKED:
18369 fprintf(stderr,
"\t reason: 'fired' board is locked\n");
18371 case MB_ERR_INTERNAL:
18372 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
18375 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
18389 FLAME_debug_count = 0;
18392 { FLAME_debug_count++; }
18395 { FLAME_debug_count++; }
18397 if(FLAME_debug_count != 1)
18399 fprintf(stderr,
"ERROR: A function condition test has failed for agent type 'household' leaving state 'HHLabourStage1'\n");
18400 if(FLAME_debug_count > 1)
18401 fprintf(stderr,
"\t reason: there was more than one possible outgoing transition function\n");
18402 if(FLAME_debug_count == 0)
18403 fprintf(stderr,
"\t reason: there was no possible outgoing transition function\n");
18453 if(FLAME_job_application_stage1_message_board_write == 1)
18460 if (rc != MB_SUCCESS)
18462 fprintf(stderr,
"ERROR: Could not start sync of 'job_application_stage1' board\n");
18464 case MB_ERR_INVALID:
18465 fprintf(stderr,
"\t reason: 'job_application_stage1' board is invalid\n");
18467 case MB_ERR_LOCKED:
18468 fprintf(stderr,
"\t reason: 'job_application_stage1' board is locked\n");
18470 case MB_ERR_MEMALLOC:
18471 fprintf(stderr,
"\t reason: out of memory\n");
18473 case MB_ERR_INTERNAL:
18474 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
18477 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
18583 if(FLAME_job_application_stage2_message_board_write == 1)
18590 if (rc != MB_SUCCESS)
18592 fprintf(stderr,
"ERROR: Could not start sync of 'job_application_stage2' board\n");
18594 case MB_ERR_INVALID:
18595 fprintf(stderr,
"\t reason: 'job_application_stage2' board is invalid\n");
18597 case MB_ERR_LOCKED:
18598 fprintf(stderr,
"\t reason: 'job_application_stage2' board is locked\n");
18600 case MB_ERR_MEMALLOC:
18601 fprintf(stderr,
"\t reason: out of memory\n");
18603 case MB_ERR_INTERNAL:
18604 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
18607 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
18620 if(FLAME_job_application_stage1_message_board_read == 1)
18626 if (rc != MB_SUCCESS)
18628 fprintf(stderr,
"ERROR: Could not complete sync of 'job_application_stage1' board\n");
18630 case MB_ERR_INVALID:
18631 fprintf(stderr,
"\t reason: 'job_application_stage1' board is invalid\n");
18633 case MB_ERR_MEMALLOC:
18634 fprintf(stderr,
"\t reason: out of memory\n");
18636 case MB_ERR_INTERNAL:
18637 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
18640 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
18654 if(FLAME_vacancy_stage1_message_board_read == 1)
18660 if (rc != MB_SUCCESS)
18662 fprintf(stderr,
"ERROR: Could not complete sync of 'vacancy_stage1' board\n");
18664 case MB_ERR_INVALID:
18665 fprintf(stderr,
"\t reason: 'vacancy_stage1' board is invalid\n");
18667 case MB_ERR_MEMALLOC:
18668 fprintf(stderr,
"\t reason: out of memory\n");
18670 case MB_ERR_INTERNAL:
18671 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
18674 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
18716 if (rc != MB_SUCCESS)
18718 fprintf(stderr,
"ERROR: Could not create Iterator for 'vacancy_stage1'\n");
18720 case MB_ERR_INVALID:
18721 fprintf(stderr,
"\t reason: 'vacancy_stage1' board is invalid\n");
18723 case MB_ERR_LOCKED:
18724 fprintf(stderr,
"\t reason: 'vacancy_stage1' board is locked\n");
18726 case MB_ERR_MEMALLOC:
18727 fprintf(stderr,
"\t reason: out of memory\n");
18729 case MB_ERR_INTERNAL:
18730 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
18735 fprintf(stderr,
"\t MB_Iterator_Create returned error code: %d (see libmboard docs for details)\n", rc);
18752 if (rc != MB_SUCCESS)
18754 fprintf(stderr,
"ERROR: Could not create Iterator for 'job_application_stage1'\n");
18756 case MB_ERR_INVALID:
18757 fprintf(stderr,
"\t reason: 'job_application_stage1' board is invalid\n");
18759 case MB_ERR_LOCKED:
18760 fprintf(stderr,
"\t reason: 'job_application_stage1' board is locked\n");
18762 case MB_ERR_MEMALLOC:
18763 fprintf(stderr,
"\t reason: out of memory\n");
18765 case MB_ERR_INTERNAL:
18766 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
18771 fprintf(stderr,
"\t MB_Iterator_Create returned error code: %d (see libmboard docs for details)\n", rc);
18788 if (rc != MB_SUCCESS)
18790 fprintf(stderr,
"ERROR: Could not delete 'vacancy_stage1' iterator\n");
18792 case MB_ERR_INVALID:
18793 fprintf(stderr,
"\t reason: 'vacancy_stage1' iterator is invalid\n");
18795 case MB_ERR_INTERNAL:
18796 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
18799 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
18810 if (rc != MB_SUCCESS)
18812 fprintf(stderr,
"ERROR: Could not delete 'job_application_stage1' iterator\n");
18814 case MB_ERR_INVALID:
18815 fprintf(stderr,
"\t reason: 'job_application_stage1' iterator is invalid\n");
18817 case MB_ERR_INTERNAL:
18818 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
18821 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
18847 if(FLAME_job_match_stage1_message_board_write == 1)
18854 if (rc != MB_SUCCESS)
18856 fprintf(stderr,
"ERROR: Could not start sync of 'job_match_stage1' board\n");
18858 case MB_ERR_INVALID:
18859 fprintf(stderr,
"\t reason: 'job_match_stage1' board is invalid\n");
18861 case MB_ERR_LOCKED:
18862 fprintf(stderr,
"\t reason: 'job_match_stage1' board is locked\n");
18864 case MB_ERR_MEMALLOC:
18865 fprintf(stderr,
"\t reason: out of memory\n");
18867 case MB_ERR_INTERNAL:
18868 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
18871 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
18888 if(FLAME_vacancy_stage1_message_board_read == 0)
18896 if (rc != MB_SUCCESS)
18898 fprintf(stderr,
"ERROR: Could not complete sync of 'vacancy_stage1' board\n");
18900 case MB_ERR_INVALID:
18901 fprintf(stderr,
"\t reason: 'vacancy_stage1' board is invalid\n");
18903 case MB_ERR_MEMALLOC:
18904 fprintf(stderr,
"\t reason: out of memory\n");
18906 case MB_ERR_INTERNAL:
18907 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
18910 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
18924 if (rc != MB_SUCCESS)
18926 fprintf(stderr,
"ERROR: Could not clear 'vacancy_stage1' board\n");
18928 case MB_ERR_INVALID:
18929 fprintf(stderr,
"\t reason: 'vacancy_stage1' board is invalid\n");
18931 case MB_ERR_LOCKED:
18932 fprintf(stderr,
"\t reason: 'vacancy_stage1' board is locked\n");
18934 case MB_ERR_INTERNAL:
18935 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
18938 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
18948 if(FLAME_job_application_stage1_message_board_read == 0)
18956 if (rc != MB_SUCCESS)
18958 fprintf(stderr,
"ERROR: Could not complete sync of 'job_application_stage1' board\n");
18960 case MB_ERR_INVALID:
18961 fprintf(stderr,
"\t reason: 'job_application_stage1' board is invalid\n");
18963 case MB_ERR_MEMALLOC:
18964 fprintf(stderr,
"\t reason: out of memory\n");
18966 case MB_ERR_INTERNAL:
18967 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
18970 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
18984 if (rc != MB_SUCCESS)
18986 fprintf(stderr,
"ERROR: Could not clear 'job_application_stage1' board\n");
18988 case MB_ERR_INVALID:
18989 fprintf(stderr,
"\t reason: 'job_application_stage1' board is invalid\n");
18991 case MB_ERR_LOCKED:
18992 fprintf(stderr,
"\t reason: 'job_application_stage1' board is locked\n");
18994 case MB_ERR_INTERNAL:
18995 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
18998 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
19010 if(FLAME_job_match_stage1_message_board_read == 1)
19016 if (rc != MB_SUCCESS)
19018 fprintf(stderr,
"ERROR: Could not complete sync of 'job_match_stage1' board\n");
19020 case MB_ERR_INVALID:
19021 fprintf(stderr,
"\t reason: 'job_match_stage1' board is invalid\n");
19023 case MB_ERR_MEMALLOC:
19024 fprintf(stderr,
"\t reason: out of memory\n");
19026 case MB_ERR_INTERNAL:
19027 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
19030 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
19074 if (rc != MB_SUCCESS)
19076 fprintf(stderr,
"ERROR: Could not create Iterator for 'job_match_stage1'\n");
19078 case MB_ERR_INVALID:
19079 fprintf(stderr,
"\t reason: 'job_match_stage1' board is invalid\n");
19081 case MB_ERR_LOCKED:
19082 fprintf(stderr,
"\t reason: 'job_match_stage1' board is locked\n");
19084 case MB_ERR_MEMALLOC:
19085 fprintf(stderr,
"\t reason: out of memory\n");
19087 case MB_ERR_INTERNAL:
19088 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
19092 fprintf(stderr,
"\t MB_Iterator_CreateFiltered returned error code: %d (see libmboard docs for details)\n", rc);
19110 if (rc != MB_SUCCESS)
19112 fprintf(stderr,
"ERROR: Could not delete 'job_match_stage1' iterator\n");
19114 case MB_ERR_INVALID:
19115 fprintf(stderr,
"\t reason: 'job_match_stage1' iterator is invalid\n");
19117 case MB_ERR_INTERNAL:
19118 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
19121 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
19147 if(FLAME_job_change_message_board_write == 1)
19154 if (rc != MB_SUCCESS)
19156 fprintf(stderr,
"ERROR: Could not start sync of 'job_change' board\n");
19158 case MB_ERR_INVALID:
19159 fprintf(stderr,
"\t reason: 'job_change' board is invalid\n");
19161 case MB_ERR_LOCKED:
19162 fprintf(stderr,
"\t reason: 'job_change' board is locked\n");
19164 case MB_ERR_MEMALLOC:
19165 fprintf(stderr,
"\t reason: out of memory\n");
19167 case MB_ERR_INTERNAL:
19168 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
19171 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
19214 if (rc != MB_SUCCESS)
19216 fprintf(stderr,
"ERROR: Could not create Iterator for 'job_match_stage1'\n");
19218 case MB_ERR_INVALID:
19219 fprintf(stderr,
"\t reason: 'job_match_stage1' board is invalid\n");
19221 case MB_ERR_LOCKED:
19222 fprintf(stderr,
"\t reason: 'job_match_stage1' board is locked\n");
19224 case MB_ERR_MEMALLOC:
19225 fprintf(stderr,
"\t reason: out of memory\n");
19227 case MB_ERR_INTERNAL:
19228 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
19232 fprintf(stderr,
"\t MB_Iterator_CreateFiltered returned error code: %d (see libmboard docs for details)\n", rc);
19250 if (rc != MB_SUCCESS)
19252 fprintf(stderr,
"ERROR: Could not delete 'job_match_stage1' iterator\n");
19254 case MB_ERR_INVALID:
19255 fprintf(stderr,
"\t reason: 'job_match_stage1' iterator is invalid\n");
19257 case MB_ERR_INTERNAL:
19258 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
19261 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
19293 if(FLAME_job_match_stage1_message_board_read == 0)
19301 if (rc != MB_SUCCESS)
19303 fprintf(stderr,
"ERROR: Could not complete sync of 'job_match_stage1' board\n");
19305 case MB_ERR_INVALID:
19306 fprintf(stderr,
"\t reason: 'job_match_stage1' board is invalid\n");
19308 case MB_ERR_MEMALLOC:
19309 fprintf(stderr,
"\t reason: out of memory\n");
19311 case MB_ERR_INTERNAL:
19312 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
19315 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
19329 if (rc != MB_SUCCESS)
19331 fprintf(stderr,
"ERROR: Could not clear 'job_match_stage1' board\n");
19333 case MB_ERR_INVALID:
19334 fprintf(stderr,
"\t reason: 'job_match_stage1' board is invalid\n");
19336 case MB_ERR_LOCKED:
19337 fprintf(stderr,
"\t reason: 'job_match_stage1' board is locked\n");
19339 case MB_ERR_INTERNAL:
19340 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
19343 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
19355 if(FLAME_job_change_message_board_read == 1)
19361 if (rc != MB_SUCCESS)
19363 fprintf(stderr,
"ERROR: Could not complete sync of 'job_change' board\n");
19365 case MB_ERR_INVALID:
19366 fprintf(stderr,
"\t reason: 'job_change' board is invalid\n");
19368 case MB_ERR_MEMALLOC:
19369 fprintf(stderr,
"\t reason: out of memory\n");
19371 case MB_ERR_INTERNAL:
19372 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
19375 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
19419 if (rc != MB_SUCCESS)
19421 fprintf(stderr,
"ERROR: Could not create Iterator for 'job_change'\n");
19423 case MB_ERR_INVALID:
19424 fprintf(stderr,
"\t reason: 'job_change' board is invalid\n");
19426 case MB_ERR_LOCKED:
19427 fprintf(stderr,
"\t reason: 'job_change' board is locked\n");
19429 case MB_ERR_MEMALLOC:
19430 fprintf(stderr,
"\t reason: out of memory\n");
19432 case MB_ERR_INTERNAL:
19433 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
19437 fprintf(stderr,
"\t MB_Iterator_CreateFiltered returned error code: %d (see libmboard docs for details)\n", rc);
19455 if (rc != MB_SUCCESS)
19457 fprintf(stderr,
"ERROR: Could not delete 'job_change' iterator\n");
19459 case MB_ERR_INVALID:
19460 fprintf(stderr,
"\t reason: 'job_change' iterator is invalid\n");
19462 case MB_ERR_INTERNAL:
19463 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
19466 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
19498 if(FLAME_job_change_message_board_read == 0)
19506 if (rc != MB_SUCCESS)
19508 fprintf(stderr,
"ERROR: Could not complete sync of 'job_change' board\n");
19510 case MB_ERR_INVALID:
19511 fprintf(stderr,
"\t reason: 'job_change' board is invalid\n");
19513 case MB_ERR_MEMALLOC:
19514 fprintf(stderr,
"\t reason: out of memory\n");
19516 case MB_ERR_INTERNAL:
19517 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
19520 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
19534 if (rc != MB_SUCCESS)
19536 fprintf(stderr,
"ERROR: Could not clear 'job_change' board\n");
19538 case MB_ERR_INVALID:
19539 fprintf(stderr,
"\t reason: 'job_change' board is invalid\n");
19541 case MB_ERR_LOCKED:
19542 fprintf(stderr,
"\t reason: 'job_change' board is locked\n");
19544 case MB_ERR_INTERNAL:
19545 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
19548 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
19562 FLAME_debug_count = 0;
19565 { FLAME_debug_count++; }
19568 { FLAME_debug_count++; }
19570 if(FLAME_debug_count != 1)
19572 fprintf(stderr,
"ERROR: A function condition test has failed for agent type 'firm' leaving state 'FirmLabourStage2'\n");
19573 if(FLAME_debug_count > 1)
19574 fprintf(stderr,
"\t reason: there was more than one possible outgoing transition function\n");
19575 if(FLAME_debug_count == 0)
19576 fprintf(stderr,
"\t reason: there was no possible outgoing transition function\n");
19626 if(FLAME_vacancy_stage2_message_board_write == 1)
19633 if (rc != MB_SUCCESS)
19635 fprintf(stderr,
"ERROR: Could not start sync of 'vacancy_stage2' board\n");
19637 case MB_ERR_INVALID:
19638 fprintf(stderr,
"\t reason: 'vacancy_stage2' board is invalid\n");
19640 case MB_ERR_LOCKED:
19641 fprintf(stderr,
"\t reason: 'vacancy_stage2' board is locked\n");
19643 case MB_ERR_MEMALLOC:
19644 fprintf(stderr,
"\t reason: out of memory\n");
19646 case MB_ERR_INTERNAL:
19647 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
19650 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
19714 if(FLAME_vacancy_stage2_message_board_read == 1)
19720 if (rc != MB_SUCCESS)
19722 fprintf(stderr,
"ERROR: Could not complete sync of 'vacancy_stage2' board\n");
19724 case MB_ERR_INVALID:
19725 fprintf(stderr,
"\t reason: 'vacancy_stage2' board is invalid\n");
19727 case MB_ERR_MEMALLOC:
19728 fprintf(stderr,
"\t reason: out of memory\n");
19730 case MB_ERR_INTERNAL:
19731 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
19734 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
19748 if(FLAME_job_application_stage2_message_board_read == 1)
19754 if (rc != MB_SUCCESS)
19756 fprintf(stderr,
"ERROR: Could not complete sync of 'job_application_stage2' board\n");
19758 case MB_ERR_INVALID:
19759 fprintf(stderr,
"\t reason: 'job_application_stage2' board is invalid\n");
19761 case MB_ERR_MEMALLOC:
19762 fprintf(stderr,
"\t reason: out of memory\n");
19764 case MB_ERR_INTERNAL:
19765 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
19768 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
19809 if (rc != MB_SUCCESS)
19811 fprintf(stderr,
"ERROR: Could not create Iterator for 'vacancy_stage2'\n");
19813 case MB_ERR_INVALID:
19814 fprintf(stderr,
"\t reason: 'vacancy_stage2' board is invalid\n");
19816 case MB_ERR_LOCKED:
19817 fprintf(stderr,
"\t reason: 'vacancy_stage2' board is locked\n");
19819 case MB_ERR_MEMALLOC:
19820 fprintf(stderr,
"\t reason: out of memory\n");
19822 case MB_ERR_INTERNAL:
19823 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
19828 fprintf(stderr,
"\t MB_Iterator_Create returned error code: %d (see libmboard docs for details)\n", rc);
19845 if (rc != MB_SUCCESS)
19847 fprintf(stderr,
"ERROR: Could not create Iterator for 'job_application_stage2'\n");
19849 case MB_ERR_INVALID:
19850 fprintf(stderr,
"\t reason: 'job_application_stage2' board is invalid\n");
19852 case MB_ERR_LOCKED:
19853 fprintf(stderr,
"\t reason: 'job_application_stage2' board is locked\n");
19855 case MB_ERR_MEMALLOC:
19856 fprintf(stderr,
"\t reason: out of memory\n");
19858 case MB_ERR_INTERNAL:
19859 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
19864 fprintf(stderr,
"\t MB_Iterator_Create returned error code: %d (see libmboard docs for details)\n", rc);
19881 if (rc != MB_SUCCESS)
19883 fprintf(stderr,
"ERROR: Could not delete 'vacancy_stage2' iterator\n");
19885 case MB_ERR_INVALID:
19886 fprintf(stderr,
"\t reason: 'vacancy_stage2' iterator is invalid\n");
19888 case MB_ERR_INTERNAL:
19889 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
19892 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
19903 if (rc != MB_SUCCESS)
19905 fprintf(stderr,
"ERROR: Could not delete 'job_application_stage2' iterator\n");
19907 case MB_ERR_INVALID:
19908 fprintf(stderr,
"\t reason: 'job_application_stage2' iterator is invalid\n");
19910 case MB_ERR_INTERNAL:
19911 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
19914 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
19940 if(FLAME_job_match_stage2_message_board_write == 1)
19947 if (rc != MB_SUCCESS)
19949 fprintf(stderr,
"ERROR: Could not start sync of 'job_match_stage2' board\n");
19951 case MB_ERR_INVALID:
19952 fprintf(stderr,
"\t reason: 'job_match_stage2' board is invalid\n");
19954 case MB_ERR_LOCKED:
19955 fprintf(stderr,
"\t reason: 'job_match_stage2' board is locked\n");
19957 case MB_ERR_MEMALLOC:
19958 fprintf(stderr,
"\t reason: out of memory\n");
19960 case MB_ERR_INTERNAL:
19961 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
19964 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
19981 if(FLAME_job_application_stage2_message_board_read == 0)
19989 if (rc != MB_SUCCESS)
19991 fprintf(stderr,
"ERROR: Could not complete sync of 'job_application_stage2' board\n");
19993 case MB_ERR_INVALID:
19994 fprintf(stderr,
"\t reason: 'job_application_stage2' board is invalid\n");
19996 case MB_ERR_MEMALLOC:
19997 fprintf(stderr,
"\t reason: out of memory\n");
19999 case MB_ERR_INTERNAL:
20000 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
20003 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
20017 if (rc != MB_SUCCESS)
20019 fprintf(stderr,
"ERROR: Could not clear 'job_application_stage2' board\n");
20021 case MB_ERR_INVALID:
20022 fprintf(stderr,
"\t reason: 'job_application_stage2' board is invalid\n");
20024 case MB_ERR_LOCKED:
20025 fprintf(stderr,
"\t reason: 'job_application_stage2' board is locked\n");
20027 case MB_ERR_INTERNAL:
20028 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
20031 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
20041 if(FLAME_vacancy_stage2_message_board_read == 0)
20049 if (rc != MB_SUCCESS)
20051 fprintf(stderr,
"ERROR: Could not complete sync of 'vacancy_stage2' board\n");
20053 case MB_ERR_INVALID:
20054 fprintf(stderr,
"\t reason: 'vacancy_stage2' board is invalid\n");
20056 case MB_ERR_MEMALLOC:
20057 fprintf(stderr,
"\t reason: out of memory\n");
20059 case MB_ERR_INTERNAL:
20060 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
20063 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
20077 if (rc != MB_SUCCESS)
20079 fprintf(stderr,
"ERROR: Could not clear 'vacancy_stage2' board\n");
20081 case MB_ERR_INVALID:
20082 fprintf(stderr,
"\t reason: 'vacancy_stage2' board is invalid\n");
20084 case MB_ERR_LOCKED:
20085 fprintf(stderr,
"\t reason: 'vacancy_stage2' board is locked\n");
20087 case MB_ERR_INTERNAL:
20088 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
20091 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
20103 if(FLAME_job_match_stage2_message_board_read == 1)
20109 if (rc != MB_SUCCESS)
20111 fprintf(stderr,
"ERROR: Could not complete sync of 'job_match_stage2' board\n");
20113 case MB_ERR_INVALID:
20114 fprintf(stderr,
"\t reason: 'job_match_stage2' board is invalid\n");
20116 case MB_ERR_MEMALLOC:
20117 fprintf(stderr,
"\t reason: out of memory\n");
20119 case MB_ERR_INTERNAL:
20120 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
20123 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
20167 if (rc != MB_SUCCESS)
20169 fprintf(stderr,
"ERROR: Could not create Iterator for 'job_match_stage2'\n");
20171 case MB_ERR_INVALID:
20172 fprintf(stderr,
"\t reason: 'job_match_stage2' board is invalid\n");
20174 case MB_ERR_LOCKED:
20175 fprintf(stderr,
"\t reason: 'job_match_stage2' board is locked\n");
20177 case MB_ERR_MEMALLOC:
20178 fprintf(stderr,
"\t reason: out of memory\n");
20180 case MB_ERR_INTERNAL:
20181 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
20185 fprintf(stderr,
"\t MB_Iterator_CreateFiltered returned error code: %d (see libmboard docs for details)\n", rc);
20203 if (rc != MB_SUCCESS)
20205 fprintf(stderr,
"ERROR: Could not delete 'job_match_stage2' iterator\n");
20207 case MB_ERR_INVALID:
20208 fprintf(stderr,
"\t reason: 'job_match_stage2' iterator is invalid\n");
20210 case MB_ERR_INTERNAL:
20211 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
20214 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
20272 if (rc != MB_SUCCESS)
20274 fprintf(stderr,
"ERROR: Could not create Iterator for 'job_match_stage2'\n");
20276 case MB_ERR_INVALID:
20277 fprintf(stderr,
"\t reason: 'job_match_stage2' board is invalid\n");
20279 case MB_ERR_LOCKED:
20280 fprintf(stderr,
"\t reason: 'job_match_stage2' board is locked\n");
20282 case MB_ERR_MEMALLOC:
20283 fprintf(stderr,
"\t reason: out of memory\n");
20285 case MB_ERR_INTERNAL:
20286 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
20290 fprintf(stderr,
"\t MB_Iterator_CreateFiltered returned error code: %d (see libmboard docs for details)\n", rc);
20308 if (rc != MB_SUCCESS)
20310 fprintf(stderr,
"ERROR: Could not delete 'job_match_stage2' iterator\n");
20312 case MB_ERR_INVALID:
20313 fprintf(stderr,
"\t reason: 'job_match_stage2' iterator is invalid\n");
20315 case MB_ERR_INTERNAL:
20316 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
20319 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
20351 if(FLAME_job_match_stage2_message_board_read == 0)
20359 if (rc != MB_SUCCESS)
20361 fprintf(stderr,
"ERROR: Could not complete sync of 'job_match_stage2' board\n");
20363 case MB_ERR_INVALID:
20364 fprintf(stderr,
"\t reason: 'job_match_stage2' board is invalid\n");
20366 case MB_ERR_MEMALLOC:
20367 fprintf(stderr,
"\t reason: out of memory\n");
20369 case MB_ERR_INTERNAL:
20370 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
20373 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
20387 if (rc != MB_SUCCESS)
20389 fprintf(stderr,
"ERROR: Could not clear 'job_match_stage2' board\n");
20391 case MB_ERR_INVALID:
20392 fprintf(stderr,
"\t reason: 'job_match_stage2' board is invalid\n");
20394 case MB_ERR_LOCKED:
20395 fprintf(stderr,
"\t reason: 'job_match_stage2' board is locked\n");
20397 case MB_ERR_INTERNAL:
20398 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
20401 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
20415 FLAME_debug_count = 0;
20418 { FLAME_debug_count++; }
20421 { FLAME_debug_count++; }
20423 if(FLAME_debug_count != 1)
20425 fprintf(stderr,
"ERROR: A function condition test has failed for agent type 'household' leaving state 'HHConsumptionStart'\n");
20426 if(FLAME_debug_count > 1)
20427 fprintf(stderr,
"\t reason: there was more than one possible outgoing transition function\n");
20428 if(FLAME_debug_count == 0)
20429 fprintf(stderr,
"\t reason: there was no possible outgoing transition function\n");
20624 FLAME_debug_count = 0;
20627 { FLAME_debug_count++; }
20630 { FLAME_debug_count++; }
20632 if(FLAME_debug_count != 1)
20634 fprintf(stderr,
"ERROR: A function condition test has failed for agent type 'firm' leaving state 'FirmConsumptionMarket'\n");
20635 if(FLAME_debug_count > 1)
20636 fprintf(stderr,
"\t reason: there was more than one possible outgoing transition function\n");
20637 if(FLAME_debug_count == 0)
20638 fprintf(stderr,
"\t reason: there was no possible outgoing transition function\n");
20647 FLAME_debug_count = 0;
20650 { FLAME_debug_count++; }
20653 { FLAME_debug_count++; }
20655 if(FLAME_debug_count != 1)
20657 fprintf(stderr,
"ERROR: A function condition test has failed for agent type 'household' leaving state 'HHConsumptionWeekly'\n");
20658 if(FLAME_debug_count > 1)
20659 fprintf(stderr,
"\t reason: there was more than one possible outgoing transition function\n");
20660 if(FLAME_debug_count == 0)
20661 fprintf(stderr,
"\t reason: there was no possible outgoing transition function\n");
20711 if(FLAME_sell_message_board_write == 1)
20715 rc = MB_SyncStart(
b_sell);
20718 if (rc != MB_SUCCESS)
20720 fprintf(stderr,
"ERROR: Could not start sync of 'sell' board\n");
20722 case MB_ERR_INVALID:
20723 fprintf(stderr,
"\t reason: 'sell' board is invalid\n");
20725 case MB_ERR_LOCKED:
20726 fprintf(stderr,
"\t reason: 'sell' board is locked\n");
20728 case MB_ERR_MEMALLOC:
20729 fprintf(stderr,
"\t reason: out of memory\n");
20731 case MB_ERR_INTERNAL:
20732 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
20735 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
20791 if(FLAME_buy_message_board_write == 1)
20795 rc = MB_SyncStart(
b_buy);
20798 if (rc != MB_SUCCESS)
20800 fprintf(stderr,
"ERROR: Could not start sync of 'buy' board\n");
20802 case MB_ERR_INVALID:
20803 fprintf(stderr,
"\t reason: 'buy' board is invalid\n");
20805 case MB_ERR_LOCKED:
20806 fprintf(stderr,
"\t reason: 'buy' board is locked\n");
20808 case MB_ERR_MEMALLOC:
20809 fprintf(stderr,
"\t reason: out of memory\n");
20811 case MB_ERR_INTERNAL:
20812 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
20815 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
20924 if(FLAME_sell_message_board_read == 1)
20927 rc = MB_SyncComplete(
b_sell);
20930 if (rc != MB_SUCCESS)
20932 fprintf(stderr,
"ERROR: Could not complete sync of 'sell' board\n");
20934 case MB_ERR_INVALID:
20935 fprintf(stderr,
"\t reason: 'sell' board is invalid\n");
20937 case MB_ERR_MEMALLOC:
20938 fprintf(stderr,
"\t reason: out of memory\n");
20940 case MB_ERR_INTERNAL:
20941 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
20944 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
20958 if(FLAME_buy_message_board_read == 1)
20961 rc = MB_SyncComplete(
b_buy);
20964 if (rc != MB_SUCCESS)
20966 fprintf(stderr,
"ERROR: Could not complete sync of 'buy' board\n");
20968 case MB_ERR_INVALID:
20969 fprintf(stderr,
"\t reason: 'buy' board is invalid\n");
20971 case MB_ERR_MEMALLOC:
20972 fprintf(stderr,
"\t reason: out of memory\n");
20974 case MB_ERR_INTERNAL:
20975 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
20978 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
21020 if (rc != MB_SUCCESS)
21022 fprintf(stderr,
"ERROR: Could not create Iterator for 'sell'\n");
21024 case MB_ERR_INVALID:
21025 fprintf(stderr,
"\t reason: 'sell' board is invalid\n");
21027 case MB_ERR_LOCKED:
21028 fprintf(stderr,
"\t reason: 'sell' board is locked\n");
21030 case MB_ERR_MEMALLOC:
21031 fprintf(stderr,
"\t reason: out of memory\n");
21033 case MB_ERR_INTERNAL:
21034 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
21039 fprintf(stderr,
"\t MB_Iterator_Create returned error code: %d (see libmboard docs for details)\n", rc);
21056 if (rc != MB_SUCCESS)
21058 fprintf(stderr,
"ERROR: Could not create Iterator for 'buy'\n");
21060 case MB_ERR_INVALID:
21061 fprintf(stderr,
"\t reason: 'buy' board is invalid\n");
21063 case MB_ERR_LOCKED:
21064 fprintf(stderr,
"\t reason: 'buy' board is locked\n");
21066 case MB_ERR_MEMALLOC:
21067 fprintf(stderr,
"\t reason: out of memory\n");
21069 case MB_ERR_INTERNAL:
21070 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
21075 fprintf(stderr,
"\t MB_Iterator_Create returned error code: %d (see libmboard docs for details)\n", rc);
21084 MB_Iterator_Randomise(
i_buy);
21090 rc = MB_Iterator_Delete(&
i_sell);
21092 if (rc != MB_SUCCESS)
21094 fprintf(stderr,
"ERROR: Could not delete 'sell' iterator\n");
21096 case MB_ERR_INVALID:
21097 fprintf(stderr,
"\t reason: 'sell' iterator is invalid\n");
21099 case MB_ERR_INTERNAL:
21100 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
21103 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
21112 rc = MB_Iterator_Delete(&
i_buy);
21114 if (rc != MB_SUCCESS)
21116 fprintf(stderr,
"ERROR: Could not delete 'buy' iterator\n");
21118 case MB_ERR_INVALID:
21119 fprintf(stderr,
"\t reason: 'buy' iterator is invalid\n");
21121 case MB_ERR_INTERNAL:
21122 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
21125 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
21151 if(FLAME_sold_message_board_write == 1)
21155 rc = MB_SyncStart(
b_sold);
21158 if (rc != MB_SUCCESS)
21160 fprintf(stderr,
"ERROR: Could not start sync of 'sold' board\n");
21162 case MB_ERR_INVALID:
21163 fprintf(stderr,
"\t reason: 'sold' board is invalid\n");
21165 case MB_ERR_LOCKED:
21166 fprintf(stderr,
"\t reason: 'sold' board is locked\n");
21168 case MB_ERR_MEMALLOC:
21169 fprintf(stderr,
"\t reason: out of memory\n");
21171 case MB_ERR_INTERNAL:
21172 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
21175 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
21186 if(FLAME_bought_message_board_write == 1)
21193 if (rc != MB_SUCCESS)
21195 fprintf(stderr,
"ERROR: Could not start sync of 'bought' board\n");
21197 case MB_ERR_INVALID:
21198 fprintf(stderr,
"\t reason: 'bought' board is invalid\n");
21200 case MB_ERR_LOCKED:
21201 fprintf(stderr,
"\t reason: 'bought' board is locked\n");
21203 case MB_ERR_MEMALLOC:
21204 fprintf(stderr,
"\t reason: out of memory\n");
21206 case MB_ERR_INTERNAL:
21207 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
21210 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
21227 if(FLAME_buy_message_board_read == 0)
21232 rc = MB_SyncComplete(
b_buy);
21235 if (rc != MB_SUCCESS)
21237 fprintf(stderr,
"ERROR: Could not complete sync of 'buy' board\n");
21239 case MB_ERR_INVALID:
21240 fprintf(stderr,
"\t reason: 'buy' board is invalid\n");
21242 case MB_ERR_MEMALLOC:
21243 fprintf(stderr,
"\t reason: out of memory\n");
21245 case MB_ERR_INTERNAL:
21246 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
21249 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
21261 rc = MB_Clear(
b_buy);
21263 if (rc != MB_SUCCESS)
21265 fprintf(stderr,
"ERROR: Could not clear 'buy' board\n");
21267 case MB_ERR_INVALID:
21268 fprintf(stderr,
"\t reason: 'buy' board is invalid\n");
21270 case MB_ERR_LOCKED:
21271 fprintf(stderr,
"\t reason: 'buy' board is locked\n");
21273 case MB_ERR_INTERNAL:
21274 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
21277 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
21287 if(FLAME_sell_message_board_read == 0)
21292 rc = MB_SyncComplete(
b_sell);
21295 if (rc != MB_SUCCESS)
21297 fprintf(stderr,
"ERROR: Could not complete sync of 'sell' board\n");
21299 case MB_ERR_INVALID:
21300 fprintf(stderr,
"\t reason: 'sell' board is invalid\n");
21302 case MB_ERR_MEMALLOC:
21303 fprintf(stderr,
"\t reason: out of memory\n");
21305 case MB_ERR_INTERNAL:
21306 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
21309 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
21323 if (rc != MB_SUCCESS)
21325 fprintf(stderr,
"ERROR: Could not clear 'sell' board\n");
21327 case MB_ERR_INVALID:
21328 fprintf(stderr,
"\t reason: 'sell' board is invalid\n");
21330 case MB_ERR_LOCKED:
21331 fprintf(stderr,
"\t reason: 'sell' board is locked\n");
21333 case MB_ERR_INTERNAL:
21334 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
21337 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
21391 if(FLAME_goods_transactions_summary_message_board_write == 1)
21398 if (rc != MB_SUCCESS)
21400 fprintf(stderr,
"ERROR: Could not start sync of 'goods_transactions_summary' board\n");
21402 case MB_ERR_INVALID:
21403 fprintf(stderr,
"\t reason: 'goods_transactions_summary' board is invalid\n");
21405 case MB_ERR_LOCKED:
21406 fprintf(stderr,
"\t reason: 'goods_transactions_summary' board is locked\n");
21408 case MB_ERR_MEMALLOC:
21409 fprintf(stderr,
"\t reason: out of memory\n");
21411 case MB_ERR_INTERNAL:
21412 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
21415 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
21428 if(FLAME_sold_message_board_read == 1)
21431 rc = MB_SyncComplete(
b_sold);
21434 if (rc != MB_SUCCESS)
21436 fprintf(stderr,
"ERROR: Could not complete sync of 'sold' board\n");
21438 case MB_ERR_INVALID:
21439 fprintf(stderr,
"\t reason: 'sold' board is invalid\n");
21441 case MB_ERR_MEMALLOC:
21442 fprintf(stderr,
"\t reason: out of memory\n");
21444 case MB_ERR_INTERNAL:
21445 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
21448 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
21492 if (rc != MB_SUCCESS)
21494 fprintf(stderr,
"ERROR: Could not create Iterator for 'sold'\n");
21496 case MB_ERR_INVALID:
21497 fprintf(stderr,
"\t reason: 'sold' board is invalid\n");
21499 case MB_ERR_LOCKED:
21500 fprintf(stderr,
"\t reason: 'sold' board is locked\n");
21502 case MB_ERR_MEMALLOC:
21503 fprintf(stderr,
"\t reason: out of memory\n");
21505 case MB_ERR_INTERNAL:
21506 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
21510 fprintf(stderr,
"\t MB_Iterator_CreateFiltered returned error code: %d (see libmboard docs for details)\n", rc);
21526 rc = MB_Iterator_Delete(&
i_sold);
21528 if (rc != MB_SUCCESS)
21530 fprintf(stderr,
"ERROR: Could not delete 'sold' iterator\n");
21532 case MB_ERR_INVALID:
21533 fprintf(stderr,
"\t reason: 'sold' iterator is invalid\n");
21535 case MB_ERR_INTERNAL:
21536 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
21539 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
21567 if(FLAME_bought_message_board_read == 1)
21573 if (rc != MB_SUCCESS)
21575 fprintf(stderr,
"ERROR: Could not complete sync of 'bought' board\n");
21577 case MB_ERR_INVALID:
21578 fprintf(stderr,
"\t reason: 'bought' board is invalid\n");
21580 case MB_ERR_MEMALLOC:
21581 fprintf(stderr,
"\t reason: out of memory\n");
21583 case MB_ERR_INTERNAL:
21584 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
21587 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
21631 if (rc != MB_SUCCESS)
21633 fprintf(stderr,
"ERROR: Could not create Iterator for 'bought'\n");
21635 case MB_ERR_INVALID:
21636 fprintf(stderr,
"\t reason: 'bought' board is invalid\n");
21638 case MB_ERR_LOCKED:
21639 fprintf(stderr,
"\t reason: 'bought' board is locked\n");
21641 case MB_ERR_MEMALLOC:
21642 fprintf(stderr,
"\t reason: out of memory\n");
21644 case MB_ERR_INTERNAL:
21645 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
21649 fprintf(stderr,
"\t MB_Iterator_CreateFiltered returned error code: %d (see libmboard docs for details)\n", rc);
21665 rc = MB_Iterator_Delete(&
i_bought);
21667 if (rc != MB_SUCCESS)
21669 fprintf(stderr,
"ERROR: Could not delete 'bought' iterator\n");
21671 case MB_ERR_INVALID:
21672 fprintf(stderr,
"\t reason: 'bought' iterator is invalid\n");
21674 case MB_ERR_INTERNAL:
21675 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
21678 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
21710 if(FLAME_bought_message_board_read == 0)
21718 if (rc != MB_SUCCESS)
21720 fprintf(stderr,
"ERROR: Could not complete sync of 'bought' board\n");
21722 case MB_ERR_INVALID:
21723 fprintf(stderr,
"\t reason: 'bought' board is invalid\n");
21725 case MB_ERR_MEMALLOC:
21726 fprintf(stderr,
"\t reason: out of memory\n");
21728 case MB_ERR_INTERNAL:
21729 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
21732 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
21746 if (rc != MB_SUCCESS)
21748 fprintf(stderr,
"ERROR: Could not clear 'bought' board\n");
21750 case MB_ERR_INVALID:
21751 fprintf(stderr,
"\t reason: 'bought' board is invalid\n");
21753 case MB_ERR_LOCKED:
21754 fprintf(stderr,
"\t reason: 'bought' board is locked\n");
21756 case MB_ERR_INTERNAL:
21757 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
21760 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
21770 if(FLAME_sold_message_board_read == 0)
21775 rc = MB_SyncComplete(
b_sold);
21778 if (rc != MB_SUCCESS)
21780 fprintf(stderr,
"ERROR: Could not complete sync of 'sold' board\n");
21782 case MB_ERR_INVALID:
21783 fprintf(stderr,
"\t reason: 'sold' board is invalid\n");
21785 case MB_ERR_MEMALLOC:
21786 fprintf(stderr,
"\t reason: out of memory\n");
21788 case MB_ERR_INTERNAL:
21789 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
21792 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
21806 if (rc != MB_SUCCESS)
21808 fprintf(stderr,
"ERROR: Could not clear 'sold' board\n");
21810 case MB_ERR_INVALID:
21811 fprintf(stderr,
"\t reason: 'sold' board is invalid\n");
21813 case MB_ERR_LOCKED:
21814 fprintf(stderr,
"\t reason: 'sold' board is locked\n");
21816 case MB_ERR_INTERNAL:
21817 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
21820 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
21834 FLAME_debug_count = 0;
21837 { FLAME_debug_count++; }
21840 { FLAME_debug_count++; }
21842 if(FLAME_debug_count != 1)
21844 fprintf(stderr,
"ERROR: A function condition test has failed for agent type 'household' leaving state 'HHConsumptionMonthly'\n");
21845 if(FLAME_debug_count > 1)
21846 fprintf(stderr,
"\t reason: there was more than one possible outgoing transition function\n");
21847 if(FLAME_debug_count == 0)
21848 fprintf(stderr,
"\t reason: there was no possible outgoing transition function\n");
21900 if(FLAME_goods_transactions_summary_message_board_read == 1)
21906 if (rc != MB_SUCCESS)
21908 fprintf(stderr,
"ERROR: Could not complete sync of 'goods_transactions_summary' board\n");
21910 case MB_ERR_INVALID:
21911 fprintf(stderr,
"\t reason: 'goods_transactions_summary' board is invalid\n");
21913 case MB_ERR_MEMALLOC:
21914 fprintf(stderr,
"\t reason: out of memory\n");
21916 case MB_ERR_INTERNAL:
21917 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
21920 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
21961 if (rc != MB_SUCCESS)
21963 fprintf(stderr,
"ERROR: Could not create Iterator for 'goods_transactions_summary'\n");
21965 case MB_ERR_INVALID:
21966 fprintf(stderr,
"\t reason: 'goods_transactions_summary' board is invalid\n");
21968 case MB_ERR_LOCKED:
21969 fprintf(stderr,
"\t reason: 'goods_transactions_summary' board is locked\n");
21971 case MB_ERR_MEMALLOC:
21972 fprintf(stderr,
"\t reason: out of memory\n");
21974 case MB_ERR_INTERNAL:
21975 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
21980 fprintf(stderr,
"\t MB_Iterator_Create returned error code: %d (see libmboard docs for details)\n", rc);
21997 if (rc != MB_SUCCESS)
21999 fprintf(stderr,
"ERROR: Could not delete 'goods_transactions_summary' iterator\n");
22001 case MB_ERR_INVALID:
22002 fprintf(stderr,
"\t reason: 'goods_transactions_summary' iterator is invalid\n");
22004 case MB_ERR_INTERNAL:
22005 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
22008 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
22064 if (rc != MB_SUCCESS)
22066 fprintf(stderr,
"ERROR: Could not create Iterator for 'goods_transactions_summary'\n");
22068 case MB_ERR_INVALID:
22069 fprintf(stderr,
"\t reason: 'goods_transactions_summary' board is invalid\n");
22071 case MB_ERR_LOCKED:
22072 fprintf(stderr,
"\t reason: 'goods_transactions_summary' board is locked\n");
22074 case MB_ERR_MEMALLOC:
22075 fprintf(stderr,
"\t reason: out of memory\n");
22077 case MB_ERR_INTERNAL:
22078 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
22083 fprintf(stderr,
"\t MB_Iterator_Create returned error code: %d (see libmboard docs for details)\n", rc);
22100 if (rc != MB_SUCCESS)
22102 fprintf(stderr,
"ERROR: Could not delete 'goods_transactions_summary' iterator\n");
22104 case MB_ERR_INVALID:
22105 fprintf(stderr,
"\t reason: 'goods_transactions_summary' iterator is invalid\n");
22107 case MB_ERR_INTERNAL:
22108 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
22111 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
22143 if(FLAME_goods_transactions_summary_message_board_read == 0)
22151 if (rc != MB_SUCCESS)
22153 fprintf(stderr,
"ERROR: Could not complete sync of 'goods_transactions_summary' board\n");
22155 case MB_ERR_INVALID:
22156 fprintf(stderr,
"\t reason: 'goods_transactions_summary' board is invalid\n");
22158 case MB_ERR_MEMALLOC:
22159 fprintf(stderr,
"\t reason: out of memory\n");
22161 case MB_ERR_INTERNAL:
22162 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
22165 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
22179 if (rc != MB_SUCCESS)
22181 fprintf(stderr,
"ERROR: Could not clear 'goods_transactions_summary' board\n");
22183 case MB_ERR_INVALID:
22184 fprintf(stderr,
"\t reason: 'goods_transactions_summary' board is invalid\n");
22186 case MB_ERR_LOCKED:
22187 fprintf(stderr,
"\t reason: 'goods_transactions_summary' board is locked\n");
22189 case MB_ERR_INTERNAL:
22190 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
22193 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
22207 FLAME_debug_count = 0;
22210 { FLAME_debug_count++; }
22213 { FLAME_debug_count++; }
22215 if(FLAME_debug_count != 1)
22217 fprintf(stderr,
"ERROR: A function condition test has failed for agent type 'centralbank' leaving state 'CentralBankConsumptionPrices'\n");
22218 if(FLAME_debug_count > 1)
22219 fprintf(stderr,
"\t reason: there was more than one possible outgoing transition function\n");
22220 if(FLAME_debug_count == 0)
22221 fprintf(stderr,
"\t reason: there was no possible outgoing transition function\n");
22271 if(FLAME_centralbank_households_quarterly_cpi_message_board_write == 1)
22278 if (rc != MB_SUCCESS)
22280 fprintf(stderr,
"ERROR: Could not start sync of 'centralbank_households_quarterly_cpi' board\n");
22282 case MB_ERR_INVALID:
22283 fprintf(stderr,
"\t reason: 'centralbank_households_quarterly_cpi' board is invalid\n");
22285 case MB_ERR_LOCKED:
22286 fprintf(stderr,
"\t reason: 'centralbank_households_quarterly_cpi' board is locked\n");
22288 case MB_ERR_MEMALLOC:
22289 fprintf(stderr,
"\t reason: out of memory\n");
22291 case MB_ERR_INTERNAL:
22292 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
22295 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
22451 FLAME_debug_count = 0;
22454 { FLAME_debug_count++; }
22457 { FLAME_debug_count++; }
22459 if(FLAME_debug_count != 1)
22461 fprintf(stderr,
"ERROR: A function condition test has failed for agent type 'firm' leaving state 'FirmHousingMarket'\n");
22462 if(FLAME_debug_count > 1)
22463 fprintf(stderr,
"\t reason: there was more than one possible outgoing transition function\n");
22464 if(FLAME_debug_count == 0)
22465 fprintf(stderr,
"\t reason: there was no possible outgoing transition function\n");
22474 FLAME_debug_count = 0;
22477 { FLAME_debug_count++; }
22480 { FLAME_debug_count++; }
22482 if(FLAME_debug_count != 1)
22484 fprintf(stderr,
"ERROR: A function condition test has failed for agent type 'centralbank' leaving state 'CentralBankHousing'\n");
22485 if(FLAME_debug_count > 1)
22486 fprintf(stderr,
"\t reason: there was more than one possible outgoing transition function\n");
22487 if(FLAME_debug_count == 0)
22488 fprintf(stderr,
"\t reason: there was no possible outgoing transition function\n");
22630 if(FLAME_centralbank_households_quarterly_cpi_message_board_read == 1)
22636 if (rc != MB_SUCCESS)
22638 fprintf(stderr,
"ERROR: Could not complete sync of 'centralbank_households_quarterly_cpi' board\n");
22640 case MB_ERR_INVALID:
22641 fprintf(stderr,
"\t reason: 'centralbank_households_quarterly_cpi' board is invalid\n");
22643 case MB_ERR_MEMALLOC:
22644 fprintf(stderr,
"\t reason: out of memory\n");
22646 case MB_ERR_INTERNAL:
22647 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
22650 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
22692 if (rc != MB_SUCCESS)
22694 fprintf(stderr,
"ERROR: Could not create Iterator for 'centralbank_households_quarterly_cpi'\n");
22696 case MB_ERR_INVALID:
22697 fprintf(stderr,
"\t reason: 'centralbank_households_quarterly_cpi' board is invalid\n");
22699 case MB_ERR_LOCKED:
22700 fprintf(stderr,
"\t reason: 'centralbank_households_quarterly_cpi' board is locked\n");
22702 case MB_ERR_MEMALLOC:
22703 fprintf(stderr,
"\t reason: out of memory\n");
22705 case MB_ERR_INTERNAL:
22706 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
22711 fprintf(stderr,
"\t MB_Iterator_Create returned error code: %d (see libmboard docs for details)\n", rc);
22728 if (rc != MB_SUCCESS)
22730 fprintf(stderr,
"ERROR: Could not delete 'centralbank_households_quarterly_cpi' iterator\n");
22732 case MB_ERR_INVALID:
22733 fprintf(stderr,
"\t reason: 'centralbank_households_quarterly_cpi' iterator is invalid\n");
22735 case MB_ERR_INTERNAL:
22736 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
22739 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
22771 if(FLAME_centralbank_households_quarterly_cpi_message_board_read == 0)
22779 if (rc != MB_SUCCESS)
22781 fprintf(stderr,
"ERROR: Could not complete sync of 'centralbank_households_quarterly_cpi' board\n");
22783 case MB_ERR_INVALID:
22784 fprintf(stderr,
"\t reason: 'centralbank_households_quarterly_cpi' board is invalid\n");
22786 case MB_ERR_MEMALLOC:
22787 fprintf(stderr,
"\t reason: out of memory\n");
22789 case MB_ERR_INTERNAL:
22790 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
22793 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
22807 if (rc != MB_SUCCESS)
22809 fprintf(stderr,
"ERROR: Could not clear 'centralbank_households_quarterly_cpi' board\n");
22811 case MB_ERR_INVALID:
22812 fprintf(stderr,
"\t reason: 'centralbank_households_quarterly_cpi' board is invalid\n");
22814 case MB_ERR_LOCKED:
22815 fprintf(stderr,
"\t reason: 'centralbank_households_quarterly_cpi' board is locked\n");
22817 case MB_ERR_INTERNAL:
22818 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
22821 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
22835 FLAME_debug_count = 0;
22838 { FLAME_debug_count++; }
22841 { FLAME_debug_count++; }
22843 if(FLAME_debug_count != 1)
22845 fprintf(stderr,
"ERROR: A function condition test has failed for agent type 'household' leaving state 'HHHousingStart'\n");
22846 if(FLAME_debug_count > 1)
22847 fprintf(stderr,
"\t reason: there was more than one possible outgoing transition function\n");
22848 if(FLAME_debug_count == 0)
22849 fprintf(stderr,
"\t reason: there was no possible outgoing transition function\n");
22954 FLAME_debug_count = 0;
22957 { FLAME_debug_count++; }
22960 { FLAME_debug_count++; }
22963 { FLAME_debug_count++; }
22966 { FLAME_debug_count++; }
22968 if(FLAME_debug_count != 1)
22970 fprintf(stderr,
"ERROR: A function condition test has failed for agent type 'household' leaving state 'HHHousingRole'\n");
22971 if(FLAME_debug_count > 1)
22972 fprintf(stderr,
"\t reason: there was more than one possible outgoing transition function\n");
22973 if(FLAME_debug_count == 0)
22974 fprintf(stderr,
"\t reason: there was no possible outgoing transition function\n");
23069 if(FLAME_sell_housing_message_board_write == 1)
23076 if (rc != MB_SUCCESS)
23078 fprintf(stderr,
"ERROR: Could not start sync of 'sell_housing' board\n");
23080 case MB_ERR_INVALID:
23081 fprintf(stderr,
"\t reason: 'sell_housing' board is invalid\n");
23083 case MB_ERR_LOCKED:
23084 fprintf(stderr,
"\t reason: 'sell_housing' board is locked\n");
23086 case MB_ERR_MEMALLOC:
23087 fprintf(stderr,
"\t reason: out of memory\n");
23089 case MB_ERR_INTERNAL:
23090 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
23093 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
23204 FLAME_debug_count = 0;
23207 { FLAME_debug_count++; }
23210 { FLAME_debug_count++; }
23212 if(FLAME_debug_count != 1)
23214 fprintf(stderr,
"ERROR: A function condition test has failed for agent type 'household' leaving state 'HHHousingCheckWealth'\n");
23215 if(FLAME_debug_count > 1)
23216 fprintf(stderr,
"\t reason: there was more than one possible outgoing transition function\n");
23217 if(FLAME_debug_count == 0)
23218 fprintf(stderr,
"\t reason: there was no possible outgoing transition function\n");
23268 if(FLAME_buy_housing_message_board_write == 1)
23275 if (rc != MB_SUCCESS)
23277 fprintf(stderr,
"ERROR: Could not start sync of 'buy_housing' board\n");
23279 case MB_ERR_INVALID:
23280 fprintf(stderr,
"\t reason: 'buy_housing' board is invalid\n");
23282 case MB_ERR_LOCKED:
23283 fprintf(stderr,
"\t reason: 'buy_housing' board is locked\n");
23285 case MB_ERR_MEMALLOC:
23286 fprintf(stderr,
"\t reason: out of memory\n");
23288 case MB_ERR_INTERNAL:
23289 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
23292 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
23356 if(FLAME_bank_reagency_credibility_message_board_read == 1)
23362 if (rc != MB_SUCCESS)
23364 fprintf(stderr,
"ERROR: Could not complete sync of 'bank_reagency_credibility' board\n");
23366 case MB_ERR_INVALID:
23367 fprintf(stderr,
"\t reason: 'bank_reagency_credibility' board is invalid\n");
23369 case MB_ERR_MEMALLOC:
23370 fprintf(stderr,
"\t reason: out of memory\n");
23372 case MB_ERR_INTERNAL:
23373 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
23376 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
23390 if(FLAME_sell_housing_message_board_read == 1)
23396 if (rc != MB_SUCCESS)
23398 fprintf(stderr,
"ERROR: Could not complete sync of 'sell_housing' board\n");
23400 case MB_ERR_INVALID:
23401 fprintf(stderr,
"\t reason: 'sell_housing' board is invalid\n");
23403 case MB_ERR_MEMALLOC:
23404 fprintf(stderr,
"\t reason: out of memory\n");
23406 case MB_ERR_INTERNAL:
23407 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
23410 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
23424 if(FLAME_buy_housing_message_board_read == 1)
23430 if (rc != MB_SUCCESS)
23432 fprintf(stderr,
"ERROR: Could not complete sync of 'buy_housing' board\n");
23434 case MB_ERR_INVALID:
23435 fprintf(stderr,
"\t reason: 'buy_housing' board is invalid\n");
23437 case MB_ERR_MEMALLOC:
23438 fprintf(stderr,
"\t reason: out of memory\n");
23440 case MB_ERR_INTERNAL:
23441 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
23444 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
23486 if (rc != MB_SUCCESS)
23488 fprintf(stderr,
"ERROR: Could not create Iterator for 'buy_housing'\n");
23490 case MB_ERR_INVALID:
23491 fprintf(stderr,
"\t reason: 'buy_housing' board is invalid\n");
23493 case MB_ERR_LOCKED:
23494 fprintf(stderr,
"\t reason: 'buy_housing' board is locked\n");
23496 case MB_ERR_MEMALLOC:
23497 fprintf(stderr,
"\t reason: out of memory\n");
23499 case MB_ERR_INTERNAL:
23500 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
23505 fprintf(stderr,
"\t MB_Iterator_Create returned error code: %d (see libmboard docs for details)\n", rc);
23522 if (rc != MB_SUCCESS)
23524 fprintf(stderr,
"ERROR: Could not create Iterator for 'sell_housing'\n");
23526 case MB_ERR_INVALID:
23527 fprintf(stderr,
"\t reason: 'sell_housing' board is invalid\n");
23529 case MB_ERR_LOCKED:
23530 fprintf(stderr,
"\t reason: 'sell_housing' board is locked\n");
23532 case MB_ERR_MEMALLOC:
23533 fprintf(stderr,
"\t reason: out of memory\n");
23535 case MB_ERR_INTERNAL:
23536 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
23541 fprintf(stderr,
"\t MB_Iterator_Create returned error code: %d (see libmboard docs for details)\n", rc);
23558 if (rc != MB_SUCCESS)
23560 fprintf(stderr,
"ERROR: Could not create Iterator for 'bank_reagency_credibility'\n");
23562 case MB_ERR_INVALID:
23563 fprintf(stderr,
"\t reason: 'bank_reagency_credibility' board is invalid\n");
23565 case MB_ERR_LOCKED:
23566 fprintf(stderr,
"\t reason: 'bank_reagency_credibility' board is locked\n");
23568 case MB_ERR_MEMALLOC:
23569 fprintf(stderr,
"\t reason: out of memory\n");
23571 case MB_ERR_INTERNAL:
23572 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
23577 fprintf(stderr,
"\t MB_Iterator_Create returned error code: %d (see libmboard docs for details)\n", rc);
23594 if (rc != MB_SUCCESS)
23596 fprintf(stderr,
"ERROR: Could not delete 'buy_housing' iterator\n");
23598 case MB_ERR_INVALID:
23599 fprintf(stderr,
"\t reason: 'buy_housing' iterator is invalid\n");
23601 case MB_ERR_INTERNAL:
23602 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
23605 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
23616 if (rc != MB_SUCCESS)
23618 fprintf(stderr,
"ERROR: Could not delete 'sell_housing' iterator\n");
23620 case MB_ERR_INVALID:
23621 fprintf(stderr,
"\t reason: 'sell_housing' iterator is invalid\n");
23623 case MB_ERR_INTERNAL:
23624 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
23627 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
23638 if (rc != MB_SUCCESS)
23640 fprintf(stderr,
"ERROR: Could not delete 'bank_reagency_credibility' iterator\n");
23642 case MB_ERR_INVALID:
23643 fprintf(stderr,
"\t reason: 'bank_reagency_credibility' iterator is invalid\n");
23645 case MB_ERR_INTERNAL:
23646 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
23649 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
23675 if(FLAME_mortgage_requests_message_board_write == 1)
23682 if (rc != MB_SUCCESS)
23684 fprintf(stderr,
"ERROR: Could not start sync of 'mortgage_requests' board\n");
23686 case MB_ERR_INVALID:
23687 fprintf(stderr,
"\t reason: 'mortgage_requests' board is invalid\n");
23689 case MB_ERR_LOCKED:
23690 fprintf(stderr,
"\t reason: 'mortgage_requests' board is locked\n");
23692 case MB_ERR_MEMALLOC:
23693 fprintf(stderr,
"\t reason: out of memory\n");
23695 case MB_ERR_INTERNAL:
23696 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
23699 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
23710 if(FLAME_sold_housing_message_board_write == 1)
23717 if (rc != MB_SUCCESS)
23719 fprintf(stderr,
"ERROR: Could not start sync of 'sold_housing' board\n");
23721 case MB_ERR_INVALID:
23722 fprintf(stderr,
"\t reason: 'sold_housing' board is invalid\n");
23724 case MB_ERR_LOCKED:
23725 fprintf(stderr,
"\t reason: 'sold_housing' board is locked\n");
23727 case MB_ERR_MEMALLOC:
23728 fprintf(stderr,
"\t reason: out of memory\n");
23730 case MB_ERR_INTERNAL:
23731 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
23734 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
23745 if(FLAME_bought_housing_message_board_write == 1)
23752 if (rc != MB_SUCCESS)
23754 fprintf(stderr,
"ERROR: Could not start sync of 'bought_housing' board\n");
23756 case MB_ERR_INVALID:
23757 fprintf(stderr,
"\t reason: 'bought_housing' board is invalid\n");
23759 case MB_ERR_LOCKED:
23760 fprintf(stderr,
"\t reason: 'bought_housing' board is locked\n");
23762 case MB_ERR_MEMALLOC:
23763 fprintf(stderr,
"\t reason: out of memory\n");
23765 case MB_ERR_INTERNAL:
23766 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
23769 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
23786 if(FLAME_buy_housing_message_board_read == 0)
23794 if (rc != MB_SUCCESS)
23796 fprintf(stderr,
"ERROR: Could not complete sync of 'buy_housing' board\n");
23798 case MB_ERR_INVALID:
23799 fprintf(stderr,
"\t reason: 'buy_housing' board is invalid\n");
23801 case MB_ERR_MEMALLOC:
23802 fprintf(stderr,
"\t reason: out of memory\n");
23804 case MB_ERR_INTERNAL:
23805 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
23808 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
23822 if (rc != MB_SUCCESS)
23824 fprintf(stderr,
"ERROR: Could not clear 'buy_housing' board\n");
23826 case MB_ERR_INVALID:
23827 fprintf(stderr,
"\t reason: 'buy_housing' board is invalid\n");
23829 case MB_ERR_LOCKED:
23830 fprintf(stderr,
"\t reason: 'buy_housing' board is locked\n");
23832 case MB_ERR_INTERNAL:
23833 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
23836 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
23846 if(FLAME_sell_housing_message_board_read == 0)
23854 if (rc != MB_SUCCESS)
23856 fprintf(stderr,
"ERROR: Could not complete sync of 'sell_housing' board\n");
23858 case MB_ERR_INVALID:
23859 fprintf(stderr,
"\t reason: 'sell_housing' board is invalid\n");
23861 case MB_ERR_MEMALLOC:
23862 fprintf(stderr,
"\t reason: out of memory\n");
23864 case MB_ERR_INTERNAL:
23865 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
23868 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
23882 if (rc != MB_SUCCESS)
23884 fprintf(stderr,
"ERROR: Could not clear 'sell_housing' board\n");
23886 case MB_ERR_INVALID:
23887 fprintf(stderr,
"\t reason: 'sell_housing' board is invalid\n");
23889 case MB_ERR_LOCKED:
23890 fprintf(stderr,
"\t reason: 'sell_housing' board is locked\n");
23892 case MB_ERR_INTERNAL:
23893 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
23896 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
23906 if(FLAME_bank_reagency_credibility_message_board_read == 0)
23914 if (rc != MB_SUCCESS)
23916 fprintf(stderr,
"ERROR: Could not complete sync of 'bank_reagency_credibility' board\n");
23918 case MB_ERR_INVALID:
23919 fprintf(stderr,
"\t reason: 'bank_reagency_credibility' board is invalid\n");
23921 case MB_ERR_MEMALLOC:
23922 fprintf(stderr,
"\t reason: out of memory\n");
23924 case MB_ERR_INTERNAL:
23925 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
23928 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
23942 if (rc != MB_SUCCESS)
23944 fprintf(stderr,
"ERROR: Could not clear 'bank_reagency_credibility' board\n");
23946 case MB_ERR_INVALID:
23947 fprintf(stderr,
"\t reason: 'bank_reagency_credibility' board is invalid\n");
23949 case MB_ERR_LOCKED:
23950 fprintf(stderr,
"\t reason: 'bank_reagency_credibility' board is locked\n");
23952 case MB_ERR_INTERNAL:
23953 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
23956 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
24010 if(FLAME_housing_transactions_summary_message_board_write == 1)
24017 if (rc != MB_SUCCESS)
24019 fprintf(stderr,
"ERROR: Could not start sync of 'housing_transactions_summary' board\n");
24021 case MB_ERR_INVALID:
24022 fprintf(stderr,
"\t reason: 'housing_transactions_summary' board is invalid\n");
24024 case MB_ERR_LOCKED:
24025 fprintf(stderr,
"\t reason: 'housing_transactions_summary' board is locked\n");
24027 case MB_ERR_MEMALLOC:
24028 fprintf(stderr,
"\t reason: out of memory\n");
24030 case MB_ERR_INTERNAL:
24031 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
24034 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
24045 if(FLAME_housing_price_message_board_write == 1)
24052 if (rc != MB_SUCCESS)
24054 fprintf(stderr,
"ERROR: Could not start sync of 'housing_price' board\n");
24056 case MB_ERR_INVALID:
24057 fprintf(stderr,
"\t reason: 'housing_price' board is invalid\n");
24059 case MB_ERR_LOCKED:
24060 fprintf(stderr,
"\t reason: 'housing_price' board is locked\n");
24062 case MB_ERR_MEMALLOC:
24063 fprintf(stderr,
"\t reason: out of memory\n");
24065 case MB_ERR_INTERNAL:
24066 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
24069 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
24082 if(FLAME_sold_housing_message_board_read == 1)
24088 if (rc != MB_SUCCESS)
24090 fprintf(stderr,
"ERROR: Could not complete sync of 'sold_housing' board\n");
24092 case MB_ERR_INVALID:
24093 fprintf(stderr,
"\t reason: 'sold_housing' board is invalid\n");
24095 case MB_ERR_MEMALLOC:
24096 fprintf(stderr,
"\t reason: out of memory\n");
24098 case MB_ERR_INTERNAL:
24099 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
24102 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
24146 if (rc != MB_SUCCESS)
24148 fprintf(stderr,
"ERROR: Could not create Iterator for 'sold_housing'\n");
24150 case MB_ERR_INVALID:
24151 fprintf(stderr,
"\t reason: 'sold_housing' board is invalid\n");
24153 case MB_ERR_LOCKED:
24154 fprintf(stderr,
"\t reason: 'sold_housing' board is locked\n");
24156 case MB_ERR_MEMALLOC:
24157 fprintf(stderr,
"\t reason: out of memory\n");
24159 case MB_ERR_INTERNAL:
24160 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
24164 fprintf(stderr,
"\t MB_Iterator_CreateFiltered returned error code: %d (see libmboard docs for details)\n", rc);
24182 if (rc != MB_SUCCESS)
24184 fprintf(stderr,
"ERROR: Could not delete 'sold_housing' iterator\n");
24186 case MB_ERR_INVALID:
24187 fprintf(stderr,
"\t reason: 'sold_housing' iterator is invalid\n");
24189 case MB_ERR_INTERNAL:
24190 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
24193 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
24219 if(FLAME_mortgage_payment_from_sale_message_board_write == 1)
24226 if (rc != MB_SUCCESS)
24228 fprintf(stderr,
"ERROR: Could not start sync of 'mortgage_payment_from_sale' board\n");
24230 case MB_ERR_INVALID:
24231 fprintf(stderr,
"\t reason: 'mortgage_payment_from_sale' board is invalid\n");
24233 case MB_ERR_LOCKED:
24234 fprintf(stderr,
"\t reason: 'mortgage_payment_from_sale' board is locked\n");
24236 case MB_ERR_MEMALLOC:
24237 fprintf(stderr,
"\t reason: out of memory\n");
24239 case MB_ERR_INTERNAL:
24240 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
24243 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
24286 if (rc != MB_SUCCESS)
24288 fprintf(stderr,
"ERROR: Could not create Iterator for 'sold_housing'\n");
24290 case MB_ERR_INVALID:
24291 fprintf(stderr,
"\t reason: 'sold_housing' board is invalid\n");
24293 case MB_ERR_LOCKED:
24294 fprintf(stderr,
"\t reason: 'sold_housing' board is locked\n");
24296 case MB_ERR_MEMALLOC:
24297 fprintf(stderr,
"\t reason: out of memory\n");
24299 case MB_ERR_INTERNAL:
24300 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
24304 fprintf(stderr,
"\t MB_Iterator_CreateFiltered returned error code: %d (see libmboard docs for details)\n", rc);
24322 if (rc != MB_SUCCESS)
24324 fprintf(stderr,
"ERROR: Could not delete 'sold_housing' iterator\n");
24326 case MB_ERR_INVALID:
24327 fprintf(stderr,
"\t reason: 'sold_housing' iterator is invalid\n");
24329 case MB_ERR_INTERNAL:
24330 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
24333 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
24361 if(FLAME_bought_housing_message_board_read == 1)
24367 if (rc != MB_SUCCESS)
24369 fprintf(stderr,
"ERROR: Could not complete sync of 'bought_housing' board\n");
24371 case MB_ERR_INVALID:
24372 fprintf(stderr,
"\t reason: 'bought_housing' board is invalid\n");
24374 case MB_ERR_MEMALLOC:
24375 fprintf(stderr,
"\t reason: out of memory\n");
24377 case MB_ERR_INTERNAL:
24378 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
24381 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
24425 if (rc != MB_SUCCESS)
24427 fprintf(stderr,
"ERROR: Could not create Iterator for 'bought_housing'\n");
24429 case MB_ERR_INVALID:
24430 fprintf(stderr,
"\t reason: 'bought_housing' board is invalid\n");
24432 case MB_ERR_LOCKED:
24433 fprintf(stderr,
"\t reason: 'bought_housing' board is locked\n");
24435 case MB_ERR_MEMALLOC:
24436 fprintf(stderr,
"\t reason: out of memory\n");
24438 case MB_ERR_INTERNAL:
24439 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
24443 fprintf(stderr,
"\t MB_Iterator_CreateFiltered returned error code: %d (see libmboard docs for details)\n", rc);
24461 if (rc != MB_SUCCESS)
24463 fprintf(stderr,
"ERROR: Could not delete 'bought_housing' iterator\n");
24465 case MB_ERR_INVALID:
24466 fprintf(stderr,
"\t reason: 'bought_housing' iterator is invalid\n");
24468 case MB_ERR_INTERNAL:
24469 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
24472 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
24500 if(FLAME_mortgage_requests_message_board_read == 1)
24506 if (rc != MB_SUCCESS)
24508 fprintf(stderr,
"ERROR: Could not complete sync of 'mortgage_requests' board\n");
24510 case MB_ERR_INVALID:
24511 fprintf(stderr,
"\t reason: 'mortgage_requests' board is invalid\n");
24513 case MB_ERR_MEMALLOC:
24514 fprintf(stderr,
"\t reason: out of memory\n");
24516 case MB_ERR_INTERNAL:
24517 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
24520 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
24564 if (rc != MB_SUCCESS)
24566 fprintf(stderr,
"ERROR: Could not create Iterator for 'mortgage_requests'\n");
24568 case MB_ERR_INVALID:
24569 fprintf(stderr,
"\t reason: 'mortgage_requests' board is invalid\n");
24571 case MB_ERR_LOCKED:
24572 fprintf(stderr,
"\t reason: 'mortgage_requests' board is locked\n");
24574 case MB_ERR_MEMALLOC:
24575 fprintf(stderr,
"\t reason: out of memory\n");
24577 case MB_ERR_INTERNAL:
24578 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
24582 fprintf(stderr,
"\t MB_Iterator_CreateFiltered returned error code: %d (see libmboard docs for details)\n", rc);
24600 if (rc != MB_SUCCESS)
24602 fprintf(stderr,
"ERROR: Could not delete 'mortgage_requests' iterator\n");
24604 case MB_ERR_INVALID:
24605 fprintf(stderr,
"\t reason: 'mortgage_requests' iterator is invalid\n");
24607 case MB_ERR_INTERNAL:
24608 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
24611 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
24643 if(FLAME_bought_housing_message_board_read == 0)
24651 if (rc != MB_SUCCESS)
24653 fprintf(stderr,
"ERROR: Could not complete sync of 'bought_housing' board\n");
24655 case MB_ERR_INVALID:
24656 fprintf(stderr,
"\t reason: 'bought_housing' board is invalid\n");
24658 case MB_ERR_MEMALLOC:
24659 fprintf(stderr,
"\t reason: out of memory\n");
24661 case MB_ERR_INTERNAL:
24662 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
24665 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
24679 if (rc != MB_SUCCESS)
24681 fprintf(stderr,
"ERROR: Could not clear 'bought_housing' board\n");
24683 case MB_ERR_INVALID:
24684 fprintf(stderr,
"\t reason: 'bought_housing' board is invalid\n");
24686 case MB_ERR_LOCKED:
24687 fprintf(stderr,
"\t reason: 'bought_housing' board is locked\n");
24689 case MB_ERR_INTERNAL:
24690 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
24693 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
24703 if(FLAME_sold_housing_message_board_read == 0)
24711 if (rc != MB_SUCCESS)
24713 fprintf(stderr,
"ERROR: Could not complete sync of 'sold_housing' board\n");
24715 case MB_ERR_INVALID:
24716 fprintf(stderr,
"\t reason: 'sold_housing' board is invalid\n");
24718 case MB_ERR_MEMALLOC:
24719 fprintf(stderr,
"\t reason: out of memory\n");
24721 case MB_ERR_INTERNAL:
24722 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
24725 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
24739 if (rc != MB_SUCCESS)
24741 fprintf(stderr,
"ERROR: Could not clear 'sold_housing' board\n");
24743 case MB_ERR_INVALID:
24744 fprintf(stderr,
"\t reason: 'sold_housing' board is invalid\n");
24746 case MB_ERR_LOCKED:
24747 fprintf(stderr,
"\t reason: 'sold_housing' board is locked\n");
24749 case MB_ERR_INTERNAL:
24750 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
24753 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
24763 if(FLAME_mortgage_requests_message_board_read == 0)
24771 if (rc != MB_SUCCESS)
24773 fprintf(stderr,
"ERROR: Could not complete sync of 'mortgage_requests' board\n");
24775 case MB_ERR_INVALID:
24776 fprintf(stderr,
"\t reason: 'mortgage_requests' board is invalid\n");
24778 case MB_ERR_MEMALLOC:
24779 fprintf(stderr,
"\t reason: out of memory\n");
24781 case MB_ERR_INTERNAL:
24782 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
24785 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
24799 if (rc != MB_SUCCESS)
24801 fprintf(stderr,
"ERROR: Could not clear 'mortgage_requests' board\n");
24803 case MB_ERR_INVALID:
24804 fprintf(stderr,
"\t reason: 'mortgage_requests' board is invalid\n");
24806 case MB_ERR_LOCKED:
24807 fprintf(stderr,
"\t reason: 'mortgage_requests' board is locked\n");
24809 case MB_ERR_INTERNAL:
24810 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
24813 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
24827 FLAME_debug_count = 0;
24830 { FLAME_debug_count++; }
24833 { FLAME_debug_count++; }
24835 if(FLAME_debug_count != 1)
24837 fprintf(stderr,
"ERROR: A function condition test has failed for agent type 'reagency' leaving state 'REAgencyCreditPolicyChecks'\n");
24838 if(FLAME_debug_count > 1)
24839 fprintf(stderr,
"\t reason: there was more than one possible outgoing transition function\n");
24840 if(FLAME_debug_count == 0)
24841 fprintf(stderr,
"\t reason: there was no possible outgoing transition function\n");
24893 if(FLAME_housing_price_message_board_read == 1)
24899 if (rc != MB_SUCCESS)
24901 fprintf(stderr,
"ERROR: Could not complete sync of 'housing_price' board\n");
24903 case MB_ERR_INVALID:
24904 fprintf(stderr,
"\t reason: 'housing_price' board is invalid\n");
24906 case MB_ERR_MEMALLOC:
24907 fprintf(stderr,
"\t reason: out of memory\n");
24909 case MB_ERR_INTERNAL:
24910 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
24913 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
24954 if (rc != MB_SUCCESS)
24956 fprintf(stderr,
"ERROR: Could not create Iterator for 'housing_price'\n");
24958 case MB_ERR_INVALID:
24959 fprintf(stderr,
"\t reason: 'housing_price' board is invalid\n");
24961 case MB_ERR_LOCKED:
24962 fprintf(stderr,
"\t reason: 'housing_price' board is locked\n");
24964 case MB_ERR_MEMALLOC:
24965 fprintf(stderr,
"\t reason: out of memory\n");
24967 case MB_ERR_INTERNAL:
24968 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
24973 fprintf(stderr,
"\t MB_Iterator_Create returned error code: %d (see libmboard docs for details)\n", rc);
24990 if (rc != MB_SUCCESS)
24992 fprintf(stderr,
"ERROR: Could not delete 'housing_price' iterator\n");
24994 case MB_ERR_INVALID:
24995 fprintf(stderr,
"\t reason: 'housing_price' iterator is invalid\n");
24997 case MB_ERR_INTERNAL:
24998 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
25001 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
25056 if (rc != MB_SUCCESS)
25058 fprintf(stderr,
"ERROR: Could not create Iterator for 'housing_price'\n");
25060 case MB_ERR_INVALID:
25061 fprintf(stderr,
"\t reason: 'housing_price' board is invalid\n");
25063 case MB_ERR_LOCKED:
25064 fprintf(stderr,
"\t reason: 'housing_price' board is locked\n");
25066 case MB_ERR_MEMALLOC:
25067 fprintf(stderr,
"\t reason: out of memory\n");
25069 case MB_ERR_INTERNAL:
25070 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
25075 fprintf(stderr,
"\t MB_Iterator_Create returned error code: %d (see libmboard docs for details)\n", rc);
25092 if (rc != MB_SUCCESS)
25094 fprintf(stderr,
"ERROR: Could not delete 'housing_price' iterator\n");
25096 case MB_ERR_INVALID:
25097 fprintf(stderr,
"\t reason: 'housing_price' iterator is invalid\n");
25099 case MB_ERR_INTERNAL:
25100 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
25103 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
25131 if(FLAME_housing_transactions_summary_message_board_read == 1)
25137 if (rc != MB_SUCCESS)
25139 fprintf(stderr,
"ERROR: Could not complete sync of 'housing_transactions_summary' board\n");
25141 case MB_ERR_INVALID:
25142 fprintf(stderr,
"\t reason: 'housing_transactions_summary' board is invalid\n");
25144 case MB_ERR_MEMALLOC:
25145 fprintf(stderr,
"\t reason: out of memory\n");
25147 case MB_ERR_INTERNAL:
25148 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
25151 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
25193 if (rc != MB_SUCCESS)
25195 fprintf(stderr,
"ERROR: Could not create Iterator for 'housing_transactions_summary'\n");
25197 case MB_ERR_INVALID:
25198 fprintf(stderr,
"\t reason: 'housing_transactions_summary' board is invalid\n");
25200 case MB_ERR_LOCKED:
25201 fprintf(stderr,
"\t reason: 'housing_transactions_summary' board is locked\n");
25203 case MB_ERR_MEMALLOC:
25204 fprintf(stderr,
"\t reason: out of memory\n");
25206 case MB_ERR_INTERNAL:
25207 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
25212 fprintf(stderr,
"\t MB_Iterator_Create returned error code: %d (see libmboard docs for details)\n", rc);
25229 if (rc != MB_SUCCESS)
25231 fprintf(stderr,
"ERROR: Could not delete 'housing_transactions_summary' iterator\n");
25233 case MB_ERR_INVALID:
25234 fprintf(stderr,
"\t reason: 'housing_transactions_summary' iterator is invalid\n");
25236 case MB_ERR_INTERNAL:
25237 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
25240 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
25268 if(FLAME_mortgage_payment_from_sale_message_board_read == 1)
25274 if (rc != MB_SUCCESS)
25276 fprintf(stderr,
"ERROR: Could not complete sync of 'mortgage_payment_from_sale' board\n");
25278 case MB_ERR_INVALID:
25279 fprintf(stderr,
"\t reason: 'mortgage_payment_from_sale' board is invalid\n");
25281 case MB_ERR_MEMALLOC:
25282 fprintf(stderr,
"\t reason: out of memory\n");
25284 case MB_ERR_INTERNAL:
25285 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
25288 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
25332 if (rc != MB_SUCCESS)
25334 fprintf(stderr,
"ERROR: Could not create Iterator for 'mortgage_payment_from_sale'\n");
25336 case MB_ERR_INVALID:
25337 fprintf(stderr,
"\t reason: 'mortgage_payment_from_sale' board is invalid\n");
25339 case MB_ERR_LOCKED:
25340 fprintf(stderr,
"\t reason: 'mortgage_payment_from_sale' board is locked\n");
25342 case MB_ERR_MEMALLOC:
25343 fprintf(stderr,
"\t reason: out of memory\n");
25345 case MB_ERR_INTERNAL:
25346 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
25350 fprintf(stderr,
"\t MB_Iterator_CreateFiltered returned error code: %d (see libmboard docs for details)\n", rc);
25368 if (rc != MB_SUCCESS)
25370 fprintf(stderr,
"ERROR: Could not delete 'mortgage_payment_from_sale' iterator\n");
25372 case MB_ERR_INVALID:
25373 fprintf(stderr,
"\t reason: 'mortgage_payment_from_sale' iterator is invalid\n");
25375 case MB_ERR_INTERNAL:
25376 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
25379 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
25411 if(FLAME_housing_price_message_board_read == 0)
25419 if (rc != MB_SUCCESS)
25421 fprintf(stderr,
"ERROR: Could not complete sync of 'housing_price' board\n");
25423 case MB_ERR_INVALID:
25424 fprintf(stderr,
"\t reason: 'housing_price' board is invalid\n");
25426 case MB_ERR_MEMALLOC:
25427 fprintf(stderr,
"\t reason: out of memory\n");
25429 case MB_ERR_INTERNAL:
25430 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
25433 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
25447 if (rc != MB_SUCCESS)
25449 fprintf(stderr,
"ERROR: Could not clear 'housing_price' board\n");
25451 case MB_ERR_INVALID:
25452 fprintf(stderr,
"\t reason: 'housing_price' board is invalid\n");
25454 case MB_ERR_LOCKED:
25455 fprintf(stderr,
"\t reason: 'housing_price' board is locked\n");
25457 case MB_ERR_INTERNAL:
25458 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
25461 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
25471 if(FLAME_mortgage_payment_from_sale_message_board_read == 0)
25479 if (rc != MB_SUCCESS)
25481 fprintf(stderr,
"ERROR: Could not complete sync of 'mortgage_payment_from_sale' board\n");
25483 case MB_ERR_INVALID:
25484 fprintf(stderr,
"\t reason: 'mortgage_payment_from_sale' board is invalid\n");
25486 case MB_ERR_MEMALLOC:
25487 fprintf(stderr,
"\t reason: out of memory\n");
25489 case MB_ERR_INTERNAL:
25490 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
25493 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
25507 if (rc != MB_SUCCESS)
25509 fprintf(stderr,
"ERROR: Could not clear 'mortgage_payment_from_sale' board\n");
25511 case MB_ERR_INVALID:
25512 fprintf(stderr,
"\t reason: 'mortgage_payment_from_sale' board is invalid\n");
25514 case MB_ERR_LOCKED:
25515 fprintf(stderr,
"\t reason: 'mortgage_payment_from_sale' board is locked\n");
25517 case MB_ERR_INTERNAL:
25518 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
25521 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
25531 if(FLAME_housing_transactions_summary_message_board_read == 0)
25539 if (rc != MB_SUCCESS)
25541 fprintf(stderr,
"ERROR: Could not complete sync of 'housing_transactions_summary' board\n");
25543 case MB_ERR_INVALID:
25544 fprintf(stderr,
"\t reason: 'housing_transactions_summary' board is invalid\n");
25546 case MB_ERR_MEMALLOC:
25547 fprintf(stderr,
"\t reason: out of memory\n");
25549 case MB_ERR_INTERNAL:
25550 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
25553 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
25567 if (rc != MB_SUCCESS)
25569 fprintf(stderr,
"ERROR: Could not clear 'housing_transactions_summary' board\n");
25571 case MB_ERR_INVALID:
25572 fprintf(stderr,
"\t reason: 'housing_transactions_summary' board is invalid\n");
25574 case MB_ERR_LOCKED:
25575 fprintf(stderr,
"\t reason: 'housing_transactions_summary' board is locked\n");
25577 case MB_ERR_INTERNAL:
25578 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
25581 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
25595 FLAME_debug_count = 0;
25598 { FLAME_debug_count++; }
25601 { FLAME_debug_count++; }
25603 if(FLAME_debug_count != 1)
25605 fprintf(stderr,
"ERROR: A function condition test has failed for agent type 'firm' leaving state 'FirmLabourPayWages'\n");
25606 if(FLAME_debug_count > 1)
25607 fprintf(stderr,
"\t reason: there was more than one possible outgoing transition function\n");
25608 if(FLAME_debug_count == 0)
25609 fprintf(stderr,
"\t reason: there was no possible outgoing transition function\n");
25618 FLAME_debug_count = 0;
25621 { FLAME_debug_count++; }
25624 { FLAME_debug_count++; }
25626 if(FLAME_debug_count != 1)
25628 fprintf(stderr,
"ERROR: A function condition test has failed for agent type 'centralbank' leaving state 'CentralBankLabour'\n");
25629 if(FLAME_debug_count > 1)
25630 fprintf(stderr,
"\t reason: there was more than one possible outgoing transition function\n");
25631 if(FLAME_debug_count == 0)
25632 fprintf(stderr,
"\t reason: there was no possible outgoing transition function\n");
25681 if(FLAME_mortgage_payment_message_board_write == 1)
25688 if (rc != MB_SUCCESS)
25690 fprintf(stderr,
"ERROR: Could not start sync of 'mortgage_payment' board\n");
25692 case MB_ERR_INVALID:
25693 fprintf(stderr,
"\t reason: 'mortgage_payment' board is invalid\n");
25695 case MB_ERR_LOCKED:
25696 fprintf(stderr,
"\t reason: 'mortgage_payment' board is locked\n");
25698 case MB_ERR_MEMALLOC:
25699 fprintf(stderr,
"\t reason: out of memory\n");
25701 case MB_ERR_INTERNAL:
25702 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
25705 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
25761 if(FLAME_labour_tax_message_board_write == 1)
25768 if (rc != MB_SUCCESS)
25770 fprintf(stderr,
"ERROR: Could not start sync of 'labour_tax' board\n");
25772 case MB_ERR_INVALID:
25773 fprintf(stderr,
"\t reason: 'labour_tax' board is invalid\n");
25775 case MB_ERR_LOCKED:
25776 fprintf(stderr,
"\t reason: 'labour_tax' board is locked\n");
25778 case MB_ERR_MEMALLOC:
25779 fprintf(stderr,
"\t reason: out of memory\n");
25781 case MB_ERR_INTERNAL:
25782 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
25785 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
25796 if(FLAME_firm_household_wage_payment_message_board_write == 1)
25803 if (rc != MB_SUCCESS)
25805 fprintf(stderr,
"ERROR: Could not start sync of 'firm_household_wage_payment' board\n");
25807 case MB_ERR_INVALID:
25808 fprintf(stderr,
"\t reason: 'firm_household_wage_payment' board is invalid\n");
25810 case MB_ERR_LOCKED:
25811 fprintf(stderr,
"\t reason: 'firm_household_wage_payment' board is locked\n");
25813 case MB_ERR_MEMALLOC:
25814 fprintf(stderr,
"\t reason: out of memory\n");
25816 case MB_ERR_INTERNAL:
25817 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
25820 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
25971 if(FLAME_mortgage_writeoff_message_board_write == 1)
25978 if (rc != MB_SUCCESS)
25980 fprintf(stderr,
"ERROR: Could not start sync of 'mortgage_writeoff' board\n");
25982 case MB_ERR_INVALID:
25983 fprintf(stderr,
"\t reason: 'mortgage_writeoff' board is invalid\n");
25985 case MB_ERR_LOCKED:
25986 fprintf(stderr,
"\t reason: 'mortgage_writeoff' board is locked\n");
25988 case MB_ERR_MEMALLOC:
25989 fprintf(stderr,
"\t reason: out of memory\n");
25991 case MB_ERR_INTERNAL:
25992 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
25995 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
26008 if(FLAME_mortgage_payment_message_board_read == 1)
26014 if (rc != MB_SUCCESS)
26016 fprintf(stderr,
"ERROR: Could not complete sync of 'mortgage_payment' board\n");
26018 case MB_ERR_INVALID:
26019 fprintf(stderr,
"\t reason: 'mortgage_payment' board is invalid\n");
26021 case MB_ERR_MEMALLOC:
26022 fprintf(stderr,
"\t reason: out of memory\n");
26024 case MB_ERR_INTERNAL:
26025 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
26028 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
26072 if (rc != MB_SUCCESS)
26074 fprintf(stderr,
"ERROR: Could not create Iterator for 'mortgage_payment'\n");
26076 case MB_ERR_INVALID:
26077 fprintf(stderr,
"\t reason: 'mortgage_payment' board is invalid\n");
26079 case MB_ERR_LOCKED:
26080 fprintf(stderr,
"\t reason: 'mortgage_payment' board is locked\n");
26082 case MB_ERR_MEMALLOC:
26083 fprintf(stderr,
"\t reason: out of memory\n");
26085 case MB_ERR_INTERNAL:
26086 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
26090 fprintf(stderr,
"\t MB_Iterator_CreateFiltered returned error code: %d (see libmboard docs for details)\n", rc);
26108 if (rc != MB_SUCCESS)
26110 fprintf(stderr,
"ERROR: Could not delete 'mortgage_payment' iterator\n");
26112 case MB_ERR_INVALID:
26113 fprintf(stderr,
"\t reason: 'mortgage_payment' iterator is invalid\n");
26115 case MB_ERR_INTERNAL:
26116 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
26119 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
26147 if(FLAME_labour_tax_message_board_read == 1)
26153 if (rc != MB_SUCCESS)
26155 fprintf(stderr,
"ERROR: Could not complete sync of 'labour_tax' board\n");
26157 case MB_ERR_INVALID:
26158 fprintf(stderr,
"\t reason: 'labour_tax' board is invalid\n");
26160 case MB_ERR_MEMALLOC:
26161 fprintf(stderr,
"\t reason: out of memory\n");
26163 case MB_ERR_INTERNAL:
26164 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
26167 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
26208 if (rc != MB_SUCCESS)
26210 fprintf(stderr,
"ERROR: Could not create Iterator for 'labour_tax'\n");
26212 case MB_ERR_INVALID:
26213 fprintf(stderr,
"\t reason: 'labour_tax' board is invalid\n");
26215 case MB_ERR_LOCKED:
26216 fprintf(stderr,
"\t reason: 'labour_tax' board is locked\n");
26218 case MB_ERR_MEMALLOC:
26219 fprintf(stderr,
"\t reason: out of memory\n");
26221 case MB_ERR_INTERNAL:
26222 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
26227 fprintf(stderr,
"\t MB_Iterator_Create returned error code: %d (see libmboard docs for details)\n", rc);
26244 if (rc != MB_SUCCESS)
26246 fprintf(stderr,
"ERROR: Could not delete 'labour_tax' iterator\n");
26248 case MB_ERR_INVALID:
26249 fprintf(stderr,
"\t reason: 'labour_tax' iterator is invalid\n");
26251 case MB_ERR_INTERNAL:
26252 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
26255 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
26287 if(FLAME_labour_tax_message_board_read == 0)
26295 if (rc != MB_SUCCESS)
26297 fprintf(stderr,
"ERROR: Could not complete sync of 'labour_tax' board\n");
26299 case MB_ERR_INVALID:
26300 fprintf(stderr,
"\t reason: 'labour_tax' board is invalid\n");
26302 case MB_ERR_MEMALLOC:
26303 fprintf(stderr,
"\t reason: out of memory\n");
26305 case MB_ERR_INTERNAL:
26306 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
26309 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
26323 if (rc != MB_SUCCESS)
26325 fprintf(stderr,
"ERROR: Could not clear 'labour_tax' board\n");
26327 case MB_ERR_INVALID:
26328 fprintf(stderr,
"\t reason: 'labour_tax' board is invalid\n");
26330 case MB_ERR_LOCKED:
26331 fprintf(stderr,
"\t reason: 'labour_tax' board is locked\n");
26333 case MB_ERR_INTERNAL:
26334 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
26337 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
26347 if(FLAME_mortgage_payment_message_board_read == 0)
26355 if (rc != MB_SUCCESS)
26357 fprintf(stderr,
"ERROR: Could not complete sync of 'mortgage_payment' board\n");
26359 case MB_ERR_INVALID:
26360 fprintf(stderr,
"\t reason: 'mortgage_payment' board is invalid\n");
26362 case MB_ERR_MEMALLOC:
26363 fprintf(stderr,
"\t reason: out of memory\n");
26365 case MB_ERR_INTERNAL:
26366 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
26369 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
26383 if (rc != MB_SUCCESS)
26385 fprintf(stderr,
"ERROR: Could not clear 'mortgage_payment' board\n");
26387 case MB_ERR_INVALID:
26388 fprintf(stderr,
"\t reason: 'mortgage_payment' board is invalid\n");
26390 case MB_ERR_LOCKED:
26391 fprintf(stderr,
"\t reason: 'mortgage_payment' board is locked\n");
26393 case MB_ERR_INTERNAL:
26394 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
26397 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
26411 FLAME_debug_count = 0;
26414 { FLAME_debug_count++; }
26417 { FLAME_debug_count++; }
26419 if(FLAME_debug_count != 1)
26421 fprintf(stderr,
"ERROR: A function condition test has failed for agent type 'household' leaving state 'HHLabourPayroll'\n");
26422 if(FLAME_debug_count > 1)
26423 fprintf(stderr,
"\t reason: there was more than one possible outgoing transition function\n");
26424 if(FLAME_debug_count == 0)
26425 fprintf(stderr,
"\t reason: there was no possible outgoing transition function\n");
26477 if(FLAME_firm_household_wage_payment_message_board_read == 1)
26483 if (rc != MB_SUCCESS)
26485 fprintf(stderr,
"ERROR: Could not complete sync of 'firm_household_wage_payment' board\n");
26487 case MB_ERR_INVALID:
26488 fprintf(stderr,
"\t reason: 'firm_household_wage_payment' board is invalid\n");
26490 case MB_ERR_MEMALLOC:
26491 fprintf(stderr,
"\t reason: out of memory\n");
26493 case MB_ERR_INTERNAL:
26494 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
26497 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
26542 if (rc != MB_SUCCESS)
26544 fprintf(stderr,
"ERROR: Could not create Iterator for 'firm_household_wage_payment'\n");
26546 case MB_ERR_INVALID:
26547 fprintf(stderr,
"\t reason: 'firm_household_wage_payment' board is invalid\n");
26549 case MB_ERR_LOCKED:
26550 fprintf(stderr,
"\t reason: 'firm_household_wage_payment' board is locked\n");
26552 case MB_ERR_MEMALLOC:
26553 fprintf(stderr,
"\t reason: out of memory\n");
26555 case MB_ERR_INTERNAL:
26556 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
26560 fprintf(stderr,
"\t MB_Iterator_CreateFiltered returned error code: %d (see libmboard docs for details)\n", rc);
26578 if (rc != MB_SUCCESS)
26580 fprintf(stderr,
"ERROR: Could not delete 'firm_household_wage_payment' iterator\n");
26582 case MB_ERR_INVALID:
26583 fprintf(stderr,
"\t reason: 'firm_household_wage_payment' iterator is invalid\n");
26585 case MB_ERR_INTERNAL:
26586 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
26589 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
26617 if(FLAME_mortgage_writeoff_message_board_read == 1)
26623 if (rc != MB_SUCCESS)
26625 fprintf(stderr,
"ERROR: Could not complete sync of 'mortgage_writeoff' board\n");
26627 case MB_ERR_INVALID:
26628 fprintf(stderr,
"\t reason: 'mortgage_writeoff' board is invalid\n");
26630 case MB_ERR_MEMALLOC:
26631 fprintf(stderr,
"\t reason: out of memory\n");
26633 case MB_ERR_INTERNAL:
26634 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
26637 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
26681 if (rc != MB_SUCCESS)
26683 fprintf(stderr,
"ERROR: Could not create Iterator for 'mortgage_writeoff'\n");
26685 case MB_ERR_INVALID:
26686 fprintf(stderr,
"\t reason: 'mortgage_writeoff' board is invalid\n");
26688 case MB_ERR_LOCKED:
26689 fprintf(stderr,
"\t reason: 'mortgage_writeoff' board is locked\n");
26691 case MB_ERR_MEMALLOC:
26692 fprintf(stderr,
"\t reason: out of memory\n");
26694 case MB_ERR_INTERNAL:
26695 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
26699 fprintf(stderr,
"\t MB_Iterator_CreateFiltered returned error code: %d (see libmboard docs for details)\n", rc);
26717 if (rc != MB_SUCCESS)
26719 fprintf(stderr,
"ERROR: Could not delete 'mortgage_writeoff' iterator\n");
26721 case MB_ERR_INVALID:
26722 fprintf(stderr,
"\t reason: 'mortgage_writeoff' iterator is invalid\n");
26724 case MB_ERR_INTERNAL:
26725 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
26728 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
26760 if(FLAME_firm_household_wage_payment_message_board_read == 0)
26768 if (rc != MB_SUCCESS)
26770 fprintf(stderr,
"ERROR: Could not complete sync of 'firm_household_wage_payment' board\n");
26772 case MB_ERR_INVALID:
26773 fprintf(stderr,
"\t reason: 'firm_household_wage_payment' board is invalid\n");
26775 case MB_ERR_MEMALLOC:
26776 fprintf(stderr,
"\t reason: out of memory\n");
26778 case MB_ERR_INTERNAL:
26779 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
26782 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
26796 if (rc != MB_SUCCESS)
26798 fprintf(stderr,
"ERROR: Could not clear 'firm_household_wage_payment' board\n");
26800 case MB_ERR_INVALID:
26801 fprintf(stderr,
"\t reason: 'firm_household_wage_payment' board is invalid\n");
26803 case MB_ERR_LOCKED:
26804 fprintf(stderr,
"\t reason: 'firm_household_wage_payment' board is locked\n");
26806 case MB_ERR_INTERNAL:
26807 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
26810 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
26820 if(FLAME_mortgage_writeoff_message_board_read == 0)
26828 if (rc != MB_SUCCESS)
26830 fprintf(stderr,
"ERROR: Could not complete sync of 'mortgage_writeoff' board\n");
26832 case MB_ERR_INVALID:
26833 fprintf(stderr,
"\t reason: 'mortgage_writeoff' board is invalid\n");
26835 case MB_ERR_MEMALLOC:
26836 fprintf(stderr,
"\t reason: out of memory\n");
26838 case MB_ERR_INTERNAL:
26839 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
26842 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
26856 if (rc != MB_SUCCESS)
26858 fprintf(stderr,
"ERROR: Could not clear 'mortgage_writeoff' board\n");
26860 case MB_ERR_INVALID:
26861 fprintf(stderr,
"\t reason: 'mortgage_writeoff' board is invalid\n");
26863 case MB_ERR_LOCKED:
26864 fprintf(stderr,
"\t reason: 'mortgage_writeoff' board is locked\n");
26866 case MB_ERR_INTERNAL:
26867 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
26870 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
26884 FLAME_debug_count = 0;
26887 { FLAME_debug_count++; }
26890 { FLAME_debug_count++; }
26892 if(FLAME_debug_count != 1)
26894 fprintf(stderr,
"ERROR: A function condition test has failed for agent type 'bank' leaving state 'BankUpdateDeposits'\n");
26895 if(FLAME_debug_count > 1)
26896 fprintf(stderr,
"\t reason: there was more than one possible outgoing transition function\n");
26897 if(FLAME_debug_count == 0)
26898 fprintf(stderr,
"\t reason: there was no possible outgoing transition function\n");
26947 if(FLAME_employment_status_message_board_write == 1)
26954 if (rc != MB_SUCCESS)
26956 fprintf(stderr,
"ERROR: Could not start sync of 'employment_status' board\n");
26958 case MB_ERR_INVALID:
26959 fprintf(stderr,
"\t reason: 'employment_status' board is invalid\n");
26961 case MB_ERR_LOCKED:
26962 fprintf(stderr,
"\t reason: 'employment_status' board is locked\n");
26964 case MB_ERR_MEMALLOC:
26965 fprintf(stderr,
"\t reason: out of memory\n");
26967 case MB_ERR_INTERNAL:
26968 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
26971 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
27037 FLAME_debug_count = 0;
27040 { FLAME_debug_count++; }
27043 { FLAME_debug_count++; }
27045 if(FLAME_debug_count != 1)
27047 fprintf(stderr,
"ERROR: A function condition test has failed for agent type 'household' leaving state 'HouseholdUpdateDeposits'\n");
27048 if(FLAME_debug_count > 1)
27049 fprintf(stderr,
"\t reason: there was more than one possible outgoing transition function\n");
27050 if(FLAME_debug_count == 0)
27051 fprintf(stderr,
"\t reason: there was no possible outgoing transition function\n");
27101 if(FLAME_household_bank_update_deposit_message_board_write == 1)
27108 if (rc != MB_SUCCESS)
27110 fprintf(stderr,
"ERROR: Could not start sync of 'household_bank_update_deposit' board\n");
27112 case MB_ERR_INVALID:
27113 fprintf(stderr,
"\t reason: 'household_bank_update_deposit' board is invalid\n");
27115 case MB_ERR_LOCKED:
27116 fprintf(stderr,
"\t reason: 'household_bank_update_deposit' board is locked\n");
27118 case MB_ERR_MEMALLOC:
27119 fprintf(stderr,
"\t reason: out of memory\n");
27121 case MB_ERR_INTERNAL:
27122 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
27125 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
27183 if(FLAME_employment_status_message_board_read == 1)
27189 if (rc != MB_SUCCESS)
27191 fprintf(stderr,
"ERROR: Could not complete sync of 'employment_status' board\n");
27193 case MB_ERR_INVALID:
27194 fprintf(stderr,
"\t reason: 'employment_status' board is invalid\n");
27196 case MB_ERR_MEMALLOC:
27197 fprintf(stderr,
"\t reason: out of memory\n");
27199 case MB_ERR_INTERNAL:
27200 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
27203 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
27244 if (rc != MB_SUCCESS)
27246 fprintf(stderr,
"ERROR: Could not create Iterator for 'employment_status'\n");
27248 case MB_ERR_INVALID:
27249 fprintf(stderr,
"\t reason: 'employment_status' board is invalid\n");
27251 case MB_ERR_LOCKED:
27252 fprintf(stderr,
"\t reason: 'employment_status' board is locked\n");
27254 case MB_ERR_MEMALLOC:
27255 fprintf(stderr,
"\t reason: out of memory\n");
27257 case MB_ERR_INTERNAL:
27258 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
27263 fprintf(stderr,
"\t MB_Iterator_Create returned error code: %d (see libmboard docs for details)\n", rc);
27280 if (rc != MB_SUCCESS)
27282 fprintf(stderr,
"ERROR: Could not delete 'employment_status' iterator\n");
27284 case MB_ERR_INVALID:
27285 fprintf(stderr,
"\t reason: 'employment_status' iterator is invalid\n");
27287 case MB_ERR_INTERNAL:
27288 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
27291 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
27347 if (rc != MB_SUCCESS)
27349 fprintf(stderr,
"ERROR: Could not create Iterator for 'employment_status'\n");
27351 case MB_ERR_INVALID:
27352 fprintf(stderr,
"\t reason: 'employment_status' board is invalid\n");
27354 case MB_ERR_LOCKED:
27355 fprintf(stderr,
"\t reason: 'employment_status' board is locked\n");
27357 case MB_ERR_MEMALLOC:
27358 fprintf(stderr,
"\t reason: out of memory\n");
27360 case MB_ERR_INTERNAL:
27361 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
27366 fprintf(stderr,
"\t MB_Iterator_Create returned error code: %d (see libmboard docs for details)\n", rc);
27383 if (rc != MB_SUCCESS)
27385 fprintf(stderr,
"ERROR: Could not delete 'employment_status' iterator\n");
27387 case MB_ERR_INVALID:
27388 fprintf(stderr,
"\t reason: 'employment_status' iterator is invalid\n");
27390 case MB_ERR_INTERNAL:
27391 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
27394 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
27449 if (rc != MB_SUCCESS)
27451 fprintf(stderr,
"ERROR: Could not create Iterator for 'employment_status'\n");
27453 case MB_ERR_INVALID:
27454 fprintf(stderr,
"\t reason: 'employment_status' board is invalid\n");
27456 case MB_ERR_LOCKED:
27457 fprintf(stderr,
"\t reason: 'employment_status' board is locked\n");
27459 case MB_ERR_MEMALLOC:
27460 fprintf(stderr,
"\t reason: out of memory\n");
27462 case MB_ERR_INTERNAL:
27463 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
27468 fprintf(stderr,
"\t MB_Iterator_Create returned error code: %d (see libmboard docs for details)\n", rc);
27485 if (rc != MB_SUCCESS)
27487 fprintf(stderr,
"ERROR: Could not delete 'employment_status' iterator\n");
27489 case MB_ERR_INVALID:
27490 fprintf(stderr,
"\t reason: 'employment_status' iterator is invalid\n");
27492 case MB_ERR_INTERNAL:
27493 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
27496 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
27552 if (rc != MB_SUCCESS)
27554 fprintf(stderr,
"ERROR: Could not create Iterator for 'employment_status'\n");
27556 case MB_ERR_INVALID:
27557 fprintf(stderr,
"\t reason: 'employment_status' board is invalid\n");
27559 case MB_ERR_LOCKED:
27560 fprintf(stderr,
"\t reason: 'employment_status' board is locked\n");
27562 case MB_ERR_MEMALLOC:
27563 fprintf(stderr,
"\t reason: out of memory\n");
27565 case MB_ERR_INTERNAL:
27566 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
27571 fprintf(stderr,
"\t MB_Iterator_Create returned error code: %d (see libmboard docs for details)\n", rc);
27588 if (rc != MB_SUCCESS)
27590 fprintf(stderr,
"ERROR: Could not delete 'employment_status' iterator\n");
27592 case MB_ERR_INVALID:
27593 fprintf(stderr,
"\t reason: 'employment_status' iterator is invalid\n");
27595 case MB_ERR_INTERNAL:
27596 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
27599 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
27631 if(FLAME_employment_status_message_board_read == 0)
27639 if (rc != MB_SUCCESS)
27641 fprintf(stderr,
"ERROR: Could not complete sync of 'employment_status' board\n");
27643 case MB_ERR_INVALID:
27644 fprintf(stderr,
"\t reason: 'employment_status' board is invalid\n");
27646 case MB_ERR_MEMALLOC:
27647 fprintf(stderr,
"\t reason: out of memory\n");
27649 case MB_ERR_INTERNAL:
27650 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
27653 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
27667 if (rc != MB_SUCCESS)
27669 fprintf(stderr,
"ERROR: Could not clear 'employment_status' board\n");
27671 case MB_ERR_INVALID:
27672 fprintf(stderr,
"\t reason: 'employment_status' board is invalid\n");
27674 case MB_ERR_LOCKED:
27675 fprintf(stderr,
"\t reason: 'employment_status' board is locked\n");
27677 case MB_ERR_INTERNAL:
27678 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
27681 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
27695 FLAME_debug_count = 0;
27698 { FLAME_debug_count++; }
27701 { FLAME_debug_count++; }
27703 if(FLAME_debug_count != 1)
27705 fprintf(stderr,
"ERROR: A function condition test has failed for agent type 'firm' leaving state 'FirmUpdateDeposits'\n");
27706 if(FLAME_debug_count > 1)
27707 fprintf(stderr,
"\t reason: there was more than one possible outgoing transition function\n");
27708 if(FLAME_debug_count == 0)
27709 fprintf(stderr,
"\t reason: there was no possible outgoing transition function\n");
27718 FLAME_debug_count = 0;
27721 { FLAME_debug_count++; }
27724 { FLAME_debug_count++; }
27726 if(FLAME_debug_count != 1)
27728 fprintf(stderr,
"ERROR: A function condition test has failed for agent type 'household' leaving state 'HHCreditPolicyChecks'\n");
27729 if(FLAME_debug_count > 1)
27730 fprintf(stderr,
"\t reason: there was more than one possible outgoing transition function\n");
27731 if(FLAME_debug_count == 0)
27732 fprintf(stderr,
"\t reason: there was no possible outgoing transition function\n");
27741 FLAME_debug_count = 0;
27744 { FLAME_debug_count++; }
27747 { FLAME_debug_count++; }
27749 if(FLAME_debug_count != 1)
27751 fprintf(stderr,
"ERROR: A function condition test has failed for agent type 'equityfund' leaving state 'EFCreditIncomeStatement'\n");
27752 if(FLAME_debug_count > 1)
27753 fprintf(stderr,
"\t reason: there was more than one possible outgoing transition function\n");
27754 if(FLAME_debug_count == 0)
27755 fprintf(stderr,
"\t reason: there was no possible outgoing transition function\n");
27764 FLAME_debug_count = 0;
27767 { FLAME_debug_count++; }
27770 { FLAME_debug_count++; }
27772 if(FLAME_debug_count != 1)
27774 fprintf(stderr,
"ERROR: A function condition test has failed for agent type 'government' leaving state 'GovernmentFiscalPolicy'\n");
27775 if(FLAME_debug_count > 1)
27776 fprintf(stderr,
"\t reason: there was more than one possible outgoing transition function\n");
27777 if(FLAME_debug_count == 0)
27778 fprintf(stderr,
"\t reason: there was no possible outgoing transition function\n");
27787 FLAME_debug_count = 0;
27790 { FLAME_debug_count++; }
27793 { FLAME_debug_count++; }
27795 if(FLAME_debug_count != 1)
27797 fprintf(stderr,
"ERROR: A function condition test has failed for agent type 'centralbank' leaving state 'CentralBankPolicy'\n");
27798 if(FLAME_debug_count > 1)
27799 fprintf(stderr,
"\t reason: there was more than one possible outgoing transition function\n");
27800 if(FLAME_debug_count == 0)
27801 fprintf(stderr,
"\t reason: there was no possible outgoing transition function\n");
27851 if(FLAME_firm_bank_update_deposit_message_board_write == 1)
27858 if (rc != MB_SUCCESS)
27860 fprintf(stderr,
"ERROR: Could not start sync of 'firm_bank_update_deposit' board\n");
27862 case MB_ERR_INVALID:
27863 fprintf(stderr,
"\t reason: 'firm_bank_update_deposit' board is invalid\n");
27865 case MB_ERR_LOCKED:
27866 fprintf(stderr,
"\t reason: 'firm_bank_update_deposit' board is locked\n");
27868 case MB_ERR_MEMALLOC:
27869 fprintf(stderr,
"\t reason: out of memory\n");
27871 case MB_ERR_INTERNAL:
27872 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
27875 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
27931 if(FLAME_centralbank_government_profit_message_board_write == 1)
27938 if (rc != MB_SUCCESS)
27940 fprintf(stderr,
"ERROR: Could not start sync of 'centralbank_government_profit' board\n");
27942 case MB_ERR_INVALID:
27943 fprintf(stderr,
"\t reason: 'centralbank_government_profit' board is invalid\n");
27945 case MB_ERR_LOCKED:
27946 fprintf(stderr,
"\t reason: 'centralbank_government_profit' board is locked\n");
27948 case MB_ERR_MEMALLOC:
27949 fprintf(stderr,
"\t reason: out of memory\n");
27951 case MB_ERR_INTERNAL:
27952 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
27955 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
28246 FLAME_debug_count = 0;
28249 { FLAME_debug_count++; }
28252 { FLAME_debug_count++; }
28254 if(FLAME_debug_count != 1)
28256 fprintf(stderr,
"ERROR: A function condition test has failed for agent type 'firm' leaving state 'FirmCreditPolicyChecks'\n");
28257 if(FLAME_debug_count > 1)
28258 fprintf(stderr,
"\t reason: there was more than one possible outgoing transition function\n");
28259 if(FLAME_debug_count == 0)
28260 fprintf(stderr,
"\t reason: there was no possible outgoing transition function\n");
28309 if(FLAME_fund_centralbank_update_deposit_message_board_write == 1)
28316 if (rc != MB_SUCCESS)
28318 fprintf(stderr,
"ERROR: Could not start sync of 'fund_centralbank_update_deposit' board\n");
28320 case MB_ERR_INVALID:
28321 fprintf(stderr,
"\t reason: 'fund_centralbank_update_deposit' board is invalid\n");
28323 case MB_ERR_LOCKED:
28324 fprintf(stderr,
"\t reason: 'fund_centralbank_update_deposit' board is locked\n");
28326 case MB_ERR_MEMALLOC:
28327 fprintf(stderr,
"\t reason: out of memory\n");
28329 case MB_ERR_INTERNAL:
28330 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
28333 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
28391 if(FLAME_household_bank_update_deposit_message_board_read == 1)
28397 if (rc != MB_SUCCESS)
28399 fprintf(stderr,
"ERROR: Could not complete sync of 'household_bank_update_deposit' board\n");
28401 case MB_ERR_INVALID:
28402 fprintf(stderr,
"\t reason: 'household_bank_update_deposit' board is invalid\n");
28404 case MB_ERR_MEMALLOC:
28405 fprintf(stderr,
"\t reason: out of memory\n");
28407 case MB_ERR_INTERNAL:
28408 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
28411 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
28425 if(FLAME_firm_bank_update_deposit_message_board_read == 1)
28431 if (rc != MB_SUCCESS)
28433 fprintf(stderr,
"ERROR: Could not complete sync of 'firm_bank_update_deposit' board\n");
28435 case MB_ERR_INVALID:
28436 fprintf(stderr,
"\t reason: 'firm_bank_update_deposit' board is invalid\n");
28438 case MB_ERR_MEMALLOC:
28439 fprintf(stderr,
"\t reason: out of memory\n");
28441 case MB_ERR_INTERNAL:
28442 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
28445 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
28490 if (rc != MB_SUCCESS)
28492 fprintf(stderr,
"ERROR: Could not create Iterator for 'household_bank_update_deposit'\n");
28494 case MB_ERR_INVALID:
28495 fprintf(stderr,
"\t reason: 'household_bank_update_deposit' board is invalid\n");
28497 case MB_ERR_LOCKED:
28498 fprintf(stderr,
"\t reason: 'household_bank_update_deposit' board is locked\n");
28500 case MB_ERR_MEMALLOC:
28501 fprintf(stderr,
"\t reason: out of memory\n");
28503 case MB_ERR_INTERNAL:
28504 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
28508 fprintf(stderr,
"\t MB_Iterator_CreateFiltered returned error code: %d (see libmboard docs for details)\n", rc);
28529 if (rc != MB_SUCCESS)
28531 fprintf(stderr,
"ERROR: Could not create Iterator for 'firm_bank_update_deposit'\n");
28533 case MB_ERR_INVALID:
28534 fprintf(stderr,
"\t reason: 'firm_bank_update_deposit' board is invalid\n");
28536 case MB_ERR_LOCKED:
28537 fprintf(stderr,
"\t reason: 'firm_bank_update_deposit' board is locked\n");
28539 case MB_ERR_MEMALLOC:
28540 fprintf(stderr,
"\t reason: out of memory\n");
28542 case MB_ERR_INTERNAL:
28543 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
28547 fprintf(stderr,
"\t MB_Iterator_CreateFiltered returned error code: %d (see libmboard docs for details)\n", rc);
28565 if (rc != MB_SUCCESS)
28567 fprintf(stderr,
"ERROR: Could not delete 'household_bank_update_deposit' iterator\n");
28569 case MB_ERR_INVALID:
28570 fprintf(stderr,
"\t reason: 'household_bank_update_deposit' iterator is invalid\n");
28572 case MB_ERR_INTERNAL:
28573 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
28576 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
28587 if (rc != MB_SUCCESS)
28589 fprintf(stderr,
"ERROR: Could not delete 'firm_bank_update_deposit' iterator\n");
28591 case MB_ERR_INVALID:
28592 fprintf(stderr,
"\t reason: 'firm_bank_update_deposit' iterator is invalid\n");
28594 case MB_ERR_INTERNAL:
28595 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
28598 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
28626 if(FLAME_centralbank_government_profit_message_board_read == 1)
28632 if (rc != MB_SUCCESS)
28634 fprintf(stderr,
"ERROR: Could not complete sync of 'centralbank_government_profit' board\n");
28636 case MB_ERR_INVALID:
28637 fprintf(stderr,
"\t reason: 'centralbank_government_profit' board is invalid\n");
28639 case MB_ERR_MEMALLOC:
28640 fprintf(stderr,
"\t reason: out of memory\n");
28642 case MB_ERR_INTERNAL:
28643 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
28646 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
28688 if (rc != MB_SUCCESS)
28690 fprintf(stderr,
"ERROR: Could not create Iterator for 'centralbank_government_profit'\n");
28692 case MB_ERR_INVALID:
28693 fprintf(stderr,
"\t reason: 'centralbank_government_profit' board is invalid\n");
28695 case MB_ERR_LOCKED:
28696 fprintf(stderr,
"\t reason: 'centralbank_government_profit' board is locked\n");
28698 case MB_ERR_MEMALLOC:
28699 fprintf(stderr,
"\t reason: out of memory\n");
28701 case MB_ERR_INTERNAL:
28702 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
28707 fprintf(stderr,
"\t MB_Iterator_Create returned error code: %d (see libmboard docs for details)\n", rc);
28724 if (rc != MB_SUCCESS)
28726 fprintf(stderr,
"ERROR: Could not delete 'centralbank_government_profit' iterator\n");
28728 case MB_ERR_INVALID:
28729 fprintf(stderr,
"\t reason: 'centralbank_government_profit' iterator is invalid\n");
28731 case MB_ERR_INTERNAL:
28732 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
28735 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
28767 if(FLAME_firm_bank_update_deposit_message_board_read == 0)
28775 if (rc != MB_SUCCESS)
28777 fprintf(stderr,
"ERROR: Could not complete sync of 'firm_bank_update_deposit' board\n");
28779 case MB_ERR_INVALID:
28780 fprintf(stderr,
"\t reason: 'firm_bank_update_deposit' board is invalid\n");
28782 case MB_ERR_MEMALLOC:
28783 fprintf(stderr,
"\t reason: out of memory\n");
28785 case MB_ERR_INTERNAL:
28786 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
28789 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
28803 if (rc != MB_SUCCESS)
28805 fprintf(stderr,
"ERROR: Could not clear 'firm_bank_update_deposit' board\n");
28807 case MB_ERR_INVALID:
28808 fprintf(stderr,
"\t reason: 'firm_bank_update_deposit' board is invalid\n");
28810 case MB_ERR_LOCKED:
28811 fprintf(stderr,
"\t reason: 'firm_bank_update_deposit' board is locked\n");
28813 case MB_ERR_INTERNAL:
28814 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
28817 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
28827 if(FLAME_household_bank_update_deposit_message_board_read == 0)
28835 if (rc != MB_SUCCESS)
28837 fprintf(stderr,
"ERROR: Could not complete sync of 'household_bank_update_deposit' board\n");
28839 case MB_ERR_INVALID:
28840 fprintf(stderr,
"\t reason: 'household_bank_update_deposit' board is invalid\n");
28842 case MB_ERR_MEMALLOC:
28843 fprintf(stderr,
"\t reason: out of memory\n");
28845 case MB_ERR_INTERNAL:
28846 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
28849 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
28863 if (rc != MB_SUCCESS)
28865 fprintf(stderr,
"ERROR: Could not clear 'household_bank_update_deposit' board\n");
28867 case MB_ERR_INVALID:
28868 fprintf(stderr,
"\t reason: 'household_bank_update_deposit' board is invalid\n");
28870 case MB_ERR_LOCKED:
28871 fprintf(stderr,
"\t reason: 'household_bank_update_deposit' board is locked\n");
28873 case MB_ERR_INTERNAL:
28874 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
28877 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
28887 if(FLAME_centralbank_government_profit_message_board_read == 0)
28895 if (rc != MB_SUCCESS)
28897 fprintf(stderr,
"ERROR: Could not complete sync of 'centralbank_government_profit' board\n");
28899 case MB_ERR_INVALID:
28900 fprintf(stderr,
"\t reason: 'centralbank_government_profit' board is invalid\n");
28902 case MB_ERR_MEMALLOC:
28903 fprintf(stderr,
"\t reason: out of memory\n");
28905 case MB_ERR_INTERNAL:
28906 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
28909 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
28923 if (rc != MB_SUCCESS)
28925 fprintf(stderr,
"ERROR: Could not clear 'centralbank_government_profit' board\n");
28927 case MB_ERR_INVALID:
28928 fprintf(stderr,
"\t reason: 'centralbank_government_profit' board is invalid\n");
28930 case MB_ERR_LOCKED:
28931 fprintf(stderr,
"\t reason: 'centralbank_government_profit' board is locked\n");
28933 case MB_ERR_INTERNAL:
28934 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
28937 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
28951 FLAME_debug_count = 0;
28954 { FLAME_debug_count++; }
28957 { FLAME_debug_count++; }
28959 if(FLAME_debug_count != 1)
28961 fprintf(stderr,
"ERROR: A function condition test has failed for agent type 'bank' leaving state 'BankCreditPolicyChecks'\n");
28962 if(FLAME_debug_count > 1)
28963 fprintf(stderr,
"\t reason: there was more than one possible outgoing transition function\n");
28964 if(FLAME_debug_count == 0)
28965 fprintf(stderr,
"\t reason: there was no possible outgoing transition function\n");
29109 if(FLAME_gov_centralbank_debt_payment_message_board_write == 1)
29116 if (rc != MB_SUCCESS)
29118 fprintf(stderr,
"ERROR: Could not start sync of 'gov_centralbank_debt_payment' board\n");
29120 case MB_ERR_INVALID:
29121 fprintf(stderr,
"\t reason: 'gov_centralbank_debt_payment' board is invalid\n");
29123 case MB_ERR_LOCKED:
29124 fprintf(stderr,
"\t reason: 'gov_centralbank_debt_payment' board is locked\n");
29126 case MB_ERR_MEMALLOC:
29127 fprintf(stderr,
"\t reason: out of memory\n");
29129 case MB_ERR_INTERNAL:
29130 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
29133 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
29144 if(FLAME_gov_centralbank_debt_request_message_board_write == 1)
29151 if (rc != MB_SUCCESS)
29153 fprintf(stderr,
"ERROR: Could not start sync of 'gov_centralbank_debt_request' board\n");
29155 case MB_ERR_INVALID:
29156 fprintf(stderr,
"\t reason: 'gov_centralbank_debt_request' board is invalid\n");
29158 case MB_ERR_LOCKED:
29159 fprintf(stderr,
"\t reason: 'gov_centralbank_debt_request' board is locked\n");
29161 case MB_ERR_MEMALLOC:
29162 fprintf(stderr,
"\t reason: out of memory\n");
29164 case MB_ERR_INTERNAL:
29165 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
29168 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
29179 if(FLAME_gov_centralbank_update_deposit_message_board_write == 1)
29186 if (rc != MB_SUCCESS)
29188 fprintf(stderr,
"ERROR: Could not start sync of 'gov_centralbank_update_deposit' board\n");
29190 case MB_ERR_INVALID:
29191 fprintf(stderr,
"\t reason: 'gov_centralbank_update_deposit' board is invalid\n");
29193 case MB_ERR_LOCKED:
29194 fprintf(stderr,
"\t reason: 'gov_centralbank_update_deposit' board is locked\n");
29196 case MB_ERR_MEMALLOC:
29197 fprintf(stderr,
"\t reason: out of memory\n");
29199 case MB_ERR_INTERNAL:
29200 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
29203 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
29264 if(FLAME_labour_tax_rate_message_board_write == 1)
29271 if (rc != MB_SUCCESS)
29273 fprintf(stderr,
"ERROR: Could not start sync of 'labour_tax_rate' board\n");
29275 case MB_ERR_INVALID:
29276 fprintf(stderr,
"\t reason: 'labour_tax_rate' board is invalid\n");
29278 case MB_ERR_LOCKED:
29279 fprintf(stderr,
"\t reason: 'labour_tax_rate' board is locked\n");
29281 case MB_ERR_MEMALLOC:
29282 fprintf(stderr,
"\t reason: out of memory\n");
29284 case MB_ERR_INTERNAL:
29285 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
29288 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
29299 if(FLAME_capital_tax_rate_message_board_write == 1)
29306 if (rc != MB_SUCCESS)
29308 fprintf(stderr,
"ERROR: Could not start sync of 'capital_tax_rate' board\n");
29310 case MB_ERR_INVALID:
29311 fprintf(stderr,
"\t reason: 'capital_tax_rate' board is invalid\n");
29313 case MB_ERR_LOCKED:
29314 fprintf(stderr,
"\t reason: 'capital_tax_rate' board is locked\n");
29316 case MB_ERR_MEMALLOC:
29317 fprintf(stderr,
"\t reason: out of memory\n");
29319 case MB_ERR_INTERNAL:
29320 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
29323 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
29336 if(FLAME_gov_centralbank_debt_payment_message_board_read == 1)
29342 if (rc != MB_SUCCESS)
29344 fprintf(stderr,
"ERROR: Could not complete sync of 'gov_centralbank_debt_payment' board\n");
29346 case MB_ERR_INVALID:
29347 fprintf(stderr,
"\t reason: 'gov_centralbank_debt_payment' board is invalid\n");
29349 case MB_ERR_MEMALLOC:
29350 fprintf(stderr,
"\t reason: out of memory\n");
29352 case MB_ERR_INTERNAL:
29353 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
29356 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
29370 if(FLAME_gov_centralbank_debt_request_message_board_read == 1)
29376 if (rc != MB_SUCCESS)
29378 fprintf(stderr,
"ERROR: Could not complete sync of 'gov_centralbank_debt_request' board\n");
29380 case MB_ERR_INVALID:
29381 fprintf(stderr,
"\t reason: 'gov_centralbank_debt_request' board is invalid\n");
29383 case MB_ERR_MEMALLOC:
29384 fprintf(stderr,
"\t reason: out of memory\n");
29386 case MB_ERR_INTERNAL:
29387 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
29390 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
29404 if(FLAME_gov_centralbank_update_deposit_message_board_read == 1)
29410 if (rc != MB_SUCCESS)
29412 fprintf(stderr,
"ERROR: Could not complete sync of 'gov_centralbank_update_deposit' board\n");
29414 case MB_ERR_INVALID:
29415 fprintf(stderr,
"\t reason: 'gov_centralbank_update_deposit' board is invalid\n");
29417 case MB_ERR_MEMALLOC:
29418 fprintf(stderr,
"\t reason: out of memory\n");
29420 case MB_ERR_INTERNAL:
29421 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
29424 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
29465 if (rc != MB_SUCCESS)
29467 fprintf(stderr,
"ERROR: Could not create Iterator for 'gov_centralbank_debt_request'\n");
29469 case MB_ERR_INVALID:
29470 fprintf(stderr,
"\t reason: 'gov_centralbank_debt_request' board is invalid\n");
29472 case MB_ERR_LOCKED:
29473 fprintf(stderr,
"\t reason: 'gov_centralbank_debt_request' board is locked\n");
29475 case MB_ERR_MEMALLOC:
29476 fprintf(stderr,
"\t reason: out of memory\n");
29478 case MB_ERR_INTERNAL:
29479 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
29484 fprintf(stderr,
"\t MB_Iterator_Create returned error code: %d (see libmboard docs for details)\n", rc);
29501 if (rc != MB_SUCCESS)
29503 fprintf(stderr,
"ERROR: Could not create Iterator for 'gov_centralbank_debt_payment'\n");
29505 case MB_ERR_INVALID:
29506 fprintf(stderr,
"\t reason: 'gov_centralbank_debt_payment' board is invalid\n");
29508 case MB_ERR_LOCKED:
29509 fprintf(stderr,
"\t reason: 'gov_centralbank_debt_payment' board is locked\n");
29511 case MB_ERR_MEMALLOC:
29512 fprintf(stderr,
"\t reason: out of memory\n");
29514 case MB_ERR_INTERNAL:
29515 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
29520 fprintf(stderr,
"\t MB_Iterator_Create returned error code: %d (see libmboard docs for details)\n", rc);
29537 if (rc != MB_SUCCESS)
29539 fprintf(stderr,
"ERROR: Could not create Iterator for 'gov_centralbank_update_deposit'\n");
29541 case MB_ERR_INVALID:
29542 fprintf(stderr,
"\t reason: 'gov_centralbank_update_deposit' board is invalid\n");
29544 case MB_ERR_LOCKED:
29545 fprintf(stderr,
"\t reason: 'gov_centralbank_update_deposit' board is locked\n");
29547 case MB_ERR_MEMALLOC:
29548 fprintf(stderr,
"\t reason: out of memory\n");
29550 case MB_ERR_INTERNAL:
29551 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
29556 fprintf(stderr,
"\t MB_Iterator_Create returned error code: %d (see libmboard docs for details)\n", rc);
29573 if (rc != MB_SUCCESS)
29575 fprintf(stderr,
"ERROR: Could not delete 'gov_centralbank_debt_request' iterator\n");
29577 case MB_ERR_INVALID:
29578 fprintf(stderr,
"\t reason: 'gov_centralbank_debt_request' iterator is invalid\n");
29580 case MB_ERR_INTERNAL:
29581 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
29584 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
29595 if (rc != MB_SUCCESS)
29597 fprintf(stderr,
"ERROR: Could not delete 'gov_centralbank_debt_payment' iterator\n");
29599 case MB_ERR_INVALID:
29600 fprintf(stderr,
"\t reason: 'gov_centralbank_debt_payment' iterator is invalid\n");
29602 case MB_ERR_INTERNAL:
29603 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
29606 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
29617 if (rc != MB_SUCCESS)
29619 fprintf(stderr,
"ERROR: Could not delete 'gov_centralbank_update_deposit' iterator\n");
29621 case MB_ERR_INVALID:
29622 fprintf(stderr,
"\t reason: 'gov_centralbank_update_deposit' iterator is invalid\n");
29624 case MB_ERR_INTERNAL:
29625 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
29628 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
29660 if(FLAME_gov_centralbank_update_deposit_message_board_read == 0)
29668 if (rc != MB_SUCCESS)
29670 fprintf(stderr,
"ERROR: Could not complete sync of 'gov_centralbank_update_deposit' board\n");
29672 case MB_ERR_INVALID:
29673 fprintf(stderr,
"\t reason: 'gov_centralbank_update_deposit' board is invalid\n");
29675 case MB_ERR_MEMALLOC:
29676 fprintf(stderr,
"\t reason: out of memory\n");
29678 case MB_ERR_INTERNAL:
29679 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
29682 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
29696 if (rc != MB_SUCCESS)
29698 fprintf(stderr,
"ERROR: Could not clear 'gov_centralbank_update_deposit' board\n");
29700 case MB_ERR_INVALID:
29701 fprintf(stderr,
"\t reason: 'gov_centralbank_update_deposit' board is invalid\n");
29703 case MB_ERR_LOCKED:
29704 fprintf(stderr,
"\t reason: 'gov_centralbank_update_deposit' board is locked\n");
29706 case MB_ERR_INTERNAL:
29707 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
29710 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
29720 if(FLAME_gov_centralbank_debt_request_message_board_read == 0)
29728 if (rc != MB_SUCCESS)
29730 fprintf(stderr,
"ERROR: Could not complete sync of 'gov_centralbank_debt_request' board\n");
29732 case MB_ERR_INVALID:
29733 fprintf(stderr,
"\t reason: 'gov_centralbank_debt_request' board is invalid\n");
29735 case MB_ERR_MEMALLOC:
29736 fprintf(stderr,
"\t reason: out of memory\n");
29738 case MB_ERR_INTERNAL:
29739 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
29742 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
29756 if (rc != MB_SUCCESS)
29758 fprintf(stderr,
"ERROR: Could not clear 'gov_centralbank_debt_request' board\n");
29760 case MB_ERR_INVALID:
29761 fprintf(stderr,
"\t reason: 'gov_centralbank_debt_request' board is invalid\n");
29763 case MB_ERR_LOCKED:
29764 fprintf(stderr,
"\t reason: 'gov_centralbank_debt_request' board is locked\n");
29766 case MB_ERR_INTERNAL:
29767 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
29770 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
29780 if(FLAME_gov_centralbank_debt_payment_message_board_read == 0)
29788 if (rc != MB_SUCCESS)
29790 fprintf(stderr,
"ERROR: Could not complete sync of 'gov_centralbank_debt_payment' board\n");
29792 case MB_ERR_INVALID:
29793 fprintf(stderr,
"\t reason: 'gov_centralbank_debt_payment' board is invalid\n");
29795 case MB_ERR_MEMALLOC:
29796 fprintf(stderr,
"\t reason: out of memory\n");
29798 case MB_ERR_INTERNAL:
29799 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
29802 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
29816 if (rc != MB_SUCCESS)
29818 fprintf(stderr,
"ERROR: Could not clear 'gov_centralbank_debt_payment' board\n");
29820 case MB_ERR_INVALID:
29821 fprintf(stderr,
"\t reason: 'gov_centralbank_debt_payment' board is invalid\n");
29823 case MB_ERR_LOCKED:
29824 fprintf(stderr,
"\t reason: 'gov_centralbank_debt_payment' board is locked\n");
29826 case MB_ERR_INTERNAL:
29827 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
29830 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
29842 if(FLAME_fund_centralbank_update_deposit_message_board_read == 1)
29848 if (rc != MB_SUCCESS)
29850 fprintf(stderr,
"ERROR: Could not complete sync of 'fund_centralbank_update_deposit' board\n");
29852 case MB_ERR_INVALID:
29853 fprintf(stderr,
"\t reason: 'fund_centralbank_update_deposit' board is invalid\n");
29855 case MB_ERR_MEMALLOC:
29856 fprintf(stderr,
"\t reason: out of memory\n");
29858 case MB_ERR_INTERNAL:
29859 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
29862 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
29903 if (rc != MB_SUCCESS)
29905 fprintf(stderr,
"ERROR: Could not create Iterator for 'fund_centralbank_update_deposit'\n");
29907 case MB_ERR_INVALID:
29908 fprintf(stderr,
"\t reason: 'fund_centralbank_update_deposit' board is invalid\n");
29910 case MB_ERR_LOCKED:
29911 fprintf(stderr,
"\t reason: 'fund_centralbank_update_deposit' board is locked\n");
29913 case MB_ERR_MEMALLOC:
29914 fprintf(stderr,
"\t reason: out of memory\n");
29916 case MB_ERR_INTERNAL:
29917 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
29922 fprintf(stderr,
"\t MB_Iterator_Create returned error code: %d (see libmboard docs for details)\n", rc);
29939 if (rc != MB_SUCCESS)
29941 fprintf(stderr,
"ERROR: Could not delete 'fund_centralbank_update_deposit' iterator\n");
29943 case MB_ERR_INVALID:
29944 fprintf(stderr,
"\t reason: 'fund_centralbank_update_deposit' iterator is invalid\n");
29946 case MB_ERR_INTERNAL:
29947 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
29950 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
29978 if(FLAME_capital_tax_rate_message_board_read == 1)
29984 if (rc != MB_SUCCESS)
29986 fprintf(stderr,
"ERROR: Could not complete sync of 'capital_tax_rate' board\n");
29988 case MB_ERR_INVALID:
29989 fprintf(stderr,
"\t reason: 'capital_tax_rate' board is invalid\n");
29991 case MB_ERR_MEMALLOC:
29992 fprintf(stderr,
"\t reason: out of memory\n");
29994 case MB_ERR_INTERNAL:
29995 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
29998 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
30039 if (rc != MB_SUCCESS)
30041 fprintf(stderr,
"ERROR: Could not create Iterator for 'capital_tax_rate'\n");
30043 case MB_ERR_INVALID:
30044 fprintf(stderr,
"\t reason: 'capital_tax_rate' board is invalid\n");
30046 case MB_ERR_LOCKED:
30047 fprintf(stderr,
"\t reason: 'capital_tax_rate' board is locked\n");
30049 case MB_ERR_MEMALLOC:
30050 fprintf(stderr,
"\t reason: out of memory\n");
30052 case MB_ERR_INTERNAL:
30053 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
30058 fprintf(stderr,
"\t MB_Iterator_Create returned error code: %d (see libmboard docs for details)\n", rc);
30075 if (rc != MB_SUCCESS)
30077 fprintf(stderr,
"ERROR: Could not delete 'capital_tax_rate' iterator\n");
30079 case MB_ERR_INVALID:
30080 fprintf(stderr,
"\t reason: 'capital_tax_rate' iterator is invalid\n");
30082 case MB_ERR_INTERNAL:
30083 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
30086 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
30118 if(FLAME_fund_centralbank_update_deposit_message_board_read == 0)
30126 if (rc != MB_SUCCESS)
30128 fprintf(stderr,
"ERROR: Could not complete sync of 'fund_centralbank_update_deposit' board\n");
30130 case MB_ERR_INVALID:
30131 fprintf(stderr,
"\t reason: 'fund_centralbank_update_deposit' board is invalid\n");
30133 case MB_ERR_MEMALLOC:
30134 fprintf(stderr,
"\t reason: out of memory\n");
30136 case MB_ERR_INTERNAL:
30137 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
30140 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
30154 if (rc != MB_SUCCESS)
30156 fprintf(stderr,
"ERROR: Could not clear 'fund_centralbank_update_deposit' board\n");
30158 case MB_ERR_INVALID:
30159 fprintf(stderr,
"\t reason: 'fund_centralbank_update_deposit' board is invalid\n");
30161 case MB_ERR_LOCKED:
30162 fprintf(stderr,
"\t reason: 'fund_centralbank_update_deposit' board is locked\n");
30164 case MB_ERR_INTERNAL:
30165 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
30168 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
30178 if(FLAME_capital_tax_rate_message_board_read == 0)
30186 if (rc != MB_SUCCESS)
30188 fprintf(stderr,
"ERROR: Could not complete sync of 'capital_tax_rate' board\n");
30190 case MB_ERR_INVALID:
30191 fprintf(stderr,
"\t reason: 'capital_tax_rate' board is invalid\n");
30193 case MB_ERR_MEMALLOC:
30194 fprintf(stderr,
"\t reason: out of memory\n");
30196 case MB_ERR_INTERNAL:
30197 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
30200 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
30214 if (rc != MB_SUCCESS)
30216 fprintf(stderr,
"ERROR: Could not clear 'capital_tax_rate' board\n");
30218 case MB_ERR_INVALID:
30219 fprintf(stderr,
"\t reason: 'capital_tax_rate' board is invalid\n");
30221 case MB_ERR_LOCKED:
30222 fprintf(stderr,
"\t reason: 'capital_tax_rate' board is locked\n");
30224 case MB_ERR_INTERNAL:
30225 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
30228 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
30282 if(FLAME_interest_rate_message_board_write == 1)
30289 if (rc != MB_SUCCESS)
30291 fprintf(stderr,
"ERROR: Could not start sync of 'interest_rate' board\n");
30293 case MB_ERR_INVALID:
30294 fprintf(stderr,
"\t reason: 'interest_rate' board is invalid\n");
30296 case MB_ERR_LOCKED:
30297 fprintf(stderr,
"\t reason: 'interest_rate' board is locked\n");
30299 case MB_ERR_MEMALLOC:
30300 fprintf(stderr,
"\t reason: out of memory\n");
30302 case MB_ERR_INTERNAL:
30303 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
30306 fprintf(stderr,
"\t MB_SyncStart returned error code: %d (see libmboard docs for details)\n", rc);
30325 if(FLAME_interest_rate_message_board_read == 1)
30331 if (rc != MB_SUCCESS)
30333 fprintf(stderr,
"ERROR: Could not complete sync of 'interest_rate' board\n");
30335 case MB_ERR_INVALID:
30336 fprintf(stderr,
"\t reason: 'interest_rate' board is invalid\n");
30338 case MB_ERR_MEMALLOC:
30339 fprintf(stderr,
"\t reason: out of memory\n");
30341 case MB_ERR_INTERNAL:
30342 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
30345 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
30387 if (rc != MB_SUCCESS)
30389 fprintf(stderr,
"ERROR: Could not create Iterator for 'interest_rate'\n");
30391 case MB_ERR_INVALID:
30392 fprintf(stderr,
"\t reason: 'interest_rate' board is invalid\n");
30394 case MB_ERR_LOCKED:
30395 fprintf(stderr,
"\t reason: 'interest_rate' board is locked\n");
30397 case MB_ERR_MEMALLOC:
30398 fprintf(stderr,
"\t reason: out of memory\n");
30400 case MB_ERR_INTERNAL:
30401 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
30406 fprintf(stderr,
"\t MB_Iterator_Create returned error code: %d (see libmboard docs for details)\n", rc);
30423 if (rc != MB_SUCCESS)
30425 fprintf(stderr,
"ERROR: Could not delete 'interest_rate' iterator\n");
30427 case MB_ERR_INVALID:
30428 fprintf(stderr,
"\t reason: 'interest_rate' iterator is invalid\n");
30430 case MB_ERR_INTERNAL:
30431 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
30434 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
30490 if (rc != MB_SUCCESS)
30492 fprintf(stderr,
"ERROR: Could not create Iterator for 'interest_rate'\n");
30494 case MB_ERR_INVALID:
30495 fprintf(stderr,
"\t reason: 'interest_rate' board is invalid\n");
30497 case MB_ERR_LOCKED:
30498 fprintf(stderr,
"\t reason: 'interest_rate' board is locked\n");
30500 case MB_ERR_MEMALLOC:
30501 fprintf(stderr,
"\t reason: out of memory\n");
30503 case MB_ERR_INTERNAL:
30504 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
30509 fprintf(stderr,
"\t MB_Iterator_Create returned error code: %d (see libmboard docs for details)\n", rc);
30526 if (rc != MB_SUCCESS)
30528 fprintf(stderr,
"ERROR: Could not delete 'interest_rate' iterator\n");
30530 case MB_ERR_INVALID:
30531 fprintf(stderr,
"\t reason: 'interest_rate' iterator is invalid\n");
30533 case MB_ERR_INTERNAL:
30534 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
30537 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
30593 if (rc != MB_SUCCESS)
30595 fprintf(stderr,
"ERROR: Could not create Iterator for 'interest_rate'\n");
30597 case MB_ERR_INVALID:
30598 fprintf(stderr,
"\t reason: 'interest_rate' board is invalid\n");
30600 case MB_ERR_LOCKED:
30601 fprintf(stderr,
"\t reason: 'interest_rate' board is locked\n");
30603 case MB_ERR_MEMALLOC:
30604 fprintf(stderr,
"\t reason: out of memory\n");
30606 case MB_ERR_INTERNAL:
30607 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
30612 fprintf(stderr,
"\t MB_Iterator_Create returned error code: %d (see libmboard docs for details)\n", rc);
30629 if (rc != MB_SUCCESS)
30631 fprintf(stderr,
"ERROR: Could not delete 'interest_rate' iterator\n");
30633 case MB_ERR_INVALID:
30634 fprintf(stderr,
"\t reason: 'interest_rate' iterator is invalid\n");
30636 case MB_ERR_INTERNAL:
30637 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
30640 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
30696 if (rc != MB_SUCCESS)
30698 fprintf(stderr,
"ERROR: Could not create Iterator for 'interest_rate'\n");
30700 case MB_ERR_INVALID:
30701 fprintf(stderr,
"\t reason: 'interest_rate' board is invalid\n");
30703 case MB_ERR_LOCKED:
30704 fprintf(stderr,
"\t reason: 'interest_rate' board is locked\n");
30706 case MB_ERR_MEMALLOC:
30707 fprintf(stderr,
"\t reason: out of memory\n");
30709 case MB_ERR_INTERNAL:
30710 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
30715 fprintf(stderr,
"\t MB_Iterator_Create returned error code: %d (see libmboard docs for details)\n", rc);
30732 if (rc != MB_SUCCESS)
30734 fprintf(stderr,
"ERROR: Could not delete 'interest_rate' iterator\n");
30736 case MB_ERR_INVALID:
30737 fprintf(stderr,
"\t reason: 'interest_rate' iterator is invalid\n");
30739 case MB_ERR_INTERNAL:
30740 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
30743 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
30775 if(FLAME_interest_rate_message_board_read == 0)
30783 if (rc != MB_SUCCESS)
30785 fprintf(stderr,
"ERROR: Could not complete sync of 'interest_rate' board\n");
30787 case MB_ERR_INVALID:
30788 fprintf(stderr,
"\t reason: 'interest_rate' board is invalid\n");
30790 case MB_ERR_MEMALLOC:
30791 fprintf(stderr,
"\t reason: out of memory\n");
30793 case MB_ERR_INTERNAL:
30794 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
30797 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
30811 if (rc != MB_SUCCESS)
30813 fprintf(stderr,
"ERROR: Could not clear 'interest_rate' board\n");
30815 case MB_ERR_INVALID:
30816 fprintf(stderr,
"\t reason: 'interest_rate' board is invalid\n");
30818 case MB_ERR_LOCKED:
30819 fprintf(stderr,
"\t reason: 'interest_rate' board is locked\n");
30821 case MB_ERR_INTERNAL:
30822 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
30825 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
30881 if(FLAME_labour_tax_rate_message_board_read == 1)
30887 if (rc != MB_SUCCESS)
30889 fprintf(stderr,
"ERROR: Could not complete sync of 'labour_tax_rate' board\n");
30891 case MB_ERR_INVALID:
30892 fprintf(stderr,
"\t reason: 'labour_tax_rate' board is invalid\n");
30894 case MB_ERR_MEMALLOC:
30895 fprintf(stderr,
"\t reason: out of memory\n");
30897 case MB_ERR_INTERNAL:
30898 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
30901 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
30942 if (rc != MB_SUCCESS)
30944 fprintf(stderr,
"ERROR: Could not create Iterator for 'labour_tax_rate'\n");
30946 case MB_ERR_INVALID:
30947 fprintf(stderr,
"\t reason: 'labour_tax_rate' board is invalid\n");
30949 case MB_ERR_LOCKED:
30950 fprintf(stderr,
"\t reason: 'labour_tax_rate' board is locked\n");
30952 case MB_ERR_MEMALLOC:
30953 fprintf(stderr,
"\t reason: out of memory\n");
30955 case MB_ERR_INTERNAL:
30956 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
30961 fprintf(stderr,
"\t MB_Iterator_Create returned error code: %d (see libmboard docs for details)\n", rc);
30978 if (rc != MB_SUCCESS)
30980 fprintf(stderr,
"ERROR: Could not delete 'labour_tax_rate' iterator\n");
30982 case MB_ERR_INVALID:
30983 fprintf(stderr,
"\t reason: 'labour_tax_rate' iterator is invalid\n");
30985 case MB_ERR_INTERNAL:
30986 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
30989 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
31050 if (rc != MB_SUCCESS)
31052 fprintf(stderr,
"ERROR: Could not create Iterator for 'labour_tax_rate'\n");
31054 case MB_ERR_INVALID:
31055 fprintf(stderr,
"\t reason: 'labour_tax_rate' board is invalid\n");
31057 case MB_ERR_LOCKED:
31058 fprintf(stderr,
"\t reason: 'labour_tax_rate' board is locked\n");
31060 case MB_ERR_MEMALLOC:
31061 fprintf(stderr,
"\t reason: out of memory\n");
31063 case MB_ERR_INTERNAL:
31064 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
31069 fprintf(stderr,
"\t MB_Iterator_Create returned error code: %d (see libmboard docs for details)\n", rc);
31086 if (rc != MB_SUCCESS)
31088 fprintf(stderr,
"ERROR: Could not delete 'labour_tax_rate' iterator\n");
31090 case MB_ERR_INVALID:
31091 fprintf(stderr,
"\t reason: 'labour_tax_rate' iterator is invalid\n");
31093 case MB_ERR_INTERNAL:
31094 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
31097 fprintf(stderr,
"\t MB_Iterator_Delete returned error code: %d (see libmboard docs for details)\n", rc);
31129 if(FLAME_labour_tax_rate_message_board_read == 0)
31137 if (rc != MB_SUCCESS)
31139 fprintf(stderr,
"ERROR: Could not complete sync of 'labour_tax_rate' board\n");
31141 case MB_ERR_INVALID:
31142 fprintf(stderr,
"\t reason: 'labour_tax_rate' board is invalid\n");
31144 case MB_ERR_MEMALLOC:
31145 fprintf(stderr,
"\t reason: out of memory\n");
31147 case MB_ERR_INTERNAL:
31148 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
31151 fprintf(stderr,
"\t MB_SyncComplete returned error code: %d (see libmboard docs for details)\n", rc);
31165 if (rc != MB_SUCCESS)
31167 fprintf(stderr,
"ERROR: Could not clear 'labour_tax_rate' board\n");
31169 case MB_ERR_INVALID:
31170 fprintf(stderr,
"\t reason: 'labour_tax_rate' board is invalid\n");
31172 case MB_ERR_LOCKED:
31173 fprintf(stderr,
"\t reason: 'labour_tax_rate' board is locked\n");
31175 case MB_ERR_INTERNAL:
31176 fprintf(stderr,
"\t reason: internal error. Recompile libmoard in debug mode for more info \n");
31179 fprintf(stderr,
"\t MB_Clear returned error code: %d (see libmboard docs for details)\n", rc);
31745 if((file = fopen(logfilepath,
"a"))==NULL)
31747 printf(
"Error: cannot open file '%s' for writing\n", logfilepath);
31750 (void)fputs(
"<iteration><no>", file);
31752 (void)fputs(data, file);
31753 (void)fputs(
"</no><time>", file);
31754 sprintf(data,
"%d", (
int)((
get_time() - interval) * 1000) );
31755 (void)fputs(data, file);
31756 (void)fputs(
"</time></iteration>\n", file);
31757 (void)fclose(file);
31766 printf(
"Execution time - %d:%02d:%03d [mins:secs:msecs]\n",