/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).

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


Performing analysis on: 4FGL_J1253.8+6242_daily_bin2173
RA = 193.467, Dec = 62.7052
tmin = 802569601, tmax = 802828801
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='31396653', job_status='RUN', time_executed='2026-07-11 19:44:05.319035', time_epoch_executed='1783824245.32' WHERE source_name='4FGL J1253.8+6242' and cadence='daily' and bin_id='2173'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/31396653

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/31396653/ft1_4FGL_J1253.8+6242_daily_bin2173.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/31396653/ft2_4FGL_J1253.8+6242_daily_bin2173.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/31396653/ft1_4FGL_J1253.8+6242_daily_bin2173.fits outfile=/lscratch/kocevski/31396653/ft1_filteredMKT_4FGL_J1253.8+6242_daily_bin2173.fits ra=193.467 dec=62.7052 rad=12.0 tmin=802569601.0 tmax=802828801.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 3.27
user 2.41
sys 0.18

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/31396653/ft2_4FGL_J1253.8+6242_daily_bin2173.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/31396653/ft2_4FGL_J1253.8+6242_daily_bin2173.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/31396653/ft1_filteredMKT_4FGL_J1253.8+6242_daily_bin2173.fits evtable="EVENTS" outfile="/lscratch/kocevski/31396653/ft1_filtered_4FGL_J1253.8+6242_daily_bin2173.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.17
sys 0.14

Number of photons that the gtmktime cut: 614

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/31396653/ft1_filtered_4FGL_J1253.8+6242_daily_bin2173.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31396653/ft2_4FGL_J1253.8+6242_daily_bin2173.fits sctable="SC_DATA" ou/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)
_V02
Working on...
/lscratch/kocevski/31396414/ft1_filtered_4FGL_J1253.8+6242_daily_bin2173.fits.....................!
real 27.81
user 24.88
sys 1.96

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31396414/ft1_filtered_4FGL_J1253.8+6242_daily_bin2173.fits', '/lscratch/kocevski/31396414/ft2_4FGL_J1253.8+6242_daily_bin2173.fits', expMap='/lscratch/kocevski/31396414/expmap_802569601_802828801_4FGL_J1253.8+6242_daily_bin2173.fits', expCube='/lscratch/kocevski/31396414/ltcube_802569601_802828801_4FGL_J1253.8+6242_daily_bin2173.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31396414/Model_4FGL_J1253.8+6242_daily_bin2173.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1253.8+6242'

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  7.997e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
370        Index:  1.987e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  2.277e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31396414/ft1_filtered_4FGL_J1253.8+6242_daily_bin2173.fits
Spacecraft file(s): /lscratch/kocevski/31396414/ft2_4FGL_J1253.8+6242_daily_bin2173.fits
Exposure map: /lscratch/kocevski/31396414/expmap_802569601_802828801_4FGL_J1253.8+6242_daily_bin2173.fits
Exposure cube: /lscratch/kocevski/31396414/ltcube_802569601_802828801_4FGL_J1253.8+6242_daily_bin2173.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31396414/Model_4FGL_J1253.8+6242_daily_bin2173.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) = 6631.01816741

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .36726E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    1.0375       1.0000          .0000       .10000E+07
     3 'Prefactor '    .47331E-04   1.0000          .0000       .10000E+07
     4 'norm      '    .26833E-04   1.0000          .0000       .10000E+07
     5 'norm      '    .19253E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .83989E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .14183E-02   1.0000          .0000       .10000E+07
     8 'norm      '    4.1012       1.0000          .0000       .10000E+07
     9 'Prefactor '    15.493       1.0000          .0000       .10000E+07
    10 'norm      '    .10131       1.0000          .0000       .10000E+07
    11 'Prefactor '    1.6087       1.0000          .0000       .10000E+07
    12 'norm      '    3.9902       1.0000          .0000       .10000E+07
    13 'norm      '    .28297E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    18.830       1.0000          .0000       .10000E+07
    15 'Prefactor '    3.4608       1.0000          .0000       .10000E+07
    16 'Prefactor '    .38339E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .40290E-06   1.0000          .0000       .10000E+07
    18 'Prefactor '    .10956E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    .73519       1.0000          .0000       .10000E+07
    20 'Prefactor '    4.5103       1.0000          .0000       .10000E+07
    21 'norm      '    1.8755       1.0000          .0000       .10000E+07
    22 'Prefactor '    .20717E-02   1.0000          .0000       .10000E+07
    23 'Normalizat'    .93827       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .91061       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6631.008     FROM MIGRAD    STATUS=CONVERGED    147 CALLS     1989 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27756E-08    31.853       -.56731E-07** at limit **
   2  Prefactor     1.0552        3.8140        .69062E-06   -.27835E-02
   3  Prefactor     .27756E-09    1.6537        .24258E-06** at limit **
   4  norm          .83267E-09    2.9044       -.14525E-06** at limit **
   5  norm          .10664E-05    2.0341        .13128E-06** at limit **
   6  Prefactor     .54218E-06    4.8860        .16961E-06** at limit **
   7  Prefactor     .48184E-07    6.3685       -.31515E-06** at limit **
   8  norm          4.1008        2.1080        .61919E-07    .16014E-02
   9  Prefactor     15.467        1.0709        .72630E-08    .81913E-02
  10  norm          .10373        36.741       -.23670E-05** at limit **
  11  Prefactor     1.6045        3.3285        .36650E-06    .82967E-03
  12  norm          3.9893        1.9804        .17554E-06    .49282E-02
  13  norm          .61062E-09    8.4489        .33015E-06** at limit **
  14  Prefactor     18.826        1.1685        .86897E-08   -.11404E-01
  15  Prefactor     3.4660        3.8689        .13893E-06    .85853E-03
  16  Prefactor     .11541E-06    3.8991        .37677E-06** at limit **
  17  Prefactor     .38869E-06    9.0262        .33111E-06** at limit **
  18  Prefactor     .16820E-07    29.525        .13093E-06** at limit **
  19  Prefactor     .70275        3.1031        .16265E-06    .48661E-02
  20  Prefactor     4.4746        4.5662       -.33112E-06   -.66130E-01
  21  norm          1.8734        4.3941       -.72758E-08   -.99183E-03
  22  Prefactor     .27756E-09    4.7922        .45141E-06** at limit **
  23  Normalizat    .93862        .15993       -.29894E-05   -.52779E-04
  24  Prefactor     .91063        .19068       -.94209E-06   -.24277E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.77556e-09
  Prefactor  = 1.05515
  Prefactor  = 2.77556e-10
  norm       = 8.32667e-10
  norm       = 1.06637e-06
  Prefactor  = 5.42177e-07
  Prefactor  = 4.81837e-08
  norm       = 4.10082
  Prefactor  = 15.4668
  norm       = 0.103729
  Prefactor  = 1.60452
  norm       = 3.9893
  norm       = 6.10623e-10
  Prefactor  = 18.8264
  Prefactor  = 3.466
  Prefactor  = 1.15408e-07
  Prefactor  = 3.88689e-07
  Prefactor  = 1.68199e-08
  Prefactor  = 0.702751
  Prefactor  = 4.47465
  norm       = 1.87338
  Prefactor  = 2.77556e-10
  Normalizat = 0.938625
  Prefactor  = 0.910628

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

 **********
 **   18 **HESSE 
 **********

 FCN=   6631.008     FROM HESSE     STATUS=OK           457 CALLS     2446 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27756E-08    31.165        .16115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.0552        44.758        .12338E-02   -1.5687    
   3  Prefactor     .27756E-09    1.6548        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .83267E-09    2.9362        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10664E-05    16.043        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .54218E-06    9.7540        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .48184E-07    7.8714        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.1008        2.1092        .49756E-03   -1.5667    
   9  Prefactor     15.467        21.911        .25419E-03   -1.5629    
  10  norm          .10373        2.0413        .88555E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.6045        3.3816        .83494E-03   -1.5683    
  12  norm          3.9893        1.9839        .50466E-03   -1.5668    
  13  norm          .61062E-09    .95502        .29462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.826        20.965        .23053E-03   -1.5621    
  15  Prefactor     3.4660        3.8769        .54337E-03   -1.5671    
  16  Prefactor     .11541E-06    10.763        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .38869E-06    12.161        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .16820E-07    29.582        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .70275        3.1655        .57897E-03   -1.5691    
  20  Prefactor     4.4746        8.5643        .47382E-03   -1.5666    
  21  norm          1.8734        4.4138        .76005E-03   -1.5681    
  22  Prefactor     .27756E-09    9.9223        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .93862        .13962        .45389E-01   -.95116    
  24  Prefactor     .91063        .16302        .45140E-01   -.95771    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16739e-06
