/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 109 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 = 7399
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1248.3+5820_daily_bin58
RA = 192.084, Dec = 58.3432
tmin = 254361601, tmax = 254620801
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='907048', job_status='RUN', time_executed='2021-09-06 05:02:56.711420', time_epoch_executed='1630929776.71' WHERE source_name='4FGL J1248.3+5820' and cadence='daily' and bin_id='58'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/907048

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/907048/ft1_4FGL_J1248.3+5820_daily_bin58.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/907048/ft2_4FGL_J1248.3+5820_daily_bin58.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/907048/ft1_4FGL_J1248.3+5820_daily_bin58.fits outfile=/scratch/kocevski/907048/ft1_filteredMKT_4FGL_J1248.3+5820_daily_bin58.fits ra=192.084 dec=58.3432 rad=12.0 tmin=254361601.0 tmax=254620801.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 1.42
user 1.24
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/907048/ft2_4FGL_J1248.3+5820_daily_bin58.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/907048/ft2_4FGL_J1248.3+5820_daily_bin58.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/907048/ft1_filteredMKT_4FGL_J1248.3+5820_daily_bin58.fits evtable="EVENTS" outfile="/scratch/kocevski/907048/ft1_filtered_4FGL_J1248.3+5820_daily_bin58.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.49
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/907048/ft1_filtered_4FGL_J1248.3+5820_daily_bin58.fits" evtable="EVENTS" scfile=/scratch/kocevski/907048/ft2_4FGL_J1248.3+5820_daily_bin58.fits sctable="SC_DATA" outfile=/scratch/kocevski/907048/ltcube_254361601_254620801_4FGL_J1248.3+5820_daily_bin58.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/907048/ft2_4FGL_J1248.3+5820_daily_bin58.fits
.....................!
real 12.93
user 12.56
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/907048/ft1_filtered_4FGL_J1248.3+5820_daily_bin58.fits evtable="EVENTS" scfile=/scratch/kocevski/907048/ft2_4FGL_J1248.3+5820_daily_bin58.fits sctable="SC_DATA" expcube=/scratch/kocevski/907048/ltcube_254361601_254620801_4FGL_J1248.3+5820_daily_bin58.fits outfile=/scratch/kocevski/907048/expmap_254361601_254620801_4FGL_J1248.3+5820_daily_bin58.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/907048/ltcube_254361601_254620801_4FGL_J1248.3+5820_daily_bin58.fits
.....................!
real 190.63
user 185.65
sys 4.60

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

