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

 FCN=   6720.584     FROM HESSE     STATUS=OK           300 CALLS     1437 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.0057        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .94202E-07    55.084        .17193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .43415E-06    20.858        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.6149        2.6300        .34128E-03   -1.5649    
   5  Prefactor     .20206E-06    24.828        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.361        5.3844        .24037E-03   -1.5625    
   7  norm          12.644        15.368        .27558E-03   -1.5637    
   8  Prefactor     .17764E-08    6.9754        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .14955E-06    15.200        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .15749E-06    55.754        .12002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          36.777        16.274        .16571E-03   -1.5587    
  12  norm          .55511E-10    1.3915        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .27756E-09    19.524        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .22204E-09    3.4262        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.0576        20.335        .72420E-03   -1.5679    
  16  norm           .0000        .79144        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .11102E-09    1.8799        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .95666        .20939        .75757E-01   -.94497    
  19  Prefactor     1.0572        .12658        .39505E-01   -.90847    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9817e-07
Minuit parameter uncertainties:
  1  4.98543e-06
  2  0.00455645
  3  0.00601837
  4  2.63004
  5  0.00447966
  6  5.38442
  7  15.3678
  8  0.000224051
  9  0.00301511
  10  0.00592625
  11  16.2736
  12  1.27346e-05
  13  0.000148549
  14  5.68623e-05
  15  12.9373
  16  1.20274e-06
  17  3.05815e-05
  18  0.209571
  19  0.126618
 **********
 **   18 **HESSE 
 **********

 FCN=   6720.584     FROM HESSE     STATUS=OK           300 CALLS     1437 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.0057        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .94202E-07    55.084        .17193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .43415E-06    20.858        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.6149        2.6300        .34128E-03   -1.5649    
   5  Prefactor     .20206E-06    24.828        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.361        5.3844        .24037E-03   -1.5625    
   7  norm          12.644        15.368        .27558E-03   -1.5637    
   8  Prefactor     .17764E-08    6.9754        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .14955E-06    15.200        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .15749E-06    55.754        .12002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          36.777        16.274        .16571E-03   -1.5587    
  12  norm          .55511E-10    1.3915        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .27756E-09    19.524        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .22204E-09    3.4262        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.0576        20.335        .72420E-03   -1.5679    
  16  norm           .0000        .79144        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .11102E-09    1.8799        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .95666        .20939        .75757E-01   -.94497    
  19  Prefactor     1.0572        .12658        .39505E-01   -.90847    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9817e-07
Minuit parameter uncertainties:
  1  4.98543e-06
  2  0.00455645
  3  0.00601837
  4  2.63004
  5  0.00447966
  6  5.38442
  7  15.3678
  8  0.000224051
  9  0.00301511
  10  0.00592625
  11  16.2736
  12  1.27346e-05
  13  0.000148549
  14  5.68623e-05
  15  12.9373
  16  1.20274e-06
  17  3.05815e-05
  18  0.209571
  19  0.126618
/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
/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.


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.43WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41) and linked library (v3.41).
).


ile=/lscratch/kocevski/27886615/ltcube_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.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/27886615/ft2_4FGL_J0804.5+0414_daily_bin2171.fits
.....................!
real 8.06
user 7.60
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/27886615/ft1_filtered_4FGL_J0804.5+0414_daily_bin2171.fits evtable="EVENTS" scfile=/lscratch/kocevski/27886615/ft2_4FGL_J0804.5+0414_daily_bin2171.fits sctable="SC_DATA" expcube=/lscratch/kocevski/27886615/ltcube_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.fits outfile=/lscratch/kocevski/27886615/expmap_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.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/27886615/ltcube_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.fits
.....................!
real 67.88
user 62.79
sys 4.14

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 Monoceros in ROI with RadialGaussian spatial model.
Added 167 point sources and 1 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 J0804.5+0414 @ 121.133 4.2393

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/27886615/ft1_filtered_4FGL_J0804.5+0414_daily_bin2171.fits scfile=/lscratch/kocevski/27886615/ft2_4FGL_J0804.5+0414_daily_bin2171.fits outfile=/lscratch/kocevski/27886615/cmap_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.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=121.133 yref=4.2393 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.52
user 0.19
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/27886615/ft1_filtered_4FGL_J0804.5+0414_daily_bin2171.fits scfile=/lscratch/kocevski/27886615/ft2_4FGL_J0804.5+0414_daily_bin2171.fits outfile=/lscratch/kocevski/27886615/cmap_HighResolution_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.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=121.133 yref=4.2393 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.57
user 0.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/27886615/ft1_filtered_4FGL_J0804.5+0414_daily_bin2171.fits evtable="EVENTS" scfile=/lscratch/kocevski/27886615/ft2_4FGL_J0804.5+0414_daily_bin2171.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/27886615/Model_4FGL_J0804.5+0414_daily_bin2171.xml irfs="P8R3_SOURCE_V2" evclsmin=/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)
/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)
ile=/lscratch/kocevski/27886606/ltcube_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.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/27886606/ft2_4FGL_J0804.5+0414_daily_bin2171.fits
.....................!
real 8.00
user 7.44
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/27886606/ft1_filtered_4FGL_J0804.5+0414_daily_bin2171.fits evtable="EVENTS" scfile=/lscratch/kocevski/27886606/ft2_4FGL_J0804.5+0414_daily_bin2171.fits sctable="SC_DATA" expcube=/lscratch/kocevski/27886606/ltcube_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.fits outfile=/lscratch/kocevski/27886606/expmap_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.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/27886606/ltcube_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.fits
.....................!
real 67.22
user 62.46
sys 4.01

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 Monoceros in ROI with RadialGaussian spatial model.
Added 167 point sources and 1 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 J0804.5+0414 @ 121.133 4.2393

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/27886606/ft1_filtered_4FGL_J0804.5+0414_daily_bin2171.fits scfile=/lscratch/kocevski/27886606/ft2_4FGL_J0804.5+0414_daily_bin2171.fits outfile=/lscratch/kocevski/27886606/cmap_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.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=121.133 yref=4.2393 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.65
user 0.20
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/27886606/ft1_filtered_4FGL_J0804.5+0414_daily_bin2171.fits scfile=/lscratch/kocevski/27886606/ft2_4FGL_J0804.5+0414_daily_bin2171.fits outfile=/lscratch/kocevski/27886606/cmap_HighResolution_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.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=121.133 yref=4.2393 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.56
user 0.21
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/27886606/ft1_filtered_4FGL_J0804.5+0414_daily_bin2171.fits evtable="EVENTS" scfile=/lscratch/kocevski/27886606/ft2_4FGL_J0804.5+0414_daily_bin2171.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/27886606/Model_4FGL_J0804.5+0414_daily_bin2171.xml irfs="P8R3_SOURCE_V2" evclsmin=
WARNING: version mismatch between CFITSIO header (v
WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.43) and linked library (v3.41).3.41).



Done.

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

Extracting fit parameters...

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  1.575e-07  5.926e-03  0.000e+00  1.000e+06 ( 1.000e-13)
282        Index:  2.491e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  8.390e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  1.057e+00  1.266e-01  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
549   Normalization:  9.567e-01  2.096e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 121.133 4.239
Photon Flux Upper Limit: 1.16570128284e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.00906161120021 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/27886569/likelihoodResults_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.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): 102
logL (Free Index) = 6720.59284731
delta logL = -0.00868915065803

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6720.31490343
delta logL = 0.269254734421

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6720.315     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      246 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6700        92.249        .62534E-03    .10095E-01
   2  Index         4.1847        3.9315        .14914        .17405E-03
   3  Normalizat    .88379        .56113E-01    .78515E-01    .16537E-03
   4  Prefactor     1.0828        .35140E-01    .38268E-01    .20516E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.67004
  Index      = 4.18472
  Normalizat = 0.883793
  Prefactor  = 1.08279
 **********
 **   18 **HESSE 
 **********

 FCN=   6720.315     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      277 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6700        224.24        .16911E-04   -1.5675    
   2  Index         4.1847        6.7093        .81162E-02   -.16379    
   3  Normalizat    .88379        .21798        .34754E-03   -.97032    
   4  Prefactor     1.0828        .13007        .19903E-03   -.90019    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.57266e-09
Minuit parameter uncertainties:
  1  48.9396
  2  9.70796
  3  0.218201
  4  0.130112
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
ile=/lscratch/kocevski/27886619/ltcube_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.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/27886619/ft2_4FGL_J0804.5+0414_daily_bin2171.fits
.....................!
real 8.40
user 7.88
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/27886619/ft1_filtered_4FGL_J0804.5+0414_daily_bin2171.fits evtable="EVENTS" scfile=/lscratch/kocevski/27886619/ft2_4FGL_J0804.5+0414_daily_bin2171.fits sctable="SC_DATA" expcube=/lscratch/kocevski/27886619/ltcube_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.fits outfile=/lscratch/kocevski/27886619/expmap_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.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/27886619/ltcube_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.fits
.....................!
real 71.96
user 67.13
sys 4.23

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 Monoceros in ROI with RadialGaussian spatial model.
Added 167 point sources and 1 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 J0804.5+0414 @ 121.133 4.2393

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/27886619/ft1_filtered_4FGL_J0804.5+0414_daily_bin2171.fits scfile=/lscratch/kocevski/27886619/ft2_4FGL_J0804.5+0414_daily_bin2171.fits outfile=/lscratch/kocevski/27886619/cmap_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.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=121.133 yref=4.2393 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.58
user 0.24
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/27886619/ft1_filtered_4FGL_J0804.5+0414_daily_bin2171.fits scfile=/lscratch/kocevski/27886619/ft2_4FGL_J0804.5+0414_daily_bin2171.fits outfile=/lscratch/kocevski/27886619/cmap_HighResolution_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.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=121.133 yref=4.2393 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.66
user 0.24
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/27886619/ft1_filtered_4FGL_J0804.5+0414_daily_bin2171.fits evtable="EVENTS" scfile=/lscratch/kocevski/27886619/ft2_4FGL_J0804.5+0414_daily_bin2171.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/27886619/Model_4FGL_J0804.5+0414_daily_bin2171.xml irfs="P8R3_SOURCE_V2" evclsmin=Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6720.31489765
delta logL = 0.269260512834

Extracting fit parameters...

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  2.670e+00  4.894e+01  0.000e+00  1.000e+06 ( 1.000e-13)
282        Index:  4.185e+00  9.708e+00  0.000e+00  1.000e+01 (-1.000e+00)
283        Scale:  8.390e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  1.083e+00  1.301e-01  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
549   Normalization:  8.838e-01  2.182e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 121.133 4.239

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/27886569/cmap_HighResolution_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.06e-03', job_status='DONE', photon_flux_upper_limit='1.17e-07', time_completed='2026-06-05 05:51:40.314350', job_id='27886569', GAL2='1.08', fit_tolerance='1e-08', EG2='0.88', EG='0.96', time_epoch_completed='1780663900.31', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='2.69e-01', ts2='0.62', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='2171' AND source_name='4FGL J0804.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jun  5 05:51:40 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  1.575e-07  5.926e-03  0.000e+00  1.000e+06 ( 1.000e-13)
282        Index:  2.491e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  8.390e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  1.057e+00  1.266e-01  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
549   Normalization:  9.567e-01  2.096e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 121.133 4.239
Photon Flux Upper Limit: 1.16570128284e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.00906161120021 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/27886573/likelihoodResults_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.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): 102
logL (Free Index) = 6720.59284731
delta logL = -0.00868915065803

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6720.31490343
delta logL = 0.269254734421

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6720.315     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      246 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6700        92.249        .62534E-03    .10095E-01
   2  Index         4.1847        3.9315        .14914        .17405E-03
   3  Normalizat    .88379        .56113E-01    .78515E-01    .16537E-03
   4  Prefactor     1.0828        .35140E-01    .38268E-01    .20516E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.67004
  Index      = 4.18472
  Normalizat = 0.883793
  Prefactor  = 1.08279
 **********
 **   18 **HESSE 
 **********

 FCN=   6720.315     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      277 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6700        224.24        .16911E-04   -1.5675    
   2  Index         4.1847        6.7093        .81162E-02   -.16379    
   3  Normalizat    .88379        .21798        .34754E-03   -.97032    
   4  Prefactor     1.0828        .13007        .19903E-03   -.90019    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.57266e-09
