/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.5+2814_daily_bin2114
RA = 185.378, Dec = 28.2382
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='17372200', job_status='RUN', time_executed='2025-12-16 00:59:08.174108', time_epoch_executed='1765875548.17' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='2114'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17372200

Creating custom pfile directory:
/lscratch/kocevski/17372200/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/17372200/ft1_4FGL_J1221.5+2814_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/17372200/ft2_4FGL_J1221.5+2814_daily_bin2114.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17372200/ft1_4FGL_J1221.5+2814_daily_bin2114.fits outfile=/lscratch/kocevski/17372200/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin2114.fits ra=185.378 dec=28.2382 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.36
user 1.71
sys 0.16

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17372200/ft2_4FGL_J1221.5+2814_daily_bin2114.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17372200/ft2_4FGL_J1221.5+2814_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/17372200/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin2114.fits evtable="EVENTS" outfile="/lscratch/kocevski/17372200/ft1_filtered_4FGL_J1221.5+2814_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.89
user 0.18
sys 0.13

Number of photons that the gtmktime cut: 700

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17372200/ft1_filtered_4FGL_J1221.5+2814_daily_bin2114.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17372200/ft2_4FGL_J1221.5+2814_daily_bin2114.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17372200/ltcube_787276801_787536001_4FGL_J1221.5+2814_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/17372200/ft2_4FGL_J1221.5+2814_daily_bin2114.fits
.....................!
real 8.29
user 7.29
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17372200/ft1_filtered_4FGL_J1221.5+2814_daily_bin2114.fits evtable="EVENTS" scfile=/lscratch/kocevski/17372200/ft2_4FGL_J1221.5+2814_daily_bin2114.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17372200/ltcube_787276801_787536001_4FGL_J1221.5+2814_daily_bin2114.fits outfile=/lscratch/kocevski/17372200/expmap_787276801_787536001_4FGL_J1221.5+2814_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/17372200/ltcube_787276801_787536001_4FGL_J1221.5+2814_daily_bin2114.fits
.....................!
real 66.58
user 61.70
sys 3.82

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

Setting source of interest to:
4FGL J1221.5+2814 @ 185.378 28.2382

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17372200/ft1_filtered_4FGL_J1221.5+2814_daily_bin2114.fits scfile=/lscratch/kocevski/17372200/ft2_4FGL_J1221.5+2814_daily_bin2114.fits outfile=/lscratch/kocevski/17372200/cmap_787276801_787536001_4FGL_J1221.5+2814_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.378 yref=28.2382 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.96
user 0.20
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17372200/ft1_filtered_4FGL_J1221.5+2814_daily_bin2114.fits scfile=/lscratch/kocevski/17372200/ft2_4FGL_J1221.5+2814_daily_bin2114.fits outfile=/lscratch/kocevski/17372200/cmap_HighResolution_787276801_787536001_4FGL_J1221.5+2814_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.378 yref=28.2382 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.89
user 0.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17372200/ft1_filtered_4FGL_J1221.5+2814_daily_bin2114.fits evtable="EVENTS" scfile=/lscratch/kocevski/17372200/ft2_4FGL_J1221.5+2814_daily_bin2114.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17372200/Model_4FGL_J1221.5+2814_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/17372200/ft1_filtered_4FGL_J1221.5+2814_daily_bin2114.fits....................!
real 26.16
user 24.86
sys 0.67

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

