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


Performing analysis on: 4FGL_J1059.5+2057_weekly_bin741
RA = 164.878, Dec = 20.9524
tmin = 687139201, tmax = 687744001
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='385521', job_status='RUN', time_executed='2022-10-18 01:01:29.879914', time_epoch_executed='1666080089.88' WHERE source_name='4FGL J1059.5+2057' and cadence='weekly' and bin_id='741'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/385521

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/385521/ft1_4FGL_J1059.5+2057_weekly_bin741.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/385521/ft2_4FGL_J1059.5+2057_weekly_bin741.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/385521/ft1_4FGL_J1059.5+2057_weekly_bin741.fits outfile=/scratch/kocevski/385521/ft1_filteredMKT_4FGL_J1059.5+2057_weekly_bin741.fits ra=164.878 dec=20.9524 rad=12.0 tmin=687139201.0 tmax=687744001.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 6.59
user 6.30
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/385521/ft2_4FGL_J1059.5+2057_weekly_bin741.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/385521/ft1_filteredMKT_4FGL_J1059.5+2057_weekly_bin741.fits evtable="EVENTS" outfile="/scratch/kocevski/385521/ft1_filtered_4FGL_J1059.5+2057_weekly_bin741.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.54
user 0.38
sys 0.15

Number of photons that the gtmktime cut: 1464

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/385521/ft1_filtered_4FGL_J1059.5+2057_weekly_bin741.fits evtable="EVENTS" scfile=/scratch/kocevski/385521/ft2_4FGL_J1059.5+2057_weekly_bin741.fits sctable="SC_DATA" expcube=/scratch/kocevski/385521/ltcube_687139201_687744001_4FGL_J1059.5+2057_weekly_bin741.fits outfile=/scratch/kocevski/385521/expmap_687139201_687744001_4FGL_J1059.5+2057_weekly_bin741.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/385521/ltcube_687139201_687744001_4FGL_J1059.5+2057_weekly_bin741.fits
.....................!
real 191.74
user 186.02
sys 5.35

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/385521/ft1_filtered_4FGL_J1059.5+2057_weekly_bin741.fits scfile=/scratch/kocevski/385521/ft2_4FGL_J1059.5+2057_weekly_bin741.fits outfile=/scratch/kocevski/385521/cmap_687139201_687744001_4FGL_J1059.5+2057_weekly_bin741.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=164.878 yref=20.9524 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.60
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/385521/ft1_filtered_4FGL_J1059.5+2057_weekly_bin741.fits scfile=/scratch/kocevski/385521/ft2_4FGL_J1059.5+2057_weekly_bin741.fits outfile=/scratch/kocevski/385521/cmap_HighResolution_687139201_687744001_4FGL_J1059.5+2057_weekly_bin741.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.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.855       1.0000          .0000       .10000E+07
     2 'Prefactor '    .31485E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .25535E-07   1.0000          .0000       .10000E+07
     4 'Prefactor '    .11269E-07   1.0000          .0000       .10000E+07
     5 'Prefactor '    11.322       1.0000          .0000       .10000E+07
     6 'Prefactor '    15.754       1.0000          .0000       .10000E+07
     7 'Prefactor '    5.1010       1.0000          .0000       .10000E+07
     8 'Prefactor '    .35938E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    4.0753       1.0000          .0000       .10000E+07
    10 'norm      '    1.9516       1.0000          .0000       .10000E+07
    11 'Prefactor '    3.2541       1.0000          .0000       .10000E+07
    12 'Prefactor '    7.3988       1.0000          .0000       .10000E+07
    13 'norm      '    10.998       1.0000          .0000       .10000E+07
    14 'Prefactor '    7.3216       1.0000          .0000       .10000E+07
    15 'Prefactor '    1.8888       1.0000          .0000       .10000E+07
    16 'Prefactor '    .61069E-03   1.0000          .0000       .10000E+07
    17 'Normalizat'    .92464       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0004       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=   16493.63     FROM MIGRAD    STATUS=CONVERGED    106 CALLS     1008 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.864        4.2861        .20348E-06    .80930E-03
   2  Prefactor     .99920E-09    6.2119       -.32643E-06** at limit **
   3  Prefactor     .11102E-08    3.3129       -.83550E-06** at limit **
   4  Prefactor     .55511E-10    1.5219        .52319E-07** at limit **
   5  Prefactor     11.304        4.9062       -.44323E-06    .33460E-02
   6  Prefactor     15.755        3.4829       -.83442E-07    .11901E-01
   7  Prefactor     5.1355        4.1324        .22763E-06   -.42814E-02
   8  Prefactor     .13323E-08    5.4456        .21714E-06** at limit **
   9  Prefactor     4.0596        1.9511       -.12378E-06    .66185E-02
  10  norm          1.9521        .79321        .28929E-07    .32165E-01
  11  Prefactor     3.2544        1.6983       -.59874E-07   -.41743E-01
  12  Prefactor     7.3827        4.0146       -.10774E-06    .10223E-02
  13  norm          11.051        3.9376        .22582E-06   -.17972E-01
  14  Prefactor     7.3422        5.1918        .55742E-06    .15449E-01
  15  Prefactor     1.8744        1.8492       -.39313E-06    .46817E-02
  16  Prefactor     .17208E-08    2.4820        .56838E-06** at limit **
  17  Normalizat    .92455        .11933        .46075E-06    .22795E-03
  18  Prefactor     1.0004        .12219       -.30789E-06    .25982E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 11.8643
  Prefactor  = 9.99201e-10
  Prefactor  = 1.11022e-09
  Prefactor  = 5.55112e-11
  Prefactor  = 11.3038
  Prefactor  = 15.755
  Prefactor  = 5.13548
  Prefactor  = 1.33227e-09
  Prefactor  = 4.05956
  norm       = 1.95207
  Prefactor  = 3.25443
  Prefactor  = 7.38271
  norm       = 11.0508
  Prefactor  = 7.34225
  Prefactor  = 1.87438
  Prefactor  = 1.72085e-09
  Normalizat = 0.924546
  Prefactor  = 1.00041
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.864        4.2908        .29069E-03   -1.5639    
   2  Prefactor     .99920E-09    6.2193        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .11102E-08    3.3737        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .55511E-10    .35857        .29189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.304        4.9179        .29749E-03   -1.5641    
   6  Prefactor     15.755        7.0807        .25207E-03   -1.5629    
   7  Prefactor     5.1355        6.1362        .44493E-03   -1.5663    
   8  Prefactor     .13323E-08    5.4636        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.0596        9.7041        .49919E-03   -1.5668    
  10  norm          1.9521        .79854        .74252E-03   -1.5680    
  11  Prefactor     3.2544        1.7085        .56118E-03   -1.5672    
  12  Prefactor     7.3827        4.1129        .36848E-03   -1.5654    
  13  norm          11.051        7.2361        .30185E-03   -1.5641    
  14  Prefactor     7.3422        6.7580        .37044E-03   -1.5654    
  15  Prefactor     1.8744        11.694        .75688E-03   -1.5681    
  16  Prefactor     .17208E-08    2.5654        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .92455        .10540        .45216E-01   -.95603    
  18  Prefactor     1.0004        .10581        .45769E-01   -.92716    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.94444e-08
