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


Performing analysis on: 4FGL_J1008.0+0620_weekly_bin729
RA = 152.014, Dec = 6.3475
tmin = 679881601, tmax = 680486401
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='197144', job_status='RUN', time_executed='2022-07-26 02:33:43.370059', time_epoch_executed='1658828023.37' WHERE source_name='4FGL J1008.0+0620' and cadence='weekly' and bin_id='729'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/197144

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/197144/ft1_4FGL_J1008.0+0620_weekly_bin729.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/197144/ft2_4FGL_J1008.0+0620_weekly_bin729.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/197144/ft1_4FGL_J1008.0+0620_weekly_bin729.fits outfile=/scratch/kocevski/197144/ft1_filteredMKT_4FGL_J1008.0+0620_weekly_bin729.fits ra=152.014 dec=6.3475 rad=12.0 tmin=679881601.0 tmax=680486401.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.37
user 7.98
sys 0.32

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/197144/ft2_4FGL_J1008.0+0620_weekly_bin729.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/197144/ft2_4FGL_J1008.0+0620_weekly_bin729.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/197144/ft1_filteredMKT_4FGL_J1008.0+0620_weekly_bin729.fits evtable="EVENTS" outfile="/scratch/kocevski/197144/ft1_filtered_4FGL_J1008.0+0620_weekly_bin729.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.57
user 0.39
sys 0.17

Number of photons that the gtmktime cut: 817

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/197144/ft1_filtered_4FGL_J1008.0+0620_weekly_bin729.fits" evtable="EVENTS" scfile=/scratch/kocevski/197144/ft2_4FGL_J1008.0+0620_weekly_bin729.fits sctable="SC_DATA" outfile=/scratch/kocevski/197144/ltcube_679881601_680486401_4FGL_J1008.0+0620_weekly_bin729.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/197144/ft2_4FGL_J1008.0+0620_weekly_bin729.fits
.....................!
real 33.28
user 32.63
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/197144/ft1_filtered_4FGL_J1008.0+0620_weekly_bin729.fits evtable="EVENTS" scfile=/scratch/kocevski/197144/ft2_4FGL_J1008.0+0620_weekly_bin729.fits sctable="SC_DATA" expcube=/scratch/kocevski/197144/ltcube_679881601_680486401_4FGL_J1008.0+0620_weekly_bin729.fits outfile=/scratch/kocevski/197144/expmap_679881601_680486401_4FGL_J1008.0+0620_weekly_bin729.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/197144/ltcube_679881601_680486401_4FGL_J1008.0+0620_weekly_bin729.fits
.....................!
real 192.42
user 186.69
sys 4.88

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 151 point sources and 0 extended sources

