/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 = 7296
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1221.3+3010_daily_bin2114
RA = 185.345, Dec = 30.1677
tmin = 787276801, 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='17372199', job_status='RUN', time_executed='2025-12-16 00:59:08.174101', time_epoch_executed='1765875548.17' WHERE source_name='4FGL J1221.3+3010' and cadence='daily' and bin_id='2114'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17372199

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17372199/ft1_4FGL_J1221.3+3010_daily_bin2114.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17372199/ft2_4FGL_J1221.3+3010_daily_bin2114.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17372199/ft1_4FGL_J1221.3+3010_daily_bin2114.fits outfile=/lscratch/kocevski/17372199/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin2114.fits ra=185.345 dec=30.1677 rad=12.0 tmin=787276801.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 2.52
user 1.72
sys 0.19

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17372199/ft2_4FGL_J1221.3+3010_daily_bin2114.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17372199/ft2_4FGL_J1221.3+3010_daily_bin2114.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/17372199/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin2114.fits evtable="EVENTS" outfile="/lscratch/kocevski/17372199/ft1_filtered_4FGL_J1221.3+3010_daily_bin2114.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.91
user 0.20
sys 0.13

Number of photons that the gtmktime cut: 709

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17372199/ft1_filtered_4FGL_J1221.3+3010_daily_bin2114.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17372199/ft2_4FGL_J1221.3+3010_daily_bin2114.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17372199/ltcube_787276801_787536001_4FGL_J1221.3+3010_daily_bin2114.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/17372199/ft2_4FGL_J1221.3+3010_daily_bin2114.fits
.....................!
real 8.58
user 7.79
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17372199/ft1_filtered_4FGL_J1221.3+3010_daily_bin2114.fits evtable="EVENTS" scfile=/lscratch/kocevski/17372199/ft2_4FGL_J1221.3+3010_daily_bin2114.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17372199/ltcube_787276801_787536001_4FGL_J1221.3+3010_daily_bin2114.fits outfile=/lscratch/kocevski/17372199/expmap_787276801_787536001_4FGL_J1221.3+3010_daily_bin2114.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/17372199/ltcube_787276801_787536001_4FGL_J1221.3+3010_daily_bin2114.fits
.....................!
real 66.50
user 61.99
sys 3.33

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 199 point sources and 0 extended sources

