aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  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 9 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 17363
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1059.5+2057_weekly_bin75
RA = 164.878, Dec = 20.9524
tmin = 284342401, tmax = 284947201
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='661346', job_status='RUN', time_executed='2021-07-17 15:21:56.805054', time_epoch_executed='1626560516.81' WHERE source_name='4FGL J1059.5+2057' and cadence='weekly' and bin_id='75'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/661346

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/661346/ft1_4FGL_J1059.5+2057_weekly_bin75.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/661346/ft2_4FGL_J1059.5+2057_weekly_bin75.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/661346/ft1_4FGL_J1059.5+2057_weekly_bin75.fits outfile=/scratch/kocevski/661346/ft1_filteredMKT_4FGL_J1059.5+2057_weekly_bin75.fits ra=164.878 dec=20.9524 rad=12.0 tmin=284342401.0 tmax=284947201.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 7.74
user 7.35
sys 0.34

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/661346/ft2_4FGL_J1059.5+2057_weekly_bin75.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/661346/ft1_filteredMKT_4FGL_J1059.5+2057_weekly_bin75.fits evtable="EVENTS" outfile="/scratch/kocevski/661346/ft1_filtered_4FGL_J1059.5+2057_weekly_bin75.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.58
user 0.40
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/661346/ft1_filtered_4FGL_J1059.5+2057_weekly_bin75.fits" evtable="EVENTS" scfile=/scratch/kocevski/661346/ft2_4FGL_J1059.5+2057_weekly_bin75.fits sctable="SC_DATA" outfile=/scratch/kocevski/661346/ltcube_284342401_284947201_4FGL_J1059.5+2057_weekly_bin75.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/661346/ft2_4FGL_J1059.5+2057_weekly_bin75.fits
.....................!
real 39.61
user 38.87
sys 0.53

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/661346/ft1_filtered_4FGL_J1059.5+2057_weekly_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/661346/ft2_4FGL_J1059.5+2057_weekly_bin75.fits sctable="SC_DATA" expcube=/scratch/kocevski/661346/ltcube_284342401_284947201_4FGL_J1059.5+2057_weekly_bin75.fits outfile=/scratch/kocevski/661346/expmap_284342401_284947201_4FGL_J1059.5+2057_weekly_bin75.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/661346/ltcube_284342401_284947201_4FGL_J1059.5+2057_weekly_bin75.fits
.....................!
real 192.12
user 186.21
sys 5.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/661346/ft1_filtered_4FGL_J1059.5+2057_weekly_bin75.fits scfile=/scratch/kocevski/661346/ft2_4FGL_J1059.5+2057_weekly_bin75.fits outfile=/scratch/kocevski/661346/cmap_284342401_284947201_4FGL_J1059.5+2057_weekly_bin75.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.61
user 0.44
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/661346/ft1_filtered_4FGL_J1059.5+2057_weekly_bin75.fits scfile=/scratch/kocevski/661346/ft2_4FGL_J1059.5+2057_weekly_bin75.fits outfile=/scratch/kocevski/661346/cmap_HighResolution_284342401_284947201_4FGL_J1059.5+2057_weekly_bin75.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.60
user 0.42
sys 0.18

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/661346/ft1_filtered_4FGL_J1059.5+2057_weekly_bin75.fits', '/scratch/kocevski/661346/ft2_4FGL_J1059.5+2057_weekly_bin75.fits', expMap='/scratch/kocevski/661346/expmap_284342401_284947201_4FGL_J1059.5+2057_weekly_bin75.fits', expCube='/scratch/kocevski/661346/ltcube_284342401_284947201_4FGL_J1059.5+2057_weekly_bin75.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/661346/Model_4FGL_J1059.5+2057_weekly_bin75.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1059.5+2057'

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  2.435e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
251        Index:  2.415e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  1.122e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/661346/ft1_filtered_4FGL_J1059.5+2057_weekly_bin75.fits
Spacecraft file(s): /scratch/kocevski/661346/ft2_4FGL_J1059.5+2057_weekly_bin75.fits
Exposure map: /scratch/kocevski/661346/expmap_284342401_284947201_4FGL_J1059.5+2057_weekly_bin75.fits
Exposure cube: /scratch/kocevski/661346/ltcube_284342401_284947201_4FGL_J1059.5+2057_weekly_bin75.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/661346/Model_4FGL_J1059.5+2057_weekly_bin75.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) = 12421.7993076

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.849       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .20456E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .20579E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.4378       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.9869       1.0000         .10000E-03   10000.    
    10 'norm      '    1.7103       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .32820E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .81179E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.6507       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11789E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1623       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .84495       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5780E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12421.22     FROM MIGRAD    STATUS=CONVERGED    425 CALLS     1794 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.847        6.5559        .21113E-06   -.24561E-04
   2  Prefactor     .10000E-03    12.662        .59412E-06** at limit **
   3  Prefactor     .10000E-03    3.4541       -.59095E-07** at limit **
   4  Prefactor     .10000E-03    .47656       -.77316E-07** at limit **
   5  Prefactor     .10000E-03    1.5260       -.33085E-07** at limit **
   6  Prefactor     .10000E-03    2.5223       -.12050E-05** at limit **
   7  Prefactor     9.4473        7.2136        .12925E-05    .65413E-03
   8  Prefactor     .10000E-03    1.5104       -.10339E-07** at limit **
   9  Prefactor     6.0154        5.6769        .69806E-06    .37980E-03
  10  norm          1.7094        .88963       -.10971E-06   -.15665E-02
  11  Prefactor     .10000E-03    .99403        .41867E-07** at limit **
  12  Prefactor     .10000E-03    1.3232       -.28240E-07** at limit **
  13  norm          .10010E-03    3.9805        .19289E-05** at limit **
  14  norm          .10017E-03    3.2306       -.91743E-06** at limit **
  15  Prefactor     .10000E-03    5.5549        .10924E-06** at limit **
  16  Prefactor     3.7200        11.666       -.14780E-04   -.78183E-04
  17  Prefactor     .10000E-03    47.672       -.68187E-05** at limit **
  18  Prefactor     .10000E-03    6.5641       -.10969E-06** at limit **
  19  Normalizat    1.1623        .12081        .82086E-06    .44312E-03
  20  Prefactor     .84497        .12038       -.24499E-06    .28466E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 11.8469
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 9.44731
  Prefactor  = 0.0001
  Prefactor  = 6.01541
  norm       = 1.70938
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100102
  norm       = 0.000100174
  Prefactor  = 0.0001
  Prefactor  = 3.72001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.16231
  Prefactor  = 0.844975
 **********
 **   18 **HESSE 
 **********

 FCN=   12421.22     FROM HESSE     STATUS=OK           293 CALLS     2087 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.847        6.5484        .11638E-03   -1.5019    
   2  Prefactor     .10000E-03    12.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.5204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    .71830        .14850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.5389        .13440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    20.168        .31249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.4473        6.8602        .13045E-03   -1.5093    
   8  Prefactor     .10000E-03    1.5124        .13376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.0154        5.6624        .16411E-03   -1.5217    
  10  norm          1.7094        .88157        .72366E-04   -1.5446    
  11  Prefactor     .10000E-03    1.0402        .21672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.3315        .12519E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10010E-03    15.099        .41780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10017E-03    19.141        .37852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.7046        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.7200        11.809        .21142E-03   -1.5322    
  17  Prefactor     .10000E-03    48.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.6781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1623        .13514        .22120E-03   -.87776    
  20  Prefactor     .84497        .13780        .26269E-03   -.98091    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6185e-08
