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

 FCN=   6578.393     FROM HESSE     STATUS=OK           233 CALLS     1355 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .84511        1.0742        .49667E-03   -1.5690    
   2  norm          .35083        .45717        .95567E-03   -1.5696    
   3  Prefactor     .16653E-09    3.6748        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .45297E-07    12.738        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .33307E-09    9.5853        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .83822E-08    13.016        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     91.515        58.971        .10542E-03   -1.5517    
   8  Prefactor     38.936        40.806        .16319E-03   -1.5583    
   9  Prefactor     .83988E-07    12.792        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.9267        1.2870        .74819E-03   -1.5680    
  11  Prefactor     7.0313        4.9251        .37818E-03   -1.5655    
  12  Prefactor     2.8636        3.9859        .60309E-03   -1.5674    
  13  Prefactor     1.8563        3.6894        .76238E-03   -1.5681    
  14  norm           .0000        .13422        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    .93656        .18167        .45395E-01   -.95187    
  16  Prefactor     1.0174        .14757        .42485E-01   -.92152    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47588e-07
Minuit parameter uncertainties:
  1  1.07416
  2  0.457172
  3  4.55499e-05
  4  0.00151899
  5  0.000114934
  6  0.000661655
  7  58.971
  8  40.8064
  9  0.00207304
  10  1.28705
  11  4.92506
  12  3.98586
  13  3.68936
  14  1.31617e-06
  15  0.181789
  16  0.147629
Working on...
/lscratch/kocevski/31234548/ft1_filtered_4FGL_J1016.0+0512_daily_bin2182.fits.....................!
real 26.56
user 25.03
sys 1.09

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31234548/ft1_filtered_4FGL_J1016.0+0512_daily_bin2182.fits', '/lscratch/kocevski/31234548/ft2_4FGL_J1016.0+0512_daily_bin2182.fits', expMap='/lscratch/kocevski/31234548/expmap_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.fits', expCube='/lscratch/kocevski/31234548/ltcube_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31234548/Model_4FGL_J1016.0+0512_daily_bin2182.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1016.0+0512'

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  6.181e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
211        Index:  2.223e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
212        Scale:  1.475e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31234548/ft1_filtered_4FGL_J1016.0+0512_daily_bin2182.fits
Spacecraft file(s): /lscratch/kocevski/31234548/ft2_4FGL_J1016.0+0512_daily_bin2182.fits
Exposure map: /lscratch/kocevski/31234548/expmap_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.fits
Exposure cube: /lscratch/kocevski/31234548/ltcube_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31234548/Model_4FGL_J1016.0+0512_daily_bin2182.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) = 6578.4106787

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .84461       1.0000          .0000       .10000E+07
     2 'norm      '    .34966       1.0000          .0000       .10000E+07
     3 'Prefactor '    .12162E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    .21845E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .37569E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .12214E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    89.996       1.0000          .0000       .10000E+07
     8 'Prefactor '    37.558       1.0000          .0000       .10000E+07
     9 'Prefactor '    .84783E-02   1.0000          .0000       .10000E+07
    10 'norm      '    1.9263       1.0000          .0000       .10000E+07
    11 'Prefactor '    7.0278       1.0000          .0000       .10000E+07
    12 'Prefactor '    2.8403       1.0000          .0000       .10000E+07
    13 'Prefactor '    1.8658       1.0000          .0000       .10000E+07
    14 'norm      '    .13139E-06   1.0000          .0000       .10000E+07
    15 'Normalizat'    .93874       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.0167       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4910E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6578.393     FROM MIGRAD    STATUS=CONVERGED    116 CALLS     1122 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .84511        1.0682        .10641E-06   -.92089E-02
   2  norm          .35083        .43899        .72149E-07   -.32603E-02
   3  Prefactor     .16653E-09    3.6798       -.73612E-06** at limit **
   4  Prefactor     .45297E-07    5.8065       -.76476E-06** at limit **
   5  Prefactor     .33307E-09    9.5081       -.10582E-05** at limit **
   6  Prefactor     .83822E-08    12.334        .48233E-05** at limit **
   7  Prefactor     91.515        59.219        .30330E-04    .19322E-03
   8  Prefactor     38.936        40.737       -.19205E-04    .15105E-02
   9  Prefactor     .83988E-07    7.6834       -.20931E-05** at limit **
  10  norm          1.9267        1.2783       -.70385E-07    .26727E-02
  11  Prefactor     7.0313        4.9172        .16350E-06   -.10546E-03
  12  Prefactor     2.8636        3.9563        .57250E-07   -.62669E-02
  13  Prefactor     1.8563        3.6327       -.34608E-07    .13186E-02
  14  norm           .0000        .13594       -.91378E-07** at limit **
  15  Normalizat    .93656        .20980       -.49117E-04   -.46382E-03
  16  Prefactor     1.0174        .17175        .26815E-04   -.47797E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.845107
  norm       = 0.35083
  Prefactor  = 1.66533e-10
  Prefactor  = 4.52971e-08
  Prefactor  = 3.33067e-10
  Prefactor  = 8.38218e-09
  Prefactor  = 91.5155
  Prefactor  = 38.9362
  Prefactor  = 8.39884e-08
  norm       = 1.92671
  Prefactor  = 7.03128
  Prefactor  = 2.86363
  Prefactor  = 1.8563
  norm       = 0
  Normalizat = 0.936563
  Prefactor  = 1.01741
 **********
 **   18 **HESSE 
 **********

 FCN=   6578.393     FROM HESSE     STATUS=OK           233 CALLS     1355 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .84511        1.0742        .49667E-03   -1.5690    
   2  norm          .35083        .45717        .95567E-03   -1.5696    
   3  Prefactor     .16653E-09    3.6748        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .45297E-07    12.738        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .33307E-09    9.5853        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .83822E-08    13.016        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     91.515        58.971        .10542E-03   -1.5517    
   8  Prefactor     38.936        40.806        .16319E-03   -1.5583    
   9  Prefactor     .83988E-07    12.792        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.9267        1.2870        .74819E-03   -1.5680    
  11  Prefactor     7.0313        4.9251        .37818E-03   -1.5655    
  12  Prefactor     2.8636        3.9859        .60309E-03   -1.5674    
  13  Prefactor     1.8563        3.6894        .76238E-03   -1.5681    
  14  norm           .0000        .13422        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    .93656        .18167        .45395E-01   -.95187    
  16  Prefactor     1.0174        .14757        .42485E-01   -.92152    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47588e-07
Minuit parameter uncertainties:
  1  1.07416
  2  0.457172
  3  4.55499e-05
  4  0.00151899
  5  0.000114934
  6  0.000661655
  7  58.971
  8  40.8064
  9  0.00207304
  10  1.28705
  11  4.92506
  12  3.98586
  13  3.68936
  14  1.31617e-06
  15  0.181789
  16  0.147629
/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

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

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

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

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

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

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  8.382e-09  6.617e-04  0.000e+00  1.000e+06 ( 1.000e-13)
211        Index:  2.223e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
212        Scale:  1.475e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
488    Prefactor:  1.017e+00  1.476e-01  0.000e+00  1.000e+01 ( 1.000e+00)
489        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
490        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
487   Normalization:  9.366e-01  1.818e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 154.009 5.209
Photon Flux Upper Limit: 6.24103671307e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00476333663902 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31234464/likelihoodResults_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6578.43711081
delta logL = -0.0438497710011

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6578.39292666
delta logL = 0.000334387067596

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6578.393     FROM MIGRAD    STATUS=CONVERGED     74 CALLS      246 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22856E-01    .60216        .21493E-02** at limit **
   2  Index         3.5315        .52547        .50000        .10629E-05
   3  Normalizat    .93524        .42120E-02    .45347E-01   -.33438E-04
   4  Prefactor     1.0180        .35956E-02    .42345E-01    .32957E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0228563
  Index      = 3.53153
  Normalizat = 0.935238
  Prefactor  = 1.01805
 **********
 **   18 **HESSE 
 **********

 FCN=   6578.393     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      281 TOTAL
                     EDM=   .74E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22856E-01    1071.6        .12663E-03   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.5315        5.6219        .89885E-02   -.29809    
   3  Normalizat    .93524        .11623        .26529E-03   -.95233    
   4  Prefactor     1.0180        .76122E-01    .21689E-03   -.92130    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.41703e-06
