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


Performing analysis on: 4FGL_J1248.3+5820_daily_bin1525
RA = 192.084, Dec = 58.3432
tmin = 634608001, tmax = 634867201
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='916140', job_status='RUN', time_executed='2021-09-06 05:33:52.578635', time_epoch_executed='1630931632.58' WHERE source_name='4FGL J1248.3+5820' and cadence='daily' and bin_id='1525'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/916140

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/916140/ft1_4FGL_J1248.3+5820_daily_bin1525.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/916140/ft2_4FGL_J1248.3+5820_daily_bin1525.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/916140/ft1_4FGL_J1248.3+5820_daily_bin1525.fits outfile=/scratch/kocevski/916140/ft1_filteredMKT_4FGL_J1248.3+5820_daily_bin1525.fits ra=192.084 dec=58.3432 rad=12.0 tmin=634608001.0 tmax=634867201.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.15
user 2.90
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/916140/ft1_filtered_4FGL_J1248.3+5820_daily_bin1525.fits" evtable="EVENTS" scfile=/scratch/kocevski/916140/ft2_4FGL_J1248.3+5820_daily_bin1525.fits sctable="SC_DATA" outfile=/scratch/kocevski/916140/ltcube_634608001_634867201_4FGL_J1248.3+5820_daily_bin1525.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/916140/ft2_4FGL_J1248.3+5820_daily_bin1525.fits
.....................!
real 15.08
user 14.62
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/916140/ft1_filtered_4FGL_J1248.3+5820_daily_bin1525.fits evtable="EVENTS" scfile=/scratch/kocevski/916140/ft2_4FGL_J1248.3+5820_daily_bin1525.fits sctable="SC_DATA" expcube=/scratch/kocevski/916140/ltcube_634608001_634867201_4FGL_J1248.3+5820_daily_bin1525.fits outfile=/scratch/kocevski/916140/expmap_634608001_634867201_4FGL_J1248.3+5820_daily_bin1525.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/916140/ltcube_634608001_634867201_4FGL_J1248.3+5820_daily_bin1525.fits
.....................!
real 190.28
user 185.59
sys 4.29

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/916140/ft1_filtered_4FGL_J1248.3+5820_daily_bin1525.fits scfile=/scratch/kocevski/916140/ft2_4FGL_J1248.3+5820_daily_bin1525.fits outfile=/scratch/kocevski/916140/cmap_634608001_634867201_4FGL_J1248.3+5820_daily_bin1525.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/916140/ft1_filtered_4FGL_J1248.3+5820_daily_bin1525.fits scfile=/scratch/kocevski/916140/ft2_4FGL_J1248.3+5820_daily_bin1525.fits outfile=/scratch/kocevski/916140/cmap_HighResolution_634608001_634867201_4FGL_J1248.3+5820_daily_bin1525.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.52
user 0.36
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/916140/ft1_filtered_4FGL_J1248.3+5820_daily_bin1525.fits', '/scratch/kocevski/916140/ft2_4FGL_J1248.3+5820_daily_bin1525.fits', expMap='/scratch/kocevski/916140/expmap_634608001_634867201_4FGL_J1248.3+5820_daily_bin1525.fits', expCube='/scratch/kocevski/916140/ltcube_634608001_634867201_4FGL_J1248.3+5820_daily_bin1525.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/916140/Model_4FGL_J1248.3+5820_daily_bin1525.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/916140/ft1_filtered_4FGL_J1248.3+5820_daily_bin1525.fits
Spacecraft file(s): /scratch/kocevski/916140/ft2_4FGL_J1248.3+5820_daily_bin1525.fits
Exposure map: /scratch/kocevski/916140/expmap_634608001_634867201_4FGL_J1248.3+5820_daily_bin1525.fits
Exposure cube: /scratch/kocevski/916140/ltcube_634608001_634867201_4FGL_J1248.3+5820_daily_bin1525.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/916140/Model_4FGL_J1248.3+5820_daily_bin1525.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) = 3980.14902279

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-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      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    12.181       1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.034       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    11.094       1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.517       1.0000         .10000E-03   10000.    
    16 'norm      '    5.8448       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10747       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.9141       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    36.711       1.0000         .10000E-03   10000.    
    23 'norm      '    2.7268       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.2963       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .17587E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    8.3244       1.0000         .10000E-03   10000.    
    30 'Prefactor '    41.120       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .32083       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.1087       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3979.731     FROM MIGRAD    STATUS=CONVERGED    461 CALLS     5063 TOTAL
                     EDM=   .13E-07  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        103.35         .0000    ** at limit **
   2  Prefactor    10000.0        430.76         .0000    ** at limit **
   3  norm          .10050E-03    26.680         .0000    ** at limit **
   4  Prefactor     .10000E-03    8.3883         .0000    ** at limit **
   5  norm          .10001E-03    6.3213         .0000    ** at limit **
   6  Prefactor     .10002E-03    6.3833         .0000    ** at limit **
   7  Prefactor     .10008E-03    15.700         .0000    ** at limit **
   8  norm          .10000E-03    1.6516         .0000    ** at limit **
   9  Prefactor     .10007E-03    15.892         .0000    ** at limit **
  10  Prefactor     .10001E-03    26.798         .0000    ** at limit **
  11  norm          12.178        1.0196         .0000       -.64113E-04
  12  Prefactor     26.035        1.0233         .0000        .37621E-04
  13  Prefactor     .10000E-03    2.2693         .0000    ** at limit **
  14  norm          11.095        4.1712         .0000        .34102E-02
  15  Prefactor     16.517        1.0054         .0000       -.23352E-04
  16  norm          5.8447        3.2069         .0000       -.30946E-04
  17  Prefactor     .10000E-03    10.121         .0000    ** at limit **
  18  Prefactor     .10000E-03    6.3101         .0000    ** at limit **
  19  norm          .10417        .33757         .0000       -.37538E-04
  20  Prefactor     6.9143        1.0140         .0000        .12034E-04
  21  Prefactor     .10002E-03    23.075         .0000    ** at limit **
  22  Prefactor     36.702        1.3096         .0000       -.57873E-03
  23  norm          2.7271        4.5774         .0000       -.14221E-02
  24  Prefactor     .10005E-03    23.809         .0000    ** at limit **
  25  Prefactor     6.2973        4.1215         .0000       -.91956E-04
  26  Prefactor     .10004E-03    24.592         .0000    ** at limit **
  27  Prefactor     .10000E-03    4.3672         .0000    ** at limit **
  28  norm          .10001E-03    44.160         .0000    ** at limit **
  29  norm          8.3221        4.1985         .0000        .35815E-03
  30  Prefactor     41.114        1.6333         .0000       -.17174E-03
  31  Prefactor     .10560E-03    58.555         .0000    ** at limit **
  32  Normalizat    .32112        .21857         .0000       -.38814E-06
  33  Prefactor     1.1086        .26099         .0000       -.43079E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 0.000100499
  Prefactor  = 0.000100001
  norm       = 0.000100011
  Prefactor  = 0.000100017
  Prefactor  = 0.000100082
  norm       = 0.0001
  Prefactor  = 0.000100066
  Prefactor  = 0.000100015
  norm       = 12.1782
  Prefactor  = 26.0349
  Prefactor  = 0.0001
  norm       = 11.0951
  Prefactor  = 16.5169
  norm       = 5.84473
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.104173
  Prefactor  = 6.91425
  Prefactor  = 0.000100016
  Prefactor  = 36.7022
  norm       = 2.7271
  Prefactor  = 0.000100049
  Prefactor  = 6.29729
  Prefactor  = 0.00010004
  Prefactor  = 0.0001
  norm       = 0.000100008
  norm       = 8.32205
  Prefactor  = 41.1137
  Prefactor  = 0.0001056
  Normalizat = 0.321116
  Prefactor  = 1.10861
 **********
 **   18 **HESSE 
 **********

 FCN=   3979.731     FROM HESSE     STATUS=OK           759 CALLS     5822 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        162.47        .90712E-02    1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor    10000.0        487.00        .90712E-02    1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10050E-03    73.148        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.3939        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10001E-03    6.4654        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10002E-03    6.4914        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10008E-03    16.283        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.6512        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10007E-03    16.486        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    27.118        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          12.178        16.902        .28694E-02   -1.5010    
  12  Prefactor     26.035        34.867        .19628E-02   -1.4687    
  13  Prefactor     .10000E-03    2.2676        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          11.095        4.1923        .30071E-02   -1.5042    
  15  Prefactor     16.517        28.087        .24637E-02   -1.4895    
  16  norm          5.8447        3.2111        .41529E-02   -1.5224    
  17  Prefactor     .10000E-03    10.126        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.2903        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10417        2.7510        .59041E-01   -1.5643    
  20  Prefactor     6.9143        65.148        .38144E-02   -1.5182    
  21  Prefactor     .10002E-03    23.311        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     36.702        27.165        .16536E-02   -1.4496    
  23  norm          2.7271        5.3183        .61651E-02   -1.5378    
  24  Prefactor     .10005E-03    78.191        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     6.2973        4.2425        .39993E-02   -1.5206    
  26  Prefactor     .10004E-03    75.280        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    4.3525        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10001E-03    44.754        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          8.3221        4.2282        .34737E-02   -1.5131    
  30  Prefactor     41.114        40.197        .15628E-02   -1.4425    
  31  Prefactor     .10560E-03    110.81        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .32112        .21534        .77304E-01   -1.2160    
  33  Prefactor     1.1086        .24807        .37264E-01   -.89192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99071e-07
