aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 154 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7462
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1059.5+2057_daily_bin1712
RA = 164.878, Dec = 20.9524
tmin = 683078401, tmax = 683337601
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='98930', job_status='RUN', time_executed='2022-09-16 15:44:16.917461', time_epoch_executed='1663368256.92' WHERE source_name='4FGL J1059.5+2057' and cadence='daily' and bin_id='1712'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/98930

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/98930/ft1_4FGL_J1059.5+2057_daily_bin1712.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/98930/ft2_4FGL_J1059.5+2057_daily_bin1712.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/98930/ft1_4FGL_J1059.5+2057_daily_bin1712.fits outfile=/scratch/kocevski/98930/ft1_filteredMKT_4FGL_J1059.5+2057_daily_bin1712.fits ra=164.878 dec=20.9524 rad=12.0 tmin=683078401.0 tmax=683337601.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 4.81
user 4.47
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/98930/ft2_4FGL_J1059.5+2057_daily_bin1712.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/98930/ft1_filteredMKT_4FGL_J1059.5+2057_daily_bin1712.fits evtable="EVENTS" outfile="/scratch/kocevski/98930/ft1_filtered_4FGL_J1059.5+2057_daily_bin1712.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.52
user 0.32
sys 0.18

Number of photons that the gtmktime cut: 525

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/98930/ft1_filtered_4FGL_J1059.5+2057_daily_bin1712.fits" evtable="EVENTS" scfile=/scratch/kocevski/98930/ft2_4FGL_J1059.5+2057_daily_bin1712.fits sctable="SC_DATA" outfile=/scratch/kocevski/98930/ltcube_683078401_683337601_4FGL_J1059.5+2057_daily_bin1712.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/98930/ft2_4FGL_J1059.5+2057_daily_bin1712.fits
.....................!
real 14.25
user 13.80
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/98930/ft1_filtered_4FGL_J1059.5+2057_daily_bin1712.fits evtable="EVENTS" scfile=/scratch/kocevski/98930/ft2_4FGL_J1059.5+2057_daily_bin1712.fits sctable="SC_DATA" expcube=/scratch/kocevski/98930/ltcube_683078401_683337601_4FGL_J1059.5+2057_daily_bin1712.fits outfile=/scratch/kocevski/98930/expmap_683078401_683337601_4FGL_J1059.5+2057_daily_bin1712.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/98930/ltcube_683078401_683337601_4FGL_J1059.5+2057_daily_bin1712.fits
.....................!
real 192.58
user 186.41
sys 5.31

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/98930/ft1_filtered_4FGL_J1059.5+2057_daily_bin1712.fits scfile=/scratch/kocevski/98930/ft2_4FGL_J1059.5+2057_daily_bin1712.fits outfile=/scratch/kocevski/98930/cmap_683078401_683337601_4FGL_J1059.5+2057_daily_bin1712.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/98930/ft1_filtered_4FGL_J1059.5+2057_daily_bin1712.fits scfile=/scratch/kocevski/98930/ft2_4FGL_J1059.5+2057_daily_bin1712.fits outfile=/scratch/kocevski/98930/cmap_HighResolution_683078401_683337601_4FGL_J1059.5+2057_daily_bin1712.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.56
user 0.38
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/98930/ft1_filtered_4FGL_J1059.5+2057_daily_bin1712.fits', '/scratch/kocevski/98930/ft2_4FGL_J1059.5+2057_daily_bin1712.fits', expMap='/scratch/kocevski/98930/expmap_683078401_683337601_4FGL_J1059.5+2057_daily_bin1712.fits', expCube='/scratch/kocevski/98930/ltcube_683078401_683337601_4FGL_J1059.5+2057_daily_bin1712.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/98930/Model_4FGL_J1059.5+2057_daily_bin1712.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  0.000e+00  1.000e+06 ( 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/98930/ft1_filtered_4FGL_J1059.5+2057_daily_bin1712.fits
Spacecraft file(s): /scratch/kocevski/98930/ft2_4FGL_J1059.5+2057_daily_bin1712.fits
Exposure map: /scratch/kocevski/98930/expmap_683078401_683337601_4FGL_J1059.5+2057_daily_bin1712.fits
Exposure cube: /scratch/kocevski/98930/ltcube_683078401_683337601_4FGL_J1059.5+2057_daily_bin1712.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/98930/Model_4FGL_J1059.5+2057_daily_bin1712.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) = 5939.03132892

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.277       1.0000          .0000       .10000E+07
     2 'Prefactor '    21.099       1.0000          .0000       .10000E+07
     3 'Prefactor '    2.3242       1.0000          .0000       .10000E+07
     4 'Prefactor '    1.8055       1.0000          .0000       .10000E+07
     5 'Prefactor '    24.708       1.0000          .0000       .10000E+07
     6 'Prefactor '    6.4718       1.0000          .0000       .10000E+07
     7 'Prefactor '    3.3440       1.0000          .0000       .10000E+07
     8 'Prefactor '    20.164       1.0000          .0000       .10000E+07
     9 'Prefactor '    .74761E-04   1.0000          .0000       .10000E+07
    10 'norm      '    1.4203       1.0000          .0000       .10000E+07
    11 'Prefactor '    .56288E-07   1.0000          .0000       .10000E+07
    12 'Prefactor '    2.5592       1.0000          .0000       .10000E+07
    13 'norm      '    9.4171       1.0000          .0000       .10000E+07
    14 'Prefactor '    .30301E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .37936E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    .17198E-02   1.0000          .0000       .10000E+07
    17 'Normalizat'    1.2068       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.2295       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5780E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5938.958     FROM MIGRAD    STATUS=CONVERGED    111 CALLS     1267 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.281        9.8076        .23295E-05    .49136E-01
   2  Prefactor     21.309        20.674        .27992E-05   -.12277    
   3  Prefactor     2.3022        7.5005       -.55672E-06   -.31674E-02
   4  Prefactor     1.7946        3.0501        .17023E-06   -.50229E-02
   5  Prefactor     24.577        5.0353        .27103E-06    .15626E-01
   6  Prefactor     7.0539        15.560        .22065E-05    .56745E-01
   7  Prefactor     2.8590        22.718       -.11197E-05   -.26217E-01
   8  Prefactor     20.338        1.8803        .12958E-06   -.12654E-01
   9  Prefactor     .15410E-06    16.120        .22237E-06** at limit **
  10  norm          1.4248        1.5627        .70536E-07   -.59158E-02
  11  Prefactor     .66613E-09    1.5061        .62450E-07** at limit **
  12  Prefactor     2.5435        4.8650        .13544E-06    .20595E-02
  13  norm          9.3840        1.3756       -.35825E-07   -.11208E-01
  14  Prefactor     .48406E-07    6.7098       -.14973E-05** at limit **
  15  Prefactor     .10053E-06    6.7785        .15587E-05** at limit **
  16  Prefactor     .81213E-07    9.8393       -.71078E-06** at limit **
  17  Normalizat    1.2057        .25588       -.10565E-04   -.15850E-03
  18  Prefactor     1.2301        .26272       -.16516E-05   -.12738E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.2813
  Prefactor  = 21.3092
  Prefactor  = 2.30217
  Prefactor  = 1.79457
  Prefactor  = 24.5773
  Prefactor  = 7.05385
  Prefactor  = 2.85896
  Prefactor  = 20.3383
  Prefactor  = 1.54099e-07
  norm       = 1.42483
  Prefactor  = 6.66134e-10
  Prefactor  = 2.54348
  norm       = 9.38404
  Prefactor  = 4.84057e-08
  Prefactor  = 1.00531e-07
  Prefactor  = 8.12128e-08
  Normalizat = 1.20569
  Prefactor  = 1.23006
 **********
 **   18 **HESSE 
 **********

 FCN=   5938.958     FROM HESSE     STATUS=OK           288 CALLS     1555 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.281        9.9444        .31230E-03   -1.5644    
   2  Prefactor     21.309        38.593        .21777E-03   -1.5616    
   3  Prefactor     2.3022        7.5825        .67251E-03   -1.5678    
   4  Prefactor     1.7946        3.1029        .77745E-03   -1.5681    
   5  Prefactor     24.577        12.733        .20122E-03   -1.5609    
   6  Prefactor     7.0539        18.723        .39427E-03   -1.5655    
   7  Prefactor     2.8590        33.302        .55322E-03   -1.5674    
   8  Prefactor     20.338        15.558        .22276E-03   -1.5618    
   9  Prefactor     .15410E-06    16.229        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.4248        1.6033        .90741E-03   -1.5684    
  11  Prefactor     .66613E-09    1.5062        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.5435        4.8883        .63790E-03   -1.5676    
  13  norm          9.3840        10.831        .32633E-03   -1.5647    
  14  Prefactor     .48406E-07    7.1532        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10053E-06    7.4964        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .81213E-07    9.9558        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.2057        .21558        .61720E-01   -.86427    
  18  Prefactor     1.2301        .21783        .63660E-01   -.85411    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76332e-06