Minuit parameter uncertainties:
  1  9.90003
  2  130.972
  3  0.116262
  4  0.0761302

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

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) = 6578.39282732
delta logL = 0.000433721756963

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  2.286e-02  9.900e+00  0.000e+00  1.000e+06 ( 1.000e-13)
211        Index:  3.532e+00  1.310e+02  0.000e+00  1.000e+01 (-1.000e+00)
212        Scale:  1.475e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
488    Prefactor:  1.018e+00  7.613e-02  0.000e+00  1.000e+01 ( 1.000e+00)
489        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
490        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
487   Normalization:  9.352e-01  1.163e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 154.009 5.209

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/31234464/cmap_HighResolution_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.76e-03', job_status='DONE', photon_flux_upper_limit='6.24e-08', time_completed='2026-07-10 11:36:39.186472', job_id='31234464', GAL2='1.02', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1783708599.19', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='4.34e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='2182' AND source_name='4FGL J1016.0+0512' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul 10 11:36:39 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  8.382e-09  6.617e-04  0.000e+00  1.000e+06 ( 1.000e-13)
211        Index:  2.223e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
212        Scale:  1.475e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
488    Prefactor:  1.017e+00  1.476e-01  0.000e+00  1.000e+01 ( 1.000e+00)
489        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
490        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
487   Normalization:  9.366e-01  1.818e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 154.009 5.209
Photon Flux Upper Limit: 6.24103671307e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00476333663902 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31234548/likelihoodResults_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6578.43711081
delta logL = -0.0438497710011

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6578.39292666
delta logL = 0.000334387067596

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6578.393     FROM MIGRAD    STATUS=CONVERGED     74 CALLS      246 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22856E-01    .60216        .21493E-02** at limit **
   2  Index         3.5315        .52547        .50000        .10629E-05
   3  Normalizat    .93524        .42120E-02    .45347E-01   -.33438E-04
   4  Prefactor     1.0180        .35956E-02    .42345E-01    .32957E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0228563
  Index      = 3.53153
  Normalizat = 0.935238
  Prefactor  = 1.01805
 **********
 **   18 **HESSE 
 **********

 FCN=   6578.393     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      281 TOTAL
                     EDM=   .74E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22856E-01    1071.6        .12663E-03   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.5315        5.6219        .89885E-02   -.29809    
   3  Normalizat    .93524        .11623        .26529E-03   -.95233    
   4  Prefactor     1.0180        .76122E-01    .21689E-03   -.92130    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.41703e-06
Minuit parameter uncertainties:
  1  9.90003
  2  130.972
  3  0.116262
  4  0.0761302
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) = 6578.39282732
delta logL = 0.000433721756963

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  2.286e-02  9.900e+00  0.000e+00  1.000e+06 ( 1.000e-13)
211        Index:  3.532e+00  1.310e+02  0.000e+00  1.000e+01 (-1.000e+00)
212        Scale:  1.475e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
488    Prefactor:  1.018e+00  7.613e-02  0.000e+00  1.000e+01 ( 1.000e+00)
489        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
490        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
487   Normalization:  9.352e-01  1.163e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 154.009 5.209

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/31234548/cmap_HighResolution_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.76e-03', job_status='DONE', photon_flux_upper_limit='6.24e-08', time_completed='2026-07-10 11:36:48.528621', job_id='31234548', GAL2='1.02', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1783708608.53', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='4.34e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='2182' AND source_name='4FGL J1016.0+0512' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul 10 11:36:48 PDT 2026

ile=/lscratch/kocevski/31234844/ltcube_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.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/31234844/ft2_4FGL_J1016.0+0512_daily_bin2182.fits
.....................!
real 7.80
user 7.16
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31234844/ft1_filtered_4FGL_J1016.0+0512_daily_bin2182.fits evtable="EVENTS" scfile=/lscratch/kocevski/31234844/ft2_4FGL_J1016.0+0512_daily_bin2182.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31234844/ltcube_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.fits outfile=/lscratch/kocevski/31234844/expmap_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.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/31234844/ltcube_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.fits
.....................!
real 64.30
user 59.91
sys 3.74

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 153 point sources and 0 extended sources

Setting source of interest to:
4FGL J1016.0+0512 @ 154.009 5.2089

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31234844/ft1_filtered_4FGL_J1016.0+0512_daily_bin2182.fits scfile=/lscratch/kocevski/31234844/ft2_4FGL_J1016.0+0512_daily_bin2182.fits outfile=/lscratch/kocevski/31234844/cmap_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.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=154.009 yref=5.2089 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.71
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31234844/ft1_filtered_4FGL_J1016.0+0512_daily_bin2182.fits scfile=/lscratch/kocevski/31234844/ft2_4FGL_J1016.0+0512_daily_bin2182.fits outfile=/lscratch/kocevski/31234844/cmap_HighResolution_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.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=154.009 yref=5.2089 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.90
user 0.23
sys 0.11

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31234844/ft1_filtered_4FGL_J1016.0+0512_daily_bin2182.fits evtable="EVENTS" scfile=/lscratch/kocevski/31234844/ft2_4FGL_J1016.0+0512_daily_bin2182.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31234844/Model_4FGL_J1016.0+0512_daily_bin2182.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
ile=/lscratch/kocevski/31234790/ltcube_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.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/31234790/ft2_4FGL_J1016.0+0512_daily_bin2182.fits
.....................!
real 8.56
user 7.90
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31234790/ft1_filtered_4FGL_J1016.0+0512_daily_bin2182.fits evtable="EVENTS" scfile=/lscratch/kocevski/31234790/ft2_4FGL_J1016.0+0512_daily_bin2182.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31234790/ltcube_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.fits outfile=/lscratch/kocevski/31234790/expmap_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.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/31234790/ltcube_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.fits
.....................!
real 67.13
user 62.59
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
Added 153 point sources and 0 extended sources

Setting source of interest to:
4FGL J1016.0+0512 @ 154.009 5.2089

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31234790/ft1_filtered_4FGL_J1016.0+0512_daily_bin2182.fits scfile=/lscratch/kocevski/31234790/ft2_4FGL_J1016.0+0512_daily_bin2182.fits outfile=/lscratch/kocevski/31234790/cmap_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.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=154.009 yref=5.2089 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.71
user 0.20
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31234790/ft1_filtered_4FGL_J1016.0+0512_daily_bin2182.fits scfile=/lscratch/kocevski/31234790/ft2_4FGL_J1016.0+0512_daily_bin2182.fits outfile=/lscratch/kocevski/31234790/cmap_HighResolution_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.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=154.009 yref=5.2089 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.63
user 0.21
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31234790/ft1_filtered_4FGL_J1016.0+0512_daily_bin2182.fits evtable="EVENTS" scfile=/lscratch/kocevski/31234790/ft2_4FGL_J1016.0+0512_daily_bin2182.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31234790/Model_4FGL_J1016.0+0512_daily_bin2182.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
ile=/lscratch/kocevski/31234999/ltcube_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.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/31234999/ft2_4FGL_J1016.0+0512_daily_bin2182.fits
.....................!
real 8.10
user 7.49
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31234999/ft1_filtered_4FGL_J1016.0+0512_daily_bin2182.fits evtable="EVENTS" scfile=/lscratch/kocevski/31234999/ft2_4FGL_J1016.0+0512_daily_bin2182.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31234999/ltcube_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.fits outfile=/lscratch/kocevski/31234999/expmap_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.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/31234999/ltcube_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.fits
.....................!
real 68.54
user 63.86
sys 4.10

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 153 point sources and 0 extended sources