Setting source of interest to:
4FGL J1248.3+5820 @ 192.084 58.3432

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/907048/ft1_filtered_4FGL_J1248.3+5820_daily_bin58.fits scfile=/scratch/kocevski/907048/ft2_4FGL_J1248.3+5820_daily_bin58.fits outfile=/scratch/kocevski/907048/cmap_254361601_254620801_4FGL_J1248.3+5820_daily_bin58.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.084 yref=58.3432 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.57
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/907048/ft1_filtered_4FGL_J1248.3+5820_daily_bin58.fits scfile=/scratch/kocevski/907048/ft2_4FGL_J1248.3+5820_daily_bin58.fits outfile=/scratch/kocevski/907048/cmap_HighResolution_254361601_254620801_4FGL_J1248.3+5820_daily_bin58.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.084 yref=58.3432 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/907048/ft1_filtered_4FGL_J1248.3+5820_daily_bin58.fits evtable="EVENTS" scfile=/scratch/kocevski/907048/ft2_4FGL_J1248.3+5820_daily_bin58.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/907048/Model_4FGL_J1248.3+5820_daily_bin58.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/907048/ft1_filtered_4FGL_J1248.3+5820_daily_bin58.fits.....................!
real 50.95
user 49.36
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/907048/ft1_filtered_4FGL_J1248.3+5820_daily_bin58.fits', '/scratch/kocevski/907048/ft2_4FGL_J1248.3+5820_daily_bin58.fits', expMap='/scratch/kocevski/907048/expmap_254361601_254620801_4FGL_J1248.3+5820_daily_bin58.fits', expCube='/scratch/kocevski/907048/ltcube_254361601_254620801_4FGL_J1248.3+5820_daily_bin58.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/907048/Model_4FGL_J1248.3+5820_daily_bin58.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1248.3+5820'

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  3.611e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
365        alpha:  1.811e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
366         beta:  4.589e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
367           Eb:  1.135e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/907048/ft1_filtered_4FGL_J1248.3+5820_daily_bin58.fits
Spacecraft file(s): /scratch/kocevski/907048/ft2_4FGL_J1248.3+5820_daily_bin58.fits
Exposure map: /scratch/kocevski/907048/expmap_254361601_254620801_4FGL_J1248.3+5820_daily_bin58.fits
Exposure cube: /scratch/kocevski/907048/ltcube_254361601_254620801_4FGL_J1248.3+5820_daily_bin58.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/907048/Model_4FGL_J1248.3+5820_daily_bin58.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) = 5581.58691593

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    14.160       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.3030       1.0000         .10000E-03   10000.    
     5 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.3181       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.7795       1.0000         .10000E-03   10000.    
    10 'Prefactor '    86.404       1.0000         .10000E-03   10000.    
    11 'norm      '    .10384E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    34.609       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.8500       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10404E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.3185       1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.028       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.4005       1.0000         .10000E-03   10000.    
    19 'norm      '    4.0164       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    36.463       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .89572       1.0000         .10000E-03   10000.    
    23 'norm      '    6.1089       1.0000         .10000E-03   10000.    
    24 'Prefactor '    29.313       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    3.7765       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .32002E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .80971       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.1604       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5581.576     FROM MIGRAD    STATUS=CONVERGED    856 CALLS     4493 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.5516        .24445E-07** at limit **
   2  Prefactor     14.167        23.624       -.47432E-06   -.22883E-04
   3  norm          .10000E-03    6.9247        .18069E-06** at limit **
   4  Prefactor     3.3039        5.0458        .30846E-06   -.60421E-05
   5  norm          .10000E-03    2.8170        .10478E-05** at limit **
   6  Prefactor     .10000E-03    3.1984        .24621E-06** at limit **
   7  Prefactor     .10000E-03    10.731        .50900E-06** at limit **
   8  norm          6.3191        3.0081        .16117E-06    .60942E-05
   9  Prefactor     7.7860        23.418        .69751E-06    .37614E-04
  10  Prefactor     86.426        71.944       -.86901E-06    .10259E-03
  11  norm          .10000E-03    3.4245       -.16510E-06** at limit **
  12  Prefactor     34.608        23.236        .59188E-06    .45392E-04
  13  Prefactor     .10000E-03    8.2710       -.16325E-06** at limit **
  14  norm          4.8525        3.0695       -.79281E-06    .64879E-03
  15  Prefactor     .10000E-03    19.378       -.79073E-06** at limit **
  16  norm          1.3186        1.3403       -.91262E-08   -.18771E-04
  17  Prefactor     25.033        36.948       -.89169E-07    .59680E-04
  18  Prefactor     1.3957        25.268        .25332E-04    .48561E-04
  19  norm          4.0171        3.8624        .79492E-07   -.56234E-05
  20  Prefactor     .10000E-03    17.575       -.13872E-06** at limit **
  21  Prefactor     36.457        55.371        .15131E-05   -.29519E-04
  22  Prefactor     .89026        28.831        .16387E-05   -.38338E-04
  23  norm          6.1077        4.0920        .30802E-07    .84607E-04
  24  Prefactor     29.316        31.527       -.15171E-06    .48543E-04
  25  Prefactor     .10000E-03    1.0252       -.63725E-07** at limit **
  26  Prefactor     .10000E-03    12.829        .31179E-06** at limit **
  27  Prefactor     .10000E-03    4.8522       -.19713E-06** at limit **
  28  norm          .10000E-03    27.513        .21412E-06** at limit **
  29  norm          3.7764        3.3170        .11940E-07    .23460E-03
  30  Prefactor     .10000E-03    11.117        .49221E-07** at limit **
  31  Prefactor     .10021E-03    333.70        .95849E-05** at limit **
  32  Normalizat    .80937        .17644       -.28788E-05   -.86842E-04
  33  Prefactor     1.1607        .20674        .60160E-06   -.98659E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 14.1666
  norm       = 0.0001
  Prefactor  = 3.3039
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.31908
  Prefactor  = 7.78601
  Prefactor  = 86.4257
  norm       = 0.0001
  Prefactor  = 34.6084
  Prefactor  = 0.0001
  norm       = 4.85246
  Prefactor  = 0.0001
  norm       = 1.31863
  Prefactor  = 25.0329
  Prefactor  = 1.39567
  norm       = 4.01705
  Prefactor  = 0.0001
  Prefactor  = 36.4568
  Prefactor  = 0.890256
  norm       = 6.10769
  Prefactor  = 29.3159
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.77639
  Prefactor  = 0.0001
  Prefactor  = 0.00010021
  Normalizat = 0.80937
  Prefactor  = 1.16069
 **********
 **   18 **HESSE 
 **********

 FCN=   5581.576     FROM HESSE     STATUS=OK           693 CALLS     5186 TOTAL
                     EDM=   .65E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.5561        .11654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     14.167        23.513        .10644E-03   -1.4955    
   3  norm          .10000E-03    6.9353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.3039        5.0336        .19964E-03   -1.5344    
   5  norm          .10000E-03    10.771        .23740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.2097        .13046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.3191        3.0095        .84448E-04   -1.5205    
   9  Prefactor     7.7860        23.408        .14377E-03   -1.5150    
  10  Prefactor     86.426        71.852        .43220E-04   -1.3846    
  11  norm          .10000E-03    3.4372        .13494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     34.608        23.260        .68118E-04   -1.4531    
  13  Prefactor     .10000E-03    8.4452        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.8525        3.0757        .95312E-04   -1.5267    
  15  Prefactor     .10000E-03    19.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.3186        1.3444        .84845E-04   -1.5478    
  17  Prefactor     25.033        36.950        .80071E-04   -1.4707    
  18  Prefactor     1.3957        25.585        .18332E-02   -1.5472    
  19  norm          4.0171        3.8529        .13644E-03   -1.5307    
  20  Prefactor     .10000E-03    17.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     36.457        55.398        .66370E-04   -1.4500    
  22  Prefactor     .89026        29.238        .51168E-02   -1.5519    
  23  norm          6.1077        4.0493        .11242E-03   -1.5214    
  24  Prefactor     29.316        31.528        .74000E-04   -1.4625    
  25  Prefactor     .10000E-03    1.0290        .73863E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    12.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    4.9146        .16070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    27.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          3.7764        3.3114        .12315E-03   -1.5319    
  30  Prefactor     .10000E-03    11.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10021E-03    337.27        .21362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .80937        .20816        .24547E-03   -.99722    
  33  Prefactor     1.1607        .24538        .26064E-03   -.87550    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.45484e-08