Minuit parameter uncertainties:
  1  0.0853807
  2  0.231277
  3  0.0121004
  4  0.000140077
  5  0.000538118
  6  0.000663876
  7  0.00231195
  8  2.02566e-07
  9  0.00208066
  10  0.0012574
  11  16.9086
  12  34.894
  13  5.4702e-07
  14  4.19244
  15  28.109
  16  3.21116
  17  0.000182102
  18  8.88705e-05
  19  1.07021
  20  42.5084
  21  0.00121096
  22  27.174
  23  5.31921
  24  0.00392836
  25  4.24267
  26  0.00346928
  27  1.9482e-06
  28  0.00118703
  29  4.22834
  30  40.2234
  31  0.0499133
  32  0.215901
  33  0.248327
Done.

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

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  1.110e+01  4.192e+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.109e+00  2.483e-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:  3.211e-01  2.159e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 25.70
Ra Dec: 192.084 58.343
Photon Index (Fixed Index): 1.81 +/- 0.00
Photon Flux (Fixed Index): 9.79e-08 +/- 3.70e-08
Energy Flux (Fixed Index): 9.80e-05 +/- 3.70e-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) = 3979.44715695
delta logL = 0.284176753475

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3979.41029928
delta logL = 0.321034414996

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.9423       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0362       1.0000          .0000       5.0000    
     3 'Normalizat'    .31173       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1123       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=   3979.410     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      210 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.9423        12.674        .31771E-02    .42674E-02
   2  alpha         2.0363        .83664        .14029        .28714E-03
   3  Normalizat    .31171        .20398        .78345E-01    .74287E-04
   4  Prefactor     1.1123        .24963        .37137E-01    .19423E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.9423
  alpha      = 2.03625
  Normalizat = 0.311707
  Prefactor  = 1.11232
 **********
 **   18 **HESSE 
 **********

 FCN=   3979.410     FROM HESSE     STATUS=OK            29 CALLS      239 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.9423        4.1875        .70058E-04   -1.5077    
   2  alpha         2.0363        .28897        .60296E-02   -.18658    
   3  Normalizat    .31171        .21061        .34695E-03   -1.2215    
   4  Prefactor     1.1123        .25955        .23202E-03   -.89074    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49733e-09