Minuit parameter uncertainties:
  1  0.000586391
  2  13.7445
  3  4.29849e-05
  4  9.82038e-05
  5  0.00827236
  6  0.00459922
  7  0.00123175
  8  2.10921
  9  21.9111
  10  0.920302
  11  3.38163
  12  1.98394
  13  4.86053e-05
  14  20.9655
  15  3.87688
  16  0.0022292
  17  0.00434828
  18  0.00141153
  19  2.98301
  20  8.5643
  21  4.41384
  22  0.000102098
  23  0.139671
  24  0.163105
file=/lscratch/kocevski/31396617/ltcube_802569601_802828801_4FGL_J1253.8+6242_daily_bin2173.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/31396617/ft2_4FGL_J1253.8+6242_daily_bin2173.fits
.....................!
real 9.03
user 8.12
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31396617/ft1_filtered_4FGL_J1253.8+6242_daily_bin2173.fits evtable="EVENTS" scfile=/lscratch/kocevski/31396617/ft2_4FGL_J1253.8+6242_daily_bin2173.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31396617/ltcube_802569601_802828801_4FGL_J1253.8+6242_daily_bin2173.fits outfile=/lscratch/kocevski/31396617/expmap_802569601_802828801_4FGL_J1253.8+6242_daily_bin2173.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/31396617/ltcube_802569601_802828801_4FGL_J1253.8+6242_daily_bin2173.fits
.....................!
real 72.37
user 67.09
sys 4.21

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

Setting source of interest to:
4FGL J1253.8+6242 @ 193.467 62.7052

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31396617/ft1_filtered_4FGL_J1253.8+6242_daily_bin2173.fits scfile=/lscratch/kocevski/31396617/ft2_4FGL_J1253.8+6242_daily_bin2173.fits outfile=/lscratch/kocevski/31396617/cmap_802569601_802828801_4FGL_J1253.8+6242_daily_bin2173.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=193.467 yref=62.7052 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.98
user 0.25
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31396617/ft1_filtered_4FGL_J1253.8+6242_daily_bin2173.fits scfile=/lscratch/kocevski/31396617/ft2_4FGL_J1253.8+6242_daily_bin2173.fits outfile=/lscratch/kocevski/31396617/cmap_HighResolution_802569601_802828801_4FGL_J1253.8+6242_daily_bin2173.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=193.467 yref=62.7052 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.91
user 0.24
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31396617/ft1_filtered_4FGL_J1253.8+6242_daily_bin2173.fits evtable="EVENTS" scfile=/lscratch/kocevski/31396617/ft2_4FGL_J1253.8+6242_daily_bin2173.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31396617/Model_4FGL_J1253.8+6242_daily_bin2173.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_Done.

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

Extracting fit parameters...

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  1.883e+01  2.097e+01  0.000e+00  1.000e+06 ( 1.000e-14)
370        Index:  1.987e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  2.277e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  9.106e-01  1.631e-01  0.000e+00  1.000e+01 ( 1.000e+00)
708        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
709        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
706   Normalization:  9.386e-01  1.397e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.17
Ra Dec: 193.467 62.705
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 9.48e-09 +/- 1.06e-08
Energy Flux (Fixed Index): 6.77e-06 +/- 7.54e-06

TS (Fixed Index): 2.17
Ra Dec: 193.467 62.705
Photon Flux Upper Limit: 4.28150877564e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00320754993249 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31396414/likelihoodResults_802569601_802828801_4FGL_J1253.8+6242_daily_bin2173.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) = 6630.7742069
delta logL = 0.234097575713

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6630.77260625
delta logL = 0.235698227831

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6630.773     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      290 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.035        27.786        .79961E-05   -.13967E-02
   2  Index         1.4668        .71272        .11346E-01   -.55676E-04
   3  Normalizat    .94306        .15407        .20515E-03    .49764E-04
   4  Prefactor     .90837        .18892        .25459E-03    .41261E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.0352
  Index      = 1.46677
  Normalizat = 0.943059
  Prefactor  = 0.908369
 **********
 **   18 **HESSE 
 **********

 FCN=   6630.773     FROM HESSE     STATUS=OK            23 CALLS      313 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.035        27.822        .15992E-05   -1.5608    
   2  Index         1.4668        .71384        .45383E-03   -.78475    
   3  Normalizat    .94306        .15423        .82061E-05   -.94963    
   4  Prefactor     .90837        .18912        .10184E-04   -.95849    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03902e-10
Minuit parameter uncertainties:
  1  27.8219
  2  0.71878
  3  0.154302
  4  0.189256
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) = 6630.77260624
delta logL = 0.235698231585