Minuit parameter uncertainties:
  1  9.94438
  2  38.5936
  3  7.58254
  4  3.10288
  5  12.7329
  6  18.7233
  7  19.5151
  8  15.558
  9  0.00316274
  10  1.60332
  11  6.42163e-05
  12  4.88832
  13  10.8312
  14  0.00117667
  15  0.00173633
  16  0.00179852
  17  0.215737
  18  0.217992
Done.

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

Extracting fit parameters...

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  1.541e-07  3.163e-03  0.000e+00  1.000e+06 ( 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.230e+00  2.180e-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.206e+00  2.157e-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: 9.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.48e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/98930/likelihoodResults_683078401_683337601_4FGL_J1059.5+2057_daily_bin1712.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): 0
logL (Free Index) = 5938.98782055
delta logL = -0.0302668700324

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5938.95755394
delta logL = -2.54582118941e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5938.958     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      210 TOTAL
                     EDM=   .64E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        16.340        .74513E-07** at limit **
   2  Index         2.4004        3.4610       -.38677E-05     .0000    
   3  Normalizat    1.2057        .24952       -.67717E-06   -.23987E-04
   4  Prefactor     1.2301        .26067        .27792E-05   -.13349E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.40041
  Normalizat = 1.20569
  Prefactor  = 1.23006
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5938.958     FROM HESSE     STATUS=FAILED        11 CALLS      221 TOTAL
                     EDM=   .64E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        16.417        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .64618        1.9029       -.38677E-05   -.54675    
   3  Normalizat    1.2057        1.1045       -.67717E-06   -.86427    
   4  Prefactor     1.2301        1.0939        .27792E-05   -.85411    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 6.44017e-13
