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

 FCN=   6899.310     FROM HESSE     STATUS=OK           398 CALLS     2196 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1041        3.3431        .57181E-03   -1.5673    
   2  Prefactor     43.808        23.137        .15229E-03   -1.5576    
   3  norm          3.5796        1.9490        .53410E-03   -1.5670    
   4  norm          4.1302        5.5004        .49770E-03   -1.5667    
   5  Prefactor     .57065E-07    17.815        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.6324        3.4612        .82914E-03   -1.5682    
   7  norm          4.0909        2.0334        .49839E-03   -1.5668    
   8  Prefactor     .49405E-08    25.197        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .44409E-09    9.7793        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .55511E-10    .92316        .29858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55511E-10    7.2542        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.6472        4.0615        .52745E-03   -1.5670    
  13  Prefactor     .34917E-07    18.170        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.0731        7.5417        .48914E-03   -1.5668    
  15  norm          .55511E-10    1.2712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     109.26        39.738        .96990E-04   -1.5499    
  17  Prefactor     4.6870        42.973        .40828E-03   -1.5665    
  18  norm          .22204E-09    2.7297        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .13323E-08    31.936        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.0464        1.3874        .58136E-03   -1.5673    
  21  Normalizat    .81314        .14099        .43801E-01   -.99583    
  22  Prefactor     1.0506        .17585        .59325E-01   -.91061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49421e-07
Minuit parameter uncertainties:
  1  3.34308
  2  23.1368
  3  1.94901
  4  5.50046
  5  0.0020162
  6  3.46117
  7  2.03344
  8  0.000707
  9  0.000131762
  10  1.31463e-05
  11  4.85376e-05
  12  4.06146
  13  0.00159356
  14  7.54173
  15  1.76348e-05
  16  39.7384
  17  28.3845
  18  4.70369e-05
  19  0.000409453
  20  1.3874
  21  0.14105
  22  0.175942
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  4.940e-09  7.070e-04  0.000e+00  1.000e+06 ( 1.000e-13)
332        Index:  2.450e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  1.051e+00  1.759e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  8.131e-01  1.410e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 192.244 48.670
Photon Flux Upper Limit: 5.67377870828e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00439880090837 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31393202/likelihoodResults_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6899.32981716
delta logL = -0.0202206006888

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6899.27597379
delta logL = 0.033622761558

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6899.276     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      238 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .36080        6.0965        .29064E-02    .13933E-01
   2  Index         3.9634        1.0066        .40845        .45465E-05
   3  Normalizat    .80275        .94000E-02    .43644E-01   -.18802E-04
   4  Prefactor     1.0579        .12070E-01    .59148E-01   -.38174E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.360798
  Index      = 3.96344
  Normalizat = 0.802751
  Prefactor  = 1.05792
/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
ng on...
/lscratch/kocevski/31393353/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits.....................!
real 23.46
user 22.05
sys 0.96

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31393353/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits', '/lscratch/kocevski/31393353/ft2_4FGL_J1248.9+4840_daily_bin2173.fits', expMap='/lscratch/kocevski/31393353/expmap_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits', expCube='/lscratch/kocevski/31393353/ltcube_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31393353/Model_4FGL_J1248.9+4840_daily_bin2173.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1248.9+4840'

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  3.227e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
332        Index:  2.450e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31393353/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits
Spacecraft file(s): /lscratch/kocevski/31393353/ft2_4FGL_J1248.9+4840_daily_bin2173.fits
Exposure map: /lscratch/kocevski/31393353/expmap_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits
Exposure cube: /lscratch/kocevski/31393353/ltcube_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31393353/Model_4FGL_J1248.9+4840_daily_bin2173.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1402       1.0000          .0000       .10000E+07
     2 'Prefactor '    43.126       1.0000          .0000       .10000E+07
     3 'norm      '    3.5769       1.0000          .0000       .10000E+07
     4 'norm      '    4.0990       1.0000          .0000       .10000E+07
     5 'Prefactor '    .55482E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    1.6265       1.0000          .0000       .10000E+07
     7 'norm      '    4.0879       1.0000          .0000       .10000E+07
     8 'Prefactor '    .21703E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .46074E-04   1.0000          .0000       .10000E+07
    10 'norm      '    .27062E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    .20672E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    3.6640       1.0000          .0000       .10000E+07
    13 'Prefactor '    .57037E-03   1.0000          .0000       .10000E+07
    14 'norm      '    4.2394       1.0000          .0000       .10000E+07
    15 'norm      '    .16492E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    106.32       1.0000          .0000       .10000E+07
    17 'Prefactor '    6.0407       1.0000          .0000       .10000E+07
    18 'norm      '    .34010E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    .34277E-03   1.0000          .0000       .10000E+07
    20 'norm      '    3.0432       1.0000          .0000       .10000E+07
    21 'Normalizat'    .81460       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0500       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6899.310     FROM MIGRAD    STATUS=CONVERGED    156 CALLS     1798 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1041        3.0515       -.75036E-06   -.52890E-02
   2  Prefactor     43.808        2.7634        .92022E-06    .13825E-01
   3  norm          3.5796        1.9457       -.14143E-07   -.44978E-03
   4  norm          4.1302        5.4901       -.13861E-06   -.12311E-02
   5  Prefactor     .57065E-07    9.6050        .42034E-05** at limit **
   6  Prefactor     1.6324        3.4279       -.88805E-07    .10348E-01
   7  norm          4.0909        2.0291        .88658E-07    .71847E-02
   8  Prefactor     .49405E-08    24.881       -.22315E-04** at limit **
   9  Prefactor     .44409E-09    9.7746        .28798E-05** at limit **
  10  norm          .55511E-10    6.1755       -.98086E-06** at limit **
  11  Prefactor     .55511E-10    7.2604        .13384E-05** at limit **
  12  Prefactor     3.6472        4.0558       -.33107E-07    .64958E-02
  13  Prefactor     .34917E-07    8.4595        .21308E-05** at limit **
  14  norm          4.0731        7.5235       -.46479E-06   -.11349E-02
  15  norm          .55511E-10    1.2803       -.26404E-06** at limit **
  16  Prefactor     109.26        37.210        .18495E-05    .60442E-02
  17  Prefactor     4.6870        20.858       -.87054E-05    .40290E-03
  18  norm          .22204E-09    14.701       -.65324E-05** at limit **
  19  Prefactor     .13323E-08    31.238        .17399E-04** at limit **
  20  norm          3.0464        1.3787       -.88257E-07   -.19518E-01
  21  Normalizat    .81314        .16323       -.51073E-05   -.39475E-03
  22  Prefactor     1.0506        .20654        .17019E-04   -.19499E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.1041
  Prefactor  = 43.8078
  norm       = 3.57959
  norm       = 4.13024
  Prefactor  = 5.70655e-08
  Prefactor  = 1.63244
  norm       = 4.09089
  Prefactor  = 4.94049e-09
  Prefactor  = 4.44089e-10
  norm       = 5.55112e-11
  Prefactor  = 5.55112e-11
  Prefactor  = 3.6472
  Prefactor  = 3.49165e-08
  norm       = 4.07308
  norm       = 5.55112e-11
  Prefactor  = 109.258
  Prefactor  = 4.68703
  norm       = 2.22045e-10
  Prefactor  = 1.33227e-09
  norm       = 3.04641
  Normalizat = 0.81314
  Prefactor  = 1.0506
 **********
 **   18 **HESSE 
 **********

 FCN=   6899.276     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      273 TOTAL
                     EDM=   .39E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .36080        264.73        .14821E-03   -1.5696    
   2  Index         3.9634        7.4771        .62213E-02   -.20883    
   3  Normalizat    .80275        .10530        .23202E-03   -.99967    
   4  Prefactor     1.0579        .12577        .26156E-03   -.90823    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.88452e-06
Minuit parameter uncertainties:
  1  19.5471
  2  25.3081
  3  0.105326
  4  0.125802

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)
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) = 6899.27597244
delta logL = 0.0336241206678

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  3.608e-01  1.955e+01  0.000e+00  1.000e+06 ( 1.000e-13)
332        Index:  3.963e+00  2.531e+01  0.000e+00  1.000e+01 (-1.000e+00)
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  1.058e+00  1.258e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  8.028e-01  1.053e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 192.244 48.670

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/31393202/cmap_HighResolution_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.40e-03', job_status='DONE', photon_flux_upper_limit='5.67e-08', time_completed='2026-07-11 19:03:07.475141', job_id='31393202', GAL2='1.06', fit_tolerance='1e-08', EG2='0.80', EG='0.81', time_epoch_completed='1783821787.48', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='3.36e-02', ts2='0.07', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='2173' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jul 11 19:03:07 PDT 2026


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

ng on...
/lscratch/kocevski/31393354/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits.....................!
real 23.08
user 21.17
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31393354/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits', '/lscratch/kocevski/31393354/ft2_4FGL_J1248.9+4840_daily_bin2173.fits', expMap='/lscratch/kocevski/31393354/expmap_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits', expCube='/lscratch/kocevski/31393354/ltcube_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31393354/Model_4FGL_J1248.9+4840_daily_bin2173.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1248.9+4840'

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  3.227e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
332        Index:  2.450e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31393354/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits
Spacecraft file(s): /lscratch/kocevski/31393354/ft2_4FGL_J1248.9+4840_daily_bin2173.fits
Exposure map: /lscratch/kocevski/31393354/expmap_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits
Exposure cube: /lscratch/kocevski/31393354/ltcube_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31393354/Model_4FGL_J1248.9+4840_daily_bin2173.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1402       1.0000          .0000       .10000E+07
     2 'Prefactor '    43.126       1.0000          .0000       .10000E+07
     3 'norm      '    3.5769       1.0000          .0000       .10000E+07
     4 'norm      '    4.0990       1.0000          .0000       .10000E+07
     5 'Prefactor '    .55482E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    1.6265       1.0000          .0000       .10000E+07
     7 'norm      '    4.0879       1.0000          .0000       .10000E+07
     8 'Prefactor '    .21703E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .46074E-04   1.0000          .0000       .10000E+07
    10 'norm      '    .27062E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    .20672E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    3.6640       1.0000          .0000       .10000E+07
    13 'Prefactor '    .57037E-03   1.0000          .0000       .10000E+07
    14 'norm      '    4.2394       1.0000          .0000       .10000E+07
    15 'norm      '    .16492E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    106.32       1.0000          .0000       .10000E+07
    17 'Prefactor '    6.0407       1.0000          .0000       .10000E+07
    18 'norm      '    .34010E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    .34277E-03   1.0000          .0000       .10000E+07
    20 'norm      '    3.0432       1.0000          .0000       .10000E+07
    21 'Normalizat'    .81460       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0500       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6899.310     FROM MIGRAD    STATUS=CONVERGED    156 CALLS     1798 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1041        3.0515       -.75036E-06   -.52890E-02
   2  Prefactor     43.808        2.7634        .92022E-06    .13825E-01
   3  norm          3.5796        1.9457       -.14143E-07   -.44978E-03
   4  norm          4.1302        5.4901       -.13861E-06   -.12311E-02
   5  Prefactor     .57065E-07    9.6050        .42034E-05** at limit **
   6  Prefactor     1.6324        3.4279       -.88805E-07    .10348E-01
   7  norm          4.0909        2.0291        .88658E-07    .71847E-02
   8  Prefactor     .49405E-08    24.881       -.22315E-04** at limit **
   9  Prefactor     .44409E-09    9.7746        .28798E-05** at limit **
  10  norm          .55511E-10    6.1755       -.98086E-06** at limit **
  11  Prefactor     .55511E-10    7.2604        .13384E-05** at limit **
  12  Prefactor     3.6472        4.0558       -.33107E-07    .64958E-02
  13  Prefactor     .34917E-07    8.4595        .21308E-05** at limit **
  14  norm          4.0731        7.5235       -.46479E-06   -.11349E-02
  15  norm          .55511E-10    1.2803       -.26404E-06** at limit **
  16  Prefactor     109.26        37.210        .18495E-05    .60442E-02
  17  Prefactor     4.6870        20.858       -.87054E-05    .40290E-03
  18  norm          .22204E-09    14.701       -.65324E-05** at limit **
  19  Prefactor     .13323E-08    31.238        .17399E-04** at limit **
  20  norm          3.0464        1.3787       -.88257E-07   -.19518E-01
  21  Normalizat    .81314        .16323       -.51073E-05   -.39475E-03
  22  Prefactor     1.0506        .20654        .17019E-04   -.19499E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.1041
  Prefactor  = 43.8078
  norm       = 3.57959
  norm       = 4.13024
  Prefactor  = 5.70655e-08
  Prefactor  = 1.63244
  norm       = 4.09089
  Prefactor  = 4.94049e-09
  Prefactor  = 4.44089e-10
  norm       = 5.55112e-11
  Prefactor  = 5.55112e-11
  Prefactor  = 3.6472
  Prefactor  = 3.49165e-08
  norm       = 4.07308
  norm       = 5.55112e-11
  Prefactor  = 109.258
  Prefactor  = 4.68703
  norm       = 2.22045e-10
  Prefactor  = 1.33227e-09
  norm       = 3.04641
  Normalizat = 0.81314
  Prefactor  = 1.0506
number of points = 7429
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1248.9+4840_daily_bin2173
RA = 192.244, Dec = 48.67
tmin = 802569601, tmax = 802828801
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

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

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='31393548', job_status='RUN', time_executed='2026-07-11 19:01:15.585561', time_epoch_executed='1783821675.59' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='2173'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/31393548

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/31393548/ft1_4FGL_J1248.9+4840_daily_bin2173.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/31393548/ft2_4FGL_J1248.9+4840_daily_bin2173.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/31393548/ft1_4FGL_J1248.9+4840_daily_bin2173.fits outfile=/lscratch/kocevski/31393548/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin2173.fits ra=192.244 dec=48.67 rad=12.0 tmin=802569601.0 tmax=802828801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.25
user 2.68
sys 0.18

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/31393548/ft2_4FGL_J1248.9+4840_daily_bin2173.fits

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

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

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

