/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 76 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 = 7420
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1248.9+4840_daily_bin697
RA = 192.244, Dec = 48.67
tmin = 419990401, tmax = 420249601
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='920663', job_status='RUN', time_executed='2021-09-06 05:46:47.035939', time_epoch_executed='1630932407.04' WHERE source_name='4FGL J1248.9+4840' and cadence='daily' and bin_id='697'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/920663

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/920663/ft1_4FGL_J1248.9+4840_daily_bin697.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/920663/ft2_4FGL_J1248.9+4840_daily_bin697.fits


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

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

Done.
real 3.40
user 3.13
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/920663/ft2_4FGL_J1248.9+4840_daily_bin697.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/920663/ft1_filteredMKT_4FGL_J1248.9+4840_daily_bin697.fits evtable="EVENTS" outfile="/scratch/kocevski/920663/ft1_filtered_4FGL_J1248.9+4840_daily_bin697.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.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/920663/ft1_filtered_4FGL_J1248.9+4840_daily_bin697.fits" evtable="EVENTS" scfile=/scratch/kocevski/920663/ft2_4FGL_J1248.9+4840_daily_bin697.fits sctable="SC_DATA" outfile=/scratch/kocevski/920663/ltcube_419990401_420249601_4FGL_J1248.9+4840_daily_bin697.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/920663/ft2_4FGL_J1248.9+4840_daily_bin697.fits
.....................!
real 12.30
user 11.89
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/920663/ft1_filtered_4FGL_J1248.9+4840_daily_bin697.fits evtable="EVENTS" scfile=/scratch/kocevski/920663/ft2_4FGL_J1248.9+4840_daily_bin697.fits sctable="SC_DATA" expcube=/scratch/kocevski/920663/ltcube_419990401_420249601_4FGL_J1248.9+4840_daily_bin697.fits outfile=/scratch/kocevski/920663/expmap_419990401_420249601_4FGL_J1248.9+4840_daily_bin697.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/920663/ltcube_419990401_420249601_4FGL_J1248.9+4840_daily_bin697.fits
.....................!
real 190.36
user 184.66
sys 5.24

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/920663/ft1_filtered_4FGL_J1248.9+4840_daily_bin697.fits scfile=/scratch/kocevski/920663/ft2_4FGL_J1248.9+4840_daily_bin697.fits outfile=/scratch/kocevski/920663/cmap_419990401_420249601_4FGL_J1248.9+4840_daily_bin697.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/920663/ft1_filtered_4FGL_J1248.9+4840_daily_bin697.fits scfile=/scratch/kocevski/920663/ft2_4FGL_J1248.9+4840_daily_bin697.fits outfile=/scratch/kocevski/920663/cmap_HighResolution_419990401_420249601_4FGL_J1248.9+4840_daily_bin697.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.56
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/920663/ft1_filtered_4FGL_J1248.9+4840_daily_bin697.fits', '/scratch/kocevski/920663/ft2_4FGL_J1248.9+4840_daily_bin697.fits', expMap='/scratch/kocevski/920663/expmap_419990401_420249601_4FGL_J1248.9+4840_daily_bin697.fits', expCube='/scratch/kocevski/920663/ltcube_419990401_420249601_4FGL_J1248.9+4840_daily_bin697.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/920663/Model_4FGL_J1248.9+4840_daily_bin697.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/920663/ft1_filtered_4FGL_J1248.9+4840_daily_bin697.fits
Spacecraft file(s): /scratch/kocevski/920663/ft2_4FGL_J1248.9+4840_daily_bin697.fits
Exposure map: /scratch/kocevski/920663/expmap_419990401_420249601_4FGL_J1248.9+4840_daily_bin697.fits
Exposure cube: /scratch/kocevski/920663/ltcube_419990401_420249601_4FGL_J1248.9+4840_daily_bin697.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/920663/Model_4FGL_J1248.9+4840_daily_bin697.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) = 6037.75817034

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .37963E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.9037       1.0000         .10000E-03   10000.    
     3 'norm      '    2.8515       1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.605       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .18033E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.3691       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.7986       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.9444       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13750E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.6373       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    15.705       1.0000         .10000E-03   10000.    
    16 'norm      '    5.7249       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.5154       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    29.047       1.0000         .10000E-03   10000.    
    22 'norm      '    6.3478       1.0000         .10000E-03   10000.    
    23 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .99058       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0508       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6037.754     FROM MIGRAD    STATUS=CONVERGED    617 CALLS     2923 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    1.5446         .0000    ** at limit **
   2  Prefactor     7.9135        18.376         .0000        .30514E-03
   3  norm          2.8517        2.0627         .0000        .38581E-03
   4  norm          .10000E-03    2.0980         .0000    ** at limit **
   5  Prefactor     10.604        16.218         .0000        .70383E-04
   6  Prefactor     .10000E-03    5.0770         .0000    ** at limit **
   7  norm          5.3700        2.5130         .0000       -.83547E-04
   8  Prefactor     1.7951        79.335         .0000        .14427E-02
   9  Prefactor     .10000E-03    6.0747         .0000    ** at limit **
  10  norm          3.9446        2.3844         .0000        .14760E-03
  11  Prefactor     .10000E-03    3.1677         .0000    ** at limit **
  12  Prefactor     .10002E-03    322.02         .0000    ** at limit **
  13  Prefactor     7.6378        6.9017         .0000        .26540E-04
  14  Prefactor     .10000E-03    56.928         .0000    ** at limit **
  15  norm          15.702        11.056         .0000        .13174E-02
  16  norm          5.7241        4.3268         .0000        .12561E-03
  17  Prefactor     .10000E-03    35.342         .0000    ** at limit **
  18  Prefactor     1.5161        22.059         .0000        .60632E-02
  19  Prefactor     .10000E-03    15.258         .0000    ** at limit **
  20  norm          .10000E-03    2.6651         .0000    ** at limit **
  21  Prefactor     29.033        57.996         .0000        .14277E-02
  22  norm          6.3478        1.9456         .0000        .83507E-04
  23  norm          .10001E-03    42.099         .0000    ** at limit **
  24  Normalizat    .99069        .16691         .0000       -.11660E-03
  25  Prefactor     1.0506        .20076         .0000       -.82864E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010003
  Prefactor  = 7.91351
  norm       = 2.85172
  norm       = 0.0001
  Prefactor  = 10.6035
  Prefactor  = 0.0001
  norm       = 5.37001
  Prefactor  = 1.79513
  Prefactor  = 0.0001
  norm       = 3.94457
  Prefactor  = 0.0001
  Prefactor  = 0.000100018
  Prefactor  = 7.63776
  Prefactor  = 0.0001
  norm       = 15.7024
  norm       = 5.72413
  Prefactor  = 0.0001
  Prefactor  = 1.51606
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 29.0331
  norm       = 6.34785
  norm       = 0.000100007
  Normalizat = 0.990687
  Prefactor  = 1.05061
 **********
 **   18 **HESSE 
 **********

 FCN=   6037.754     FROM HESSE     STATUS=OK           431 CALLS     3354 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    43.561        .17587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.9135        17.526        .14262E-03   -1.5145    
   3  norm          2.8517        2.0598        .90919E-04   -1.5370    
   4  norm          .10000E-03    2.1025        .10987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.604        16.176        .12303E-03   -1.5057    
   6  Prefactor     .10000E-03    17.575        .32661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.3700        2.4360        .79098E-04   -1.5244    
   8  Prefactor     1.7951        79.418        .15587E-02   -1.5440    
   9  Prefactor     .10000E-03    6.0757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.9446        2.3805        .90169E-04   -1.5311    
  11  Prefactor     .10000E-03    3.1703        .13506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10002E-03    329.80        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.6378        6.8943        .14511E-03   -1.5155    
  14  Prefactor     .10000E-03    58.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          15.702        11.056        .10106E-03   -1.4915    
  16  norm          5.7241        4.3198        .13471E-03   -1.5229    
  17  Prefactor     .10000E-03    35.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.5161        21.833        .17364E-02   -1.5462    
  19  Prefactor     .10000E-03    15.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.7020        .12320E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     29.033        58.040        .74337E-04   -1.4630    
  22  norm          6.3478        1.9457        .57669E-04   -1.5204    
  23  norm          .10001E-03    42.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .99069        .19719        .22816E-03   -.93343    
  25  Prefactor     1.0506        .23802        .28036E-03   -.91061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.87751e-08
