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


Performing analysis on: 4FGL_J1248.3+5820_daily_bin893
RA = 192.084, Dec = 58.3432
tmin = 470793601, tmax = 471052801
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='911706', job_status='RUN', time_executed='2021-09-06 05:15:58.965856', time_epoch_executed='1630930558.97' WHERE source_name='4FGL J1248.3+5820' and cadence='daily' and bin_id='893'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/911706

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/911706/ft1_4FGL_J1248.3+5820_daily_bin893.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/911706/ft2_4FGL_J1248.3+5820_daily_bin893.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/911706/ft1_4FGL_J1248.3+5820_daily_bin893.fits outfile=/scratch/kocevski/911706/ft1_filteredMKT_4FGL_J1248.3+5820_daily_bin893.fits ra=192.084 dec=58.3432 rad=12.0 tmin=470793601.0 tmax=471052801.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.49
user 3.27
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/911706/ft1_filtered_4FGL_J1248.3+5820_daily_bin893.fits" evtable="EVENTS" scfile=/scratch/kocevski/911706/ft2_4FGL_J1248.3+5820_daily_bin893.fits sctable="SC_DATA" outfile=/scratch/kocevski/911706/ltcube_470793601_471052801_4FGL_J1248.3+5820_daily_bin893.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/911706/ft2_4FGL_J1248.3+5820_daily_bin893.fits
.....................!
real 11.93
user 11.51
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/911706/ft1_filtered_4FGL_J1248.3+5820_daily_bin893.fits evtable="EVENTS" scfile=/scratch/kocevski/911706/ft2_4FGL_J1248.3+5820_daily_bin893.fits sctable="SC_DATA" expcube=/scratch/kocevski/911706/ltcube_470793601_471052801_4FGL_J1248.3+5820_daily_bin893.fits outfile=/scratch/kocevski/911706/expmap_470793601_471052801_4FGL_J1248.3+5820_daily_bin893.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/911706/ltcube_470793601_471052801_4FGL_J1248.3+5820_daily_bin893.fits
.....................!
real 193.25
user 188.00
sys 4.80

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/911706/ft1_filtered_4FGL_J1248.3+5820_daily_bin893.fits scfile=/scratch/kocevski/911706/ft2_4FGL_J1248.3+5820_daily_bin893.fits outfile=/scratch/kocevski/911706/cmap_470793601_471052801_4FGL_J1248.3+5820_daily_bin893.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.56
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/911706/ft1_filtered_4FGL_J1248.3+5820_daily_bin893.fits scfile=/scratch/kocevski/911706/ft2_4FGL_J1248.3+5820_daily_bin893.fits outfile=/scratch/kocevski/911706/cmap_HighResolution_470793601_471052801_4FGL_J1248.3+5820_daily_bin893.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.57
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.0142       1.0000         .10000E-03   10000.    
     5 'norm      '    .34240       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.2195       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.173       1.0000         .10000E-03   10000.    
     8 'norm      '    .10808E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.2398       1.0000         .10000E-03   10000.    
    11 'norm      '    5.5544       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .18107E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.5894       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14422       1.0000         .10000E-03   10000.    
    16 'norm      '    2.6666       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    30.296       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .12051E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    4.6424       1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10266E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1055       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .90056       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=   6547.257     FROM MIGRAD    STATUS=CONVERGED    980 CALLS     4020 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.8634        .44815E-07** at limit **
   2  Prefactor     .10000E-03    8.3360        .19257E-06** at limit **
   3  norm          .10000E-03    8.7049       -.27076E-06** at limit **
   4  Prefactor     1.0125        3.3350        .52224E-06   -.34020E-03
   5  norm          .35851        3.1938       -.53879E-06    .37679E-03
   6  Prefactor     7.2093        10.549        .69494E-06    .41534E-03
   7  Prefactor     14.175        16.329        .61046E-07    .11094E-03
   8  norm          .10000E-03    1.0397       -.65520E-08** at limit **
   9  Prefactor     .10000E-03    4.9097        .70416E-08** at limit **
  10  Prefactor     4.2077        201.95       -.27927E-05   -.26030E-05
  11  norm          5.5500        5.7535        .24481E-05   -.15403E-02
  12  Prefactor     .10001E-03    57.877       -.55690E-05** at limit **
  13  Prefactor     .10000E-03    5.6097        .29267E-07** at limit **
  14  norm          4.5892        2.3474        .24186E-07    .12645E-05
  15  Prefactor     .10076E-03    14.112       -.32206E-06** at limit **
  16  norm          2.6666        1.7725       -.35259E-08    .26314E-04
  17  Prefactor     .10000E-03    9.6340        .15580E-06** at limit **
  18  Prefactor     .10000E-03    17.379        .32237E-06** at limit **
  19  norm          .10000E-03    1.8135        .18739E-07** at limit **
  20  Prefactor     30.272        36.247        .97469E-06    .68645E-04
  21  Prefactor     .10000E-03    23.203       -.10017E-05** at limit **
  22  Prefactor     .10000E-03    3.5196        .13450E-07** at limit **
  23  norm          .10000E-03    1.4560        .62264E-07** at limit **
  24  Prefactor     .10001E-03    29.837        .66978E-05** at limit **
  25  Prefactor     .10000E-03    1.3828        .19900E-07** at limit **
  26  Prefactor     .10001E-03    43.328        .51007E-05** at limit **
  27  Prefactor     4.6413        4.8121        .45938E-07   -.29861E-04
  28  norm          .10003E-03    32.002       -.91875E-05** at limit **
  29  norm          .10000E-03    1.9886        .10435E-06** at limit **
  30  Prefactor     .10000E-03    12.075       -.52262E-07** at limit **
  31  Prefactor     .10000E-03    262.02        .35905E-05** at limit **
  32  Normalizat    1.1057        .15234       -.34156E-06    .87463E-04
  33  Prefactor     .90062        .18502       -.37416E-06    .41980E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.0125
  norm       = 0.358513
  Prefactor  = 7.20929
  Prefactor  = 14.1753
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.20773
  norm       = 5.54998
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  norm       = 4.58918
  Prefactor  = 0.000100759
  norm       = 2.66663
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 30.2716
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100014
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 4.64127
  norm       = 0.000100026
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Normalizat = 1.10568
  Prefactor  = 0.900615
 **********
 **   18 **HESSE 
 **********

 FCN=   6547.257     FROM HESSE     STATUS=OK           697 CALLS     4717 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.0784        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.3467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    8.7729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0125        3.3210        .25988E-03   -1.5507    
   5  norm          .35851        19.339        .23186E-02   -1.5588    
   6  Prefactor     7.2093        11.161        .14928E-03   -1.5171    
   7  Prefactor     14.175        16.282        .10639E-03   -1.4955    
   8  norm          .10000E-03    3.6716        .15718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.9154        .17510E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.2077        200.54        .19569E-03   -1.5298    
  11  norm          5.5500        6.6540        .85235E-03   -1.5237    
  12  Prefactor     .10001E-03    61.462        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.6905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.5892        2.3424        .85440E-04   -1.5279    
  15  Prefactor     .10076E-03    19.789        .87726E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.6666        1.7764        .85190E-04   -1.5381    
  17  Prefactor     .10000E-03    9.6372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    17.783        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.8339        .10639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     30.272        36.260        .72792E-04   -1.4607    
  21  Prefactor     .10000E-03    23.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.5218        .14825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.4534        .18996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10001E-03    31.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1.4032        .92737E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10001E-03    44.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     4.6413        4.8017        .17534E-03   -1.5277    
  28  norm          .10003E-03    34.555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    3.9112        .22099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    12.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    262.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.1057        .17428        .20504E-03   -.89570    
  33  Prefactor     .90062        .21383        .28058E-03   -.96120    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.50197e-09
