/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 17306
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2219.2+1806_weekly_bin906
RA = 334.813, Dec = 18.1026
tmin = 786931201, tmax = 787536001
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='17381200', job_status='RUN', time_executed='2025-12-16 03:19:40.736297', time_epoch_executed='1765883980.74' WHERE source_name='4FGL J2219.2+1806' and cadence='weekly' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17381200

Creating custom pfile directory:
/lscratch/kocevski/17381200/pfiles/

Retrieving the FT1 file...

Issuing command:
datacat find --group FT1 --filter 'nMetStop>=786931201.0 && nMetStart<787536001.0' /Data/Flight/Reprocess/P305

Issuing command:
datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=786931201.0 && nMetStart<787536001.0' /Data/Flight/Level1/LPA

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17381200/ft1_4FGL_J2219.2+1806_weekly_bin906.fits


Retrieving the FT1 file...

Issuing command:
datacat find --group FT2 --filter 'nMetStop>=786931201.0 && nMetStart<787536001.0' /Data/Flight/Level1/LPA

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17381200/ft2_4FGL_J2219.2+1806_weekly_bin906.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17381200/ft1_4FGL_J2219.2+1806_weekly_bin906.fits outfile=/lscratch/kocevski/17381200/ft1_filteredMKT_4FGL_J2219.2+1806_weekly_bin906.fits ra=334.813 dec=18.1026 rad=12.0 tmin=786931201.0 tmax=787536001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.43
user 4.45
sys 0.35

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17381200/ft2_4FGL_J2219.2+1806_weekly_bin906.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17381200/ft2_4FGL_J2219.2+1806_weekly_bin906.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/17381200/ft1_filteredMKT_4FGL_J2219.2+1806_weekly_bin906.fits evtable="EVENTS" outfile="/lscratch/kocevski/17381200/ft1_filtered_4FGL_J2219.2+1806_weekly_bin906.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.90
user 0.18
sys 0.15

Number of photons that the gtmktime cut: 1822

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17381200/ft1_filtered_4FGL_J2219.2+1806_weekly_bin906.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17381200/ft2_4FGL_J2219.2+1806_weekly_bin906.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17381200/ltcube_786931201_787536001_4FGL_J2219.2+1806_weekly_bin906.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /lscratch/kocevski/17381200/ft2_4FGL_J2219.2+1806_weekly_bin906.fits
.....................!
real 16.30
user 15.23
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17381200/ft1_filtered_4FGL_J2219.2+1806_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17381200/ft2_4FGL_J2219.2+1806_weekly_bin906.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17381200/ltcube_786931201_787536001_4FGL_J2219.2+1806_weekly_bin906.fits outfile=/lscratch/kocevski/17381200/expmap_786931201_787536001_4FGL_J2219.2+1806_weekly_bin906.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/17381200/ltcube_786931201_787536001_4FGL_J2219.2+1806_weekly_bin906.fits
.....................!
real 61.19
user 56.59
sys 3.69

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 154 point sources and 0 extended sources

Setting source of interest to:
4FGL J2219.2+1806 @ 334.813 18.1026

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17381200/ft1_filtered_4FGL_J2219.2+1806_weekly_bin906.fits scfile=/lscratch/kocevski/17381200/ft2_4FGL_J2219.2+1806_weekly_bin906.fits outfile=/lscratch/kocevski/17381200/cmap_786931201_787536001_4FGL_J2219.2+1806_weekly_bin906.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=334.813 yref=18.1026 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.00
user 0.21
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17381200/ft1_filtered_4FGL_J2219.2+1806_weekly_bin906.fits scfile=/lscratch/kocevski/17381200/ft2_4FGL_J2219.2+1806_weekly_bin906.fits outfile=/lscratch/kocevski/17381200/cmap_HighResolution_786931201_787536001_4FGL_J2219.2+1806_weekly_bin906.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=334.813 yref=18.1026 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.94
user 0.21
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17381200/ft1_filtered_4FGL_J2219.2+1806_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17381200/ft2_4FGL_J2219.2+1806_weekly_bin906.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17381200/Model_4FGL_J2219.2+1806_weekly_bin906.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/17381200/ft1_filtered_4FGL_J2219.2+1806_weekly_bin906.fits.....................!
real 59.14
user 57.28
sys 0.92

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17381200/ft1_filtered_4FGL_J2219.2+1806_weekly_bin906.fits', '/lscratch/kocevski/17381200/ft2_4FGL_J2219.2+1806_weekly_bin906.fits', expMap='/lscratch/kocevski/17381200/expmap_786931201_787536001_4FGL_J2219.2+1806_weekly_bin906.fits', expCube='/lscratch/kocevski/17381200/ltcube_786931201_787536001_4FGL_J2219.2+1806_weekly_bin906.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17381200/Model_4FGL_J2219.2+1806_weekly_bin906.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2219.2+1806'

