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

 FCN=   20175.73     FROM HESSE     STATUS=OK           308 CALLS     1451 TOTAL
                     EDM=   .23E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33307E-09    3.6880        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .33662E-06    84.858        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.8324        4.6628        .35741E-03   -1.5652    
   4  norm          2.8082        1.5655        .60680E-03   -1.5674    
   5  Prefactor     1.5151        1.5419        .86818E-03   -1.5683    
   6  Prefactor      .0000        2.7975        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.0427        12.003        .33491E-03   -1.5648    
   8  Prefactor     .22204E-09    12.016        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.2957        3.5335        .55880E-03   -1.5672    
  10  Prefactor     .83267E-09    7.4495        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        2.4309        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          9.0107        5.8354        .33272E-03   -1.5648    
  13  norm           .0000        .55713        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        3.0632        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     36.764        32.959        .16430E-03   -1.5587    
  16  Prefactor     .29976E-08    14.874        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.7433        4.3526        .80049E-03   -1.5682    
  18  Normalizat    1.1739        .14508        .89869E-01   -.87412    
  19  Prefactor     .89253        .44323E-01    .32059E-01   -.96403    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30463e-06
Minuit parameter uncertainties:
  1  7.28766e-05
  2  0.0106895
  3  4.66279
  4  1.56551
  5  1.54195
  6  1.49848e-05
  7  12.0031
  8  9.84699e-05
  9  3.53349
  10  0.00015951
  11  2.02904e-06
  12  5.83539
  13  3.53621e-06
  14  2.65742e-06
  15  32.9595
  16  0.000421289
  17  4.3526
  18  0.145125
  19  0.0443244
/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).

Done.

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

Extracting fit parameters...

4FGL J0004.3+4614
   Spectrum: PowerLaw
22     Prefactor:  3.331e-10  7.288e-05  0.000e+00  1.000e+06 ( 1.000e-13)
23         Index:  2.585e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
24         Scale:  9.171e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  8.925e-01  4.432e-02  0.000e+00  1.000e+01 ( 1.000e+00)
607        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
608        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.174e+00  1.451e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 1.076 46.243
Photon Flux Upper Limit: 3.62393959358e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00283354410716 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/30941820/likelihoodResults_803606401_803865601_4FGL_J0004.3+4614_daily_bin2177.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) = 20175.7330651
delta logL = -0.00209853592605

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 20175.7309678
delta logL = -1.28688770928e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13084E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.7580       1.0000          .0000       10.000    
     3 'Normalizat'    1.1742       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89248       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6090E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   20175.73     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      281 TOTAL
                     EDM=   .11E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        5.0893        .42118E-03** at limit **
   2  Index         2.3140        1.1411       -.68806E-05     .0000    
   3  Normalizat    1.1739        1.1158       -.17940E-05   -.92938E-05
   4  Prefactor     .89253        1.2378        .16094E-05   -.12737E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.31396
  Normalizat = 1.17394
  Prefactor  = 0.89253
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   20175.73     FROM HESSE     STATUS=FAILED         9 CALLS      290 TOTAL
                     EDM=   .11E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        5.0893        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .59701        1.8171       -.68806E-05   -.56712    
   3  Normalizat    1.1739        1.1158       -.17940E-05   -.87412    
   4  Prefactor     .89253        1.2378        .16094E-05   -.96403    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.12936e-13
Minuit parameter uncertainties:
  1  2.98284e-06
  2  1.15549
  3  1.13969
  4  1.2804
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 20175.7309665
delta logL = 5.09317032993e-11

Extracting fit parameters...

4FGL J0004.3+4614
   Spectrum: PowerLaw
22     Prefactor:  0.000e+00  2.983e-06  0.000e+00  1.000e+06 ( 1.000e-13)
23         Index:  2.314e+00  1.155e+00  0.000e+00  1.000e+01 (-1.000e+00)
24         Scale:  9.171e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  8.925e-01  1.280e+00  0.000e+00  1.000e+01 ( 1.000e+00)
607        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
608        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.174e+00  1.140e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 1.076 46.243

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/30941820/cmap_HighResolution_803606401_803865601_4FGL_J0004.3+4614_daily_bin2177.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.83e-03', job_status='DONE', photon_flux_upper_limit='3.62e-08', time_completed='2026-07-07 11:02:40.622380', job_id='30941820', GAL2='0.89', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1783447360.62', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='5.09e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='2177' AND source_name='4FGL J0004.3+4614' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul  7 11:02:42 PDT 2026

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


Performing analysis on: 4FGL_J0004.3+4614_daily_bin2177
RA = 1.0757, Dec = 46.2427
tmin = 803606401, tmax = 803865601
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='30942669', job_status='RUN', time_executed='2026-07-07 10:55:28.853380', time_epoch_executed='1783446928.85' WHERE source_name='4FGL J0004.3+4614' and cadence='daily' and bin_id='2177'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/30942669

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/30942669/ft1_4FGL_J0004.3+4614_daily_bin2177.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/30942669/ft2_4FGL_J0004.3+4614_daily_bin2177.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/30942669/ft1_4FGL_J0004.3+4614_daily_bin2177.fits outfile=/lscratch/kocevski/30942669/ft1_filteredMKT_4FGL_J0004.3+4614_daily_bin2177.fits ra=1.0757 dec=46.2427 rad=12.0 tmin=803606401.0 tmax=803865601.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 4.49
user 2.85
sys 0.19

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/30942669/ft2_4FGL_J0004.3+4614_daily_bin2177.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/30942669/ft2_4FGL_J0004.3+4614_daily_bin2177.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/30942669/ft1_filteredMKT_4FGL_J0004.3+4614_daily_bin2177.fits evtable="EVENTS" outfile="/lscratch/kocevski/30942669/ft1_filtered_4FGL_J0004.3+4614_daily_bin2177.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.95
user 0.37
sys 0.15