Using source of interest name: '4FGL J1221.5+2814'

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  3.206e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
325        Index:  2.153e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
326        Scale:  1.082e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8855       1.0000          .0000       .10000E+07
     2 'Prefactor '    .45071E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .12059E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    1.4310       1.0000          .0000       .10000E+07
     5 'Prefactor '    .54079E-06   1.0000          .0000       .10000E+07
     6 'norm      '    13.371       1.0000          .0000       .10000E+07
     7 'Prefactor '    2.8617       1.0000          .0000       .10000E+07
     8 'Prefactor '    3.7760       1.0000          .0000       .10000E+07
     9 'Prefactor '    .18852E-04   1.0000          .0000       .10000E+07
    10 'norm      '    .58472       1.0000          .0000       .10000E+07
    11 'Prefactor '    .11838       1.0000          .0000       .10000E+07
    12 'Prefactor '    2.4291       1.0000          .0000       .10000E+07
    13 'Prefactor '    1.5852       1.0000          .0000       .10000E+07
    14 'Prefactor '    .90183       1.0000          .0000       .10000E+07
    15 'norm      '    .22110       1.0000          .0000       .10000E+07
    16 'norm      '    3.7823       1.0000          .0000       .10000E+07
    17 'Prefactor '    .21933E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .31228E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .18675E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    .59766E-04   1.0000          .0000       .10000E+07
    21 'norm      '    2.9735       1.0000          .0000       .10000E+07
    22 'Prefactor '    .23992E-06   1.0000          .0000       .10000E+07
    23 'norm      '    3.2417       1.0000          .0000       .10000E+07
    24 'norm      '    9.2935       1.0000          .0000       .10000E+07
    25 'norm      '    9.5266       1.0000          .0000       .10000E+07
    26 'Normalizat'    1.0461       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1730       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7720.653     FROM MIGRAD    STATUS=CONVERGED    172 CALLS     1900 TOTAL
                     EDM=   .25E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7452        2.4659        .80908E-09   -.10101E-01
   2  Prefactor     .12768E-08    84.964        .63626E-06** at limit **
   3  Prefactor     .55511E-09    15.199       -.76255E-07** at limit **
   4  Prefactor     1.4524        14.629        .12083E-07    .33923E-03
   5  Prefactor      .0000        .69184        .35796E-08** at limit **
   6  norm          13.371        2.1118       -.48124E-08    .27996E-03
   7  Prefactor     2.8675        3.9389       -.36141E-07    .11599E-03
   8  Prefactor     3.7756        2.9839       -.63424E-08    .94559E-04
   9  Prefactor      .0000        1.2845        .27417E-07** at limit **
  10  norm          .58483        2.3823       -.73540E-08   -.63982E-04
  11  Prefactor     .12071        19.260       -.10618E-06** at limit **
  12  Prefactor     2.4294        2.1076       -.11100E-07   -.79399E-04
  13  Prefactor     1.5850        1.6931       -.11553E-07    .25648E-04
  14  Prefactor     .90952        3.3460       -.39367E-07   -.86160E-02
  15  norm          .22103        .19615        .16003E-08** at limit **
  16  norm          3.7779        3.2969        .23983E-07    .47340E-03
  17  Prefactor     .55511E-10    5.2571       -.12088E-06** at limit **
  18  Prefactor     .11102E-09    7.3758        .80073E-07** at limit **
  19  Prefactor      .0000        2.0610       -.53257E-07** at limit **
  20  Prefactor      .0000        1.5736        .28126E-07** at limit **
  21  norm          2.9607        4.3987        .49030E-07   -.11222E-03
  22  Prefactor      .0000        11.708       -.15404E-06** at limit **
  23  norm          3.2457        3.0612       -.18157E-07    .46164E-04
  24  norm          9.2880        3.8266       -.64079E-09    .21967E-02
  25  norm          9.5020        2.0746       -.53473E-10   -.47614E-02
  26  Normalizat    1.0462        .19746       -.21318E-05    .28808E-05
  27  Prefactor     1.1730        .22408        .14904E-05   -.83467E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.74516
  Prefactor  = 1.27676e-09
  Prefactor  = 5.55112e-10
  Prefactor  = 1.45243
  Prefactor  = 0
  norm       = 13.3707
  Prefactor  = 2.86747
  Prefactor  = 3.77557
  Prefactor  = 0
  norm       = 0.584835
  Prefactor  = 0.120711
  Prefactor  = 2.42937
  Prefactor  = 1.58496
  Prefactor  = 0.909519
  norm       = 0.221032
  norm       = 3.77794
  Prefactor  = 5.55112e-11
  Prefactor  = 1.11022e-10
  Prefactor  = 0
  Prefactor  = 0
  norm       = 2.96071
  Prefactor  = 0
  norm       = 3.24571
  norm       = 9.28802
  norm       = 9.50196
  Normalizat = 1.04617
  Prefactor  = 1.17299
 **********
 **   18 **HESSE 
 **********

 FCN=   7720.653     FROM HESSE     STATUS=OK           560 CALLS     2460 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.7452        11.903        .35683E-03   -1.5652    
   2  Prefactor     .12768E-08    82.190        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .55511E-09    14.937        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4524        14.728        .90268E-03   -1.5684    
   5  Prefactor      .0000        .69071        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          13.371        2.1135        .27367E-03   -1.5635    
   7  Prefactor     2.8675        3.9674        .60068E-03   -1.5674    
   8  Prefactor     3.7756        3.0073        .51927E-03   -1.5669    
   9  Prefactor      .0000        1.2840        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .58483        2.5120        .70608E-03   -1.5693    
  11  Prefactor     .12071        3.1065        .85145E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.4294        2.1503        .65634E-03   -1.5677    
  13  Prefactor     1.5850        1.7221        .84287E-03   -1.5683    
  14  Prefactor     .90952        5.1522        .45634E-03   -1.5689    
  15  norm          .22103        .21087        .79157E-03   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.7779        3.3465        .51882E-03   -1.5669    
  17  Prefactor     .55511E-10    5.2835        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .11102E-09    7.4619        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        2.0673        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        1.5774        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.9607        4.4220        .58855E-03   -1.5674    
  22  Prefactor      .0000        11.784        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.2457        3.0680        .56231E-03   -1.5672    
  24  norm          9.2880        6.5301        .32851E-03   -1.5647    
  25  norm          9.5020        11.239        .32444E-03   -1.5646    
  26  Normalizat    1.0462        .16753        .60019E-01   -.91499    
  27  Prefactor     1.1730        .18847        .65396E-01   -.87167    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.39364e-09
