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


Performing analysis on: 4FGL_J1059.5+2057_daily_bin1744
RA = 164.878, Dec = 20.9524
tmin = 691372801, tmax = 691632001
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='576557', job_status='RUN', time_executed='2022-12-02 00:46:15.917213', time_epoch_executed='1669970775.92' WHERE source_name='4FGL J1059.5+2057' and cadence='daily' and bin_id='1744'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/576557

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/576557/ft1_4FGL_J1059.5+2057_daily_bin1744.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/576557/ft2_4FGL_J1059.5+2057_daily_bin1744.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/576557/ft1_4FGL_J1059.5+2057_daily_bin1744.fits outfile=/scratch/kocevski/576557/ft1_filteredMKT_4FGL_J1059.5+2057_daily_bin1744.fits ra=164.878 dec=20.9524 rad=12.0 tmin=691372801.0 tmax=691632001.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.52
user 2.29
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/576557/ft2_4FGL_J1059.5+2057_daily_bin1744.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/576557/ft1_filteredMKT_4FGL_J1059.5+2057_daily_bin1744.fits evtable="EVENTS" outfile="/scratch/kocevski/576557/ft1_filtered_4FGL_J1059.5+2057_daily_bin1744.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.17

Number of photons that the gtmktime cut: 784

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/576557/ft1_filtered_4FGL_J1059.5+2057_daily_bin1744.fits evtable="EVENTS" scfile=/scratch/kocevski/576557/ft2_4FGL_J1059.5+2057_daily_bin1744.fits sctable="SC_DATA" expcube=/scratch/kocevski/576557/ltcube_691372801_691632001_4FGL_J1059.5+2057_daily_bin1744.fits outfile=/scratch/kocevski/576557/expmap_691372801_691632001_4FGL_J1059.5+2057_daily_bin1744.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/576557/ltcube_691372801_691632001_4FGL_J1059.5+2057_daily_bin1744.fits
.....................!
real 191.91
user 185.54
sys 5.73

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/576557/ft1_filtered_4FGL_J1059.5+2057_daily_bin1744.fits scfile=/scratch/kocevski/576557/ft2_4FGL_J1059.5+2057_daily_bin1744.fits outfile=/scratch/kocevski/576557/cmap_691372801_691632001_4FGL_J1059.5+2057_daily_bin1744.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.57
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/576557/ft1_filtered_4FGL_J1059.5+2057_daily_bin1744.fits scfile=/scratch/kocevski/576557/ft2_4FGL_J1059.5+2057_daily_bin1744.fits outfile=/scratch/kocevski/576557/cmap_HighResolution_691372801_691632001_4FGL_J1059.5+2057_daily_bin1744.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7306       1.0000          .0000       .10000E+07
     2 'Prefactor '    24.734       1.0000          .0000       .10000E+07
     3 'Prefactor '    .64494E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    .48067E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    13.523       1.0000          .0000       .10000E+07
     6 'Prefactor '    5.6142       1.0000          .0000       .10000E+07
     7 'Prefactor '    .34438E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .37783E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .10951E-02   1.0000          .0000       .10000E+07
    10 'norm      '    .88574       1.0000          .0000       .10000E+07
    11 'Prefactor '    .43548       1.0000          .0000       .10000E+07
    12 'Prefactor '    2.5843       1.0000          .0000       .10000E+07
    13 'norm      '    .94718E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .34038E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    37.348       1.0000          .0000       .10000E+07
    16 'Prefactor '    .94517E-04   1.0000          .0000       .10000E+07
    17 'Normalizat'    1.3825       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .89866       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=   8537.266     FROM MIGRAD    STATUS=CONVERGED    126 CALLS     1335 TOTAL
                     EDM=   .53E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6809        5.3203       -.15035E-06    .29915E-04
   2  Prefactor     24.646        22.584       -.81843E-07    .28738E-02
   3  Prefactor     .11657E-08    3.7742       -.10122E-06** at limit **
   4  Prefactor      .0000        1.5948        .14223E-07** at limit **
   5  Prefactor     13.517        6.3849       -.75941E-08   -.64896E-03
   6  Prefactor     5.6390        6.2159        .14517E-07   -.37048E-04
   7  Prefactor     .24036E-07    1.7983       -.87691E-07** at limit **
   8  Prefactor      .0000        2.7711       -.75716E-07** at limit **
   9  Prefactor     .55511E-10    11.803       -.60172E-07** at limit **
  10  norm          .88544        .65321       -.26953E-07    .30485E-03
  11  Prefactor     .43502        1.4241        .52270E-07   -.98588E-04
  12  Prefactor     2.5851        3.6572       -.21291E-07    .94978E-05
  13  norm          .55511E-10    3.1600       -.14159E-06** at limit **
  14  Prefactor      .0000        9.6481       -.43328E-07** at limit **
  15  Prefactor     37.378        15.848       -.45815E-07   -.21217E-02
  16  Prefactor     .15654E-07    2.6755       -.89417E-07** at limit **
  17  Normalizat    1.3824        .17905       -.30097E-06   -.92360E-05
  18  Prefactor     .89886        .18452        .20075E-05   -.95147E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.68095
  Prefactor  = 24.6456
  Prefactor  = 1.16573e-09
  Prefactor  = 0
  Prefactor  = 13.517
  Prefactor  = 5.63905
  Prefactor  = 2.40363e-08
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  norm       = 0.885444
  Prefactor  = 0.43502
  Prefactor  = 2.58514
  norm       = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 37.3784
  Prefactor  = 1.56541e-08
  Normalizat = 1.38241
  Prefactor  = 0.898861
 **********
 **   18 **HESSE 
 **********

 FCN=   8537.266     FROM HESSE     STATUS=OK           282 CALLS     1617 TOTAL
                     EDM=   .79E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6809        5.3446        .79770E-03   -1.5682    
   2  Prefactor     24.646        27.532        .20111E-03   -1.5609    
   3  Prefactor     .11657E-08    3.8805        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        1.5718        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.517        6.3823        .27212E-03   -1.5634    
   6  Prefactor     5.6390        6.2124        .42374E-03   -1.5660    
   7  Prefactor     .24036E-07    4.2272        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        2.7790        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .55511E-10    11.765        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .88544        .65333        .46751E-03   -1.5689    
  11  Prefactor     .43502        1.4568        .85486E-03   -1.5695    
  12  Prefactor     2.5851        3.6698        .63453E-03   -1.5676    
  13  norm          .55511E-10    3.1587        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        9.6128        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     37.378        26.916        .16365E-03   -1.5586    
  16  Prefactor     .15654E-07    4.2960        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.3824        .15271        .51347E-01   -.81139    
  18  Prefactor     .89886        .15719        .65369E-01   -.96181    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.86628e-07
