=== Test case: mam_SUITE:archive_is_instrumented/1 (click for source code)

=== Config value:

    [{props,[{mam_ns,<<"urn:xmpp:mam:2">>}]},
     {watchdog,<0.47294.0>},
     {basic_group,mam_all},
     {configuration,rdbms_async_pool},
     {wait_for_parallel_writer,[pm]},
     {mam_meta_opts,#{cache =>
                          #{module => internal,strategy => fifo,
                            number_of_segments => 3,time_to_live => 480},
                      backend => rdbms,send_message => mod_mam_utils,
                      max_result_limit => 50,
                      is_archivable_message => mod_mam_utils,
                      default_result_limit => 50,
                      enforce_simple_queries => false,
                      archive_chat_markers => false,full_text_search => true,
                      message_retraction => true,
                      pm =>
                          #{archive_groupchats => false,
                            same_mam_id_for_peers => false},
                      async_writer =>
                          #{enabled => true,batch_size => 30,
                            flush_interval => 1,pool_size => 16},
                      no_stanzaid_element => false,user_prefs_store => rdbms,
                      cache_users => false}},
     {mod_offline_loaded,false},
     {escalus_user_db,{module,escalus_ejabberd}},
     {preset,"odbc_mssql_mnesia"},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/mam_SUITE_data"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@944609fad30e.2024-03-21_07.35.17/big_tests.tests.mam_SUITE.logs/run.2024-03-21_07.44.19/mam_suite.archive_is_instrumented.130178.html"},
     {tc_group_properties,[{name,mam06},parallel]},
     {tc_group_path,[[{name,rdbms_async_pool_mam_all},parallel]]},
     {data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/mam_SUITE_data/"},
     {priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@944609fad30e.2024-03-21_07.35.17/big_tests.tests.mam_SUITE.logs/run.2024-03-21_07.44.19/log_private/"},
     {config_backup,#{[shaper,fast] => {ok,#{max_rate => 50000}},
                      [shaper,mam_shaper] => {ok,#{max_rate => 1}},
                      [shaper,normal] => {ok,#{max_rate => 1000}},
                      [{access,<<"localhost">>},max_user_sessions] =>
                          {ok,[#{value => 10,acl => all}]}}},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_vcard =>
            #{matches => 30,
              host => {prefix,<<"vjud.">>},
              search => true,iqdisc => parallel,backend => rdbms},
        mod_roster =>
            #{iqdisc => one_queue,backend => rdbms,versioning => false,
              store_current_id => false},
        mod_muc =>
            #{access => muc,
              host => {prefix,<<"muc.">>},
              max_users => 200,room_shaper => none,http_auth_pool => none,
              hibernate_timeout => 2000,history_size => 20,
              hibernated_room_check_interval => 1000,
              hibernated_room_timeout => 2000,backend => rdbms,
              access_create => muc_create,access_admin => none,
              access_persistent => all,
              default_room =>
                  #{public => true,description => <<>>,persistent => false,
                    title => <<>>,password => <<>>,allow_change_subj => true,
                    allow_query_users => true,allow_private_messages => true,
                    allow_visitor_status => true,
                    allow_visitor_nickchange => true,public_list => true,
                    moderated => true,members_by_default => true,
                    members_only => false,allow_user_invites => false,
                    allow_multiple_sessions => false,
                    password_protected => false,anonymous => true,
                    max_users => 200,maygetmemberlist => [],logging => false,
                    affiliations => [],subject => <<>>,subject_author => <<>>},
              load_permanent_rooms_at_startup => false,
              max_room_id => infinity,online_backend => mnesia,
              min_presence_interval => 0,max_users_admin_threshold => 5,
              user_message_shaper => none,user_presence_shaper => none,
              min_message_interval => 0,max_user_conferences => 10,
              max_room_name => infinity,max_room_desc => infinity},
        mod_sic => #{iqdisc => one_queue},
        mod_register =>
            #{access => register,iqdisc => one_queue,
              registration_watchers => [],password_strength => 0,
              ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}]},
        mod_amp => #{},mod_presence => #{},
        mod_disco =>
            #{iqdisc => one_queue,server_info => [],extra_domains => [],
              users_can_see_hidden_services => false},
        mod_muc_log =>
            #{dirname => room_jid,outdir => "/tmp/muclogs",
              file_format => html,css_file => false,timezone => local,
              spam_prevention => true,
              top_link => {"/","Home"},
              access_log => muc,dirtype => subdirs},
        mod_stream_management =>
            #{buffer => true,ack => true,backend => mnesia,
              stale_h =>
                  #{enabled => false,repeat_after => 1800,geriatric => 3600},
              buffer_max => 100,ack_freq => 1,resume_timeout => 600},
        mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
        mod_cache_users =>
            #{strategy => fifo,number_of_segments => 5,time_to_live => 2},
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false},
        mod_carboncopy => #{iqdisc => no_queue}}},
     {escalus_users,[{alice,[{username,<<"alicE">>},
                             {server,<<"localhost">>},
                             {password,<<"matygrysa">>}]},
                     {bob,[{username,<<"bOb">>},
                           {server,<<"localhost">>},
                           {password,<<"makrolika">>}]},
                     {kate,[{username,<<"kate">>},
                            {server,<<"localhost">>},
                            {password,<<"makrowe;p">>}]},
                     {carol,[{username,<<"carol">>},
                             {server,<<"localhost">>},
                             {password,<<"jinglebells">>},
                             {transport,escalus_bosh},
                             {path,<<"/http-bind">>},
                             {port,5280}]}]}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@944609fad30e.2024-03-21_07.35.17"

