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


Performing analysis on: 4FGL_J1059.5+2057_weekly_bin752
RA = 164.878, Dec = 20.9524
tmin = 693792001, tmax = 694396801
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='436578', job_status='RUN', time_executed='2023-01-03 01:38:52.632867', time_epoch_executed='1672738732.63' WHERE source_name='4FGL J1059.5+2057' and cadence='weekly' and bin_id='752'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/436578

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/436578/ft1_4FGL_J1059.5+2057_weekly_bin752.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/436578/ft2_4FGL_J1059.5+2057_weekly_bin752.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/436578/ft1_4FGL_J1059.5+2057_weekly_bin752.fits outfile=/scratch/kocevski/436578/ft1_filteredMKT_4FGL_J1059.5+2057_weekly_bin752.fits ra=164.878 dec=20.9524 rad=12.0 tmin=693792001.0 tmax=694396801.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 8.75
user 8.25
sys 0.38

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

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

Number of photons that the gtmktime cut: 861

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/436578/ft1_filtered_4FGL_J1059.5+2057_weekly_bin752.fits" evtable="EVENTS" scfile=/scratch/kocevski/436578/ft2_4FGL_J1059.5+2057_weekly_bin752.fits sctable="SC_DATA" outfile=/scratch/kocevski/436578/ltcube_693792001_694396801_4FGL_J1059.5+2057_weekly_bin752.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/436578/ft2_4FGL_J1059.5+2057_weekly_bin752.fits
.....................!
real 33.83
user 33.01
sys 0.48

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/436578/ft1_filtered_4FGL_J1059.5+2057_weekly_bin752.fits evtable="EVENTS" scfile=/scratch/kocevski/436578/ft2_4FGL_J1059.5+2057_weekly_bin752.fits sctable="SC_DATA" expcube=/scratch/kocevski/436578/ltcube_693792001_694396801_4FGL_J1059.5+2057_weekly_bin752.fits outfile=/scratch/kocevski/436578/expmap_693792001_694396801_4FGL_J1059.5+2057_weekly_bin752.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/436578/ltcube_693792001_694396801_4FGL_J1059.5+2057_weekly_bin752.fits
.....................!
real 195.21
user 187.42
sys 6.46

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/436578/ft1_filtered_4FGL_J1059.5+2057_weekly_bin752.fits scfile=/scratch/kocevski/436578/ft2_4FGL_J1059.5+2057_weekly_bin752.fits outfile=/scratch/kocevski/436578/cmap_693792001_694396801_4FGL_J1059.5+2057_weekly_bin752.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.59
user 0.44
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/436578/ft1_filtered_4FGL_J1059.5+2057_weekly_bin752.fits scfile=/scratch/kocevski/436578/ft2_4FGL_J1059.5+2057_weekly_bin752.fits outfile=/scratch/kocevski/436578/cmap_HighResolution_693792001_694396801_4FGL_J1059.5+2057_weekly_bin752.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.59
user 0.42
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.1007       1.0000          .0000       .10000E+07
     2 'Prefactor '    27.369       1.0000          .0000       .10000E+07
     3 'Prefactor '    .31392E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    1.5264       1.0000          .0000       .10000E+07
     5 'Prefactor '    6.8632       1.0000          .0000       .10000E+07
     6 'Prefactor '    5.0351       1.0000          .0000       .10000E+07
     7 'Prefactor '    16.041       1.0000          .0000       .10000E+07
     8 'Prefactor '    12.913       1.0000          .0000       .10000E+07
     9 'Prefactor '    8.8442       1.0000          .0000       .10000E+07
    10 'norm      '    .68279E-08   1.0000          .0000       .10000E+07
    11 'Prefactor '    2.8625       1.0000          .0000       .10000E+07
    12 'Prefactor '    .78520E-03   1.0000          .0000       .10000E+07
    13 'norm      '    .19547E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .12146E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    11.662       1.0000          .0000       .10000E+07
    16 'Prefactor '    2.7339       1.0000          .0000       .10000E+07
    17 'Normalizat'    1.3413       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .75206       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=   9403.942     FROM MIGRAD    STATUS=CONVERGED    118 CALLS     1304 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.1561        6.7951       -.15135E-06    .26809E-03
   2  Prefactor     27.512        31.226        .16786E-05   -.25615E-02
   3  Prefactor     .79381E-08    3.3960       -.89456E-06** at limit **
   4  Prefactor     1.5256        1.7426        .64050E-07   -.38443E-02
   5  Prefactor     6.8533        4.9592        .20288E-07   -.67679E-02
   6  Prefactor     5.0794        6.2041       -.10434E-05    .99052E-02
   7  Prefactor     16.057        4.3068       -.37815E-06   -.69216E-02
   8  Prefactor     12.912        5.4875        .30223E-06   -.22264E-01
   9  Prefactor     8.8450        8.8780        .90842E-06   -.21674E-01
  10  norm           .0000        .45910        .15092E-08** at limit **
  11  Prefactor     2.8635        2.0396       -.25315E-07    .37356E-01
  12  Prefactor     .83267E-09    3.4585        .27801E-06** at limit **
  13  norm          .55511E-09    7.2137       -.13516E-06** at limit **
  14  Prefactor     .41078E-08    3.6318        .64771E-06** at limit **
  15  Prefactor     11.659        11.261        .13370E-05    .18025E-01
  16  Prefactor     2.7578        5.8861       -.54418E-08    .31159E-03
  17  Normalizat    1.3410        .16645       -.15042E-06    .10436E-02
  18  Prefactor     .75205        .16746       -.11726E-05    .39237E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.15612
  Prefactor  = 27.5118
  Prefactor  = 7.93809e-09
  Prefactor  = 1.52556
  Prefactor  = 6.85327
  Prefactor  = 5.07936
  Prefactor  = 16.0566
  Prefactor  = 12.9116
  Prefactor  = 8.84496
  norm       = 0
  Prefactor  = 2.86354
  Prefactor  = 8.32667e-10
  norm       = 5.55112e-10
  Prefactor  = 4.10783e-09
  Prefactor  = 11.6586
  Prefactor  = 2.75783
  Normalizat = 1.34102
  Prefactor  = 0.752051
 **********
 **   18 **HESSE 
 **********

 FCN=   9403.942     FROM HESSE     STATUS=OK           290 CALLS     1594 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.1561        6.8042        .35202E-03   -1.5651    
   2  Prefactor     27.512        31.590        .19118E-03   -1.5603    
   3  Prefactor     .79381E-08    4.0030        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.5256        1.7680        .86393E-03   -1.5683    
   5  Prefactor     6.8533        4.9599        .38274E-03   -1.5656    
   6  Prefactor     5.0794        10.736        .44789E-03   -1.5663    
   7  Prefactor     16.057        10.931        .24981E-03   -1.5628    
   8  Prefactor     12.912        10.256        .27849E-03   -1.5636    
   9  Prefactor     8.8450        15.385        .33680E-03   -1.5648    
  10  norm           .0000        .44793        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.8635        2.0866        .60059E-03   -1.5674    
  12  Prefactor     .83267E-09    3.4663        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .55511E-09    7.1947        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .41078E-08    3.9644        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.659        13.670        .29309E-03   -1.5640    
  16  Prefactor     2.7578        5.9105        .61556E-03   -1.5675    
  17  Normalizat    1.3410        .14213        .49596E-01   -.82350    
  18  Prefactor     .75205        .14315        .67106E-01   -1.0152    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.88741e-08