Minuit parameter uncertainties:
  1  0.00230309
  2  17.537
  3  2.05989
  4  2.96494e-07
  5  16.1822
  6  4.39762e-05
  7  2.43604
  8  23.9134
  9  1.00724e-05
  10  2.38052
  11  2.76392e-06
  12  0.00493551
  13  6.89506
  14  4.11274e-05
  15  11.0572
  16  4.32007
  17  0.000238921
  18  11.5112
  19  2.67834e-05
  20  3.55528e-08
  21  58.1536
  22  1.94569
  23  0.00110698
  24  0.197337
  25  0.23826
Done.

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

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.795e+00  2.391e+01  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:  1.051e+00  2.383e-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:  9.907e-01  1.973e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/920663/likelihoodResults_419990401_420249601_4FGL_J1248.9+4840_daily_bin697.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) = 6037.28168265
delta logL = 0.472580181313

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6036.75141058
delta logL = 1.00285225201

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    8.8780       1.0000          .0000       10.000    
     3 'Normalizat'    .93440       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1004       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=   6036.751     FROM MIGRAD    STATUS=CONVERGED    225 CALLS      528 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .42471E-02    .31715E-03** at limit **
   2  Index         8.8782        7.6037        .22128        .92649E-04
   3  Normalizat    .93447        .41922E-01    .45340E-01    .22747E-04
   4  Prefactor     1.1002        .52778E-01    .62140E-01    .25794E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 8.87824
  Normalizat = 0.934467
  Prefactor  = 1.1002
 **********
 **   18 **HESSE 
 **********

 FCN=   6036.751     FROM HESSE     STATUS=OK            35 CALLS      563 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .12762E-02    .10632E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.8782        .42666        .94335E-02    .88774    
   3  Normalizat    .93447        .19156        .23390E-03   -.95259    
   4  Prefactor     1.1002        .24051        .27483E-03   -.89460    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0241e-11
