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


Performing analysis on: 4FGL_J1111.8+4858_daily_bin1458
RA = 167.969, Dec = 48.9798
tmin = 617241601, tmax = 617500801
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='600714', job_status='RUN', time_executed='2021-09-03 12:31:40.178345', time_epoch_executed='1630697500.18' WHERE source_name='4FGL J1111.8+4858' and cadence='daily' and bin_id='1458'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/600714

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/600714/ft1_4FGL_J1111.8+4858_daily_bin1458.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/600714/ft2_4FGL_J1111.8+4858_daily_bin1458.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/600714/ft1_4FGL_J1111.8+4858_daily_bin1458.fits outfile=/scratch/kocevski/600714/ft1_filteredMKT_4FGL_J1111.8+4858_daily_bin1458.fits ra=167.969 dec=48.9798 rad=12.0 tmin=617241601.0 tmax=617500801.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 2.98
user 2.77
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/600714/ft2_4FGL_J1111.8+4858_daily_bin1458.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/600714/ft2_4FGL_J1111.8+4858_daily_bin1458.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/600714/ft1_filteredMKT_4FGL_J1111.8+4858_daily_bin1458.fits evtable="EVENTS" outfile="/scratch/kocevski/600714/ft1_filtered_4FGL_J1111.8+4858_daily_bin1458.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.51
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/600714/ft1_filtered_4FGL_J1111.8+4858_daily_bin1458.fits" evtable="EVENTS" scfile=/scratch/kocevski/600714/ft2_4FGL_J1111.8+4858_daily_bin1458.fits sctable="SC_DATA" outfile=/scratch/kocevski/600714/ltcube_617241601_617500801_4FGL_J1111.8+4858_daily_bin1458.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/600714/ft2_4FGL_J1111.8+4858_daily_bin1458.fits
.....................!
real 18.58
user 18.20
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/600714/ft1_filtered_4FGL_J1111.8+4858_daily_bin1458.fits evtable="EVENTS" scfile=/scratch/kocevski/600714/ft2_4FGL_J1111.8+4858_daily_bin1458.fits sctable="SC_DATA" expcube=/scratch/kocevski/600714/ltcube_617241601_617500801_4FGL_J1111.8+4858_daily_bin1458.fits outfile=/scratch/kocevski/600714/expmap_617241601_617500801_4FGL_J1111.8+4858_daily_bin1458.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/600714/ltcube_617241601_617500801_4FGL_J1111.8+4858_daily_bin1458.fits
.....................!
real 192.49
user 187.55
sys 4.32

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

Setting source of interest to:
4FGL J1111.8+4858 @ 167.969 48.9798

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/600714/ft1_filtered_4FGL_J1111.8+4858_daily_bin1458.fits scfile=/scratch/kocevski/600714/ft2_4FGL_J1111.8+4858_daily_bin1458.fits outfile=/scratch/kocevski/600714/cmap_617241601_617500801_4FGL_J1111.8+4858_daily_bin1458.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=167.969 yref=48.9798 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/600714/ft1_filtered_4FGL_J1111.8+4858_daily_bin1458.fits scfile=/scratch/kocevski/600714/ft2_4FGL_J1111.8+4858_daily_bin1458.fits outfile=/scratch/kocevski/600714/cmap_HighResolution_617241601_617500801_4FGL_J1111.8+4858_daily_bin1458.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=167.969 yref=48.9798 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.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/600714/ft1_filtered_4FGL_J1111.8+4858_daily_bin1458.fits evtable="EVENTS" scfile=/scratch/kocevski/600714/ft2_4FGL_J1111.8+4858_daily_bin1458.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/600714/Model_4FGL_J1111.8+4858_daily_bin1458.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/600714/ft1_filtered_4FGL_J1111.8+4858_daily_bin1458.fits.....................!
real 55.94
user 54.67
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/600714/ft1_filtered_4FGL_J1111.8+4858_daily_bin1458.fits', '/scratch/kocevski/600714/ft2_4FGL_J1111.8+4858_daily_bin1458.fits', expMap='/scratch/kocevski/600714/expmap_617241601_617500801_4FGL_J1111.8+4858_daily_bin1458.fits', expCube='/scratch/kocevski/600714/ltcube_617241601_617500801_4FGL_J1111.8+4858_daily_bin1458.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/600714/Model_4FGL_J1111.8+4858_daily_bin1458.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1111.8+4858'