Extracting fit parameters...

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  2.504e+01  2.782e+01  0.000e+00  1.000e+06 ( 1.000e-14)
370        Index:  1.467e+00  7.188e-01  0.000e+00  1.000e+01 (-1.000e+00)
371        Scale:  2.277e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  9.084e-01  1.893e-01  0.000e+00  1.000e+01 ( 1.000e+00)
708        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
709        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
706   Normalization:  9.431e-01  1.543e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.64
Ra Dec: 193.467 62.705
Photon Index (Free Index): 1.47 +/- 0.72
Photon Flux (Free Index): 5.04e-09 +/- 7.45e-09
Energy Flux (Free Index): 1.78e-05 +/- 3.24e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /lscratch/kocevski/31396414/cmap_HighResolution_802569601_802828801_4FGL_J1253.8+6242_daily_bin2173.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.21e-03', comment='SUCCESS', photon_flux='9.48e-09', energy_flux2='1.78e-05', photon_flux_error='1.06e-08', dlogl='2.36e-01', energy_flux='6.77e-06', photon_flux2='5.04e-09', job_status='DONE', time_completed='2026-07-11 19:48:09.095385', photon_index_error2='0.72', photon_index2='1.47', ts='2.17', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='4.28e-08', energy_flux_error2='3.24e-05', EG='0.94', time_epoch_completed='1783824489.1', return_code='0', job_id='31396414', GAL2='0.91', EG2='0.94', return_code2='0', energy_flux_error='7.54e-06', photon_flux_error2='7.45e-09', ts2='2.64', photon_index='1.99' WHERE bin_id='2173' AND source_name='4FGL J1253.8+6242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jul 11 19:48:09 PDT 2026

tfile=/lscratch/kocevski/31396653/ltcube_802569601_802828801_4FGL_J1253.8+6242_daily_bin2173.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/31396653/ft2_4FGL_J1253.8+6242_daily_bin2173.fits
.....................!
real 7.89
user 7.13
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31396653/ft1_filtered_4FGL_J1253.8+6242_daily_bin2173.fits evtable="EVENTS" scfile=/lscratch/kocevski/31396653/ft2_4FGL_J1253.8+6242_daily_bin2173.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31396653/ltcube_802569601_802828801_4FGL_J1253.8+6242_daily_bin2173.fits outfile=/lscratch/kocevski/31396653/expmap_802569601_802828801_4FGL_J1253.8+6242_daily_bin2173.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/31396653/ltcube_802569601_802828801_4FGL_J1253.8+6242_daily_bin2173.fits
.....................!
real 63.37
user 58.75
sys 3.78

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

Setting source of interest to:
4FGL J1253.8+6242 @ 193.467 62.7052

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31396653/ft1_filtered_4FGL_J1253.8+6242_daily_bin2173.fits scfile=/lscratch/kocevski/31396653/ft2_4FGL_J1253.8+6242_daily_bin2173.fits outfile=/lscratch/kocevski/31396653/cmap_802569601_802828801_4FGL_J1253.8+6242_daily_bin2173.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=193.467 yref=62.7052 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.20
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31396653/ft1_filtered_4FGL_J1253.8+6242_daily_bin2173.fits scfile=/lscratch/kocevski/31396653/ft2_4FGL_J1253.8+6242_daily_bin2173.fits outfile=/lscratch/kocevski/31396653/cmap_HighResolution_802569601_802828801_4FGL_J1253.8+6242_daily_bin2173.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=193.467 yref=62.7052 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.83
user 0.20
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31396653/ft1_filtered_4FGL_J1253.8+6242_daily_bin2173.fits evtable="EVENTS" scfile=/lscratch/kocevski/31396653/ft2_4FGL_J1253.8+6242_daily_bin2173.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31396653/Model_4FGL_J1253.8+6242_daily_bin2173.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 GALV02
Working on...
/lscratch/kocevski/31396617/ft1_filtered_4FGL_J1253.8+6242_daily_bin2173.fits.....................!
real 27.41
user 25.49
sys 1.06

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31396617/ft1_filtered_4FGL_J1253.8+6242_daily_bin2173.fits', '/lscratch/kocevski/31396617/ft2_4FGL_J1253.8+6242_daily_bin2173.fits', expMap='/lscratch/kocevski/31396617/expmap_802569601_802828801_4FGL_J1253.8+6242_daily_bin2173.fits', expCube='/lscratch/kocevski/31396617/ltcube_802569601_802828801_4FGL_J1253.8+6242_daily_bin2173.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31396617/Model_4FGL_J1253.8+6242_daily_bin2173.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1253.8+6242'

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  7.997e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
370        Index:  1.987e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  2.277e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31396617/ft1_filtered_4FGL_J1253.8+6242_daily_bin2173.fits
Spacecraft file(s): /lscratch/kocevski/31396617/ft2_4FGL_J1253.8+6242_daily_bin2173.fits
Exposure map: /lscratch/kocevski/31396617/expmap_802569601_802828801_4FGL_J1253.8+6242_daily_bin2173.fits
Exposure cube: /lscratch/kocevski/31396617/ltcube_802569601_802828801_4FGL_J1253.8+6242_daily_bin2173.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31396617/Model_4FGL_J1253.8+6242_daily_bin2173.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) = 6631.01816741

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .36726E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    1.0375       1.0000          .0000       .10000E+07
     3 'Prefactor '    .47331E-04   1.0000          .0000       .10000E+07
     4 'norm      '    .26833E-04   1.0000          .0000       .10000E+07
     5 'norm      '    .19253E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .83989E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .14183E-02   1.0000          .0000       .10000E+07
     8 'norm      '    4.1012       1.0000          .0000       .10000E+07
     9 'Prefactor '    15.493       1.0000          .0000       .10000E+07
    10 'norm      '    .10131       1.0000          .0000       .10000E+07
    11 'Prefactor '    1.6087       1.0000          .0000       .10000E+07
    12 'norm      '    3.9902       1.0000          .0000       .10000E+07
    13 'norm      '    .28297E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    18.830       1.0000          .0000       .10000E+07
    15 'Prefactor '    3.4608       1.0000          .0000       .10000E+07
    16 'Prefactor '    .38339E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .40290E-06   1.0000          .0000       .10000E+07
    18 'Prefactor '    .10956E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    .73519       1.0000          .0000       .10000E+07
    20 'Prefactor '    4.5103       1.0000          .0000       .10000E+07
    21 'norm      '    1.8755       1.0000          .0000       .10000E+07
    22 'Prefactor '    .20717E-02   1.0000          .0000       .10000E+07
    23 'Normalizat'    .93827       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .91061       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6631.008     FROM MIGRAD    STATUS=CONVERGED    147 CALLS     1989 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27756E-08    31.853       -.56731E-07** at limit **
   2  Prefactor     1.0552        3.8140        .69062E-06   -.27835E-02
   3  Prefactor     .27756E-09    1.6537        .24258E-06** at limit **
   4  norm          .83267E-09    2.9044       -.14525E-06** at limit **
   5  norm          .10664E-05    2.0341        .13128E-06** at limit **
   6  Prefactor     .54218E-06    4.8860        .16961E-06** at limit **
   7  Prefactor     .48184E-07    6.3685       -.31515E-06** at limit **
   8  norm          4.1008        2.1080        .61919E-07    .16014E-02
   9  Prefactor     15.467        1.0709        .72630E-08    .81913E-02
  10  norm          .10373        36.741       -.23670E-05** at limit **
  11  Prefactor     1.6045        3.3285        .36650E-06    .82967E-03
  12  norm          3.9893        1.9804        .17554E-06    .49282E-02
  13  norm          .61062E-09    8.4489        .33015E-06** at limit **
  14  Prefactor     18.826        1.1685        .86897E-08   -.11404E-01
  15  Prefactor     3.4660        3.8689        .13893E-06    .85853E-03
  16  Prefactor     .11541E-06    3.8991        .37677E-06** at limit **
  17  Prefactor     .38869E-06    9.0262        .33111E-06** at limit **
  18  Prefactor     .16820E-07    29.525        .13093E-06** at limit **
  19  Prefactor     .70275        3.1031        .16265E-06    .48661E-02
  20  Prefactor     4.4746        4.5662       -.33112E-06   -.66130E-01
  21  norm          1.8734        4.3941       -.72758E-08   -.99183E-03
  22  Prefactor     .27756E-09    4.7922        .45141E-06** at limit **
  23  Normalizat    .93862        .15993       -.29894E-05   -.52779E-04
  24  Prefactor     .91063        .19068       -.94209E-06   -.24277E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.77556e-09
  Prefactor  = 1.05515
  Prefactor  = 2.77556e-10
  norm       = 8.32667e-10
  norm       = 1.06637e-06
  Prefactor  = 5.42177e-07
  Prefactor  = 4.81837e-08
  norm       = 4.10082
  Prefactor  = 15.4668
  norm       = 0.103729
  Prefactor  = 1.60452
  norm       = 3.9893
  norm       = 6.10623e-10
  Prefactor  = 18.8264
  Prefactor  = 3.466
  Prefactor  = 1.15408e-07
  Prefactor  = 3.88689e-07
  Prefactor  = 1.68199e-08
  Prefactor  = 0.702751
  Prefactor  = 4.47465
  norm       = 1.87338
  Prefactor  = 2.77556e-10
  Normalizat = 0.938625
  Prefactor  = 0.910628