Minuit parameter uncertainties:
  1  2.723e-09
  2  0.427969
  3  0.191698
  4  0.240746
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/920663': 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) = 6036.75140639
delta logL = 1.0028564382

Extracting fit parameters...

4FGL J1248.9+4840
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  2.723e-09  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  8.878e+00  4.280e-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.100e+00  2.407e-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:  9.345e-01  1.917e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.09
Ra Dec: 192.244 48.670
Photon Index (Free Index): 8.88 +/- 0.43
Photon Flux (Free Index): 4.13e-08 +/- 3.58e-08
Energy Flux (Free Index): 4.70e-06 +/- 4.07e-06

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/920663/cmap_HighResolution_419990401_420249601_4FGL_J1248.9+4840_daily_bin697.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.77e-03', comment='SUCCESS', energy_flux2='4.70e-06', dlogl='1.00e+00', photon_flux2='4.13e-08', job_status='DONE', time_completed='2021-09-06 06:00:12.282333', photon_index_error2='0.43', photon_index2='8.88', ts='0.01', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='8.74e-08', energy_flux_error2='4.07e-06', EG='0.99', time_epoch_completed='1630933212.28', return_code='0', job_id='920663', GAL2='1.10', EG2='0.93', return_code2='0', photon_flux_error2='3.58e-08', ts2='2.09', photon_index='2.45' WHERE bin_id='697' AND source_name='4FGL J1248.9+4840' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:00:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 920663: <4FGL_J1248.9+4840_daily_bin697> in cluster <slac> Done

Job <4FGL_J1248.9+4840_daily_bin697> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 05:45:19 2021
Job was executed on host(s) <bullet0167>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 05:45:21 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:45:21 2021
Terminated at Mon Sep  6 06:00:13 2021
Results reported at Mon Sep  6 06:00:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.9+4840_daily_bin697 192.244 48.67 419990401 420249601 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 :                                   802.19 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             291.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            894 sec.

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