4FGL J1111.8+4858
   Spectrum: PowerLaw
372    Prefactor:  2.239e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-15)
373        Index:  1.825e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
374        Scale:  5.853e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/600714/ft1_filtered_4FGL_J1111.8+4858_daily_bin1458.fits
Spacecraft file(s): /scratch/kocevski/600714/ft2_4FGL_J1111.8+4858_daily_bin1458.fits
Exposure map: /scratch/kocevski/600714/expmap_617241601_617500801_4FGL_J1111.8+4858_daily_bin1458.fits
Exposure cube: /scratch/kocevski/600714/ltcube_617241601_617500801_4FGL_J1111.8+4858_daily_bin1458.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/600714/Model_4FGL_J1111.8+4858_daily_bin1458.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) = 6777.97415069

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7740       1.0000         .10000E-03   10000.    
     2 'norm      '    8.5045       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.9943       1.0000         .10000E-03   10000.    
     5 'norm      '    .59033       1.0000         .10000E-03   10000.    
     6 'Prefactor '    60.854       1.0000         .10000E-03   10000.    
     7 'Prefactor '    29.345       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.4417       1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.506       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    56.643       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.5045       1.0000         .10000E-03   10000.    
    18 'Prefactor '    38.215       1.0000         .10000E-03   10000.    
    19 'norm      '    .11038E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    22.768       1.0000         .10000E-03   10000.    
    21 'norm      '    1.0120       1.0000         .10000E-03   10000.    
    22 'norm      '    6.9001       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10354E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.2677       1.0000         .10000E-03   10000.    
    26 'norm      '    .11589E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    3.6433       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0900       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0753       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6777.967     FROM MIGRAD    STATUS=CONVERGED    748 CALLS     3750 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7736        9.6478        .18807E-05    .13500E-04
   2  norm          8.5043        4.0581       -.30063E-07   -.79995E-05
   3  Prefactor     .10000E-03    17.564        .27782E-06** at limit **
   4  Prefactor     1.9959        5.0709        .21298E-06   -.13299E-03
   5  norm          .59041        1.3485        .12804E-07   -.30822E-03
   6  Prefactor     60.844        58.530        .41451E-06   -.79984E-04
   7  Prefactor     29.343        71.987        .49325E-06   -.40115E-05
   8  Prefactor     .10000E-03    63.761       -.38287E-07** at limit **
   9  Prefactor     .10000E-03    33.113        .49965E-07** at limit **
  10  norm          .10000E-03    .47788        .12142E-07** at limit **
  11  Prefactor     .10000E-03    16.528       -.94639E-07** at limit **
  12  norm          1.4417        .37448        .93950E-08    .27466E-03
  13  Prefactor     13.510        16.368        .97839E-08   -.65913E-05
  14  Prefactor     .10000E-03    9.8224       -.24560E-08** at limit **
  15  Prefactor     56.646        55.700       -.18748E-08    .21240E-04
  16  norm          .10000E-03    19.506       -.14977E-06** at limit **
  17  Prefactor     1.4964        6.7598        .11474E-05    .37953E-04
  18  Prefactor     38.231        27.231       -.21206E-06    .58879E-05
  19  norm          .10000E-03    1.1872       -.24687E-06** at limit **
  20  Prefactor     22.743        40.037        .20782E-05   -.40753E-04
  21  norm          1.0106        1.1102       -.14371E-06   -.47808E-03
  22  norm          6.8994        6.1225        .52957E-07   -.16903E-03
  23  Prefactor     .10000E-03    1.0431        .42585E-07** at limit **
  24  Prefactor     .10000E-03    113.04        .51605E-06** at limit **
  25  Prefactor     2.2676        16.899        .81339E-05    .21276E-04
  26  norm          .10000E-03    .72197        .12811E-06** at limit **
  27  norm          3.6434        4.7796       -.74184E-07    .14265E-03
  28  Normalizat    1.0901        .16932       -.57002E-06    .10813E-03
  29  Prefactor     1.0752        .20939       -.38986E-06    .55142E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.77363
  norm       = 8.5043
  Prefactor  = 0.0001
  Prefactor  = 1.99587
  norm       = 0.590408
  Prefactor  = 60.8436
  Prefactor  = 29.3429
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.44172
  Prefactor  = 13.5102
  Prefactor  = 0.0001
  Prefactor  = 56.6461
  norm       = 0.0001
  Prefactor  = 1.49637
  Prefactor  = 38.231
  norm       = 0.0001
  Prefactor  = 22.743
  norm       = 1.01056
  norm       = 6.89944
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.26765
  norm       = 0.0001
  norm       = 3.64343
  Normalizat = 1.09011
  Prefactor  = 1.07516
 **********
 **   18 **HESSE 
 **********

 FCN=   6777.967     FROM HESSE     STATUS=OK           563 CALLS     4313 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7736        9.6503        .92070E-03   -1.5271    
   2  norm          8.5043        4.0561        .11051E-03   -1.5125    
   3  Prefactor     .10000E-03    17.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.9959        5.0201        .27198E-03   -1.5425    
   5  norm          .59041        1.1546        .13976E-02   -1.5554    
   6  Prefactor     60.844        58.141        .51434E-04   -1.4146    
   7  Prefactor     29.343        72.013        .73960E-04   -1.4624    
   8  Prefactor     .10000E-03    63.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    33.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .47881        .55561E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.4417        .37429        .24914E-04   -1.5468    
  13  Prefactor     13.510        16.313        .10899E-03   -1.4973    
  14  Prefactor     .10000E-03    9.8602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     56.646        55.709        .53301E-04   -1.4201    
  16  norm          .10000E-03    19.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.4964        6.6213        .34896E-03   -1.5463    
  18  Prefactor     38.231        27.005        .64835E-04   -1.4471    
  19  norm          .10000E-03    6.6250        .17137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     22.743        40.014        .83945E-04   -1.4754    
  21  norm          1.0106        1.0727        .78073E-03   -1.5507    
  22  norm          6.8994        6.1234        .15273E-03   -1.5183    
  23  Prefactor     .10000E-03    1.0611        .82067E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    114.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.2676        16.918        .13637E-02   -1.5407    
  26  norm          .10000E-03    3.7109        .13476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          3.6434        4.7727        .20023E-03   -1.5326    
  28  Normalizat    1.0901        .19745        .23591E-03   -.90070    
  29  Prefactor     1.0752        .24470        .30505E-03   -.90265    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.2489e-09
