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

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

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

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

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

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

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

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

Working on...
/lscratch/kocevski/34163443/ft1_filtered_4FGL_J1248.9+4840_weekly_bin939.fits.....................!
real 44.56
user 42.76
sys 0.98

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/34163443/ft1_filtered_4FGL_J1248.9+4840_weekly_bin939.fits', '/lscratch/kocevski/34163443/ft2_4FGL_J1248.9+4840_weekly_bin939.fits', expMap='/lscratch/kocevski/34163443/expmap_806889601_807494401_4FGL_J1248.9+4840_weekly_bin939.fits', expCube='/lscratch/kocevski/34163443/ltcube_806889601_807494401_4FGL_J1248.9+4840_weekly_bin939.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/34163443/Model_4FGL_J1248.9+4840_weekly_bin939.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/34163443/ft1_filtered_4FGL_J1248.9+4840_weekly_bin939.fits
Spacecraft file(s): /lscratch/kocevski/34163443/ft2_4FGL_J1248.9+4840_weekly_bin939.fits
Exposure map: /lscratch/kocevski/34163443/expmap_806889601_807494401_4FGL_J1248.9+4840_weekly_bin939.fits
Exposure cube: /lscratch/kocevski/34163443/ltcube_806889601_807494401_4FGL_J1248.9+4840_weekly_bin939.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/34163443/Model_4FGL_J1248.9+4840_weekly_bin939.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) = 15876.2450713

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .73935E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    51.377       1.0000          .0000       .10000E+07
     3 'norm      '    .43003       1.0000          .0000       .10000E+07
     4 'norm      '    2.8120       1.0000          .0000       .10000E+07
     5 'Prefactor '    12.170       1.0000          .0000       .10000E+07
     6 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
     7 'norm      '    5.7723       1.0000          .0000       .10000E+07
     8 'Prefactor '    .69281E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .22260E-07   1.0000          .0000       .10000E+07
    10 'norm      '    2.2147       1.0000          .0000       .10000E+07
    11 'Prefactor '    1.1385       1.0000          .0000       .10000E+07
    12 'Prefactor '    9.0241       1.0000          .0000       .10000E+07
    13 'Prefactor '    7.7423       1.0000          .0000       .10000E+07
    14 'norm      '    15.681       1.0000          .0000       .10000E+07
    15 'norm      '    .43854E-08   1.0000          .0000       .10000E+07
    16 'Prefactor '    33.068       1.0000          .0000       .10000E+07
    17 'Prefactor '    20.469       1.0000          .0000       .10000E+07
    18 'norm      '    .39690E-07   1.0000          .0000       .10000E+07
    19 'Prefactor '    .17458E-03   1.0000          .0000       .10000E+07
    20 'norm      '    2.5541       1.0000          .0000       .10000E+07
    21 'Normalizat'    .78972       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1538       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=   15873.84     FROM MIGRAD    STATUS=CONVERGED    103 CALLS     1001 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .64264       -.23368E-07** at limit **
   2  Prefactor     51.501        1.2866        .57807E-08    .34606E-02
   3  norm          .42998        .61221       -.30289E-07    .32308E-02
   4  norm          2.8340        3.8559        .20650E-06   -.57547E-03
   5  Prefactor     11.957        2.5221       -.37239E-08    .54689E-01
   6  Prefactor      .0000        .71358        .26297E-07** at limit **
   7  norm          5.7726        1.4531       -.35301E-08   -.48616E-03
   8  Prefactor     .29809E-07    9.8670       -.15438E-06** at limit **
   9  Prefactor      .0000        3.0356        .78290E-07** at limit **
  10  norm          2.2146        1.0576        .11328E-06    .30860E-02
  11  Prefactor     1.1378        3.1482       -.16868E-07   -.52094E-03
  12  Prefactor     9.0237        4.8772       -.45567E-08   -.16659E-01
  13  Prefactor     7.6873        3.8408       -.83295E-07    .61351E-01
  14  norm          15.728        6.8928       -.91495E-07   -.80963E-01
  15  norm           .0000        .99263        .20110E-06** at limit **
  16  Prefactor     33.030        1.6779        .14645E-07   -.11655    
  17  Prefactor     20.531        1.7391        .18143E-07   -.85562E-01
  18  norm           .0000        .54409        .16101E-06** at limit **
  19  Prefactor     .17986E-07    12.176       -.31853E-06** at limit **
  20  norm          2.5539        .81252        .42712E-07    .30743E-02
  21  Normalizat    .78997        .11077        .20723E-05    .17456E-04
  22  Prefactor     1.1536        .14160       -.35986E-05   -.89561E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 51.501
  norm       = 0.429983
  norm       = 2.83395
  Prefactor  = 11.9566
  Prefactor  = 0
  norm       = 5.77261
  Prefactor  = 2.98095e-08
  Prefactor  = 0
  norm       = 2.21462
  Prefactor  = 1.13783
  Prefactor  = 9.02369
  Prefactor  = 7.6873
  norm       = 15.7278
  norm       = 0
  Prefactor  = 33.0295
  Prefactor  = 20.5311
  norm       = 0
  Prefactor  = 1.79856e-08
  norm       = 2.55393
  Normalizat = 0.789966
  Prefactor  = 1.15357
 **********
 **   18 **HESSE 
 **********

 FCN=   15873.84     FROM HESSE     STATUS=OK           392 CALLS     1393 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .64266        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     51.501        17.921        .13952E-03   -1.5564    
   3  norm          .42998        .79481        .27146E-02   -1.5695    
   4  norm          2.8340        4.1795        .60633E-03   -1.5674    
   5  Prefactor     11.957        14.839        .28690E-03   -1.5639    
   6  Prefactor      .0000        .71348        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.7726        1.4531        .41781E-03   -1.5660    
   8  Prefactor     .29809E-07    10.032        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        3.0486        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.2146        1.0603        .69082E-04   -1.5678    
  11  Prefactor     1.1378        3.2780        .10902E-02   -1.5687    
  12  Prefactor     9.0237        4.8981        .33340E-03   -1.5648    
  13  Prefactor     7.6873        9.0984        .36014E-03   -1.5653    
  14  norm          15.728        7.6292        .25266E-03   -1.5629    
  15  norm           .0000        .98293        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     33.030        16.005        .17392E-03   -1.5593    
  17  Prefactor     20.531        15.782        .22110E-03   -1.5617    
  18  norm           .0000        .54266        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .17986E-07    12.302        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.5539        .82006        .63859E-03   -1.5676    
  21  Normalizat    .78997        .96967E-01    .43476E-01   -1.0044    
  22  Prefactor     1.1536        .12025        .58404E-01   -.87772    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.99346e-07