Number of photons that the gtmktime cut: 641

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/31393548/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31393548/ft2_4FGL_J1248.9+4840_daily_bin2173.fits sctable="SC_DATA" outfil=/lscratch/kocevski/31393495/ltcube_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Working on file /lscratch/kocevski/31393495/ft2_4FGL_J1248.9+4840_daily_bin2173.fits
.....................!
real 8.29
user 7.67
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31393495/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits evtable="EVENTS" scfile=/lscratch/kocevski/31393495/ft2_4FGL_J1248.9+4840_daily_bin2173.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31393495/ltcube_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits outfile=/lscratch/kocevski/31393495/expmap_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/31393495/ltcube_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits
.....................!
real 67.01
user 62.38
sys 3.94

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

Setting source of interest to:
4FGL J1248.9+4840 @ 192.244 48.67

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31393495/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits scfile=/lscratch/kocevski/31393495/ft2_4FGL_J1248.9+4840_daily_bin2173.fits outfile=/lscratch/kocevski/31393495/cmap_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=192.244 yref=48.67 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.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31393495/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits scfile=/lscratch/kocevski/31393495/ft2_4FGL_J1248.9+4840_daily_bin2173.fits outfile=/lscratch/kocevski/31393495/cmap_HighResolution_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=192.244 yref=48.67 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.78
user 0.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31393495/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits evtable="EVENTS" scfile=/lscratch/kocevski/31393495/ft2_4FGL_J1248.9+4840_daily_bin2173.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31393495/Model_4FGL_J1248.9+4840_daily_bin2173.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Workin **********
 **   18 **HESSE 
 **********

 FCN=   6899.310     FROM HESSE     STATUS=OK           398 CALLS     2196 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1041        3.3431        .57181E-03   -1.5673    
   2  Prefactor     43.808        23.137        .15229E-03   -1.5576    
   3  norm          3.5796        1.9490        .53410E-03   -1.5670    
   4  norm          4.1302        5.5004        .49770E-03   -1.5667    
   5  Prefactor     .57065E-07    17.815        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.6324        3.4612        .82914E-03   -1.5682    
   7  norm          4.0909        2.0334        .49839E-03   -1.5668    
   8  Prefactor     .49405E-08    25.197        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .44409E-09    9.7793        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .55511E-10    .92316        .29858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55511E-10    7.2542        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.6472        4.0615        .52745E-03   -1.5670    
  13  Prefactor     .34917E-07    18.170        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.0731        7.5417        .48914E-03   -1.5668    
  15  norm          .55511E-10    1.2712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     109.26        39.738        .96990E-04   -1.5499    
  17  Prefactor     4.6870        42.973        .40828E-03   -1.5665    
  18  norm          .22204E-09    2.7297        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .13323E-08    31.936        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.0464        1.3874        .58136E-03   -1.5673    
  21  Normalizat    .81314        .14099        .43801E-01   -.99583    
  22  Prefactor     1.0506        .17585        .59325E-01   -.91061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49421e-07
Minuit parameter uncertainties:
  1  3.34308
  2  23.1368
  3  1.94901
  4  5.50046
  5  0.0020162
  6  3.46117
  7  2.03344
  8  0.000707
  9  0.000131762
  10  1.31463e-05
  11  4.85376e-05
  12  4.06146
  13  0.00159356
  14  7.54173
  15  1.76348e-05
  16  39.7384
  17  28.3845
  18  4.70369e-05
  19  0.000409453
  20  1.3874
  21  0.14105
  22  0.175942
e=/lscratch/kocevski/31393509/ltcube_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Working on file /lscratch/kocevski/31393509/ft2_4FGL_J1248.9+4840_daily_bin2173.fits
.....................!
real 8.57
user 7.92
sys 0.22

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31393509/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits evtable="EVENTS" scfile=/lscratch/kocevski/31393509/ft2_4FGL_J1248.9+4840_daily_bin2173.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31393509/ltcube_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits outfile=/lscratch/kocevski/31393509/expmap_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/31393509/ltcube_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits
.....................!
real 70.89
user 66.07
sys 4.02

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

Setting source of interest to:
4FGL J1248.9+4840 @ 192.244 48.67

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31393509/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits scfile=/lscratch/kocevski/31393509/ft2_4FGL_J1248.9+4840_daily_bin2173.fits outfile=/lscratch/kocevski/31393509/cmap_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=192.244 yref=48.67 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.70
user 0.24
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31393509/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits scfile=/lscratch/kocevski/31393509/ft2_4FGL_J1248.9+4840_daily_bin2173.fits outfile=/lscratch/kocevski/31393509/cmap_HighResolution_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=192.244 yref=48.67 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.89
user 0.23
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31393509/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits evtable="EVENTS" scfile=/lscratch/kocevski/31393509/ft2_4FGL_J1248.9+4840_daily_bin2173.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31393509/Model_4FGL_J1248.9+4840_daily_bin2173.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Workie=/lscratch/kocevski/31393514/ltcube_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Working on file /lscratch/kocevski/31393514/ft2_4FGL_J1248.9+4840_daily_bin2173.fits
.....................!
real 8.22
user 7.56
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31393514/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits evtable="EVENTS" scfile=/lscratch/kocevski/31393514/ft2_4FGL_J1248.9+4840_daily_bin2173.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31393514/ltcube_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits outfile=/lscratch/kocevski/31393514/expmap_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/31393514/ltcube_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits
.....................!
real 67.55
user 62.70
sys 4.08

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

Setting source of interest to:
4FGL J1248.9+4840 @ 192.244 48.67

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31393514/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits scfile=/lscratch/kocevski/31393514/ft2_4FGL_J1248.9+4840_daily_bin2173.fits outfile=/lscratch/kocevski/31393514/cmap_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=192.244 yref=48.67 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.70
user 0.22
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31393514/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits scfile=/lscratch/kocevski/31393514/ft2_4FGL_J1248.9+4840_daily_bin2173.fits outfile=/lscratch/kocevski/31393514/cmap_HighResolution_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=192.244 yref=48.67 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.75
user 0.22
sys 0.11

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31393514/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits evtable="EVENTS" scfile=/lscratch/kocevski/31393514/ft2_4FGL_J1248.9+4840_daily_bin2173.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31393514/Model_4FGL_J1248.9+4840_daily_bin2173.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Worki **********
 **   18 **HESSE 
 **********

 FCN=   6899.310     FROM HESSE     STATUS=OK           398 CALLS     2196 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1041        3.3431        .57181E-03   -1.5673    
   2  Prefactor     43.808        23.137        .15229E-03   -1.5576    
   3  norm          3.5796        1.9490        .53410E-03   -1.5670    
   4  norm          4.1302        5.5004        .49770E-03   -1.5667    
   5  Prefactor     .57065E-07    17.815        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.6324        3.4612        .82914E-03   -1.5682    
   7  norm          4.0909        2.0334        .49839E-03   -1.5668    
   8  Prefactor     .49405E-08    25.197        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .44409E-09    9.7793        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .55511E-10    .92316        .29858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55511E-10    7.2542        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.6472        4.0615        .52745E-03   -1.5670    
  13  Prefactor     .34917E-07    18.170        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.0731        7.5417        .48914E-03   -1.5668    
  15  norm          .55511E-10    1.2712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     109.26        39.738        .96990E-04   -1.5499    
  17  Prefactor     4.6870        42.973        .40828E-03   -1.5665    
  18  norm          .22204E-09    2.7297        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .13323E-08    31.936        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.0464        1.3874        .58136E-03   -1.5673    
  21  Normalizat    .81314        .14099        .43801E-01   -.99583    
  22  Prefactor     1.0506        .17585        .59325E-01   -.91061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49421e-07
Minuit parameter uncertainties:
  1  3.34308
  2  23.1368
  3  1.94901
  4  5.50046
  5  0.0020162
  6  3.46117
  7  2.03344
  8  0.000707
  9  0.000131762
  10  1.31463e-05
  11  4.85376e-05
  12  4.06146
  13  0.00159356
  14  7.54173
  15  1.76348e-05
  16  39.7384
  17  28.3845
  18  4.70369e-05
  19  0.000409453
  20  1.3874
  21  0.14105
  22  0.175942
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  4.940e-09  7.070e-04  0.000e+00  1.000e+06 ( 1.000e-13)
332        Index:  2.450e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  1.051e+00  1.759e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  8.131e-01  1.410e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 192.244 48.670
Photon Flux Upper Limit: 5.67377870828e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00439880090837 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31393252/likelihoodResults_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6899.32981716
delta logL = -0.0202206006888

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6899.27597379
delta logL = 0.033622761558

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6899.276     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      238 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .36080        6.0965        .29064E-02    .13933E-01
   2  Index         3.9634        1.0066        .40845        .45465E-05
   3  Normalizat    .80275        .94000E-02    .43644E-01   -.18802E-04
   4  Prefactor     1.0579        .12070E-01    .59148E-01   -.38174E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.360798
  Index      = 3.96344
  Normalizat = 0.802751
  Prefactor  = 1.05792
 **********
 **   18 **HESSE 
 **********

 FCN=   6899.276     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      273 TOTAL
                     EDM=   .39E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .36080        264.73        .14821E-03   -1.5696    
   2  Index         3.9634        7.4771        .62213E-02   -.20883    
   3  Normalizat    .80275        .10530        .23202E-03   -.99967    
   4  Prefactor     1.0579        .12577        .26156E-03   -.90823    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.88452e-06
Minuit parameter uncertainties:
  1  19.5471
  2  25.3081
  3  0.105326
  4  0.125802
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) = 6899.27597244
delta logL = 0.0336241206678

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  3.608e-01  1.955e+01  0.000e+00  1.000e+06 ( 1.000e-13)
332        Index:  3.963e+00  2.531e+01  0.000e+00  1.000e+01 (-1.000e+00)
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  1.058e+00  1.258e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  8.028e-01  1.053e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 192.244 48.670

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/31393252/cmap_HighResolution_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.40e-03', job_status='DONE', photon_flux_upper_limit='5.67e-08', time_completed='2026-07-11 19:03:38.253079', job_id='31393252', GAL2='1.06', fit_tolerance='1e-08', EG2='0.80', EG='0.81', time_epoch_completed='1783821818.25', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='3.36e-02', ts2='0.07', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='2173' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jul 11 19:03:38 PDT 2026

e=/lscratch/kocevski/31393520/ltcube_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Working on file /lscratch/kocevski/31393520/ft2_4FGL_J1248.9+4840_daily_bin2173.fits
.....................!
real 7.56
user 6.88
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31393520/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits evtable="EVENTS" scfile=/lscratch/kocevski/31393520/ft2_4FGL_J1248.9+4840_daily_bin2173.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31393520/ltcube_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits outfile=/lscratch/kocevski/31393520/expmap_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/31393520/ltcube_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits
.....................!
real 61.72
user 57.40
sys 3.63

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

Setting source of interest to:
4FGL J1248.9+4840 @ 192.244 48.67

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31393520/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits scfile=/lscratch/kocevski/31393520/ft2_4FGL_J1248.9+4840_daily_bin2173.fits outfile=/lscratch/kocevski/31393520/cmap_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=192.244 yref=48.67 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.75
user 0.19
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31393520/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits scfile=/lscratch/kocevski/31393520/ft2_4FGL_J1248.9+4840_daily_bin2173.fits outfile=/lscratch/kocevski/31393520/cmap_HighResolution_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=192.244 yref=48.67 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.73
user 0.21
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31393520/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits evtable="EVENTS" scfile=/lscratch/kocevski/31393520/ft2_4FGL_J1248.9+4840_daily_bin2173.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31393520/Model_4FGL_J1248.9+4840_daily_bin2173.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
WorkiDone.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  4.940e-09  7.070e-04  0.000e+00  1.000e+06 ( 1.000e-13)
332        Index:  2.450e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  1.051e+00  1.759e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  8.131e-01  1.410e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 192.244 48.670
Photon Flux Upper Limit: 5.67377870828e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00439880090837 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31393353/likelihoodResults_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6899.32981716
delta logL = -0.0202206006888

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6899.27597379
delta logL = 0.033622761558

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6899.276     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      238 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .36080        6.0965        .29064E-02    .13933E-01
   2  Index         3.9634        1.0066        .40845        .45465E-05
   3  Normalizat    .80275        .94000E-02    .43644E-01   -.18802E-04
   4  Prefactor     1.0579        .12070E-01    .59148E-01   -.38174E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.360798
  Index      = 3.96344
  Normalizat = 0.802751
  Prefactor  = 1.05792
 **********
 **   18 **HESSE 
 **********

 FCN=   6899.276     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      273 TOTAL
                     EDM=   .39E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .36080        264.73        .14821E-03   -1.5696    
   2  Index         3.9634        7.4771        .62213E-02   -.20883    
   3  Normalizat    .80275        .10530        .23202E-03   -.99967    
   4  Prefactor     1.0579        .12577        .26156E-03   -.90823    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.88452e-06
Minuit parameter uncertainties:
  1  19.5471
  2  25.3081
  3  0.105326
  4  0.125802
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) = 6899.27597244
delta logL = 0.0336241206678

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  3.608e-01  1.955e+01  0.000e+00  1.000e+06 ( 1.000e-13)
332        Index:  3.963e+00  2.531e+01  0.000e+00  1.000e+01 (-1.000e+00)
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  1.058e+00  1.258e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  8.028e-01  1.053e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 192.244 48.670

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/31393353/cmap_HighResolution_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.40e-03', job_status='DONE', photon_flux_upper_limit='5.67e-08', time_completed='2026-07-11 19:03:54.199852', job_id='31393353', GAL2='1.06', fit_tolerance='1e-08', EG2='0.80', EG='0.81', time_epoch_completed='1783821834.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='3.36e-02', ts2='0.07', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='2173' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jul 11 19:03:54 PDT 2026