Number of photons that the gtmktime cut: 1956

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/30942669/ft1_filtered_4FGL_J0004.3+4614_daily_bin2177.fits" evtable="EVENTS" scfile=/lscratch/kocevski/30942669/ft2_4FGL_J0004.3+4614_daily_bin2177.fits sctable="SC_DATA" outnumber of points = 7650
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0004.3+4614_daily_bin2177
RA = 1.0757, Dec = 46.2427
tmin = 803606401, tmax = 803865601
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='30943219', job_status='RUN', time_executed='2026-07-07 10:57:54.405786', time_epoch_executed='1783447074.41' WHERE source_name='4FGL J0004.3+4614' and cadence='daily' and bin_id='2177'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/30943219

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/30943219/ft1_4FGL_J0004.3+4614_daily_bin2177.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/30943219/ft2_4FGL_J0004.3+4614_daily_bin2177.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/30943219/ft1_4FGL_J0004.3+4614_daily_bin2177.fits outfile=/lscratch/kocevski/30943219/ft1_filteredMKT_4FGL_J0004.3+4614_daily_bin2177.fits ra=1.0757 dec=46.2427 rad=12.0 tmin=803606401.0 tmax=803865601.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.70
user 1.37
sys 0.19

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/30943219/ft2_4FGL_J0004.3+4614_daily_bin2177.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/30943219/ft2_4FGL_J0004.3+4614_daily_bin2177.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/30943219/ft1_filteredMKT_4FGL_J0004.3+4614_daily_bin2177.fits evtable="EVENTS" outfile="/lscratch/kocevski/30943219/ft1_filtered_4FGL_J0004.3+4614_daily_bin2177.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.26
user 0.19
sys 0.14

Number of photons that the gtmktime cut: 1956

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/30943219/ft1_filtered_4FGL_J0004.3+4614_daily_bin2177.fits" evtable="EVENTS" scfile=/lscratch/kocevski/30943219/ft2_4FGL_J0004.3+4614_daily_bin2177.fits sctable="SC_DATA" outfile=/lscratch/kocevski/30942669/ltcube_803606401_803865601_4FGL_J0004.3+4614_daily_bin2177.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/30942669/ft2_4FGL_J0004.3+4614_daily_bin2177.fits
.....................!
real 18.60
user 16.71
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/30942669/ft1_filtered_4FGL_J0004.3+4614_daily_bin2177.fits evtable="EVENTS" scfile=/lscratch/kocevski/30942669/ft2_4FGL_J0004.3+4614_daily_bin2177.fits sctable="SC_DATA" expcube=/lscratch/kocevski/30942669/ltcube_803606401_803865601_4FGL_J0004.3+4614_daily_bin2177.fits outfile=/lscratch/kocevski/30942669/expmap_803606401_803865601_4FGL_J0004.3+4614_daily_bin2177.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/30942669/ltcube_803606401_803865601_4FGL_J0004.3+4614_daily_bin2177.fits
.....................!
real 137.33
user 127.26
sys 8.11

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
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 180 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0004.3+4614 @ 1.0757 46.2427

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/30942669/ft1_filtered_4FGL_J0004.3+4614_daily_bin2177.fits scfile=/lscratch/kocevski/30942669/ft2_4FGL_J0004.3+4614_daily_bin2177.fits outfile=/lscratch/kocevski/30942669/cmap_803606401_803865601_4FGL_J0004.3+4614_daily_bin2177.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=1.0757 yref=46.2427 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.29
user 0.32
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/30942669/ft1_filtered_4FGL_J0004.3+4614_daily_bin2177.fits scfile=/lscratch/kocevski/30942669/ft2_4FGL_J0004.3+4614_daily_bin2177.fits outfile=/lscratch/kocevski/30942669/cmap_HighResolution_803606401_803865601_4FGL_J0004.3+4614_daily_bin2177.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=1.0757 yref=46.2427 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.81
user 0.30
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/30942669/ft1_filtered_4FGL_J0004.3+4614_daily_bin2177.fits evtable="EVENTS" scfile=/lscratch/kocevski/30942669/ft2_4FGL_J0004.3+4614_daily_bin2177.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/3094266file=/lscratch/kocevski/30943219/ltcube_803606401_803865601_4FGL_J0004.3+4614_daily_bin2177.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/30943219/ft2_4FGL_J0004.3+4614_daily_bin2177.fits
.....................!
real 8.39
user 7.03
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/30943219/ft1_filtered_4FGL_J0004.3+4614_daily_bin2177.fits evtable="EVENTS" scfile=/lscratch/kocevski/30943219/ft2_4FGL_J0004.3+4614_daily_bin2177.fits sctable="SC_DATA" expcube=/lscratch/kocevski/30943219/ltcube_803606401_803865601_4FGL_J0004.3+4614_daily_bin2177.fits outfile=/lscratch/kocevski/30943219/expmap_803606401_803865601_4FGL_J0004.3+4614_daily_bin2177.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/30943219/ltcube_803606401_803865601_4FGL_J0004.3+4614_daily_bin2177.fits
.....................!
real 60.21
user 55.52
sys 3.58

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
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 180 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0004.3+4614 @ 1.0757 46.2427

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/30943219/ft1_filtered_4FGL_J0004.3+4614_daily_bin2177.fits scfile=/lscratch/kocevski/30943219/ft2_4FGL_J0004.3+4614_daily_bin2177.fits outfile=/lscratch/kocevski/30943219/cmap_803606401_803865601_4FGL_J0004.3+4614_daily_bin2177.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=1.0757 yref=46.2427 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.34
user 0.20
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/30943219/ft1_filtered_4FGL_J0004.3+4614_daily_bin2177.fits scfile=/lscratch/kocevski/30943219/ft2_4FGL_J0004.3+4614_daily_bin2177.fits outfile=/lscratch/kocevski/30943219/cmap_HighResolution_803606401_803865601_4FGL_J0004.3+4614_daily_bin2177.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=1.0757 yref=46.2427 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.48
user 0.21
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/30943219/ft1_filtered_4FGL_J0004.3+4614_daily_bin2177.fits evtable="EVENTS" scfile=/lscratch/kocevski/30943219/ft2_4FGL_J0004.3+4614_daily_bin2177.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/30943219/Monumber of points = 7650
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0004.3+4614_daily_bin2177
RA = 1.0757, Dec = 46.2427
tmin = 803606401, tmax = 803865601
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='30943448', job_status='RUN', time_executed='2026-07-07 11:02:34.306637', time_epoch_executed='1783447354.31' WHERE source_name='4FGL J0004.3+4614' and cadence='daily' and bin_id='2177'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/30943448

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/30943448/ft1_4FGL_J0004.3+4614_daily_bin2177.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/30943448/ft2_4FGL_J0004.3+4614_daily_bin2177.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/30943448/ft1_4FGL_J0004.3+4614_daily_bin2177.fits outfile=/lscratch/kocevski/30943448/ft1_filteredMKT_4FGL_J0004.3+4614_daily_bin2177.fits ra=1.0757 dec=46.2427 rad=12.0 tmin=803606401.0 tmax=803865601.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.89
user 1.44
sys 0.14

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/30943448/ft2_4FGL_J0004.3+4614_daily_bin2177.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/30943448/ft2_4FGL_J0004.3+4614_daily_bin2177.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/30943448/ft1_filteredMKT_4FGL_J0004.3+4614_daily_bin2177.fits evtable="EVENTS" outfile="/lscratch/kocevski/30943448/ft1_filtered_4FGL_J0004.3+4614_daily_bin2177.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.47
user 0.19
sys 0.13