=== Started at 2024-03-21 07:44:50


*** CT 2024-03-21 07:44:50.788 *** View log from node mongooseim@localhost when started🔗 mongooseim@localhost_3149.html

*** User 2024-03-21 07:44:50.857 ***🔗
alicE_archive_is_instrumented_2042@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-03-21 07:44:50.857 ***🔗
alicE_archive_is_instrumented_2042@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='a56390db7c092f00' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-21 07:44:50.857 ***🔗
alicE_archive_is_instrumented_2042@localhost/res1 in
<stream:features>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-03-21 07:44:50.858 ***🔗
alicE_archive_is_instrumented_2042@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX2FyY2hpdmVfaXNfaW5zdHJ1bWVudGVkXzIwNDIAbWF0eWdyeXNh</auth>



*** User 2024-03-21 07:44:50.859 ***🔗
alicE_archive_is_instrumented_2042@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-21 07:44:50.859 ***🔗
alicE_archive_is_instrumented_2042@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-03-21 07:44:50.860 ***🔗
alicE_archive_is_instrumented_2042@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='c762747cf742328c' from='localhost' version='1.0' xml:lang='en' to='alice_archive_is_instrumented_2042@localhost'>

*** User 2024-03-21 07:44:50.860 ***🔗
alicE_archive_is_instrumented_2042@localhost/res1 in
<stream:features>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-03-21 07:44:50.860 ***🔗
alicE_archive_is_instrumented_2042@localhost/res1 out
<iq type='set' id='b5da75b4dbcb9b22fd5e71870ce4e078'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-21 07:44:50.860 ***🔗
alicE_archive_is_instrumented_2042@localhost/res1 in
<iq id='b5da75b4dbcb9b22fd5e71870ce4e078' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_archive_is_instrumented_2042@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-21 07:44:50.860 ***🔗
alice_archive_is_instrumented_2042@localhost/res1 out
<iq type='set' id='db4d2ba63873948cc7ddcda1c135e224'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 07:44:50.861 ***🔗
alice_archive_is_instrumented_2042@localhost/res1 in
<iq from='localhost' to='alice_archive_is_instrumented_2042@localhost/res1' id='db4d2ba63873948cc7ddcda1c135e224' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 07:44:50.861 ***🔗
alice_archive_is_instrumented_2042@localhost/res1 out
<presence/>



