/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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)


Waiting 80 seconds before starting...
Proceeding.

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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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).

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


Performing analysis on: 4FGL_J1248.9+4840_daily_bin1585
RA = 192.244, Dec = 48.67
tmin = 650160001, tmax = 650419201
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='924792', job_status='RUN', time_executed='2021-09-06 05:58:21.093853', time_epoch_executed='1630933101.09' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='1585'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/924792

Creating custom pfile directory:
/scratch/kocevski/924792/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=650160001.0 && nMetStart<650419201.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=650160001.0 && nMetStart<650419201.0' /Data/Flight/Level1/LPA

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/924792/ft1_4FGL_J1248.9+4840_daily_bin1585.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=650160001.0 && nMetStart<650419201.0' /Data/Flight/Level1/LPA

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/924792/ft2_4FGL_J1248.9+4840_daily_bin1585.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/924792/ft1_4FGL_J1248.9+4840_daily_bin1585.fits outfile=/scratch/kocevski/924792/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin1585.fits ra=192.244 dec=48.67 rad=12.0 tmin=650160001.0 tmax=650419201.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.36
user 4.17
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/924792/ft2_4FGL_J1248.9+4840_daily_bin1585.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/924792/ft2_4FGL_J1248.9+4840_daily_bin1585.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/924792/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin1585.fits evtable="EVENTS" outfile="/scratch/kocevski/924792/ft1_filtered_4FGL_J1248.9+4840_daily_bin1585.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('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/924792/ft1_filtered_4FGL_J1248.9+4840_daily_bin1585.fits" evtable="EVENTS" scfile=/scratch/kocevski/924792/ft2_4FGL_J1248.9+4840_daily_bin1585.fits sctable="SC_DATA" outfile=/scratch/kocevski/924792/ltcube_650160001_650419201_4FGL_J1248.9+4840_daily_bin1585.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 /scratch/kocevski/924792/ft2_4FGL_J1248.9+4840_daily_bin1585.fits
.....................!
real 11.87
user 11.52
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/924792/ft1_filtered_4FGL_J1248.9+4840_daily_bin1585.fits evtable="EVENTS" scfile=/scratch/kocevski/924792/ft2_4FGL_J1248.9+4840_daily_bin1585.fits sctable="SC_DATA" expcube=/scratch/kocevski/924792/ltcube_650160001_650419201_4FGL_J1248.9+4840_daily_bin1585.fits outfile=/scratch/kocevski/924792/expmap_650160001_650419201_4FGL_J1248.9+4840_daily_bin1585.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 /scratch/kocevski/924792/ltcube_650160001_650419201_4FGL_J1248.9+4840_daily_bin1585.fits
.....................!
real 188.95
user 184.47
sys 4.06

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=/scratch/kocevski/924792/ft1_filtered_4FGL_J1248.9+4840_daily_bin1585.fits scfile=/scratch/kocevski/924792/ft2_4FGL_J1248.9+4840_daily_bin1585.fits outfile=/scratch/kocevski/924792/cmap_650160001_650419201_4FGL_J1248.9+4840_daily_bin1585.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.55
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/924792/ft1_filtered_4FGL_J1248.9+4840_daily_bin1585.fits scfile=/scratch/kocevski/924792/ft2_4FGL_J1248.9+4840_daily_bin1585.fits outfile=/scratch/kocevski/924792/cmap_HighResolution_650160001_650419201_4FGL_J1248.9+4840_daily_bin1585.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/924792/ft1_filtered_4FGL_J1248.9+4840_daily_bin1585.fits evtable="EVENTS" scfile=/scratch/kocevski/924792/ft2_4FGL_J1248.9+4840_daily_bin1585.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/924792/Model_4FGL_J1248.9+4840_daily_bin1585.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...
/scratch/kocevski/924792/ft1_filtered_4FGL_J1248.9+4840_daily_bin1585.fits.....................!
real 52.39
user 50.46
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/924792/ft1_filtered_4FGL_J1248.9+4840_daily_bin1585.fits', '/scratch/kocevski/924792/ft2_4FGL_J1248.9+4840_daily_bin1585.fits', expMap='/scratch/kocevski/924792/expmap_650160001_650419201_4FGL_J1248.9+4840_daily_bin1585.fits', expCube='/scratch/kocevski/924792/ltcube_650160001_650419201_4FGL_J1248.9+4840_daily_bin1585.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/924792/Model_4FGL_J1248.9+4840_daily_bin1585.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  1.000e-04  1.000e+04 ( 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): /scratch/kocevski/924792/ft1_filtered_4FGL_J1248.9+4840_daily_bin1585.fits
Spacecraft file(s): /scratch/kocevski/924792/ft2_4FGL_J1248.9+4840_daily_bin1585.fits
Exposure map: /scratch/kocevski/924792/expmap_650160001_650419201_4FGL_J1248.9+4840_daily_bin1585.fits
Exposure cube: /scratch/kocevski/924792/ltcube_650160001_650419201_4FGL_J1248.9+4840_daily_bin1585.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/924792/Model_4FGL_J1248.9+4840_daily_bin1585.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) = 5858.76261793

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .89240       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11638E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.4412       1.0000         .10000E-03   10000.    
     4 'norm      '    2.5329       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.4240       1.0000         .10000E-03   10000.    
     7 'norm      '    3.1461       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.9587       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8323       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11775E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.036       1.0000         .10000E-03   10000.    
    19 'Prefactor '    49.583       1.0000         .10000E-03   10000.    
    20 'norm      '    10.889       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .93481       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1813       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .80039       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5858.685     FROM MIGRAD    STATUS=CONVERGED    589 CALLS     2499 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .89699        4.2457       -.33023E-06   -.29138E-03
   2  Prefactor     .10000E-03    104.72        .27727E-05** at limit **
   3  norm          3.4420        2.4357       -.81120E-07   -.33335E-04
   4  norm          2.5329        3.5922        .36425E-06   -.17646E-02
   5  Prefactor     .10000E-03    12.681       -.11737E-06** at limit **
   6  Prefactor     3.4240        5.3626       -.38759E-06   -.75695E-04
   7  norm          3.1461        2.1958       -.17729E-07   -.49282E-05
   8  Prefactor     .10000E-03    4.4410       -.80005E-08** at limit **
   9  Prefactor     .10000E-03    9.2628       -.24682E-07** at limit **
  10  norm          4.9586        2.2435       -.16778E-07    .15128E-04
  11  Prefactor     .10000E-03    5.6989       -.69044E-09** at limit **
  12  Prefactor     .10000E-03    23.390        .74221E-06** at limit **
  13  Prefactor     2.8321        4.8095        .43745E-06   -.14298E-02
  14  Prefactor     .10000E-03    15.608       -.30425E-06** at limit **
  15  norm          .10000E-03    3.8756        .64020E-08** at limit **
  16  norm          .10000E-03    1.5028        .52993E-07** at limit **
  17  Prefactor     .10000E-03    12.777        .28779E-06** at limit **
  18  Prefactor     14.036        18.673       -.59272E-07    .94786E-05
  19  Prefactor     49.558        33.211       -.90491E-05   -.12955E-03
  20  norm          10.890        6.0456        .53494E-06    .28543E-04
  21  Prefactor     .10000E-03    32.210       -.25167E-05** at limit **
  22  norm          .93571        1.0373        .13376E-06    .27235E-03
  23  norm          .10000E-03    33.603        .14356E-05** at limit **
  24  Normalizat    1.1810        .17317        .88178E-06   -.34579E-04
  25  Prefactor     .80079        .20210       -.11756E-06    .31448E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.896989
  Prefactor  = 0.0001
  norm       = 3.44198
  norm       = 2.53291
  Prefactor  = 0.0001
  Prefactor  = 3.42403
  norm       = 3.14613
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.95861
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.83208
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.0361
  Prefactor  = 49.5579
  norm       = 10.8896
  Prefactor  = 0.0001
  norm       = 0.935709
  norm       = 0.0001
  Normalizat = 1.18099
  Prefactor  = 0.800792
 **********
 **   18 **HESSE 
 **********

 FCN=   5858.685     FROM HESSE     STATUS=OK           429 CALLS     2928 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .89699        4.3150        .28811E-02   -1.5519    
   2  Prefactor     .10000E-03    106.58        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.4420        2.4374        .94895E-04   -1.5337    
   4  norm          2.5329        4.5126        .10535E-02   -1.5390    
   5  Prefactor     .10000E-03    12.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.4240        5.3389        .20739E-03   -1.5338    
   7  norm          3.1461        2.1927        .89050E-04   -1.5353    
   8  Prefactor     .10000E-03    4.4436        .15754E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.2670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.9586        2.2432        .74771E-04   -1.5263    
  11  Prefactor     .10000E-03    5.7167        .17845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    23.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.8321        6.4977        .12082E-02   -1.5371    
  14  Prefactor     .10000E-03    15.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.8765        .14717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.5233        .91625E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.036        18.673        .10691E-03   -1.4958    
  19  Prefactor     49.558        33.373        .56950E-04   -1.4299    
  20  norm          10.890        6.0428        .12088E-03   -1.5048    
  21  Prefactor     .10000E-03    32.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .93571        1.0148        .79451E-04   -1.5515    
  23  norm          .10000E-03    33.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1810        .20111        .21415E-03   -.87192    
  25  Prefactor     .80079        .23403        .30749E-03   -.99699    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.40327e-08