Minuit parameter uncertainties:
  1  4.18764
  2  0.289639
  3  0.211151
  4  0.259849
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/916140': 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) = 3979.41029928
delta logL = 0.321034423043

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  9.942e+00  4.188e+00  1.000e-04  1.000e+04 ( 1.000e-12)
365        alpha:  2.036e+00  2.896e-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.112e+00  2.598e-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:  3.117e-01  2.112e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 26.43
Ra Dec: 192.084 58.343
Photon Index (Free Index): 2.04 +/- 0.29
Photon Flux (Free Index): 1.18e-07 +/- 4.87e-08
Energy Flux (Free Index): 7.06e-05 +/- 3.72e-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/916140/cmap_HighResolution_634608001_634867201_4FGL_J1248.3+5820_daily_bin1525.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.79e-08', energy_flux2='7.06e-05', photon_flux_error='3.70e-08', dlogl='3.21e-01', energy_flux='9.80e-05', photon_flux2='1.18e-07', job_status='DONE', time_completed='2021-09-06 05:46:31.071360', photon_index_error2='0.29', photon_index2='2.04', ts='25.70', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='3.72e-05', EG='0.32', time_epoch_completed='1630932391.07', return_code='0', job_id='916140', GAL2='1.11', EG2='0.31', return_code2='0', energy_flux_error='3.70e-05', photon_flux_error2='4.87e-08', ts2='26.43', photon_index='1.81' WHERE bin_id='1525' AND source_name='4FGL J1248.3+5820' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:46:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 916140: <4FGL_J1248.3+5820_daily_bin1525> in cluster <slac> Done

Job <4FGL_J1248.3+5820_daily_bin1525> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 05:30:45 2021
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 05:30:46 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:30:46 2021
Terminated at Mon Sep  6 05:46:31 2021
Results reported at Mon Sep  6 05:46:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.3+5820_daily_bin1525 192.084 58.3432 634608001 634867201 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 :                                   751.43 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             247.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   945 sec.
    Turnaround time :                            946 sec.

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