Minuit parameter uncertainties:
  1  5.34461
  2  27.5321
  3  0.000133966
  4  8.95857e-07
  5  6.3823
  6  6.21244
  7  0.000637275
  8  3.8083e-07
  9  3.80542e-05
  10  0.653332
  11  1.4568
  12  3.66976
  13  2.03681e-05
  14  2.7611e-05
  15  26.916
  16  0.000518452
  17  0.152756
  18  0.15727
Done.

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

Extracting fit parameters...

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  5.551e-11  3.805e-05  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:  8.989e-01  1.573e-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.382e+00  1.528e-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: 5.65e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/576557/likelihoodResults_691372801_691632001_4FGL_J1059.5+2057_daily_bin1744.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) = 8537.31044408
delta logL = -0.0443506700067

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8537.26609502
delta logL = -1.61583557201e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24418E-04   1.0000          .0000       .10000E+07
     2 'Index     '    3.1167       1.0000          .0000       10.000    
     3 'Normalizat'    1.3826       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89857       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8536.212     FROM MIGRAD    STATUS=FAILED       256 CALLS      435 TOTAL
                     EDM=   .96E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10037E-04    .33238E-03    .74901E-06** at limit **
   2  Index         9.1422        8.8364        .10727E-02   -.81987E-04
   3  Normalizat    1.3193        .11373        .23125E-03    .28799E-03
   4  Prefactor     .94464        .11907        .28274E-03    .14500E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8536.212     FROM SIMPLEX   STATUS=UNCHANGED     87 CALLS      522 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10037E-04    .33238E-03    .13653E-06** at limit **
   2  Index         9.1422        8.8364        .66503E-02   -.81987E-04
   3  Normalizat    1.3193        .11373        .12886E-03    .28799E-03
   4  Prefactor     .94464        .11907        .21772E-03    .14500E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8536.212     FROM MIGRAD    STATUS=FAILED        66 CALLS      588 TOTAL
                     EDM=   .99E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10036E-04    .34411E-03    .37451E-06** at limit **
   2  Index         9.1423        8.8931        .85816E-05    .18547E-04
   3  Normalizat    1.3193        .13652        .92501E-05    .83574E-04
   4  Prefactor     .94464        .14276        .22619E-05   -.14073E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.00365e-05
  Index      = 9.14227
  Normalizat = 1.31933
  Prefactor  = 0.94464
 **********
 **   18 **HESSE 
 **********

 FCN=   8536.212     FROM HESSE     STATUS=NOT POSDEF    23 CALLS      611 TOTAL
                     EDM=   .99E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10036E-04    .34593E-03    .37451E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.1423        8.8782        .17163E-05    .97634    
   3  Normalizat    1.3193        .13676        .18500E-05   -.82991    
   4  Prefactor     .94464        .14214        .45238E-06   -.94598    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 0.000994936