Number of photons that the gtmktime cut: 1956

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/30943448/ft1_filtered_4FGL_J0004.3+4614_daily_bin2177.fits" evtable="EVENTS" scfile=/lscratch/kocevski/30943448/ft2_4FGL_J0004.3+4614_daily_bin2177.fits sctable="SC_DATA" outdel_4FGL_J0004.3+4614_daily_bin2177.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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/lscratch/kocevski/30943219/ft1_filtered_4FGL_J0004.3+4614_daily_bin2177.fits.....................!
real 79.02
user 76.58
sys 0.91

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/30943219/ft1_filtered_4FGL_J0004.3+4614_daily_bin2177.fits', '/lscratch/kocevski/30943219/ft2_4FGL_J0004.3+4614_daily_bin2177.fits', expMap='/lscratch/kocevski/30943219/expmap_803606401_803865601_4FGL_J0004.3+4614_daily_bin2177.fits', expCube='/lscratch/kocevski/30943219/ltcube_803606401_803865601_4FGL_J0004.3+4614_daily_bin2177.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/30943219/Model_4FGL_J0004.3+4614_daily_bin2177.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0004.3+4614'

4FGL J0004.3+4614
   Spectrum: PowerLaw
22     Prefactor:  4.777e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
23         Index:  2.585e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
24         Scale:  9.171e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/30943219/ft1_filtered_4FGL_J0004.3+4614_daily_bin2177.fits
Spacecraft file(s): /lscratch/kocevski/30943219/ft2_4FGL_J0004.3+4614_daily_bin2177.fits
Exposure map: /lscratch/kocevski/30943219/expmap_803606401_803865601_4FGL_J0004.3+4614_daily_bin2177.fits
Exposure cube: /lscratch/kocevski/30943219/ltcube_803606401_803865601_4FGL_J0004.3+4614_daily_bin2177.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/30943219/Model_4FGL_J0004.3+4614_daily_bin2177.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) = 20175.7654384

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .67968E-03   1.0000          .0000       .10000E+07
     2 'norm      '    .10498E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    7.8602       1.0000          .0000       .10000E+07
     4 'norm      '    2.8079       1.0000          .0000       .10000E+07
     5 'Prefactor '    1.5151       1.0000          .0000       .10000E+07
     6 'Prefactor '    .32133E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    8.9436       1.0000          .0000       .10000E+07
     8 'Prefactor '    .12558E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    3.2806       1.0000          .0000       .10000E+07
    10 'Prefactor '    .54597E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .18180E-03   1.0000          .0000       .10000E+07
    12 'norm      '    9.0612       1.0000          .0000       .10000E+07
    13 'norm      '    .48461E-07   1.0000          .0000       .10000E+07
    14 'norm      '    .27149E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    37.054       1.0000          .0000       .10000E+07
    16 'Prefactor '    .35633E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    1.7208       1.0000          .0000       .10000E+07
    18 'Normalizat'    1.1742       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .89248       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6090E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   20175.73     FROM MIGRAD    STATUS=CONVERGED    136 CALLS     1143 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33307E-09    3.6864       -.64294E-07** at limit **
   2  norm          .33662E-06    85.829       -.10514E-05** at limit **
   3  Prefactor     7.8324        4.6520       -.28158E-07   -.47188E-02
   4  norm          2.8082        1.5618       -.12667E-07   -.68939E-02
   5  Prefactor     1.5151        1.5205       -.14483E-07   -.45028E-02
   6  Prefactor      .0000        2.7890        .44081E-07** at limit **
   7  Prefactor     9.0427        1.4442        .13803E-07   -.10160    
   8  Prefactor     .22204E-09    11.991       -.21033E-07** at limit **
   9  Prefactor     3.2957        3.5207       -.21595E-07   -.16309E-02
  10  Prefactor     .83267E-09    7.4261        .23467E-06** at limit **
  11  Prefactor      .0000        2.4345        .52029E-09** at limit **
  12  norm          9.0107        5.8225        .39466E-07    .38170E-02
  13  norm           .0000        .55804       -.10647E-07** at limit **
  14  norm           .0000        3.0663       -.12504E-07** at limit **
  15  Prefactor     36.764        3.2846       -.24633E-07   -.14103    
  16  Prefactor     .29976E-08    14.826       -.12345E-06** at limit **
  17  Prefactor     1.7433        4.3342       -.35178E-07   -.18978E-02
  18  Normalizat    1.1739        .15657        .85192E-07   -.10761E-03
  19  Prefactor     .89253        .48607E-01   -.43498E-07   -.27148E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.33067e-10
  norm       = 3.3662e-07
  Prefactor  = 7.83244
  norm       = 2.80822
  Prefactor  = 1.51513
  Prefactor  = 0
  Prefactor  = 9.04265
  Prefactor  = 2.22045e-10
  Prefactor  = 3.2957
  Prefactor  = 8.32667e-10
  Prefactor  = 0
  norm       = 9.01067
  norm       = 0
  norm       = 0
  Prefactor  = 36.7636
  Prefactor  = 2.9976e-09
  Prefactor  = 1.74331
  Normalizat = 1.17394
  Prefactor  = 0.89253
 **********
 **   18 **HESSE 
 **********

 FCN=   20175.73     FROM HESSE     STATUS=OK           308 CALLS     1451 TOTAL
                     EDM=   .23E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33307E-09    3.6880        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .33662E-06    84.858        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.8324        4.6628        .35741E-03   -1.5652    
   4  norm          2.8082        1.5655        .60680E-03   -1.5674    
   5  Prefactor     1.5151        1.5419        .86818E-03   -1.5683    
   6  Prefactor      .0000        2.7975        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.0427        12.003        .33491E-03   -1.5648    
   8  Prefactor     .22204E-09    12.016        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.2957        3.5335        .55880E-03   -1.5672    
  10  Prefactor     .83267E-09    7.4495        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        2.4309        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          9.0107        5.8354        .33272E-03   -1.5648    
  13  norm           .0000        .55713        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        3.0632        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     36.764        32.959        .16430E-03   -1.5587    
  16  Prefactor     .29976E-08    14.874        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.7433        4.3526        .80049E-03   -1.5682    
  18  Normalizat    1.1739        .14508        .89869E-01   -.87412    
  19  Prefactor     .89253        .44323E-01    .32059E-01   -.96403    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30463e-06
