/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 5 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 = 7232
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1059.5+2057_daily_bin400
RA = 164.878, Dec = 20.9524
tmin = 343008001, tmax = 343267201
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='412008', job_status='RUN', time_executed='2021-09-03 02:37:15.881282', time_epoch_executed='1630661835.88' WHERE source_name='4FGL J1059.5+2057' and cadence='daily' and bin_id='400'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/412008

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/412008/ft1_4FGL_J1059.5+2057_daily_bin400.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/412008/ft2_4FGL_J1059.5+2057_daily_bin400.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/412008/ft1_4FGL_J1059.5+2057_daily_bin400.fits outfile=/scratch/kocevski/412008/ft1_filteredMKT_4FGL_J1059.5+2057_daily_bin400.fits ra=164.878 dec=20.9524 rad=12.0 tmin=343008001.0 tmax=343267201.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.91
user 3.64
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/412008/ft2_4FGL_J1059.5+2057_daily_bin400.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/412008/ft1_filteredMKT_4FGL_J1059.5+2057_daily_bin400.fits evtable="EVENTS" outfile="/scratch/kocevski/412008/ft1_filtered_4FGL_J1059.5+2057_daily_bin400.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.75
user 0.36
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/412008/ft1_filtered_4FGL_J1059.5+2057_daily_bin400.fits" evtable="EVENTS" scfile=/scratch/kocevski/412008/ft2_4FGL_J1059.5+2057_daily_bin400.fits sctable="SC_DATA" outfile=/scratch/kocevski/412008/ltcube_343008001_343267201_4FGL_J1059.5+2057_daily_bin400.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/412008/ft2_4FGL_J1059.5+2057_daily_bin400.fits
.....................!
real 15.79
user 15.34
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/412008/ft1_filtered_4FGL_J1059.5+2057_daily_bin400.fits evtable="EVENTS" scfile=/scratch/kocevski/412008/ft2_4FGL_J1059.5+2057_daily_bin400.fits sctable="SC_DATA" expcube=/scratch/kocevski/412008/ltcube_343008001_343267201_4FGL_J1059.5+2057_daily_bin400.fits outfile=/scratch/kocevski/412008/expmap_343008001_343267201_4FGL_J1059.5+2057_daily_bin400.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/412008/ltcube_343008001_343267201_4FGL_J1059.5+2057_daily_bin400.fits
.....................!
real 193.11
user 187.37
sys 5.15

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/412008/ft1_filtered_4FGL_J1059.5+2057_daily_bin400.fits scfile=/scratch/kocevski/412008/ft2_4FGL_J1059.5+2057_daily_bin400.fits outfile=/scratch/kocevski/412008/cmap_343008001_343267201_4FGL_J1059.5+2057_daily_bin400.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.80
user 0.40
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/412008/ft1_filtered_4FGL_J1059.5+2057_daily_bin400.fits scfile=/scratch/kocevski/412008/ft2_4FGL_J1059.5+2057_daily_bin400.fits outfile=/scratch/kocevski/412008/cmap_HighResolution_343008001_343267201_4FGL_J1059.5+2057_daily_bin400.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.75
user 0.40
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/412008/ft1_filtered_4FGL_J1059.5+2057_daily_bin400.fits', '/scratch/kocevski/412008/ft2_4FGL_J1059.5+2057_daily_bin400.fits', expMap='/scratch/kocevski/412008/expmap_343008001_343267201_4FGL_J1059.5+2057_daily_bin400.fits', expCube='/scratch/kocevski/412008/ltcube_343008001_343267201_4FGL_J1059.5+2057_daily_bin400.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/412008/Model_4FGL_J1059.5+2057_daily_bin400.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/412008/ft1_filtered_4FGL_J1059.5+2057_daily_bin400.fits
Spacecraft file(s): /scratch/kocevski/412008/ft2_4FGL_J1059.5+2057_daily_bin400.fits
Exposure map: /scratch/kocevski/412008/expmap_343008001_343267201_4FGL_J1059.5+2057_daily_bin400.fits
Exposure cube: /scratch/kocevski/412008/ltcube_343008001_343267201_4FGL_J1059.5+2057_daily_bin400.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/412008/Model_4FGL_J1059.5+2057_daily_bin400.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) = 6305.90427501

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7260       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.2836       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.449       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .25083E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.5703       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .16959       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.4064       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.6569       1.0000         .10000E-03   10000.    
    13 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.9106       1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.628       1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.612       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10574E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .96686       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2327       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=   6305.903     FROM MIGRAD    STATUS=CONVERGED    424 CALLS     2069 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7270        5.7120        .28000E-05   -.11818E-03
   2  Prefactor     .10000E-03    13.355       -.31572E-06** at limit **
   3  Prefactor     3.2829        4.9741        .24165E-05   -.12572E-03
   4  Prefactor     .10000E-03    .87242       -.20310E-06** at limit **
   5  Prefactor     10.447        8.1843        .32437E-06    .11024E-03
   6  Prefactor     .10000E-03    14.521       -.10267E-04** at limit **
   7  Prefactor     9.5551        8.6977       -.42128E-06    .42199E-04
   8  Prefactor     .10000E-03    2.8234       -.42501E-08** at limit **
   9  Prefactor     .10000E-03    6.0594       -.86354E-09** at limit **
  10  norm          .17024        .77972        .26660E-06   -.10184E-03
  11  Prefactor     2.4067        2.2501        .98728E-07    .19780E-03
  12  Prefactor     9.6559        7.6730        .92239E-07    .39554E-04
  13  norm          .10000E-03    5.0388       -.12720E-06** at limit **
  14  norm          2.9142        11.512        .52502E-05    .80417E-04
  15  Prefactor     21.635        13.512        .34857E-06    .32705E-03
  16  Prefactor     14.627        22.470        .11760E-05    .56940E-03
  17  Prefactor     .10000E-03    17.869        .54934E-06** at limit **
  18  Prefactor     .10000E-03    3.8460        .43938E-08** at limit **
  19  Normalizat    .96673        .18473       -.30043E-05    .79087E-04
  20  Prefactor     1.2327        .18690        .94042E-06    .14407E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.72698
  Prefactor  = 0.000100001
  Prefactor  = 3.28292
  Prefactor  = 0.0001
  Prefactor  = 10.4467
  Prefactor  = 0.000100001
  Prefactor  = 9.55507
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.170241
  Prefactor  = 2.40667
  Prefactor  = 9.65587
  norm       = 0.0001
  norm       = 2.91416
  Prefactor  = 21.6351
  Prefactor  = 14.627
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Normalizat = 0.966726
  Prefactor  = 1.23265
 **********
 **   18 **HESSE 
 **********

 FCN=   6305.903     FROM HESSE     STATUS=OK           295 CALLS     2364 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7270        5.9935        .12332E-02   -1.5378    
   2  Prefactor     .10000E-03    13.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.2829        5.3548        .11173E-02   -1.5346    
   4  Prefactor     .10000E-03    1.3884        .14320E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.447        8.1694        .12395E-03   -1.5061    
   6  Prefactor     .10000E-03    26.955        .37683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.5551        8.3741        .12954E-03   -1.5090    
   8  Prefactor     .10000E-03    2.8272        .13030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.0688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .17024        1.2921        .13250E-02   -1.5625    
  11  Prefactor     2.4067        2.2448        .11073E-03   -1.5398    
  12  Prefactor     9.6559        7.6731        .12895E-03   -1.5086    
  13  norm          .10000E-03    5.0626        .17409E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.9142        12.088        .11908E-02   -1.5367    
  15  Prefactor     21.635        13.535        .86127E-04   -1.4777    
  16  Prefactor     14.627        23.023        .10478E-03   -1.4943    
  17  Prefactor     .10000E-03    18.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.8489        .15209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .96673        .21184        .25830E-03   -.94154    
  20  Prefactor     1.2327        .21999        .25225E-03   -.85332    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.73606e-08