4FGL J2219.2+1806
   Spectrum: LogParabola
262         norm:  3.275e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
263        alpha:  2.178e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
264         beta:  8.363e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
265           Eb:  7.797e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17381200/ft1_filtered_4FGL_J2219.2+1806_weekly_bin906.fits
Spacecraft file(s): /lscratch/kocevski/17381200/ft2_4FGL_J2219.2+1806_weekly_bin906.fits
Exposure map: /lscratch/kocevski/17381200/expmap_786931201_787536001_4FGL_J2219.2+1806_weekly_bin906.fits
Exposure cube: /lscratch/kocevski/17381200/ltcube_786931201_787536001_4FGL_J2219.2+1806_weekly_bin906.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17381200/Model_4FGL_J2219.2+1806_weekly_bin906.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 18937.7096514

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 18937.6865093

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    94.293       1.0000          .0000       .10000E+07
     2 'norm      '    2.9518       1.0000          .0000       .10000E+07
     3 'norm      '    1.5167       1.0000          .0000       .10000E+07
     4 'Prefactor '    .62782E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    50.249       1.0000          .0000       .10000E+07
     6 'norm      '    .65809E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    4.0056       1.0000          .0000       .10000E+07
     8 'norm      '    3.1582       1.0000          .0000       .10000E+07
     9 'Prefactor '    .19961E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    .64671E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    1.2353       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.2297       1.0000         .10000E-03   10000.    
    13 'norm      '    .79882       1.0000          .0000       .10000E+07
    14 'norm      '    .56169E-01   1.0000          .0000       .10000E+07
    15 'Prefactor '    .92149E-08   1.0000          .0000       .10000E+07
    16 'Prefactor '    .35805E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    .97575       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1452       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .80264       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   18937.69     FROM MIGRAD    STATUS=CONVERGED    121 CALLS     1523 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     93.489        59.332        .83528E-07    .22334E-02
   2  norm          2.9536        1.3993        .73483E-08   -.18473E-02
   3  norm          1.5171        1.5430        .80341E-08    .69524E-03
   4  Prefactor      .0000        10.111        .26251E-08** at limit **
   5  Prefactor     50.277        1.5537       -.41306E-08    .79646E-01
   6  norm          .66020E-01    .88449        .42953E-07** at limit **
   7  Prefactor     4.0471        5.2304        .17422E-07    .30658E-03
   8  norm          3.1577        2.2426       -.14970E-06    .14557E-02
   9  Prefactor     .55511E-10    10.302        .87887E-07** at limit **
  10  Prefactor      .0000        4.0389        .23724E-06** at limit **
  11  Prefactor     1.2353        .16300       -.15358E-07   -.68752E-03
  12  Prefactor     4.2398        3.9413        .26475E-05   -.49247E-04
  13  norm          .79871        .50818       -.61304E-08    .10489E-02
  14  norm          .56175E-01    1.1043       -.64230E-06** at limit **
  15  Prefactor     .55511E-10    3.7994        .16345E-06** at limit **
  16  Prefactor     .55511E-10    3.1116        .74472E-06** at limit **
  17  Prefactor     .97579        .11791        .20061E-07    .84452E-03
  18  Normalizat    1.1450        .16024       -.30701E-05    .11084E-03
  19  Prefactor     .80271        .80153E-01    .10813E-05    .15568E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 93.4888
  norm       = 2.95362
  norm       = 1.51711
  Prefactor  = 0
  Prefactor  = 50.2766
  norm       = 0.0660202
  Prefactor  = 4.04707
  norm       = 3.15772
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 1.23525
  Prefactor  = 4.23979
  norm       = 0.798714
  norm       = 0.0561753
  Prefactor  = 5.55112e-11
  Prefactor  = 5.55112e-11
  Prefactor  = 0.975786
  Normalizat = 1.14502
  Prefactor  = 0.802713
 **********
 **   18 **HESSE 
 **********

 FCN=   18937.69     FROM HESSE     STATUS=OK           320 CALLS     1843 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     93.489        59.355        .10299E-03   -1.5515    
   2  norm          2.9536        1.4056        .59085E-03   -1.5674    
   3  norm          1.5171        1.5595        .86760E-03   -1.5683    
   4  Prefactor      .0000        10.110        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     50.277        27.322        .14108E-03   -1.5566    
   6  norm          .66020E-01    .25637        .22107E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.0471        5.2446        .50365E-03   -1.5668    
   8  norm          3.1577        2.2455        .57009E-03   -1.5672    
   9  Prefactor     .55511E-10    10.215        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        4.0257        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.2353        .16299        .43334E-02   -1.5486    
  12  Prefactor     4.2398        3.9454        .48983E-02   -1.5296    
  13  norm          .79871        .51203        .53023E-03   -1.5690    
  14  norm          .56175E-01    .31316        .28974E-02   -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .55511E-10    3.7994        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .55511E-10    3.0962        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .97579        .11778        .35480E-02   -1.5510    
  18  Normalizat    1.1450        .13491        .71600E-01   -.88319    
  19  Prefactor     .80271        .67151E-01    .43752E-01   -.99628    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19129e-07