number of points = 7429
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1253.8+6242_daily_bin2173
RA = 193.467, Dec = 62.7052
tmin = 802569601, tmax = 802828801
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='31396885', job_status='RUN', time_executed='2026-07-11 19:47:11.160252', time_epoch_executed='1783824431.16' WHERE source_name='4FGL J1253.8+6242' and cadence='daily' and bin_id='2173'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/31396885

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/31396885/ft1_4FGL_J1253.8+6242_daily_bin2173.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/31396885/ft2_4FGL_J1253.8+6242_daily_bin2173.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/31396885/ft1_4FGL_J1253.8+6242_daily_bin2173.fits outfile=/lscratch/kocevski/31396885/ft1_filteredMKT_4FGL_J1253.8+6242_daily_bin2173.fits ra=193.467 dec=62.7052 rad=12.0 tmin=802569601.0 tmax=802828801.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 3.46
user 2.58
sys 0.22

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/31396885/ft2_4FGL_J1253.8+6242_daily_bin2173.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/31396885/ft2_4FGL_J1253.8+6242_daily_bin2173.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/31396885/ft1_filteredMKT_4FGL_J1253.8+6242_daily_bin2173.fits evtable="EVENTS" outfile="/lscratch/kocevski/31396885/ft1_filtered_4FGL_J1253.8+6242_daily_bin2173.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.04
user 0.18
sys 0.13

Number of photons that the gtmktime cut: 614

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/31396885/ft1_filtered_4FGL_J1253.8+6242_daily_bin2173.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31396885/ft2_4FGL_J1253.8+6242_daily_bin2173.fits sctable="SC_DATA" ou **********
 **   18 **HESSE 
 **********

 FCN=   6631.008     FROM HESSE     STATUS=OK           457 CALLS     2446 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27756E-08    31.165        .16115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.0552        44.758        .12338E-02   -1.5687    
   3  Prefactor     .27756E-09    1.6548        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .83267E-09    2.9362        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10664E-05    16.043        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .54218E-06    9.7540        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .48184E-07    7.8714        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.1008        2.1092        .49756E-03   -1.5667    
   9  Prefactor     15.467        21.911        .25419E-03   -1.5629    
  10  norm          .10373        2.0413        .88555E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.6045        3.3816        .83494E-03   -1.5683    
  12  norm          3.9893        1.9839        .50466E-03   -1.5668    
  13  norm          .61062E-09    .95502        .29462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.826        20.965        .23053E-03   -1.5621    
  15  Prefactor     3.4660        3.8769        .54337E-03   -1.5671    
  16  Prefactor     .11541E-06    10.763        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .38869E-06    12.161        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .16820E-07    29.582        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .70275        3.1655        .57897E-03   -1.5691    
  20  Prefactor     4.4746        8.5643        .47382E-03   -1.5666    
  21  norm          1.8734        4.4138        .76005E-03   -1.5681    
  22  Prefactor     .27756E-09    9.9223        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .93862        .13962        .45389E-01   -.95116    
  24  Prefactor     .91063        .16302        .45140E-01   -.95771    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16739e-06
Minuit parameter uncertainties:
  1  0.000586391
  2  13.7445
  3  4.29849e-05
  4  9.82038e-05
  5  0.00827236
  6  0.00459922
  7  0.00123175
  8  2.10921
  9  21.9111
  10  0.920302
  11  3.38163
  12  1.98394
  13  4.86053e-05
  14  20.9655
  15  3.87688
  16  0.0022292
  17  0.00434828
  18  0.00141153
  19  2.98301
  20  8.5643
  21  4.41384
  22  0.000102098
  23  0.139671
  24  0.163105
