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

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

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

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

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

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

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


Performing analysis on: 4FGL_J1223.8+8039_daily_bin2114
RA = 185.971, Dec = 80.6598
tmin = 787276801, tmax = 787536001
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

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

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='17372203', job_status='RUN', time_executed='2025-12-16 00:59:11.273536', time_epoch_executed='1765875551.27' WHERE source_name='4FGL J1223.8+8039' and cadence='daily' and bin_id='2114'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17372203

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17372203/ft1_4FGL_J1223.8+8039_daily_bin2114.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17372203/ft2_4FGL_J1223.8+8039_daily_bin2114.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17372203/ft1_4FGL_J1223.8+8039_daily_bin2114.fits outfile=/lscratch/kocevski/17372203/ft1_filteredMKT_4FGL_J1223.8+8039_daily_bin2114.fits ra=185.971 dec=80.6598 rad=12.0 tmin=787276801.0 tmax=787536001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.41
user 1.74
sys 0.17

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17372203/ft2_4FGL_J1223.8+8039_daily_bin2114.fits

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

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

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

Number of photons that the gtmktime cut: 894

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17372203/ft1_filtered_4FGL_J1223.8+8039_daily_bin2114.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17372203/ft2_4FGL_J1223.8+8039_daily_bin2114.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17372203/ltcube_787276801_787536001_4FGL_J1223.8+8039_daily_bin2114.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Working on file /lscratch/kocevski/17372203/ft2_4FGL_J1223.8+8039_daily_bin2114.fits
.....................!
real 8.51
user 7.64
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17372203/ft1_filtered_4FGL_J1223.8+8039_daily_bin2114.fits evtable="EVENTS" scfile=/lscratch/kocevski/17372203/ft2_4FGL_J1223.8+8039_daily_bin2114.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17372203/ltcube_787276801_787536001_4FGL_J1223.8+8039_daily_bin2114.fits outfile=/lscratch/kocevski/17372203/expmap_787276801_787536001_4FGL_J1223.8+8039_daily_bin2114.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/17372203/ltcube_787276801_787536001_4FGL_J1223.8+8039_daily_bin2114.fits
.....................!
real 66.43
user 61.92
sys 3.59

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

Setting source of interest to:
4FGL J1223.8+8039 @ 185.971 80.6598

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17372203/ft1_filtered_4FGL_J1223.8+8039_daily_bin2114.fits scfile=/lscratch/kocevski/17372203/ft2_4FGL_J1223.8+8039_daily_bin2114.fits outfile=/lscratch/kocevski/17372203/cmap_787276801_787536001_4FGL_J1223.8+8039_daily_bin2114.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=185.971 yref=80.6598 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.78
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17372203/ft1_filtered_4FGL_J1223.8+8039_daily_bin2114.fits scfile=/lscratch/kocevski/17372203/ft2_4FGL_J1223.8+8039_daily_bin2114.fits outfile=/lscratch/kocevski/17372203/cmap_HighResolution_787276801_787536001_4FGL_J1223.8+8039_daily_bin2114.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=185.971 yref=80.6598 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.22
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17372203/ft1_filtered_4FGL_J1223.8+8039_daily_bin2114.fits evtable="EVENTS" scfile=/lscratch/kocevski/17372203/ft2_4FGL_J1223.8+8039_daily_bin2114.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17372203/Model_4FGL_J1223.8+8039_daily_bin2114.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/17372203/ft1_filtered_4FGL_J1223.8+8039_daily_bin2114.fits.....................!
real 44.23
user 42.49
sys 0.98

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17372203/ft1_filtered_4FGL_J1223.8+8039_daily_bin2114.fits', '/lscratch/kocevski/17372203/ft2_4FGL_J1223.8+8039_daily_bin2114.fits', expMap='/lscratch/kocevski/17372203/expmap_787276801_787536001_4FGL_J1223.8+8039_daily_bin2114.fits', expCube='/lscratch/kocevski/17372203/ltcube_787276801_787536001_4FGL_J1223.8+8039_daily_bin2114.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17372203/Model_4FGL_J1223.8+8039_daily_bin2114.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1223.8+8039'