Minuit parameter uncertainties:
  1  11.9029
  2  0.000651936
  3  0.000180587
  4  9.25024
  5  1.73913e-07
  6  2.11348
  7  3.96741
  8  3.00734
  9  3.90098e-07
  10  2.42415
  11  1.22472
  12  2.1503
  13  1.72207
  14  4.32945
  15  0.21087
  16  3.34652
  17  2.91146e-05
  18  5.33973e-05
  19  2.03514e-06
  20  1.2531e-07
  21  4.42205
  22  1.96993e-05
  23  3.06804
  24  6.5301
  25  11.239
  26  0.167617
  27  0.188582
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  1.585e+00  1.722e+00  0.000e+00  1.000e+06 ( 1.000e-12)
325        Index:  2.153e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
326        Scale:  1.082e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  1.173e+00  1.886e-01  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  1.046e+00  1.676e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.48
Ra Dec: 185.378 28.238
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 2.32e-08 +/- 2.52e-08
Energy Flux (Fixed Index): 1.14e-05 +/- 1.24e-05

TS (Fixed Index): 1.48
Ra Dec: 185.378 28.238
Photon Flux Upper Limit: 8.41362017249e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00638778438401 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17372200/likelihoodResults_787276801_787536001_4FGL_J1221.5+2814_daily_bin2114.txt

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) = 7720.62737941
delta logL = 0.0260227610088

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7720.62381604
delta logL = 0.0295861239447

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7720.624     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      210 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4517        29.917        .89351E-03    .59106E-02
   2  Index         2.3435        3.3956        .24135        .50804E-04
   3  Normalizat    1.0401        .48191E-01    .60170E-01   -.32567E-04
   4  Prefactor     1.1768        .48567E-01    .65300E-01   -.19566E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.4517
  Index      = 2.34348
  Normalizat = 1.04007
  Prefactor  = 1.17685
 **********
 **   18 **HESSE 
 **********

 FCN=   7720.624     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .62E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4517        1.7364        .10505E-04   -1.5684    
   2  Index         2.3435        .82578        .89156E-02   -.56014    
   3  Normalizat    1.0401        .19544        .26610E-03   -.91700    
   4  Prefactor     1.1768        .22286        .28885E-03   -.87047    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.16709e-12
Minuit parameter uncertainties:
  1  1.73642
  2  0.831103
  3  0.195576
  4  0.223042
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) = 7720.62381309
delta logL = 0.0295890755624

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  1.452e+00  1.736e+00  0.000e+00  1.000e+06 ( 1.000e-12)
325        Index:  2.343e+00  8.311e-01  0.000e+00  1.000e+01 (-1.000e+00)
326        Scale:  1.082e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  1.177e+00  2.230e-01  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  1.040e+00  1.956e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.54
Ra Dec: 185.378 28.238
Photon Index (Free Index): 2.34 +/- 0.83
Photon Flux (Free Index): 2.87e-08 +/- 3.61e-08
Energy Flux (Free Index): 1.02e-05 +/- 1.14e-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/17372200/cmap_HighResolution_787276801_787536001_4FGL_J1221.5+2814_daily_bin2114.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.39e-03', comment='SUCCESS', photon_flux='2.32e-08', energy_flux2='1.02e-05', photon_flux_error='2.52e-08', dlogl='2.96e-02', energy_flux='1.14e-05', photon_flux2='2.87e-08', job_status='DONE', time_completed='2025-12-16 01:06:15.820258', photon_index_error2='0.83', photon_index2='2.34', ts='1.48', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', photon_flux_upper_limit='8.41e-08', energy_flux_error2='1.14e-05', EG='1.05', time_epoch_completed='1765875975.82', return_code='0', job_id='17372200', GAL2='1.18', EG2='1.04', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='3.61e-08', ts2='1.54', photon_index='2.15' WHERE bin_id='2114' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 16 01:06:16 PST 2025