ng on...
/lscratch/kocevski/31393344/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits.....................!
real 27.37
user 24.49
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31393344/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits', '/lscratch/kocevski/31393344/ft2_4FGL_J1248.9+4840_daily_bin2173.fits', expMap='/lscratch/kocevski/31393344/expmap_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits', expCube='/lscratch/kocevski/31393344/ltcube_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31393344/Model_4FGL_J1248.9+4840_daily_bin2173.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1248.9+4840'

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  3.227e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
332        Index:  2.450e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31393344/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits
Spacecraft file(s): /lscratch/kocevski/31393344/ft2_4FGL_J1248.9+4840_daily_bin2173.fits
Exposure map: /lscratch/kocevski/31393344/expmap_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits
Exposure cube: /lscratch/kocevski/31393344/ltcube_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31393344/Model_4FGL_J1248.9+4840_daily_bin2173.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1402       1.0000          .0000       .10000E+07
     2 'Prefactor '    43.126       1.0000          .0000       .10000E+07
     3 'norm      '    3.5769       1.0000          .0000       .10000E+07
     4 'norm      '    4.0990       1.0000          .0000       .10000E+07
     5 'Prefactor '    .55482E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    1.6265       1.0000          .0000       .10000E+07
     7 'norm      '    4.0879       1.0000          .0000       .10000E+07
     8 'Prefactor '    .21703E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .46074E-04   1.0000          .0000       .10000E+07
    10 'norm      '    .27062E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    .20672E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    3.6640       1.0000          .0000       .10000E+07
    13 'Prefactor '    .57037E-03   1.0000          .0000       .10000E+07
    14 'norm      '    4.2394       1.0000          .0000       .10000E+07
    15 'norm      '    .16492E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    106.32       1.0000          .0000       .10000E+07
    17 'Prefactor '    6.0407       1.0000          .0000       .10000E+07
    18 'norm      '    .34010E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    .34277E-03   1.0000          .0000       .10000E+07
    20 'norm      '    3.0432       1.0000          .0000       .10000E+07
    21 'Normalizat'    .81460       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0500       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6899.310     FROM MIGRAD    STATUS=CONVERGED    156 CALLS     1798 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1041        3.0515       -.75036E-06   -.52890E-02
   2  Prefactor     43.808        2.7634        .92022E-06    .13825E-01
   3  norm          3.5796        1.9457       -.14143E-07   -.44978E-03
   4  norm          4.1302        5.4901       -.13861E-06   -.12311E-02
   5  Prefactor     .57065E-07    9.6050        .42034E-05** at limit **
   6  Prefactor     1.6324        3.4279       -.88805E-07    .10348E-01
   7  norm          4.0909        2.0291        .88658E-07    .71847E-02
   8  Prefactor     .49405E-08    24.881       -.22315E-04** at limit **
   9  Prefactor     .44409E-09    9.7746        .28798E-05** at limit **
  10  norm          .55511E-10    6.1755       -.98086E-06** at limit **
  11  Prefactor     .55511E-10    7.2604        .13384E-05** at limit **
  12  Prefactor     3.6472        4.0558       -.33107E-07    .64958E-02
  13  Prefactor     .34917E-07    8.4595        .21308E-05** at limit **
  14  norm          4.0731        7.5235       -.46479E-06   -.11349E-02
  15  norm          .55511E-10    1.2803       -.26404E-06** at limit **
  16  Prefactor     109.26        37.210        .18495E-05    .60442E-02
  17  Prefactor     4.6870        20.858       -.87054E-05    .40290E-03
  18  norm          .22204E-09    14.701       -.65324E-05** at limit **
  19  Prefactor     .13323E-08    31.238        .17399E-04** at limit **
  20  norm          3.0464        1.3787       -.88257E-07   -.19518E-01
  21  Normalizat    .81314        .16323       -.51073E-05   -.39475E-03
  22  Prefactor     1.0506        .20654        .17019E-04   -.19499E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.1041
  Prefactor  = 43.8078
  norm       = 3.57959
  norm       = 4.13024
  Prefactor  = 5.70655e-08
  Prefactor  = 1.63244
  norm       = 4.09089
  Prefactor  = 4.94049e-09
  Prefactor  = 4.44089e-10
  norm       = 5.55112e-11
  Prefactor  = 5.55112e-11
  Prefactor  = 3.6472
  Prefactor  = 3.49165e-08
  norm       = 4.07308
  norm       = 5.55112e-11
  Prefactor  = 109.258
  Prefactor  = 4.68703
  norm       = 2.22045e-10
  Prefactor  = 1.33227e-09
  norm       = 3.04641
  Normalizat = 0.81314
  Prefactor  = 1.0506
ng on...
/lscratch/kocevski/31393328/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits.....................!
real 26.41
user 24.16
sys 1.51

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31393328/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits', '/lscratch/kocevski/31393328/ft2_4FGL_J1248.9+4840_daily_bin2173.fits', expMap='/lscratch/kocevski/31393328/expmap_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits', expCube='/lscratch/kocevski/31393328/ltcube_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31393328/Model_4FGL_J1248.9+4840_daily_bin2173.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1248.9+4840'

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  3.227e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
332        Index:  2.450e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31393328/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits
Spacecraft file(s): /lscratch/kocevski/31393328/ft2_4FGL_J1248.9+4840_daily_bin2173.fits
Exposure map: /lscratch/kocevski/31393328/expmap_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits
Exposure cube: /lscratch/kocevski/31393328/ltcube_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31393328/Model_4FGL_J1248.9+4840_daily_bin2173.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1402       1.0000          .0000       .10000E+07
     2 'Prefactor '    43.126       1.0000          .0000       .10000E+07
     3 'norm      '    3.5769       1.0000          .0000       .10000E+07
     4 'norm      '    4.0990       1.0000          .0000       .10000E+07
     5 'Prefactor '    .55482E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    1.6265       1.0000          .0000       .10000E+07
     7 'norm      '    4.0879       1.0000          .0000       .10000E+07
     8 'Prefactor '    .21703E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .46074E-04   1.0000          .0000       .10000E+07
    10 'norm      '    .27062E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    .20672E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    3.6640       1.0000          .0000       .10000E+07
    13 'Prefactor '    .57037E-03   1.0000          .0000       .10000E+07
    14 'norm      '    4.2394       1.0000          .0000       .10000E+07
    15 'norm      '    .16492E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    106.32       1.0000          .0000       .10000E+07
    17 'Prefactor '    6.0407       1.0000          .0000       .10000E+07
    18 'norm      '    .34010E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    .34277E-03   1.0000          .0000       .10000E+07
    20 'norm      '    3.0432       1.0000          .0000       .10000E+07
    21 'Normalizat'    .81460       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0500       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6899.310     FROM MIGRAD    STATUS=CONVERGED    156 CALLS     1798 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1041        3.0515       -.75036E-06   -.52890E-02
   2  Prefactor     43.808        2.7634        .92022E-06    .13825E-01
   3  norm          3.5796        1.9457       -.14143E-07   -.44978E-03
   4  norm          4.1302        5.4901       -.13861E-06   -.12311E-02
   5  Prefactor     .57065E-07    9.6050        .42034E-05** at limit **
   6  Prefactor     1.6324        3.4279       -.88805E-07    .10348E-01
   7  norm          4.0909        2.0291        .88658E-07    .71847E-02
   8  Prefactor     .49405E-08    24.881       -.22315E-04** at limit **
   9  Prefactor     .44409E-09    9.7746        .28798E-05** at limit **
  10  norm          .55511E-10    6.1755       -.98086E-06** at limit **
  11  Prefactor     .55511E-10    7.2604        .13384E-05** at limit **
  12  Prefactor     3.6472        4.0558       -.33107E-07    .64958E-02
  13  Prefactor     .34917E-07    8.4595        .21308E-05** at limit **
  14  norm          4.0731        7.5235       -.46479E-06   -.11349E-02
  15  norm          .55511E-10    1.2803       -.26404E-06** at limit **
  16  Prefactor     109.26        37.210        .18495E-05    .60442E-02
  17  Prefactor     4.6870        20.858       -.87054E-05    .40290E-03
  18  norm          .22204E-09    14.701       -.65324E-05** at limit **
  19  Prefactor     .13323E-08    31.238        .17399E-04** at limit **
  20  norm          3.0464        1.3787       -.88257E-07   -.19518E-01
  21  Normalizat    .81314        .16323       -.51073E-05   -.39475E-03
  22  Prefactor     1.0506        .20654        .17019E-04   -.19499E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.1041
  Prefactor  = 43.8078
  norm       = 3.57959
  norm       = 4.13024
  Prefactor  = 5.70655e-08
  Prefactor  = 1.63244
  norm       = 4.09089
  Prefactor  = 4.94049e-09
  Prefactor  = 4.44089e-10
  norm       = 5.55112e-11
  Prefactor  = 5.55112e-11
  Prefactor  = 3.6472
  Prefactor  = 3.49165e-08
  norm       = 4.07308
  norm       = 5.55112e-11
  Prefactor  = 109.258
  Prefactor  = 4.68703
  norm       = 2.22045e-10
  Prefactor  = 1.33227e-09
  norm       = 3.04641
  Normalizat = 0.81314
  Prefactor  = 1.0506
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  4.940e-09  7.070e-04  0.000e+00  1.000e+06 ( 1.000e-13)
332        Index:  2.450e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  1.051e+00  1.759e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  8.131e-01  1.410e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 192.244 48.670
Photon Flux Upper Limit: 5.67377870828e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00439880090837 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31393354/likelihoodResults_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6899.32981716
delta logL = -0.0202206006888

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6899.27597379
delta logL = 0.033622761558

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6899.276     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      238 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .36080        6.0965        .29064E-02    .13933E-01
   2  Index         3.9634        1.0066        .40845        .45465E-05
   3  Normalizat    .80275        .94000E-02    .43644E-01   -.18802E-04
   4  Prefactor     1.0579        .12070E-01    .59148E-01   -.38174E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.360798
  Index      = 3.96344
  Normalizat = 0.802751
  Prefactor  = 1.05792
 **********
 **   18 **HESSE 
 **********

 FCN=   6899.276     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      273 TOTAL
                     EDM=   .39E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .36080        264.73        .14821E-03   -1.5696    
   2  Index         3.9634        7.4771        .62213E-02   -.20883    
   3  Normalizat    .80275        .10530        .23202E-03   -.99967    
   4  Prefactor     1.0579        .12577        .26156E-03   -.90823    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.88452e-06
Minuit parameter uncertainties:
  1  19.5471
  2  25.3081
  3  0.105326
  4  0.125802
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) = 6899.27597244
delta logL = 0.0336241206678

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  3.608e-01  1.955e+01  0.000e+00  1.000e+06 ( 1.000e-13)
332        Index:  3.963e+00  2.531e+01  0.000e+00  1.000e+01 (-1.000e+00)
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  1.058e+00  1.258e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  8.028e-01  1.053e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 192.244 48.670

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/31393354/cmap_HighResolution_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.40e-03', job_status='DONE', photon_flux_upper_limit='5.67e-08', time_completed='2026-07-11 19:04:06.458369', job_id='31393354', GAL2='1.06', fit_tolerance='1e-08', EG2='0.80', EG='0.81', time_epoch_completed='1783821846.46', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='3.36e-02', ts2='0.07', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='2173' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jul 11 19:04:06 PDT 2026

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

 FCN=   6899.310     FROM HESSE     STATUS=OK           398 CALLS     2196 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1041        3.3431        .57181E-03   -1.5673    
   2  Prefactor     43.808        23.137        .15229E-03   -1.5576    
   3  norm          3.5796        1.9490        .53410E-03   -1.5670    
   4  norm          4.1302        5.5004        .49770E-03   -1.5667    
   5  Prefactor     .57065E-07    17.815        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.6324        3.4612        .82914E-03   -1.5682    
   7  norm          4.0909        2.0334        .49839E-03   -1.5668    
   8  Prefactor     .49405E-08    25.197        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .44409E-09    9.7793        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .55511E-10    .92316        .29858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55511E-10    7.2542        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.6472        4.0615        .52745E-03   -1.5670    
  13  Prefactor     .34917E-07    18.170        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.0731        7.5417        .48914E-03   -1.5668    
  15  norm          .55511E-10    1.2712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     109.26        39.738        .96990E-04   -1.5499    
  17  Prefactor     4.6870        42.973        .40828E-03   -1.5665    
  18  norm          .22204E-09    2.7297        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .13323E-08    31.936        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.0464        1.3874        .58136E-03   -1.5673    
  21  Normalizat    .81314        .14099        .43801E-01   -.99583    
  22  Prefactor     1.0506        .17585        .59325E-01   -.91061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49421e-07
Minuit parameter uncertainties:
  1  3.34308
  2  23.1368
  3  1.94901
  4  5.50046
  5  0.0020162
  6  3.46117
  7  2.03344
  8  0.000707
  9  0.000131762
  10  1.31463e-05
  11  4.85376e-05
  12  4.06146
  13  0.00159356
  14  7.54173
  15  1.76348e-05
  16  39.7384
  17  28.3845
  18  4.70369e-05
  19  0.000409453
  20  1.3874
  21  0.14105
  22  0.175942