Setting source of interest to:
4FGL J1016.0+0512 @ 154.009 5.2089

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31234999/ft1_filtered_4FGL_J1016.0+0512_daily_bin2182.fits scfile=/lscratch/kocevski/31234999/ft2_4FGL_J1016.0+0512_daily_bin2182.fits outfile=/lscratch/kocevski/31234999/cmap_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.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=154.009 yref=5.2089 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.77
user 0.23
sys 0.11

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31234999/ft1_filtered_4FGL_J1016.0+0512_daily_bin2182.fits scfile=/lscratch/kocevski/31234999/ft2_4FGL_J1016.0+0512_daily_bin2182.fits outfile=/lscratch/kocevski/31234999/cmap_HighResolution_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.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=154.009 yref=5.2089 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.83
user 0.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31234999/ft1_filtered_4FGL_J1016.0+0512_daily_bin2182.fits evtable="EVENTS" scfile=/lscratch/kocevski/31234999/ft2_4FGL_J1016.0+0512_daily_bin2182.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31234999/Model_4FGL_J1016.0+0512_daily_bin2182.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
number of points = 7516
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1016.0+0512_daily_bin2182
RA = 154.009, Dec = 5.2089
tmin = 804902401, tmax = 805161601
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='31235559', job_status='RUN', time_executed='2026-07-10 11:35:38.642190', time_epoch_executed='1783708538.64' WHERE source_name='4FGL J1016.0+0512' and cadence='daily' and bin_id='2182'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/31235559

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/31235559/ft1_4FGL_J1016.0+0512_daily_bin2182.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/31235559/ft2_4FGL_J1016.0+0512_daily_bin2182.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/31235559/ft1_4FGL_J1016.0+0512_daily_bin2182.fits outfile=/lscratch/kocevski/31235559/ft1_filteredMKT_4FGL_J1016.0+0512_daily_bin2182.fits ra=154.009 dec=5.2089 rad=12.0 tmin=804902401.0 tmax=805161601.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.44
user 1.92
sys 0.18

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/31235559/ft2_4FGL_J1016.0+0512_daily_bin2182.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/31235559/ft2_4FGL_J1016.0+0512_daily_bin2182.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/31235559/ft1_filteredMKT_4FGL_J1016.0+0512_daily_bin2182.fits evtable="EVENTS" outfile="/lscratch/kocevski/31235559/ft1_filtered_4FGL_J1016.0+0512_daily_bin2182.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.69
user 0.20
sys 0.14

Number of photons that the gtmktime cut: 585

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/31235559/ft1_filtered_4FGL_J1016.0+0512_daily_bin2182.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31235559/ft2_4FGL_J1016.0+0512_daily_bin2182.fits sctable="SC_DATA" outfWorking on...
/lscratch/kocevski/31234844/ft1_filtered_4FGL_J1016.0+0512_daily_bin2182.fits.....................!
real 26.39
user 24.66
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31234844/ft1_filtered_4FGL_J1016.0+0512_daily_bin2182.fits', '/lscratch/kocevski/31234844/ft2_4FGL_J1016.0+0512_daily_bin2182.fits', expMap='/lscratch/kocevski/31234844/expmap_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.fits', expCube='/lscratch/kocevski/31234844/ltcube_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31234844/Model_4FGL_J1016.0+0512_daily_bin2182.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1016.0+0512'

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  6.181e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
211        Index:  2.223e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
212        Scale:  1.475e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31234844/ft1_filtered_4FGL_J1016.0+0512_daily_bin2182.fits
Spacecraft file(s): /lscratch/kocevski/31234844/ft2_4FGL_J1016.0+0512_daily_bin2182.fits
Exposure map: /lscratch/kocevski/31234844/expmap_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.fits
Exposure cube: /lscratch/kocevski/31234844/ltcube_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31234844/Model_4FGL_J1016.0+0512_daily_bin2182.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) = 6578.4106787

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .84461       1.0000          .0000       .10000E+07
     2 'norm      '    .34966       1.0000          .0000       .10000E+07
     3 'Prefactor '    .12162E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    .21845E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .37569E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .12214E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    89.996       1.0000          .0000       .10000E+07
     8 'Prefactor '    37.558       1.0000          .0000       .10000E+07
     9 'Prefactor '    .84783E-02   1.0000          .0000       .10000E+07
    10 'norm      '    1.9263       1.0000          .0000       .10000E+07
    11 'Prefactor '    7.0278       1.0000          .0000       .10000E+07
    12 'Prefactor '    2.8403       1.0000          .0000       .10000E+07
    13 'Prefactor '    1.8658       1.0000          .0000       .10000E+07
    14 'norm      '    .13139E-06   1.0000          .0000       .10000E+07
    15 'Normalizat'    .93874       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.0167       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4910E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6578.393     FROM MIGRAD    STATUS=CONVERGED    116 CALLS     1122 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .84511        1.0682        .10641E-06   -.92089E-02
   2  norm          .35083        .43899        .72149E-07   -.32603E-02
   3  Prefactor     .16653E-09    3.6798       -.73612E-06** at limit **
   4  Prefactor     .45297E-07    5.8065       -.76476E-06** at limit **
   5  Prefactor     .33307E-09    9.5081       -.10582E-05** at limit **
   6  Prefactor     .83822E-08    12.334        .48233E-05** at limit **
   7  Prefactor     91.515        59.219        .30330E-04    .19322E-03
   8  Prefactor     38.936        40.737       -.19205E-04    .15105E-02
   9  Prefactor     .83988E-07    7.6834       -.20931E-05** at limit **
  10  norm          1.9267        1.2783       -.70385E-07    .26727E-02
  11  Prefactor     7.0313        4.9172        .16350E-06   -.10546E-03
  12  Prefactor     2.8636        3.9563        .57250E-07   -.62669E-02
  13  Prefactor     1.8563        3.6327       -.34608E-07    .13186E-02
  14  norm           .0000        .13594       -.91378E-07** at limit **
  15  Normalizat    .93656        .20980       -.49117E-04   -.46382E-03
  16  Prefactor     1.0174        .17175        .26815E-04   -.47797E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.845107
  norm       = 0.35083
  Prefactor  = 1.66533e-10
  Prefactor  = 4.52971e-08
  Prefactor  = 3.33067e-10
  Prefactor  = 8.38218e-09
  Prefactor  = 91.5155
  Prefactor  = 38.9362
  Prefactor  = 8.39884e-08
  norm       = 1.92671
  Prefactor  = 7.03128
  Prefactor  = 2.86363
  Prefactor  = 1.8563
  norm       = 0
  Normalizat = 0.936563
  Prefactor  = 1.01741
