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


Performing analysis on: 4FGL_J1059.5+2057_daily_bin86
RA = 164.878, Dec = 20.9524
tmin = 261619201, tmax = 261878401
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='410248', job_status='RUN', time_executed='2021-09-03 02:34:54.948307', time_epoch_executed='1630661694.95' WHERE source_name='4FGL J1059.5+2057' and cadence='daily' and bin_id='86'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/410248

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/410248/ft1_4FGL_J1059.5+2057_daily_bin86.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/410248/ft2_4FGL_J1059.5+2057_daily_bin86.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/410248/ft1_4FGL_J1059.5+2057_daily_bin86.fits outfile=/scratch/kocevski/410248/ft1_filteredMKT_4FGL_J1059.5+2057_daily_bin86.fits ra=164.878 dec=20.9524 rad=12.0 tmin=261619201.0 tmax=261878401.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.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/410248/ft2_4FGL_J1059.5+2057_daily_bin86.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/410248/ft2_4FGL_J1059.5+2057_daily_bin86.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/410248/ft1_filteredMKT_4FGL_J1059.5+2057_daily_bin86.fits evtable="EVENTS" outfile="/scratch/kocevski/410248/ft1_filtered_4FGL_J1059.5+2057_daily_bin86.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/410248/ft1_filtered_4FGL_J1059.5+2057_daily_bin86.fits" evtable="EVENTS" scfile=/scratch/kocevski/410248/ft2_4FGL_J1059.5+2057_daily_bin86.fits sctable="SC_DATA" outfile=/scratch/kocevski/410248/ltcube_261619201_261878401_4FGL_J1059.5+2057_daily_bin86.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/410248/ft2_4FGL_J1059.5+2057_daily_bin86.fits
.....................!
real 18.68
user 18.30
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/410248/ft1_filtered_4FGL_J1059.5+2057_daily_bin86.fits evtable="EVENTS" scfile=/scratch/kocevski/410248/ft2_4FGL_J1059.5+2057_daily_bin86.fits sctable="SC_DATA" expcube=/scratch/kocevski/410248/ltcube_261619201_261878401_4FGL_J1059.5+2057_daily_bin86.fits outfile=/scratch/kocevski/410248/expmap_261619201_261878401_4FGL_J1059.5+2057_daily_bin86.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/410248/ltcube_261619201_261878401_4FGL_J1059.5+2057_daily_bin86.fits
.....................!
real 191.18
user 185.92
sys 4.84

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