ng on...
/lscratch/kocevski/31393489/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits.....................!
real 22.78
user 21.19
sys 0.98

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31393489/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits', '/lscratch/kocevski/31393489/ft2_4FGL_J1248.9+4840_daily_bin2173.fits', expMap='/lscratch/kocevski/31393489/expmap_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits', expCube='/lscratch/kocevski/31393489/ltcube_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31393489/Model_4FGL_J1248.9+4840_daily_bin2173.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1248.9+4840'

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  3.227e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
332        Index:  2.450e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31393489/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits
Spacecraft file(s): /lscratch/kocevski/31393489/ft2_4FGL_J1248.9+4840_daily_bin2173.fits
Exposure map: /lscratch/kocevski/31393489/expmap_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits
Exposure cube: /lscratch/kocevski/31393489/ltcube_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31393489/Model_4FGL_J1248.9+4840_daily_bin2173.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1402       1.0000          .0000       .10000E+07
     2 'Prefactor '    43.126       1.0000          .0000       .10000E+07
     3 'norm      '    3.5769       1.0000          .0000       .10000E+07
     4 'norm      '    4.0990       1.0000          .0000       .10000E+07
     5 'Prefactor '    .55482E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    1.6265       1.0000          .0000       .10000E+07
     7 'norm      '    4.0879       1.0000          .0000       .10000E+07
     8 'Prefactor '    .21703E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .46074E-04   1.0000          .0000       .10000E+07
    10 'norm      '    .27062E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    .20672E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    3.6640       1.0000          .0000       .10000E+07
    13 'Prefactor '    .57037E-03   1.0000          .0000       .10000E+07
    14 'norm      '    4.2394       1.0000          .0000       .10000E+07
    15 'norm      '    .16492E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    106.32       1.0000          .0000       .10000E+07
    17 'Prefactor '    6.0407       1.0000          .0000       .10000E+07
    18 'norm      '    .34010E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    .34277E-03   1.0000          .0000       .10000E+07
    20 'norm      '    3.0432       1.0000          .0000       .10000E+07
    21 'Normalizat'    .81460       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0500       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6899.310     FROM MIGRAD    STATUS=CONVERGED    156 CALLS     1798 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1041        3.0515       -.75036E-06   -.52890E-02
   2  Prefactor     43.808        2.7634        .92022E-06    .13825E-01
   3  norm          3.5796        1.9457       -.14143E-07   -.44978E-03
   4  norm          4.1302        5.4901       -.13861E-06   -.12311E-02
   5  Prefactor     .57065E-07    9.6050        .42034E-05** at limit **
   6  Prefactor     1.6324        3.4279       -.88805E-07    .10348E-01
   7  norm          4.0909        2.0291        .88658E-07    .71847E-02
   8  Prefactor     .49405E-08    24.881       -.22315E-04** at limit **
   9  Prefactor     .44409E-09    9.7746        .28798E-05** at limit **
  10  norm          .55511E-10    6.1755       -.98086E-06** at limit **
  11  Prefactor     .55511E-10    7.2604        .13384E-05** at limit **
  12  Prefactor     3.6472        4.0558       -.33107E-07    .64958E-02
  13  Prefactor     .34917E-07    8.4595        .21308E-05** at limit **
  14  norm          4.0731        7.5235       -.46479E-06   -.11349E-02
  15  norm          .55511E-10    1.2803       -.26404E-06** at limit **
  16  Prefactor     109.26        37.210        .18495E-05    .60442E-02
  17  Prefactor     4.6870        20.858       -.87054E-05    .40290E-03
  18  norm          .22204E-09    14.701       -.65324E-05** at limit **
  19  Prefactor     .13323E-08    31.238        .17399E-04** at limit **
  20  norm          3.0464        1.3787       -.88257E-07   -.19518E-01
  21  Normalizat    .81314        .16323       -.51073E-05   -.39475E-03
  22  Prefactor     1.0506        .20654        .17019E-04   -.19499E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.1041
  Prefactor  = 43.8078
  norm       = 3.57959
  norm       = 4.13024
  Prefactor  = 5.70655e-08
  Prefactor  = 1.63244
  norm       = 4.09089
  Prefactor  = 4.94049e-09
  Prefactor  = 4.44089e-10
  norm       = 5.55112e-11
  Prefactor  = 5.55112e-11
  Prefactor  = 3.6472
  Prefactor  = 3.49165e-08
  norm       = 4.07308
  norm       = 5.55112e-11
  Prefactor  = 109.258
  Prefactor  = 4.68703
  norm       = 2.22045e-10
  Prefactor  = 1.33227e-09
  norm       = 3.04641
  Normalizat = 0.81314
  Prefactor  = 1.0506
 **********
 **   18 **HESSE 
 **********

 FCN=   6899.310     FROM HESSE     STATUS=OK           398 CALLS     2196 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1041        3.3431        .57181E-03   -1.5673    
   2  Prefactor     43.808        23.137        .15229E-03   -1.5576    
   3  norm          3.5796        1.9490        .53410E-03   -1.5670    
   4  norm          4.1302        5.5004        .49770E-03   -1.5667    
   5  Prefactor     .57065E-07    17.815        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.6324        3.4612        .82914E-03   -1.5682    
   7  norm          4.0909        2.0334        .49839E-03   -1.5668    
   8  Prefactor     .49405E-08    25.197        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .44409E-09    9.7793        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .55511E-10    .92316        .29858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55511E-10    7.2542        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.6472        4.0615        .52745E-03   -1.5670    
  13  Prefactor     .34917E-07    18.170        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.0731        7.5417        .48914E-03   -1.5668    
  15  norm          .55511E-10    1.2712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     109.26        39.738        .96990E-04   -1.5499    
  17  Prefactor     4.6870        42.973        .40828E-03   -1.5665    
  18  norm          .22204E-09    2.7297        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .13323E-08    31.936        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.0464        1.3874        .58136E-03   -1.5673    
  21  Normalizat    .81314        .14099        .43801E-01   -.99583    
  22  Prefactor     1.0506        .17585        .59325E-01   -.91061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49421e-07
Minuit parameter uncertainties:
  1  3.34308
  2  23.1368
  3  1.94901
  4  5.50046
  5  0.0020162
  6  3.46117
  7  2.03344
  8  0.000707
  9  0.000131762
  10  1.31463e-05
  11  4.85376e-05
  12  4.06146
  13  0.00159356
  14  7.54173
  15  1.76348e-05
  16  39.7384
  17  28.3845
  18  4.70369e-05
  19  0.000409453
  20  1.3874
  21  0.14105
  22  0.175942
 **********
 **   18 **HESSE 
 **********

 FCN=   6899.310     FROM HESSE     STATUS=OK           398 CALLS     2196 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1041        3.3431        .57181E-03   -1.5673    
   2  Prefactor     43.808        23.137        .15229E-03   -1.5576    
   3  norm          3.5796        1.9490        .53410E-03   -1.5670    
   4  norm          4.1302        5.5004        .49770E-03   -1.5667    
   5  Prefactor     .57065E-07    17.815        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.6324        3.4612        .82914E-03   -1.5682    
   7  norm          4.0909        2.0334        .49839E-03   -1.5668    
   8  Prefactor     .49405E-08    25.197        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .44409E-09    9.7793        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .55511E-10    .92316        .29858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55511E-10    7.2542        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.6472        4.0615        .52745E-03   -1.5670    
  13  Prefactor     .34917E-07    18.170        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.0731        7.5417        .48914E-03   -1.5668    
  15  norm          .55511E-10    1.2712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     109.26        39.738        .96990E-04   -1.5499    
  17  Prefactor     4.6870        42.973        .40828E-03   -1.5665    
  18  norm          .22204E-09    2.7297        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .13323E-08    31.936        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.0464        1.3874        .58136E-03   -1.5673    
  21  Normalizat    .81314        .14099        .43801E-01   -.99583    
  22  Prefactor     1.0506        .17585        .59325E-01   -.91061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49421e-07
Minuit parameter uncertainties:
  1  3.34308
  2  23.1368
  3  1.94901
  4  5.50046
  5  0.0020162
  6  3.46117
  7  2.03344
  8  0.000707
  9  0.000131762
  10  1.31463e-05
  11  4.85376e-05
  12  4.06146
  13  0.00159356
  14  7.54173
  15  1.76348e-05
  16  39.7384
  17  28.3845
  18  4.70369e-05
  19  0.000409453
  20  1.3874
  21  0.14105
  22  0.175942
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  4.940e-09  7.070e-04  0.000e+00  1.000e+06 ( 1.000e-13)
332        Index:  2.450e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  1.051e+00  1.759e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  8.131e-01  1.410e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 192.244 48.670
Photon Flux Upper Limit: 5.67377870828e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00439880090837 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31393328/likelihoodResults_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6899.32981716
delta logL = -0.0202206006888

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6899.27597379
delta logL = 0.033622761558

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6899.276     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      238 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .36080        6.0965        .29064E-02    .13933E-01
   2  Index         3.9634        1.0066        .40845        .45465E-05
   3  Normalizat    .80275        .94000E-02    .43644E-01   -.18802E-04
   4  Prefactor     1.0579        .12070E-01    .59148E-01   -.38174E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.360798
  Index      = 3.96344
  Normalizat = 0.802751
  Prefactor  = 1.05792
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  4.940e-09  7.070e-04  0.000e+00  1.000e+06 ( 1.000e-13)
332        Index:  2.450e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  1.051e+00  1.759e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  8.131e-01  1.410e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 192.244 48.670
Photon Flux Upper Limit: 5.67377870828e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00439880090837 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31393344/likelihoodResults_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6899.32981716
delta logL = -0.0202206006888

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6899.27597379
delta logL = 0.033622761558

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6899.276     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      238 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .36080        6.0965        .29064E-02    .13933E-01
   2  Index         3.9634        1.0066        .40845        .45465E-05
   3  Normalizat    .80275        .94000E-02    .43644E-01   -.18802E-04
   4  Prefactor     1.0579        .12070E-01    .59148E-01   -.38174E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.360798
  Index      = 3.96344
  Normalizat = 0.802751
  Prefactor  = 1.05792
 **********
 **   18 **HESSE 
 **********

 FCN=   6899.276     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      273 TOTAL
                     EDM=   .39E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .36080        264.73        .14821E-03   -1.5696    
   2  Index         3.9634        7.4771        .62213E-02   -.20883    
   3  Normalizat    .80275        .10530        .23202E-03   -.99967    
   4  Prefactor     1.0579        .12577        .26156E-03   -.90823    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.88452e-06
Minuit parameter uncertainties:
  1  19.5471
  2  25.3081
  3  0.105326
  4  0.125802
e=/lscratch/kocevski/31393548/ltcube_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Working on file /lscratch/kocevski/31393548/ft2_4FGL_J1248.9+4840_daily_bin2173.fits
.....................!
real 8.23
user 7.59
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31393548/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits evtable="EVENTS" scfile=/lscratch/kocevski/31393548/ft2_4FGL_J1248.9+4840_daily_bin2173.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31393548/ltcube_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits outfile=/lscratch/kocevski/31393548/expmap_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/31393548/ltcube_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits
.....................!
real 67.78
user 63.13
sys 3.83

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

Setting source of interest to:
4FGL J1248.9+4840 @ 192.244 48.67

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31393548/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits scfile=/lscratch/kocevski/31393548/ft2_4FGL_J1248.9+4840_daily_bin2173.fits outfile=/lscratch/kocevski/31393548/cmap_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=192.244 yref=48.67 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.80
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31393548/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits scfile=/lscratch/kocevski/31393548/ft2_4FGL_J1248.9+4840_daily_bin2173.fits outfile=/lscratch/kocevski/31393548/cmap_HighResolution_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=192.244 yref=48.67 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.72
user 0.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31393548/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits evtable="EVENTS" scfile=/lscratch/kocevski/31393548/ft2_4FGL_J1248.9+4840_daily_bin2173.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31393548/Model_4FGL_J1248.9+4840_daily_bin2173.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Worki **********
 **   18 **HESSE 
 **********

 FCN=   6899.276     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      273 TOTAL
                     EDM=   .39E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .36080        264.73        .14821E-03   -1.5696    
   2  Index         3.9634        7.4771        .62213E-02   -.20883    
   3  Normalizat    .80275        .10530        .23202E-03   -.99967    
   4  Prefactor     1.0579        .12577        .26156E-03   -.90823    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.88452e-06
Minuit parameter uncertainties:
  1  19.5471
  2  25.3081
  3  0.105326
  4  0.125802
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) = 6899.27597244
delta logL = 0.0336241206678

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  3.608e-01  1.955e+01  0.000e+00  1.000e+06 ( 1.000e-13)
332        Index:  3.963e+00  2.531e+01  0.000e+00  1.000e+01 (-1.000e+00)
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  1.058e+00  1.258e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  8.028e-01  1.053e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 192.244 48.670

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/31393328/cmap_HighResolution_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.40e-03', job_status='DONE', photon_flux_upper_limit='5.67e-08', time_completed='2026-07-11 19:04:59.419492', job_id='31393328', GAL2='1.06', fit_tolerance='1e-08', EG2='0.80', EG='0.81', time_epoch_completed='1783821899.42', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='3.36e-02', ts2='0.07', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='2173' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jul 11 19:04:59 PDT 2026

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

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6899.27597244
delta logL = 0.0336241206678

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  3.608e-01  1.955e+01  0.000e+00  1.000e+06 ( 1.000e-13)
332        Index:  3.963e+00  2.531e+01  0.000e+00  1.000e+01 (-1.000e+00)
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  1.058e+00  1.258e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  8.028e-01  1.053e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 192.244 48.670

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/31393344/cmap_HighResolution_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.40e-03', job_status='DONE', photon_flux_upper_limit='5.67e-08', time_completed='2026-07-11 19:05:01.045871', job_id='31393344', GAL2='1.06', fit_tolerance='1e-08', EG2='0.80', EG='0.81', time_epoch_completed='1783821901.05', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='3.36e-02', ts2='0.07', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='2173' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jul 11 19:05:01 PDT 2026