Minuit parameter uncertainties:
  1  8.30486e-06
  2  2.24822e-05
  3  2.09859e-05
  4  3.32158
  5  5.26725
  6  11.1641
  7  16.2874
  8  1.64518e-05
  9  1.63896e-06
  10  58.3046
  11  6.65491
  12  0.00131831
  13  4.39916e-06
  14  2.34245
  15  0.00775497
  16  1.77639
  17  1.77246e-05
  18  4.71657e-05
  19  1.33919e-06
  20  36.2859
  21  0.000168847
  22  6.24825e-07
  23  1.89031e-06
  24  0.00130931
  25  4.11423e-07
  26  0.00111125
  27  4.80209
  28  0.0019051
  29  3.8619e-06
  30  6.32947e-06
  31  0.00206326
  32  0.174371
  33  0.214026
Done.

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

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  4.589e+00  2.342e+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:  9.006e-01  2.140e-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:  1.106e+00  1.744e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 20.16
Ra Dec: 192.084 58.343
Photon Index (Fixed Index): 1.81 +/- 0.00
Photon Flux (Fixed Index): 4.05e-08 +/- 2.07e-08
Energy Flux (Fixed Index): 4.05e-05 +/- 2.07e-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) = 6547.20716341
delta logL = 0.0497735718154

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6547.19535731
delta logL = 0.061579674245

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.1876       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6189       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1179       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89418       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=   6547.195     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      200 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1869        2.3818        .49235E-02   -.17037E-04
   2  alpha         1.6186        .40588        .33639       -.46190E-04
   3  Normalizat    1.1179        .14992        .37316E-01   -.13781E-04
   4  Prefactor     .89418        .18521        .44931E-01    .73195E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.1869
  alpha      = 1.6186
  Normalizat = 1.11786
  Prefactor  = 0.894182
 **********
 **   18 **HESSE 
 **********

 FCN=   6547.195     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .50E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1869        2.6673        .86667E-04   -1.5299    
   2  alpha         1.6186        .52282        .12650E-01   -.36031    
   3  Normalizat    1.1179        .17237        .20410E-03   -.89180    
   4  Prefactor     .89418        .21362        .28156E-03   -.96345    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.98631e-12