Minuit parameter uncertainties:
  1  5.07471e-06
  2  23.528
  3  5.55046e-05
  4  5.03422
  5  7.77067e-05
  6  2.39183e-05
  7  0.000100648
  8  3.00953
  9  23.4356
  10  71.9241
  11  1.77787e-05
  12  23.2659
  13  9.07828e-05
  14  3.07582
  15  5.14657e-05
  16  1.34443
  17  36.9834
  18  11.9568
  19  3.85312
  20  2.16536e-05
  21  55.4764
  22  10.2087
  23  4.04947
  24  31.5455
  25  3.85342e-06
  26  0.00013782
  27  2.02295e-05
  28  7.72205e-05
  29  3.3116
  30  3.22748e-05
  31  0.0169337
  32  0.208366
  33  0.245625
Done.

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

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  4.852e+00  3.076e+00  1.000e-04  1.000e+04 ( 1.000e-12)
365        alpha:  1.811e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
366         beta:  4.589e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
367           Eb:  1.135e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
695    Prefactor:  1.161e+00  2.456e-01  0.000e+00  1.000e+01 ( 1.000e+00)
696        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
697        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
694   Normalization:  8.094e-01  2.084e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.36
Ra Dec: 192.084 58.343
Photon Index (Fixed Index): 1.81 +/- 0.00
Photon Flux (Fixed Index): 4.28e-08 +/- 2.71e-08
Energy Flux (Fixed Index): 4.28e-05 +/- 2.72e-05

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) = 5580.09723123
delta logL = 1.47865653832

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5580.0902636
delta logL = 1.48562417249

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4179       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6541       1.0000          .0000       5.0000    
     3 'Normalizat'    .71833       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2254       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5580.090     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      249 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4173        22.018        .54702E-02    .30966E-03
   2  alpha         2.6545        3.7119        .17552        .82166E-04
   3  Normalizat    .71822        .82238E-01    .42535E-01    .24923E-04
   4  Prefactor     1.2254        .84982E-01    .57517E-01    .80781E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.41735
  alpha      = 2.65451
  Normalizat = 0.718221
  Prefactor  = 1.22543
 **********
 **   18 **HESSE 
 **********

 FCN=   5580.090     FROM HESSE     STATUS=OK            33 CALLS      282 TOTAL
                     EDM=   .91E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4173        2.8757        .56123E-04   -1.5338    
   2  alpha         2.6545        .54967        .71291E-02    .61842E-01
   3  Normalizat    .71822        .20530        .25864E-03   -1.0318    
   4  Prefactor     1.2254        .25089        .25434E-03   -.85552    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.05732e-12