Minuit parameter uncertainties:
  1  59.3556
  2  1.40562
  3  1.55953
  4  1.47799e-05
  5  27.3219
  6  0.256372
  7  5.24457
  8  2.24547
  9  3.43291e-05
  10  9.89787e-06
  11  0.162992
  12  3.94567
  13  0.512028
  14  0.26527
  15  2.07039e-05
  16  3.14647e-05
  17  0.117783
  18  0.134955
  19  0.0671575
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 18937.6863765

Extracting fit parameters...

4FGL J2219.2+1806
   Spectrum: LogParabola
262         norm:  3.158e+00  2.245e+00  0.000e+00  1.000e+06 ( 1.000e-12)
263        alpha:  2.178e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
264         beta:  8.363e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
265           Eb:  7.797e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  8.027e-01  6.716e-02  0.000e+00  1.000e+01 ( 1.000e+00)
501        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
502        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
499   Normalization:  1.145e+00  1.350e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.20
Ra Dec: 334.813 18.103
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 1.97e-08 +/- 1.40e-08
Energy Flux (Fixed Index): 8.40e-06 +/- 5.97e-06

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18937.4400497
delta logL = 0.246326740024

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18937.4276941
delta logL = 0.258682410949

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7684       1.0000          .0000       .10000E+07
     2 'alpha     '    1.7185       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1555       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80033       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   18937.43     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      206 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7684        2.3692        .61143E-03   -.40176E-01
   2  alpha         1.7186        .49836        .44035       -.76863E-04
   3  Normalizat    1.1555        .12987        .71314E-01   -.16584E-04
   4  Prefactor     .80033        .66744E-01    .43721E-01    .50349E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.76839
  alpha      = 1.71862
  Normalizat = 1.15549
  Prefactor  = 0.800325
 **********
 **   18 **HESSE 
 **********

 FCN=   18937.43     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7684        2.5016        .17430E-04   -1.5675    
   2  alpha         1.7186        .63738        .25805E-01   -.31788    
   3  Normalizat    1.1555        .15421        .31556E-03   -.87989    
   4  Prefactor     .80033        .79351E-01    .19072E-03   -.99716    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.90426e-09
Minuit parameter uncertainties:
  1  2.50165
  2  0.645296
  3  0.154274
  4  0.0793622
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18937.427694
delta logL = 0.258682474276

Extracting fit parameters...

4FGL J2219.2+1806
   Spectrum: LogParabola
262         norm:  2.768e+00  2.502e+00  0.000e+00  1.000e+06 ( 1.000e-12)
263        alpha:  1.719e+00  6.453e-01  0.000e+00  5.000e+00 ( 1.000e+00)
264         beta:  8.363e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
265           Eb:  7.797e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  8.003e-01  7.936e-02  0.000e+00  1.000e+01 ( 1.000e+00)
501        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
502        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
499   Normalization:  1.155e+00  1.543e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.71
Ra Dec: 334.813 18.103
Photon Index (Free Index): 1.72 +/- 0.65
Photon Flux (Free Index): 1.11e-08 +/- 1.35e-08
Energy Flux (Free Index): 1.10e-05 +/- 1.05e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/17381200/cmap_HighResolution_786931201_787536001_4FGL_J2219.2+1806_weekly_bin906.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.97e-08', energy_flux2='1.10e-05', photon_flux_error='1.40e-08', dlogl='2.59e-01', energy_flux='8.40e-06', photon_flux2='1.11e-08', job_status='DONE', time_completed='2025-12-16 03:30:58.853100', photon_index_error2='0.65', photon_index2='1.72', ts='7.20', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='1.05e-05', EG='1.15', time_epoch_completed='1765884658.85', return_code='0', job_id='17381200', GAL2='0.80', EG2='1.16', return_code2='0', energy_flux_error='5.97e-06', photon_flux_error2='1.35e-08', ts2='7.71', photon_index='2.18' WHERE bin_id='906' AND source_name='4FGL J2219.2+1806' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 16 03:30:59 PST 2025