Minuit parameter uncertainties:
  1  2.66738
  2  0.527272
  3  0.172459
  4  0.213815
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/911706': 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) = 6547.19535719
delta logL = 0.0615797910687

Extracting fit parameters...

4FGL J1248.3+5820
   Spectrum: LogParabola
364         norm:  4.187e+00  2.667e+00  1.000e-04  1.000e+04 ( 1.000e-12)
365        alpha:  1.619e+00  5.273e-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:  8.942e-01  2.138e-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:  1.118e+00  1.725e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 20.28
Ra Dec: 192.084 58.343
Photon Index (Free Index): 1.62 +/- 0.53
Photon Flux (Free Index): 3.02e-08 +/- 2.95e-08
Energy Flux (Free Index): 5.09e-05 +/- 4.48e-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/911706/cmap_HighResolution_470793601_471052801_4FGL_J1248.3+5820_daily_bin893.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.05e-08', energy_flux2='5.09e-05', photon_flux_error='2.07e-08', dlogl='6.16e-02', energy_flux='4.05e-05', photon_flux2='3.02e-08', job_status='DONE', time_completed='2021-09-06 05:31:30.112409', photon_index_error2='0.53', photon_index2='1.62', ts='20.16', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='4.48e-05', EG='1.11', time_epoch_completed='1630931490.11', return_code='0', job_id='911706', GAL2='0.89', EG2='1.12', return_code2='0', energy_flux_error='2.07e-05', photon_flux_error2='2.95e-08', ts2='20.28', photon_index='1.81' WHERE bin_id='893' AND source_name='4FGL J1248.3+5820' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 05:31:30 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1248.3+5820_daily_bin893 192.084 58.3432 470793601 471052801 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 :                                   918.41 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             355.61 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.