Minuit parameter uncertainties:
  1  0.000117846
  2  4.99639
  3  0.136795
  4  0.142196
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/576557': 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): 1
logL (Free Index) = 8536.21166496
delta logL = 1.05442844732

Extracting fit parameters...

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  1.004e-05  1.178e-04  0.000e+00  1.000e+06 ( 1.000e-13)
251        Index:  9.142e+00  4.996e+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:  9.446e-01  1.422e-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.319e+00  1.368e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.21
Ra Dec: 164.878 20.952
Photon Index (Free Index): 9.14 +/- 5.00
Photon Flux (Free Index): 5.04e-08 +/- 3.97e-08
Energy Flux (Free Index): 5.71e-06 +/- 4.70e-06

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/576557/cmap_HighResolution_691372801_691632001_4FGL_J1059.5+2057_daily_bin1744.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.37e-03', comment='SUCCESS', energy_flux2='5.71e-06', dlogl='1.05e+00', photon_flux2='5.04e-08', job_status='DONE', time_completed='2022-12-02 00:57:08.784217', photon_index_error2='5.00', photon_index2='9.14', ts='-0.00', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='5.65e-08', energy_flux_error2='4.70e-06', EG='1.38', time_epoch_completed='1669971428.78', return_code='0', job_id='576557', GAL2='0.94', EG2='1.32', return_code2='1', photon_flux_error2='3.97e-08', ts2='2.21', photon_index='2.41' WHERE bin_id='1744' AND source_name='4FGL J1059.5+2057' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec  2 00:57:08 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 576557: <4FGL_J1059.5+2057_daily_bin1744> in cluster <slac> Done

Job <4FGL_J1059.5+2057_daily_bin1744> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Dec  2 00:45:19 2022
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec  2 00:45:21 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec  2 00:45:21 2022
Terminated at Fri Dec  2 00:57:09 2022
Results reported at Fri Dec  2 00:57:09 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1059.5+2057_daily_bin1744 164.878 20.9524 691372801 691632001 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 :                                   654.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             322.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   708 sec.
    Turnaround time :                            710 sec.

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