4FGL J1223.8+8039
   Spectrum: LogParabola
361         norm:  1.610e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
362        alpha:  2.117e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
363         beta:  1.252e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
364           Eb:  9.363e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17372203/ft1_filtered_4FGL_J1223.8+8039_daily_bin2114.fits
Spacecraft file(s): /lscratch/kocevski/17372203/ft2_4FGL_J1223.8+8039_daily_bin2114.fits
Exposure map: /lscratch/kocevski/17372203/expmap_787276801_787536001_4FGL_J1223.8+8039_daily_bin2114.fits
Exposure cube: /lscratch/kocevski/17372203/ltcube_787276801_787536001_4FGL_J1223.8+8039_daily_bin2114.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17372203/Model_4FGL_J1223.8+8039_daily_bin2114.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12381E-03   1.0000          .0000       .10000E+07
     2 'norm      '    .17383E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    .63780E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    6.8379       1.0000          .0000       .10000E+07
     5 'Prefactor '    .16760E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    8.7972       1.0000          .0000       .10000E+07
     7 'Prefactor '    81.820       1.0000          .0000       .10000E+07
     8 'norm      '    10.507       1.0000          .0000       .10000E+07
     9 'Prefactor '    .10603E-07   1.0000          .0000       .10000E+07
    10 'norm      '    .69326       1.0000          .0000       .10000E+07
    11 'norm      '    10.704       1.0000          .0000       .10000E+07
    12 'Prefactor '    .82712E-08   1.0000          .0000       .10000E+07
    13 'Prefactor '    4.3714       1.0000          .0000       .10000E+07
    14 'Prefactor '    .50421E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    6.2257       1.0000          .0000       .10000E+07
    16 'norm      '    6.9822       1.0000          .0000       .10000E+07
    17 'norm      '    1.3169       1.0000          .0000       .10000E+07
    18 'Prefactor '    .28945E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    15.857       1.0000          .0000       .10000E+07
    20 'Prefactor '    2.0991       1.0000          .0000       .10000E+07
    21 'Prefactor '    18.047       1.0000          .0000       .10000E+07
    22 'Prefactor '    .13323E-02   1.0000          .0000       .10000E+07
    23 'Prefactor '    26.802       1.0000          .0000       .10000E+07
    24 'Prefactor '    .58988E-01   1.0000          .0000       .10000E+07
    25 'norm      '    26.769       1.0000          .0000       .10000E+07
    26 'Prefactor '    9.5914       1.0000          .0000       .10000E+07
    27 'Normalizat'    .73120       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0751       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9529.944     FROM MIGRAD    STATUS=CONVERGED    162 CALLS     2597 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .30309E-07    40.739        .95466E-05** at limit **
   2  norm           .0000        10.675        .35026E-06** at limit **
   3  Prefactor     .15981E-05    8.7061        .19626E-05** at limit **
   4  Prefactor     6.8183        7.5625       -.15044E-06    .58179E-03
   5  Prefactor     .70973E-05    26.307       -.12291E-05** at limit **
   6  Prefactor     8.8986        10.206       -.32309E-06   -.91648E-03
   7  Prefactor     81.906        2.5049       -.22072E-06    .17960E-01
   8  norm          10.500        4.5551       -.59305E-06    .19622E-02
   9  Prefactor      .0000        1.7996        .13209E-05** at limit **
  10  norm          .69316        .54396       -.65143E-06   -.18711E-02
  11  norm          10.705        3.4916        .58847E-06    .49753E-04
  12  Prefactor      .0000        4.4105       -.31174E-05** at limit **
  13  Prefactor     4.3715        3.0268        .34041E-06    .16375E-02
  14  Prefactor      .0000        8.0785       -.10510E-05** at limit **
  15  Prefactor     5.5274        45.904       -.50287E-05    .22370E-01
  16  norm          6.9833        4.6421        .94225E-06    .73229E-05
  17  norm          1.3174        1.6871       -.78176E-06    .18640E-03
  18  Prefactor     .56344E-07    26.481       -.34944E-05** at limit **
  19  Prefactor     15.627        9.8610       -.59582E-06   -.55931E-01
  20  Prefactor     2.2896        2.6116       -.10448E-05   -.32327E-02
  21  Prefactor     18.266        1.8306        .17906E-06    .71030E-01
  22  Prefactor     .14079E-05    9.6014        .29946E-05** at limit **
  23  Prefactor     27.276        2.6767       -.16625E-07   -.15074E-01
  24  Prefactor     .55511E-10    48.320       -.10899E-05** at limit **
  25  norm          26.714        1.3208       -.73053E-07   -.19246E-01
  26  Prefactor     8.6119        52.109       -.49266E-05   -.17331E-01
  27  Normalizat    .73054        .15816       -.46116E-04    .98333E-04
  28  Prefactor     1.0760        .11466        .32037E-04    .16681E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.03091e-08
  norm       = 0
  Prefactor  = 1.59811e-06
  Prefactor  = 6.81828
  Prefactor  = 7.09732e-06
  Prefactor  = 8.89859
  Prefactor  = 81.9057
  norm       = 10.4996
  Prefactor  = 0
  norm       = 0.693155
  norm       = 10.7054
  Prefactor  = 0
  Prefactor  = 4.37151
  Prefactor  = 0
  Prefactor  = 5.52737
  norm       = 6.98328
  norm       = 1.31743
  Prefactor  = 5.63438e-08
  Prefactor  = 15.6271
  Prefactor  = 2.2896
  Prefactor  = 18.2661
  Prefactor  = 1.40793e-06
  Prefactor  = 27.2761
  Prefactor  = 5.55112e-11
  norm       = 26.7143
  Prefactor  = 8.61187
  Normalizat = 0.730537
  Prefactor  = 1.07595
 **********
 **   18 **HESSE 
 **********

 FCN=   9529.944     FROM HESSE     STATUS=OK           585 CALLS     3182 TOTAL
                     EDM=   .69E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .30309E-07    41.036        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        10.671        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .15981E-05    18.259        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.8183        7.5554        .38345E-03   -1.5656    
   5  Prefactor     .70973E-05    8.0027        .13840E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.8986        10.242        .33770E-03   -1.5648    
   7  Prefactor     81.906        40.763        .11056E-03   -1.5527    
   8  norm          10.500        4.5691        .30885E-03   -1.5643    
   9  Prefactor      .0000        1.8020        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .69316        .54700        .61257E-04   -1.5691    
  11  norm          10.705        3.4966        .30600E-03   -1.5643    
  12  Prefactor      .0000        4.4116        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.3715        3.0211        .48149E-03   -1.5666    
  14  Prefactor      .0000        8.0684        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.5274        136.42        .40209E-03   -1.5661    
  16  norm          6.9833        4.6477        .37943E-03   -1.5655    
  17  norm          1.3174        1.7117        .95923E-03   -1.5685    
  18  Prefactor     .56344E-07    27.004        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     15.627        11.391        .25125E-03   -1.5629    
  20  Prefactor     2.2896        104.58        .71205E-03   -1.5678    
  21  Prefactor     18.266        21.005        .23549E-03   -1.5622    
  22  Prefactor     .14079E-05    17.924        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     27.276        25.929        .19320E-03   -1.5604    
  24  Prefactor     .55511E-10    47.941        .15199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          26.714        19.590        .19331E-03   -1.5605    
  26  Prefactor     8.6119        76.594        .32334E-03   -1.5649    
  27  Normalizat    .73054        .15356        .71089E-01   -1.0270    
  28  Prefactor     1.0760        .10389        .38618E-01   -.90239    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.86461e-07