_V02
Working on...
/lscratch/kocevski/31396653/ft1_filtered_4FGL_J1253.8+6242_daily_bin2173.fits.....................!
real 23.51
user 21.79
sys 0.91

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31396653/ft1_filtered_4FGL_J1253.8+6242_daily_bin2173.fits', '/lscratch/kocevski/31396653/ft2_4FGL_J1253.8+6242_daily_bin2173.fits', expMap='/lscratch/kocevski/31396653/expmap_802569601_802828801_4FGL_J1253.8+6242_daily_bin2173.fits', expCube='/lscratch/kocevski/31396653/ltcube_802569601_802828801_4FGL_J1253.8+6242_daily_bin2173.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31396653/Model_4FGL_J1253.8+6242_daily_bin2173.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1253.8+6242'

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  7.997e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
370        Index:  1.987e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  2.277e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31396653/ft1_filtered_4FGL_J1253.8+6242_daily_bin2173.fits
Spacecraft file(s): /lscratch/kocevski/31396653/ft2_4FGL_J1253.8+6242_daily_bin2173.fits
Exposure map: /lscratch/kocevski/31396653/expmap_802569601_802828801_4FGL_J1253.8+6242_daily_bin2173.fits
Exposure cube: /lscratch/kocevski/31396653/ltcube_802569601_802828801_4FGL_J1253.8+6242_daily_bin2173.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31396653/Model_4FGL_J1253.8+6242_daily_bin2173.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) = 6631.01816741

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .36726E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    1.0375       1.0000          .0000       .10000E+07
     3 'Prefactor '    .47331E-04   1.0000          .0000       .10000E+07
     4 'norm      '    .26833E-04   1.0000          .0000       .10000E+07
     5 'norm      '    .19253E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .83989E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .14183E-02   1.0000          .0000       .10000E+07
     8 'norm      '    4.1012       1.0000          .0000       .10000E+07
     9 'Prefactor '    15.493       1.0000          .0000       .10000E+07
    10 'norm      '    .10131       1.0000          .0000       .10000E+07
    11 'Prefactor '    1.6087       1.0000          .0000       .10000E+07
    12 'norm      '    3.9902       1.0000          .0000       .10000E+07
    13 'norm      '    .28297E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    18.830       1.0000          .0000       .10000E+07
    15 'Prefactor '    3.4608       1.0000          .0000       .10000E+07
    16 'Prefactor '    .38339E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .40290E-06   1.0000          .0000       .10000E+07
    18 'Prefactor '    .10956E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    .73519       1.0000          .0000       .10000E+07
    20 'Prefactor '    4.5103       1.0000          .0000       .10000E+07
    21 'norm      '    1.8755       1.0000          .0000       .10000E+07
    22 'Prefactor '    .20717E-02   1.0000          .0000       .10000E+07
    23 'Normalizat'    .93827       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .91061       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6631.008     FROM MIGRAD    STATUS=CONVERGED    147 CALLS     1989 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27756E-08    31.853       -.56731E-07** at limit **
   2  Prefactor     1.0552        3.8140        .69062E-06   -.27835E-02
   3  Prefactor     .27756E-09    1.6537        .24258E-06** at limit **
   4  norm          .83267E-09    2.9044       -.14525E-06** at limit **
   5  norm          .10664E-05    2.0341        .13128E-06** at limit **
   6  Prefactor     .54218E-06    4.8860        .16961E-06** at limit **
   7  Prefactor     .48184E-07    6.3685       -.31515E-06** at limit **
   8  norm          4.1008        2.1080        .61919E-07    .16014E-02
   9  Prefactor     15.467        1.0709        .72630E-08    .81913E-02
  10  norm          .10373        36.741       -.23670E-05** at limit **
  11  Prefactor     1.6045        3.3285        .36650E-06    .82967E-03
  12  norm          3.9893        1.9804        .17554E-06    .49282E-02
  13  norm          .61062E-09    8.4489        .33015E-06** at limit **
  14  Prefactor     18.826        1.1685        .86897E-08   -.11404E-01
  15  Prefactor     3.4660        3.8689        .13893E-06    .85853E-03
  16  Prefactor     .11541E-06    3.8991        .37677E-06** at limit **
  17  Prefactor     .38869E-06    9.0262        .33111E-06** at limit **
  18  Prefactor     .16820E-07    29.525        .13093E-06** at limit **
  19  Prefactor     .70275        3.1031        .16265E-06    .48661E-02
  20  Prefactor     4.4746        4.5662       -.33112E-06   -.66130E-01
  21  norm          1.8734        4.3941       -.72758E-08   -.99183E-03
  22  Prefactor     .27756E-09    4.7922        .45141E-06** at limit **
  23  Normalizat    .93862        .15993       -.29894E-05   -.52779E-04
  24  Prefactor     .91063        .19068       -.94209E-06   -.24277E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.77556e-09
  Prefactor  = 1.05515
  Prefactor  = 2.77556e-10
  norm       = 8.32667e-10
  norm       = 1.06637e-06
  Prefactor  = 5.42177e-07
  Prefactor  = 4.81837e-08
  norm       = 4.10082
  Prefactor  = 15.4668
  norm       = 0.103729
  Prefactor  = 1.60452
  norm       = 3.9893
  norm       = 6.10623e-10
  Prefactor  = 18.8264
  Prefactor  = 3.466
  Prefactor  = 1.15408e-07
  Prefactor  = 3.88689e-07
  Prefactor  = 1.68199e-08
  Prefactor  = 0.702751
  Prefactor  = 4.47465
  norm       = 1.87338
  Prefactor  = 2.77556e-10
  Normalizat = 0.938625
  Prefactor  = 0.910628
 **********
 **   18 **HESSE 
 **********

 FCN=   6631.008     FROM HESSE     STATUS=OK           457 CALLS     2446 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27756E-08    31.165        .16115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.0552        44.758        .12338E-02   -1.5687    
   3  Prefactor     .27756E-09    1.6548        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .83267E-09    2.9362        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10664E-05    16.043        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .54218E-06    9.7540        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .48184E-07    7.8714        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.1008        2.1092        .49756E-03   -1.5667    
   9  Prefactor     15.467        21.911        .25419E-03   -1.5629    
  10  norm          .10373        2.0413        .88555E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.6045        3.3816        .83494E-03   -1.5683    
  12  norm          3.9893        1.9839        .50466E-03   -1.5668    
  13  norm          .61062E-09    .95502        .29462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.826        20.965        .23053E-03   -1.5621    
  15  Prefactor     3.4660        3.8769        .54337E-03   -1.5671    
  16  Prefactor     .11541E-06    10.763        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .38869E-06    12.161        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .16820E-07    29.582        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .70275        3.1655        .57897E-03   -1.5691    
  20  Prefactor     4.4746        8.5643        .47382E-03   -1.5666    
  21  norm          1.8734        4.4138        .76005E-03   -1.5681    
  22  Prefactor     .27756E-09    9.9223        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .93862        .13962        .45389E-01   -.95116    
  24  Prefactor     .91063        .16302        .45140E-01   -.95771    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16739e-06
Minuit parameter uncertainties:
  1  0.000586391
  2  13.7445
  3  4.29849e-05
  4  9.82038e-05
  5  0.00827236
  6  0.00459922
  7  0.00123175
  8  2.10921
  9  21.9111
  10  0.920302
  11  3.38163
  12  1.98394
  13  4.86053e-05
  14  20.9655
  15  3.87688
  16  0.0022292
  17  0.00434828
  18  0.00141153
  19  2.98301
  20  8.5643
  21  4.41384
  22  0.000102098
  23  0.139671
  24  0.163105
Done.

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