Minuit parameter uncertainties:
  1  9.65347
  2  4.0562
  3  0.000133991
  4  5.02116
  5  1.15462
  6  58.1956
  7  72.2275
  8  9.99464e-05
  9  6.18054e-05
  10  2.88956e-07
  11  6.84222e-05
  12  0.374294
  13  16.3182
  14  2.69387e-06
  15  55.7602
  16  0.000105976
  17  6.29631
  18  27.0135
  19  7.77604e-05
  20  40.0612
  21  1.07276
  22  6.12394
  23  2.18841e-07
  24  0.000369276
  25  12.3922
  26  2.13712e-05
  27  4.77319
  28  0.197588
  29  0.244956
Done.

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

Extracting fit parameters...

4FGL J1111.8+4858
   Spectrum: PowerLaw
372    Prefactor:  5.665e+01  5.576e+01  1.000e-04  1.000e+04 ( 1.000e-15)
373        Index:  1.825e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
374        Scale:  5.853e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
697    Prefactor:  1.075e+00  2.450e-01  0.000e+00  1.000e+01 ( 1.000e+00)
698        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
699        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
696   Normalization:  1.090e+00  1.976e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.32
Ra Dec: 167.969 48.980
Photon Index (Fixed Index): 1.82 +/- 0.00
Photon Flux (Fixed Index): 1.15e-08 +/- 1.13e-08
Energy Flux (Fixed Index): 1.28e-05 +/- 1.26e-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) = 6777.2123794
delta logL = 0.754731526852

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6777.20510714
delta logL = 0.762003786778

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    93.281       1.0000         .10000E-03   10000.    
     2 'Index     '    .98658       1.0000          .0000       10.000    
     3 'Normalizat'    1.0968       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0739       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6777.205     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      279 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     93.281        128.72        .10403E-02   -.93254E-04
   2  Index         .98658        .79965        .25909       -.88341E-05
   3  Normalizat    1.0968        .16100        .38133E-01   -.15371E-04
   4  Prefactor     1.0738        .20729        .68976E-01   -.25035E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 93.2813
  Index      = 0.986577
  Normalizat = 1.09684
  Prefactor  = 1.07379
 **********
 **   18 **HESSE 
 **********

 FCN=   6777.205     FROM HESSE     STATUS=OK            31 CALLS      310 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     93.281        95.552        .41611E-04   -1.3773    
   2  Index         .98658        .65278        .15780E-01   -.93178    
   3  Normalizat    1.0968        .18737        .23520E-03   -.89853    
   4  Prefactor     1.0738        .24161        .30516E-03   -.90309    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31647e-10