Minuit parameter uncertainties:
  1  48.9396
  2  9.70796
  3  0.218201
  4  0.130112
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6720.31489765
delta logL = 0.269260512834

Extracting fit parameters...

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  2.670e+00  4.894e+01  0.000e+00  1.000e+06 ( 1.000e-13)
282        Index:  4.185e+00  9.708e+00  0.000e+00  1.000e+01 (-1.000e+00)
283        Scale:  8.390e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  1.083e+00  1.301e-01  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
549   Normalization:  8.838e-01  2.182e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 121.133 4.239

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/27886573/cmap_HighResolution_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.06e-03', job_status='DONE', photon_flux_upper_limit='1.17e-07', time_completed='2026-06-05 05:51:45.013043', job_id='27886573', GAL2='1.08', fit_tolerance='1e-08', EG2='0.88', EG='0.96', time_epoch_completed='1780663905.01', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='2.69e-01', ts2='0.62', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='2171' AND source_name='4FGL J0804.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jun  5 05:51:45 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  1.575e-07  5.926e-03  0.000e+00  1.000e+06 ( 1.000e-13)
282        Index:  2.491e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  8.390e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  1.057e+00  1.266e-01  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
549   Normalization:  9.567e-01  2.096e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 121.133 4.239
Photon Flux Upper Limit: 1.16570128284e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.00906161120021 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/27886565/likelihoodResults_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.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): 102
logL (Free Index) = 6720.59284731
delta logL = -0.00868915065803

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6720.31490343
delta logL = 0.269254734421

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6720.315     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      246 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6700        92.249        .62534E-03    .10095E-01
   2  Index         4.1847        3.9315        .14914        .17405E-03
   3  Normalizat    .88379        .56113E-01    .78515E-01    .16537E-03
   4  Prefactor     1.0828        .35140E-01    .38268E-01    .20516E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.67004
  Index      = 4.18472
  Normalizat = 0.883793
  Prefactor  = 1.08279
Done.

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

Extracting fit parameters...

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  1.575e-07  5.926e-03  0.000e+00  1.000e+06 ( 1.000e-13)
282        Index:  2.491e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  8.390e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  1.057e+00  1.266e-01  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
549   Normalization:  9.567e-01  2.096e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 121.133 4.239
Photon Flux Upper Limit: 1.16570128284e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.00906161120021 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/27886550/likelihoodResults_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.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): 102
logL (Free Index) = 6720.59284731
delta logL = -0.00868915065803

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6720.31490343
delta logL = 0.269254734421

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6720.315     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      246 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6700        92.249        .62534E-03    .10095E-01
   2  Index         4.1847        3.9315        .14914        .17405E-03
   3  Normalizat    .88379        .56113E-01    .78515E-01    .16537E-03
   4  Prefactor     1.0828        .35140E-01    .38268E-01    .20516E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.67004
  Index      = 4.18472
  Normalizat = 0.883793
  Prefactor  = 1.08279
 **********
 **   18 **HESSE 
 **********

 FCN=   6720.315     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      277 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6700        224.24        .16911E-04   -1.5675    
   2  Index         4.1847        6.7093        .81162E-02   -.16379    
   3  Normalizat    .88379        .21798        .34754E-03   -.97032    
   4  Prefactor     1.0828        .13007        .19903E-03   -.90019    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.57266e-09
Minuit parameter uncertainties:
  1  48.9396
  2  9.70796
  3  0.218201
  4  0.130112
 **********
 **   18 **HESSE 
 **********

 FCN=   6720.315     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      277 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6700        224.24        .16911E-04   -1.5675    
   2  Index         4.1847        6.7093        .81162E-02   -.16379    
   3  Normalizat    .88379        .21798        .34754E-03   -.97032    
   4  Prefactor     1.0828        .13007        .19903E-03   -.90019    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.57266e-09
Minuit parameter uncertainties:
  1  48.9396
  2  9.70796
  3  0.218201
  4  0.130112
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6720.31489765
delta logL = 0.269260512834

Extracting fit parameters...

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  2.670e+00  4.894e+01  0.000e+00  1.000e+06 ( 1.000e-13)
282        Index:  4.185e+00  9.708e+00  0.000e+00  1.000e+01 (-1.000e+00)
283        Scale:  8.390e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  1.083e+00  1.301e-01  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
549   Normalization:  8.838e-01  2.182e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 121.133 4.239

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/27886565/cmap_HighResolution_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.06e-03', job_status='DONE', photon_flux_upper_limit='1.17e-07', time_completed='2026-06-05 05:52:00.572958', job_id='27886565', GAL2='1.08', fit_tolerance='1e-08', EG2='0.88', EG='0.96', time_epoch_completed='1780663920.57', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='2.69e-01', ts2='0.62', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='2171' AND source_name='4FGL J0804.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jun  5 05:52:00 PDT 2026

shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6720.31489765
delta logL = 0.269260512834

Extracting fit parameters...

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  2.670e+00  4.894e+01  0.000e+00  1.000e+06 ( 1.000e-13)
282        Index:  4.185e+00  9.708e+00  0.000e+00  1.000e+01 (-1.000e+00)
283        Scale:  8.390e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  1.083e+00  1.301e-01  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
549   Normalization:  8.838e-01  2.182e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 121.133 4.239

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/27886550/cmap_HighResolution_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.06e-03', job_status='DONE', photon_flux_upper_limit='1.17e-07', time_completed='2026-06-05 05:52:00.979604', job_id='27886550', GAL2='1.08', fit_tolerance='1e-08', EG2='0.88', EG='0.96', time_epoch_completed='1780663920.98', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='2.69e-01', ts2='0.62', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='2171' AND source_name='4FGL J0804.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jun  5 05:52:01 PDT 2026

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
adding source Monoceros
Working on...
/lscratch/kocevski/27886584/ft1_filtered_4FGL_J0804.5+0414_daily_bin2171.fits.....................!
real 33.17
user 31.61
sys 1.03

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/27886584/ft1_filtered_4FGL_J0804.5+0414_daily_bin2171.fits', '/lscratch/kocevski/27886584/ft2_4FGL_J0804.5+0414_daily_bin2171.fits', expMap='/lscratch/kocevski/27886584/expmap_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.fits', expCube='/lscratch/kocevski/27886584/ltcube_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/27886584/Model_4FGL_J0804.5+0414_daily_bin2171.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0804.5+0414'

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  7.193e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
282        Index:  2.491e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  8.390e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/27886584/ft1_filtered_4FGL_J0804.5+0414_daily_bin2171.fits
Spacecraft file(s): /lscratch/kocevski/27886584/ft2_4FGL_J0804.5+0414_daily_bin2171.fits
Exposure map: /lscratch/kocevski/27886584/expmap_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.fits
Exposure cube: /lscratch/kocevski/27886584/ltcube_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/27886584/Model_4FGL_J0804.5+0414_daily_bin2171.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) = 6720.63575915

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10056E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    .17704E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    .55984E-02   1.0000          .0000       .10000E+07
     4 'norm      '    8.6151       1.0000          .0000       .10000E+07
     5 'Prefactor '    .10703E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    17.322       1.0000          .0000       .10000E+07
     7 'norm      '    13.187       1.0000          .0000       .10000E+07
     8 'Prefactor '    .47368E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .17181E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .18754       1.0000          .0000       .10000E+07
    11 'norm      '    36.425       1.0000          .0000       .10000E+07
    12 'norm      '    .54760E-05   1.0000          .0000       .10000E+07
    13 'norm      '    .79547E-07   1.0000          .0000       .10000E+07
    14 'norm      '    .38586E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    2.0378       1.0000          .0000       .10000E+07
    16 'norm      '    .17764E-08   1.0000          .0000       .10000E+07
    17 'norm      '    .25470E-04   1.0000          .0000       .10000E+07
    18 'Normalizat'    .95696       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0572       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5570E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6720.584     FROM MIGRAD    STATUS=CONVERGED    127 CALLS     1137 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        1.0104        .54262E-07** at limit **
   2  Prefactor     .94202E-07    55.084       -.90423E-05** at limit **
   3  Prefactor     .43415E-06    8.9652        .18114E-05** at limit **
   4  norm          8.6149        2.6294       -.68277E-07   -.54653E-02
   5  Prefactor     .20206E-06    23.372       -.38175E-05** at limit **
   6  Prefactor     17.361        5.3765        .10249E-07    .64521E-02
   7  norm          12.644        8.7450        .10516E-05   -.75459E-01
   8  Prefactor     .17764E-08    6.8047        .64941E-06** at limit **
   9  Prefactor     .14955E-06    14.181       -.25446E-05** at limit **
  10  Prefactor     .15749E-06    5.6263       -.33742E-05** at limit **
  11  norm          36.777        4.2480       -.30405E-06    .32991E-01
  12  norm          .55511E-10    1.4017       -.11063E-08** at limit **
  13  norm          .27756E-09    10.768        .20627E-05** at limit **
  14  norm          .22204E-09    3.4424        .20787E-06** at limit **
  15  Prefactor     2.0576        14.122        .68222E-05    .20923E-01
  16  norm           .0000        .82536       -.13170E-06** at limit **
  17  norm          .11102E-09    1.8790        .31062E-06** at limit **
  18  Normalizat    .95666        .23064        .19884E-05    .66115E-05
  19  Prefactor     1.0572        .14238       -.35774E-05   -.15018E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 9.42024e-08
  Prefactor  = 4.34153e-07
  norm       = 8.61488
  Prefactor  = 2.02061e-07
  Prefactor  = 17.3608
  norm       = 12.6438
  Prefactor  = 1.77636e-09
  Prefactor  = 1.49547e-07
  Prefactor  = 1.57485e-07
  norm       = 36.7766
  norm       = 5.55112e-11
  norm       = 2.77556e-10
  norm       = 2.22045e-10
  Prefactor  = 2.05763
  norm       = 0
  norm       = 1.11022e-10
  Normalizat = 0.956661
  Prefactor  = 1.05719
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
adding source Monoceros
Working on...
/lscratch/kocevski/27886585/ft1_filtered_4FGL_J0804.5+0414_daily_bin2171.fits.....................!
real 33.07
user 31.51
sys 1.05

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/27886585/ft1_filtered_4FGL_J0804.5+0414_daily_bin2171.fits', '/lscratch/kocevski/27886585/ft2_4FGL_J0804.5+0414_daily_bin2171.fits', expMap='/lscratch/kocevski/27886585/expmap_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.fits', expCube='/lscratch/kocevski/27886585/ltcube_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/27886585/Model_4FGL_J0804.5+0414_daily_bin2171.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0804.5+0414'

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  7.193e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
282        Index:  2.491e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  8.390e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/27886585/ft1_filtered_4FGL_J0804.5+0414_daily_bin2171.fits
Spacecraft file(s): /lscratch/kocevski/27886585/ft2_4FGL_J0804.5+0414_daily_bin2171.fits
Exposure map: /lscratch/kocevski/27886585/expmap_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.fits
Exposure cube: /lscratch/kocevski/27886585/ltcube_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/27886585/Model_4FGL_J0804.5+0414_daily_bin2171.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) = 6720.63575915

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10056E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    .17704E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    .55984E-02   1.0000          .0000       .10000E+07
     4 'norm      '    8.6151       1.0000          .0000       .10000E+07
     5 'Prefactor '    .10703E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    17.322       1.0000          .0000       .10000E+07
     7 'norm      '    13.187       1.0000          .0000       .10000E+07
     8 'Prefactor '    .47368E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .17181E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .18754       1.0000          .0000       .10000E+07
    11 'norm      '    36.425       1.0000          .0000       .10000E+07
    12 'norm      '    .54760E-05   1.0000          .0000       .10000E+07
    13 'norm      '    .79547E-07   1.0000          .0000       .10000E+07
    14 'norm      '    .38586E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    2.0378       1.0000          .0000       .10000E+07
    16 'norm      '    .17764E-08   1.0000          .0000       .10000E+07
    17 'norm      '    .25470E-04   1.0000          .0000       .10000E+07
    18 'Normalizat'    .95696       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0572       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5570E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6720.584     FROM MIGRAD    STATUS=CONVERGED    127 CALLS     1137 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        1.0104        .54262E-07** at limit **
   2  Prefactor     .94202E-07    55.084       -.90423E-05** at limit **
   3  Prefactor     .43415E-06    8.9652        .18114E-05** at limit **
   4  norm          8.6149        2.6294       -.68277E-07   -.54653E-02
   5  Prefactor     .20206E-06    23.372       -.38175E-05** at limit **
   6  Prefactor     17.361        5.3765        .10249E-07    .64521E-02
   7  norm          12.644        8.7450        .10516E-05   -.75459E-01
   8  Prefactor     .17764E-08    6.8047        .64941E-06** at limit **
   9  Prefactor     .14955E-06    14.181       -.25446E-05** at limit **
  10  Prefactor     .15749E-06    5.6263       -.33742E-05** at limit **
  11  norm          36.777        4.2480       -.30405E-06    .32991E-01
  12  norm          .55511E-10    1.4017       -.11063E-08** at limit **
  13  norm          .27756E-09    10.768        .20627E-05** at limit **
  14  norm          .22204E-09    3.4424        .20787E-06** at limit **
  15  Prefactor     2.0576        14.122        .68222E-05    .20923E-01
  16  norm           .0000        .82536       -.13170E-06** at limit **
  17  norm          .11102E-09    1.8790        .31062E-06** at limit **
  18  Normalizat    .95666        .23064        .19884E-05    .66115E-05
  19  Prefactor     1.0572        .14238       -.35774E-05   -.15018E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 9.42024e-08
  Prefactor  = 4.34153e-07
  norm       = 8.61488
  Prefactor  = 2.02061e-07
  Prefactor  = 17.3608
  norm       = 12.6438
  Prefactor  = 1.77636e-09
  Prefactor  = 1.49547e-07
  Prefactor  = 1.57485e-07
  norm       = 36.7766
  norm       = 5.55112e-11
  norm       = 2.77556e-10
  norm       = 2.22045e-10
  Prefactor  = 2.05763
  norm       = 0
  norm       = 1.11022e-10
  Normalizat = 0.956661
  Prefactor  = 1.05719