Minuit parameter uncertainties:
  1  2.87583
  2  0.554219
  3  0.205523
  4  0.251139
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/907048': 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) = 5580.09026281
delta logL = 1.48562495845

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  3.417e+00  2.876e+00  1.000e-04  1.000e+04 ( 1.000e-12)
365        alpha:  2.655e+00  5.542e-01  0.000e+00  5.000e+00 ( 1.000e+00)
366         beta:  4.589e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
367           Eb:  1.135e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
695    Prefactor:  1.225e+00  2.511e-01  0.000e+00  1.000e+01 ( 1.000e+00)
696        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
697        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
694   Normalization:  7.182e-01  2.055e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.42
Ra Dec: 192.084 58.343
Photon Index (Free Index): 2.65 +/- 0.55
Photon Flux (Free Index): 1.11e-07 +/- 5.62e-08
Energy Flux (Free Index): 2.89e-05 +/- 1.37e-05

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/907048/cmap_HighResolution_254361601_254620801_4FGL_J1248.3+5820_daily_bin58.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.28e-08', energy_flux2='2.89e-05', photon_flux_error='2.71e-08', dlogl='1.49e+00', energy_flux='4.28e-05', photon_flux2='1.11e-07', job_status='DONE', time_completed='2021-09-06 05:17:06.714892', photon_index_error2='0.55', photon_index2='2.65', ts='6.36', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='1.37e-05', EG='0.81', time_epoch_completed='1630930626.71', return_code='0', job_id='907048', GAL2='1.23', EG2='0.72', return_code2='0', energy_flux_error='2.72e-05', photon_flux_error2='5.62e-08', ts2='9.42', photon_index='1.81' WHERE bin_id='58' AND source_name='4FGL J1248.3+5820' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:17:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 907048: <4FGL_J1248.3+5820_daily_bin58> in cluster <slac> Done

Job <4FGL_J1248.3+5820_daily_bin58> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep  6 05:00:58 2021
Job was executed on host(s) <bullet0114>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 05:00:59 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:00:59 2021
Terminated at Mon Sep  6 05:17:07 2021
Results reported at Mon Sep  6 05:17:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.3+5820_daily_bin58 192.084 58.3432 254361601 254620801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1248.3+5820 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   845.16 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             298.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   968 sec.
    Turnaround time :                            969 sec.

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