Setting source of interest to:
4FGL J1221.3+3010 @ 185.345 30.1677

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17372199/ft1_filtered_4FGL_J1221.3+3010_daily_bin2114.fits scfile=/lscratch/kocevski/17372199/ft2_4FGL_J1221.3+3010_daily_bin2114.fits outfile=/lscratch/kocevski/17372199/cmap_787276801_787536001_4FGL_J1221.3+3010_daily_bin2114.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=185.345 yref=30.1677 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.82
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17372199/ft1_filtered_4FGL_J1221.3+3010_daily_bin2114.fits scfile=/lscratch/kocevski/17372199/ft2_4FGL_J1221.3+3010_daily_bin2114.fits outfile=/lscratch/kocevski/17372199/cmap_HighResolution_787276801_787536001_4FGL_J1221.3+3010_daily_bin2114.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=185.345 yref=30.1677 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.84
user 0.21
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17372199/ft1_filtered_4FGL_J1221.3+3010_daily_bin2114.fits evtable="EVENTS" scfile=/lscratch/kocevski/17372199/ft2_4FGL_J1221.3+3010_daily_bin2114.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17372199/Model_4FGL_J1221.3+3010_daily_bin2114.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/17372199/ft1_filtered_4FGL_J1221.3+3010_daily_bin2114.fits.....................!
real 26.69
user 24.94
sys 1.01

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17372199/ft1_filtered_4FGL_J1221.3+3010_daily_bin2114.fits', '/lscratch/kocevski/17372199/ft2_4FGL_J1221.3+3010_daily_bin2114.fits', expMap='/lscratch/kocevski/17372199/expmap_787276801_787536001_4FGL_J1221.3+3010_daily_bin2114.fits', expCube='/lscratch/kocevski/17372199/ltcube_787276801_787536001_4FGL_J1221.3+3010_daily_bin2114.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17372199/Model_4FGL_J1221.3+3010_daily_bin2114.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1221.3+3010'

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  1.833e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
318        Index:  1.707e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  4.501e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17372199/ft1_filtered_4FGL_J1221.3+3010_daily_bin2114.fits
Spacecraft file(s): /lscratch/kocevski/17372199/ft2_4FGL_J1221.3+3010_daily_bin2114.fits
Exposure map: /lscratch/kocevski/17372199/expmap_787276801_787536001_4FGL_J1221.3+3010_daily_bin2114.fits
Exposure cube: /lscratch/kocevski/17372199/ltcube_787276801_787536001_4FGL_J1221.3+3010_daily_bin2114.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17372199/Model_4FGL_J1221.3+3010_daily_bin2114.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) = 7794.77154947

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.6687       1.0000          .0000       .10000E+07
     2 'Prefactor '    .88065E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .10268E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    1.5072       1.0000          .0000       .10000E+07
     5 'Prefactor '    .24980E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    36.176       1.0000          .0000       .10000E+07
     7 'norm      '    13.333       1.0000          .0000       .10000E+07
     8 'Prefactor '    5.3247       1.0000          .0000       .10000E+07
     9 'norm      '    .60590       1.0000          .0000       .10000E+07
    10 'Prefactor '    .39956E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    2.4222       1.0000          .0000       .10000E+07
    12 'Prefactor '    1.5713       1.0000          .0000       .10000E+07
    13 'Prefactor '    .91674       1.0000          .0000       .10000E+07
    14 'norm      '    .23817       1.0000          .0000       .10000E+07
    15 'norm      '    3.7449       1.0000          .0000       .10000E+07
    16 'Prefactor '    .23014E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .44360E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .90802E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    .81834E-05   1.0000          .0000       .10000E+07
    20 'norm      '    2.9798       1.0000          .0000       .10000E+07
    21 'Prefactor '    .18339E-02   1.0000          .0000       .10000E+07
    22 'norm      '    2.8216       1.0000          .0000       .10000E+07
    23 'Prefactor '    .31373E-03   1.0000          .0000       .10000E+07
    24 'norm      '    .28072E-06   1.0000          .0000       .10000E+07
    25 'norm      '    8.8244       1.0000          .0000       .10000E+07
    26 'norm      '    6.8623       1.0000          .0000       .10000E+07
    27 'Normalizat'    1.1049       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1075       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7794.766     FROM MIGRAD    STATUS=CONVERGED    155 CALLS     2519 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.6653        3.0296        .23767E-06    .47333E-02
   2  Prefactor     .18657E-06    137.80       -.70869E-05** at limit **
   3  Prefactor     .16431E-07    6.1059       -.62984E-06** at limit **
   4  Prefactor     1.5272        13.655       -.49513E-05   -.34470E-02
   5  Prefactor      .0000        .67900        .58945E-08** at limit **
   6  Prefactor     36.314        2.2288        .10142E-06   -.12606    
   7  norm          13.333        2.1065        .11161E-06    .24185E-02
   8  Prefactor     5.3578        4.7627        .23579E-06    .64296E-03
   9  norm          .60600        2.3603       -.85455E-06   -.95715E-04
  10  Prefactor     .36630E-01    .81822       -.28838E-08** at limit **
  11  Prefactor     2.4230        2.1026        .63766E-07   -.55793E-03
  12  Prefactor     1.5718        1.6783        .54208E-08    .64059E-03
  13  Prefactor     .91981        .73646       -.26882E-06    .53542E-01
  14  norm          .23827        .20174       -.85680E-09** at limit **
  15  norm          3.7420        3.2318        .23691E-06   -.19042E-02
  16  Prefactor     .88818E-09    5.0147        .94423E-06** at limit **
  17  Prefactor     .44403E-06    3.5724        .19906E-06** at limit **
  18  Prefactor      .0000        1.8208       -.42746E-06** at limit **
  19  Prefactor      .0000        1.7623       -.21131E-06** at limit **
  20  norm          2.9811        4.3233        .12363E-05   -.24861E-02
  21  Prefactor     .66613E-09    10.668        .10807E-06** at limit **
  22  norm          2.8225        2.8471        .48564E-06   -.66450E-03
  23  Prefactor     .41173E-06    4.3498        .40903E-06** at limit **
  24  norm           .0000        1.5757        .25213E-06** at limit **
  25  norm          8.8435        3.3404       -.12771E-06    .11915E-02
  26  norm          6.8763        1.9433       -.10185E-06   -.17846E-02
  27  Normalizat    1.1046        .19729        .35377E-06    .21149E-03
  28  Prefactor     1.1075        .22737        .12555E-04    .19528E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.66531
  Prefactor  = 1.86573e-07
  Prefactor  = 1.64313e-08
  Prefactor  = 1.52717
  Prefactor  = 0
  Prefactor  = 36.3143
  norm       = 13.3333
  Prefactor  = 5.35776
  norm       = 0.606002
  Prefactor  = 0.0366298
  Prefactor  = 2.42302
  Prefactor  = 1.57184
  Prefactor  = 0.919811
  norm       = 0.238269
  norm       = 3.74202
  Prefactor  = 8.88178e-10
  Prefactor  = 4.44034e-07
  Prefactor  = 0
  Prefactor  = 0
  norm       = 2.98109
  Prefactor  = 6.66134e-10
  norm       = 2.82255
  Prefactor  = 4.11726e-07
  norm       = 0
  norm       = 8.84353
  norm       = 6.87633
  Normalizat = 1.10459
  Prefactor  = 1.1075
 **********
 **   18 **HESSE 
 **********

 FCN=   7794.766     FROM HESSE     STATUS=OK           595 CALLS     3114 TOTAL
                     EDM=   .30E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.6653        11.688        .36188E-03   -1.5653    
   2  Prefactor     .18657E-06    9.4209        .76082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .16431E-07    6.4438        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.5272        13.824        .87123E-03   -1.5683    
   5  Prefactor      .0000        .67627        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     36.314        71.443        .16628E-03   -1.5587    
   7  norm          13.333        2.1098        .27406E-03   -1.5635    
   8  Prefactor     5.3578        4.7830        .43531E-03   -1.5662    
   9  norm          .60600        2.4146        .68701E-03   -1.5692    
  10  Prefactor     .36630E-01    2.9462        .88845E-02   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.4230        2.1392        .65736E-03   -1.5677    
  12  Prefactor     1.5718        1.7060        .84768E-03   -1.5683    
  13  Prefactor     .91981        5.0426        .44610E-03   -1.5689    
  14  norm          .23827        .21508        .78800E-03   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.7420        3.3142        .52151E-03   -1.5669    
  16  Prefactor     .88818E-09    5.1350        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .44403E-06    7.3821        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        1.8208        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        1.7688        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.9811        4.3576        .58789E-03   -1.5673    
  21  Prefactor     .66613E-09    10.905        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.8225        2.8566        .60522E-03   -1.5674    
  23  Prefactor     .41173E-06    7.8745        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm           .0000        1.5802        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          8.8435        5.8690        .33718E-03   -1.5648    
  26  norm          6.8763        9.7250        .38276E-03   -1.5656    
  27  Normalizat    1.1046        .16775        .58863E-01   -.89605    
  28  Prefactor     1.1075        .19131        .68154E-01   -.89227    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.98767e-06