Extracting fit parameters...

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  1.883e+01  2.097e+01  0.000e+00  1.000e+06 ( 1.000e-14)
370        Index:  1.987e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  2.277e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  9.106e-01  1.631e-01  0.000e+00  1.000e+01 ( 1.000e+00)
708        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
709        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
706   Normalization:  9.386e-01  1.397e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.17
Ra Dec: 193.467 62.705
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 9.48e-09 +/- 1.06e-08
Energy Flux (Fixed Index): 6.77e-06 +/- 7.54e-06

TS (Fixed Index): 2.17
Ra Dec: 193.467 62.705
Photon Flux Upper Limit: 4.28150877564e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00320754993249 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31396617/likelihoodResults_802569601_802828801_4FGL_J1253.8+6242_daily_bin2173.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) = 6630.7742069
delta logL = 0.234097575713

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6630.77260625
delta logL = 0.235698227831

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6630.773     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      290 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.035        27.786        .79961E-05   -.13967E-02
   2  Index         1.4668        .71272        .11346E-01   -.55676E-04
   3  Normalizat    .94306        .15407        .20515E-03    .49764E-04
   4  Prefactor     .90837        .18892        .25459E-03    .41261E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.0352
  Index      = 1.46677
  Normalizat = 0.943059
  Prefactor  = 0.908369
 **********
 **   18 **HESSE 
 **********

 FCN=   6630.773     FROM HESSE     STATUS=OK            23 CALLS      313 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.035        27.822        .15992E-05   -1.5608    
   2  Index         1.4668        .71384        .45383E-03   -.78475    
   3  Normalizat    .94306        .15423        .82061E-05   -.94963    
   4  Prefactor     .90837        .18912        .10184E-04   -.95849    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03902e-10
Minuit parameter uncertainties:
  1  27.8219
  2  0.71878
  3  0.154302
  4  0.189256
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) = 6630.77260624
delta logL = 0.235698231585

Extracting fit parameters...

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  2.504e+01  2.782e+01  0.000e+00  1.000e+06 ( 1.000e-14)
370        Index:  1.467e+00  7.188e-01  0.000e+00  1.000e+01 (-1.000e+00)
371        Scale:  2.277e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  9.084e-01  1.893e-01  0.000e+00  1.000e+01 ( 1.000e+00)
708        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
709        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
706   Normalization:  9.431e-01  1.543e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.64
Ra Dec: 193.467 62.705
Photon Index (Free Index): 1.47 +/- 0.72
Photon Flux (Free Index): 5.04e-09 +/- 7.45e-09
Energy Flux (Free Index): 1.78e-05 +/- 3.24e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /lscratch/kocevski/31396617/cmap_HighResolution_802569601_802828801_4FGL_J1253.8+6242_daily_bin2173.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.21e-03', comment='SUCCESS', photon_flux='9.48e-09', energy_flux2='1.78e-05', photon_flux_error='1.06e-08', dlogl='2.36e-01', energy_flux='6.77e-06', photon_flux2='5.04e-09', job_status='DONE', time_completed='2026-07-11 19:50:57.194388', photon_index_error2='0.72', photon_index2='1.47', ts='2.17', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='4.28e-08', energy_flux_error2='3.24e-05', EG='0.94', time_epoch_completed='1783824657.19', return_code='0', job_id='31396617', GAL2='0.91', EG2='0.94', return_code2='0', energy_flux_error='7.54e-06', photon_flux_error2='7.45e-09', ts2='2.64', photon_index='1.99' WHERE bin_id='2173' AND source_name='4FGL J1253.8+6242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jul 11 19:50:57 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  1.883e+01  2.097e+01  0.000e+00  1.000e+06 ( 1.000e-14)
370        Index:  1.987e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  2.277e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  9.106e-01  1.631e-01  0.000e+00  1.000e+01 ( 1.000e+00)
708        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
709        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
706   Normalization:  9.386e-01  1.397e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.17
Ra Dec: 193.467 62.705
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 9.48e-09 +/- 1.06e-08
Energy Flux (Fixed Index): 6.77e-06 +/- 7.54e-06

TS (Fixed Index): 2.17
Ra Dec: 193.467 62.705
Photon Flux Upper Limit: 4.28150877564e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00320754993249 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31396653/likelihoodResults_802569601_802828801_4FGL_J1253.8+6242_daily_bin2173.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) = 6630.7742069
delta logL = 0.234097575713

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6630.77260625
delta logL = 0.235698227831

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6630.773     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      290 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.035        27.786        .79961E-05   -.13967E-02
   2  Index         1.4668        .71272        .11346E-01   -.55676E-04
   3  Normalizat    .94306        .15407        .20515E-03    .49764E-04
   4  Prefactor     .90837        .18892        .25459E-03    .41261E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.0352
  Index      = 1.46677
  Normalizat = 0.943059
  Prefactor  = 0.908369
 **********
 **   18 **HESSE 
 **********

 FCN=   6630.773     FROM HESSE     STATUS=OK            23 CALLS      313 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.035        27.822        .15992E-05   -1.5608    
   2  Index         1.4668        .71384        .45383E-03   -.78475    
   3  Normalizat    .94306        .15423        .82061E-05   -.94963    
   4  Prefactor     .90837        .18912        .10184E-04   -.95849    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03902e-10
Minuit parameter uncertainties:
  1  27.8219
  2  0.71878
  3  0.154302
  4  0.189256
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) = 6630.77260624
delta logL = 0.235698231585

Extracting fit parameters...

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  2.504e+01  2.782e+01  0.000e+00  1.000e+06 ( 1.000e-14)
370        Index:  1.467e+00  7.188e-01  0.000e+00  1.000e+01 (-1.000e+00)
371        Scale:  2.277e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  9.084e-01  1.893e-01  0.000e+00  1.000e+01 ( 1.000e+00)
708        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
709        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
706   Normalization:  9.431e-01  1.543e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.64
Ra Dec: 193.467 62.705
Photon Index (Free Index): 1.47 +/- 0.72
Photon Flux (Free Index): 5.04e-09 +/- 7.45e-09
Energy Flux (Free Index): 1.78e-05 +/- 3.24e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /lscratch/kocevski/31396653/cmap_HighResolution_802569601_802828801_4FGL_J1253.8+6242_daily_bin2173.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.21e-03', comment='SUCCESS', photon_flux='9.48e-09', energy_flux2='1.78e-05', photon_flux_error='1.06e-08', dlogl='2.36e-01', energy_flux='6.77e-06', photon_flux2='5.04e-09', job_status='DONE', time_completed='2026-07-11 19:51:32.428388', photon_index_error2='0.72', photon_index2='1.47', ts='2.17', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='4.28e-08', energy_flux_error2='3.24e-05', EG='0.94', time_epoch_completed='1783824692.43', return_code='0', job_id='31396653', GAL2='0.91', EG2='0.94', return_code2='0', energy_flux_error='7.54e-06', photon_flux_error2='7.45e-09', ts2='2.64', photon_index='1.99' WHERE bin_id='2173' AND source_name='4FGL J1253.8+6242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jul 11 19:51:32 PDT 2026