Setting source of interest to:
4FGL J1059.5+2057 @ 164.878 20.9524

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/410248/ft1_filtered_4FGL_J1059.5+2057_daily_bin86.fits scfile=/scratch/kocevski/410248/ft2_4FGL_J1059.5+2057_daily_bin86.fits outfile=/scratch/kocevski/410248/cmap_261619201_261878401_4FGL_J1059.5+2057_daily_bin86.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=164.878 yref=20.9524 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.60
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/410248/ft1_filtered_4FGL_J1059.5+2057_daily_bin86.fits scfile=/scratch/kocevski/410248/ft2_4FGL_J1059.5+2057_daily_bin86.fits outfile=/scratch/kocevski/410248/cmap_HighResolution_261619201_261878401_4FGL_J1059.5+2057_daily_bin86.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=164.878 yref=20.9524 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.58
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/410248/ft1_filtered_4FGL_J1059.5+2057_daily_bin86.fits evtable="EVENTS" scfile=/scratch/kocevski/410248/ft2_4FGL_J1059.5+2057_daily_bin86.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/410248/Model_4FGL_J1059.5+2057_daily_bin86.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/410248/ft1_filtered_4FGL_J1059.5+2057_daily_bin86.fits.....................!
real 69.16
user 67.68
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/410248/ft1_filtered_4FGL_J1059.5+2057_daily_bin86.fits', '/scratch/kocevski/410248/ft2_4FGL_J1059.5+2057_daily_bin86.fits', expMap='/scratch/kocevski/410248/expmap_261619201_261878401_4FGL_J1059.5+2057_daily_bin86.fits', expCube='/scratch/kocevski/410248/ltcube_261619201_261878401_4FGL_J1059.5+2057_daily_bin86.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/410248/Model_4FGL_J1059.5+2057_daily_bin86.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1059.5+2057'

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  2.435e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
251        Index:  2.415e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  1.122e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/410248/ft1_filtered_4FGL_J1059.5+2057_daily_bin86.fits
Spacecraft file(s): /scratch/kocevski/410248/ft2_4FGL_J1059.5+2057_daily_bin86.fits
Exposure map: /scratch/kocevski/410248/expmap_261619201_261878401_4FGL_J1059.5+2057_daily_bin86.fits
Exposure cube: /scratch/kocevski/410248/ltcube_261619201_261878401_4FGL_J1059.5+2057_daily_bin86.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/410248/Model_4FGL_J1059.5+2057_daily_bin86.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) = 8207.07083287

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.7447       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10478E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.4172       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.226       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.4836       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .39369       1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.4977       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.0265       1.0000         .10000E-03   10000.    
    13 'norm      '    .10453E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.575       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.3386       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0370       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0281       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5780E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8207.069     FROM MIGRAD    STATUS=CONVERGED    428 CALLS     2074 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.7443        7.1593        .97104E-07   -.94503E-04
   2  Prefactor     .10000E-03    10.722        .40930E-06** at limit **
   3  Prefactor     .10000E-03    4.9431        .20025E-06** at limit **
   4  Prefactor     .10000E-03    .97827        .23128E-06** at limit **
   5  Prefactor     2.4168        4.1571        .34902E-05   -.13207E-03
   6  Prefactor     .10000E-03    2.1012        .20086E-07** at limit **
   7  Prefactor     14.231        8.4681       -.94316E-07   -.24801E-03
   8  Prefactor     5.4835        9.1903        .20611E-06   -.28875E-04
   9  Prefactor     .35276        5.9344       -.14964E-05    .13321E-03
  10  norm          .10000E-03    .36321        .23492E-07** at limit **
  11  Prefactor     2.4975        2.1190        .65681E-07   -.34130E-04
  12  Prefactor     5.0268        5.3786        .23327E-06    .12096E-03
  13  norm          .10000E-03    12.426       -.16627E-05** at limit **
  14  norm          .10000E-03    3.7544        .11877E-06** at limit **
  15  Prefactor     .10000E-03    4.6538       -.33019E-06** at limit **
  16  Prefactor     .10000E-03    6.3423       -.17818E-06** at limit **
  17  Prefactor     19.560        29.240        .22994E-05    .54873E-04
  18  Prefactor     4.3382        11.290        .41678E-06    .35596E-05
  19  Normalizat    1.0370        .14552       -.57238E-06   -.18871E-03
  20  Prefactor     1.0281        .15404       -.64440E-06   -.18946E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.74435
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.41679
  Prefactor  = 0.0001
  Prefactor  = 14.2306
  Prefactor  = 5.48346
  Prefactor  = 0.352759
  norm       = 0.0001
  Prefactor  = 2.49748
  Prefactor  = 5.0268
  norm       = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.5602
  Prefactor  = 4.33818
  Normalizat = 1.03703
  Prefactor  = 1.02813
 **********
 **   18 **HESSE 
 **********

 FCN=   8207.069     FROM HESSE     STATUS=OK           299 CALLS     2373 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.7443        7.1563        .15450E-03   -1.5189    
   2  Prefactor     .10000E-03    10.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.0717        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.9726        .17264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.4168        4.1792        .11691E-02   -1.5397    
   6  Prefactor     .10000E-03    2.1072        .12813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.231        8.4857        .10619E-03   -1.4953    
   8  Prefactor     5.4835        9.1464        .17158E-03   -1.5240    
   9  Prefactor     .35276        64.551        .39436E-02   -1.5589    
  10  norm          .10000E-03    .68703        .10594E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.4975        2.1041        .11245E-03   -1.5392    
  12  Prefactor     5.0268        5.3730        .17936E-03   -1.5260    
  13  norm          .10000E-03    12.969        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.7981        .17144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.6643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.3523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     19.560        29.428        .90527E-04   -1.4823    
  18  Prefactor     4.3382        11.280        .19339E-03   -1.5291    
  19  Normalizat    1.0370        .16751        .22971E-03   -.91800    
  20  Prefactor     1.0281        .17819        .24901E-03   -.91798    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2132e-09