Minuit parameter uncertainties:
  1  7.28766e-05
  2  0.0106895
  3  4.66279
  4  1.56551
  5  1.54195
  6  1.49848e-05
  7  12.0031
  8  9.84699e-05
  9  3.53349
  10  0.00015951
  11  2.02904e-06
  12  5.83539
  13  3.53621e-06
  14  2.65742e-06
  15  32.9595
  16  0.000421289
  17  4.3526
  18  0.145125
  19  0.0443244
file=/lscratch/kocevski/30943448/ltcube_803606401_803865601_4FGL_J0004.3+4614_daily_bin2177.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/30943448/ft2_4FGL_J0004.3+4614_daily_bin2177.fits
.....................!
real 8.90
user 7.47
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/30943448/ft1_filtered_4FGL_J0004.3+4614_daily_bin2177.fits evtable="EVENTS" scfile=/lscratch/kocevski/30943448/ft2_4FGL_J0004.3+4614_daily_bin2177.fits sctable="SC_DATA" expcube=/lscratch/kocevski/30943448/ltcube_803606401_803865601_4FGL_J0004.3+4614_daily_bin2177.fits outfile=/lscratch/kocevski/30943448/expmap_803606401_803865601_4FGL_J0004.3+4614_daily_bin2177.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/30943448/ltcube_803606401_803865601_4FGL_J0004.3+4614_daily_bin2177.fits
.....................!
real 62.07
user 56.93
sys 3.58

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
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 180 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0004.3+4614 @ 1.0757 46.2427

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/30943448/ft1_filtered_4FGL_J0004.3+4614_daily_bin2177.fits scfile=/lscratch/kocevski/30943448/ft2_4FGL_J0004.3+4614_daily_bin2177.fits outfile=/lscratch/kocevski/30943448/cmap_803606401_803865601_4FGL_J0004.3+4614_daily_bin2177.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=1.0757 yref=46.2427 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.37
user 0.22
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/30943448/ft1_filtered_4FGL_J0004.3+4614_daily_bin2177.fits scfile=/lscratch/kocevski/30943448/ft2_4FGL_J0004.3+4614_daily_bin2177.fits outfile=/lscratch/kocevski/30943448/cmap_HighResolution_803606401_803865601_4FGL_J0004.3+4614_daily_bin2177.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=1.0757 yref=46.2427 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.19
user 0.22
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/30943448/ft1_filtered_4FGL_J0004.3+4614_daily_bin2177.fits evtable="EVENTS" scfile=/lscratch/kocevski/30943448/ft2_4FGL_J0004.3+4614_daily_bin2177.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/30943448/MoDone.

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