tfile=/lscratch/kocevski/31396885/ltcube_802569601_802828801_4FGL_J1253.8+6242_daily_bin2173.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/31396885/ft2_4FGL_J1253.8+6242_daily_bin2173.fits
.....................!
real 8.33
user 7.64
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31396885/ft1_filtered_4FGL_J1253.8+6242_daily_bin2173.fits evtable="EVENTS" scfile=/lscratch/kocevski/31396885/ft2_4FGL_J1253.8+6242_daily_bin2173.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31396885/ltcube_802569601_802828801_4FGL_J1253.8+6242_daily_bin2173.fits outfile=/lscratch/kocevski/31396885/expmap_802569601_802828801_4FGL_J1253.8+6242_daily_bin2173.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/31396885/ltcube_802569601_802828801_4FGL_J1253.8+6242_daily_bin2173.fits
.....................!
real 66.68
user 61.70
sys 3.99

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

Setting source of interest to:
4FGL J1253.8+6242 @ 193.467 62.7052

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31396885/ft1_filtered_4FGL_J1253.8+6242_daily_bin2173.fits scfile=/lscratch/kocevski/31396885/ft2_4FGL_J1253.8+6242_daily_bin2173.fits outfile=/lscratch/kocevski/31396885/cmap_802569601_802828801_4FGL_J1253.8+6242_daily_bin2173.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=193.467 yref=62.7052 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.91
user 0.21
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31396885/ft1_filtered_4FGL_J1253.8+6242_daily_bin2173.fits scfile=/lscratch/kocevski/31396885/ft2_4FGL_J1253.8+6242_daily_bin2173.fits outfile=/lscratch/kocevski/31396885/cmap_HighResolution_802569601_802828801_4FGL_J1253.8+6242_daily_bin2173.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=193.467 yref=62.7052 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.81
user 0.20
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31396885/ft1_filtered_4FGL_J1253.8+6242_daily_bin2173.fits evtable="EVENTS" scfile=/lscratch/kocevski/31396885/ft2_4FGL_J1253.8+6242_daily_bin2173.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31396885/Model_4FGL_J1253.8+6242_daily_bin2173.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/31396885/ft1_filtered_4FGL_J1253.8+6242_daily_bin2173.fits.....................!
real 24.19
user 22.75
sys 0.76

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31396885/ft1_filtered_4FGL_J1253.8+6242_daily_bin2173.fits', '/lscratch/kocevski/31396885/ft2_4FGL_J1253.8+6242_daily_bin2173.fits', expMap='/lscratch/kocevski/31396885/expmap_802569601_802828801_4FGL_J1253.8+6242_daily_bin2173.fits', expCube='/lscratch/kocevski/31396885/ltcube_802569601_802828801_4FGL_J1253.8+6242_daily_bin2173.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31396885/Model_4FGL_J1253.8+6242_daily_bin2173.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1253.8+6242'

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  7.997e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
370        Index:  1.987e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  2.277e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31396885/ft1_filtered_4FGL_J1253.8+6242_daily_bin2173.fits
Spacecraft file(s): /lscratch/kocevski/31396885/ft2_4FGL_J1253.8+6242_daily_bin2173.fits
Exposure map: /lscratch/kocevski/31396885/expmap_802569601_802828801_4FGL_J1253.8+6242_daily_bin2173.fits
Exposure cube: /lscratch/kocevski/31396885/ltcube_802569601_802828801_4FGL_J1253.8+6242_daily_bin2173.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31396885/Model_4FGL_J1253.8+6242_daily_bin2173.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) = 6631.01816741

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .36726E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    1.0375       1.0000          .0000       .10000E+07
     3 'Prefactor '    .47331E-04   1.0000          .0000       .10000E+07
     4 'norm      '    .26833E-04   1.0000          .0000       .10000E+07
     5 'norm      '    .19253E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .83989E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .14183E-02   1.0000          .0000       .10000E+07
     8 'norm      '    4.1012       1.0000          .0000       .10000E+07
     9 'Prefactor '    15.493       1.0000          .0000       .10000E+07
    10 'norm      '    .10131       1.0000          .0000       .10000E+07
    11 'Prefactor '    1.6087       1.0000          .0000       .10000E+07
    12 'norm      '    3.9902       1.0000          .0000       .10000E+07
    13 'norm      '    .28297E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    18.830       1.0000          .0000       .10000E+07
    15 'Prefactor '    3.4608       1.0000          .0000       .10000E+07
    16 'Prefactor '    .38339E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .40290E-06   1.0000          .0000       .10000E+07
    18 'Prefactor '    .10956E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    .73519       1.0000          .0000       .10000E+07
    20 'Prefactor '    4.5103       1.0000          .0000       .10000E+07
    21 'norm      '    1.8755       1.0000          .0000       .10000E+07
    22 'Prefactor '    .20717E-02   1.0000          .0000       .10000E+07
    23 'Normalizat'    .93827       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .91061       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6631.008     FROM MIGRAD    STATUS=CONVERGED    147 CALLS     1989 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27756E-08    31.853       -.56731E-07** at limit **
   2  Prefactor     1.0552        3.8140        .69062E-06   -.27835E-02
   3  Prefactor     .27756E-09    1.6537        .24258E-06** at limit **
   4  norm          .83267E-09    2.9044       -.14525E-06** at limit **
   5  norm          .10664E-05    2.0341        .13128E-06** at limit **
   6  Prefactor     .54218E-06    4.8860        .16961E-06** at limit **
   7  Prefactor     .48184E-07    6.3685       -.31515E-06** at limit **
   8  norm          4.1008        2.1080        .61919E-07    .16014E-02
   9  Prefactor     15.467        1.0709        .72630E-08    .81913E-02
  10  norm          .10373        36.741       -.23670E-05** at limit **
  11  Prefactor     1.6045        3.3285        .36650E-06    .82967E-03
  12  norm          3.9893        1.9804        .17554E-06    .49282E-02
  13  norm          .61062E-09    8.4489        .33015E-06** at limit **
  14  Prefactor     18.826        1.1685        .86897E-08   -.11404E-01
  15  Prefactor     3.4660        3.8689        .13893E-06    .85853E-03
  16  Prefactor     .11541E-06    3.8991        .37677E-06** at limit **
  17  Prefactor     .38869E-06    9.0262        .33111E-06** at limit **
  18  Prefactor     .16820E-07    29.525        .13093E-06** at limit **
  19  Prefactor     .70275        3.1031        .16265E-06    .48661E-02
  20  Prefactor     4.4746        4.5662       -.33112E-06   -.66130E-01
  21  norm          1.8734        4.3941       -.72758E-08   -.99183E-03
  22  Prefactor     .27756E-09    4.7922        .45141E-06** at limit **
  23  Normalizat    .93862        .15993       -.29894E-05   -.52779E-04
  24  Prefactor     .91063        .19068       -.94209E-06   -.24277E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.77556e-09
  Prefactor  = 1.05515
  Prefactor  = 2.77556e-10
  norm       = 8.32667e-10
  norm       = 1.06637e-06
  Prefactor  = 5.42177e-07
  Prefactor  = 4.81837e-08
  norm       = 4.10082
  Prefactor  = 15.4668
  norm       = 0.103729
  Prefactor  = 1.60452
  norm       = 3.9893
  norm       = 6.10623e-10
  Prefactor  = 18.8264
  Prefactor  = 3.466
  Prefactor  = 1.15408e-07
  Prefactor  = 3.88689e-07
  Prefactor  = 1.68199e-08
  Prefactor  = 0.702751
  Prefactor  = 4.47465
  norm       = 1.87338
  Prefactor  = 2.77556e-10
  Normalizat = 0.938625
  Prefactor  = 0.910628
 **********
 **   18 **HESSE 
 **********

 FCN=   6631.008     FROM HESSE     STATUS=OK           457 CALLS     2446 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27756E-08    31.165        .16115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.0552        44.758        .12338E-02   -1.5687    
   3  Prefactor     .27756E-09    1.6548        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .83267E-09    2.9362        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10664E-05    16.043        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .54218E-06    9.7540        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .48184E-07    7.8714        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.1008        2.1092        .49756E-03   -1.5667    
   9  Prefactor     15.467        21.911        .25419E-03   -1.5629    
  10  norm          .10373        2.0413        .88555E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.6045        3.3816        .83494E-03   -1.5683    
  12  norm          3.9893        1.9839        .50466E-03   -1.5668    
  13  norm          .61062E-09    .95502        .29462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.826        20.965        .23053E-03   -1.5621    
  15  Prefactor     3.4660        3.8769        .54337E-03   -1.5671    
  16  Prefactor     .11541E-06    10.763        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .38869E-06    12.161        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .16820E-07    29.582        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .70275        3.1655        .57897E-03   -1.5691    
  20  Prefactor     4.4746        8.5643        .47382E-03   -1.5666    
  21  norm          1.8734        4.4138        .76005E-03   -1.5681    
  22  Prefactor     .27756E-09    9.9223        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .93862        .13962        .45389E-01   -.95116    
  24  Prefactor     .91063        .16302        .45140E-01   -.95771    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16739e-06