g on...
/lscratch/kocevski/31393495/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits.....................!
real 22.58
user 21.05
sys 1.00

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31393495/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits', '/lscratch/kocevski/31393495/ft2_4FGL_J1248.9+4840_daily_bin2173.fits', expMap='/lscratch/kocevski/31393495/expmap_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits', expCube='/lscratch/kocevski/31393495/ltcube_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31393495/Model_4FGL_J1248.9+4840_daily_bin2173.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1248.9+4840'

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  3.227e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
332        Index:  2.450e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31393495/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits
Spacecraft file(s): /lscratch/kocevski/31393495/ft2_4FGL_J1248.9+4840_daily_bin2173.fits
Exposure map: /lscratch/kocevski/31393495/expmap_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits
Exposure cube: /lscratch/kocevski/31393495/ltcube_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31393495/Model_4FGL_J1248.9+4840_daily_bin2173.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1402       1.0000          .0000       .10000E+07
     2 'Prefactor '    43.126       1.0000          .0000       .10000E+07
     3 'norm      '    3.5769       1.0000          .0000       .10000E+07
     4 'norm      '    4.0990       1.0000          .0000       .10000E+07
     5 'Prefactor '    .55482E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    1.6265       1.0000          .0000       .10000E+07
     7 'norm      '    4.0879       1.0000          .0000       .10000E+07
     8 'Prefactor '    .21703E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .46074E-04   1.0000          .0000       .10000E+07
    10 'norm      '    .27062E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    .20672E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    3.6640       1.0000          .0000       .10000E+07
    13 'Prefactor '    .57037E-03   1.0000          .0000       .10000E+07
    14 'norm      '    4.2394       1.0000          .0000       .10000E+07
    15 'norm      '    .16492E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    106.32       1.0000          .0000       .10000E+07
    17 'Prefactor '    6.0407       1.0000          .0000       .10000E+07
    18 'norm      '    .34010E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    .34277E-03   1.0000          .0000       .10000E+07
    20 'norm      '    3.0432       1.0000          .0000       .10000E+07
    21 'Normalizat'    .81460       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0500       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6899.310     FROM MIGRAD    STATUS=CONVERGED    156 CALLS     1798 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1041        3.0515       -.75036E-06   -.52890E-02
   2  Prefactor     43.808        2.7634        .92022E-06    .13825E-01
   3  norm          3.5796        1.9457       -.14143E-07   -.44978E-03
   4  norm          4.1302        5.4901       -.13861E-06   -.12311E-02
   5  Prefactor     .57065E-07    9.6050        .42034E-05** at limit **
   6  Prefactor     1.6324        3.4279       -.88805E-07    .10348E-01
   7  norm          4.0909        2.0291        .88658E-07    .71847E-02
   8  Prefactor     .49405E-08    24.881       -.22315E-04** at limit **
   9  Prefactor     .44409E-09    9.7746        .28798E-05** at limit **
  10  norm          .55511E-10    6.1755       -.98086E-06** at limit **
  11  Prefactor     .55511E-10    7.2604        .13384E-05** at limit **
  12  Prefactor     3.6472        4.0558       -.33107E-07    .64958E-02
  13  Prefactor     .34917E-07    8.4595        .21308E-05** at limit **
  14  norm          4.0731        7.5235       -.46479E-06   -.11349E-02
  15  norm          .55511E-10    1.2803       -.26404E-06** at limit **
  16  Prefactor     109.26        37.210        .18495E-05    .60442E-02
  17  Prefactor     4.6870        20.858       -.87054E-05    .40290E-03
  18  norm          .22204E-09    14.701       -.65324E-05** at limit **
  19  Prefactor     .13323E-08    31.238        .17399E-04** at limit **
  20  norm          3.0464        1.3787       -.88257E-07   -.19518E-01
  21  Normalizat    .81314        .16323       -.51073E-05   -.39475E-03
  22  Prefactor     1.0506        .20654        .17019E-04   -.19499E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.1041
  Prefactor  = 43.8078
  norm       = 3.57959
  norm       = 4.13024
  Prefactor  = 5.70655e-08
  Prefactor  = 1.63244
  norm       = 4.09089
  Prefactor  = 4.94049e-09
  Prefactor  = 4.44089e-10
  norm       = 5.55112e-11
  Prefactor  = 5.55112e-11
  Prefactor  = 3.6472
  Prefactor  = 3.49165e-08
  norm       = 4.07308
  norm       = 5.55112e-11
  Prefactor  = 109.258
  Prefactor  = 4.68703
  norm       = 2.22045e-10
  Prefactor  = 1.33227e-09
  norm       = 3.04641
  Normalizat = 0.81314
  Prefactor  = 1.0506
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  4.940e-09  7.070e-04  0.000e+00  1.000e+06 ( 1.000e-13)
332        Index:  2.450e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  1.051e+00  1.759e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  8.131e-01  1.410e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 192.244 48.670
Photon Flux Upper Limit: 5.67377870828e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00439880090837 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31393489/likelihoodResults_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6899.32981716
delta logL = -0.0202206006888

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6899.27597379
delta logL = 0.033622761558

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6899.276     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      238 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .36080        6.0965        .29064E-02    .13933E-01
   2  Index         3.9634        1.0066        .40845        .45465E-05
   3  Normalizat    .80275        .94000E-02    .43644E-01   -.18802E-04
   4  Prefactor     1.0579        .12070E-01    .59148E-01   -.38174E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.360798
  Index      = 3.96344
  Normalizat = 0.802751
  Prefactor  = 1.05792
 **********
 **   18 **HESSE 
 **********

 FCN=   6899.276     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      273 TOTAL
                     EDM=   .39E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .36080        264.73        .14821E-03   -1.5696    
   2  Index         3.9634        7.4771        .62213E-02   -.20883    
   3  Normalizat    .80275        .10530        .23202E-03   -.99967    
   4  Prefactor     1.0579        .12577        .26156E-03   -.90823    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.88452e-06
Minuit parameter uncertainties:
  1  19.5471
  2  25.3081
  3  0.105326
  4  0.125802
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
ng on...
/lscratch/kocevski/31393514/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits.....................!
real 22.78
user 21.36
sys 0.90

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31393514/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits', '/lscratch/kocevski/31393514/ft2_4FGL_J1248.9+4840_daily_bin2173.fits', expMap='/lscratch/kocevski/31393514/expmap_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits', expCube='/lscratch/kocevski/31393514/ltcube_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31393514/Model_4FGL_J1248.9+4840_daily_bin2173.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1248.9+4840'

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  3.227e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
332        Index:  2.450e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31393514/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits
Spacecraft file(s): /lscratch/kocevski/31393514/ft2_4FGL_J1248.9+4840_daily_bin2173.fits
Exposure map: /lscratch/kocevski/31393514/expmap_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits
Exposure cube: /lscratch/kocevski/31393514/ltcube_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31393514/Model_4FGL_J1248.9+4840_daily_bin2173.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1402       1.0000          .0000       .10000E+07
     2 'Prefactor '    43.126       1.0000          .0000       .10000E+07
     3 'norm      '    3.5769       1.0000          .0000       .10000E+07
     4 'norm      '    4.0990       1.0000          .0000       .10000E+07
     5 'Prefactor '    .55482E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    1.6265       1.0000          .0000       .10000E+07
     7 'norm      '    4.0879       1.0000          .0000       .10000E+07
     8 'Prefactor '    .21703E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .46074E-04   1.0000          .0000       .10000E+07
    10 'norm      '    .27062E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    .20672E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    3.6640       1.0000          .0000       .10000E+07
    13 'Prefactor '    .57037E-03   1.0000          .0000       .10000E+07
    14 'norm      '    4.2394       1.0000          .0000       .10000E+07
    15 'norm      '    .16492E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    106.32       1.0000          .0000       .10000E+07
    17 'Prefactor '    6.0407       1.0000          .0000       .10000E+07
    18 'norm      '    .34010E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    .34277E-03   1.0000          .0000       .10000E+07
    20 'norm      '    3.0432       1.0000          .0000       .10000E+07
    21 'Normalizat'    .81460       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0500       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6899.310     FROM MIGRAD    STATUS=CONVERGED    156 CALLS     1798 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1041        3.0515       -.75036E-06   -.52890E-02
   2  Prefactor     43.808        2.7634        .92022E-06    .13825E-01
   3  norm          3.5796        1.9457       -.14143E-07   -.44978E-03
   4  norm          4.1302        5.4901       -.13861E-06   -.12311E-02
   5  Prefactor     .57065E-07    9.6050        .42034E-05** at limit **
   6  Prefactor     1.6324        3.4279       -.88805E-07    .10348E-01
   7  norm          4.0909        2.0291        .88658E-07    .71847E-02
   8  Prefactor     .49405E-08    24.881       -.22315E-04** at limit **
   9  Prefactor     .44409E-09    9.7746        .28798E-05** at limit **
  10  norm          .55511E-10    6.1755       -.98086E-06** at limit **
  11  Prefactor     .55511E-10    7.2604        .13384E-05** at limit **
  12  Prefactor     3.6472        4.0558       -.33107E-07    .64958E-02
  13  Prefactor     .34917E-07    8.4595        .21308E-05** at limit **
  14  norm          4.0731        7.5235       -.46479E-06   -.11349E-02
  15  norm          .55511E-10    1.2803       -.26404E-06** at limit **
  16  Prefactor     109.26        37.210        .18495E-05    .60442E-02
  17  Prefactor     4.6870        20.858       -.87054E-05    .40290E-03
  18  norm          .22204E-09    14.701       -.65324E-05** at limit **
  19  Prefactor     .13323E-08    31.238        .17399E-04** at limit **
  20  norm          3.0464        1.3787       -.88257E-07   -.19518E-01
  21  Normalizat    .81314        .16323       -.51073E-05   -.39475E-03
  22  Prefactor     1.0506        .20654        .17019E-04   -.19499E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.1041
  Prefactor  = 43.8078
  norm       = 3.57959
  norm       = 4.13024
  Prefactor  = 5.70655e-08
  Prefactor  = 1.63244
  norm       = 4.09089
  Prefactor  = 4.94049e-09
  Prefactor  = 4.44089e-10
  norm       = 5.55112e-11
  Prefactor  = 5.55112e-11
  Prefactor  = 3.6472
  Prefactor  = 3.49165e-08
  norm       = 4.07308
  norm       = 5.55112e-11
  Prefactor  = 109.258
  Prefactor  = 4.68703
  norm       = 2.22045e-10
  Prefactor  = 1.33227e-09
  norm       = 3.04641
  Normalizat = 0.81314
  Prefactor  = 1.0506
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6899.27597244
delta logL = 0.0336241206678

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  3.608e-01  1.955e+01  0.000e+00  1.000e+06 ( 1.000e-13)
332        Index:  3.963e+00  2.531e+01  0.000e+00  1.000e+01 (-1.000e+00)
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  1.058e+00  1.258e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  8.028e-01  1.053e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 192.244 48.670

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/31393489/cmap_HighResolution_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.40e-03', job_status='DONE', photon_flux_upper_limit='5.67e-08', time_completed='2026-07-11 19:05:12.260488', job_id='31393489', GAL2='1.06', fit_tolerance='1e-08', EG2='0.80', EG='0.81', time_epoch_completed='1783821912.26', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='3.36e-02', ts2='0.07', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='2173' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jul 11 19:05:12 PDT 2026

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


Performing analysis on: 4FGL_J1248.9+4840_daily_bin2173
RA = 192.244, Dec = 48.67
tmin = 802569601, tmax = 802828801
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

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

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='31393730', job_status='RUN', time_executed='2026-07-11 19:03:12.483026', time_epoch_executed='1783821792.48' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='2173'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/31393730

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/31393730/ft1_4FGL_J1248.9+4840_daily_bin2173.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/31393730/ft2_4FGL_J1248.9+4840_daily_bin2173.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/31393730/ft1_4FGL_J1248.9+4840_daily_bin2173.fits outfile=/lscratch/kocevski/31393730/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin2173.fits ra=192.244 dec=48.67 rad=12.0 tmin=802569601.0 tmax=802828801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.68
user 2.84
sys 0.18

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/31393730/ft2_4FGL_J1248.9+4840_daily_bin2173.fits

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

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

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

Number of photons that the gtmktime cut: 641

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/31393730/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits" evtable="EVENTS" scfile=/lscratch/kocevski/31393730/ft2_4FGL_J1248.9+4840_daily_bin2173.fits sctable="SC_DATA" outfilng on...
/lscratch/kocevski/31393509/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits.....................!
real 25.06
user 23.26
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31393509/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits', '/lscratch/kocevski/31393509/ft2_4FGL_J1248.9+4840_daily_bin2173.fits', expMap='/lscratch/kocevski/31393509/expmap_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits', expCube='/lscratch/kocevski/31393509/ltcube_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31393509/Model_4FGL_J1248.9+4840_daily_bin2173.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1248.9+4840'

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  3.227e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
332        Index:  2.450e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31393509/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits
Spacecraft file(s): /lscratch/kocevski/31393509/ft2_4FGL_J1248.9+4840_daily_bin2173.fits
Exposure map: /lscratch/kocevski/31393509/expmap_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits
Exposure cube: /lscratch/kocevski/31393509/ltcube_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31393509/Model_4FGL_J1248.9+4840_daily_bin2173.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1402       1.0000          .0000       .10000E+07
     2 'Prefactor '    43.126       1.0000          .0000       .10000E+07
     3 'norm      '    3.5769       1.0000          .0000       .10000E+07
     4 'norm      '    4.0990       1.0000          .0000       .10000E+07
     5 'Prefactor '    .55482E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    1.6265       1.0000          .0000       .10000E+07
     7 'norm      '    4.0879       1.0000          .0000       .10000E+07
     8 'Prefactor '    .21703E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .46074E-04   1.0000          .0000       .10000E+07
    10 'norm      '    .27062E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    .20672E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    3.6640       1.0000          .0000       .10000E+07
    13 'Prefactor '    .57037E-03   1.0000          .0000       .10000E+07
    14 'norm      '    4.2394       1.0000          .0000       .10000E+07
    15 'norm      '    .16492E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    106.32       1.0000          .0000       .10000E+07
    17 'Prefactor '    6.0407       1.0000          .0000       .10000E+07
    18 'norm      '    .34010E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    .34277E-03   1.0000          .0000       .10000E+07
    20 'norm      '    3.0432       1.0000          .0000       .10000E+07
    21 'Normalizat'    .81460       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0500       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6899.310     FROM MIGRAD    STATUS=CONVERGED    156 CALLS     1798 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1041        3.0515       -.75036E-06   -.52890E-02
   2  Prefactor     43.808        2.7634        .92022E-06    .13825E-01
   3  norm          3.5796        1.9457       -.14143E-07   -.44978E-03
   4  norm          4.1302        5.4901       -.13861E-06   -.12311E-02
   5  Prefactor     .57065E-07    9.6050        .42034E-05** at limit **
   6  Prefactor     1.6324        3.4279       -.88805E-07    .10348E-01
   7  norm          4.0909        2.0291        .88658E-07    .71847E-02
   8  Prefactor     .49405E-08    24.881       -.22315E-04** at limit **
   9  Prefactor     .44409E-09    9.7746        .28798E-05** at limit **
  10  norm          .55511E-10    6.1755       -.98086E-06** at limit **
  11  Prefactor     .55511E-10    7.2604        .13384E-05** at limit **
  12  Prefactor     3.6472        4.0558       -.33107E-07    .64958E-02
  13  Prefactor     .34917E-07    8.4595        .21308E-05** at limit **
  14  norm          4.0731        7.5235       -.46479E-06   -.11349E-02
  15  norm          .55511E-10    1.2803       -.26404E-06** at limit **
  16  Prefactor     109.26        37.210        .18495E-05    .60442E-02
  17  Prefactor     4.6870        20.858       -.87054E-05    .40290E-03
  18  norm          .22204E-09    14.701       -.65324E-05** at limit **
  19  Prefactor     .13323E-08    31.238        .17399E-04** at limit **
  20  norm          3.0464        1.3787       -.88257E-07   -.19518E-01
  21  Normalizat    .81314        .16323       -.51073E-05   -.39475E-03
  22  Prefactor     1.0506        .20654        .17019E-04   -.19499E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.1041
  Prefactor  = 43.8078
  norm       = 3.57959
  norm       = 4.13024
  Prefactor  = 5.70655e-08
  Prefactor  = 1.63244
  norm       = 4.09089
  Prefactor  = 4.94049e-09
  Prefactor  = 4.44089e-10
  norm       = 5.55112e-11
  Prefactor  = 5.55112e-11
  Prefactor  = 3.6472
  Prefactor  = 3.49165e-08
  norm       = 4.07308
  norm       = 5.55112e-11
  Prefactor  = 109.258
  Prefactor  = 4.68703
  norm       = 2.22045e-10