number of points = 7243
number of fields = 31
RA_SUN column already exists. File will not be modified.
number of points = 7243
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0804.5+0414_daily_bin2171
RA = 121.133, Dec = 4.2393
tmin = 802051201, tmax = 802310401
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='27886659', job_status='RUN', time_executed='2026-06-05 05:51:37.994423', time_epoch_executed='1780663897.99' WHERE source_name='4FGL J0804.5+0414' and cadence='daily' and bin_id='2171'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/27886659

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/27886659/ft1_4FGL_J0804.5+0414_daily_bin2171.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/27886659/ft2_4FGL_J0804.5+0414_daily_bin2171.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/27886659/ft1_4FGL_J0804.5+0414_daily_bin2171.fits outfile=/lscratch/kocevski/27886659/ft1_filteredMKT_4FGL_J0804.5+0414_daily_bin2171.fits ra=121.133 dec=4.2393 rad=12.0 tmin=802051201.0 tmax=802310401.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.19
user 1.81
sys 0.17

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/27886659/ft2_4FGL_J0804.5+0414_daily_bin2171.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/27886659/ft2_4FGL_J0804.5+0414_daily_bin2171.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/27886659/ft1_filteredMKT_4FGL_J0804.5+0414_daily_bin2171.fits evtable="EVENTS" outfile="/lscratch/kocevski/27886659/ft1_filtered_4FGL_J0804.5+0414_daily_bin2171.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.55
user 0.17
sys 0.13

Number of photons that the gtmktime cut: 602

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/27886659/ft1_filtered_4FGL_J0804.5+0414_daily_bin2171.fits" evtable="EVENTS" scfile=/lscratch/kocevski/27886659/ft2_4FGL_J0804.5+0414_daily_bin2171.fits sctable="SC_DATA" outf **********
 **   18 **HESSE 
 **********

 FCN=   6720.584     FROM HESSE     STATUS=OK           300 CALLS     1437 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.0057        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .94202E-07    55.084        .17193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .43415E-06    20.858        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.6149        2.6300        .34128E-03   -1.5649    
   5  Prefactor     .20206E-06    24.828        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.361        5.3844        .24037E-03   -1.5625    
   7  norm          12.644        15.368        .27558E-03   -1.5637    
   8  Prefactor     .17764E-08    6.9754        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .14955E-06    15.200        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .15749E-06    55.754        .12002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          36.777        16.274        .16571E-03   -1.5587    
  12  norm          .55511E-10    1.3915        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .27756E-09    19.524        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .22204E-09    3.4262        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.0576        20.335        .72420E-03   -1.5679    
  16  norm           .0000        .79144        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .11102E-09    1.8799        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .95666        .20939        .75757E-01   -.94497    
  19  Prefactor     1.0572        .12658        .39505E-01   -.90847    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9817e-07
Minuit parameter uncertainties:
  1  4.98543e-06
  2  0.00455645
  3  0.00601837
  4  2.63004
  5  0.00447966
  6  5.38442
  7  15.3678
  8  0.000224051
  9  0.00301511
  10  0.00592625
  11  16.2736
  12  1.27346e-05
  13  0.000148549
  14  5.68623e-05
  15  12.9373
  16  1.20274e-06
  17  3.05815e-05
  18  0.209571
  19  0.126618
Done.


Performing analysis on: 4FGL_J0804.5+0414_daily_bin2171
RA = 121.133, Dec = 4.2393
tmin = 802051201, tmax = 802310401
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='27886653', job_status='RUN', time_executed='2026-06-05 05:51:37.993721', time_epoch_executed='1780663897.99' WHERE source_name='4FGL J0804.5+0414' and cadence='daily' and bin_id='2171'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/27886653

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/27886653/ft1_4FGL_J0804.5+0414_daily_bin2171.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/27886653/ft2_4FGL_J0804.5+0414_daily_bin2171.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/27886653/ft1_4FGL_J0804.5+0414_daily_bin2171.fits outfile=/lscratch/kocevski/27886653/ft1_filteredMKT_4FGL_J0804.5+0414_daily_bin2171.fits ra=121.133 dec=4.2393 rad=12.0 tmin=802051201.0 tmax=802310401.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.25
user 1.85
sys 0.16

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/27886653/ft2_4FGL_J0804.5+0414_daily_bin2171.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/27886653/ft2_4FGL_J0804.5+0414_daily_bin2171.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/27886653/ft1_filteredMKT_4FGL_J0804.5+0414_daily_bin2171.fits evtable="EVENTS" outfile="/lscratch/kocevski/27886653/ft1_filtered_4FGL_J0804.5+0414_daily_bin2171.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.54
user 0.18
sys 0.13

Number of photons that the gtmktime cut: 602

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/27886653/ft1_filtered_4FGL_J0804.5+0414_daily_bin2171.fits" evtable="EVENTS" scfile=/lscratch/kocevski/27886653/ft2_4FGL_J0804.5+0414_daily_bin2171.fits sctable="SC_DATA" outf **********
 **   18 **HESSE 
 **********

 FCN=   6720.584     FROM HESSE     STATUS=OK           300 CALLS     1437 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.0057        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .94202E-07    55.084        .17193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .43415E-06    20.858        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.6149        2.6300        .34128E-03   -1.5649    
   5  Prefactor     .20206E-06    24.828        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.361        5.3844        .24037E-03   -1.5625    
   7  norm          12.644        15.368        .27558E-03   -1.5637    
   8  Prefactor     .17764E-08    6.9754        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .14955E-06    15.200        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .15749E-06    55.754        .12002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          36.777        16.274        .16571E-03   -1.5587    
  12  norm          .55511E-10    1.3915        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .27756E-09    19.524        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .22204E-09    3.4262        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.0576        20.335        .72420E-03   -1.5679    
  16  norm           .0000        .79144        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .11102E-09    1.8799        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .95666        .20939        .75757E-01   -.94497    
  19  Prefactor     1.0572        .12658        .39505E-01   -.90847    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9817e-07
Minuit parameter uncertainties:
  1  4.98543e-06
  2  0.00455645
  3  0.00601837
  4  2.63004
  5  0.00447966
  6  5.38442
  7  15.3678
  8  0.000224051
  9  0.00301511
  10  0.00592625
  11  16.2736
  12  1.27346e-05
  13  0.000148549
  14  5.68623e-05
  15  12.9373
  16  1.20274e-06
  17  3.05815e-05
  18  0.209571
  19  0.126618
ile=/lscratch/kocevski/27886636/ltcube_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.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/27886636/ft2_4FGL_J0804.5+0414_daily_bin2171.fits
.....................!
real 7.61
user 7.15
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/27886636/ft1_filtered_4FGL_J0804.5+0414_daily_bin2171.fits evtable="EVENTS" scfile=/lscratch/kocevski/27886636/ft2_4FGL_J0804.5+0414_daily_bin2171.fits sctable="SC_DATA" expcube=/lscratch/kocevski/27886636/ltcube_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.fits outfile=/lscratch/kocevski/27886636/expmap_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.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/27886636/ltcube_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.fits
.....................!
real 65.87
user 61.41
sys 3.77

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 Monoceros in ROI with RadialGaussian spatial model.
Added 167 point sources and 1 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 J0804.5+0414 @ 121.133 4.2393

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/27886636/ft1_filtered_4FGL_J0804.5+0414_daily_bin2171.fits scfile=/lscratch/kocevski/27886636/ft2_4FGL_J0804.5+0414_daily_bin2171.fits outfile=/lscratch/kocevski/27886636/cmap_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.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=121.133 yref=4.2393 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.65
user 0.22
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/27886636/ft1_filtered_4FGL_J0804.5+0414_daily_bin2171.fits scfile=/lscratch/kocevski/27886636/ft2_4FGL_J0804.5+0414_daily_bin2171.fits outfile=/lscratch/kocevski/27886636/cmap_HighResolution_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.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=121.133 yref=4.2393 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.74
user 0.21
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/27886636/ft1_filtered_4FGL_J0804.5+0414_daily_bin2171.fits evtable="EVENTS" scfile=/lscratch/kocevski/27886636/ft2_4FGL_J0804.5+0414_daily_bin2171.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/27886636/Model_4FGL_J0804.5+0414_daily_bin2171.xml irfs="P8R3_SOURCE_V2" evclsmin=Done.

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