Minuit parameter uncertainties:
  1  0.00223068
  2  2.0518e-05
  3  0.0108038
  4  7.55541
  5  0.0150729
  6  10.2417
  7  40.763
  8  4.56914
  9  1.43269e-06
  10  0.546997
  11  3.49664
  12  1.46677e-05
  13  3.02108
  14  2.42316e-05
  15  54.9219
  16  4.64775
  17  1.71168
  18  0.00246715
  19  11.391
  20  30.949
  21  21.0047
  22  0.010047
  23  25.929
  24  9.33754e-05
  25  19.5904
  26  51.367
  27  0.153649
  28  0.103912
Done.

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

Extracting fit parameters...

4FGL J1223.8+8039
   Spectrum: LogParabola
361         norm:  1.317e+00  1.712e+00  0.000e+00  1.000e+06 ( 1.000e-12)
362        alpha:  2.117e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
363         beta:  1.252e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
364           Eb:  9.363e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  1.076e+00  1.039e-01  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  7.305e-01  1.536e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.24
Ra Dec: 185.971 80.660
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 9.92e-09 +/- 1.29e-08
Energy Flux (Fixed Index): 4.80e-06 +/- 6.23e-06

TS (Fixed Index): 1.24
Ra Dec: 185.971 80.660
Photon Flux Upper Limit: 4.86168822139e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.35082304943e-05 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17372203/likelihoodResults_787276801_787536001_4FGL_J1223.8+8039_daily_bin2114.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9529.76092702
delta logL = 0.182705346509

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9529.7513803
delta logL = 0.192252066605

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9529.751     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      202 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0850        1.3701        .11523E-02    .53840E-02
   2  alpha         1.4016        .75556        .47837       -.13555E-04
   3  Normalizat    .73450        .13781        .70916E-01    .11738E-03
   4  Prefactor     1.0758        .99885E-01    .38590E-01   -.24177E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.08503
  alpha      = 1.4016
  Normalizat = 0.734502
  Prefactor  = 1.07576
 **********
 **   18 **HESSE 
 **********

 FCN=   9529.751     FROM HESSE     STATUS=OK            31 CALLS      233 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0850        1.5549        .12500E-04   -1.5687    
   2  alpha         1.4016        .98632        .32581E-01   -.45489    
   3  Normalizat    .73450        .15186        .31385E-03   -1.0255    
   4  Prefactor     1.0758        .11038        .19026E-03   -.90245    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.24654e-10