Extracting fit parameters...

4FGL J0004.3+4614
   Spectrum: PowerLaw
22     Prefactor:  3.331e-10  7.288e-05  0.000e+00  1.000e+06 ( 1.000e-13)
23         Index:  2.585e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
24         Scale:  9.171e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  8.925e-01  4.432e-02  0.000e+00  1.000e+01 ( 1.000e+00)
607        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
608        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.174e+00  1.451e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 1.076 46.243
Photon Flux Upper Limit: 3.62393959358e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00283354410716 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/30943219/likelihoodResults_803606401_803865601_4FGL_J0004.3+4614_daily_bin2177.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) = 20175.7330651
delta logL = -0.00209853592605

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 20175.7309678
delta logL = -1.28688770928e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13084E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.7580       1.0000          .0000       10.000    
     3 'Normalizat'    1.1742       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89248       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6090E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   20175.73     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      281 TOTAL
                     EDM=   .11E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        5.0893        .42118E-03** at limit **
   2  Index         2.3140        1.1411       -.68806E-05     .0000    
   3  Normalizat    1.1739        1.1158       -.17940E-05   -.92938E-05
   4  Prefactor     .89253        1.2378        .16094E-05   -.12737E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.31396
  Normalizat = 1.17394
  Prefactor  = 0.89253
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   20175.73     FROM HESSE     STATUS=FAILED         9 CALLS      290 TOTAL
                     EDM=   .11E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        5.0893        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .59701        1.8171       -.68806E-05   -.56712    
   3  Normalizat    1.1739        1.1158       -.17940E-05   -.87412    
   4  Prefactor     .89253        1.2378        .16094E-05   -.96403    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.12936e-13
Minuit parameter uncertainties:
  1  2.98284e-06
  2  1.15549
  3  1.13969
  4  1.2804
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 20175.7309665
delta logL = 5.09317032993e-11

Extracting fit parameters...

4FGL J0004.3+4614
   Spectrum: PowerLaw
22     Prefactor:  0.000e+00  2.983e-06  0.000e+00  1.000e+06 ( 1.000e-13)
23         Index:  2.314e+00  1.155e+00  0.000e+00  1.000e+01 (-1.000e+00)
24         Scale:  9.171e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  8.925e-01  1.280e+00  0.000e+00  1.000e+01 ( 1.000e+00)
607        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
608        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.174e+00  1.140e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 1.076 46.243

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/30943219/cmap_HighResolution_803606401_803865601_4FGL_J0004.3+4614_daily_bin2177.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.83e-03', job_status='DONE', photon_flux_upper_limit='3.62e-08', time_completed='2026-07-07 11:11:51.010021', job_id='30943219', GAL2='0.89', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1783447911.01', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='5.09e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='2177' AND source_name='4FGL J0004.3+4614' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul  7 11:11:52 PDT 2026

9/Model_4FGL_J0004.3+4614_daily_bin2177.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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/lscratch/kocevski/30942669/ft1_filtered_4FGL_J0004.3+4614_daily_bin2177.fits.....................!
real 175.46
user 172.01
sys 1.10

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/30942669/ft1_filtered_4FGL_J0004.3+4614_daily_bin2177.fits', '/lscratch/kocevski/30942669/ft2_4FGL_J0004.3+4614_daily_bin2177.fits', expMap='/lscratch/kocevski/30942669/expmap_803606401_803865601_4FGL_J0004.3+4614_daily_bin2177.fits', expCube='/lscratch/kocevski/30942669/ltcube_803606401_803865601_4FGL_J0004.3+4614_daily_bin2177.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/30942669/Model_4FGL_J0004.3+4614_daily_bin2177.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0004.3+4614'

4FGL J0004.3+4614
   Spectrum: PowerLaw