Minuit parameter uncertainties:
  1  2.00574e-06
  2  17.921
  3  0.79481
  4  4.17954
  5  14.8395
  6  1.48788e-06
  7  1.45313
  8  0.00109321
  9  1.57813e-05
  10  1.06032
  11  3.27804
  12  4.89811
  13  9.09841
  14  7.62924
  15  7.08452e-06
  16  16.0046
  17  15.7823
  18  5.64254e-06
  19  0.000940816
  20  0.820059
  21  0.0969886
  22  0.120283
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  2.981e-08  1.093e-03  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.154e+00  1.203e-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:  7.900e-01  9.699e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/lscratch/kocevski/34163443/likelihoodResults_806889601_807494401_4FGL_J1248.9+4840_weekly_bin939.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) = 15873.8883972
delta logL = -0.0500911611052

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15873.6561222
delta logL = 0.182183835926

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .90744E-01   1.0000          .0000       .10000E+07
     2 'Index     '    5.0508       1.0000          .0000       10.000    
     3 'Normalizat'    .76863       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1705       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=   15873.66     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      241 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .93327E-01    .80779        .13895E-02** at limit **
   2  Index         5.0374        1.7561        .20137        .19252E-03
   3  Normalizat    .76866        .99648E-02    .43200E-01    .31026E-04
   4  Prefactor     1.1705        .12844E-01    .58042E-01   -.10740E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0933267
  Index      = 5.0374
  Normalizat = 0.768664
  Prefactor  = 1.17046
 **********
 **   18 **HESSE 
 **********

 FCN=   15873.66     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      276 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .93327E-01    11.955        .52590E-04   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.0374        7.0708        .10500E-01    .74793E-02
   3  Normalizat    .76866        .61521E-01    .24187E-03   -1.0124    
   4  Prefactor     1.1705        .77479E-01    .25667E-03   -.87245    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.10363e-07
Minuit parameter uncertainties:
  1  2.11254
  2  10.9305
  3  0.0615266
  4  0.0774865
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) = 15873.6561129
delta logL = 0.182193217343

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  9.333e-02  2.113e+00  0.000e+00  1.000e+06 ( 1.000e-13)
332        Index:  5.037e+00  1.093e+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.170e+00  7.749e-02  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:  7.687e-01  6.153e-02  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/34163443/cmap_HighResolution_806889601_807494401_4FGL_J1248.9+4840_weekly_bin939.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.68e-03', job_status='DONE', photon_flux_upper_limit='3.46e-08', time_completed='2026-08-04 10:25:14.526642', job_id='34163443', GAL2='1.17', fit_tolerance='1e-08', EG2='0.77', EG='0.79', time_epoch_completed='1785864314.53', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='1.82e-01', ts2='0.39', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='939' AND source_name='4FGL J1248.9+4840' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Aug  4 10:25:14 PDT 2026

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


Performing analysis on: 4FGL_J1248.9+4840_weekly_bin939
RA = 192.244, Dec = 48.67
tmin = 806889601, tmax = 807494401
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='34163733', job_status='RUN', time_executed='2026-08-04 10:20:11.435917', time_epoch_executed='1785864011.44' WHERE source_name='4FGL J1248.9+4840' and cadence='weekly' and bin_id='939'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/34163733

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/34163733/ft1_4FGL_J1248.9+4840_weekly_bin939.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/34163733/ft2_4FGL_J1248.9+4840_weekly_bin939.fits


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

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

Done.
real 4.01
user 3.25
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/34163733/ft2_4FGL_J1248.9+4840_weekly_bin939.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/34163733/ft1_filteredMKT_4FGL_J1248.9+4840_weekly_bin939.fits evtable="EVENTS" outfile="/lscratch/kocevski/34163733/ft1_filtered_4FGL_J1248.9+4840_weekly_bin939.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: 1448

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/34163733/ft1_filtered_4FGL_J1248.9+4840_weekly_bin939.fits" evtable="EVENTS" scfile=/lscratch/kocevski/34163733/ft2_4FGL_J1248.9+4840_weekly_bin939.fits sctable="SC_DATA" outnumber of points = 17478
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1248.9+4840_weekly_bin939
RA = 192.244, Dec = 48.67
tmin = 806889601, tmax = 807494401
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='34163759', job_status='RUN', time_executed='2026-08-04 10:21:10.490716', time_epoch_executed='1785864070.49' WHERE source_name='4FGL J1248.9+4840' and cadence='weekly' and bin_id='939'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/34163759

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/34163759/ft1_4FGL_J1248.9+4840_weekly_bin939.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/34163759/ft2_4FGL_J1248.9+4840_weekly_bin939.fits


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

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

Done.
real 4.16
user 3.48
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/34163759/ft2_4FGL_J1248.9+4840_weekly_bin939.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/34163759/ft1_filteredMKT_4FGL_J1248.9+4840_weekly_bin939.fits evtable="EVENTS" outfile="/lscratch/kocevski/34163759/ft1_filtered_4FGL_J1248.9+4840_weekly_bin939.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.76
user 0.21
sys 0.13

Number of photons that the gtmktime cut: 1448

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/34163759/ft1_filtered_4FGL_J1248.9+4840_weekly_bin939.fits" evtable="EVENTS" scfile=/lscratch/kocevski/34163759/ft2_4FGL_J1248.9+4840_weekly_bin939.fits sctable="SC_DATA" outnumber of points = 17478
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1248.9+4840_weekly_bin939
RA = 192.244, Dec = 48.67
tmin = 806889601, tmax = 807494401
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='34163786', job_status='RUN', time_executed='2026-08-04 10:21:50.580380', time_epoch_executed='1785864110.58' WHERE source_name='4FGL J1248.9+4840' and cadence='weekly' and bin_id='939'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/34163786

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/34163786/ft1_4FGL_J1248.9+4840_weekly_bin939.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/34163786/ft2_4FGL_J1248.9+4840_weekly_bin939.fits


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

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

Done.
real 4.00
user 3.08
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/34163786/ft2_4FGL_J1248.9+4840_weekly_bin939.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/34163786/ft1_filteredMKT_4FGL_J1248.9+4840_weekly_bin939.fits evtable="EVENTS" outfile="/lscratch/kocevski/34163786/ft1_filtered_4FGL_J1248.9+4840_weekly_bin939.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.93
user 0.18
sys 0.14

Number of photons that the gtmktime cut: 1448

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/34163786/ft1_filtered_4FGL_J1248.9+4840_weekly_bin939.fits" evtable="EVENTS" scfile=/lscratch/kocevski/34163786/ft2_4FGL_J1248.9+4840_weekly_bin939.fits sctable="SC_DATA" outfile=/lscratch/kocevski/34163733/ltcube_806889601_807494401_4FGL_J1248.9+4840_weekly_bin939.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/34163733/ft2_4FGL_J1248.9+4840_weekly_bin939.fits
.....................!
real 18.38
user 17.48
sys 0.20

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/34163733/ft1_filtered_4FGL_J1248.9+4840_weekly_bin939.fits evtable="EVENTS" scfile=/lscratch/kocevski/34163733/ft2_4FGL_J1248.9+4840_weekly_bin939.fits sctable="SC_DATA" expcube=/lscratch/kocevski/34163733/ltcube_806889601_807494401_4FGL_J1248.9+4840_weekly_bin939.fits outfile=/lscratch/kocevski/34163733/expmap_806889601_807494401_4FGL_J1248.9+4840_weekly_bin939.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/34163733/ltcube_806889601_807494401_4FGL_J1248.9+4840_weekly_bin939.fits
.....................!
real 61.64
user 56.94
sys 3.64

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/34163733/ft1_filtered_4FGL_J1248.9+4840_weekly_bin939.fits scfile=/lscratch/kocevski/34163733/ft2_4FGL_J1248.9+4840_weekly_bin939.fits outfile=/lscratch/kocevski/34163733/cmap_806889601_807494401_4FGL_J1248.9+4840_weekly_bin939.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 1.04
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/34163733/ft1_filtered_4FGL_J1248.9+4840_weekly_bin939.fits scfile=/lscratch/kocevski/34163733/ft2_4FGL_J1248.9+4840_weekly_bin939.fits outfile=/lscratch/kocevski/34163733/cmap_HighResolution_806889601_807494401_4FGL_J1248.9+4840_weekly_bin939.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.93
user 0.23
sys 0.12

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

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

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


