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


Performing analysis on: 4FGL_J0221.5+2513_weekly_bin906
RA = 35.3809, Dec = 25.2305
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='17372618', job_status='RUN', time_executed='2025-12-16 01:01:31.169155', time_epoch_executed='1765875691.17' WHERE source_name='4FGL J0221.5+2513' and cadence='weekly' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17372618

Creating custom pfile directory:
/lscratch/kocevski/17372618/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/17372618/ft1_4FGL_J0221.5+2513_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/17372618/ft2_4FGL_J0221.5+2513_weekly_bin906.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17372618/ft1_4FGL_J0221.5+2513_weekly_bin906.fits outfile=/lscratch/kocevski/17372618/ft1_filteredMKT_4FGL_J0221.5+2513_weekly_bin906.fits ra=35.3809 dec=25.2305 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.48
user 4.40
sys 0.24

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17372618/ft2_4FGL_J0221.5+2513_weekly_bin906.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17372618/ft2_4FGL_J0221.5+2513_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/17372618/ft1_filteredMKT_4FGL_J0221.5+2513_weekly_bin906.fits evtable="EVENTS" outfile="/lscratch/kocevski/17372618/ft1_filtered_4FGL_J0221.5+2513_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 1.10
user 0.20
sys 0.14

Number of photons that the gtmktime cut: 1941

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17372618/ft1_filtered_4FGL_J0221.5+2513_weekly_bin906.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17372618/ft2_4FGL_J0221.5+2513_weekly_bin906.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17372618/ltcube_786931201_787536001_4FGL_J0221.5+2513_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/17372618/ft2_4FGL_J0221.5+2513_weekly_bin906.fits
.....................!
real 16.52
user 15.45
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17372618/ft1_filtered_4FGL_J0221.5+2513_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17372618/ft2_4FGL_J0221.5+2513_weekly_bin906.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17372618/ltcube_786931201_787536001_4FGL_J0221.5+2513_weekly_bin906.fits outfile=/lscratch/kocevski/17372618/expmap_786931201_787536001_4FGL_J0221.5+2513_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/17372618/ltcube_786931201_787536001_4FGL_J0221.5+2513_weekly_bin906.fits
.....................!
real 60.26
user 55.98
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 164 point sources and 0 extended sources

Setting source of interest to:
4FGL J0221.5+2513 @ 35.3809 25.2305

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17372618/ft1_filtered_4FGL_J0221.5+2513_weekly_bin906.fits scfile=/lscratch/kocevski/17372618/ft2_4FGL_J0221.5+2513_weekly_bin906.fits outfile=/lscratch/kocevski/17372618/cmap_786931201_787536001_4FGL_J0221.5+2513_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=35.3809 yref=25.2305 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.97
user 0.22
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17372618/ft1_filtered_4FGL_J0221.5+2513_weekly_bin906.fits scfile=/lscratch/kocevski/17372618/ft2_4FGL_J0221.5+2513_weekly_bin906.fits outfile=/lscratch/kocevski/17372618/cmap_HighResolution_786931201_787536001_4FGL_J0221.5+2513_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=35.3809 yref=25.2305 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.01
user 0.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17372618/ft1_filtered_4FGL_J0221.5+2513_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17372618/ft2_4FGL_J0221.5+2513_weekly_bin906.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17372618/Model_4FGL_J0221.5+2513_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/17372618/ft1_filtered_4FGL_J0221.5+2513_weekly_bin906.fits.....................!
real 84.04
user 82.19
sys 0.90

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17372618/ft1_filtered_4FGL_J0221.5+2513_weekly_bin906.fits', '/lscratch/kocevski/17372618/ft2_4FGL_J0221.5+2513_weekly_bin906.fits', expMap='/lscratch/kocevski/17372618/expmap_786931201_787536001_4FGL_J0221.5+2513_weekly_bin906.fits', expCube='/lscratch/kocevski/17372618/ltcube_786931201_787536001_4FGL_J0221.5+2513_weekly_bin906.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17372618/Model_4FGL_J0221.5+2513_weekly_bin906.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0221.5+2513'

4FGL J0221.5+2513
   Spectrum: LogParabola