E 
 **********

 FCN=   6899.310     FROM HESSE     STATUS=OK           398 CALLS     2196 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1041        3.3431        .57181E-03   -1.5673    
   2  Prefactor     43.808        23.137        .15229E-03   -1.5576    
   3  norm          3.5796        1.9490        .53410E-03   -1.5670    
   4  norm          4.1302        5.5004        .49770E-03   -1.5667    
   5  Prefactor     .57065E-07    17.815        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.6324        3.4612        .82914E-03   -1.5682    
   7  norm          4.0909        2.0334        .49839E-03   -1.5668    
   8  Prefactor     .49405E-08    25.197        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .44409E-09    9.7793        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .55511E-10    .92316        .29858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55511E-10    7.2542        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.6472        4.0615        .52745E-03   -1.5670    
  13  Prefactor     .34917E-07    18.170        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.0731        7.5417        .48914E-03   -1.5668    
  15  norm          .55511E-10    1.2712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     109.26        39.738        .96990E-04   -1.5499    
  17  Prefactor     4.6870        42.973        .40828E-03   -1.5665    
  18  norm          .22204E-09    2.7297        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .13323E-08    31.936        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.0464        1.3874        .58136E-03   -1.5673    
  21  Normalizat    .81314        .14099        .43801E-01   -.99583    
  22  Prefactor     1.0506        .17585        .59325E-01   -.91061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49421e-07
Minuit parameter uncertainties:
  1  3.34308
  2  23.1368
  3  1.94901
  4  5.50046
  5  0.0020162
  6  3.46117
  7  2.03344
  8  0.000707
  Prefactor  = 1.33227e-09
463e-05
  11  4.85376e-05
  12  4.06146
  13  0.00159356
  14  7.54173
  15  1.76348e-05
  16  39.7384
  17  28.3845
  18  4.70369e-05
  19  0.000409453
  20  1.3874
  21  0.14105
  22  0.175942
  norm       = 3.04641
  Normalizat = 0.81314
  Prefactor  = 1.0506
ng on...
/lscratch/kocevski/31393520/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits.....................!
real 21.17
user 19.63
sys 1.01

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31393520/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits', '/lscratch/kocevski/31393520/ft2_4FGL_J1248.9+4840_daily_bin2173.fits', expMap='/lscratch/kocevski/31393520/expmap_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits', expCube='/lscratch/kocevski/31393520/ltcube_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31393520/Model_4FGL_J1248.9+4840_daily_bin2173.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1248.9+4840'

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  3.227e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
332        Index:  2.450e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31393520/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits
Spacecraft file(s): /lscratch/kocevski/31393520/ft2_4FGL_J1248.9+4840_daily_bin2173.fits
Exposure map: /lscratch/kocevski/31393520/expmap_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits
Exposure cube: /lscratch/kocevski/31393520/ltcube_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31393520/Model_4FGL_J1248.9+4840_daily_bin2173.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1402       1.0000          .0000       .10000E+07
     2 'Prefactor '    43.126       1.0000          .0000       .10000E+07
     3 'norm      '    3.5769       1.0000          .0000       .10000E+07
     4 'norm      '    4.0990       1.0000          .0000       .10000E+07
     5 'Prefactor '    .55482E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    1.6265       1.0000          .0000       .10000E+07
     7 'norm      '    4.0879       1.0000          .0000       .10000E+07
     8 'Prefactor '    .21703E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .46074E-04   1.0000          .0000       .10000E+07
    10 'norm      '    .27062E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    .20672E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    3.6640       1.0000          .0000       .10000E+07
    13 'Prefactor '    .57037E-03   1.0000          .0000       .10000E+07
    14 'norm      '    4.2394       1.0000          .0000       .10000E+07
    15 'norm      '    .16492E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    106.32       1.0000          .0000       .10000E+07
    17 'Prefactor '    6.0407       1.0000          .0000       .10000E+07
    18 'norm      '    .34010E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    .34277E-03   1.0000          .0000       .10000E+07
    20 'norm      '    3.0432       1.0000          .0000       .10000E+07
    21 'Normalizat'    .81460       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0500       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6899.310     FROM MIGRAD    STATUS=CONVERGED    156 CALLS     1798 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1041        3.0515       -.75036E-06   -.52890E-02
   2  Prefactor     43.808        2.7634        .92022E-06    .13825E-01
   3  norm          3.5796        1.9457       -.14143E-07   -.44978E-03
   4  norm          4.1302        5.4901       -.13861E-06   -.12311E-02
   5  Prefactor     .57065E-07    9.6050        .42034E-05** at limit **
   6  Prefactor     1.6324        3.4279       -.88805E-07    .10348E-01
   7  norm          4.0909        2.0291        .88658E-07    .71847E-02
   8  Prefactor     .49405E-08    24.881       -.22315E-04** at limit **
   9  Prefactor     .44409E-09    9.7746        .28798E-05** at limit **
  10  norm          .55511E-10    6.1755       -.98086E-06** at limit **
  11  Prefactor     .55511E-10    7.2604        .13384E-05** at limit **
  12  Prefactor     3.6472        4.0558       -.33107E-07    .64958E-02
  13  Prefactor     .34917E-07    8.4595        .21308E-05** at limit **
  14  norm          4.0731        7.5235       -.46479E-06   -.11349E-02
  15  norm          .55511E-10    1.2803       -.26404E-06** at limit **
  16  Prefactor     109.26        37.210        .18495E-05    .60442E-02
  17  Prefactor     4.6870        20.858       -.87054E-05    .40290E-03
  18  norm          .22204E-09    14.701       -.65324E-05** at limit **
  19  Prefactor     .13323E-08    31.238        .17399E-04** at limit **
  20  norm          3.0464        1.3787       -.88257E-07   -.19518E-01
  21  Normalizat    .81314        .16323       -.51073E-05   -.39475E-03
  22  Prefactor     1.0506        .20654        .17019E-04   -.19499E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.1041
  Prefactor  = 43.8078
  norm       = 3.57959
  norm       = 4.13024
  Prefactor  = 5.70655e-08
  Prefactor  = 1.63244
  norm       = 4.09089
  Prefactor  = 4.94049e-09
  Prefactor  = 4.44089e-10
  norm       = 5.55112e-11
  Prefactor  = 5.55112e-11
  Prefactor  = 3.6472
  Prefactor  = 3.49165e-08
  norm       = 4.07308
  norm       = 5.55112e-11
  Prefactor  = 109.258
  Prefactor  = 4.68703
  norm       = 2.22045e-10
  Prefactor  = 1.33227e-09
  norm       = 3.04641
  Normalizat = 0.81314
  Prefactor  = 1.0506
 **********
 **   18 **HESSE 
 **********

 FCN=   6899.310     FROM HESSE     STATUS=OK           398 CALLS     2196 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1041        3.3431        .57181E-03   -1.5673    
   2  Prefactor     43.808        23.137        .15229E-03   -1.5576    
   3  norm          3.5796        1.9490        .53410E-03   -1.5670    
   4  norm          4.1302        5.5004        .49770E-03   -1.5667    
   5  Prefactor     .57065E-07    17.815        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.6324        3.4612        .82914E-03   -1.5682    
   7  norm          4.0909        2.0334        .49839E-03   -1.5668    
   8  Prefactor     .49405E-08    25.197        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .44409E-09    9.7793        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .55511E-10    .92316        .29858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55511E-10    7.2542        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.6472        4.0615        .52745E-03   -1.5670    
  13  Prefactor     .34917E-07    18.170        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.0731        7.5417        .48914E-03   -1.5668    
  15  norm          .55511E-10    1.2712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     109.26        39.738        .96990E-04   -1.5499    
  17  Prefactor     4.6870        42.973        .40828E-03   -1.5665    
  18  norm          .22204E-09    2.7297        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .13323E-08    31.936        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.0464        1.3874        .58136E-03   -1.5673    
  21  Normalizat    .81314        .14099        .43801E-01   -.99583    
  22  Prefactor     1.0506        .17585        .59325E-01   -.91061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49421e-07
Minuit parameter uncertainties:
  1  3.34308
  2  23.1368
  3  1.94901
  4  5.50046
  5  0.0020162
  6  3.46117
  7  2.03344
  8  0.000707
  9  0.000131762
  10  1.31463e-05
  11  4.85376e-05
  12  4.06146
  13  0.00159356
  14  7.54173
  15  1.76348e-05
  16  39.7384
  17  28.3845
  18  4.70369e-05
  19  0.000409453
  20  1.3874
  21  0.14105
  22  0.175942
 **********
 **   18 **HESSE 
 **********

 FCN=   6899.310     FROM HESSE     STATUS=OK           398 CALLS     2196 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1041        3.3431        .57181E-03   -1.5673    
   2  Prefactor     43.808        23.137        .15229E-03   -1.5576    
   3  norm          3.5796        1.9490        .53410E-03   -1.5670    
   4  norm          4.1302        5.5004        .49770E-03   -1.5667    
   5  Prefactor     .57065E-07    17.815        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.6324        3.4612        .82914E-03   -1.5682    
   7  norm          4.0909        2.0334        .49839E-03   -1.5668    
   8  Prefactor     .49405E-08    25.197        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .44409E-09    9.7793        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .55511E-10    .92316        .29858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55511E-10    7.2542        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.6472        4.0615        .52745E-03   -1.5670    
  13  Prefactor     .34917E-07    18.170        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.0731        7.5417        .48914E-03   -1.5668    
  15  norm          .55511E-10    1.2712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     109.26        39.738        .96990E-04   -1.5499    
  17  Prefactor     4.6870        42.973        .40828E-03   -1.5665    
  18  norm          .22204E-09    2.7297        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .13323E-08    31.936        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.0464        1.3874        .58136E-03   -1.5673    
  21  Normalizat    .81314        .14099        .43801E-01   -.99583    
  22  Prefactor     1.0506        .17585        .59325E-01   -.91061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49421e-07
Minuit parameter uncertainties:
  1  3.34308
  2  23.1368
  3  1.94901
  4  5.50046
  5  0.0020162
  6  3.46117
  7  2.03344
  8  0.000707
  9  0.000131762
  10  1.31463e-05
  11  4.85376e-05
  12  4.06146
  13  0.00159356
  14  7.54173
  15  1.76348e-05
  16  39.7384
  17  28.3845
  18  4.70369e-05
  19  0.000409453
  20  1.3874
  21  0.14105
  22  0.175942
 **********
 **   18 **HESSE 
 **********

 FCN=   6899.310     FROM HESSE     STATUS=OK           398 CALLS     2196 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1041        3.3431        .57181E-03   -1.5673    
   2  Prefactor     43.808        23.137        .15229E-03   -1.5576    
   3  norm          3.5796        1.9490        .53410E-03   -1.5670    
   4  norm          4.1302        5.5004        .49770E-03   -1.5667    
   5  Prefactor     .57065E-07    17.815        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.6324        3.4612        .82914E-03   -1.5682    
   7  norm          4.0909        2.0334        .49839E-03   -1.5668    
   8  Prefactor     .49405E-08    25.197        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .44409E-09    9.7793        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .55511E-10    .92316        .29858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55511E-10    7.2542        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.6472        4.0615        .52745E-03   -1.5670    
  13  Prefactor     .34917E-07    18.170        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.0731        7.5417        .48914E-03   -1.5668    
  15  norm          .55511E-10    1.2712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     109.26        39.738        .96990E-04   -1.5499    
  17  Prefactor     4.6870        42.973        .40828E-03   -1.5665    
  18  norm          .22204E-09    2.7297        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .13323E-08    31.936        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.0464        1.3874        .58136E-03   -1.5673    
  21  Normalizat    .81314        .14099        .43801E-01   -.99583    
  22  Prefactor     1.0506        .17585        .59325E-01   -.91061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49421e-07