Minuit parameter uncertainties:
  1  7.15718
  2  1.81441e-07
  3  4.85943e-05
  4  1.94086e-05
  5  4.17968
  6  3.14436e-06
  7  8.48639
  8  9.14877
  9  9.55289
  10  1.81796e-07
  11  2.10414
  12  5.37356
  13  0.000302531
  14  1.15042e-05
  15  8.87997e-06
  16  2.06095e-05
  17  29.45
  18  11.2855
  19  0.167599
  20  0.178289
Done.

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

Extracting fit parameters...

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  3.528e-01  9.553e+00  1.000e-04  1.000e+04 ( 1.000e-13)
251        Index:  2.415e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  1.122e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  1.028e+00  1.783e-01  0.000e+00  1.000e+01 ( 1.000e+00)
576        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
577        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
574   Normalization:  1.037e+00  1.676e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 164.878 20.952
Photon Flux Upper Limit: 6.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/410248/likelihoodResults_261619201_261878401_4FGL_J1059.5+2057_daily_bin86.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8207.06704297
delta logL = 0.00179705335358

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8207.06499641
delta logL = 0.00384360897078

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8207.065     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      251 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0557        44.750        .12075        .37851E-03
   2  Index         2.1456        3.0719        .37273        .25554E-04
   3  Normalizat    1.0370        .94946E-02    .41529E-01   -.13484E-03
   4  Prefactor     1.0275        .10304E-01    .41466E-01   -.58333E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.05575
  Index      = 2.1456
  Normalizat = 1.03696
  Prefactor  = 1.02751
 **********
 **   18 **HESSE 
 **********

 FCN=   8207.065     FROM HESSE     STATUS=OK            35 CALLS      286 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0557        39.861        .44246E-02   -1.5502    
   2  Index         2.1456        2.6000        .27938E-01   -.60758    
   3  Normalizat    1.0370        .16381        .22972E-03   -.91802    
   4  Prefactor     1.0275        .17787        .24907E-03   -.91818    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.58403e-08
Minuit parameter uncertainties:
  1  12.983
  2  2.81557
  3  0.163887
  4  0.177975
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/410248': 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) = 8207.06499595
delta logL = 0.00384407224556

Extracting fit parameters...

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  1.056e+00  1.298e+01  1.000e-04  1.000e+04 ( 1.000e-13)
251        Index:  2.146e+00  2.816e+00  0.000e+00  1.000e+01 (-1.000e+00)
252        Scale:  1.122e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  1.028e+00  1.780e-01  0.000e+00  1.000e+01 ( 1.000e+00)
576        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
577        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
574   Normalization:  1.037e+00  1.639e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 164.878 20.952

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/410248/cmap_HighResolution_261619201_261878401_4FGL_J1059.5+2057_daily_bin86.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.67e-03', job_status='DONE', photon_flux_upper_limit='6.03e-08', time_completed='2021-09-03 02:46:45.644456', job_id='410248', GAL2='1.03', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1630662405.64', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='3.84e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='86' AND source_name='4FGL J1059.5+2057' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 02:46:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 410248: <4FGL_J1059.5+2057_daily_bin86> in cluster <slac> Done

Job <4FGL_J1059.5+2057_daily_bin86> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Sep  3 02:31:35 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 02:31:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 02:31:41 2021
Terminated at Fri Sep  3 02:46:52 2021
Results reported at Fri Sep  3 02:46:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1059.5+2057_daily_bin86 164.878 20.9524 261619201 261878401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1059.5+2057 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   708.37 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             267.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            917 sec.

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