Performing analysis on: 4FGL_J1248.9+4840_weekly_bin939
RA = 192.244, Dec = 48.67
tmin = 806889601, tmax = 807494401
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='34163791', job_status='RUN', time_executed='2026-08-04 10:22:11.257401', time_epoch_executed='1785864131.26' WHERE source_name='4FGL J1248.9+4840' and cadence='weekly' and bin_id='939'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/34163791

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/34163791/ft1_4FGL_J1248.9+4840_weekly_bin939.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/34163791/ft2_4FGL_J1248.9+4840_weekly_bin939.fits


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

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

Done.
real 4.10
user 3.28
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/34163791/ft2_4FGL_J1248.9+4840_weekly_bin939.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/34163791/ft1_filteredMKT_4FGL_J1248.9+4840_weekly_bin939.fits evtable="EVENTS" outfile="/lscratch/kocevski/34163791/ft1_filtered_4FGL_J1248.9+4840_weekly_bin939.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.88
user 0.20
sys 0.14

Number of photons that the gtmktime cut: 1448

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/34163791/ft1_filtered_4FGL_J1248.9+4840_weekly_bin939.fits" evtable="EVENTS" scfile=/lscratch/kocevski/34163791/ft2_4FGL_J1248.9+4840_weekly_bin939.fits sctable="SC_DATA" outfile=/lscratch/kocevski/34163759/ltcube_806889601_807494401_4FGL_J1248.9+4840_weekly_bin939.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/34163759/ft2_4FGL_J1248.9+4840_weekly_bin939.fits
.....................!
real 18.63
user 17.69
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/34163759/ft1_filtered_4FGL_J1248.9+4840_weekly_bin939.fits evtable="EVENTS" scfile=/lscratch/kocevski/34163759/ft2_4FGL_J1248.9+4840_weekly_bin939.fits sctable="SC_DATA" expcube=/lscratch/kocevski/34163759/ltcube_806889601_807494401_4FGL_J1248.9+4840_weekly_bin939.fits outfile=/lscratch/kocevski/34163759/expmap_806889601_807494401_4FGL_J1248.9+4840_weekly_bin939.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/34163759/ltcube_806889601_807494401_4FGL_J1248.9+4840_weekly_bin939.fits
.....................!
real 67.02
user 62.18
sys 3.87

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/34163759/ft1_filtered_4FGL_J1248.9+4840_weekly_bin939.fits scfile=/lscratch/kocevski/34163759/ft2_4FGL_J1248.9+4840_weekly_bin939.fits outfile=/lscratch/kocevski/34163759/cmap_806889601_807494401_4FGL_J1248.9+4840_weekly_bin939.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.89
user 0.23
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/34163759/ft1_filtered_4FGL_J1248.9+4840_weekly_bin939.fits scfile=/lscratch/kocevski/34163759/ft2_4FGL_J1248.9+4840_weekly_bin939.fits outfile=/lscratch/kocevski/34163759/cmap_HighResolution_806889601_807494401_4FGL_J1248.9+4840_weekly_bin939.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.84
user 0.23
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/34163759/ft1_filtered_4FGL_J1248.9+4840_weekly_bin939.fits evtable="EVENTS" scfile=/lscratch/kocevski/34163759/ft2_4FGL_J1248.9+4840_weekly_bin939.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/34163759/Model_4FGL_J1248.9+4840_weekly_bin939.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
file=/lscratch/kocevski/34163786/ltcube_806889601_807494401_4FGL_J1248.9+4840_weekly_bin939.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/34163786/ft2_4FGL_J1248.9+4840_weekly_bin939.fits
.....................!
real 16.75
user 15.94
sys 0.21

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/34163786/ft1_filtered_4FGL_J1248.9+4840_weekly_bin939.fits evtable="EVENTS" scfile=/lscratch/kocevski/34163786/ft2_4FGL_J1248.9+4840_weekly_bin939.fits sctable="SC_DATA" expcube=/lscratch/kocevski/34163786/ltcube_806889601_807494401_4FGL_J1248.9+4840_weekly_bin939.fits outfile=/lscratch/kocevski/34163786/expmap_806889601_807494401_4FGL_J1248.9+4840_weekly_bin939.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/34163786/ltcube_806889601_807494401_4FGL_J1248.9+4840_weekly_bin939.fits
.....................!
real 59.86
user 55.58
sys 3.53

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/34163786/ft1_filtered_4FGL_J1248.9+4840_weekly_bin939.fits scfile=/lscratch/kocevski/34163786/ft2_4FGL_J1248.9+4840_weekly_bin939.fits outfile=/lscratch/kocevski/34163786/cmap_806889601_807494401_4FGL_J1248.9+4840_weekly_bin939.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.83
user 0.20
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/34163786/ft1_filtered_4FGL_J1248.9+4840_weekly_bin939.fits scfile=/lscratch/kocevski/34163786/ft2_4FGL_J1248.9+4840_weekly_bin939.fits outfile=/lscratch/kocevski/34163786/cmap_HighResolution_806889601_807494401_4FGL_J1248.9+4840_weekly_bin939.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.86
user 0.20
sys 0.12

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

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

adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/34163733/ft1_filtered_4FGL_J1248.9+4840_weekly_bin939.fits.....................!
real 40.71
user 38.95
sys 0.85

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/34163733/ft1_filtered_4FGL_J1248.9+4840_weekly_bin939.fits', '/lscratch/kocevski/34163733/ft2_4FGL_J1248.9+4840_weekly_bin939.fits', expMap='/lscratch/kocevski/34163733/expmap_806889601_807494401_4FGL_J1248.9+4840_weekly_bin939.fits', expCube='/lscratch/kocevski/34163733/ltcube_806889601_807494401_4FGL_J1248.9+4840_weekly_bin939.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/34163733/Model_4FGL_J1248.9+4840_weekly_bin939.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/34163733/ft1_filtered_4FGL_J1248.9+4840_weekly_bin939.fits
Spacecraft file(s): /lscratch/kocevski/34163733/ft2_4FGL_J1248.9+4840_weekly_bin939.fits
Exposure map: /lscratch/kocevski/34163733/expmap_806889601_807494401_4FGL_J1248.9+4840_weekly_bin939.fits
Exposure cube: /lscratch/kocevski/34163733/ltcube_806889601_807494401_4FGL_J1248.9+4840_weekly_bin939.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/34163733/Model_4FGL_J1248.9+4840_weekly_bin939.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) = 15876.2450713

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .73935E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    51.377       1.0000          .0000       .10000E+07
     3 'norm      '    .43003       1.0000          .0000       .10000E+07
     4 'norm      '    2.8120       1.0000          .0000       .10000E+07
     5 'Prefactor '    12.170       1.0000          .0000       .10000E+07
     6 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
     7 'norm      '    5.7723       1.0000          .0000       .10000E+07
     8 'Prefactor '    .69281E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .22260E-07   1.0000          .0000       .10000E+07
    10 'norm      '    2.2147       1.0000          .0000       .10000E+07
    11 'Prefactor '    1.1385       1.0000          .0000       .10000E+07
    12 'Prefactor '    9.0241       1.0000          .0000       .10000E+07
    13 'Prefactor '    7.7423       1.0000          .0000       .10000E+07
    14 'norm      '    15.681       1.0000          .0000       .10000E+07
    15 'norm      '    .43854E-08   1.0000          .0000       .10000E+07
    16 'Prefactor '    33.068       1.0000          .0000       .10000E+07
    17 'Prefactor '    20.469       1.0000          .0000       .10000E+07
    18 'norm      '    .39690E-07   1.0000          .0000       .10000E+07
    19 'Prefactor '    .17458E-03   1.0000          .0000       .10000E+07
    20 'norm      '    2.5541       1.0000          .0000       .10000E+07
    21 'Normalizat'    .78972       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1538       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=   15873.84     FROM MIGRAD    STATUS=CONVERGED    103 CALLS     1001 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .64264       -.23368E-07** at limit **
   2  Prefactor     51.501        1.2866        .57807E-08    .34606E-02
   3  norm          .42998        .61221       -.30289E-07    .32308E-02
   4  norm          2.8340        3.8559        .20650E-06   -.57547E-03
   5  Prefactor     11.957        2.5221       -.37239E-08    .54689E-01
   6  Prefactor      .0000        .71358        .26297E-07** at limit **
   7  norm          5.7726        1.4531       -.35301E-08   -.48616E-03
   8  Prefactor     .29809E-07    9.8670       -.15438E-06** at limit **
   9  Prefactor      .0000        3.0356        .78290E-07** at limit **
  10  norm          2.2146        1.0576        .11328E-06    .30860E-02
  11  Prefactor     1.1378        3.1482       -.16868E-07   -.52094E-03
  12  Prefactor     9.0237        4.8772       -.45567E-08   -.16659E-01
  13  Prefactor     7.6873        3.8408       -.83295E-07    .61351E-01
  14  norm          15.728        6.8928       -.91495E-07   -.80963E-01
  15  norm           .0000        .99263        .20110E-06** at limit **
  16  Prefactor     33.030        1.6779        .14645E-07   -.11655    
  17  Prefactor     20.531        1.7391        .18143E-07   -.85562E-01
  18  norm           .0000        .54409        .16101E-06** at limit **
  19  Prefactor     .17986E-07    12.176       -.31853E-06** at limit **
  20  norm          2.5539        .81252        .42712E-07    .30743E-02
  21  Normalizat    .78997        .11077        .20723E-05    .17456E-04
  22  Prefactor     1.1536        .14160       -.35986E-05   -.89561E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 51.501
  norm       = 0.429983
  norm       = 2.83395
  Prefactor  = 11.9566
  Prefactor  = 0
  norm       = 5.77261
  Prefactor  = 2.98095e-08
  Prefactor  = 0
  norm       = 2.21462
  Prefactor  = 1.13783
  Prefactor  = 9.02369
  Prefactor  = 7.6873
  norm       = 15.7278
  norm       = 0
  Prefactor  = 33.0295
  Prefactor  = 20.5311
  norm       = 0
  Prefactor  = 1.79856e-08
  norm       = 2.55393
  Normalizat = 0.789966
  Prefactor  = 1.15357
file=/lscratch/kocevski/34163791/ltcube_806889601_807494401_4FGL_J1248.9+4840_weekly_bin939.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/34163791/ft2_4FGL_J1248.9+4840_weekly_bin939.fits
.....................!
real 17.61
user 16.71
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/34163791/ft1_filtered_4FGL_J1248.9+4840_weekly_bin939.fits evtable="EVENTS" scfile=/lscratch/kocevski/34163791/ft2_4FGL_J1248.9+4840_weekly_bin939.fits sctable="SC_DATA" expcube=/lscratch/kocevski/34163791/ltcube_806889601_807494401_4FGL_J1248.9+4840_weekly_bin939.fits outfile=/lscratch/kocevski/34163791/expmap_806889601_807494401_4FGL_J1248.9+4840_weekly_bin939.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/34163791/ltcube_806889601_807494401_4FGL_J1248.9+4840_weekly_bin939.fits
.....................!
real 62.26
user 57.86
sys 3.59

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 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/34163791/ft1_filtered_4FGL_J1248.9+4840_weekly_bin939.fits scfile=/lscratch/kocevski/34163791/ft2_4FGL_J1248.9+4840_weekly_bin939.fits outfile=/lscratch/kocevski/34163791/cmap_806889601_807494401_4FGL_J1248.9+4840_weekly_bin939.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 1.05
user 0.20
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/34163791/ft1_filtered_4FGL_J1248.9+4840_weekly_bin939.fits scfile=/lscratch/kocevski/34163791/ft2_4FGL_J1248.9+4840_weekly_bin939.fits outfile=/lscratch/kocevski/34163791/cmap_HighResolution_806889601_807494401_4FGL_J1248.9+4840_weekly_bin939.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.90
user 0.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/34163791/ft1_filtered_4FGL_J1248.9+4840_weekly_bin939.fits evtable="EVENTS" scfile=/lscratch/kocevski/34163791/ft2_4FGL_J1248.9+4840_weekly_bin939.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/34163791/Model_4FGL_J1248.9+4840_weekly_bin939.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
 **********
 **   18 **HESSE 
 **********

 FCN=   15873.84     FROM HESSE     STATUS=OK           392 CALLS     1393 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .64266        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     51.501        17.921        .13952E-03   -1.5564    
   3  norm          .42998        .79481        .27146E-02   -1.5695    
   4  norm          2.8340        4.1795        .60633E-03   -1.5674    
   5  Prefactor     11.957        14.839        .28690E-03   -1.5639    
   6  Prefactor      .0000        .71348        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.7726        1.4531        .41781E-03   -1.5660    
   8  Prefactor     .29809E-07    10.032        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        3.0486        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.2146        1.0603        .69082E-04   -1.5678    
  11  Prefactor     1.1378        3.2780        .10902E-02   -1.5687    
  12  Prefactor     9.0237        4.8981        .33340E-03   -1.5648    
  13  Prefactor     7.6873        9.0984        .36014E-03   -1.5653    
  14  norm          15.728        7.6292        .25266E-03   -1.5629    
  15  norm           .0000        .98293        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     33.030        16.005        .17392E-03   -1.5593    
  17  Prefactor     20.531        15.782        .22110E-03   -1.5617    
  18  norm           .0000        .54266        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .17986E-07    12.302        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.5539        .82006        .63859E-03   -1.5676    
  21  Normalizat    .78997        .96967E-01    .43476E-01   -1.0044    
  22  Prefactor     1.1536        .12025        .58404E-01   -.87772    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.99346e-07
Minuit parameter uncertainties:
  1  2.00574e-06
  2  17.921
  3  0.79481
  4  4.17954
  5  14.8395
  6  1.48788e-06
  7  1.45313
  8  0.00109321
  9  1.57813e-05
  10  1.06032
  11  3.27804
  12  4.89811
  13  9.09841
  14  7.62924
  15  7.08452e-06
  16  16.0046
  17  15.7823
  18  5.64254e-06
  19  0.000940816
  20  0.820059
  21  0.0969886
  22  0.120283