Minuit parameter uncertainties:
  1  95.7104
  2  0.658114
  3  0.187483
  4  0.241851
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/600714': 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) = 6777.20510709
delta logL = 0.762003838609

Extracting fit parameters...

4FGL J1111.8+4858
   Spectrum: PowerLaw
372    Prefactor:  9.328e+01  9.571e+01  1.000e-04  1.000e+04 ( 1.000e-15)
373        Index:  9.866e-01  6.581e-01  0.000e+00  1.000e+01 (-1.000e+00)
374        Scale:  5.853e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
697    Prefactor:  1.074e+00  2.419e-01  0.000e+00  1.000e+01 ( 1.000e+00)
698        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
699        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
696   Normalization:  1.097e+00  1.875e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.83
Ra Dec: 167.969 48.980
Photon Index (Free Index): 0.99 +/- 0.66
Photon Flux (Free Index): 3.74e-09 +/- 4.33e-09
Energy Flux (Free Index): 5.59e-05 +/- 8.00e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/600714/cmap_HighResolution_617241601_617500801_4FGL_J1111.8+4858_daily_bin1458.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.15e-08', energy_flux2='5.59e-05', photon_flux_error='1.13e-08', dlogl='7.62e-01', energy_flux='1.28e-05', photon_flux2='3.74e-09', job_status='DONE', time_completed='2021-09-03 12:46:18.881802', photon_index_error2='0.66', photon_index2='0.99', ts='6.32', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='8.00e-05', EG='1.09', time_epoch_completed='1630698378.88', return_code='0', job_id='600714', GAL2='1.07', EG2='1.10', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='4.33e-09', ts2='7.83', photon_index='1.82' WHERE bin_id='1458' AND source_name='4FGL J1111.8+4858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 12:46:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0186>
Subject: Job 600714: <4FGL_J1111.8+4858_daily_bin1458> in cluster <slac> Done

Job <4FGL_J1111.8+4858_daily_bin1458> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep  3 12:31:25 2021
Job was executed on host(s) <bullet0186>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 12:31:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 12:31:30 2021
Terminated at Fri Sep  3 12:46:19 2021
Results reported at Fri Sep  3 12:46:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1111.8+4858_daily_bin1458 167.969 48.9798 617241601 617500801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1111.8+4858 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   874.26 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             336.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            894 sec.

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