22     Prefactor:  4.777e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
23         Index:  2.585e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
24         Scale:  9.171e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/30942669/ft1_filtered_4FGL_J0004.3+4614_daily_bin2177.fits
Spacecraft file(s): /lscratch/kocevski/30942669/ft2_4FGL_J0004.3+4614_daily_bin2177.fits
Exposure map: /lscratch/kocevski/30942669/expmap_803606401_803865601_4FGL_J0004.3+4614_daily_bin2177.fits
Exposure cube: /lscratch/kocevski/30942669/ltcube_803606401_803865601_4FGL_J0004.3+4614_daily_bin2177.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/30942669/Model_4FGL_J0004.3+4614_daily_bin2177.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) = 20175.7654384

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .67968E-03   1.0000          .0000       .10000E+07
     2 'norm      '    .10498E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    7.8602       1.0000          .0000       .10000E+07
     4 'norm      '    2.8079       1.0000          .0000       .10000E+07
     5 'Prefactor '    1.5151       1.0000          .0000       .10000E+07
     6 'Prefactor '    .32133E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    8.9436       1.0000          .0000       .10000E+07
     8 'Prefactor '    .12558E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    3.2806       1.0000          .0000       .10000E+07
    10 'Prefactor '    .54597E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .18180E-03   1.0000          .0000       .10000E+07
    12 'norm      '    9.0612       1.0000          .0000       .10000E+07
    13 'norm      '    .48461E-07   1.0000          .0000       .10000E+07
    14 'norm      '    .27149E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    37.054       1.0000          .0000       .10000E+07
    16 'Prefactor '    .35633E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    1.7208       1.0000          .0000       .10000E+07
    18 'Normalizat'    1.1742       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .89248       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6090E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   20175.73     FROM MIGRAD    STATUS=CONVERGED    136 CALLS     1143 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33307E-09    3.6864       -.64294E-07** at limit **
   2  norm          .33662E-06    85.829       -.10514E-05** at limit **
   3  Prefactor     7.8324        4.6520       -.28158E-07   -.47188E-02
   4  norm          2.8082        1.5618       -.12667E-07   -.68939E-02
   5  Prefactor     1.5151        1.5205       -.14483E-07   -.45028E-02
   6  Prefactor      .0000        2.7890        .44081E-07** at limit **
   7  Prefactor     9.0427        1.4442        .13803E-07   -.10160    
   8  Prefactor     .22204E-09    11.991       -.21033E-07** at limit **
   9  Prefactor     3.2957        3.5207       -.21595E-07   -.16309E-02
  10  Prefactor     .83267E-09    7.4261        .23467E-06** at limit **
  11  Prefactor      .0000        2.4345        .52029E-09** at limit **
  12  norm          9.0107        5.8225        .39466E-07    .38170E-02
  13  norm           .0000        .55804       -.10647E-07** at limit **
  14  norm           .0000        3.0663       -.12504E-07** at limit **
  15  Prefactor     36.764        3.2846       -.24633E-07   -.14103    
  16  Prefactor     .29976E-08    14.826       -.12345E-06** at limit **
  17  Prefactor     1.7433        4.3342       -.35178E-07   -.18978E-02
  18  Normalizat    1.1739        .15657        .85192E-07   -.10761E-03
  19  Prefactor     .89253        .48607E-01   -.43498E-07   -.27148E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.33067e-10
  norm       = 3.3662e-07
  Prefactor  = 7.83244
  norm       = 2.80822
  Prefactor  = 1.51513
  Prefactor  = 0
  Prefactor  = 9.04265
  Prefactor  = 2.22045e-10
  Prefactor  = 3.2957
  Prefactor  = 8.32667e-10
  Prefactor  = 0
  norm       = 9.01067
  norm       = 0
  norm       = 0
  Prefactor  = 36.7636
  Prefactor  = 2.9976e-09
  Prefactor  = 1.74331
  Normalizat = 1.17394
  Prefactor  = 0.89253
 **********
 **   18 **HESSE 
 **********

 FCN=   20175.73     FROM HESSE     STATUS=OK           308 CALLS     1451 TOTAL
                     EDM=   .23E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33307E-09    3.6880        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .33662E-06    84.858        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.8324        4.6628        .35741E-03   -1.5652    
   4  norm          2.8082        1.5655        .60680E-03   -1.5674    
   5  Prefactor     1.5151        1.5419        .86818E-03   -1.5683    
   6  Prefactor      .0000        2.7975        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.0427        12.003        .33491E-03   -1.5648    
   8  Prefactor     .22204E-09    12.016        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.2957        3.5335        .55880E-03   -1.5672    
  10  Prefactor     .83267E-09    7.4495        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        2.4309        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          9.0107        5.8354        .33272E-03   -1.5648    
  13  norm           .0000        .55713        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        3.0632        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     36.764        32.959        .16430E-03   -1.5587    
  16  Prefactor     .29976E-08    14.874        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.7433        4.3526        .80049E-03   -1.5682    
  18  Normalizat    1.1739        .14508        .89869E-01   -.87412    
  19  Prefactor     .89253        .44323E-01    .32059E-01   -.96403    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30463e-06
Minuit parameter uncertainties:
  1  7.28766e-05
  2  0.0106895
  3  4.66279
  4  1.56551
  5  1.54195
  6  1.49848e-05
  7  12.0031
  8  9.84699e-05
  9  3.53349
  10  0.00015951
  11  2.02904e-06
  12  5.83539
  13  3.53621e-06
  14  2.65742e-06
  15  32.9595
  16  0.000421289
  17  4.3526
  18  0.145125
  19  0.0443244
del_4FGL_J0004.3+4614_daily_bin2177.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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/lscratch/kocevski/30943448/ft1_filtered_4FGL_J0004.3+4614_daily_bin2177.fits.....................!
real 82.02
user 79.43
sys 0.85

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/30943448/ft1_filtered_4FGL_J0004.3+4614_daily_bin2177.fits', '/lscratch/kocevski/30943448/ft2_4FGL_J0004.3+4614_daily_bin2177.fits', expMap='/lscratch/kocevski/30943448/expmap_803606401_803865601_4FGL_J0004.3+4614_daily_bin2177.fits', expCube='/lscratch/kocevski/30943448/ltcube_803606401_803865601_4FGL_J0004.3+4614_daily_bin2177.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/30943448/Model_4FGL_J0004.3+4614_daily_bin2177.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0004.3+4614'

4FGL J0004.3+4614
   Spectrum: PowerLaw