Working on...
/lscratch/kocevski/31234790/ft1_filtered_4FGL_J1016.0+0512_daily_bin2182.fits.....................!
real 24.90
user 23.06
sys 1.38

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31234790/ft1_filtered_4FGL_J1016.0+0512_daily_bin2182.fits', '/lscratch/kocevski/31234790/ft2_4FGL_J1016.0+0512_daily_bin2182.fits', expMap='/lscratch/kocevski/31234790/expmap_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.fits', expCube='/lscratch/kocevski/31234790/ltcube_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31234790/Model_4FGL_J1016.0+0512_daily_bin2182.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1016.0+0512'

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  6.181e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
211        Index:  2.223e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
212        Scale:  1.475e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31234790/ft1_filtered_4FGL_J1016.0+0512_daily_bin2182.fits
Spacecraft file(s): /lscratch/kocevski/31234790/ft2_4FGL_J1016.0+0512_daily_bin2182.fits
Exposure map: /lscratch/kocevski/31234790/expmap_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.fits
Exposure cube: /lscratch/kocevski/31234790/ltcube_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31234790/Model_4FGL_J1016.0+0512_daily_bin2182.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) = 6578.4106787

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .84461       1.0000          .0000       .10000E+07
     2 'norm      '    .34966       1.0000          .0000       .10000E+07
     3 'Prefactor '    .12162E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    .21845E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .37569E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .12214E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    89.996       1.0000          .0000       .10000E+07
     8 'Prefactor '    37.558       1.0000          .0000       .10000E+07
     9 'Prefactor '    .84783E-02   1.0000          .0000       .10000E+07
    10 'norm      '    1.9263       1.0000          .0000       .10000E+07
    11 'Prefactor '    7.0278       1.0000          .0000       .10000E+07
    12 'Prefactor '    2.8403       1.0000          .0000       .10000E+07
    13 'Prefactor '    1.8658       1.0000          .0000       .10000E+07
    14 'norm      '    .13139E-06   1.0000          .0000       .10000E+07
    15 'Normalizat'    .93874       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.0167       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4910E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6578.393     FROM MIGRAD    STATUS=CONVERGED    116 CALLS     1122 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .84511        1.0682        .10641E-06   -.92089E-02
   2  norm          .35083        .43899        .72149E-07   -.32603E-02
   3  Prefactor     .16653E-09    3.6798       -.73612E-06** at limit **
   4  Prefactor     .45297E-07    5.8065       -.76476E-06** at limit **
   5  Prefactor     .33307E-09    9.5081       -.10582E-05** at limit **
   6  Prefactor     .83822E-08    12.334        .48233E-05** at limit **
   7  Prefactor     91.515        59.219        .30330E-04    .19322E-03
   8  Prefactor     38.936        40.737       -.19205E-04    .15105E-02
   9  Prefactor     .83988E-07    7.6834       -.20931E-05** at limit **
  10  norm          1.9267        1.2783       -.70385E-07    .26727E-02
  11  Prefactor     7.0313        4.9172        .16350E-06   -.10546E-03
  12  Prefactor     2.8636        3.9563        .57250E-07   -.62669E-02
  13  Prefactor     1.8563        3.6327       -.34608E-07    .13186E-02
  14  norm           .0000        .13594       -.91378E-07** at limit **
  15  Normalizat    .93656        .20980       -.49117E-04   -.46382E-03
  16  Prefactor     1.0174        .17175        .26815E-04   -.47797E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.845107
  norm       = 0.35083
  Prefactor  = 1.66533e-10
  Prefactor  = 4.52971e-08
  Prefactor  = 3.33067e-10
  Prefactor  = 8.38218e-09
  Prefactor  = 91.5155
  Prefactor  = 38.9362
  Prefactor  = 8.39884e-08
  norm       = 1.92671
  Prefactor  = 7.03128
  Prefactor  = 2.86363
  Prefactor  = 1.8563
  norm       = 0
  Normalizat = 0.936563
  Prefactor  = 1.01741
 **********
 **   18 **HESSE 
 **********

 FCN=   6578.393     FROM HESSE     STATUS=OK           233 CALLS     1355 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .84511        1.0742        .49667E-03   -1.5690    
   2  norm          .35083        .45717        .95567E-03   -1.5696    
   3  Prefactor     .16653E-09    3.6748        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .45297E-07    12.738        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .33307E-09    9.5853        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .83822E-08    13.016        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     91.515        58.971        .10542E-03   -1.5517    
   8  Prefactor     38.936        40.806        .16319E-03   -1.5583    
   9  Prefactor     .83988E-07    12.792        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.9267        1.2870        .74819E-03   -1.5680    
  11  Prefactor     7.0313        4.9251        .37818E-03   -1.5655    
  12  Prefactor     2.8636        3.9859        .60309E-03   -1.5674    
  13  Prefactor     1.8563        3.6894        .76238E-03   -1.5681    
  14  norm           .0000        .13422        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    .93656        .18167        .45395E-01   -.95187    
  16  Prefactor     1.0174        .14757        .42485E-01   -.92152    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47588e-07
Minuit parameter uncertainties:
  1  1.07416
  2  0.457172
  3  4.55499e-05
  4  0.00151899
  5  0.000114934
  6  0.000661655
  7  58.971
  8  40.8064
  9  0.00207304
  10  1.28705
  11  4.92506
  12  3.98586
  13  3.68936
  14  1.31617e-06
  15  0.181789
  16  0.147629
 **********
 **   18 **HESSE 
 **********

 FCN=   6578.393     FROM HESSE     STATUS=OK           233 CALLS     1355 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .84511        1.0742        .49667E-03   -1.5690    
   2  norm          .35083        .45717        .95567E-03   -1.5696    
   3  Prefactor     .16653E-09    3.6748        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .45297E-07    12.738        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .33307E-09    9.5853        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .83822E-08    13.016        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     91.515        58.971        .10542E-03   -1.5517    
   8  Prefactor     38.936        40.806        .16319E-03   -1.5583    
   9  Prefactor     .83988E-07    12.792        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.9267        1.2870        .74819E-03   -1.5680    
  11  Prefactor     7.0313        4.9251        .37818E-03   -1.5655    
  12  Prefactor     2.8636        3.9859        .60309E-03   -1.5674    
  13  Prefactor     1.8563        3.6894        .76238E-03   -1.5681    
  14  norm           .0000        .13422        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    .93656        .18167        .45395E-01   -.95187    
  16  Prefactor     1.0174        .14757        .42485E-01   -.92152    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47588e-07
Minuit parameter uncertainties:
  1  1.07416
  2  0.457172
  3  4.55499e-05
  4  0.00151899
  5  0.000114934
  6  0.000661655
  7  58.971
  8  40.8064
  9  0.00207304
  10  1.28705
  11  4.92506
  12  3.98586
  13  3.68936
  14  1.31617e-06
  15  0.181789
  16  0.147629
Done.

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

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  8.382e-09  6.617e-04  0.000e+00  1.000e+06 ( 1.000e-13)
211        Index:  2.223e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
212        Scale:  1.475e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
488    Prefactor:  1.017e+00  1.476e-01  0.000e+00  1.000e+01 ( 1.000e+00)
489        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
490        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
487   Normalization:  9.366e-01  1.818e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 154.009 5.209
Photon Flux Upper Limit: 6.24103671307e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00476333663902 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31234844/likelihoodResults_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6578.43711081
delta logL = -0.0438497710011

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6578.39292666
delta logL = 0.000334387067596

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6578.393     FROM MIGRAD    STATUS=CONVERGED     74 CALLS      246 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22856E-01    .60216        .21493E-02** at limit **
   2  Index         3.5315        .52547        .50000        .10629E-05
   3  Normalizat    .93524        .42120E-02    .45347E-01   -.33438E-04
   4  Prefactor     1.0180        .35956E-02    .42345E-01    .32957E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0228563
  Index      = 3.53153
  Normalizat = 0.935238
  Prefactor  = 1.01805
 **********
 **   18 **HESSE 
 **********

 FCN=   6578.393     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      281 TOTAL
                     EDM=   .74E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22856E-01    1071.6        .12663E-03   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.5315        5.6219        .89885E-02   -.29809    
   3  Normalizat    .93524        .11623        .26529E-03   -.95233    
   4  Prefactor     1.0180        .76122E-01    .21689E-03   -.92130    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.41703e-06
Minuit parameter uncertainties:
  1  9.90003
  2  130.972
  3  0.116262
  4  0.0761302
