for i in range(2):
p.inversions.iterate(
inverse_problem_configuration="my_inversion",
timeout_in_seconds=360,
ping_interval_in_seconds=10,
)
p.inversions.delete_disposable_files(
inverse_problem_configuration="my_inversion",
data_to_remove=["auxiliary", "gradients", "waveforms"],
)
[2024-07-05 10:12:28,152] INFO: Resuming iteration #1.
[2024-07-05 10:12:28,153] INFO: 1 new tasks have been issued.
[2024-07-05 10:12:28,153] INFO: Processing task `gradient`
[2024-07-05 10:12:28,435] INFO: Submitting job array with 5 jobs ...
Uploading 1 files...
Uploading 1 files...
Uploading 1 files...
Uploading 1 files...
Uploading 1 files...
[2024-07-05 10:12:28,491] INFO: Launched adjoint simulations for 5 events. Please check again to see if they are finished.
[2024-07-05 10:12:28,492] INFO: Some tasks of iteration #1 are still running. Please check again later.
[2024-07-05 10:12:38,494] INFO: Processing task `gradient`
[2024-07-05 10:12:38,864] INFO: 5 events have already been submitted. They will not be submitted again.
[2024-07-05 10:12:39,354] INFO:
Iteration 1: Number of events: 5 chi = 0.006215537426211551 ||g|| = 0.009661534263313525
pred = -0.009679722626408399 ared = -0.011474538731562624 norm_update = 0.9534157084293066 tr_radius = 0.9534159053003332
[2024-07-05 10:12:39,364] INFO: 1 new tasks have been issued.
[2024-07-05 10:12:39,365] INFO: Processing task `preconditioner`
[2024-07-05 10:12:39,451] INFO: Some tasks of iteration #1 are still running. Please check again later.
[2024-07-05 10:12:49,468] INFO: Processing task `preconditioner`
[2024-07-05 10:12:49,590] INFO: 1 new tasks have been issued.
[2024-07-05 10:12:49,590] INFO: Processing task `misfit`
[2024-07-05 10:12:49,643] INFO: Submitting job array with 5 jobs ...
[2024-07-05 10:12:49,761] INFO: Launched simulations for 5 events. Please check again to see if they are finished.
[2024-07-05 10:12:49,762] INFO: Some tasks of iteration #1 are still running. Please check again later.
[2024-07-05 10:12:59,793] INFO: Processing task `misfit`
[2024-07-05 10:13:00,531] INFO:
old misfit control group: 0.006215537426211551
new misfit control group: 0.004515145986994417
predicted reduction control group: -0.0008915795466015189
actual reduction control group: -0.001700391439217134
5 out of 5 event(s) improved the misfit.
[2024-07-05 10:13:00,532] INFO:
Model update accepted.
[2024-07-05 10:13:00,532] INFO: 1 new tasks have been issued.
[2024-07-05 10:13:00,532] INFO: Processing task `finalize_iteration`
[2024-07-05 10:13:00,588] INFO: Succesfully completed iteration #1.
[2024-07-05 10:13:00,590] INFO: Adding new iteration #2.
[2024-07-05 10:13:00,596] INFO: ... searching for obsolete files in project/INVERSIONS/my_inversion/00000
[2024-07-05 10:13:00,598] INFO: ... searching for obsolete files in project/INVERSIONS/my_inversion/00001
[2024-07-05 10:13:00,750] INFO: Freed up 6.0 MB of space.
[2024-07-05 10:13:00,753] INFO: Resuming iteration #2.
[2024-07-05 10:13:00,754] INFO: 1 new tasks have been issued.
[2024-07-05 10:13:00,754] INFO: Processing task `gradient`
[2024-07-05 10:13:01,025] INFO: Submitting job array with 5 jobs ...
Uploading 1 files...
Uploading 1 files...
Uploading 1 files...
Uploading 1 files...
Uploading 1 files...
[2024-07-05 10:13:01,091] INFO: Launched adjoint simulations for 5 events. Please check again to see if they are finished.
[2024-07-05 10:13:01,093] INFO: Some tasks of iteration #2 are still running. Please check again later.
[2024-07-05 10:13:11,095] INFO: Processing task `gradient`
[2024-07-05 10:13:11,288] INFO: 5 events have already been submitted. They will not be submitted again.
[2024-07-05 10:13:11,761] INFO:
Iteration 2: Number of events: 5 chi = 0.004515145986994417 ||g|| = 0.006397880517810244
pred = -0.0008915795466015189 ared = -0.001700391439217134 norm_update = 0.2218134244873827 tr_radius = 1.9068318106006663
[2024-07-05 10:13:11,778] INFO: 1 new tasks have been issued.
[2024-07-05 10:13:11,778] INFO: Processing task `preconditioner`
[2024-07-05 10:13:11,876] INFO: Some tasks of iteration #2 are still running. Please check again later.
[2024-07-05 10:13:21,905] INFO: Processing task `preconditioner`
[2024-07-05 10:13:22,035] INFO: 1 new tasks have been issued.
[2024-07-05 10:13:22,036] INFO: Processing task `misfit`
[2024-07-05 10:13:22,088] INFO: Submitting job array with 5 jobs ...
[2024-07-05 10:13:22,205] INFO: Launched simulations for 5 events. Please check again to see if they are finished.
[2024-07-05 10:13:22,206] INFO: Some tasks of iteration #2 are still running. Please check again later.
[2024-07-05 10:13:32,248] INFO: Processing task `misfit`
[2024-07-05 10:13:33,140] INFO:
old misfit control group: 0.004515145986994417
new misfit control group: 0.0028780409841414486
predicted reduction control group: -0.0011415262560180658
actual reduction control group: -0.001637105002852968
5 out of 5 event(s) improved the misfit.
[2024-07-05 10:13:33,140] INFO:
Model update accepted.
[2024-07-05 10:13:33,141] INFO: 1 new tasks have been issued.
[2024-07-05 10:13:33,141] INFO: Processing task `finalize_iteration`
[2024-07-05 10:13:33,215] INFO: Succesfully completed iteration #2.
[2024-07-05 10:13:33,218] INFO: Adding new iteration #3.
[2024-07-05 10:13:33,224] INFO: ... searching for obsolete files in project/INVERSIONS/my_inversion/00000
[2024-07-05 10:13:33,227] INFO: ... searching for obsolete files in project/INVERSIONS/my_inversion/00001
[2024-07-05 10:13:33,318] INFO: ... searching for obsolete files in project/INVERSIONS/my_inversion/00002
[2024-07-05 10:13:33,468] INFO: Freed up 6.0 MB of space.