Minuit parameter uncertainties:
  1  0.000586391
  2  13.7445
  3  4.29849e-05
  4  9.82038e-05
  5  0.00827236
  6  0.00459922
  7  0.00123175
  8  2.10921
  9  21.9111
  10  0.920302
  11  3.38163
  12  1.98394
  13  4.86053e-05
  14  20.9655
  15  3.87688
  16  0.0022292
  17  0.00434828
  18  0.00141153
  19  2.98301
  20  8.5643
  21  4.41384
  22  0.000102098
  23  0.139671
  24  0.163105
Done.

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

Extracting fit parameters...

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  1.883e+01  2.097e+01  0.000e+00  1.000e+06 ( 1.000e-14)
370        Index:  1.987e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  2.277e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  9.106e-01  1.631e-01  0.000e+00  1.000e+01 ( 1.000e+00)
708        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
709        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
706   Normalization:  9.386e-01  1.397e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.17
Ra Dec: 193.467 62.705
Photon Index (Fixed Index): 1.99 +/- 0.00
Photon Flux (Fixed Index): 9.48e-09 +/- 1.06e-08
Energy Flux (Fixed Index): 6.77e-06 +/- 7.54e-06

TS (Fixed Index): 2.17
Ra Dec: 193.467 62.705
Photon Flux Upper Limit: 4.28150877564e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00320754993249 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31396885/likelihoodResults_802569601_802828801_4FGL_J1253.8+6242_daily_bin2173.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) = 6630.7742069
delta logL = 0.234097575713

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6630.77260625
delta logL = 0.235698227831

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6630.773     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      290 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.035        27.786        .79961E-05   -.13967E-02
   2  Index         1.4668        .71272        .11346E-01   -.55676E-04
   3  Normalizat    .94306        .15407        .20515E-03    .49764E-04
   4  Prefactor     .90837        .18892        .25459E-03    .41261E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.0352
  Index      = 1.46677
  Normalizat = 0.943059
  Prefactor  = 0.908369
 **********
 **   18 **HESSE 
 **********

 FCN=   6630.773     FROM HESSE     STATUS=OK            23 CALLS      313 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.035        27.822        .15992E-05   -1.5608    
   2  Index         1.4668        .71384        .45383E-03   -.78475    
   3  Normalizat    .94306        .15423        .82061E-05   -.94963    
   4  Prefactor     .90837        .18912        .10184E-04   -.95849    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03902e-10
Minuit parameter uncertainties:
  1  27.8219
  2  0.71878
  3  0.154302
  4  0.189256
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) = 6630.77260624
delta logL = 0.235698231585

Extracting fit parameters...

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  2.504e+01  2.782e+01  0.000e+00  1.000e+06 ( 1.000e-14)
370        Index:  1.467e+00  7.188e-01  0.000e+00  1.000e+01 (-1.000e+00)
371        Scale:  2.277e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  9.084e-01  1.893e-01  0.000e+00  1.000e+01 ( 1.000e+00)
708        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
709        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
706   Normalization:  9.431e-01  1.543e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.64
Ra Dec: 193.467 62.705
Photon Index (Free Index): 1.47 +/- 0.72
Photon Flux (Free Index): 5.04e-09 +/- 7.45e-09
Energy Flux (Free Index): 1.78e-05 +/- 3.24e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /lscratch/kocevski/31396885/cmap_HighResolution_802569601_802828801_4FGL_J1253.8+6242_daily_bin2173.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.21e-03', comment='SUCCESS', photon_flux='9.48e-09', energy_flux2='1.78e-05', photon_flux_error='1.06e-08', dlogl='2.36e-01', energy_flux='6.77e-06', photon_flux2='5.04e-09', job_status='DONE', time_completed='2026-07-11 19:54:51.784056', photon_index_error2='0.72', photon_index2='1.47', ts='2.17', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='4.28e-08', energy_flux_error2='3.24e-05', EG='0.94', time_epoch_completed='1783824891.78', return_code='0', job_id='31396885', GAL2='0.91', EG2='0.94', return_code2='0', energy_flux_error='7.54e-06', photon_flux_error2='7.45e-09', ts2='2.64', photon_index='1.99' WHERE bin_id='2173' AND source_name='4FGL J1253.8+6242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jul 11 19:54:52 PDT 2026