Minuit parameter uncertainties:
  1  1.05635e-05
  2  1.45121
  3  1.12704
  4  1.11518
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/98930': 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): 101
logL (Free Index) = 5938.95755368
delta logL = 4.75938577438e-09

Extracting fit parameters...

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  0.000e+00  1.056e-05  0.000e+00  1.000e+06 ( 1.000e-13)
251        Index:  2.400e+00  1.451e+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.230e+00  1.115e+00  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.206e+00  1.127e+00  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/98930/cmap_HighResolution_683078401_683337601_4FGL_J1059.5+2057_daily_bin1712.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.48e-03', job_status='DONE', photon_flux_upper_limit='9.67e-08', time_completed='2022-09-16 15:53:07.107146', job_id='98930', GAL2='1.23', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1663368787.11', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='4.76e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1712' AND source_name='4FGL J1059.5+2057' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 15:53:07 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 98930: <4FGL_J1059.5+2057_daily_bin1712> in cluster <slac> Done

Job <4FGL_J1059.5+2057_daily_bin1712> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 16 15:40:16 2022
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 15:41:33 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 15:41:33 2022
Terminated at Fri Sep 16 15:53:07 2022
Results reported at Fri Sep 16 15:53:07 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1059.5+2057_daily_bin1712 164.878 20.9524 683078401 683337601 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 :                                   530.06 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             295.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   694 sec.
    Turnaround time :                            771 sec.

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