Extracting fit parameters...

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  1.575e-07  5.926e-03  0.000e+00  1.000e+06 ( 1.000e-13)
282        Index:  2.491e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  8.390e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  1.057e+00  1.266e-01  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
549   Normalization:  9.567e-01  2.096e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 121.133 4.239
Photon Flux Upper Limit: 1.16570128284e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.00906161120021 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/27886584/likelihoodResults_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.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): 102
logL (Free Index) = 6720.59284731
delta logL = -0.00868915065803

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6720.31490343
delta logL = 0.269254734421

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6720.315     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      246 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6700        92.249        .62534E-03    .10095E-01
   2  Index         4.1847        3.9315        .14914        .17405E-03
   3  Normalizat    .88379        .56113E-01    .78515E-01    .16537E-03
   4  Prefactor     1.0828        .35140E-01    .38268E-01    .20516E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.67004
  Index      = 4.18472
  Normalizat = 0.883793
  Prefactor  = 1.08279
 **********
 **   18 **HESSE 
 **********

 FCN=   6720.315     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      277 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6700        224.24        .16911E-04   -1.5675    
   2  Index         4.1847        6.7093        .81162E-02   -.16379    
   3  Normalizat    .88379        .21798        .34754E-03   -.97032    
   4  Prefactor     1.0828        .13007        .19903E-03   -.90019    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.57266e-09
Minuit parameter uncertainties:
  1  48.9396
  2  9.70796
  3  0.218201
  4  0.130112
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6720.31489765
delta logL = 0.269260512834

Extracting fit parameters...

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  2.670e+00  4.894e+01  0.000e+00  1.000e+06 ( 1.000e-13)
282        Index:  4.185e+00  9.708e+00  0.000e+00  1.000e+01 (-1.000e+00)
283        Scale:  8.390e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  1.083e+00  1.301e-01  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
549   Normalization:  8.838e-01  2.182e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 121.133 4.239

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/27886584/cmap_HighResolution_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.06e-03', job_status='DONE', photon_flux_upper_limit='1.17e-07', time_completed='2026-06-05 05:52:38.768640', job_id='27886584', GAL2='1.08', fit_tolerance='1e-08', EG2='0.88', EG='0.96', time_epoch_completed='1780663958.77', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='2.69e-01', ts2='0.62', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='2171' AND source_name='4FGL J0804.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jun  5 05:52:38 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  1.575e-07  5.926e-03  0.000e+00  1.000e+06 ( 1.000e-13)
282        Index:  2.491e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  8.390e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  1.057e+00  1.266e-01  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
549   Normalization:  9.567e-01  2.096e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 121.133 4.239
Photon Flux Upper Limit: 1.16570128284e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.00906161120021 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/27886585/likelihoodResults_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.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): 102
logL (Free Index) = 6720.59284731
delta logL = -0.00868915065803

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6720.31490343
delta logL = 0.269254734421

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6720.315     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      246 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6700        92.249        .62534E-03    .10095E-01
   2  Index         4.1847        3.9315        .14914        .17405E-03
   3  Normalizat    .88379        .56113E-01    .78515E-01    .16537E-03
   4  Prefactor     1.0828        .35140E-01    .38268E-01    .20516E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.67004
  Index      = 4.18472
  Normalizat = 0.883793
  Prefactor  = 1.08279
 **********
 **   18 **HESSE 
 **********

 FCN=   6720.315     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      277 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6700        224.24        .16911E-04   -1.5675    
   2  Index         4.1847        6.7093        .81162E-02   -.16379    
   3  Normalizat    .88379        .21798        .34754E-03   -.97032    
   4  Prefactor     1.0828        .13007        .19903E-03   -.90019    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.57266e-09
Minuit parameter uncertainties:
  1  48.9396
  2  9.70796
  3  0.218201
  4  0.130112
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6720.31489765
delta logL = 0.269260512834

Extracting fit parameters...

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  2.670e+00  4.894e+01  0.000e+00  1.000e+06 ( 1.000e-13)
282        Index:  4.185e+00  9.708e+00  0.000e+00  1.000e+01 (-1.000e+00)
283        Scale:  8.390e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  1.083e+00  1.301e-01  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
549   Normalization:  8.838e-01  2.182e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 121.133 4.239

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/27886585/cmap_HighResolution_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.06e-03', job_status='DONE', photon_flux_upper_limit='1.17e-07', time_completed='2026-06-05 05:52:41.458347', job_id='27886585', GAL2='1.08', fit_tolerance='1e-08', EG2='0.88', EG='0.96', time_epoch_completed='1780663961.46', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='2.69e-01', ts2='0.62', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='2171' AND source_name='4FGL J0804.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jun  5 05:52:41 PDT 2026

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
adding source Monoceros
Working on...
/lscratch/kocevski/27886606/ft1_filtered_4FGL_J0804.5+0414_daily_bin2171.fits.....................!
real 34.11
user 31.95
sys 1.54

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/27886606/ft1_filtered_4FGL_J0804.5+0414_daily_bin2171.fits', '/lscratch/kocevski/27886606/ft2_4FGL_J0804.5+0414_daily_bin2171.fits', expMap='/lscratch/kocevski/27886606/expmap_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.fits', expCube='/lscratch/kocevski/27886606/ltcube_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/27886606/Model_4FGL_J0804.5+0414_daily_bin2171.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0804.5+0414'

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  7.193e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
282        Index:  2.491e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  8.390e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/27886606/ft1_filtered_4FGL_J0804.5+0414_daily_bin2171.fits
Spacecraft file(s): /lscratch/kocevski/27886606/ft2_4FGL_J0804.5+0414_daily_bin2171.fits
Exposure map: /lscratch/kocevski/27886606/expmap_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.fits
Exposure cube: /lscratch/kocevski/27886606/ltcube_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/27886606/Model_4FGL_J0804.5+0414_daily_bin2171.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) = 6720.63575915

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10056E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    .17704E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    .55984E-02   1.0000          .0000       .10000E+07
     4 'norm      '    8.6151       1.0000          .0000       .10000E+07
     5 'Prefactor '    .10703E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    17.322       1.0000          .0000       .10000E+07
     7 'norm      '    13.187       1.0000          .0000       .10000E+07
     8 'Prefactor '    .47368E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .17181E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .18754       1.0000          .0000       .10000E+07
    11 'norm      '    36.425       1.0000          .0000       .10000E+07
    12 'norm      '    .54760E-05   1.0000          .0000       .10000E+07
    13 'norm      '    .79547E-07   1.0000          .0000       .10000E+07
    14 'norm      '    .38586E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    2.0378       1.0000          .0000       .10000E+07
    16 'norm      '    .17764E-08   1.0000          .0000       .10000E+07
    17 'norm      '    .25470E-04   1.0000          .0000       .10000E+07
    18 'Normalizat'    .95696       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0572       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5570E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6720.584     FROM MIGRAD    STATUS=CONVERGED    127 CALLS     1137 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        1.0104        .54262E-07** at limit **
   2  Prefactor     .94202E-07    55.084       -.90423E-05** at limit **
   3  Prefactor     .43415E-06    8.9652        .18114E-05** at limit **
   4  norm          8.6149        2.6294       -.68277E-07   -.54653E-02
   5  Prefactor     .20206E-06    23.372       -.38175E-05** at limit **
   6  Prefactor     17.361        5.3765        .10249E-07    .64521E-02
   7  norm          12.644        8.7450        .10516E-05   -.75459E-01
   8  Prefactor     .17764E-08    6.8047        .64941E-06** at limit **
   9  Prefactor     .14955E-06    14.181       -.25446E-05** at limit **
  10  Prefactor     .15749E-06    5.6263       -.33742E-05** at limit **
  11  norm          36.777        4.2480       -.30405E-06    .32991E-01
  12  norm          .55511E-10    1.4017       -.11063E-08** at limit **
  13  norm          .27756E-09    10.768        .20627E-05** at limit **
  14  norm          .22204E-09    3.4424        .20787E-06** at limit **
  15  Prefactor     2.0576        14.122        .68222E-05    .20923E-01
  16  norm           .0000        .82536       -.13170E-06** at limit **
  17  norm          .11102E-09    1.8790        .31062E-06** at limit **
  18  Normalizat    .95666        .23064        .19884E-05    .66115E-05
  19  Prefactor     1.0572        .14238       -.35774E-05   -.15018E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 9.42024e-08
  Prefactor  = 4.34153e-07
  norm       = 8.61488
  Prefactor  = 2.02061e-07
  Prefactor  = 17.3608
  norm       = 12.6438
  Prefactor  = 1.77636e-09
  Prefactor  = 1.49547e-07
  Prefactor  = 1.57485e-07
  norm       = 36.7766
  norm       = 5.55112e-11
  norm       = 2.77556e-10
  norm       = 2.22045e-10
  Prefactor  = 2.05763
  norm       = 0
  norm       = 1.11022e-10
  Normalizat = 0.956661
  Prefactor  = 1.05719
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
adding source Monoceros
Working on...
/lscratch/kocevski/27886615/ft1_filtered_4FGL_J0804.5+0414_daily_bin2171.fits.....................!
real 32.95
user 31.68
sys 0.76

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/27886615/ft1_filtered_4FGL_J0804.5+0414_daily_bin2171.fits', '/lscratch/kocevski/27886615/ft2_4FGL_J0804.5+0414_daily_bin2171.fits', expMap='/lscratch/kocevski/27886615/expmap_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.fits', expCube='/lscratch/kocevski/27886615/ltcube_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/27886615/Model_4FGL_J0804.5+0414_daily_bin2171.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0804.5+0414'

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  7.193e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
282        Index:  2.491e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  8.390e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/27886615/ft1_filtered_4FGL_J0804.5+0414_daily_bin2171.fits
Spacecraft file(s): /lscratch/kocevski/27886615/ft2_4FGL_J0804.5+0414_daily_bin2171.fits
Exposure map: /lscratch/kocevski/27886615/expmap_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.fits
Exposure cube: /lscratch/kocevski/27886615/ltcube_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/27886615/Model_4FGL_J0804.5+0414_daily_bin2171.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) = 6720.63575915

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10056E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    .17704E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    .55984E-02   1.0000          .0000       .10000E+07
     4 'norm      '    8.6151       1.0000          .0000       .10000E+07
     5 'Prefactor '    .10703E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    17.322       1.0000          .0000       .10000E+07
     7 'norm      '    13.187       1.0000          .0000       .10000E+07
     8 'Prefactor '    .47368E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .17181E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .18754       1.0000          .0000       .10000E+07
    11 'norm      '    36.425       1.0000          .0000       .10000E+07
    12 'norm      '    .54760E-05   1.0000          .0000       .10000E+07
    13 'norm      '    .79547E-07   1.0000          .0000       .10000E+07
    14 'norm      '    .38586E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    2.0378       1.0000          .0000       .10000E+07
    16 'norm      '    .17764E-08   1.0000          .0000       .10000E+07
    17 'norm      '    .25470E-04   1.0000          .0000       .10000E+07
    18 'Normalizat'    .95696       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0572       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5570E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6720.584     FROM MIGRAD    STATUS=CONVERGED    127 CALLS     1137 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        1.0104        .54262E-07** at limit **
   2  Prefactor     .94202E-07    55.084       -.90423E-05** at limit **
   3  Prefactor     .43415E-06    8.9652        .18114E-05** at limit **
   4  norm          8.6149        2.6294       -.68277E-07   -.54653E-02
   5  Prefactor     .20206E-06    23.372       -.38175E-05** at limit **
   6  Prefactor     17.361        5.3765        .10249E-07    .64521E-02
   7  norm          12.644        8.7450        .10516E-05   -.75459E-01
   8  Prefactor     .17764E-08    6.8047        .64941E-06** at limit **
   9  Prefactor     .14955E-06    14.181       -.25446E-05** at limit **
  10  Prefactor     .15749E-06    5.6263       -.33742E-05** at limit **
  11  norm          36.777        4.2480       -.30405E-06    .32991E-01
  12  norm          .55511E-10    1.4017       -.11063E-08** at limit **
  13  norm          .27756E-09    10.768        .20627E-05** at limit **
  14  norm          .22204E-09    3.4424        .20787E-06** at limit **
  15  Prefactor     2.0576        14.122        .68222E-05    .20923E-01
  16  norm           .0000        .82536       -.13170E-06** at limit **
  17  norm          .11102E-09    1.8790        .31062E-06** at limit **
  18  Normalizat    .95666        .23064        .19884E-05    .66115E-05
  19  Prefactor     1.0572        .14238       -.35774E-05   -.15018E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 9.42024e-08
  Prefactor  = 4.34153e-07
  norm       = 8.61488
  Prefactor  = 2.02061e-07
  Prefactor  = 17.3608
  norm       = 12.6438
  Prefactor  = 1.77636e-09
  Prefactor  = 1.49547e-07
  Prefactor  = 1.57485e-07
  norm       = 36.7766
  norm       = 5.55112e-11
  norm       = 2.77556e-10
  norm       = 2.22045e-10
  Prefactor  = 2.05763
  norm       = 0
  norm       = 1.11022e-10
  Normalizat = 0.956661
  Prefactor  = 1.05719
 **********
 **   18 **HESSE 
 **********

 FCN=   6720.584     FROM HESSE     STATUS=OK           300 CALLS     1437 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.0057        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .94202E-07    55.084        .17193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .43415E-06    20.858        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.6149        2.6300        .34128E-03   -1.5649    
   5  Prefactor     .20206E-06    24.828        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.361        5.3844        .24037E-03   -1.5625    
   7  norm          12.644        15.368        .27558E-03   -1.5637    
   8  Prefactor     .17764E-08    6.9754        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .14955E-06    15.200        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .15749E-06    55.754        .12002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          36.777        16.274        .16571E-03   -1.5587    
  12  norm          .55511E-10    1.3915        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .27756E-09    19.524        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .22204E-09    3.4262        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.0576        20.335        .72420E-03   -1.5679    
  16  norm           .0000        .79144        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .11102E-09    1.8799        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .95666        .20939        .75757E-01   -.94497    
  19  Prefactor     1.0572        .12658        .39505E-01   -.90847    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9817e-07