Minuit parameter uncertainties:
  1  1.55486
  2  1.02115
  3  0.151946
  4  0.110399
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) = 9529.75138029
delta logL = 0.192252069579

Extracting fit parameters...

4FGL J1223.8+8039
   Spectrum: LogParabola
361         norm:  1.085e+00  1.555e+00  0.000e+00  1.000e+06 ( 1.000e-12)
362        alpha:  1.402e+00  1.021e+00  0.000e+00  5.000e+00 ( 1.000e+00)
363         beta:  1.252e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
364           Eb:  9.363e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
691    Prefactor:  1.076e+00  1.104e-01  0.000e+00  1.000e+01 ( 1.000e+00)
692        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
693        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
690   Normalization:  7.345e-01  1.519e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.62
Ra Dec: 185.971 80.660
Photon Index (Free Index): 1.40 +/- 1.02
Photon Flux (Free Index): 4.38e-09 +/- 7.33e-09
Energy Flux (Free Index): 8.40e-06 +/- 1.50e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/17372203/cmap_HighResolution_787276801_787536001_4FGL_J1223.8+8039_daily_bin2114.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.35e-05', comment='SUCCESS', photon_flux='9.92e-09', energy_flux2='8.40e-06', photon_flux_error='1.29e-08', dlogl='1.92e-01', energy_flux='4.80e-06', photon_flux2='4.38e-09', job_status='DONE', time_completed='2025-12-16 01:08:20.878462', photon_index_error2='1.02', photon_index2='1.40', ts='1.24', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='4.86e-08', energy_flux_error2='1.50e-05', EG='0.73', time_epoch_completed='1765876100.88', return_code='0', job_id='17372203', GAL2='1.08', EG2='0.73', return_code2='0', energy_flux_error='6.23e-06', photon_flux_error2='7.33e-09', ts2='1.62', photon_index='2.12' WHERE bin_id='2114' AND source_name='4FGL J1223.8+8039' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 16 01:08:21 PST 2025