Minuit parameter uncertainties:
  1  11.6877
  2  0.00265173
  3  0.000651252
  4  9.18959
  5  2.56415e-07
  6  71.4445
  7  2.10979
  8  4.78302
  9  2.41456
  10  0.657025
  11  2.13925
  12  1.70597
  13  4.30734
  14  0.215083
  15  3.3142
  16  0.00013595
  17  0.00362106
  18  3.15228e-07
  19  1.28665e-05
  20  4.35759
  21  0.000171372
  22  2.85665
  23  0.00360128
  24  7.03752e-06
  25  5.86901
  26  9.72501
  27  0.167832
  28  0.191429
Done.

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

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  2.423e+00  2.139e+00  0.000e+00  1.000e+06 ( 1.000e-13)
318        Index:  1.707e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  4.501e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  1.107e+00  1.914e-01  0.000e+00  1.000e+01 ( 1.000e+00)
626        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
627        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  1.105e+00  1.678e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.42
Ra Dec: 185.345 30.168
Photon Index (Fixed Index): 1.71 +/- 0.00
Photon Flux (Fixed Index): 2.26e-08 +/- 2.00e-08
Energy Flux (Fixed Index): 3.61e-05 +/- 3.18e-05

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) = 7794.72093306
delta logL = 0.0449245727614

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7794.71940926
delta logL = 0.0464483640762

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0816       1.0000          .0000       .10000E+07
     2 'Index     '    1.8674       1.0000          .0000       10.000    
     3 'Normalizat'    1.0994       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1089       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7794.719     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      254 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0832        35.249        .71544E-03    .20048E-02
   2  Index         1.8683        2.9315        .12413        .14616E-03
   3  Normalizat    1.0990        .77382E-01    .58984E-01    .12280E-04
   4  Prefactor     1.1092        .71176E-01    .68092E-01    .14039E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.08316
  Index      = 1.8683
  Normalizat = 1.09902
  Prefactor  = 1.10924
 **********
 **   18 **HESSE 
 **********

 FCN=   7794.719     FROM HESSE     STATUS=OK            33 CALLS      287 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0832        2.1796        .92707E-05   -1.5679    
   2  Index         1.8683        .56169        .66129E-02   -.67685    
   3  Normalizat    1.0990        .19505        .26085E-03   -.89783    
   4  Prefactor     1.1092        .22563        .30124E-03   -.89172    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16877e-11