Working on...
/lscratch/kocevski/34163759/ft1_filtered_4FGL_J1248.9+4840_weekly_bin939.fits.....................!
real 43.43
user 41.76
sys 0.91

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/34163759/ft1_filtered_4FGL_J1248.9+4840_weekly_bin939.fits', '/lscratch/kocevski/34163759/ft2_4FGL_J1248.9+4840_weekly_bin939.fits', expMap='/lscratch/kocevski/34163759/expmap_806889601_807494401_4FGL_J1248.9+4840_weekly_bin939.fits', expCube='/lscratch/kocevski/34163759/ltcube_806889601_807494401_4FGL_J1248.9+4840_weekly_bin939.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/34163759/Model_4FGL_J1248.9+4840_weekly_bin939.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/34163759/ft1_filtered_4FGL_J1248.9+4840_weekly_bin939.fits
Spacecraft file(s): /lscratch/kocevski/34163759/ft2_4FGL_J1248.9+4840_weekly_bin939.fits
Exposure map: /lscratch/kocevski/34163759/expmap_806889601_807494401_4FGL_J1248.9+4840_weekly_bin939.fits
Exposure cube: /lscratch/kocevski/34163759/ltcube_806889601_807494401_4FGL_J1248.9+4840_weekly_bin939.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/34163759/Model_4FGL_J1248.9+4840_weekly_bin939.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) = 15876.2450713

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .73935E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    51.377       1.0000          .0000       .10000E+07
     3 'norm      '    .43003       1.0000          .0000       .10000E+07
     4 'norm      '    2.8120       1.0000          .0000       .10000E+07
     5 'Prefactor '    12.170       1.0000          .0000       .10000E+07
     6 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
     7 'norm      '    5.7723       1.0000          .0000       .10000E+07
     8 'Prefactor '    .69281E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .22260E-07   1.0000          .0000       .10000E+07
    10 'norm      '    2.2147       1.0000          .0000       .10000E+07
    11 'Prefactor '    1.1385       1.0000          .0000       .10000E+07
    12 'Prefactor '    9.0241       1.0000          .0000       .10000E+07
    13 'Prefactor '    7.7423       1.0000          .0000       .10000E+07
    14 'norm      '    15.681       1.0000          .0000       .10000E+07
    15 'norm      '    .43854E-08   1.0000          .0000       .10000E+07
    16 'Prefactor '    33.068       1.0000          .0000       .10000E+07
    17 'Prefactor '    20.469       1.0000          .0000       .10000E+07
    18 'norm      '    .39690E-07   1.0000          .0000       .10000E+07
    19 'Prefactor '    .17458E-03   1.0000          .0000       .10000E+07
    20 'norm      '    2.5541       1.0000          .0000       .10000E+07
    21 'Normalizat'    .78972       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1538       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=   15873.84     FROM MIGRAD    STATUS=CONVERGED    103 CALLS     1001 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .64264       -.23368E-07** at limit **
   2  Prefactor     51.501        1.2866        .57807E-08    .34606E-02
   3  norm          .42998        .61221       -.30289E-07    .32308E-02
   4  norm          2.8340        3.8559        .20650E-06   -.57547E-03
   5  Prefactor     11.957        2.5221       -.37239E-08    .54689E-01
   6  Prefactor      .0000        .71358        .26297E-07** at limit **
   7  norm          5.7726        1.4531       -.35301E-08   -.48616E-03
   8  Prefactor     .29809E-07    9.8670       -.15438E-06** at limit **
   9  Prefactor      .0000        3.0356        .78290E-07** at limit **
  10  norm          2.2146        1.0576        .11328E-06    .30860E-02
  11  Prefactor     1.1378        3.1482       -.16868E-07   -.52094E-03
  12  Prefactor     9.0237        4.8772       -.45567E-08   -.16659E-01
  13  Prefactor     7.6873        3.8408       -.83295E-07    .61351E-01
  14  norm          15.728        6.8928       -.91495E-07   -.80963E-01
  15  norm           .0000        .99263        .20110E-06** at limit **
  16  Prefactor     33.030        1.6779        .14645E-07   -.11655    
  17  Prefactor     20.531        1.7391        .18143E-07   -.85562E-01
  18  norm           .0000        .54409        .16101E-06** at limit **
  19  Prefactor     .17986E-07    12.176       -.31853E-06** at limit **
  20  norm          2.5539        .81252        .42712E-07    .30743E-02
  21  Normalizat    .78997        .11077        .20723E-05    .17456E-04
  22  Prefactor     1.1536        .14160       -.35986E-05   -.89561E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 51.501
  norm       = 0.429983
  norm       = 2.83395
  Prefactor  = 11.9566
  Prefactor  = 0
  norm       = 5.77261
  Prefactor  = 2.98095e-08
  Prefactor  = 0
  norm       = 2.21462
  Prefactor  = 1.13783
  Prefactor  = 9.02369
  Prefactor  = 7.6873
  norm       = 15.7278
  norm       = 0
  Prefactor  = 33.0295
  Prefactor  = 20.5311
  norm       = 0
  Prefactor  = 1.79856e-08
  norm       = 2.55393
  Normalizat = 0.789966
  Prefactor  = 1.15357