Minuit parameter uncertainties:
  1  6.5488
  2  7.62509e-06
  3  7.51623e-06
  4  5.55063e-06
  5  1.99697e-06
  6  0.000623704
  7  6.86079
  8  2.84553e-07
  9  5.66286
  10  0.881575
  11  4.41825e-06
  12  1.40786e-06
  13  0.0024802
  14  0.003653
  15  9.3569e-06
  16  11.8163
  17  0.000122641
  18  6.06215e-06
  19  0.135181
  20  0.137854
Done.

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

Extracting fit parameters...

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  6.015e+00  5.663e+00  1.000e-04  1.000e+04 ( 1.000e-13)
251        Index:  2.415e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  1.122e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  8.450e-01  1.379e-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.162e+00  1.352e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.90
Ra Dec: 164.878 20.952
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 1.46e-08 +/- 1.37e-08
Energy Flux (Fixed Index): 4.70e-06 +/- 4.42e-06

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) = 12418.7596935
delta logL = 2.46323481942

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12418.4254459
delta logL = 2.79748240158

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4062       1.0000         .10000E-03   10000.    
     2 'Index     '    .76512       1.0000          .0000       10.000    
     3 'Normalizat'    1.1735       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84117       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=   12418.43     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      217 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4056        1.4929        .91394E-02   -.82151E-03
   2  Index         .76498        .37052        .31391       -.91780E-04
   3  Normalizat    1.1735        .11592        .35575E-01   -.14340E-04
   4  Prefactor     .84118        .11997        .44251E-01    .12397E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.40561
  Index      = 0.764985
  Normalizat = 1.17353
  Prefactor  = 0.841177
 **********
 **   18 **HESSE 
 **********

 FCN=   12418.43     FROM HESSE     STATUS=OK            31 CALLS      248 TOTAL
                     EDM=   .34E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4056        3.1099        .12646E-03   -1.5471    
   2  Index         .76498        .74027        .14043E-02   -1.0103    
   3  Normalizat    1.1735        .13300        .22027E-03   -.87425    
   4  Prefactor     .84118        .13759        .26323E-03   -.98228    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.39416e-13