Minuit parameter uncertainties:
  1  4.98543e-06
  2  0.00455645
  3  0.00601837
  4  2.63004
  5  0.00447966
  6  5.38442
  7  15.3678
  8  0.000224051
  9  0.00301511
  10  0.00592625
  11  16.2736
  12  1.27346e-05
  13  0.000148549
  14  5.68623e-05
  15  12.9373
  16  1.20274e-06
  17  3.05815e-05
  18  0.209571
  19  0.126618
 **********
 **   18 **HESSE 
 **********

 FCN=   6720.584     FROM HESSE     STATUS=OK           300 CALLS     1437 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.0057        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .94202E-07    55.084        .17193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .43415E-06    20.858        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.6149        2.6300        .34128E-03   -1.5649    
   5  Prefactor     .20206E-06    24.828        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.361        5.3844        .24037E-03   -1.5625    
   7  norm          12.644        15.368        .27558E-03   -1.5637    
   8  Prefactor     .17764E-08    6.9754        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .14955E-06    15.200        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .15749E-06    55.754        .12002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          36.777        16.274        .16571E-03   -1.5587    
  12  norm          .55511E-10    1.3915        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .27756E-09    19.524        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .22204E-09    3.4262        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.0576        20.335        .72420E-03   -1.5679    
  16  norm           .0000        .79144        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .11102E-09    1.8799        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .95666        .20939        .75757E-01   -.94497    
  19  Prefactor     1.0572        .12658        .39505E-01   -.90847    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9817e-07
Minuit parameter uncertainties:
  1  4.98543e-06
  2  0.00455645
  3  0.00601837
  4  2.63004
  5  0.00447966
  6  5.38442
  7  15.3678
  8  0.000224051
  9  0.00301511
  10  0.00592625
  11  16.2736
  12  1.27346e-05
  13  0.000148549
  14  5.68623e-05
  15  12.9373
  16  1.20274e-06
  17  3.05815e-05
  18  0.209571
  19  0.126618
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
adding source Monoceros
Working on...
/lscratch/kocevski/27886619/ft1_filtered_4FGL_J0804.5+0414_daily_bin2171.fits.....................!
real 35.44
user 34.18
sys 0.83

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/27886619/ft1_filtered_4FGL_J0804.5+0414_daily_bin2171.fits', '/lscratch/kocevski/27886619/ft2_4FGL_J0804.5+0414_daily_bin2171.fits', expMap='/lscratch/kocevski/27886619/expmap_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.fits', expCube='/lscratch/kocevski/27886619/ltcube_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/27886619/Model_4FGL_J0804.5+0414_daily_bin2171.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0804.5+0414'

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  7.193e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
282        Index:  2.491e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  8.390e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/27886619/ft1_filtered_4FGL_J0804.5+0414_daily_bin2171.fits
Spacecraft file(s): /lscratch/kocevski/27886619/ft2_4FGL_J0804.5+0414_daily_bin2171.fits
Exposure map: /lscratch/kocevski/27886619/expmap_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.fits
Exposure cube: /lscratch/kocevski/27886619/ltcube_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/27886619/Model_4FGL_J0804.5+0414_daily_bin2171.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) = 6720.63575915

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10056E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    .17704E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    .55984E-02   1.0000          .0000       .10000E+07
     4 'norm      '    8.6151       1.0000          .0000       .10000E+07
     5 'Prefactor '    .10703E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    17.322       1.0000          .0000       .10000E+07
     7 'norm      '    13.187       1.0000          .0000       .10000E+07
     8 'Prefactor '    .47368E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .17181E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .18754       1.0000          .0000       .10000E+07
    11 'norm      '    36.425       1.0000          .0000       .10000E+07
    12 'norm      '    .54760E-05   1.0000          .0000       .10000E+07
    13 'norm      '    .79547E-07   1.0000          .0000       .10000E+07
    14 'norm      '    .38586E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    2.0378       1.0000          .0000       .10000E+07
    16 'norm      '    .17764E-08   1.0000          .0000       .10000E+07
    17 'norm      '    .25470E-04   1.0000          .0000       .10000E+07
    18 'Normalizat'    .95696       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0572       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5570E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6720.584     FROM MIGRAD    STATUS=CONVERGED    127 CALLS     1137 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        1.0104        .54262E-07** at limit **
   2  Prefactor     .94202E-07    55.084       -.90423E-05** at limit **
   3  Prefactor     .43415E-06    8.9652        .18114E-05** at limit **
   4  norm          8.6149        2.6294       -.68277E-07   -.54653E-02
   5  Prefactor     .20206E-06    23.372       -.38175E-05** at limit **
   6  Prefactor     17.361        5.3765        .10249E-07    .64521E-02
   7  norm          12.644        8.7450        .10516E-05   -.75459E-01
   8  Prefactor     .17764E-08    6.8047        .64941E-06** at limit **
   9  Prefactor     .14955E-06    14.181       -.25446E-05** at limit **
  10  Prefactor     .15749E-06    5.6263       -.33742E-05** at limit **
  11  norm          36.777        4.2480       -.30405E-06    .32991E-01
  12  norm          .55511E-10    1.4017       -.11063E-08** at limit **
  13  norm          .27756E-09    10.768        .20627E-05** at limit **
  14  norm          .22204E-09    3.4424        .20787E-06** at limit **
  15  Prefactor     2.0576        14.122        .68222E-05    .20923E-01
  16  norm           .0000        .82536       -.13170E-06** at limit **
  17  norm          .11102E-09    1.8790        .31062E-06** at limit **
  18  Normalizat    .95666        .23064        .19884E-05    .66115E-05
  19  Prefactor     1.0572        .14238       -.35774E-05   -.15018E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 9.42024e-08
  Prefactor  = 4.34153e-07
  norm       = 8.61488
  Prefactor  = 2.02061e-07
  Prefactor  = 17.3608
  norm       = 12.6438
  Prefactor  = 1.77636e-09
  Prefactor  = 1.49547e-07
  Prefactor  = 1.57485e-07
  norm       = 36.7766
  norm       = 5.55112e-11
  norm       = 2.77556e-10
  norm       = 2.22045e-10
  Prefactor  = 2.05763
  norm       = 0
  norm       = 1.11022e-10
  Normalizat = 0.956661
  Prefactor  = 1.05719
 **********
 **   18 **HESSE 
 **********

 FCN=   6720.584     FROM HESSE     STATUS=OK           300 CALLS     1437 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.0057        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .94202E-07    55.084        .17193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .43415E-06    20.858        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.6149        2.6300        .34128E-03   -1.5649    
   5  Prefactor     .20206E-06    24.828        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.361        5.3844        .24037E-03   -1.5625    
   7  norm          12.644        15.368        .27558E-03   -1.5637    
   8  Prefactor     .17764E-08    6.9754        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .14955E-06    15.200        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .15749E-06    55.754        .12002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          36.777        16.274        .16571E-03   -1.5587    
  12  norm          .55511E-10    1.3915        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .27756E-09    19.524        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .22204E-09    3.4262        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.0576        20.335        .72420E-03   -1.5679    
  16  norm           .0000        .79144        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .11102E-09    1.8799        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .95666        .20939        .75757E-01   -.94497    
  19  Prefactor     1.0572        .12658        .39505E-01   -.90847    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9817e-07
Minuit parameter uncertainties:
  1  4.98543e-06
  2  0.00455645
  3  0.00601837
  4  2.63004
  5  0.00447966
  6  5.38442
  7  15.3678
  8  0.000224051
  9  0.00301511
  10  0.00592625
  11  16.2736
  12  1.27346e-05
  13  0.000148549
  14  5.68623e-05
  15  12.9373
  16  1.20274e-06
  17  3.05815e-05
  18  0.209571
  19  0.126618