Working on...
/lscratch/kocevski/34163786/ft1_filtered_4FGL_J1248.9+4840_weekly_bin939.fits.....................!
real 38.67
user 37.26
sys 0.71

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/34163786/ft1_filtered_4FGL_J1248.9+4840_weekly_bin939.fits', '/lscratch/kocevski/34163786/ft2_4FGL_J1248.9+4840_weekly_bin939.fits', expMap='/lscratch/kocevski/34163786/expmap_806889601_807494401_4FGL_J1248.9+4840_weekly_bin939.fits', expCube='/lscratch/kocevski/34163786/ltcube_806889601_807494401_4FGL_J1248.9+4840_weekly_bin939.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/34163786/Model_4FGL_J1248.9+4840_weekly_bin939.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/34163786/ft1_filtered_4FGL_J1248.9+4840_weekly_bin939.fits
Spacecraft file(s): /lscratch/kocevski/34163786/ft2_4FGL_J1248.9+4840_weekly_bin939.fits
Exposure map: /lscratch/kocevski/34163786/expmap_806889601_807494401_4FGL_J1248.9+4840_weekly_bin939.fits
Exposure cube: /lscratch/kocevski/34163786/ltcube_806889601_807494401_4FGL_J1248.9+4840_weekly_bin939.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/34163786/Model_4FGL_J1248.9+4840_weekly_bin939.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) = 15876.2450713

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .73935E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    51.377       1.0000          .0000       .10000E+07
     3 'norm      '    .43003       1.0000          .0000       .10000E+07
     4 'norm      '    2.8120       1.0000          .0000       .10000E+07
     5 'Prefactor '    12.170       1.0000          .0000       .10000E+07
     6 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
     7 'norm      '    5.7723       1.0000          .0000       .10000E+07
     8 'Prefactor '    .69281E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .22260E-07   1.0000          .0000       .10000E+07
    10 'norm      '    2.2147       1.0000          .0000       .10000E+07
    11 'Prefactor '    1.1385       1.0000          .0000       .10000E+07
    12 'Prefactor '    9.0241       1.0000          .0000       .10000E+07
    13 'Prefactor '    7.7423       1.0000          .0000       .10000E+07
    14 'norm      '    15.681       1.0000          .0000       .10000E+07
    15 'norm      '    .43854E-08   1.0000          .0000       .10000E+07
    16 'Prefactor '    33.068       1.0000          .0000       .10000E+07
    17 'Prefactor '    20.469       1.0000          .0000       .10000E+07
    18 'norm      '    .39690E-07   1.0000          .0000       .10000E+07
    19 'Prefactor '    .17458E-03   1.0000          .0000       .10000E+07
    20 'norm      '    2.5541       1.0000          .0000       .10000E+07
    21 'Normalizat'    .78972       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1538       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=   15873.84     FROM MIGRAD    STATUS=CONVERGED    103 CALLS     1001 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .64264       -.23368E-07** at limit **
   2  Prefactor     51.501        1.2866        .57807E-08    .34606E-02
   3  norm          .42998        .61221       -.30289E-07    .32308E-02
   4  norm          2.8340        3.8559        .20650E-06   -.57547E-03
   5  Prefactor     11.957        2.5221       -.37239E-08    .54689E-01
   6  Prefactor      .0000        .71358        .26297E-07** at limit **
   7  norm          5.7726        1.4531       -.35301E-08   -.48616E-03
   8  Prefactor     .29809E-07    9.8670       -.15438E-06** at limit **
   9  Prefactor      .0000        3.0356        .78290E-07** at limit **
  10  norm          2.2146        1.0576        .11328E-06    .30860E-02
  11  Prefactor     1.1378        3.1482       -.16868E-07   -.52094E-03
  12  Prefactor     9.0237        4.8772       -.45567E-08   -.16659E-01
  13  Prefactor     7.6873        3.8408       -.83295E-07    .61351E-01
  14  norm          15.728        6.8928       -.91495E-07   -.80963E-01
  15  norm           .0000        .99263        .20110E-06** at limit **
  16  Prefactor     33.030        1.6779        .14645E-07   -.11655    
  17  Prefactor     20.531        1.7391        .18143E-07   -.85562E-01
  18  norm           .0000        .54409        .16101E-06** at limit **
  19  Prefactor     .17986E-07    12.176       -.31853E-06** at limit **
  20  norm          2.5539        .81252        .42712E-07    .30743E-02
  21  Normalizat    .78997        .11077        .20723E-05    .17456E-04
  22  Prefactor     1.1536        .14160       -.35986E-05   -.89561E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 51.501
  norm       = 0.429983
  norm       = 2.83395
  Prefactor  = 11.9566
  Prefactor  = 0
  norm       = 5.77261
  Prefactor  = 2.98095e-08
  Prefactor  = 0
  norm       = 2.21462
  Prefactor  = 1.13783
  Prefactor  = 9.02369
  Prefactor  = 7.6873
  norm       = 15.7278
  norm       = 0
  Prefactor  = 33.0295
  Prefactor  = 20.5311
  norm       = 0
  Prefactor  = 1.79856e-08
  norm       = 2.55393
  Normalizat = 0.789966
  Prefactor  = 1.15357
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  2.981e-08  1.093e-03  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.154e+00  1.203e-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:  7.900e-01  9.699e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/lscratch/kocevski/34163733/likelihoodResults_806889601_807494401_4FGL_J1248.9+4840_weekly_bin939.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) = 15873.8883972
delta logL = -0.0500911611052

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15873.6561222
delta logL = 0.182183835926

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .90744E-01   1.0000          .0000       .10000E+07
     2 'Index     '    5.0508       1.0000          .0000       10.000    
     3 'Normalizat'    .76863       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1705       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=   15873.66     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      241 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .93327E-01    .80779        .13895E-02** at limit **
   2  Index         5.0374        1.7561        .20137        .19252E-03
   3  Normalizat    .76866        .99648E-02    .43200E-01    .31026E-04
   4  Prefactor     1.1705        .12844E-01    .58042E-01   -.10740E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0933267
  Index      = 5.0374
  Normalizat = 0.768664
  Prefactor  = 1.17046
 **********
 **   18 **HESSE 
 **********

 FCN=   15873.66     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      276 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .93327E-01    11.955        .52590E-04   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.0374        7.0708        .10500E-01    .74793E-02
   3  Normalizat    .76866        .61521E-01    .24187E-03   -1.0124    
   4  Prefactor     1.1705        .77479E-01    .25667E-03   -.87245    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.10363e-07
Minuit parameter uncertainties:
  1  2.11254
  2  10.9305
  3  0.0615266
  4  0.0774865
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) = 15873.6561129
delta logL = 0.182193217343

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  9.333e-02  2.113e+00  0.000e+00  1.000e+06 ( 1.000e-13)
332        Index:  5.037e+00  1.093e+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.170e+00  7.749e-02  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:  7.687e-01  6.153e-02  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/34163733/cmap_HighResolution_806889601_807494401_4FGL_J1248.9+4840_weekly_bin939.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.68e-03', job_status='DONE', photon_flux_upper_limit='3.46e-08', time_completed='2026-08-04 10:32:01.104530', job_id='34163733', GAL2='1.17', fit_tolerance='1e-08', EG2='0.77', EG='0.79', time_epoch_completed='1785864721.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='1.82e-01', ts2='0.39', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='939' AND source_name='4FGL J1248.9+4840' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Aug  4 10:32:01 PDT 2026

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

 FCN=   15873.84     FROM HESSE     STATUS=OK           392 CALLS     1393 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .64266        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     51.501        17.921        .13952E-03   -1.5564    
   3  norm          .42998        .79481        .27146E-02   -1.5695    
   4  norm          2.8340        4.1795        .60633E-03   -1.5674    
   5  Prefactor     11.957        14.839        .28690E-03   -1.5639    
   6  Prefactor      .0000        .71348        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.7726        1.4531        .41781E-03   -1.5660    
   8  Prefactor     .29809E-07    10.032        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        3.0486        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.2146        1.0603        .69082E-04   -1.5678    
  11  Prefactor     1.1378        3.2780        .10902E-02   -1.5687    
  12  Prefactor     9.0237        4.8981        .33340E-03   -1.5648    
  13  Prefactor     7.6873        9.0984        .36014E-03   -1.5653    
  14  norm          15.728        7.6292        .25266E-03   -1.5629    
  15  norm           .0000        .98293        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     33.030        16.005        .17392E-03   -1.5593    
  17  Prefactor     20.531        15.782        .22110E-03   -1.5617    
  18  norm           .0000        .54266        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .17986E-07    12.302        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.5539        .82006        .63859E-03   -1.5676    
  21  Normalizat    .78997        .96967E-01    .43476E-01   -1.0044    
  22  Prefactor     1.1536        .12025        .58404E-01   -.87772    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.99346e-07
Minuit parameter uncertainties:
  1  2.00574e-06
  2  17.921
  3  0.79481
  4  4.17954
  5  14.8395
  6  1.48788e-06
  7  1.45313
  8  0.00109321
  9  1.57813e-05
  10  1.06032
  11  3.27804
  12  4.89811
  13  9.09841
  14  7.62924
  15  7.08452e-06
  16  16.0046
  17  15.7823
  18  5.64254e-06
  19  0.000940816
  20  0.820059
  21  0.0969886
  22  0.120283
 **********
 **   18 **HESSE 
 **********

 FCN=   15873.84     FROM HESSE     STATUS=OK           392 CALLS     1393 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .64266        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     51.501        17.921        .13952E-03   -1.5564    
   3  norm          .42998        .79481        .27146E-02   -1.5695    
   4  norm          2.8340        4.1795        .60633E-03   -1.5674    
   5  Prefactor     11.957        14.839        .28690E-03   -1.5639    
   6  Prefactor      .0000        .71348        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.7726        1.4531        .41781E-03   -1.5660    
   8  Prefactor     .29809E-07    10.032        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        3.0486        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.2146        1.0603        .69082E-04   -1.5678    
  11  Prefactor     1.1378        3.2780        .10902E-02   -1.5687    
  12  Prefactor     9.0237        4.8981        .33340E-03   -1.5648    
  13  Prefactor     7.6873        9.0984        .36014E-03   -1.5653    
  14  norm          15.728        7.6292        .25266E-03   -1.5629    
  15  norm           .0000        .98293        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     33.030        16.005        .17392E-03   -1.5593    
  17  Prefactor     20.531        15.782        .22110E-03   -1.5617    
  18  norm           .0000        .54266        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .17986E-07    12.302        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.5539        .82006        .63859E-03   -1.5676    
  21  Normalizat    .78997        .96967E-01    .43476E-01   -1.0044    
  22  Prefactor     1.1536        .12025        .58404E-01   -.87772    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.99346e-07