Done.

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

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  8.382e-09  6.617e-04  0.000e+00  1.000e+06 ( 1.000e-13)
211        Index:  2.223e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
212        Scale:  1.475e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
488    Prefactor:  1.017e+00  1.476e-01  0.000e+00  1.000e+01 ( 1.000e+00)
489        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
490        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
487   Normalization:  9.366e-01  1.818e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 154.009 5.209
Photon Flux Upper Limit: 6.24103671307e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00476333663902 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31234790/likelihoodResults_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6578.43711081
delta logL = -0.0438497710011

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6578.39292666
delta logL = 0.000334387067596

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6578.393     FROM MIGRAD    STATUS=CONVERGED     74 CALLS      246 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22856E-01    .60216        .21493E-02** at limit **
   2  Index         3.5315        .52547        .50000        .10629E-05
   3  Normalizat    .93524        .42120E-02    .45347E-01   -.33438E-04
   4  Prefactor     1.0180        .35956E-02    .42345E-01    .32957E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0228563
  Index      = 3.53153
  Normalizat = 0.935238
  Prefactor  = 1.01805
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) = 6578.39282732
delta logL = 0.000433721756963

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  2.286e-02  9.900e+00  0.000e+00  1.000e+06 ( 1.000e-13)
211        Index:  3.532e+00  1.310e+02  0.000e+00  1.000e+01 (-1.000e+00)
212        Scale:  1.475e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
488    Prefactor:  1.018e+00  7.613e-02  0.000e+00  1.000e+01 ( 1.000e+00)
489        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
490        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
487   Normalization:  9.352e-01  1.163e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 154.009 5.209

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/31234844/cmap_HighResolution_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.76e-03', job_status='DONE', photon_flux_upper_limit='6.24e-08', time_completed='2026-07-10 11:38:32.401152', job_id='31234844', GAL2='1.02', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1783708712.4', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='4.34e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='2182' AND source_name='4FGL J1016.0+0512' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul 10 11:38:32 PDT 2026

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

 FCN=   6578.393     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      281 TOTAL
                     EDM=   .74E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22856E-01    1071.6        .12663E-03   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.5315        5.6219        .89885E-02   -.29809    
   3  Normalizat    .93524        .11623        .26529E-03   -.95233    
   4  Prefactor     1.0180        .76122E-01    .21689E-03   -.92130    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.41703e-06
Minuit parameter uncertainties:
  1  9.90003
  2  130.972
  3  0.116262
  4  0.0761302
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) = 6578.39282732
delta logL = 0.000433721756963

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  2.286e-02  9.900e+00  0.000e+00  1.000e+06 ( 1.000e-13)
211        Index:  3.532e+00  1.310e+02  0.000e+00  1.000e+01 (-1.000e+00)
212        Scale:  1.475e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
488    Prefactor:  1.018e+00  7.613e-02  0.000e+00  1.000e+01 ( 1.000e+00)
489        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
490        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
487   Normalization:  9.352e-01  1.163e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 154.009 5.209

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/31234790/cmap_HighResolution_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.76e-03', job_status='DONE', photon_flux_upper_limit='6.24e-08', time_completed='2026-07-10 11:38:34.861077', job_id='31234790', GAL2='1.02', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1783708714.86', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='4.34e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='2182' AND source_name='4FGL J1016.0+0512' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul 10 11:38:35 PDT 2026

Working on...
/lscratch/kocevski/31234999/ft1_filtered_4FGL_J1016.0+0512_daily_bin2182.fits.....................!
real 27.04
user 25.01
sys 1.36

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31234999/ft1_filtered_4FGL_J1016.0+0512_daily_bin2182.fits', '/lscratch/kocevski/31234999/ft2_4FGL_J1016.0+0512_daily_bin2182.fits', expMap='/lscratch/kocevski/31234999/expmap_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.fits', expCube='/lscratch/kocevski/31234999/ltcube_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31234999/Model_4FGL_J1016.0+0512_daily_bin2182.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1016.0+0512'

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  6.181e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
211        Index:  2.223e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
212        Scale:  1.475e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31234999/ft1_filtered_4FGL_J1016.0+0512_daily_bin2182.fits
Spacecraft file(s): /lscratch/kocevski/31234999/ft2_4FGL_J1016.0+0512_daily_bin2182.fits
Exposure map: /lscratch/kocevski/31234999/expmap_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.fits
Exposure cube: /lscratch/kocevski/31234999/ltcube_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31234999/Model_4FGL_J1016.0+0512_daily_bin2182.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) = 6578.4106787

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .84461       1.0000          .0000       .10000E+07
     2 'norm      '    .34966       1.0000          .0000       .10000E+07
     3 'Prefactor '    .12162E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    .21845E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .37569E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .12214E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    89.996       1.0000          .0000       .10000E+07
     8 'Prefactor '    37.558       1.0000          .0000       .10000E+07
     9 'Prefactor '    .84783E-02   1.0000          .0000       .10000E+07
    10 'norm      '    1.9263       1.0000          .0000       .10000E+07
    11 'Prefactor '    7.0278       1.0000          .0000       .10000E+07
    12 'Prefactor '    2.8403       1.0000          .0000       .10000E+07
    13 'Prefactor '    1.8658       1.0000          .0000       .10000E+07
    14 'norm      '    .13139E-06   1.0000          .0000       .10000E+07
    15 'Normalizat'    .93874       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.0167       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4910E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6578.393     FROM MIGRAD    STATUS=CONVERGED    116 CALLS     1122 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .84511        1.0682        .10641E-06   -.92089E-02
   2  norm          .35083        .43899        .72149E-07   -.32603E-02
   3  Prefactor     .16653E-09    3.6798       -.73612E-06** at limit **
   4  Prefactor     .45297E-07    5.8065       -.76476E-06** at limit **
   5  Prefactor     .33307E-09    9.5081       -.10582E-05** at limit **
   6  Prefactor     .83822E-08    12.334        .48233E-05** at limit **
   7  Prefactor     91.515        59.219        .30330E-04    .19322E-03
   8  Prefactor     38.936        40.737       -.19205E-04    .15105E-02
   9  Prefactor     .83988E-07    7.6834       -.20931E-05** at limit **
  10  norm          1.9267        1.2783       -.70385E-07    .26727E-02
  11  Prefactor     7.0313        4.9172        .16350E-06   -.10546E-03
  12  Prefactor     2.8636        3.9563        .57250E-07   -.62669E-02
  13  Prefactor     1.8563        3.6327       -.34608E-07    .13186E-02
  14  norm           .0000        .13594       -.91378E-07** at limit **
  15  Normalizat    .93656        .20980       -.49117E-04   -.46382E-03
  16  Prefactor     1.0174        .17175        .26815E-04   -.47797E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.845107
  norm       = 0.35083
  Prefactor  = 1.66533e-10
  Prefactor  = 4.52971e-08
  Prefactor  = 3.33067e-10
  Prefactor  = 8.38218e-09
  Prefactor  = 91.5155
  Prefactor  = 38.9362
  Prefactor  = 8.39884e-08
  norm       = 1.92671
  Prefactor  = 7.03128
  Prefactor  = 2.86363
  Prefactor  = 1.8563
  norm       = 0
  Normalizat = 0.936563
  Prefactor  = 1.01741
 **********
 **   18 **HESSE 
 **********

 FCN=   6578.393     FROM HESSE     STATUS=OK           233 CALLS     1355 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .84511        1.0742        .49667E-03   -1.5690    
   2  norm          .35083        .45717        .95567E-03   -1.5696    
   3  Prefactor     .16653E-09    3.6748        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .45297E-07    12.738        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .33307E-09    9.5853        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .83822E-08    13.016        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     91.515        58.971        .10542E-03   -1.5517    
   8  Prefactor     38.936        40.806        .16319E-03   -1.5583    
   9  Prefactor     .83988E-07    12.792        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.9267        1.2870        .74819E-03   -1.5680    
  11  Prefactor     7.0313        4.9251        .37818E-03   -1.5655    
  12  Prefactor     2.8636        3.9859        .60309E-03   -1.5674    
  13  Prefactor     1.8563        3.6894        .76238E-03   -1.5681    
  14  norm           .0000        .13422        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    .93656        .18167        .45395E-01   -.95187    
  16  Prefactor     1.0174        .14757        .42485E-01   -.92152    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47588e-07