Minuit parameter uncertainties:
  1  4.29076
  2  0.000156958
  3  0.000123215
  4  6.6403e-06
  5  4.91785
  6  7.08069
  7  6.13624
  8  0.000172156
  9  9.70418
  10  0.798538
  11  1.70855
  12  4.11289
  13  7.23611
  14  6.75796
  15  9.36363
  16  0.000132021
  17  0.105428
  18  0.105835
Done.

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

Extracting fit parameters...

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  4.060e+00  9.704e+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

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  1.000e+00  1.058e-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.245e-01  1.054e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/385521/likelihoodResults_687139201_687744001_4FGL_J1059.5+2057_weekly_bin741.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) = 16492.0608773
delta logL = 1.57170709626

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 16492.0272463
delta logL = 1.60533804349

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0795       1.0000          .0000       .10000E+07
     2 'Index     '    4.0420       1.0000          .0000       10.000    
     3 'Normalizat'    .86643       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0389       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=   16492.03     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      265 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0802        6.7172        .11601E-02    .26413E-01
   2  Index         4.0418        1.8662        .10534        .47033E-03
   3  Normalizat    .86653        .24404E-01    .44471E-01    .72493E-04
   4  Prefactor     1.0388        .26114E-01    .40606E-01    .55919E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.08021
  Index      = 4.0418
  Normalizat = 0.866532
  Prefactor  = 1.03881
 **********
 **   18 **HESSE 
 **********

 FCN=   16492.03     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      298 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0802        17.393        .73930E-05   -1.5687    
   2  Index         4.0418        3.4514        .55631E-02   -.19283    
   3  Normalizat    .86653        .10150        .25079E-03   -.97646    
   4  Prefactor     1.0388        .10747        .24667E-03   -.91447    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.41309e-09
Minuit parameter uncertainties:
  1  8.66911
  2  3.82794
  3  0.101527
  4  0.107495
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/385521': 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) = 16492.0272457
delta logL = 1.60533863474

Extracting fit parameters...

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  1.080e+00  8.669e+00  0.000e+00  1.000e+06 ( 1.000e-13)
251        Index:  4.042e+00  3.828e+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.039e+00  1.075e-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:  8.665e-01  1.015e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.71
Ra Dec: 164.878 20.952
Photon Index (Free Index): 4.04 +/- 3.83
Photon Flux (Free Index): 6.25e-08 +/- 3.56e-08
Energy Flux (Free Index): 9.30e-06 +/- 7.86e-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/385521/cmap_HighResolution_687139201_687744001_4FGL_J1059.5+2057_weekly_bin741.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.38e-03', comment='SUCCESS', energy_flux2='9.30e-06', dlogl='1.61e+00', photon_flux2='6.25e-08', job_status='DONE', time_completed='2022-10-18 01:16:11.713326', photon_index_error2='3.83', photon_index2='4.04', ts='0.26', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='5.67e-08', energy_flux_error2='7.86e-06', EG='0.92', time_epoch_completed='1666080971.71', return_code='0', job_id='385521', GAL2='1.04', EG2='0.87', return_code2='102', photon_flux_error2='3.56e-08', ts2='3.71', photon_index='2.41' WHERE bin_id='741' AND source_name='4FGL J1059.5+2057' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Oct 18 01:16:11 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 385521: <4FGL_J1059.5+2057_weekly_bin741> in cluster <slac> Done

Job <4FGL_J1059.5+2057_weekly_bin741> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Oct 18 01:00:33 2022
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct 18 01:00:34 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct 18 01:00:34 2022
Terminated at Tue Oct 18 01:16:12 2022
Results reported at Tue Oct 18 01:16:12 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1059.5+2057_weekly_bin741 164.878 20.9524 687139201 687744001 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 :                                   883.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             348.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   938 sec.
    Turnaround time :                            939 sec.

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