22     Prefactor:  4.777e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
23         Index:  2.585e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
24         Scale:  9.171e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/30943448/ft1_filtered_4FGL_J0004.3+4614_daily_bin2177.fits
Spacecraft file(s): /lscratch/kocevski/30943448/ft2_4FGL_J0004.3+4614_daily_bin2177.fits
Exposure map: /lscratch/kocevski/30943448/expmap_803606401_803865601_4FGL_J0004.3+4614_daily_bin2177.fits
Exposure cube: /lscratch/kocevski/30943448/ltcube_803606401_803865601_4FGL_J0004.3+4614_daily_bin2177.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/30943448/Model_4FGL_J0004.3+4614_daily_bin2177.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) = 20175.7654384

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .67968E-03   1.0000          .0000       .10000E+07
     2 'norm      '    .10498E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    7.8602       1.0000          .0000       .10000E+07
     4 'norm      '    2.8079       1.0000          .0000       .10000E+07
     5 'Prefactor '    1.5151       1.0000          .0000       .10000E+07
     6 'Prefactor '    .32133E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    8.9436       1.0000          .0000       .10000E+07
     8 'Prefactor '    .12558E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    3.2806       1.0000          .0000       .10000E+07
    10 'Prefactor '    .54597E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .18180E-03   1.0000          .0000       .10000E+07
    12 'norm      '    9.0612       1.0000          .0000       .10000E+07
    13 'norm      '    .48461E-07   1.0000          .0000       .10000E+07
    14 'norm      '    .27149E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    37.054       1.0000          .0000       .10000E+07
    16 'Prefactor '    .35633E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    1.7208       1.0000          .0000       .10000E+07
    18 'Normalizat'    1.1742       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .89248       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6090E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   20175.73     FROM MIGRAD    STATUS=CONVERGED    136 CALLS     1143 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33307E-09    3.6864       -.64294E-07** at limit **
   2  norm          .33662E-06    85.829       -.10514E-05** at limit **
   3  Prefactor     7.8324        4.6520       -.28158E-07   -.47188E-02
   4  norm          2.8082        1.5618       -.12667E-07   -.68939E-02
   5  Prefactor     1.5151        1.5205       -.14483E-07   -.45028E-02
   6  Prefactor      .0000        2.7890        .44081E-07** at limit **
   7  Prefactor     9.0427        1.4442        .13803E-07   -.10160    
   8  Prefactor     .22204E-09    11.991       -.21033E-07** at limit **
   9  Prefactor     3.2957        3.5207       -.21595E-07   -.16309E-02
  10  Prefactor     .83267E-09    7.4261        .23467E-06** at limit **
  11  Prefactor      .0000        2.4345        .52029E-09** at limit **
  12  norm          9.0107        5.8225        .39466E-07    .38170E-02
  13  norm           .0000        .55804       -.10647E-07** at limit **
  14  norm           .0000        3.0663       -.12504E-07** at limit **
  15  Prefactor     36.764        3.2846       -.24633E-07   -.14103    
  16  Prefactor     .29976E-08    14.826       -.12345E-06** at limit **
  17  Prefactor     1.7433        4.3342       -.35178E-07   -.18978E-02
  18  Normalizat    1.1739        .15657        .85192E-07   -.10761E-03
  19  Prefactor     .89253        .48607E-01   -.43498E-07   -.27148E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.33067e-10
  norm       = 3.3662e-07
  Prefactor  = 7.83244
  norm       = 2.80822
  Prefactor  = 1.51513
  Prefactor  = 0
  Prefactor  = 9.04265
  Prefactor  = 2.22045e-10
  Prefactor  = 3.2957
  Prefactor  = 8.32667e-10
  Prefactor  = 0
  norm       = 9.01067
  norm       = 0
  norm       = 0
  Prefactor  = 36.7636
  Prefactor  = 2.9976e-09
  Prefactor  = 1.74331
  Normalizat = 1.17394
  Prefactor  = 0.89253
 **********
 **   18 **HESSE 
 **********

 FCN=   20175.73     FROM HESSE     STATUS=OK           308 CALLS     1451 TOTAL
                     EDM=   .23E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33307E-09    3.6880        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .33662E-06    84.858        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.8324        4.6628        .35741E-03   -1.5652    
   4  norm          2.8082        1.5655        .60680E-03   -1.5674    
   5  Prefactor     1.5151        1.5419        .86818E-03   -1.5683    
   6  Prefactor      .0000        2.7975        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.0427        12.003        .33491E-03   -1.5648    
   8  Prefactor     .22204E-09    12.016        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.2957        3.5335        .55880E-03   -1.5672    
  10  Prefactor     .83267E-09    7.4495        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        2.4309        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          9.0107        5.8354        .33272E-03   -1.5648    
  13  norm           .0000        .55713        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        3.0632        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     36.764        32.959        .16430E-03   -1.5587    
  16  Prefactor     .29976E-08    14.874        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.7433        4.3526        .80049E-03   -1.5682    
  18  Normalizat    1.1739        .14508        .89869E-01   -.87412    
  19  Prefactor     .89253        .44323E-01    .32059E-01   -.96403    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30463e-06
Minuit parameter uncertainties:
  1  7.28766e-05
  2  0.0106895
  3  4.66279
  4  1.56551
  5  1.54195
  6  1.49848e-05
  7  12.0031
  8  9.84699e-05
  9  3.53349
  10  0.00015951
  11  2.02904e-06
  12  5.83539
  13  3.53621e-06
  14  2.65742e-06
  15  32.9595
  16  0.000421289
  17  4.3526
  18  0.145125
  19  0.0443244
Done.

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

Extracting fit parameters...

4FGL J0004.3+4614
   Spectrum: PowerLaw