Minuit parameter uncertainties:
  1  1.07416
  2  0.457172
  3  4.55499e-05
  4  0.00151899
  5  0.000114934
  6  0.000661655
  7  58.971
  8  40.8064
  9  0.00207304
  10  1.28705
  11  4.92506
  12  3.98586
  13  3.68936
  14  1.31617e-06
  15  0.181789
  16  0.147629
number of points = 7516
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1016.0+0512_daily_bin2182
RA = 154.009, Dec = 5.2089
tmin = 804902401, tmax = 805161601
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='31235890', job_status='RUN', time_executed='2026-07-10 11:36:38.511858', time_epoch_executed='1783708598.51' WHERE source_name='4FGL J1016.0+0512' and cadence='daily' and bin_id='2182'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/31235890

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/31235890/ft1_4FGL_J1016.0+0512_daily_bin2182.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/31235890/ft2_4FGL_J1016.0+0512_daily_bin2182.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/31235890/ft1_4FGL_J1016.0+0512_daily_bin2182.fits outfile=/lscratch/kocevski/31235890/ft1_filteredMKT_4FGL_J1016.0+0512_daily_bin2182.fits ra=154.009 dec=5.2089 rad=12.0 tmin=804902401.0 tmax=805161601.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.66
user 2.04
sys 0.17

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/31235890/ft2_4FGL_J1016.0+0512_daily_bin2182.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/31235890/ft2_4FGL_J1016.0+0512_daily_bin2182.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/31235890/ft1_filteredMKT_4FGL_J1016.0+0512_daily_bin2182.fits evtable="EVENTS" outfile="/lscratch/kocevski/31235890/ft1_filtered_4FGL_J1016.0+0512_daily_bin2182.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.90
user 0.29
sys 0.12

Number of photons that the gtmktime cut: 585

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/31235890/ft1_filtered_4FGL_J1016.0+0512_daily_bin2182.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31235890/ft2_4FGL_J1016.0+0512_daily_bin2182.fits sctable="SC_DATA" outfDone.

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

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  8.382e-09  6.617e-04  0.000e+00  1.000e+06 ( 1.000e-13)
211        Index:  2.223e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
212        Scale:  1.475e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
488    Prefactor:  1.017e+00  1.476e-01  0.000e+00  1.000e+01 ( 1.000e+00)
489        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
490        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
487   Normalization:  9.366e-01  1.818e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 154.009 5.209
Photon Flux Upper Limit: 6.24103671307e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00476333663902 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31234999/likelihoodResults_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6578.43711081
delta logL = -0.0438497710011

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6578.39292666
delta logL = 0.000334387067596

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6578.393     FROM MIGRAD    STATUS=CONVERGED     74 CALLS      246 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22856E-01    .60216        .21493E-02** at limit **
   2  Index         3.5315        .52547        .50000        .10629E-05
   3  Normalizat    .93524        .42120E-02    .45347E-01   -.33438E-04
   4  Prefactor     1.0180        .35956E-02    .42345E-01    .32957E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0228563
  Index      = 3.53153
  Normalizat = 0.935238
  Prefactor  = 1.01805
 **********
 **   18 **HESSE 
 **********

 FCN=   6578.393     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      281 TOTAL
                     EDM=   .74E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22856E-01    1071.6        .12663E-03   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.5315        5.6219        .89885E-02   -.29809    
   3  Normalizat    .93524        .11623        .26529E-03   -.95233    
   4  Prefactor     1.0180        .76122E-01    .21689E-03   -.92130    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.41703e-06
Minuit parameter uncertainties:
  1  9.90003
  2  130.972
  3  0.116262
  4  0.0761302
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) = 6578.39282732
delta logL = 0.000433721756963

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  2.286e-02  9.900e+00  0.000e+00  1.000e+06 ( 1.000e-13)
211        Index:  3.532e+00  1.310e+02  0.000e+00  1.000e+01 (-1.000e+00)
212        Scale:  1.475e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
488    Prefactor:  1.018e+00  7.613e-02  0.000e+00  1.000e+01 ( 1.000e+00)
489        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
490        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
487   Normalization:  9.352e-01  1.163e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 154.009 5.209

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/31234999/cmap_HighResolution_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.76e-03', job_status='DONE', photon_flux_upper_limit='6.24e-08', time_completed='2026-07-10 11:39:11.747511', job_id='31234999', GAL2='1.02', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1783708751.75', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='4.34e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='2182' AND source_name='4FGL J1016.0+0512' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul 10 11:39:12 PDT 2026

ile=/lscratch/kocevski/31235559/ltcube_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.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/31235559/ft2_4FGL_J1016.0+0512_daily_bin2182.fits
.....................!
real 8.41
user 7.76
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31235559/ft1_filtered_4FGL_J1016.0+0512_daily_bin2182.fits evtable="EVENTS" scfile=/lscratch/kocevski/31235559/ft2_4FGL_J1016.0+0512_daily_bin2182.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31235559/ltcube_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.fits outfile=/lscratch/kocevski/31235559/expmap_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.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/31235559/ltcube_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.fits
.....................!
real 66.61
user 61.97
sys 3.96

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 153 point sources and 0 extended sources