231         norm:  4.372e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
232        alpha:  1.744e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
233         beta:  4.094e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
234           Eb:  2.704e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17372618/ft1_filtered_4FGL_J0221.5+2513_weekly_bin906.fits
Spacecraft file(s): /lscratch/kocevski/17372618/ft2_4FGL_J0221.5+2513_weekly_bin906.fits
Exposure map: /lscratch/kocevski/17372618/expmap_786931201_787536001_4FGL_J0221.5+2513_weekly_bin906.fits
Exposure cube: /lscratch/kocevski/17372618/ltcube_786931201_787536001_4FGL_J0221.5+2513_weekly_bin906.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17372618/Model_4FGL_J0221.5+2513_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) = 20653.1146677

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.469       1.0000          .0000       .10000E+07
     2 'norm      '    .79331       1.0000          .0000       .10000E+07
     3 'Prefactor '    10.102       1.0000          .0000       .10000E+07
     4 'Prefactor '    .42089E-05   1.0000          .0000       .10000E+07
     5 'norm      '    .10669E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    1.4707       1.0000          .0000       .10000E+07
     7 'Prefactor '    .16734E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .51104E-06   1.0000          .0000       .10000E+07
     9 'norm      '    .82800       1.0000          .0000       .10000E+07
    10 'norm      '    .12659       1.0000          .0000       .10000E+07
    11 'norm      '    37.131       1.0000          .0000       .10000E+07
    12 'Prefactor '    22.208       1.0000          .0000       .10000E+07
    13 'Prefactor '    .12018E-02   1.0000          .0000       .10000E+07
    14 'norm      '    1.6703       1.0000          .0000       .10000E+07
    15 'Prefactor '    .33823E-02   1.0000          .0000       .10000E+07
    16 'norm      '    .16922       1.0000          .0000       .10000E+07
    17 'Prefactor '    .28218       1.0000          .0000       .10000E+07
    18 'Prefactor '    .10117E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    .18954E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    .15607E-02   1.0000          .0000       .10000E+07
    21 'norm      '    .88311E-03   1.0000          .0000       .10000E+07
    22 'Normalizat'    1.2393       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .92342       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5340E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   20653.04     FROM MIGRAD    STATUS=CONVERGED    157 CALLS     1543 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.482        2.9291        .50852E-07   -.66766E-02
   2  norm          .79361        .34486       -.30620E-07    .24769E-03
   3  Prefactor     10.141        6.1939       -.83223E-07   -.81904E-03
   4  Prefactor      .0000        3.3461       -.14549E-07** at limit **
   5  norm           .0000        1.1215        .31485E-07** at limit **
   6  Prefactor     1.4717        1.3386       -.24691E-07    .86494E-03
   7  Prefactor     .14183E-06    5.2052       -.15940E-06** at limit **
   8  Prefactor      .0000        .75682       -.23702E-07** at limit **
   9  norm          .82866        1.0286        .19745E-07   -.11883E-02
  10  norm          .12664        .15740       -.12619E-07** at limit **
  11  norm          37.902        31.910       -.43791E-06    .98883E-01
  12  Prefactor     23.010        20.986       -.83115E-06   -.83233E-01
  13  Prefactor     .58342E-07    6.4620       -.31102E-06** at limit **
  14  norm          1.6709        1.0498        .22850E-10   -.19856E-02
  15  Prefactor     .17325E-06    19.376       -.54264E-06** at limit **
  16  norm          .17152        .30993        .32616E-06** at limit **
  17  Prefactor     .34760E-01    248.43       -.34915E-05** at limit **
  18  Prefactor     .27073E-06    3.5098        .37833E-06** at limit **
  19  Prefactor     .24591E-07    9.6931        .86877E-06** at limit **
  20  Prefactor     .50515E-08    9.1696       -.46522E-06** at limit **
  21  norm          .11102E-09    5.2864       -.33120E-07** at limit **
  22  Normalizat    1.2385        .14251        .53053E-05    .34421E-04
  23  Prefactor     .92346        .65214E-01   -.39425E-06    .33498E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.4817
  norm       = 0.793611
  Prefactor  = 10.1414
  Prefactor  = 0
  norm       = 0
  Prefactor  = 1.47169
  Prefactor  = 1.41831e-07
  Prefactor  = 0
  norm       = 0.828656
  norm       = 0.126641
  norm       = 37.9016
  Prefactor  = 23.0102
  Prefactor  = 5.83422e-08
  norm       = 1.67086
  Prefactor  = 1.7325e-07
  norm       = 0.171524
  Prefactor  = 0.0347603
  Prefactor  = 2.70728e-07
  Prefactor  = 2.45914e-08
  Prefactor  = 5.05151e-09
  norm       = 1.11022e-10
  Normalizat = 1.23851
  Prefactor  = 0.923462
 **********
 **   18 **HESSE 
 **********

 FCN=   20653.04     FROM HESSE     STATUS=OK           422 CALLS     1965 TOTAL
                     EDM=   .59E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.482        15.717        .25439E-03   -1.5629    
   2  norm          .79361        .34441        .53435E-03   -1.5690    
   3  Prefactor     10.141        6.2071        .31502E-03   -1.5644    
   4  Prefactor      .0000        3.3537        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        1.1130        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.4717        1.3565        .88577E-03   -1.5684    
   7  Prefactor     .14183E-06    6.8648        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        .75613        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .82866        1.0619        .50871E-03   -1.5690    
  10  norm          .12664        .20678        .13264E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          37.902        35.369        .16413E-03   -1.5585    
  12  Prefactor     23.010        23.246        .21226E-03   -1.5612    
  13  Prefactor     .58342E-07    7.2427        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.6709        1.0601        .81540E-03   -1.5682    
  15  Prefactor     .17325E-06    19.356        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .17152        .35793        .12351E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .34760E-01    7.7536        .11670E-01   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .27073E-06    6.8763        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .24591E-07    10.486        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .50515E-08    9.7999        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .11102E-09    5.2837        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2385        .12508        .72280E-01   -.85421    
  23  Prefactor     .92346        .56688E-01    .45303E-01   -.95326    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.88245e-07