Minuit parameter uncertainties:
  1  3.34308
  2  23.1368
  3  1.94901
  4  5.50046
  5  0.0020162
  6  3.46117
  7  2.03344
  8  0.000707
  9  0.000131762
  10  1.31463e-05
  11  4.85376e-05
  12  4.06146
  13  0.00159356
  14  7.54173
  15  1.76348e-05
  16  39.7384
  17  28.3845
  18  4.70369e-05
  19  0.000409453
  20  1.3874
  21  0.14105
  22  0.175942
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  4.940e-09  7.070e-04  0.000e+00  1.000e+06 ( 1.000e-13)
332        Index:  2.450e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  1.051e+00  1.759e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  8.131e-01  1.410e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 192.244 48.670
Photon Flux Upper Limit: 5.67377870828e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00439880090837 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31393495/likelihoodResults_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6899.32981716
delta logL = -0.0202206006888

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6899.27597379
delta logL = 0.033622761558

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6899.276     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      238 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .36080        6.0965        .29064E-02    .13933E-01
   2  Index         3.9634        1.0066        .40845        .45465E-05
   3  Normalizat    .80275        .94000E-02    .43644E-01   -.18802E-04
   4  Prefactor     1.0579        .12070E-01    .59148E-01   -.38174E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.360798
  Index      = 3.96344
  Normalizat = 0.802751
  Prefactor  = 1.05792
 **********
 **   18 **HESSE 
 **********

 FCN=   6899.276     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      273 TOTAL
                     EDM=   .39E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .36080        264.73        .14821E-03   -1.5696    
   2  Index         3.9634        7.4771        .62213E-02   -.20883    
   3  Normalizat    .80275        .10530        .23202E-03   -.99967    
   4  Prefactor     1.0579        .12577        .26156E-03   -.90823    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.88452e-06
Minuit parameter uncertainties:
  1  19.5471
  2  25.3081
  3  0.105326
  4  0.125802
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) = 6899.27597244
delta logL = 0.0336241206678

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  3.608e-01  1.955e+01  0.000e+00  1.000e+06 ( 1.000e-13)
332        Index:  3.963e+00  2.531e+01  0.000e+00  1.000e+01 (-1.000e+00)
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  1.058e+00  1.258e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  8.028e-01  1.053e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 192.244 48.670

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/31393495/cmap_HighResolution_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.40e-03', job_status='DONE', photon_flux_upper_limit='5.67e-08', time_completed='2026-07-11 19:05:54.138756', job_id='31393495', GAL2='1.06', fit_tolerance='1e-08', EG2='0.80', EG='0.81', time_epoch_completed='1783821954.14', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='3.36e-02', ts2='0.07', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='2173' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jul 11 19:05:54 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  4.940e-09  7.070e-04  0.000e+00  1.000e+06 ( 1.000e-13)
332        Index:  2.450e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  1.051e+00  1.759e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  8.131e-01  1.410e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 192.244 48.670
Photon Flux Upper Limit: 5.67377870828e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00439880090837 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31393514/likelihoodResults_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6899.32981716
delta logL = -0.0202206006888

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6899.27597379
delta logL = 0.033622761558

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6899.276     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      238 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .36080        6.0965        .29064E-02    .13933E-01
   2  Index         3.9634        1.0066        .40845        .45465E-05
   3  Normalizat    .80275        .94000E-02    .43644E-01   -.18802E-04
   4  Prefactor     1.0579        .12070E-01    .59148E-01   -.38174E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.360798
  Index      = 3.96344
  Normalizat = 0.802751
  Prefactor  = 1.05792
 **********
 **   18 **HESSE 
 **********

 FCN=   6899.276     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      273 TOTAL
                     EDM=   .39E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .36080        264.73        .14821E-03   -1.5696    
   2  Index         3.9634        7.4771        .62213E-02   -.20883    
   3  Normalizat    .80275        .10530        .23202E-03   -.99967    
   4  Prefactor     1.0579        .12577        .26156E-03   -.90823    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.88452e-06
Minuit parameter uncertainties:
  1  19.5471
  2  25.3081
  3  0.105326
  4  0.125802
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) = 6899.27597244
delta logL = 0.0336241206678

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  3.608e-01  1.955e+01  0.000e+00  1.000e+06 ( 1.000e-13)
332        Index:  3.963e+00  2.531e+01  0.000e+00  1.000e+01 (-1.000e+00)
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  1.058e+00  1.258e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  8.028e-01  1.053e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 192.244 48.670

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/31393514/cmap_HighResolution_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.40e-03', job_status='DONE', photon_flux_upper_limit='5.67e-08', time_completed='2026-07-11 19:06:03.520995', job_id='31393514', GAL2='1.06', fit_tolerance='1e-08', EG2='0.80', EG='0.81', time_epoch_completed='1783821963.52', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='3.36e-02', ts2='0.07', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='2173' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jul 11 19:06:03 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  4.940e-09  7.070e-04  0.000e+00  1.000e+06 ( 1.000e-13)
332        Index:  2.450e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  1.051e+00  1.759e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  8.131e-01  1.410e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 192.244 48.670
Photon Flux Upper Limit: 5.67377870828e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00439880090837 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31393520/likelihoodResults_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6899.32981716
delta logL = -0.0202206006888

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6899.27597379
delta logL = 0.033622761558

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6899.276     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      238 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .36080        6.0965        .29064E-02    .13933E-01
   2  Index         3.9634        1.0066        .40845        .45465E-05
   3  Normalizat    .80275        .94000E-02    .43644E-01   -.18802E-04
   4  Prefactor     1.0579        .12070E-01    .59148E-01   -.38174E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.360798
  Index      = 3.96344
  Normalizat = 0.802751
  Prefactor  = 1.05792
 **********
 **   18 **HESSE 
 **********

 FCN=   6899.276     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      273 TOTAL
                     EDM=   .39E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .36080        264.73        .14821E-03   -1.5696    
   2  Index         3.9634        7.4771        .62213E-02   -.20883    
   3  Normalizat    .80275        .10530        .23202E-03   -.99967    
   4  Prefactor     1.0579        .12577        .26156E-03   -.90823    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.88452e-06
Minuit parameter uncertainties:
  1  19.5471
  2  25.3081
  3  0.105326
  4  0.125802
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) = 6899.27597244
delta logL = 0.0336241206678

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  3.608e-01  1.955e+01  0.000e+00  1.000e+06 ( 1.000e-13)
332        Index:  3.963e+00  2.531e+01  0.000e+00  1.000e+01 (-1.000e+00)
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  1.058e+00  1.258e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  8.028e-01  1.053e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 192.244 48.670

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/31393520/cmap_HighResolution_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.40e-03', job_status='DONE', photon_flux_upper_limit='5.67e-08', time_completed='2026-07-11 19:06:07.608598', job_id='31393520', GAL2='1.06', fit_tolerance='1e-08', EG2='0.80', EG='0.81', time_epoch_completed='1783821967.61', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='3.36e-02', ts2='0.07', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='2173' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jul 11 19:06:08 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  4.940e-09  7.070e-04  0.000e+00  1.000e+06 ( 1.000e-13)
332        Index:  2.450e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  1.051e+00  1.759e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  8.131e-01  1.410e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 192.244 48.670
Photon Flux Upper Limit: 5.67377870828e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00439880090837 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31393509/likelihoodResults_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6899.32981716
delta logL = -0.0202206006888

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6899.27597379
delta logL = 0.033622761558

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6899.276     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      238 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .36080        6.0965        .29064E-02    .13933E-01
   2  Index         3.9634        1.0066        .40845        .45465E-05
   3  Normalizat    .80275        .94000E-02    .43644E-01   -.18802E-04
   4  Prefactor     1.0579        .12070E-01    .59148E-01   -.38174E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.360798
  Index      = 3.96344
  Normalizat = 0.802751
  Prefactor  = 1.05792
 **********
 **   18 **HESSE 
 **********

 FCN=   6899.276     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      273 TOTAL
                     EDM=   .39E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .36080        264.73        .14821E-03   -1.5696    
   2  Index         3.9634        7.4771        .62213E-02   -.20883    
   3  Normalizat    .80275        .10530        .23202E-03   -.99967    
   4  Prefactor     1.0579        .12577        .26156E-03   -.90823    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.88452e-06
Minuit parameter uncertainties:
  1  19.5471
  2  25.3081
  3  0.105326
  4  0.125802
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) = 6899.27597244
delta logL = 0.0336241206678

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  3.608e-01  1.955e+01  0.000e+00  1.000e+06 ( 1.000e-13)
332        Index:  3.963e+00  2.531e+01  0.000e+00  1.000e+01 (-1.000e+00)
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  1.058e+00  1.258e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  8.028e-01  1.053e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 192.244 48.670

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/31393509/cmap_HighResolution_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.40e-03', job_status='DONE', photon_flux_upper_limit='5.67e-08', time_completed='2026-07-11 19:06:14.217226', job_id='31393509', GAL2='1.06', fit_tolerance='1e-08', EG2='0.80', EG='0.81', time_epoch_completed='1783821974.22', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='3.36e-02', ts2='0.07', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='2173' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jul 11 19:06:14 PDT 2026

ng on...
/lscratch/kocevski/31393548/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits.....................!
real 22.88
user 21.42
sys 0.94

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31393548/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits', '/lscratch/kocevski/31393548/ft2_4FGL_J1248.9+4840_daily_bin2173.fits', expMap='/lscratch/kocevski/31393548/expmap_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits', expCube='/lscratch/kocevski/31393548/ltcube_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31393548/Model_4FGL_J1248.9+4840_daily_bin2173.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1248.9+4840'

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  3.227e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
332        Index:  2.450e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31393548/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits
Spacecraft file(s): /lscratch/kocevski/31393548/ft2_4FGL_J1248.9+4840_daily_bin2173.fits
Exposure map: /lscratch/kocevski/31393548/expmap_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits
Exposure cube: /lscratch/kocevski/31393548/ltcube_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31393548/Model_4FGL_J1248.9+4840_daily_bin2173.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1402       1.0000          .0000       .10000E+07
     2 'Prefactor '    43.126       1.0000          .0000       .10000E+07
     3 'norm      '    3.5769       1.0000          .0000       .10000E+07
     4 'norm      '    4.0990       1.0000          .0000       .10000E+07
     5 'Prefactor '    .55482E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    1.6265       1.0000          .0000       .10000E+07
     7 'norm      '    4.0879       1.0000          .0000       .10000E+07
     8 'Prefactor '    .21703E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .46074E-04   1.0000          .0000       .10000E+07
    10 'norm      '    .27062E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    .20672E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    3.6640       1.0000          .0000       .10000E+07
    13 'Prefactor '    .57037E-03   1.0000          .0000       .10000E+07
    14 'norm      '    4.2394       1.0000          .0000       .10000E+07
    15 'norm      '    .16492E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    106.32       1.0000          .0000       .10000E+07
    17 'Prefactor '    6.0407       1.0000          .0000       .10000E+07
    18 'norm      '    .34010E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    .34277E-03   1.0000          .0000       .10000E+07
    20 'norm      '    3.0432       1.0000          .0000       .10000E+07
    21 'Normalizat'    .81460       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0500       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6899.310     FROM MIGRAD    STATUS=CONVERGED    156 CALLS     1798 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1041        3.0515       -.75036E-06   -.52890E-02
   2  Prefactor     43.808        2.7634        .92022E-06    .13825E-01
   3  norm          3.5796        1.9457       -.14143E-07   -.44978E-03
   4  norm          4.1302        5.4901       -.13861E-06   -.12311E-02
   5  Prefactor     .57065E-07    9.6050        .42034E-05** at limit **
   6  Prefactor     1.6324        3.4279       -.88805E-07    .10348E-01
   7  norm          4.0909        2.0291        .88658E-07    .71847E-02
   8  Prefactor     .49405E-08    24.881       -.22315E-04** at limit **
   9  Prefactor     .44409E-09    9.7746        .28798E-05** at limit **
  10  norm          .55511E-10    6.1755       -.98086E-06** at limit **
  11  Prefactor     .55511E-10    7.2604        .13384E-05** at limit **
  12  Prefactor     3.6472        4.0558       -.33107E-07    .64958E-02
  13  Prefactor     .34917E-07    8.4595        .21308E-05** at limit **
  14  norm          4.0731        7.5235       -.46479E-06   -.11349E-02
  15  norm          .55511E-10    1.2803       -.26404E-06** at limit **
  16  Prefactor     109.26        37.210        .18495E-05    .60442E-02
  17  Prefactor     4.6870        20.858       -.87054E-05    .40290E-03
  18  norm          .22204E-09    14.701       -.65324E-05** at limit **
  19  Prefactor     .13323E-08    31.238        .17399E-04** at limit **
  20  norm          3.0464        1.3787       -.88257E-07   -.19518E-01
  21  Normalizat    .81314        .16323       -.51073E-05   -.39475E-03
  22  Prefactor     1.0506        .20654        .17019E-04   -.19499E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.1041
  Prefactor  = 43.8078
  norm       = 3.57959
  norm       = 4.13024
  Prefactor  = 5.70655e-08
  Prefactor  = 1.63244
  norm       = 4.09089
  Prefactor  = 4.94049e-09
  Prefactor  = 4.44089e-10
  norm       = 5.55112e-11
  Prefactor  = 5.55112e-11
  Prefactor  = 3.6472
  Prefactor  = 3.49165e-08
  norm       = 4.07308
  norm       = 5.55112e-11
  Prefactor  = 109.258
  Prefactor  = 4.68703
  norm       = 2.22045e-10
  Prefactor  = 1.33227e-09
  norm       = 3.04641
  Normalizat = 0.81314
  Prefactor  = 1.0506
 **********
 **   18 **HESSE 
 **********

 FCN=   6899.310     FROM HESSE     STATUS=OK           398 CALLS     2196 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1041        3.3431        .57181E-03   -1.5673    
   2  Prefactor     43.808        23.137        .15229E-03   -1.5576    
   3  norm          3.5796        1.9490        .53410E-03   -1.5670    
   4  norm          4.1302        5.5004        .49770E-03   -1.5667    
   5  Prefactor     .57065E-07    17.815        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.6324        3.4612        .82914E-03   -1.5682    
   7  norm          4.0909        2.0334        .49839E-03   -1.5668    
   8  Prefactor     .49405E-08    25.197        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .44409E-09    9.7793        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .55511E-10    .92316        .29858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55511E-10    7.2542        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.6472        4.0615        .52745E-03   -1.5670    
  13  Prefactor     .34917E-07    18.170        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.0731        7.5417        .48914E-03   -1.5668    
  15  norm          .55511E-10    1.2712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     109.26        39.738        .96990E-04   -1.5499    
  17  Prefactor     4.6870        42.973        .40828E-03   -1.5665    
  18  norm          .22204E-09    2.7297        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .13323E-08    31.936        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.0464        1.3874        .58136E-03   -1.5673    
  21  Normalizat    .81314        .14099        .43801E-01   -.99583    
  22  Prefactor     1.0506        .17585        .59325E-01   -.91061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49421e-07