Setting source of interest to:
4FGL J1016.0+0512 @ 154.009 5.2089

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31235559/ft1_filtered_4FGL_J1016.0+0512_daily_bin2182.fits scfile=/lscratch/kocevski/31235559/ft2_4FGL_J1016.0+0512_daily_bin2182.fits outfile=/lscratch/kocevski/31235559/cmap_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.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=154.009 yref=5.2089 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.76
user 0.24
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31235559/ft1_filtered_4FGL_J1016.0+0512_daily_bin2182.fits scfile=/lscratch/kocevski/31235559/ft2_4FGL_J1016.0+0512_daily_bin2182.fits outfile=/lscratch/kocevski/31235559/cmap_HighResolution_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.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=154.009 yref=5.2089 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.90
user 0.23
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31235559/ft1_filtered_4FGL_J1016.0+0512_daily_bin2182.fits evtable="EVENTS" scfile=/lscratch/kocevski/31235559/ft2_4FGL_J1016.0+0512_daily_bin2182.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31235559/Model_4FGL_J1016.0+0512_daily_bin2182.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/31235559/ft1_filtered_4FGL_J1016.0+0512_daily_bin2182.fits.....................!
real 26.30
user 23.99
sys 1.65

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31235559/ft1_filtered_4FGL_J1016.0+0512_daily_bin2182.fits', '/lscratch/kocevski/31235559/ft2_4FGL_J1016.0+0512_daily_bin2182.fits', expMap='/lscratch/kocevski/31235559/expmap_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.fits', expCube='/lscratch/kocevski/31235559/ltcube_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31235559/Model_4FGL_J1016.0+0512_daily_bin2182.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1016.0+0512'

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  6.181e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
211        Index:  2.223e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
212        Scale:  1.475e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31235559/ft1_filtered_4FGL_J1016.0+0512_daily_bin2182.fits
Spacecraft file(s): /lscratch/kocevski/31235559/ft2_4FGL_J1016.0+0512_daily_bin2182.fits
Exposure map: /lscratch/kocevski/31235559/expmap_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.fits
Exposure cube: /lscratch/kocevski/31235559/ltcube_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31235559/Model_4FGL_J1016.0+0512_daily_bin2182.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) = 6578.4106787

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .84461       1.0000          .0000       .10000E+07
     2 'norm      '    .34966       1.0000          .0000       .10000E+07
     3 'Prefactor '    .12162E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    .21845E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .37569E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .12214E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    89.996       1.0000          .0000       .10000E+07
     8 'Prefactor '    37.558       1.0000          .0000       .10000E+07
     9 'Prefactor '    .84783E-02   1.0000          .0000       .10000E+07
    10 'norm      '    1.9263       1.0000          .0000       .10000E+07
    11 'Prefactor '    7.0278       1.0000          .0000       .10000E+07
    12 'Prefactor '    2.8403       1.0000          .0000       .10000E+07
    13 'Prefactor '    1.8658       1.0000          .0000       .10000E+07
    14 'norm      '    .13139E-06   1.0000          .0000       .10000E+07
    15 'Normalizat'    .93874       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.0167       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4910E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6578.393     FROM MIGRAD    STATUS=CONVERGED    116 CALLS     1122 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .84511        1.0682        .10641E-06   -.92089E-02
   2  norm          .35083        .43899        .72149E-07   -.32603E-02
   3  Prefactor     .16653E-09    3.6798       -.73612E-06** at limit **
   4  Prefactor     .45297E-07    5.8065       -.76476E-06** at limit **
   5  Prefactor     .33307E-09    9.5081       -.10582E-05** at limit **
   6  Prefactor     .83822E-08    12.334        .48233E-05** at limit **
   7  Prefactor     91.515        59.219        .30330E-04    .19322E-03
   8  Prefactor     38.936        40.737       -.19205E-04    .15105E-02
   9  Prefactor     .83988E-07    7.6834       -.20931E-05** at limit **
  10  norm          1.9267        1.2783       -.70385E-07    .26727E-02
  11  Prefactor     7.0313        4.9172        .16350E-06   -.10546E-03
  12  Prefactor     2.8636        3.9563        .57250E-07   -.62669E-02
  13  Prefactor     1.8563        3.6327       -.34608E-07    .13186E-02
  14  norm           .0000        .13594       -.91378E-07** at limit **
  15  Normalizat    .93656        .20980       -.49117E-04   -.46382E-03
  16  Prefactor     1.0174        .17175        .26815E-04   -.47797E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.845107
  norm       = 0.35083
  Prefactor  = 1.66533e-10
  Prefactor  = 4.52971e-08
  Prefactor  = 3.33067e-10
  Prefactor  = 8.38218e-09
  Prefactor  = 91.5155
  Prefactor  = 38.9362
  Prefactor  = 8.39884e-08
  norm       = 1.92671
  Prefactor  = 7.03128
  Prefactor  = 2.86363
  Prefactor  = 1.8563
  norm       = 0
  Normalizat = 0.936563
  Prefactor  = 1.01741
 **********
 **   18 **HESSE 
 **********

 FCN=   6578.393     FROM HESSE     STATUS=OK           233 CALLS     1355 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .84511        1.0742        .49667E-03   -1.5690    
   2  norm          .35083        .45717        .95567E-03   -1.5696    
   3  Prefactor     .16653E-09    3.6748        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .45297E-07    12.738        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .33307E-09    9.5853        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .83822E-08    13.016        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     91.515        58.971        .10542E-03   -1.5517    
   8  Prefactor     38.936        40.806        .16319E-03   -1.5583    
   9  Prefactor     .83988E-07    12.792        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.9267        1.2870        .74819E-03   -1.5680    
  11  Prefactor     7.0313        4.9251        .37818E-03   -1.5655    
  12  Prefactor     2.8636        3.9859        .60309E-03   -1.5674    
  13  Prefactor     1.8563        3.6894        .76238E-03   -1.5681    
  14  norm           .0000        .13422        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    .93656        .18167        .45395E-01   -.95187    
  16  Prefactor     1.0174        .14757        .42485E-01   -.92152    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47588e-07
Minuit parameter uncertainties:
  1  1.07416
  2  0.457172
  3  4.55499e-05
  4  0.00151899
  5  0.000114934
  6  0.000661655
  7  58.971
  8  40.8064
  9  0.00207304
  10  1.28705
  11  4.92506
  12  3.98586
  13  3.68936
  14  1.31617e-06
  15  0.181789
  16  0.147629
ile=/lscratch/kocevski/31235890/ltcube_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.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/31235890/ft2_4FGL_J1016.0+0512_daily_bin2182.fits
.....................!
real 8.28
user 7.69
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31235890/ft1_filtered_4FGL_J1016.0+0512_daily_bin2182.fits evtable="EVENTS" scfile=/lscratch/kocevski/31235890/ft2_4FGL_J1016.0+0512_daily_bin2182.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31235890/ltcube_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.fits outfile=/lscratch/kocevski/31235890/expmap_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.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/31235890/ltcube_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.fits
.....................!
real 67.93
user 63.02
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
Added 153 point sources and 0 extended sources

Setting source of interest to:
4FGL J1016.0+0512 @ 154.009 5.2089

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31235890/ft1_filtered_4FGL_J1016.0+0512_daily_bin2182.fits scfile=/lscratch/kocevski/31235890/ft2_4FGL_J1016.0+0512_daily_bin2182.fits outfile=/lscratch/kocevski/31235890/cmap_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.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=154.009 yref=5.2089 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.93
user 0.23
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31235890/ft1_filtered_4FGL_J1016.0+0512_daily_bin2182.fits scfile=/lscratch/kocevski/31235890/ft2_4FGL_J1016.0+0512_daily_bin2182.fits outfile=/lscratch/kocevski/31235890/cmap_HighResolution_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.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=154.009 yref=5.2089 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.69
user 0.22
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31235890/ft1_filtered_4FGL_J1016.0+0512_daily_bin2182.fits evtable="EVENTS" scfile=/lscratch/kocevski/31235890/ft2_4FGL_J1016.0+0512_daily_bin2182.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31235890/Model_4FGL_J1016.0+0512_daily_bin2182.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Done.

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

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  8.382e-09  6.617e-04  0.000e+00  1.000e+06 ( 1.000e-13)
211        Index:  2.223e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
212        Scale:  1.475e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
488    Prefactor:  1.017e+00  1.476e-01  0.000e+00  1.000e+01 ( 1.000e+00)
489        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
490        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
487   Normalization:  9.366e-01  1.818e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 154.009 5.209
Photon Flux Upper Limit: 6.24103671307e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00476333663902 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31235559/likelihoodResults_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6578.43711081
delta logL = -0.0438497710011

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6578.39292666
delta logL = 0.000334387067596

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6578.393     FROM MIGRAD    STATUS=CONVERGED     74 CALLS      246 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22856E-01    .60216        .21493E-02** at limit **
   2  Index         3.5315        .52547        .50000        .10629E-05
   3  Normalizat    .93524        .42120E-02    .45347E-01   -.33438E-04
   4  Prefactor     1.0180        .35956E-02    .42345E-01    .32957E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0228563
  Index      = 3.53153
  Normalizat = 0.935238
  Prefactor  = 1.01805
 **********
 **   18 **HESSE 
 **********

 FCN=   6578.393     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      281 TOTAL
                     EDM=   .74E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22856E-01    1071.6        .12663E-03   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.5315        5.6219        .89885E-02   -.29809    
   3  Normalizat    .93524        .11623        .26529E-03   -.95233    
   4  Prefactor     1.0180        .76122E-01    .21689E-03   -.92130    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.41703e-06
Minuit parameter uncertainties:
  1  9.90003
  2  130.972
  3  0.116262
  4  0.0761302
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) = 6578.39282732
delta logL = 0.000433721756963

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  2.286e-02  9.900e+00  0.000e+00  1.000e+06 ( 1.000e-13)
211        Index:  3.532e+00  1.310e+02  0.000e+00  1.000e+01 (-1.000e+00)
212        Scale:  1.475e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
488    Prefactor:  1.018e+00  7.613e-02  0.000e+00  1.000e+01 ( 1.000e+00)
489        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
490        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
487   Normalization:  9.352e-01  1.163e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 154.009 5.209

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/31235559/cmap_HighResolution_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.76e-03', job_status='DONE', photon_flux_upper_limit='6.24e-08', time_completed='2026-07-10 11:41:01.723898', job_id='31235559', GAL2='1.02', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1783708861.72', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='4.34e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='2182' AND source_name='4FGL J1016.0+0512' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul 10 11:41:02 PDT 2026