ile=/lscratch/kocevski/27886659/ltcube_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.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/27886659/ft2_4FGL_J0804.5+0414_daily_bin2171.fits
.....................!
real 8.00
user 7.42
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/27886659/ft1_filtered_4FGL_J0804.5+0414_daily_bin2171.fits evtable="EVENTS" scfile=/lscratch/kocevski/27886659/ft2_4FGL_J0804.5+0414_daily_bin2171.fits sctable="SC_DATA" expcube=/lscratch/kocevski/27886659/ltcube_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.fits outfile=/lscratch/kocevski/27886659/expmap_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.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/27886659/ltcube_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.fits
.....................!
real 67.12
user 62.57
sys 3.92

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 Monoceros in ROI with RadialGaussian spatial model.
Added 167 point sources and 1 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 J0804.5+0414 @ 121.133 4.2393

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/27886659/ft1_filtered_4FGL_J0804.5+0414_daily_bin2171.fits scfile=/lscratch/kocevski/27886659/ft2_4FGL_J0804.5+0414_daily_bin2171.fits outfile=/lscratch/kocevski/27886659/cmap_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.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=121.133 yref=4.2393 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.50
user 0.22
sys 0.11

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/27886659/ft1_filtered_4FGL_J0804.5+0414_daily_bin2171.fits scfile=/lscratch/kocevski/27886659/ft2_4FGL_J0804.5+0414_daily_bin2171.fits outfile=/lscratch/kocevski/27886659/cmap_HighResolution_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.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=121.133 yref=4.2393 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.51
user 0.20
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/27886659/ft1_filtered_4FGL_J0804.5+0414_daily_bin2171.fits evtable="EVENTS" scfile=/lscratch/kocevski/27886659/ft2_4FGL_J0804.5+0414_daily_bin2171.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/27886659/Model_4FGL_J0804.5+0414_daily_bin2171.xml irfs="P8R3_SOURCE_V2" evclsmin=ile=/lscratch/kocevski/27886653/ltcube_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.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/27886653/ft2_4FGL_J0804.5+0414_daily_bin2171.fits
.....................!
real 7.99
user 7.51
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/27886653/ft1_filtered_4FGL_J0804.5+0414_daily_bin2171.fits evtable="EVENTS" scfile=/lscratch/kocevski/27886653/ft2_4FGL_J0804.5+0414_daily_bin2171.fits sctable="SC_DATA" expcube=/lscratch/kocevski/27886653/ltcube_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.fits outfile=/lscratch/kocevski/27886653/expmap_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.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/27886653/ltcube_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.fits
.....................!
real 67.33
user 62.82
sys 3.80

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 Monoceros in ROI with RadialGaussian spatial model.
Added 167 point sources and 1 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 J0804.5+0414 @ 121.133 4.2393

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/27886653/ft1_filtered_4FGL_J0804.5+0414_daily_bin2171.fits scfile=/lscratch/kocevski/27886653/ft2_4FGL_J0804.5+0414_daily_bin2171.fits outfile=/lscratch/kocevski/27886653/cmap_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.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=121.133 yref=4.2393 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.48
user 0.21
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/27886653/ft1_filtered_4FGL_J0804.5+0414_daily_bin2171.fits scfile=/lscratch/kocevski/27886653/ft2_4FGL_J0804.5+0414_daily_bin2171.fits outfile=/lscratch/kocevski/27886653/cmap_HighResolution_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.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=121.133 yref=4.2393 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.52
user 0.22
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/27886653/ft1_filtered_4FGL_J0804.5+0414_daily_bin2171.fits evtable="EVENTS" scfile=/lscratch/kocevski/27886653/ft2_4FGL_J0804.5+0414_daily_bin2171.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/27886653/Model_4FGL_J0804.5+0414_daily_bin2171.xml irfs="P8R3_SOURCE_V2" evclsmin=Done.

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

Extracting fit parameters...

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  1.575e-07  5.926e-03  0.000e+00  1.000e+06 ( 1.000e-13)
282        Index:  2.491e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  8.390e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  1.057e+00  1.266e-01  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
549   Normalization:  9.567e-01  2.096e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 121.133 4.239
Photon Flux Upper Limit: 1.16570128284e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.00906161120021 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/27886615/likelihoodResults_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.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): 102
logL (Free Index) = 6720.59284731
delta logL = -0.00868915065803

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6720.31490343
delta logL = 0.269254734421

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6720.315     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      246 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6700        92.249        .62534E-03    .10095E-01
   2  Index         4.1847        3.9315        .14914        .17405E-03
   3  Normalizat    .88379        .56113E-01    .78515E-01    .16537E-03
   4  Prefactor     1.0828        .35140E-01    .38268E-01    .20516E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.67004
  Index      = 4.18472
  Normalizat = 0.883793
  Prefactor  = 1.08279
 **********
 **   18 **HESSE 
 **********

 FCN=   6720.315     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      277 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6700        224.24        .16911E-04   -1.5675    
   2  Index         4.1847        6.7093        .81162E-02   -.16379    
   3  Normalizat    .88379        .21798        .34754E-03   -.97032    
   4  Prefactor     1.0828        .13007        .19903E-03   -.90019    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.57266e-09
Minuit parameter uncertainties:
  1  48.9396
  2  9.70796
  3  0.218201
  4  0.130112
Done.

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

Extracting fit parameters...

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  1.575e-07  5.926e-03  0.000e+00  1.000e+06 ( 1.000e-13)
282        Index:  2.491e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  8.390e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  1.057e+00  1.266e-01  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
549   Normalization:  9.567e-01  2.096e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 121.133 4.239
Photon Flux Upper Limit: 1.16570128284e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.00906161120021 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/27886606/likelihoodResults_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.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): 102
logL (Free Index) = 6720.59284731
delta logL = -0.00868915065803

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6720.31490343
delta logL = 0.269254734421

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6720.315     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      246 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6700        92.249        .62534E-03    .10095E-01
   2  Index         4.1847        3.9315        .14914        .17405E-03
   3  Normalizat    .88379        .56113E-01    .78515E-01    .16537E-03
   4  Prefactor     1.0828        .35140E-01    .38268E-01    .20516E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.67004
  Index      = 4.18472
  Normalizat = 0.883793
  Prefactor  = 1.08279
 **********
 **   18 **HESSE 
 **********

 FCN=   6720.315     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      277 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6700        224.24        .16911E-04   -1.5675    
   2  Index         4.1847        6.7093        .81162E-02   -.16379    
   3  Normalizat    .88379        .21798        .34754E-03   -.97032    
   4  Prefactor     1.0828        .13007        .19903E-03   -.90019    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.57266e-09
Minuit parameter uncertainties:
  1  48.9396
  2  9.70796
  3  0.218201
  4  0.130112
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6720.31489765
delta logL = 0.269260512834

Extracting fit parameters...

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  2.670e+00  4.894e+01  0.000e+00  1.000e+06 ( 1.000e-13)
282        Index:  4.185e+00  9.708e+00  0.000e+00  1.000e+01 (-1.000e+00)
283        Scale:  8.390e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  1.083e+00  1.301e-01  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
549   Normalization:  8.838e-01  2.182e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 121.133 4.239

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/27886615/cmap_HighResolution_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.06e-03', job_status='DONE', photon_flux_upper_limit='1.17e-07', time_completed='2026-06-05 05:53:42.508119', job_id='27886615', GAL2='1.08', fit_tolerance='1e-08', EG2='0.88', EG='0.96', time_epoch_completed='1780664022.51', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='2.69e-01', ts2='0.62', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='2171' AND source_name='4FGL J0804.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jun  5 05:53:42 PDT 2026

shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6720.31489765
delta logL = 0.269260512834

Extracting fit parameters...

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  2.670e+00  4.894e+01  0.000e+00  1.000e+06 ( 1.000e-13)
282        Index:  4.185e+00  9.708e+00  0.000e+00  1.000e+01 (-1.000e+00)
283        Scale:  8.390e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  1.083e+00  1.301e-01  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
549   Normalization:  8.838e-01  2.182e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 121.133 4.239

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/27886606/cmap_HighResolution_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.06e-03', job_status='DONE', photon_flux_upper_limit='1.17e-07', time_completed='2026-06-05 05:53:43.659116', job_id='27886606', GAL2='1.08', fit_tolerance='1e-08', EG2='0.88', EG='0.96', time_epoch_completed='1780664023.66', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='2.69e-01', ts2='0.62', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='2171' AND source_name='4FGL J0804.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jun  5 05:53:43 PDT 2026

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
adding source Monoceros
Working on...
/lscratch/kocevski/27886636/ft1_filtered_4FGL_J0804.5+0414_daily_bin2171.fits.....................!
real 33.44
user 31.97
sys 0.87

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/27886636/ft1_filtered_4FGL_J0804.5+0414_daily_bin2171.fits', '/lscratch/kocevski/27886636/ft2_4FGL_J0804.5+0414_daily_bin2171.fits', expMap='/lscratch/kocevski/27886636/expmap_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.fits', expCube='/lscratch/kocevski/27886636/ltcube_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/27886636/Model_4FGL_J0804.5+0414_daily_bin2171.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0804.5+0414'

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  7.193e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
282        Index:  2.491e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  8.390e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/27886636/ft1_filtered_4FGL_J0804.5+0414_daily_bin2171.fits
Spacecraft file(s): /lscratch/kocevski/27886636/ft2_4FGL_J0804.5+0414_daily_bin2171.fits
Exposure map: /lscratch/kocevski/27886636/expmap_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.fits
Exposure cube: /lscratch/kocevski/27886636/ltcube_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/27886636/Model_4FGL_J0804.5+0414_daily_bin2171.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) = 6720.63575915

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10056E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    .17704E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    .55984E-02   1.0000          .0000       .10000E+07
     4 'norm      '    8.6151       1.0000          .0000       .10000E+07
     5 'Prefactor '    .10703E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    17.322       1.0000          .0000       .10000E+07
     7 'norm      '    13.187       1.0000          .0000       .10000E+07
     8 'Prefactor '    .47368E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .17181E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .18754       1.0000          .0000       .10000E+07
    11 'norm      '    36.425       1.0000          .0000       .10000E+07
    12 'norm      '    .54760E-05   1.0000          .0000       .10000E+07
    13 'norm      '    .79547E-07   1.0000          .0000       .10000E+07
    14 'norm      '    .38586E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    2.0378       1.0000          .0000       .10000E+07
    16 'norm      '    .17764E-08   1.0000          .0000       .10000E+07
    17 'norm      '    .25470E-04   1.0000          .0000       .10000E+07
    18 'Normalizat'    .95696       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0572       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5570E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6720.584     FROM MIGRAD    STATUS=CONVERGED    127 CALLS     1137 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        1.0104        .54262E-07** at limit **
   2  Prefactor     .94202E-07    55.084       -.90423E-05** at limit **
   3  Prefactor     .43415E-06    8.9652        .18114E-05** at limit **
   4  norm          8.6149        2.6294       -.68277E-07   -.54653E-02
   5  Prefactor     .20206E-06    23.372       -.38175E-05** at limit **
   6  Prefactor     17.361        5.3765        .10249E-07    .64521E-02
   7  norm          12.644        8.7450        .10516E-05   -.75459E-01
   8  Prefactor     .17764E-08    6.8047        .64941E-06** at limit **
   9  Prefactor     .14955E-06    14.181       -.25446E-05** at limit **
  10  Prefactor     .15749E-06    5.6263       -.33742E-05** at limit **
  11  norm          36.777        4.2480       -.30405E-06    .32991E-01
  12  norm          .55511E-10    1.4017       -.11063E-08** at limit **
  13  norm          .27756E-09    10.768        .20627E-05** at limit **
  14  norm          .22204E-09    3.4424        .20787E-06** at limit **
  15  Prefactor     2.0576        14.122        .68222E-05    .20923E-01
  16  norm           .0000        .82536       -.13170E-06** at limit **
  17  norm          .11102E-09    1.8790        .31062E-06** at limit **
  18  Normalizat    .95666        .23064        .19884E-05    .66115E-05
  19  Prefactor     1.0572        .14238       -.35774E-05   -.15018E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 9.42024e-08
  Prefactor  = 4.34153e-07
  norm       = 8.61488
  Prefactor  = 2.02061e-07
  Prefactor  = 17.3608
  norm       = 12.6438
  Prefactor  = 1.77636e-09
  Prefactor  = 1.49547e-07
  Prefactor  = 1.57485e-07
  norm       = 36.7766
  norm       = 5.55112e-11
  norm       = 2.77556e-10
  norm       = 2.22045e-10
  Prefactor  = 2.05763
  norm       = 0
  norm       = 1.11022e-10
  Normalizat = 0.956661
  Prefactor  = 1.05719