Minuit parameter uncertainties:
  1  2.00574e-06
  2  17.921
  3  0.79481
  4  4.17954
  5  14.8395
  6  1.48788e-06
  7  1.45313
  8  0.00109321
  9  1.57813e-05
  10  1.06032
  11  3.27804
  12  4.89811
  13  9.09841
  14  7.62924
  15  7.08452e-06
  16  16.0046
  17  15.7823
  18  5.64254e-06
  19  0.000940816
  20  0.820059
  21  0.0969886
  22  0.120283
Working on...
/lscratch/kocevski/34163791/ft1_filtered_4FGL_J1248.9+4840_weekly_bin939.fits.....................!
real 40.50
user 38.65
sys 0.94

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/34163791/ft1_filtered_4FGL_J1248.9+4840_weekly_bin939.fits', '/lscratch/kocevski/34163791/ft2_4FGL_J1248.9+4840_weekly_bin939.fits', expMap='/lscratch/kocevski/34163791/expmap_806889601_807494401_4FGL_J1248.9+4840_weekly_bin939.fits', expCube='/lscratch/kocevski/34163791/ltcube_806889601_807494401_4FGL_J1248.9+4840_weekly_bin939.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/34163791/Model_4FGL_J1248.9+4840_weekly_bin939.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/34163791/ft1_filtered_4FGL_J1248.9+4840_weekly_bin939.fits
Spacecraft file(s): /lscratch/kocevski/34163791/ft2_4FGL_J1248.9+4840_weekly_bin939.fits
Exposure map: /lscratch/kocevski/34163791/expmap_806889601_807494401_4FGL_J1248.9+4840_weekly_bin939.fits
Exposure cube: /lscratch/kocevski/34163791/ltcube_806889601_807494401_4FGL_J1248.9+4840_weekly_bin939.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/34163791/Model_4FGL_J1248.9+4840_weekly_bin939.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) = 15876.2450713

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .73935E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    51.377       1.0000          .0000       .10000E+07
     3 'norm      '    .43003       1.0000          .0000       .10000E+07
     4 'norm      '    2.8120       1.0000          .0000       .10000E+07
     5 'Prefactor '    12.170       1.0000          .0000       .10000E+07
     6 'Prefactor '    .11102E-09   1.0000          .0000       .10000E+07
     7 'norm      '    5.7723       1.0000          .0000       .10000E+07
     8 'Prefactor '    .69281E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .22260E-07   1.0000          .0000       .10000E+07
    10 'norm      '    2.2147       1.0000          .0000       .10000E+07
    11 'Prefactor '    1.1385       1.0000          .0000       .10000E+07
    12 'Prefactor '    9.0241       1.0000          .0000       .10000E+07
    13 'Prefactor '    7.7423       1.0000          .0000       .10000E+07
    14 'norm      '    15.681       1.0000          .0000       .10000E+07
    15 'norm      '    .43854E-08   1.0000          .0000       .10000E+07
    16 'Prefactor '    33.068       1.0000          .0000       .10000E+07
    17 'Prefactor '    20.469       1.0000          .0000       .10000E+07
    18 'norm      '    .39690E-07   1.0000          .0000       .10000E+07
    19 'Prefactor '    .17458E-03   1.0000          .0000       .10000E+07
    20 'norm      '    2.5541       1.0000          .0000       .10000E+07
    21 'Normalizat'    .78972       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1538       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=   15873.84     FROM MIGRAD    STATUS=CONVERGED    103 CALLS     1001 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .64264       -.23368E-07** at limit **
   2  Prefactor     51.501        1.2866        .57807E-08    .34606E-02
   3  norm          .42998        .61221       -.30289E-07    .32308E-02
   4  norm          2.8340        3.8559        .20650E-06   -.57547E-03
   5  Prefactor     11.957        2.5221       -.37239E-08    .54689E-01
   6  Prefactor      .0000        .71358        .26297E-07** at limit **
   7  norm          5.7726        1.4531       -.35301E-08   -.48616E-03
   8  Prefactor     .29809E-07    9.8670       -.15438E-06** at limit **
   9  Prefactor      .0000        3.0356        .78290E-07** at limit **
  10  norm          2.2146        1.0576        .11328E-06    .30860E-02
  11  Prefactor     1.1378        3.1482       -.16868E-07   -.52094E-03
  12  Prefactor     9.0237        4.8772       -.45567E-08   -.16659E-01
  13  Prefactor     7.6873        3.8408       -.83295E-07    .61351E-01
  14  norm          15.728        6.8928       -.91495E-07   -.80963E-01
  15  norm           .0000        .99263        .20110E-06** at limit **
  16  Prefactor     33.030        1.6779        .14645E-07   -.11655    
  17  Prefactor     20.531        1.7391        .18143E-07   -.85562E-01
  18  norm           .0000        .54409        .16101E-06** at limit **
  19  Prefactor     .17986E-07    12.176       -.31853E-06** at limit **
  20  norm          2.5539        .81252        .42712E-07    .30743E-02
  21  Normalizat    .78997        .11077        .20723E-05    .17456E-04
  22  Prefactor     1.1536        .14160       -.35986E-05   -.89561E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 51.501
  norm       = 0.429983
  norm       = 2.83395
  Prefactor  = 11.9566
  Prefactor  = 0
  norm       = 5.77261
  Prefactor  = 2.98095e-08
  Prefactor  = 0
  norm       = 2.21462
  Prefactor  = 1.13783
  Prefactor  = 9.02369
  Prefactor  = 7.6873
  norm       = 15.7278
  norm       = 0
  Prefactor  = 33.0295
  Prefactor  = 20.5311
  norm       = 0
  Prefactor  = 1.79856e-08
  norm       = 2.55393
  Normalizat = 0.789966
  Prefactor  = 1.15357
 **********
 **   18 **HESSE 
 **********

 FCN=   15873.84     FROM HESSE     STATUS=OK           392 CALLS     1393 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .64266        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     51.501        17.921        .13952E-03   -1.5564    
   3  norm          .42998        .79481        .27146E-02   -1.5695    
   4  norm          2.8340        4.1795        .60633E-03   -1.5674    
   5  Prefactor     11.957        14.839        .28690E-03   -1.5639    
   6  Prefactor      .0000        .71348        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.7726        1.4531        .41781E-03   -1.5660    
   8  Prefactor     .29809E-07    10.032        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        3.0486        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.2146        1.0603        .69082E-04   -1.5678    
  11  Prefactor     1.1378        3.2780        .10902E-02   -1.5687    
  12  Prefactor     9.0237        4.8981        .33340E-03   -1.5648    
  13  Prefactor     7.6873        9.0984        .36014E-03   -1.5653    
  14  norm          15.728        7.6292        .25266E-03   -1.5629    
  15  norm           .0000        .98293        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     33.030        16.005        .17392E-03   -1.5593    
  17  Prefactor     20.531        15.782        .22110E-03   -1.5617    
  18  norm           .0000        .54266        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .17986E-07    12.302        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.5539        .82006        .63859E-03   -1.5676    
  21  Normalizat    .78997        .96967E-01    .43476E-01   -1.0044    
  22  Prefactor     1.1536        .12025        .58404E-01   -.87772    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.99346e-07