Minuit parameter uncertainties:
  1  3.1103
  2  0.750191
  3  0.133037
  4  0.137646
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/661346': 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): 0
logL (Free Index) = 12418.4254459
delta logL = 2.79748243017

Extracting fit parameters...

4FGL J1059.5+2057
   Spectrum: PowerLaw
250    Prefactor:  1.406e+00  3.110e+00  1.000e-04  1.000e+04 ( 1.000e-13)
251        Index:  7.650e-01  7.502e-01  0.000e+00  1.000e+01 (-1.000e+00)
252        Scale:  1.122e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  8.412e-01  1.376e-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.174e+00  1.330e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.48
Ra Dec: 164.878 20.952
Photon Index (Free Index): 0.76 +/- 0.75
Photon Flux (Free Index): 1.55e-09 +/- 1.75e-09
Energy Flux (Free Index): 3.67e-05 +/- 4.67e-05

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/661346/cmap_HighResolution_284342401_284947201_4FGL_J1059.5+2057_weekly_bin75.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.46e-08', energy_flux2='3.67e-05', photon_flux_error='1.37e-08', dlogl='2.80e+00', energy_flux='4.70e-06', photon_flux2='1.55e-09', job_status='DONE', time_completed='2021-07-17 15:35:46.628178', photon_index_error2='0.75', photon_index2='0.76', ts='7.90', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='4.67e-05', EG='1.16', time_epoch_completed='1626561346.63', return_code='0', job_id='661346', GAL2='0.84', EG2='1.17', return_code2='0', energy_flux_error='4.42e-06', photon_flux_error2='1.75e-09', ts2='13.48', photon_index='2.41' WHERE bin_id='75' AND source_name='4FGL J1059.5+2057' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul 17 15:35:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 661346: <4FGL_J1059.5+2057_weekly_bin75> in cluster <slac> Done

Job <4FGL_J1059.5+2057_weekly_bin75> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sat Jul 17 15:20:45 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul 17 15:21:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul 17 15:21:39 2021
Terminated at Sat Jul 17 15:35:47 2021
Results reported at Sat Jul 17 15:35:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1059.5+2057_weekly_bin75 164.878 20.9524 284342401 284947201 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 :                                   814.24 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             362.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   847 sec.
    Turnaround time :                            902 sec.

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