*** User 2024-03-21 07:44:50.865 ***🔗
alice_archive_is_instrumented_2042@localhost/res1 in
<presence from='alice_archive_is_instrumented_2042@localhost/res1' to='alice_archive_is_instrumented_2042@localhost/res1'/>



*** User 2024-03-21 07:44:50.867 ***🔗
bOb_archive_is_instrumented_2042@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-03-21 07:44:50.868 ***🔗
bOb_archive_is_instrumented_2042@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='54b284b36c33bbd4' from='localhost' version='1.0' xml:lang='en'>

*** User 2024-03-21 07:44:50.868 ***🔗
bOb_archive_is_instrumented_2042@localhost/res1 in
<stream:features>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-03-21 07:44:50.868 ***🔗
bOb_archive_is_instrumented_2042@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl9hcmNoaXZlX2lzX2luc3RydW1lbnRlZF8yMDQyAG1ha3JvbGlrYQ==</auth>



*** User 2024-03-21 07:44:50.869 ***🔗
bOb_archive_is_instrumented_2042@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2024-03-21 07:44:50.869 ***🔗
bOb_archive_is_instrumented_2042@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2024-03-21 07:44:50.869 ***🔗
bOb_archive_is_instrumented_2042@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d9168bb2119fc01a' from='localhost' version='1.0' xml:lang='en' to='bob_archive_is_instrumented_2042@localhost'>

*** User 2024-03-21 07:44:50.870 ***🔗
bOb_archive_is_instrumented_2042@localhost/res1 in
<stream:features>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2024-03-21 07:44:50.870 ***🔗
bOb_archive_is_instrumented_2042@localhost/res1 out
<iq type='set' id='793c8079de5718112c85fc6431acac7e'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2024-03-21 07:44:50.871 ***🔗
bOb_archive_is_instrumented_2042@localhost/res1 in
<iq id='793c8079de5718112c85fc6431acac7e' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_archive_is_instrumented_2042@localhost/res1</jid>
	</bind>
</iq>



*** User 2024-03-21 07:44:50.871 ***🔗
bob_archive_is_instrumented_2042@localhost/res1 out
<iq type='set' id='41c86f822eabb1788e5ca2a3ff0568d5'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 07:44:50.872 ***🔗
bob_archive_is_instrumented_2042@localhost/res1 in
<iq from='localhost' to='bob_archive_is_instrumented_2042@localhost/res1' id='41c86f822eabb1788e5ca2a3ff0568d5' type='result'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2024-03-21 07:44:50.872 ***🔗
bob_archive_is_instrumented_2042@localhost/res1 out
<presence/>



*** User 2024-03-21 07:44:50.875 ***🔗
bob_archive_is_instrumented_2042@localhost/res1 in
<presence from='bob_archive_is_instrumented_2042@localhost/res1' to='bob_archive_is_instrumented_2042@localhost/res1'/>



*** User 2024-03-21 07:44:50.875 ***🔗
alice_archive_is_instrumented_2042@localhost/res1 out
<message type='chat' to='bob_archive_is_instrumented_2042@localhost/res1'>
	<body>OH, HAI!</body>
</message>



*** User 2024-03-21 07:44:50.938 ***🔗
bob_archive_is_instrumented_2042@localhost/res1 in
<message from='alice_archive_is_instrumented_2042@localhost/res1' to='bob_archive_is_instrumented_2042@localhost/res1' type='chat'>
	<body>OH, HAI!</body>
	<stanza-id by='bob_archive_is_instrumented_2042@localhost' id='C516S7E1SS81' xmlns='urn:xmpp:sid:0'/>
</message>