Minuit parameter uncertainties:
  1  2.00574e-06
  2  17.921
  3  0.79481
  4  4.17954
  5  14.8395
  6  1.48788e-06
  7  1.45313
  8  0.00109321
  9  1.57813e-05
  10  1.06032
  11  3.27804
  12  4.89811
  13  9.09841
  14  7.62924
  15  7.08452e-06
  16  16.0046
  17  15.7823
  18  5.64254e-06
  19  0.000940816
  20  0.820059
  21  0.0969886
  22  0.120283
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  2.981e-08  1.093e-03  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.154e+00  1.203e-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:  7.900e-01  9.699e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/lscratch/kocevski/34163759/likelihoodResults_806889601_807494401_4FGL_J1248.9+4840_weekly_bin939.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) = 15873.8883972
delta logL = -0.0500911611052

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15873.6561222
delta logL = 0.182183835926

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .90744E-01   1.0000          .0000       .10000E+07
     2 'Index     '    5.0508       1.0000          .0000       10.000    
     3 'Normalizat'    .76863       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1705       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=   15873.66     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      241 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .93327E-01    .80779        .13895E-02** at limit **
   2  Index         5.0374        1.7561        .20137        .19252E-03
   3  Normalizat    .76866        .99648E-02    .43200E-01    .31026E-04
   4  Prefactor     1.1705        .12844E-01    .58042E-01   -.10740E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0933267
  Index      = 5.0374
  Normalizat = 0.768664
  Prefactor  = 1.17046
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  2.981e-08  1.093e-03  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.154e+00  1.203e-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:  7.900e-01  9.699e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/lscratch/kocevski/34163786/likelihoodResults_806889601_807494401_4FGL_J1248.9+4840_weekly_bin939.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) = 15873.8883972
delta logL = -0.0500911611052

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15873.6561222
delta logL = 0.182183835926

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .90744E-01   1.0000          .0000       .10000E+07
     2 'Index     '    5.0508       1.0000          .0000       10.000    
     3 'Normalizat'    .76863       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1705       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=   15873.66     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      241 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .93327E-01    .80779        .13895E-02** at limit **
   2  Index         5.0374        1.7561        .20137        .19252E-03
   3  Normalizat    .76866        .99648E-02    .43200E-01    .31026E-04
   4  Prefactor     1.1705        .12844E-01    .58042E-01   -.10740E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0933267
  Index      = 5.0374
  Normalizat = 0.768664
  Prefactor  = 1.17046
 **********
 **   18 **HESSE 
 **********

 FCN=   15873.66     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      276 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .93327E-01    11.955        .52590E-04   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.0374        7.0708        .10500E-01    .74793E-02
   3  Normalizat    .76866        .61521E-01    .24187E-03   -1.0124    
   4  Prefactor     1.1705        .77479E-01    .25667E-03   -.87245    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.10363e-07
Minuit parameter uncertainties:
  1  2.11254
  2  10.9305
  3  0.0615266
  4  0.0774865
 **********
 **   18 **HESSE 
 **********

 FCN=   15873.66     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      276 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .93327E-01    11.955        .52590E-04   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.0374        7.0708        .10500E-01    .74793E-02
   3  Normalizat    .76866        .61521E-01    .24187E-03   -1.0124    
   4  Prefactor     1.1705        .77479E-01    .25667E-03   -.87245    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.10363e-07
Minuit parameter uncertainties:
  1  2.11254
  2  10.9305
  3  0.0615266
  4  0.0774865
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) = 15873.6561129
delta logL = 0.182193217343

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  9.333e-02  2.113e+00  0.000e+00  1.000e+06 ( 1.000e-13)
332        Index:  5.037e+00  1.093e+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.170e+00  7.749e-02  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:  7.687e-01  6.153e-02  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/34163786/cmap_HighResolution_806889601_807494401_4FGL_J1248.9+4840_weekly_bin939.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.68e-03', job_status='DONE', photon_flux_upper_limit='3.46e-08', time_completed='2026-08-04 10:33:33.292776', job_id='34163786', GAL2='1.17', fit_tolerance='1e-08', EG2='0.77', EG='0.79', time_epoch_completed='1785864813.29', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='1.82e-01', ts2='0.39', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='939' AND source_name='4FGL J1248.9+4840' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Aug  4 10:33:33 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) = 15873.6561129
delta logL = 0.182193217343

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  9.333e-02  2.113e+00  0.000e+00  1.000e+06 ( 1.000e-13)
332        Index:  5.037e+00  1.093e+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.170e+00  7.749e-02  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:  7.687e-01  6.153e-02  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/34163759/cmap_HighResolution_806889601_807494401_4FGL_J1248.9+4840_weekly_bin939.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.68e-03', job_status='DONE', photon_flux_upper_limit='3.46e-08', time_completed='2026-08-04 10:33:33.629304', job_id='34163759', GAL2='1.17', fit_tolerance='1e-08', EG2='0.77', EG='0.79', time_epoch_completed='1785864813.63', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='1.82e-01', ts2='0.39', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='939' AND source_name='4FGL J1248.9+4840' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Aug  4 10:33:34 PDT 2026

Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  2.981e-08  1.093e-03  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.154e+00  1.203e-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:  7.900e-01  9.699e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/lscratch/kocevski/34163791/likelihoodResults_806889601_807494401_4FGL_J1248.9+4840_weekly_bin939.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) = 15873.8883972
delta logL = -0.0500911611052

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15873.6561222
delta logL = 0.182183835926

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .90744E-01   1.0000          .0000       .10000E+07
     2 'Index     '    5.0508       1.0000          .0000       10.000    
     3 'Normalizat'    .76863       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1705       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=   15873.66     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      241 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .93327E-01    .80779        .13895E-02** at limit **
   2  Index         5.0374        1.7561        .20137        .19252E-03
   3  Normalizat    .76866        .99648E-02    .43200E-01    .31026E-04
   4  Prefactor     1.1705        .12844E-01    .58042E-01   -.10740E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0933267
  Index      = 5.0374
  Normalizat = 0.768664
  Prefactor  = 1.17046
 **********
 **   18 **HESSE 
 **********

 FCN=   15873.66     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      276 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .93327E-01    11.955        .52590E-04   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.0374        7.0708        .10500E-01    .74793E-02
   3  Normalizat    .76866        .61521E-01    .24187E-03   -1.0124    
   4  Prefactor     1.1705        .77479E-01    .25667E-03   -.87245    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.10363e-07
Minuit parameter uncertainties:
  1  2.11254
  2  10.9305
  3  0.0615266
  4  0.0774865
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) = 15873.6561129
delta logL = 0.182193217343

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  9.333e-02  2.113e+00  0.000e+00  1.000e+06 ( 1.000e-13)
332        Index:  5.037e+00  1.093e+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.170e+00  7.749e-02  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:  7.687e-01  6.153e-02  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/34163791/cmap_HighResolution_806889601_807494401_4FGL_J1248.9+4840_weekly_bin939.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.68e-03', job_status='DONE', photon_flux_upper_limit='3.46e-08', time_completed='2026-08-04 10:34:14.718083', job_id='34163791', GAL2='1.17', fit_tolerance='1e-08', EG2='0.77', EG='0.79', time_epoch_completed='1785864854.72', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='1.82e-01', ts2='0.39', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='939' AND source_name='4FGL J1248.9+4840' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Aug  4 10:34:15 PDT 2026