Working on...
/lscratch/kocevski/31235890/ft1_filtered_4FGL_J1016.0+0512_daily_bin2182.fits.....................!
real 26.60
user 24.67
sys 1.40

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31235890/ft1_filtered_4FGL_J1016.0+0512_daily_bin2182.fits', '/lscratch/kocevski/31235890/ft2_4FGL_J1016.0+0512_daily_bin2182.fits', expMap='/lscratch/kocevski/31235890/expmap_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.fits', expCube='/lscratch/kocevski/31235890/ltcube_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31235890/Model_4FGL_J1016.0+0512_daily_bin2182.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1016.0+0512'

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  6.181e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
211        Index:  2.223e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
212        Scale:  1.475e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31235890/ft1_filtered_4FGL_J1016.0+0512_daily_bin2182.fits
Spacecraft file(s): /lscratch/kocevski/31235890/ft2_4FGL_J1016.0+0512_daily_bin2182.fits
Exposure map: /lscratch/kocevski/31235890/expmap_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.fits
Exposure cube: /lscratch/kocevski/31235890/ltcube_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31235890/Model_4FGL_J1016.0+0512_daily_bin2182.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) = 6578.4106787

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .84461       1.0000          .0000       .10000E+07
     2 'norm      '    .34966       1.0000          .0000       .10000E+07
     3 'Prefactor '    .12162E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    .21845E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .37569E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .12214E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    89.996       1.0000          .0000       .10000E+07
     8 'Prefactor '    37.558       1.0000          .0000       .10000E+07
     9 'Prefactor '    .84783E-02   1.0000          .0000       .10000E+07
    10 'norm      '    1.9263       1.0000          .0000       .10000E+07
    11 'Prefactor '    7.0278       1.0000          .0000       .10000E+07
    12 'Prefactor '    2.8403       1.0000          .0000       .10000E+07
    13 'Prefactor '    1.8658       1.0000          .0000       .10000E+07
    14 'norm      '    .13139E-06   1.0000          .0000       .10000E+07
    15 'Normalizat'    .93874       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.0167       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4910E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6578.393     FROM MIGRAD    STATUS=CONVERGED    116 CALLS     1122 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .84511        1.0682        .10641E-06   -.92089E-02
   2  norm          .35083        .43899        .72149E-07   -.32603E-02
   3  Prefactor     .16653E-09    3.6798       -.73612E-06** at limit **
   4  Prefactor     .45297E-07    5.8065       -.76476E-06** at limit **
   5  Prefactor     .33307E-09    9.5081       -.10582E-05** at limit **
   6  Prefactor     .83822E-08    12.334        .48233E-05** at limit **
   7  Prefactor     91.515        59.219        .30330E-04    .19322E-03
   8  Prefactor     38.936        40.737       -.19205E-04    .15105E-02
   9  Prefactor     .83988E-07    7.6834       -.20931E-05** at limit **
  10  norm          1.9267        1.2783       -.70385E-07    .26727E-02
  11  Prefactor     7.0313        4.9172        .16350E-06   -.10546E-03
  12  Prefactor     2.8636        3.9563        .57250E-07   -.62669E-02
  13  Prefactor     1.8563        3.6327       -.34608E-07    .13186E-02
  14  norm           .0000        .13594       -.91378E-07** at limit **
  15  Normalizat    .93656        .20980       -.49117E-04   -.46382E-03
  16  Prefactor     1.0174        .17175        .26815E-04   -.47797E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.845107
  norm       = 0.35083
  Prefactor  = 1.66533e-10
  Prefactor  = 4.52971e-08
  Prefactor  = 3.33067e-10
  Prefactor  = 8.38218e-09
  Prefactor  = 91.5155
  Prefactor  = 38.9362
  Prefactor  = 8.39884e-08
  norm       = 1.92671
  Prefactor  = 7.03128
  Prefactor  = 2.86363
  Prefactor  = 1.8563
  norm       = 0
  Normalizat = 0.936563
  Prefactor  = 1.01741
 **********
 **   18 **HESSE 
 **********

 FCN=   6578.393     FROM HESSE     STATUS=OK           233 CALLS     1355 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .84511        1.0742        .49667E-03   -1.5690    
   2  norm          .35083        .45717        .95567E-03   -1.5696    
   3  Prefactor     .16653E-09    3.6748        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .45297E-07    12.738        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .33307E-09    9.5853        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .83822E-08    13.016        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     91.515        58.971        .10542E-03   -1.5517    
   8  Prefactor     38.936        40.806        .16319E-03   -1.5583    
   9  Prefactor     .83988E-07    12.792        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.9267        1.2870        .74819E-03   -1.5680    
  11  Prefactor     7.0313        4.9251        .37818E-03   -1.5655    
  12  Prefactor     2.8636        3.9859        .60309E-03   -1.5674    
  13  Prefactor     1.8563        3.6894        .76238E-03   -1.5681    
  14  norm           .0000        .13422        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    .93656        .18167        .45395E-01   -.95187    
  16  Prefactor     1.0174        .14757        .42485E-01   -.92152    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47588e-07
Minuit parameter uncertainties:
  1  1.07416
  2  0.457172
  3  4.55499e-05
  4  0.00151899
  5  0.000114934
  6  0.000661655
  7  58.971
  8  40.8064
  9  0.00207304
  10  1.28705
  11  4.92506
  12  3.98586
  13  3.68936
  14  1.31617e-06
  15  0.181789
  16  0.147629
Done.

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

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  8.382e-09  6.617e-04  0.000e+00  1.000e+06 ( 1.000e-13)
211        Index:  2.223e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
212        Scale:  1.475e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
488    Prefactor:  1.017e+00  1.476e-01  0.000e+00  1.000e+01 ( 1.000e+00)
489        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
490        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
487   Normalization:  9.366e-01  1.818e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 154.009 5.209
Photon Flux Upper Limit: 6.24103671307e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00476333663902 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31235890/likelihoodResults_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6578.43711081
delta logL = -0.0438497710011

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6578.39292666
delta logL = 0.000334387067596

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6578.393     FROM MIGRAD    STATUS=CONVERGED     74 CALLS      246 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22856E-01    .60216        .21493E-02** at limit **
   2  Index         3.5315        .52547        .50000        .10629E-05
   3  Normalizat    .93524        .42120E-02    .45347E-01   -.33438E-04
   4  Prefactor     1.0180        .35956E-02    .42345E-01    .32957E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0228563
  Index      = 3.53153
  Normalizat = 0.935238
  Prefactor  = 1.01805
 **********
 **   18 **HESSE 
 **********

 FCN=   6578.393     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      281 TOTAL
                     EDM=   .74E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22856E-01    1071.6        .12663E-03   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.5315        5.6219        .89885E-02   -.29809    
   3  Normalizat    .93524        .11623        .26529E-03   -.95233    
   4  Prefactor     1.0180        .76122E-01    .21689E-03   -.92130    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.41703e-06
Minuit parameter uncertainties:
  1  9.90003
  2  130.972
  3  0.116262
  4  0.0761302
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) = 6578.39282732
delta logL = 0.000433721756963

Extracting fit parameters...

4FGL J1016.0+0512
   Spectrum: PowerLaw
210    Prefactor:  2.286e-02  9.900e+00  0.000e+00  1.000e+06 ( 1.000e-13)
211        Index:  3.532e+00  1.310e+02  0.000e+00  1.000e+01 (-1.000e+00)
212        Scale:  1.475e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
488    Prefactor:  1.018e+00  7.613e-02  0.000e+00  1.000e+01 ( 1.000e+00)
489        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
490        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
487   Normalization:  9.352e-01  1.163e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 154.009 5.209

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/31235890/cmap_HighResolution_804902401_805161601_4FGL_J1016.0+0512_daily_bin2182.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.76e-03', job_status='DONE', photon_flux_upper_limit='6.24e-08', time_completed='2026-07-10 11:42:02.813454', job_id='31235890', GAL2='1.02', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1783708922.81', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='4.34e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='2182' AND source_name='4FGL J1016.0+0512' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul 10 11:42:03 PDT 2026