Done.

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

Extracting fit parameters...

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  1.575e-07  5.926e-03  0.000e+00  1.000e+06 ( 1.000e-13)
282        Index:  2.491e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  8.390e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  1.057e+00  1.266e-01  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
549   Normalization:  9.567e-01  2.096e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 121.133 4.239
Photon Flux Upper Limit: 1.16570128284e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.00906161120021 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/27886619/likelihoodResults_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.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): 102
logL (Free Index) = 6720.59284731
delta logL = -0.00868915065803

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6720.31490343
delta logL = 0.269254734421

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6720.315     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      246 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6700        92.249        .62534E-03    .10095E-01
   2  Index         4.1847        3.9315        .14914        .17405E-03
   3  Normalizat    .88379        .56113E-01    .78515E-01    .16537E-03
   4  Prefactor     1.0828        .35140E-01    .38268E-01    .20516E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.67004
  Index      = 4.18472
  Normalizat = 0.883793
  Prefactor  = 1.08279
 **********
 **   18 **HESSE 
 **********

 FCN=   6720.315     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      277 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6700        224.24        .16911E-04   -1.5675    
   2  Index         4.1847        6.7093        .81162E-02   -.16379    
   3  Normalizat    .88379        .21798        .34754E-03   -.97032    
   4  Prefactor     1.0828        .13007        .19903E-03   -.90019    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.57266e-09
Minuit parameter uncertainties:
  1  48.9396
  2  9.70796
  3  0.218201
  4  0.130112
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6720.31489765
delta logL = 0.269260512834

Extracting fit parameters...

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  2.670e+00  4.894e+01  0.000e+00  1.000e+06 ( 1.000e-13)
282        Index:  4.185e+00  9.708e+00  0.000e+00  1.000e+01 (-1.000e+00)
283        Scale:  8.390e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  1.083e+00  1.301e-01  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
549   Normalization:  8.838e-01  2.182e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 121.133 4.239

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/27886619/cmap_HighResolution_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.06e-03', job_status='DONE', photon_flux_upper_limit='1.17e-07', time_completed='2026-06-05 05:54:00.775981', job_id='27886619', GAL2='1.08', fit_tolerance='1e-08', EG2='0.88', EG='0.96', time_epoch_completed='1780664040.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='2.69e-01', ts2='0.62', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='2171' AND source_name='4FGL J0804.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jun  5 05:54:00 PDT 2026

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

 FCN=   6720.584     FROM HESSE     STATUS=OK           300 CALLS     1437 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.0057        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .94202E-07    55.084        .17193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .43415E-06    20.858        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.6149        2.6300        .34128E-03   -1.5649    
   5  Prefactor     .20206E-06    24.828        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.361        5.3844        .24037E-03   -1.5625    
   7  norm          12.644        15.368        .27558E-03   -1.5637    
   8  Prefactor     .17764E-08    6.9754        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .14955E-06    15.200        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .15749E-06    55.754        .12002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          36.777        16.274        .16571E-03   -1.5587    
  12  norm          .55511E-10    1.3915        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .27756E-09    19.524        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .22204E-09    3.4262        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.0576        20.335        .72420E-03   -1.5679    
  16  norm           .0000        .79144        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .11102E-09    1.8799        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .95666        .20939        .75757E-01   -.94497    
  19  Prefactor     1.0572        .12658        .39505E-01   -.90847    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9817e-07
Minuit parameter uncertainties:
  1  4.98543e-06
  2  0.00455645
  3  0.00601837
  4  2.63004
  5  0.00447966
  6  5.38442
  7  15.3678
  8  0.000224051
  9  0.00301511
  10  0.00592625
  11  16.2736
  12  1.27346e-05
  13  0.000148549
  14  5.68623e-05
  15  12.9373
  16  1.20274e-06
  17  3.05815e-05
  18  0.209571
  19  0.126618
Done.

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

Extracting fit parameters...

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  1.575e-07  5.926e-03  0.000e+00  1.000e+06 ( 1.000e-13)
282        Index:  2.491e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  8.390e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  1.057e+00  1.266e-01  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
549   Normalization:  9.567e-01  2.096e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 121.133 4.239
Photon Flux Upper Limit: 1.16570128284e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.00906161120021 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/27886636/likelihoodResults_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.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): 102
logL (Free Index) = 6720.59284731
delta logL = -0.00868915065803

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6720.31490343
delta logL = 0.269254734421

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6720.315     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      246 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6700        92.249        .62534E-03    .10095E-01
   2  Index         4.1847        3.9315        .14914        .17405E-03
   3  Normalizat    .88379        .56113E-01    .78515E-01    .16537E-03
   4  Prefactor     1.0828        .35140E-01    .38268E-01    .20516E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.67004
  Index      = 4.18472
  Normalizat = 0.883793
  Prefactor  = 1.08279
 **********
 **   18 **HESSE 
 **********

 FCN=   6720.315     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      277 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6700        224.24        .16911E-04   -1.5675    
   2  Index         4.1847        6.7093        .81162E-02   -.16379    
   3  Normalizat    .88379        .21798        .34754E-03   -.97032    
   4  Prefactor     1.0828        .13007        .19903E-03   -.90019    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.57266e-09
Minuit parameter uncertainties:
  1  48.9396
  2  9.70796
  3  0.218201
  4  0.130112
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6720.31489765
delta logL = 0.269260512834

Extracting fit parameters...

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  2.670e+00  4.894e+01  0.000e+00  1.000e+06 ( 1.000e-13)
282        Index:  4.185e+00  9.708e+00  0.000e+00  1.000e+01 (-1.000e+00)
283        Scale:  8.390e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  1.083e+00  1.301e-01  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
549   Normalization:  8.838e-01  2.182e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 121.133 4.239

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/27886636/cmap_HighResolution_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.06e-03', job_status='DONE', photon_flux_upper_limit='1.17e-07', time_completed='2026-06-05 05:54:35.517320', job_id='27886636', GAL2='1.08', fit_tolerance='1e-08', EG2='0.88', EG='0.96', time_epoch_completed='1780664075.52', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='2.69e-01', ts2='0.62', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='2171' AND source_name='4FGL J0804.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jun  5 05:54:35 PDT 2026

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
adding source Monoceros
Working on...
/lscratch/kocevski/27886659/ft1_filtered_4FGL_J0804.5+0414_daily_bin2171.fits.....................!
real 33.29
user 31.90
sys 0.73

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/27886659/ft1_filtered_4FGL_J0804.5+0414_daily_bin2171.fits', '/lscratch/kocevski/27886659/ft2_4FGL_J0804.5+0414_daily_bin2171.fits', expMap='/lscratch/kocevski/27886659/expmap_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.fits', expCube='/lscratch/kocevski/27886659/ltcube_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/27886659/Model_4FGL_J0804.5+0414_daily_bin2171.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0804.5+0414'

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  7.193e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
282        Index:  2.491e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  8.390e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/27886659/ft1_filtered_4FGL_J0804.5+0414_daily_bin2171.fits
Spacecraft file(s): /lscratch/kocevski/27886659/ft2_4FGL_J0804.5+0414_daily_bin2171.fits
Exposure map: /lscratch/kocevski/27886659/expmap_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.fits
Exposure cube: /lscratch/kocevski/27886659/ltcube_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/27886659/Model_4FGL_J0804.5+0414_daily_bin2171.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) = 6720.63575915

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10056E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    .17704E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    .55984E-02   1.0000          .0000       .10000E+07
     4 'norm      '    8.6151       1.0000          .0000       .10000E+07
     5 'Prefactor '    .10703E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    17.322       1.0000          .0000       .10000E+07
     7 'norm      '    13.187       1.0000          .0000       .10000E+07
     8 'Prefactor '    .47368E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .17181E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .18754       1.0000          .0000       .10000E+07
    11 'norm      '    36.425       1.0000          .0000       .10000E+07
    12 'norm      '    .54760E-05   1.0000          .0000       .10000E+07
    13 'norm      '    .79547E-07   1.0000          .0000       .10000E+07
    14 'norm      '    .38586E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    2.0378       1.0000          .0000       .10000E+07
    16 'norm      '    .17764E-08   1.0000          .0000       .10000E+07
    17 'norm      '    .25470E-04   1.0000          .0000       .10000E+07
    18 'Normalizat'    .95696       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0572       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5570E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6720.584     FROM MIGRAD    STATUS=CONVERGED    127 CALLS     1137 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        1.0104        .54262E-07** at limit **
   2  Prefactor     .94202E-07    55.084       -.90423E-05** at limit **
   3  Prefactor     .43415E-06    8.9652        .18114E-05** at limit **
   4  norm          8.6149        2.6294       -.68277E-07   -.54653E-02
   5  Prefactor     .20206E-06    23.372       -.38175E-05** at limit **
   6  Prefactor     17.361        5.3765        .10249E-07    .64521E-02
   7  norm          12.644        8.7450        .10516E-05   -.75459E-01
   8  Prefactor     .17764E-08    6.8047        .64941E-06** at limit **
   9  Prefactor     .14955E-06    14.181       -.25446E-05** at limit **
  10  Prefactor     .15749E-06    5.6263       -.33742E-05** at limit **
  11  norm          36.777        4.2480       -.30405E-06    .32991E-01
  12  norm          .55511E-10    1.4017       -.11063E-08** at limit **
  13  norm          .27756E-09    10.768        .20627E-05** at limit **
  14  norm          .22204E-09    3.4424        .20787E-06** at limit **
  15  Prefactor     2.0576        14.122        .68222E-05    .20923E-01
  16  norm           .0000        .82536       -.13170E-06** at limit **
  17  norm          .11102E-09    1.8790        .31062E-06** at limit **
  18  Normalizat    .95666        .23064        .19884E-05    .66115E-05
  19  Prefactor     1.0572        .14238       -.35774E-05   -.15018E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 9.42024e-08
  Prefactor  = 4.34153e-07
  norm       = 8.61488
  Prefactor  = 2.02061e-07
  Prefactor  = 17.3608
  norm       = 12.6438
  Prefactor  = 1.77636e-09
  Prefactor  = 1.49547e-07
  Prefactor  = 1.57485e-07
  norm       = 36.7766
  norm       = 5.55112e-11
  norm       = 2.77556e-10
  norm       = 2.22045e-10
  Prefactor  = 2.05763
  norm       = 0
  norm       = 1.11022e-10
  Normalizat = 0.956661
  Prefactor  = 1.05719
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
adding source Monoceros
Working on...
/lscratch/kocevski/27886653/ft1_filtered_4FGL_J0804.5+0414_daily_bin2171.fits.....................!
real 33.18
user 31.85
sys 0.90

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/27886653/ft1_filtered_4FGL_J0804.5+0414_daily_bin2171.fits', '/lscratch/kocevski/27886653/ft2_4FGL_J0804.5+0414_daily_bin2171.fits', expMap='/lscratch/kocevski/27886653/expmap_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.fits', expCube='/lscratch/kocevski/27886653/ltcube_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/27886653/Model_4FGL_J0804.5+0414_daily_bin2171.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0804.5+0414'

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  7.193e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
282        Index:  2.491e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  8.390e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/27886653/ft1_filtered_4FGL_J0804.5+0414_daily_bin2171.fits
Spacecraft file(s): /lscratch/kocevski/27886653/ft2_4FGL_J0804.5+0414_daily_bin2171.fits
Exposure map: /lscratch/kocevski/27886653/expmap_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.fits
Exposure cube: /lscratch/kocevski/27886653/ltcube_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/27886653/Model_4FGL_J0804.5+0414_daily_bin2171.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) = 6720.63575915

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10056E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    .17704E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    .55984E-02   1.0000          .0000       .10000E+07
     4 'norm      '    8.6151       1.0000          .0000       .10000E+07
     5 'Prefactor '    .10703E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    17.322       1.0000          .0000       .10000E+07
     7 'norm      '    13.187       1.0000          .0000       .10000E+07
     8 'Prefactor '    .47368E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .17181E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .18754       1.0000          .0000       .10000E+07
    11 'norm      '    36.425       1.0000          .0000       .10000E+07
    12 'norm      '    .54760E-05   1.0000          .0000       .10000E+07
    13 'norm      '    .79547E-07   1.0000          .0000       .10000E+07
    14 'norm      '    .38586E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    2.0378       1.0000          .0000       .10000E+07
    16 'norm      '    .17764E-08   1.0000          .0000       .10000E+07
    17 'norm      '    .25470E-04   1.0000          .0000       .10000E+07
    18 'Normalizat'    .95696       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0572       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5570E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6720.584     FROM MIGRAD    STATUS=CONVERGED    127 CALLS     1137 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        1.0104        .54262E-07** at limit **
   2  Prefactor     .94202E-07    55.084       -.90423E-05** at limit **
   3  Prefactor     .43415E-06    8.9652        .18114E-05** at limit **
   4  norm          8.6149        2.6294       -.68277E-07   -.54653E-02
   5  Prefactor     .20206E-06    23.372       -.38175E-05** at limit **
   6  Prefactor     17.361        5.3765        .10249E-07    .64521E-02
   7  norm          12.644        8.7450        .10516E-05   -.75459E-01
   8  Prefactor     .17764E-08    6.8047        .64941E-06** at limit **
   9  Prefactor     .14955E-06    14.181       -.25446E-05** at limit **
  10  Prefactor     .15749E-06    5.6263       -.33742E-05** at limit **
  11  norm          36.777        4.2480       -.30405E-06    .32991E-01
  12  norm          .55511E-10    1.4017       -.11063E-08** at limit **
  13  norm          .27756E-09    10.768        .20627E-05** at limit **
  14  norm          .22204E-09    3.4424        .20787E-06** at limit **
  15  Prefactor     2.0576        14.122        .68222E-05    .20923E-01
  16  norm           .0000        .82536       -.13170E-06** at limit **
  17  norm          .11102E-09    1.8790        .31062E-06** at limit **
  18  Normalizat    .95666        .23064        .19884E-05    .66115E-05
  19  Prefactor     1.0572        .14238       -.35774E-05   -.15018E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 9.42024e-08
  Prefactor  = 4.34153e-07
  norm       = 8.61488
  Prefactor  = 2.02061e-07
  Prefactor  = 17.3608
  norm       = 12.6438
  Prefactor  = 1.77636e-09
  Prefactor  = 1.49547e-07
  Prefactor  = 1.57485e-07
  norm       = 36.7766
  norm       = 5.55112e-11
  norm       = 2.77556e-10
  norm       = 2.22045e-10
  Prefactor  = 2.05763
  norm       = 0
  norm       = 1.11022e-10
  Normalizat = 0.956661
  Prefactor  = 1.05719
 **********
 **   18 **HESSE 
 **********

 FCN=   6720.584     FROM HESSE     STATUS=OK           300 CALLS     1437 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.0057        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .94202E-07    55.084        .17193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .43415E-06    20.858        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.6149        2.6300        .34128E-03   -1.5649    
   5  Prefactor     .20206E-06    24.828        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.361        5.3844        .24037E-03   -1.5625    
   7  norm          12.644        15.368        .27558E-03   -1.5637    
   8  Prefactor     .17764E-08    6.9754        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .14955E-06    15.200        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .15749E-06    55.754        .12002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          36.777        16.274        .16571E-03   -1.5587    
  12  norm          .55511E-10    1.3915        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .27756E-09    19.524        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .22204E-09    3.4262        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.0576        20.335        .72420E-03   -1.5679    
  16  norm           .0000        .79144        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .11102E-09    1.8799        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .95666        .20939        .75757E-01   -.94497    
  19  Prefactor     1.0572        .12658        .39505E-01   -.90847    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9817e-07