22     Prefactor:  3.331e-10  7.288e-05  0.000e+00  1.000e+06 ( 1.000e-13)
23         Index:  2.585e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
24         Scale:  9.171e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  8.925e-01  4.432e-02  0.000e+00  1.000e+01 ( 1.000e+00)
607        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
608        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.174e+00  1.451e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 1.076 46.243
Photon Flux Upper Limit: 3.62393959358e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00283354410716 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/30943448/likelihoodResults_803606401_803865601_4FGL_J0004.3+4614_daily_bin2177.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) = 20175.7330651
delta logL = -0.00209853592605

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 20175.7309678
delta logL = -1.28688770928e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13084E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.7580       1.0000          .0000       10.000    
     3 'Normalizat'    1.1742       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89248       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6090E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   20175.73     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      281 TOTAL
                     EDM=   .11E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        5.0893        .42118E-03** at limit **
   2  Index         2.3140        1.1411       -.68806E-05     .0000    
   3  Normalizat    1.1739        1.1158       -.17940E-05   -.92938E-05
   4  Prefactor     .89253        1.2378        .16094E-05   -.12737E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.31396
  Normalizat = 1.17394
  Prefactor  = 0.89253
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   20175.73     FROM HESSE     STATUS=FAILED         9 CALLS      290 TOTAL
                     EDM=   .11E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        5.0893        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .59701        1.8171       -.68806E-05   -.56712    
   3  Normalizat    1.1739        1.1158       -.17940E-05   -.87412    
   4  Prefactor     .89253        1.2378        .16094E-05   -.96403    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.12936e-13
Minuit parameter uncertainties:
  1  2.98284e-06
  2  1.15549
  3  1.13969
  4  1.2804
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 20175.7309665
delta logL = 5.09317032993e-11

Extracting fit parameters...

4FGL J0004.3+4614
   Spectrum: PowerLaw
22     Prefactor:  0.000e+00  2.983e-06  0.000e+00  1.000e+06 ( 1.000e-13)
23         Index:  2.314e+00  1.155e+00  0.000e+00  1.000e+01 (-1.000e+00)
24         Scale:  9.171e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  8.925e-01  1.280e+00  0.000e+00  1.000e+01 ( 1.000e+00)
607        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
608        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.174e+00  1.140e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 1.076 46.243

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/30943448/cmap_HighResolution_803606401_803865601_4FGL_J0004.3+4614_daily_bin2177.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.83e-03', job_status='DONE', photon_flux_upper_limit='3.62e-08', time_completed='2026-07-07 11:16:33.624797', job_id='30943448', GAL2='0.89', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1783448193.62', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='5.09e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='2177' AND source_name='4FGL J0004.3+4614' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul  7 11:16:34 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J0004.3+4614
   Spectrum: PowerLaw
22     Prefactor:  3.331e-10  7.288e-05  0.000e+00  1.000e+06 ( 1.000e-13)
23         Index:  2.585e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
24         Scale:  9.171e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  8.925e-01  4.432e-02  0.000e+00  1.000e+01 ( 1.000e+00)
607        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
608        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.174e+00  1.451e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 1.076 46.243
Photon Flux Upper Limit: 3.62393959358e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00283354410716 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/30942669/likelihoodResults_803606401_803865601_4FGL_J0004.3+4614_daily_bin2177.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) = 20175.7330651
delta logL = -0.00209853592605

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 20175.7309678
delta logL = -1.28688770928e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13084E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.7580       1.0000          .0000       10.000    
     3 'Normalizat'    1.1742       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89248       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6090E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   20175.73     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      281 TOTAL
                     EDM=   .11E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        5.0893        .42118E-03** at limit **
   2  Index         2.3140        1.1411       -.68806E-05     .0000    
   3  Normalizat    1.1739        1.1158       -.17940E-05   -.92938E-05
   4  Prefactor     .89253        1.2378        .16094E-05   -.12737E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.31396
  Normalizat = 1.17394
  Prefactor  = 0.89253
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   20175.73     FROM HESSE     STATUS=FAILED         9 CALLS      290 TOTAL
                     EDM=   .11E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        5.0893        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .59701        1.8171       -.68806E-05   -.56712    
   3  Normalizat    1.1739        1.1158       -.17940E-05   -.87412    
   4  Prefactor     .89253        1.2378        .16094E-05   -.96403    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.12936e-13
Minuit parameter uncertainties:
  1  2.98284e-06
  2  1.15549
  3  1.13969
  4  1.2804
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 20175.7309665
delta logL = 5.09317032993e-11

Extracting fit parameters...

4FGL J0004.3+4614
   Spectrum: PowerLaw
22     Prefactor:  0.000e+00  2.983e-06  0.000e+00  1.000e+06 ( 1.000e-13)
23         Index:  2.314e+00  1.155e+00  0.000e+00  1.000e+01 (-1.000e+00)
24         Scale:  9.171e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  8.925e-01  1.280e+00  0.000e+00  1.000e+01 ( 1.000e+00)
607        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
608        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.174e+00  1.140e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 1.076 46.243

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/30942669/cmap_HighResolution_803606401_803865601_4FGL_J0004.3+4614_daily_bin2177.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.83e-03', job_status='DONE', photon_flux_upper_limit='3.62e-08', time_completed='2026-07-07 11:16:56.365393', job_id='30942669', GAL2='0.89', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1783448216.37', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='5.09e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.58' WHERE bin_id='2177' AND source_name='4FGL J0004.3+4614' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul  7 11:16:57 PDT 2026