Minuit parameter uncertainties:
  1  6.80425
  2  31.5906
  3  0.000356196
  4  1.76802
  5  4.95992
  6  10.7358
  7  10.9312
  8  10.2555
  9  15.3853
  10  1.50948e-06
  11  2.08665
  12  0.000108519
  13  0.000124028
  14  0.000254667
  15  13.67
  16  5.9105
  17  0.142176
  18  0.143215
Done.

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

Extracting fit parameters...

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  8.845e+00  1.539e+01  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:  7.521e-01  1.432e-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.341e+00  1.422e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/436578/likelihoodResults_693792001_694396801_4FGL_J1059.5+2057_weekly_bin752.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) = 9401.97414566
delta logL = 1.96824210774

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9401.96031439
delta logL = 1.98207337643

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .98713       1.0000          .0000       .10000E+07
     2 'Index     '    4.3715       1.0000          .0000       10.000    
     3 'Normalizat'    1.2239       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83316       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=   9401.960     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      267 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .98232        6.0797        .43310E-03   -.35152E-02
   2  Index         4.3738        1.9353        .97900E-01    .99365E-04
   3  Normalizat    1.2239        .43545E-01    .51439E-01   -.15848E-03
   4  Prefactor     .83316        .44920E-01    .64096E-01   -.61500E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.982317
  Index      = 4.37376
  Normalizat = 1.22386
  Prefactor  = 0.833161
 **********
 **   18 **HESSE 
 **********

 FCN=   9401.960     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      298 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .98232        11.406        .45237E-05   -1.5688    
   2  Index         4.3738        3.0212        .36723E-02   -.12558    
   3  Normalizat    1.2239        .15280        .22743E-03   -.85869    
   4  Prefactor     .83316        .15603        .28351E-03   -.98517    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.02115e-09
Minuit parameter uncertainties:
  1  6.69461
  2  3.24842
  3  0.152854
  4  0.156109
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/436578': 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) = 9401.9603125
delta logL = 1.98207526559

Extracting fit parameters...

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  9.823e-01  6.695e+00  0.000e+00  1.000e+06 ( 1.000e-13)
251        Index:  4.374e+00  3.248e+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:  8.332e-01  1.561e-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.224e+00  1.529e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.96
Ra Dec: 164.878 20.952
Photon Index (Free Index): 4.37 +/- 3.25
Photon Flux (Free Index): 1.14e-07 +/- 5.89e-08
Energy Flux (Free Index): 1.62e-05 +/- 9.64e-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/436578/cmap_HighResolution_693792001_694396801_4FGL_J1059.5+2057_weekly_bin752.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.96e-03', comment='SUCCESS', energy_flux2='1.62e-05', dlogl='1.98e+00', photon_flux2='1.14e-07', job_status='DONE', time_completed='2023-01-03 01:50:51.363052', photon_index_error2='3.25', photon_index2='4.37', ts='0.51', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', photon_flux_upper_limit='9.00e-08', energy_flux_error2='9.64e-06', EG='1.34', time_epoch_completed='1672739451.36', return_code='0', job_id='436578', GAL2='0.83', EG2='1.22', return_code2='102', photon_flux_error2='5.89e-08', ts2='4.96', photon_index='2.41' WHERE bin_id='752' AND source_name='4FGL J1059.5+2057' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan  3 01:50:51 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 436578: <4FGL_J1059.5+2057_weekly_bin752> in cluster <slac> Done

Job <4FGL_J1059.5+2057_weekly_bin752> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Jan  3 01:35:34 2023
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan  3 01:36:34 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan  3 01:36:34 2023
Terminated at Tue Jan  3 01:50:52 2023
Results reported at Tue Jan  3 01:50:52 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1059.5+2057_weekly_bin752 164.878 20.9524 693792001 694396801 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 :                                   710.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             324.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   857 sec.
    Turnaround time :                            918 sec.

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