Minuit parameter uncertainties:
  1  4.98543e-06
  2  0.00455645
  3  0.00601837
  4  2.63004
  5  0.00447966
  6  5.38442
  7  15.3678
  8  0.000224051
  9  0.00301511
  10  0.00592625
  11  16.2736
  12  1.27346e-05
  13  0.000148549
  14  5.68623e-05
  15  12.9373
  16  1.20274e-06
  17  3.05815e-05
  18  0.209571
  19  0.126618
 **********
 **   18 **HESSE 
 **********

 FCN=   6720.584     FROM HESSE     STATUS=OK           300 CALLS     1437 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.0057        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .94202E-07    55.084        .17193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .43415E-06    20.858        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.6149        2.6300        .34128E-03   -1.5649    
   5  Prefactor     .20206E-06    24.828        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.361        5.3844        .24037E-03   -1.5625    
   7  norm          12.644        15.368        .27558E-03   -1.5637    
   8  Prefactor     .17764E-08    6.9754        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .14955E-06    15.200        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .15749E-06    55.754        .12002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          36.777        16.274        .16571E-03   -1.5587    
  12  norm          .55511E-10    1.3915        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .27756E-09    19.524        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .22204E-09    3.4262        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.0576        20.335        .72420E-03   -1.5679    
  16  norm           .0000        .79144        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .11102E-09    1.8799        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .95666        .20939        .75757E-01   -.94497    
  19  Prefactor     1.0572        .12658        .39505E-01   -.90847    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9817e-07
Minuit parameter uncertainties:
  1  4.98543e-06
  2  0.00455645
  3  0.00601837
  4  2.63004
  5  0.00447966
  6  5.38442
  7  15.3678
  8  0.000224051
  9  0.00301511
  10  0.00592625
  11  16.2736
  12  1.27346e-05
  13  0.000148549
  14  5.68623e-05
  15  12.9373
  16  1.20274e-06
  17  3.05815e-05
  18  0.209571
  19  0.126618
Done.

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

Extracting fit parameters...

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  1.575e-07  5.926e-03  0.000e+00  1.000e+06 ( 1.000e-13)
282        Index:  2.491e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  8.390e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  1.057e+00  1.266e-01  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
549   Normalization:  9.567e-01  2.096e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 121.133 4.239
Photon Flux Upper Limit: 1.16570128284e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.00906161120021 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/27886659/likelihoodResults_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.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): 102
logL (Free Index) = 6720.59284731
delta logL = -0.00868915065803

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6720.31490343
delta logL = 0.269254734421

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6720.315     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      246 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6700        92.249        .62534E-03    .10095E-01
   2  Index         4.1847        3.9315        .14914        .17405E-03
   3  Normalizat    .88379        .56113E-01    .78515E-01    .16537E-03
   4  Prefactor     1.0828        .35140E-01    .38268E-01    .20516E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.67004
  Index      = 4.18472
  Normalizat = 0.883793
  Prefactor  = 1.08279
 **********
 **   18 **HESSE 
 **********

 FCN=   6720.315     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      277 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6700        224.24        .16911E-04   -1.5675    
   2  Index         4.1847        6.7093        .81162E-02   -.16379    
   3  Normalizat    .88379        .21798        .34754E-03   -.97032    
   4  Prefactor     1.0828        .13007        .19903E-03   -.90019    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.57266e-09
Minuit parameter uncertainties:
  1  48.9396
  2  9.70796
  3  0.218201
  4  0.130112
Done.

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

Extracting fit parameters...

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  1.575e-07  5.926e-03  0.000e+00  1.000e+06 ( 1.000e-13)
282        Index:  2.491e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  8.390e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  1.057e+00  1.266e-01  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
549   Normalization:  9.567e-01  2.096e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 121.133 4.239
Photon Flux Upper Limit: 1.16570128284e-07 ph cm-2 s-1
Energy Flux Upper Limit: 0.00906161120021 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/27886653/likelihoodResults_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.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): 102
logL (Free Index) = 6720.59284731
delta logL = -0.00868915065803

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6720.31490343
delta logL = 0.269254734421

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6720.315     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      246 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6700        92.249        .62534E-03    .10095E-01
   2  Index         4.1847        3.9315        .14914        .17405E-03
   3  Normalizat    .88379        .56113E-01    .78515E-01    .16537E-03
   4  Prefactor     1.0828        .35140E-01    .38268E-01    .20516E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.67004
  Index      = 4.18472
  Normalizat = 0.883793
  Prefactor  = 1.08279
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6720.31489765
delta logL = 0.269260512834

Extracting fit parameters...

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  2.670e+00  4.894e+01  0.000e+00  1.000e+06 ( 1.000e-13)
282        Index:  4.185e+00  9.708e+00  0.000e+00  1.000e+01 (-1.000e+00)
283        Scale:  8.390e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  1.083e+00  1.301e-01  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
549   Normalization:  8.838e-01  2.182e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 121.133 4.239

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/27886659/cmap_HighResolution_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.06e-03', job_status='DONE', photon_flux_upper_limit='1.17e-07', time_completed='2026-06-05 05:55:39.324066', job_id='27886659', GAL2='1.08', fit_tolerance='1e-08', EG2='0.88', EG='0.96', time_epoch_completed='1780664139.32', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='2.69e-01', ts2='0.62', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='2171' AND source_name='4FGL J0804.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jun  5 05:55:39 PDT 2026

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

 FCN=   6720.315     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      277 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6700        224.24        .16911E-04   -1.5675    
   2  Index         4.1847        6.7093        .81162E-02   -.16379    
   3  Normalizat    .88379        .21798        .34754E-03   -.97032    
   4  Prefactor     1.0828        .13007        .19903E-03   -.90019    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.57266e-09
Minuit parameter uncertainties:
  1  48.9396
  2  9.70796
  3  0.218201
  4  0.130112
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6720.31489765
delta logL = 0.269260512834

Extracting fit parameters...

4FGL J0804.5+0414
   Spectrum: PowerLaw
281    Prefactor:  2.670e+00  4.894e+01  0.000e+00  1.000e+06 ( 1.000e-13)
282        Index:  4.185e+00  9.708e+00  0.000e+00  1.000e+01 (-1.000e+00)
283        Scale:  8.390e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
550    Prefactor:  1.083e+00  1.301e-01  0.000e+00  1.000e+01 ( 1.000e+00)
551        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
552        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
549   Normalization:  8.838e-01  2.182e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 121.133 4.239

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/27886653/cmap_HighResolution_802051201_802310401_4FGL_J0804.5+0414_daily_bin2171.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.06e-03', job_status='DONE', photon_flux_upper_limit='1.17e-07', time_completed='2026-06-05 05:55:41.612536', job_id='27886653', GAL2='1.08', fit_tolerance='1e-08', EG2='0.88', EG='0.96', time_epoch_completed='1780664141.61', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='2.69e-01', ts2='0.62', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='2171' AND source_name='4FGL J0804.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jun  5 05:55:41 PDT 2026