Minuit parameter uncertainties:
  1  15.7169
  2  0.344409
  3  6.20711
  4  1.30254e-05
  5  6.50672e-06
  6  1.35651
  7  0.00197347
  8  6.06944e-06
  9  1.0619
  10  0.206776
  11  35.3693
  12  23.2462
  13  0.00130039
  14  1.06006
  15  0.00366274
  16  0.357925
  17  1.0383
  18  0.00272879
  19  0.0010152
  20  0.000445948
  21  5.06264e-05
  22  0.125108
  23  0.0566918
Done.

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

Extracting fit parameters...

4FGL J0221.5+2513
   Spectrum: LogParabola
231         norm:  3.790e+01  3.537e+01  0.000e+00  1.000e+06 ( 1.000e-14)
232        alpha:  1.744e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
233         beta:  4.094e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
234           Eb:  2.704e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  9.235e-01  5.669e-02  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  1.239e+00  1.251e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.77
Ra Dec: 35.381 25.230
Photon Index (Fixed Index): 1.74 +/- 0.00
Photon Flux (Fixed Index): 3.92e-09 +/- 3.66e-09
Energy Flux (Fixed Index): 7.98e-06 +/- 7.44e-06

TS (Fixed Index): 2.77
Ra Dec: 35.381 25.230
Photon Flux Upper Limit: 1.42017123276e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.89092779574e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17372618/likelihoodResults_786931201_787536001_4FGL_J0221.5+2513_weekly_bin906.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) = 20652.9812149
delta logL = 0.0539154106154

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 20652.979182
delta logL = 0.0559483157958

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   20652.98     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      236 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          35.695        1027.0        .16740E-03    .13765E-02
   2  alpha         2.1433        3.3938        .41694        .57075E-04
   3  Normalizat    1.2386        .68389E-01    .72274E-01    .36827E-04
   4  Prefactor     .92265        .28353E-01    .45293E-01    .56003E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 35.6947
  alpha      = 2.14327
  Normalizat = 1.23862
  Prefactor  = 0.922648
 **********
 **   18 **HESSE 
 **********

 FCN=   20652.98     FROM HESSE     STATUS=OK            31 CALLS      267 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          35.695        37.131        .66959E-05   -1.5588    
   2  alpha         2.1433        1.1590        .40546E-01   -.14318    
   3  Normalizat    1.2386        .13611        .31982E-03   -.85418    
   4  Prefactor     .92265        .64758E-01    .17214E-03   -.95354    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.70268e-10
Minuit parameter uncertainties:
  1  37.1313
  2  1.2062
  3  0.136145
  4  0.0647638
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) = 20652.979182
delta logL = 0.0559483977449

Extracting fit parameters...

4FGL J0221.5+2513
   Spectrum: LogParabola
231         norm:  3.569e+01  3.713e+01  0.000e+00  1.000e+06 ( 1.000e-14)
232        alpha:  2.143e+00  1.206e+00  0.000e+00  5.000e+00 ( 1.000e+00)
233         beta:  4.094e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
234           Eb:  2.704e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
531    Prefactor:  9.226e-01  6.476e-02  0.000e+00  1.000e+01 ( 1.000e+00)
532        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
533        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
530   Normalization:  1.239e+00  1.361e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.89
Ra Dec: 35.381 25.230
Photon Index (Free Index): 2.14 +/- 1.21
Photon Flux (Free Index): 5.69e-09 +/- 7.41e-09
Energy Flux (Free Index): 7.30e-06 +/- 6.88e-06

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/17372618/cmap_HighResolution_786931201_787536001_4FGL_J0221.5+2513_weekly_bin906.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.89e-05', comment='SUCCESS', photon_flux='3.92e-09', energy_flux2='7.30e-06', photon_flux_error='3.66e-09', dlogl='5.59e-02', energy_flux='7.98e-06', photon_flux2='5.69e-09', job_status='DONE', time_completed='2025-12-16 01:14:59.456816', photon_index_error2='1.21', photon_index2='2.14', ts='2.77', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.42e-08', energy_flux_error2='6.88e-06', EG='1.24', time_epoch_completed='1765876499.46', return_code='0', job_id='17372618', GAL2='0.92', EG2='1.24', return_code2='0', energy_flux_error='7.44e-06', photon_flux_error2='7.41e-09', ts2='2.89', photon_index='1.74' WHERE bin_id='906' AND source_name='4FGL J0221.5+2513' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 16 01:14:59 PST 2025