*** User 2024-03-21 07:44:50.969 ***🔗
Matching events: [{{mod_mam_pm_archive_message,
                    #{host_type => <<"localhost">>}},
                   #{count => 1,time => 17,
                     params =>
                      #{packet =>
                         {xmlel,<<"message">>,
                          [{<<"type">>,<<"chat">>},
                           {<<"to">>,
                            <<"bob_archive_is_instrumented_2042@localhost/res1">>}],
                          [{xmlel,<<"body">>,[],[{xmlcdata,<<"OH, HAI!">>}]}]},
                        direction => outgoing,
                        message_id => 438017815264260097,
                        local_jid =>
                         {jid,<<"alice_archive_is_instrumented_2042">>,
                          <<"localhost">>,<<"res1">>},
                        remote_jid =>
                         {jid,<<"bob_archive_is_instrumented_2042">>,
                          <<"localhost">>,<<"res1">>},
                        source_jid =>
                         {jid,<<"alice_archive_is_instrumented_2042">>,
                          <<"localhost">>,<<"res1">>},
                        is_groupchat => false,archive_id => 795,
                        origin_id => none}}}]

*** User 2024-03-21 07:44:51.044 ***🔗
waiting for archive_size is done in 0 miliseconds

*** User 2024-03-21 07:44:51.045 ***🔗
Matching events: [{{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1842,time_per_message => 1842}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1614,time_per_message => 1614}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1804,time_per_message => 1804}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1512,time_per_message => 1512}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 4419,time_per_message => 4419}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1700,time_per_message => 1700}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 3775,time_per_message => 3775}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1505,time_per_message => 1505}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 3865,time_per_message => 1933}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 4921,time_per_message => 4921}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 2925,time_per_message => 2925}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 2537,time_per_message => 2537}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 4746,time_per_message => 2373}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 57768,time_per_message => 57768}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 56039,time_per_message => 56039}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 2987,time_per_message => 2987}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 2332,time_per_message => 2332}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 8395,time_per_message => 8395}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 69830,time_per_message => 34915}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1888,time_per_message => 1888}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 2237,time_per_message => 2237}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 68743,time_per_message => 34372}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 5489,time_per_message => 5489}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 3744,time_per_message => 3744}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 3477,time_per_message => 3477}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 4511,time_per_message => 4511}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 13680,time_per_message => 6840}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 7718,time_per_message => 7718}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 10495,time_per_message => 10495}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 10438,time_per_message => 10438}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 11417,time_per_message => 5709}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 5002,time_per_message => 5002}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 5538,time_per_message => 2769}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 6007,time_per_message => 6007}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 4685,time_per_message => 2343}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 7072,time_per_message => 7072}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 4537,time_per_message => 4537}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 3,time => 14029,time_per_message => 4676}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 3,time => 65199,time_per_message => 21733}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 3,time => 68924,time_per_message => 22975}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 5,time => 71724,time_per_message => 14345}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 5799,time_per_message => 5799}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 61732,time_per_message => 30866}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 7,time => 92793,time_per_message => 13256}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 3249,time_per_message => 3249}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 3663,time_per_message => 3663}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 5998,time_per_message => 5998}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 4725,time_per_message => 4725}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 5950,time_per_message => 5950}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 4,time => 11622,time_per_message => 2906}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 3,time => 19848,time_per_message => 6616}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1959,time_per_message => 1959}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 5089,time_per_message => 2545}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 3,time => 16278,time_per_message => 5426}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 3413,time_per_message => 3413}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 4421,time_per_message => 4421}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 4222,time_per_message => 4222}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 8190,time_per_message => 8190}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 9,time => 115934,time_per_message => 12882}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 8959,time_per_message => 4480}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 2793,time_per_message => 2793}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 2683,time_per_message => 2683}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 3043,time_per_message => 3043}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 3373,time_per_message => 3373}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 9958,time_per_message => 4979}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 2842,time_per_message => 2842}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 8591,time_per_message => 8591}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 11298,time_per_message => 11298}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 11195,time_per_message => 11195}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 30,time => 19286,time_per_message => 643}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 20489,time_per_message => 10245}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 13032,time_per_message => 6516}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 15169,time_per_message => 7585}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 13366,time_per_message => 13366}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 9,time => 56383,time_per_message => 6265}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 3,time => 50017,time_per_message => 16672}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 3,time => 52012,time_per_message => 17337}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 3383,time_per_message => 3383}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 3,time => 15157,time_per_message => 5052}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1994,time_per_message => 1994}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 9781,time_per_message => 9781}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1760,time_per_message => 1760}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 14,time => 91377,time_per_message => 6527}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 24,time => 146013,time_per_message => 6084}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 15,time => 105873,time_per_message => 7058}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 13511,time_per_message => 13511}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 5,time => 18240,time_per_message => 3648}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 10555,time_per_message => 10555}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 11102,time_per_message => 11102}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 4,time => 37046,time_per_message => 9262}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 8974,time_per_message => 8974}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 3,time => 34885,time_per_message => 11628}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 11,time => 77397,time_per_message => 7036}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 2830,time_per_message => 1415}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1292,time_per_message => 1292}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1638,time_per_message => 1638}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 2007,time_per_message => 2007}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 2145,time_per_message => 2145}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 5463,time_per_message => 2732}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1231,time_per_message => 1231}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1097,time_per_message => 1097}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 3,time => 3162,time_per_message => 1054}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 853,time_per_message => 853}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1535,time_per_message => 1535}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1259,time_per_message => 1259}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1455,time_per_message => 1455}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 3,time => 4685,time_per_message => 1562}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 2676,time_per_message => 2676}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1591,time_per_message => 1591}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1668,time_per_message => 1668}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1253,time_per_message => 1253}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 49297,time_per_message => 49297}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 50990,time_per_message => 50990}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 50271,time_per_message => 50271}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 49527,time_per_message => 49527}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 55570,time_per_message => 27785}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 5235,time_per_message => 5235}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 5230,time_per_message => 5230}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 6870,time_per_message => 6870}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1406,time_per_message => 1406}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 2159,time_per_message => 2159}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 2239,time_per_message => 2239}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 5105,time_per_message => 2553}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 4826,time_per_message => 2413}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 2400,time_per_message => 2400}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 2660,time_per_message => 2660}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 5998,time_per_message => 2999}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 4295,time_per_message => 2148}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 4347,time_per_message => 2174}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 4286,time_per_message => 4286}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 4882,time_per_message => 2441}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 3743,time_per_message => 3743}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 5292,time_per_message => 5292}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 3738,time_per_message => 3738}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 3,time => 5862,time_per_message => 1954}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 1742,time_per_message => 1742}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 6737,time_per_message => 3369}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 3348,time_per_message => 1674}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 4335,time_per_message => 4335}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 6693,time_per_message => 3347}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 68005,time_per_message => 68005}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 67679,time_per_message => 67679}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 69060,time_per_message => 69060}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 2,time => 72482,time_per_message => 36241}},
                  {{mod_mam_pm_flushed,#{host_type => <<"localhost">>}},
                   #{count => 1,time => 7240,time_per_message => 7240}}]

*** User 2024-03-21 07:44:51.057 ***🔗
Matching events: [{{mod_mam_pm_remove_archive,#{host_type => <<"localhost">>}},
                   #{count => 1,
                     jid =>
                         {jid,<<"alice_archive_is_instrumented_2042">>,
                              <<"localhost">>,<<>>}}}]

*** User 2024-03-21 07:44:51.057 ***🔗
bob_archive_is_instrumented_2042@localhost/res1 out
</stream:stream>

*** User 2024-03-21 07:44:51.058 ***🔗
bob_archive_is_instrumented_2042@localhost/res1 in
</stream:stream>

*** User 2024-03-21 07:44:51.059 ***🔗
alice_archive_is_instrumented_2042@localhost/res1 out
</stream:stream>

*** User 2024-03-21 07:44:51.060 ***🔗
alice_archive_is_instrumented_2042@localhost/res1 in
</stream:stream>
*** CT 2024-03-21 07:44:51.069 *** View log from node mongooseim@localhost when finished🔗 mongooseim@localhost_3149.html



=== Ended at 2024-03-21 07:44:51
=== successfully completed test case
=== === Returned value: ok