Minuit parameter uncertainties:
  1  3.93495
  2  1.0673e-05
  3  2.43743
  4  4.51317
  5  1.13199e-05
  6  5.33966
  7  2.19273
  8  3.66428e-07
  9  2.47297e-06
  10  2.24328
  11  3.27873e-06
  12  1.08366e-05
  13  6.49934
  14  1.12713e-05
  15  2.59443e-07
  16  4.35878e-06
  17  7.81883e-05
  18  18.6812
  19  33.3853
  20  6.04309
  21  5.4717e-05
  22  1.01477
  23  2.61255e-05
  24  0.201244
  25  0.234322
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  3.664e-07  1.000e-04  1.000e+04 ( 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:  8.008e-01  2.343e-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:  1.181e+00  2.012e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/924792/likelihoodResults_650160001_650419201_4FGL_J1248.9+4840_daily_bin1585.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5858.68587331
delta logL = -0.00105255789367

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5858.68482317
delta logL = -2.41575980908e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11359E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4236       1.0000          .0000       10.000    
     3 'Normalizat'    1.1813       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80043       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5858.685     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      260 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1102.2        .16191E-01** at limit **
   2  Index         1.4532        5.2789        .50000        .16037E-06
   3  Normalizat    1.1810        .66695E-01    .21414E-03   -.49348E-03
   4  Prefactor     .80079        .80668E-01    .30749E-03   -.34237E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.4532
  Normalizat = 1.18099
  Prefactor  = 0.80079
 **********
 **   18 **HESSE 
 **********

 FCN=   5858.685     FROM HESSE     STATUS=OK            29 CALLS      289 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.0725        .20400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.4532        5.6429        .50000       -.78859    
   3  Normalizat    1.1810        .19154        .42829E-04   -.87192    
   4  Prefactor     .80079        .23167        .12300E-04   -.99699    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.61075e-10
Minuit parameter uncertainties:
  1  0.000105637
  2  3.67142
  3  0.191655
  4  0.231955
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/924792': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5858.68481621
delta logL = 4.550282938e-06

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  1.056e-04  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  1.453e+00  3.671e+00  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:  8.008e-01  2.320e-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:  1.181e+00  1.917e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/924792/cmap_HighResolution_650160001_650419201_4FGL_J1248.9+4840_daily_bin1585.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/924792

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.87e-03', job_status='DONE', photon_flux_upper_limit='3.70e-08', time_completed='2021-09-06 06:10:36.020414', job_id='924792', GAL2='0.80', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1630933836.02', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='4.55e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1585' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:10:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0195>
Subject: Job 924792: <4FGL_J1248.9+4840_daily_bin1585> in cluster <slac> Done

Job <4FGL_J1248.9+4840_daily_bin1585> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 05:56:01 2021
Job was executed on host(s) <bullet0195>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 05:56:02 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 05:56:02 2021
Terminated at Mon Sep  6 06:10:36 2021
Results reported at Mon Sep  6 06:10:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin1585 192.244 48.67 650160001 650419201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1248.9+4840 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   718.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             299.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   874 sec.
    Turnaround time :                            875 sec.

The output (if any) is above this job summary.