Setting source of interest to:
4FGL J1008.0+0620 @ 152.014 6.3475

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/197144/ft1_filtered_4FGL_J1008.0+0620_weekly_bin729.fits scfile=/scratch/kocevski/197144/ft2_4FGL_J1008.0+0620_weekly_bin729.fits outfile=/scratch/kocevski/197144/cmap_679881601_680486401_4FGL_J1008.0+0620_weekly_bin729.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=152.014 yref=6.3475 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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/197144/ft1_filtered_4FGL_J1008.0+0620_weekly_bin729.fits scfile=/scratch/kocevski/197144/ft2_4FGL_J1008.0+0620_weekly_bin729.fits outfile=/scratch/kocevski/197144/cmap_HighResolution_679881601_680486401_4FGL_J1008.0+0620_weekly_bin729.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=152.014 yref=6.3475 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.43
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/197144/ft1_filtered_4FGL_J1008.0+0620_weekly_bin729.fits evtable="EVENTS" scfile=/scratch/kocevski/197144/ft2_4FGL_J1008.0+0620_weekly_bin729.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/197144/Model_4FGL_J1008.0+0620_weekly_bin729.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/197144/ft1_filtered_4FGL_J1008.0+0620_weekly_bin729.fits.....................!
real 87.65
user 85.95
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/197144/ft1_filtered_4FGL_J1008.0+0620_weekly_bin729.fits', '/scratch/kocevski/197144/ft2_4FGL_J1008.0+0620_weekly_bin729.fits', expMap='/scratch/kocevski/197144/expmap_679881601_680486401_4FGL_J1008.0+0620_weekly_bin729.fits', expCube='/scratch/kocevski/197144/ltcube_679881601_680486401_4FGL_J1008.0+0620_weekly_bin729.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/197144/Model_4FGL_J1008.0+0620_weekly_bin729.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1008.0+0620'

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  6.323e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
201        Index:  2.189e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
202        Scale:  1.356e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/197144/ft1_filtered_4FGL_J1008.0+0620_weekly_bin729.fits
Spacecraft file(s): /scratch/kocevski/197144/ft2_4FGL_J1008.0+0620_weekly_bin729.fits
Exposure map: /scratch/kocevski/197144/expmap_679881601_680486401_4FGL_J1008.0+0620_weekly_bin729.fits
Exposure cube: /scratch/kocevski/197144/ltcube_679881601_680486401_4FGL_J1008.0+0620_weekly_bin729.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/197144/Model_4FGL_J1008.0+0620_weekly_bin729.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) = 9331.23698726

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3622       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10974E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10190E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .71666       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.4555       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .40170E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13369E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    20.116       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .77699E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12058E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14608E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.754       1.0000         .10000E-03   10000.    
    13 'norm      '    3.4332       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .21622       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.5211       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.1133       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1091       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9331.031     FROM MIGRAD    STATUS=CONVERGED    396 CALLS     1564 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3620        2.6587       -.41053E-07   -.36869E-04
   2  Prefactor     .10000E-03    10.455        .11098E-06** at limit **
   3  norm          .10000E-03    .53465       -.10562E-06** at limit **
   4  norm          .71704        .60461       -.11208E-06   -.18099E-02
   5  Prefactor     2.5248        11.868        .21380E-04   -.33233E-04
   6  Prefactor     .10000E-03    12.842       -.16323E-05** at limit **
   7  Prefactor     .10000E-03    6.7805        .46070E-07** at limit **
   8  norm          20.169        15.072       -.53591E-05   -.12257E-04
   9  Prefactor     .10000E-03    5.7915       -.16804E-05** at limit **
  10  Prefactor     .10000E-03    18.953        .67517E-05** at limit **
  11  Prefactor     .10000E-03    28.692       -.18267E-05** at limit **
  12  Prefactor     14.677        12.657        .31532E-06    .31243E-03
  13  norm          3.4331        1.5129        .53841E-07    .12953E-02
  14  Prefactor     .24964        5.0611       -.23543E-05    .71264E-03
  15  Prefactor     5.5194        2.7313        .60730E-07   -.12461E-03
  16  Prefactor     .10000E-03    1.6665        .38948E-07** at limit **
  17  Normalizat    1.1133        .17125       -.86052E-06    .56112E-03
  18  Prefactor     1.1091        .13989        .57015E-06    .51043E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.36203
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.717037
  Prefactor  = 2.52485
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 20.1694
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.6774
  norm       = 3.4331
  Prefactor  = 0.249637
  Prefactor  = 5.51937
  Prefactor  = 0.0001
  Normalizat = 1.11328
  Prefactor  = 1.10906
 **********
 **   18 **HESSE 
 **********

 FCN=   9331.031     FROM HESSE     STATUS=OK           256 CALLS     1820 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3620        2.6562        .16239E-03   -1.5401    
   2  Prefactor     .10000E-03    10.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.9770        .13417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .71704        .58442        .64386E-03   -1.5539    
   5  Prefactor     2.5248        11.367        .26102E-03   -1.5390    
   6  Prefactor     .10000E-03    12.858        .21262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.7842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          20.169        14.964        .89303E-04   -1.4809    
   9  Prefactor     .10000E-03    9.8932        .65998E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    28.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     14.677        12.808        .10427E-03   -1.4942    
  13  norm          3.4331        1.5077        .73155E-04   -1.5337    
  14  Prefactor     .24964        44.791        .39260E-02   -1.5608    
  15  Prefactor     5.5194        2.7303        .10728E-03   -1.5238    
  16  Prefactor     .10000E-03    1.6732        .12176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.1133        .19996        .27745E-03   -.89327    
  18  Prefactor     1.1091        .16571        .23264E-03   -.89178    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03562e-08