Minuit parameter uncertainties:
  1  3.34308
  2  23.1368
  3  1.94901
  4  5.50046
  5  0.0020162
  6  3.46117
  7  2.03344
  8  0.000707
  9  0.000131762
  10  1.31463e-05
  11  4.85376e-05
  12  4.06146
  13  0.00159356
  14  7.54173
  15  1.76348e-05
  16  39.7384
  17  28.3845
  18  4.70369e-05
  19  0.000409453
  20  1.3874
  21  0.14105
  22  0.175942
e=/lscratch/kocevski/31393730/ltcube_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Working on file /lscratch/kocevski/31393730/ft2_4FGL_J1248.9+4840_daily_bin2173.fits
.....................!
real 8.91
user 8.26
sys 0.19

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/31393730/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits evtable="EVENTS" scfile=/lscratch/kocevski/31393730/ft2_4FGL_J1248.9+4840_daily_bin2173.fits sctable="SC_DATA" expcube=/lscratch/kocevski/31393730/ltcube_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits outfile=/lscratch/kocevski/31393730/expmap_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

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

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/31393730/ltcube_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits
.....................!
real 71.79
user 66.82
sys 4.09

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

Setting source of interest to:
4FGL J1248.9+4840 @ 192.244 48.67

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/31393730/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits scfile=/lscratch/kocevski/31393730/ft2_4FGL_J1248.9+4840_daily_bin2173.fits outfile=/lscratch/kocevski/31393730/cmap_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=192.244 yref=48.67 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.73
user 0.21
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/31393730/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits scfile=/lscratch/kocevski/31393730/ft2_4FGL_J1248.9+4840_daily_bin2173.fits outfile=/lscratch/kocevski/31393730/cmap_HighResolution_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=192.244 yref=48.67 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.68
user 0.21
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/31393730/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits evtable="EVENTS" scfile=/lscratch/kocevski/31393730/ft2_4FGL_J1248.9+4840_daily_bin2173.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/31393730/Model_4FGL_J1248.9+4840_daily_bin2173.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
WorkiDone.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  4.940e-09  7.070e-04  0.000e+00  1.000e+06 ( 1.000e-13)
332        Index:  2.450e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  1.051e+00  1.759e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  8.131e-01  1.410e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 192.244 48.670
Photon Flux Upper Limit: 5.67377870828e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00439880090837 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31393548/likelihoodResults_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6899.32981716
delta logL = -0.0202206006888

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6899.27597379
delta logL = 0.033622761558

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6899.276     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      238 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .36080        6.0965        .29064E-02    .13933E-01
   2  Index         3.9634        1.0066        .40845        .45465E-05
   3  Normalizat    .80275        .94000E-02    .43644E-01   -.18802E-04
   4  Prefactor     1.0579        .12070E-01    .59148E-01   -.38174E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.360798
  Index      = 3.96344
  Normalizat = 0.802751
  Prefactor  = 1.05792
 **********
 **   18 **HESSE 
 **********

 FCN=   6899.276     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      273 TOTAL
                     EDM=   .39E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .36080        264.73        .14821E-03   -1.5696    
   2  Index         3.9634        7.4771        .62213E-02   -.20883    
   3  Normalizat    .80275        .10530        .23202E-03   -.99967    
   4  Prefactor     1.0579        .12577        .26156E-03   -.90823    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.88452e-06
Minuit parameter uncertainties:
  1  19.5471
  2  25.3081
  3  0.105326
  4  0.125802
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) = 6899.27597244
delta logL = 0.0336241206678

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  3.608e-01  1.955e+01  0.000e+00  1.000e+06 ( 1.000e-13)
332        Index:  3.963e+00  2.531e+01  0.000e+00  1.000e+01 (-1.000e+00)
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  1.058e+00  1.258e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  8.028e-01  1.053e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 192.244 48.670

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/31393548/cmap_HighResolution_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.40e-03', job_status='DONE', photon_flux_upper_limit='5.67e-08', time_completed='2026-07-11 19:07:38.091955', job_id='31393548', GAL2='1.06', fit_tolerance='1e-08', EG2='0.80', EG='0.81', time_epoch_completed='1783822058.09', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='3.36e-02', ts2='0.07', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='2173' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jul 11 19:07:38 PDT 2026

ng on...
/lscratch/kocevski/31393730/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits.....................!
real 23.93
user 22.34
sys 1.02

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/31393730/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits', '/lscratch/kocevski/31393730/ft2_4FGL_J1248.9+4840_daily_bin2173.fits', expMap='/lscratch/kocevski/31393730/expmap_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits', expCube='/lscratch/kocevski/31393730/ltcube_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/31393730/Model_4FGL_J1248.9+4840_daily_bin2173.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1248.9+4840'

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  3.227e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
332        Index:  2.450e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/31393730/ft1_filtered_4FGL_J1248.9+4840_daily_bin2173.fits
Spacecraft file(s): /lscratch/kocevski/31393730/ft2_4FGL_J1248.9+4840_daily_bin2173.fits
Exposure map: /lscratch/kocevski/31393730/expmap_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits
Exposure cube: /lscratch/kocevski/31393730/ltcube_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/31393730/Model_4FGL_J1248.9+4840_daily_bin2173.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1402       1.0000          .0000       .10000E+07
     2 'Prefactor '    43.126       1.0000          .0000       .10000E+07
     3 'norm      '    3.5769       1.0000          .0000       .10000E+07
     4 'norm      '    4.0990       1.0000          .0000       .10000E+07
     5 'Prefactor '    .55482E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    1.6265       1.0000          .0000       .10000E+07
     7 'norm      '    4.0879       1.0000          .0000       .10000E+07
     8 'Prefactor '    .21703E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .46074E-04   1.0000          .0000       .10000E+07
    10 'norm      '    .27062E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    .20672E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    3.6640       1.0000          .0000       .10000E+07
    13 'Prefactor '    .57037E-03   1.0000          .0000       .10000E+07
    14 'norm      '    4.2394       1.0000          .0000       .10000E+07
    15 'norm      '    .16492E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    106.32       1.0000          .0000       .10000E+07
    17 'Prefactor '    6.0407       1.0000          .0000       .10000E+07
    18 'norm      '    .34010E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    .34277E-03   1.0000          .0000       .10000E+07
    20 'norm      '    3.0432       1.0000          .0000       .10000E+07
    21 'Normalizat'    .81460       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0500       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6899.310     FROM MIGRAD    STATUS=CONVERGED    156 CALLS     1798 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1041        3.0515       -.75036E-06   -.52890E-02
   2  Prefactor     43.808        2.7634        .92022E-06    .13825E-01
   3  norm          3.5796        1.9457       -.14143E-07   -.44978E-03
   4  norm          4.1302        5.4901       -.13861E-06   -.12311E-02
   5  Prefactor     .57065E-07    9.6050        .42034E-05** at limit **
   6  Prefactor     1.6324        3.4279       -.88805E-07    .10348E-01
   7  norm          4.0909        2.0291        .88658E-07    .71847E-02
   8  Prefactor     .49405E-08    24.881       -.22315E-04** at limit **
   9  Prefactor     .44409E-09    9.7746        .28798E-05** at limit **
  10  norm          .55511E-10    6.1755       -.98086E-06** at limit **
  11  Prefactor     .55511E-10    7.2604        .13384E-05** at limit **
  12  Prefactor     3.6472        4.0558       -.33107E-07    .64958E-02
  13  Prefactor     .34917E-07    8.4595        .21308E-05** at limit **
  14  norm          4.0731        7.5235       -.46479E-06   -.11349E-02
  15  norm          .55511E-10    1.2803       -.26404E-06** at limit **
  16  Prefactor     109.26        37.210        .18495E-05    .60442E-02
  17  Prefactor     4.6870        20.858       -.87054E-05    .40290E-03
  18  norm          .22204E-09    14.701       -.65324E-05** at limit **
  19  Prefactor     .13323E-08    31.238        .17399E-04** at limit **
  20  norm          3.0464        1.3787       -.88257E-07   -.19518E-01
  21  Normalizat    .81314        .16323       -.51073E-05   -.39475E-03
  22  Prefactor     1.0506        .20654        .17019E-04   -.19499E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.1041
  Prefactor  = 43.8078
  norm       = 3.57959
  norm       = 4.13024
  Prefactor  = 5.70655e-08
  Prefactor  = 1.63244
  norm       = 4.09089
  Prefactor  = 4.94049e-09
  Prefactor  = 4.44089e-10
  norm       = 5.55112e-11
  Prefactor  = 5.55112e-11
  Prefactor  = 3.6472
  Prefactor  = 3.49165e-08
  norm       = 4.07308
  norm       = 5.55112e-11
  Prefactor  = 109.258
  Prefactor  = 4.68703
  norm       = 2.22045e-10
  Prefactor  = 1.33227e-09
  norm       = 3.04641
  Normalizat = 0.81314
  Prefactor  = 1.0506
 **********
 **   18 **HESSE 
 **********

 FCN=   6899.310     FROM HESSE     STATUS=OK           398 CALLS     2196 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1041        3.3431        .57181E-03   -1.5673    
   2  Prefactor     43.808        23.137        .15229E-03   -1.5576    
   3  norm          3.5796        1.9490        .53410E-03   -1.5670    
   4  norm          4.1302        5.5004        .49770E-03   -1.5667    
   5  Prefactor     .57065E-07    17.815        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.6324        3.4612        .82914E-03   -1.5682    
   7  norm          4.0909        2.0334        .49839E-03   -1.5668    
   8  Prefactor     .49405E-08    25.197        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .44409E-09    9.7793        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .55511E-10    .92316        .29858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55511E-10    7.2542        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.6472        4.0615        .52745E-03   -1.5670    
  13  Prefactor     .34917E-07    18.170        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.0731        7.5417        .48914E-03   -1.5668    
  15  norm          .55511E-10    1.2712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     109.26        39.738        .96990E-04   -1.5499    
  17  Prefactor     4.6870        42.973        .40828E-03   -1.5665    
  18  norm          .22204E-09    2.7297        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .13323E-08    31.936        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.0464        1.3874        .58136E-03   -1.5673    
  21  Normalizat    .81314        .14099        .43801E-01   -.99583    
  22  Prefactor     1.0506        .17585        .59325E-01   -.91061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49421e-07
Minuit parameter uncertainties:
  1  3.34308
  2  23.1368
  3  1.94901
  4  5.50046
  5  0.0020162
  6  3.46117
  7  2.03344
  8  0.000707
  9  0.000131762
  10  1.31463e-05
  11  4.85376e-05
  12  4.06146
  13  0.00159356
  14  7.54173
  15  1.76348e-05
  16  39.7384
  17  28.3845
  18  4.70369e-05
  19  0.000409453
  20  1.3874
  21  0.14105
  22  0.175942
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  4.940e-09  7.070e-04  0.000e+00  1.000e+06 ( 1.000e-13)
332        Index:  2.450e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  1.051e+00  1.759e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  8.131e-01  1.410e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 192.244 48.670
Photon Flux Upper Limit: 5.67377870828e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00439880090837 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/31393730/likelihoodResults_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6899.32981716
delta logL = -0.0202206006888

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6899.27597379
delta logL = 0.033622761558

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6899.276     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      238 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .36080        6.0965        .29064E-02    .13933E-01
   2  Index         3.9634        1.0066        .40845        .45465E-05
   3  Normalizat    .80275        .94000E-02    .43644E-01   -.18802E-04
   4  Prefactor     1.0579        .12070E-01    .59148E-01   -.38174E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.360798
  Index      = 3.96344
  Normalizat = 0.802751
  Prefactor  = 1.05792
 **********
 **   18 **HESSE 
 **********

 FCN=   6899.276     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      273 TOTAL
                     EDM=   .39E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .36080        264.73        .14821E-03   -1.5696    
   2  Index         3.9634        7.4771        .62213E-02   -.20883    
   3  Normalizat    .80275        .10530        .23202E-03   -.99967    
   4  Prefactor     1.0579        .12577        .26156E-03   -.90823    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.88452e-06
Minuit parameter uncertainties:
  1  19.5471
  2  25.3081
  3  0.105326
  4  0.125802
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) = 6899.27597244
delta logL = 0.0336241206678

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  3.608e-01  1.955e+01  0.000e+00  1.000e+06 ( 1.000e-13)
332        Index:  3.963e+00  2.531e+01  0.000e+00  1.000e+01 (-1.000e+00)
333        Scale:  9.069e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
676    Prefactor:  1.058e+00  1.258e-01  0.000e+00  1.000e+01 ( 1.000e+00)
677        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
678        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
675   Normalization:  8.028e-01  1.053e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 192.244 48.670

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/31393730/cmap_HighResolution_802569601_802828801_4FGL_J1248.9+4840_daily_bin2173.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.40e-03', job_status='DONE', photon_flux_upper_limit='5.67e-08', time_completed='2026-07-11 19:09:46.631075', job_id='31393730', GAL2='1.06', fit_tolerance='1e-08', EG2='0.80', EG='0.81', time_epoch_completed='1783822186.63', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='3.36e-02', ts2='0.07', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='2173' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jul 11 19:09:46 PDT 2026