Minuit parameter uncertainties:
  1  2.17962
  2  0.563655
  3  0.195181
  4  0.225828
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) = 7794.71940337
delta logL = 0.0464542561176

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  2.083e+00  2.180e+00  0.000e+00  1.000e+06 ( 1.000e-13)
318        Index:  1.868e+00  5.637e-01  0.000e+00  1.000e+01 (-1.000e+00)
319        Scale:  4.501e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  1.109e+00  2.258e-01  0.000e+00  1.000e+01 ( 1.000e+00)
626        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
627        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  1.099e+00  1.952e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.51
Ra Dec: 185.345 30.168
Photon Index (Free Index): 1.87 +/- 0.56
Photon Flux (Free Index): 2.94e-08 +/- 3.17e-08
Energy Flux (Free Index): 2.88e-05 +/- 3.20e-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/17372199/cmap_HighResolution_787276801_787536001_4FGL_J1221.3+3010_daily_bin2114.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.26e-08', energy_flux2='2.88e-05', photon_flux_error='2.00e-08', dlogl='4.65e-02', energy_flux='3.61e-05', photon_flux2='2.94e-08', job_status='DONE', time_completed='2025-12-16 01:06:27.254824', photon_index_error2='0.56', photon_index2='1.87', ts='4.42', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='3.20e-05', EG='1.10', time_epoch_completed='1765875987.25', return_code='0', job_id='17372199', GAL2='1.11', EG2='1.10', return_code2='0', energy_flux_error='3.18e-05', photon_flux_error2='3.17e-08', ts2='4.51', photon_index='1.71' WHERE bin_id='2114' AND source_name='4FGL J1221.3+3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 16 01:06:28 PST 2025