Minuit parameter uncertainties:
  1  5.99485
  2  0.000179367
  3  5.35556
  4  2.60151e-06
  5  8.17031
  6  0.000333736
  7  8.37513
  8  5.70373e-07
  9  2.61276e-05
  10  0.937782
  11  2.24485
  12  7.67393
  13  2.86735e-05
  14  11.8744
  15  13.537
  16  23.0365
  17  0.000443936
  18  1.48474e-06
  19  0.212027
  20  0.220155
Done.

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

Extracting fit parameters...

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  1.000e-04  2.613e-05  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.233e+00  2.202e-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:  9.667e-01  2.120e-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.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/412008/likelihoodResults_343008001_343267201_4FGL_J1059.5+2057_daily_bin400.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) = 6305.90420811
delta logL = -0.000784352413575

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6305.90342376
delta logL = -7.24139681552e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4137       1.0000          .0000       10.000    
     3 'Normalizat'    .96673       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2327       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=   6305.903     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      205 TOTAL
                     EDM=   .31E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.8254        .90712E-02** at limit **
   2  Index         2.4125        6.1908        .50000        .16351E-05
   3  Normalizat    .96673        .17023        .45749E-01    .18116E-05
   4  Prefactor     1.2327        .18589        .57045E-01    .39481E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.41246
  Normalizat = 0.966727
  Prefactor  = 1.23265
 **********
 **   18 **HESSE 
 **********

 FCN=   6305.903     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      238 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1298.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4125        5.8305        .50000       -.54394    
   3  Normalizat    .96673        .12464        .25830E-03   -.94154    
   4  Prefactor     1.2327        .13601        .25225E-03   -.85332    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.44719e-10
Minuit parameter uncertainties:
  1  3.3794e-05
  2  64.0802
  3  0.124676
  4  0.136054
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/412008': 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): 102
logL (Free Index) = 6305.90342376
delta logL = 9.95896698441e-10

Extracting fit parameters...

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  1.000e-04  3.379e-05  1.000e-04  1.000e+04 ( 1.000e-13)
251        Index:  2.412e+00  6.408e+01  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.233e+00  1.361e-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:  9.667e-01  1.247e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/412008/cmap_HighResolution_343008001_343267201_4FGL_J1059.5+2057_daily_bin400.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.96e-03', job_status='DONE', photon_flux_upper_limit='6.42e-08', time_completed='2021-09-03 02:47:58.492239', job_id='412008', GAL2='1.23', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1630662478.49', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='9.96e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='400' AND source_name='4FGL J1059.5+2057' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 02:47:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0131>
Subject: Job 412008: <4FGL_J1059.5+2057_daily_bin400> in cluster <slac> Done

Job <4FGL_J1059.5+2057_daily_bin400> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep  3 02:36:52 2021
Job was executed on host(s) <bullet0131>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 02:37:02 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:37:02 2021
Terminated at Fri Sep  3 02:48:07 2021
Results reported at Fri Sep  3 02:48:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1059.5+2057_daily_bin400 164.878 20.9524 343008001 343267201 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 :                                   631.00 sec.
    Max Memory :                                 1065 MB
    Average Memory :                             285.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   664 sec.
    Turnaround time :                            675 sec.

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