Minuit parameter uncertainties:
  1  2.65633
  2  4.5053e-06
  3  2.63973e-06
  4  0.584428
  5  10.7176
  6  1.1538e-05
  7  3.76299e-06
  8  14.9669
  9  5.79161e-06
  10  4.00126e-05
  11  2.73713e-05
  12  12.8102
  13  1.50767
  14  6.69147
  15  2.73039
  16  2.17244e-07
  17  0.200096
  18  0.165791
Done.

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

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  2.525e+00  1.072e+01  1.000e-04  1.000e+04 ( 1.000e-13)
201        Index:  2.189e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
202        Scale:  1.356e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
481    Prefactor:  1.109e+00  1.658e-01  0.000e+00  1.000e+01 ( 1.000e+00)
482        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
483        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
480   Normalization:  1.113e+00  2.001e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.08
Ra Dec: 152.014 6.348
Photon Flux Upper Limit: 7.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/197144/likelihoodResults_679881601_680486401_4FGL_J1008.0+0620_weekly_bin729.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) = 9330.81412611
delta logL = 0.216377377648

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9330.80956953
delta logL = 0.220933957507

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9430       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1280       1.0000          .0000       10.000    
     3 'Normalizat'    1.0830       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1238       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9330.810     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      232 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9316        70.721        .74452E-02    .11255E-02
   2  Index         3.1301        3.4244        .14938        .15887E-03
   3  Normalizat    1.0829        .39137E-01    .63476E-01   -.64947E-05
   4  Prefactor     1.1239        .32351E-01    .36746E-01   -.16640E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.93163
  Index      = 3.13007
  Normalizat = 1.08291
  Prefactor  = 1.12388
 **********
 **   18 **HESSE 
 **********

 FCN=   9330.810     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      265 TOTAL
                     EDM=   .21E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9316        199.26        .18660E-03   -1.5430    
   2  Index         3.1301        5.5636        .92003E-02   -.38330    
   3  Normalizat    1.0829        .21404        .28077E-03   -.90302    
   4  Prefactor     1.1239        .17880        .23126E-03   -.88707    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.08458e-06
Minuit parameter uncertainties:
  1  39.3722
  2  9.80991
  3  0.214214
  4  0.178891
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/197144': 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) = 9330.80956723
delta logL = 0.220936255544

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  1.932e+00  3.937e+01  1.000e-04  1.000e+04 ( 1.000e-13)
201        Index:  3.130e+00  9.810e+00  0.000e+00  1.000e+01 (-1.000e+00)
202        Scale:  1.356e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
481    Prefactor:  1.124e+00  1.789e-01  0.000e+00  1.000e+01 ( 1.000e+00)
482        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
483        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
480   Normalization:  1.083e+00  2.142e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
Ra Dec: 152.014 6.348

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/197144/cmap_HighResolution_679881601_680486401_4FGL_J1008.0+0620_weekly_bin729.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.43e-03', job_status='DONE', photon_flux_upper_limit='7.14e-08', time_completed='2022-07-26 02:45:07.810057', job_id='197144', GAL2='1.12', fit_tolerance='1e-08', EG2='1.08', EG='1.11', time_epoch_completed='1658828707.81', return_code2='102', ts='0.08', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='2.21e-01', ts2='0.54', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='729' AND source_name='4FGL J1008.0+0620' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 26 02:45:07 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 197144: <4FGL_J1008.0+0620_weekly_bin729> in cluster <slac> Done

Job <4FGL_J1008.0+0620_weekly_bin729> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Jul 26 02:30:32 2022
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul 26 02:33:04 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul 26 02:33:04 2022
Terminated at Tue Jul 26 02:45:08 2022
Results reported at Tue Jul 26 02:45:08 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1008.0+0620_weekly_bin729 152.014 6.3475 679881601 680486401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1008.0+0620 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   683.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             357.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   724 sec.
    Turnaround time :                            876 sec.

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

