/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 178 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 = 7468
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1008.0+0620_daily_bin423
RA = 152.014, Dec = 6.3475
tmin = 348969601, tmax = 349228801
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='681008', job_status='RUN', time_executed='2021-09-01 11:09:51.013493', time_epoch_executed='1630519791.01' WHERE source_name='4FGL J1008.0+0620' and cadence='daily' and bin_id='423'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/681008

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/681008/ft1_4FGL_J1008.0+0620_daily_bin423.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/681008/ft2_4FGL_J1008.0+0620_daily_bin423.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/681008/ft1_4FGL_J1008.0+0620_daily_bin423.fits outfile=/scratch/kocevski/681008/ft1_filteredMKT_4FGL_J1008.0+0620_daily_bin423.fits ra=152.014 dec=6.3475 rad=12.0 tmin=348969601.0 tmax=349228801.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 3.78
user 3.56
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/681008/ft2_4FGL_J1008.0+0620_daily_bin423.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/681008/ft1_filteredMKT_4FGL_J1008.0+0620_daily_bin423.fits evtable="EVENTS" outfile="/scratch/kocevski/681008/ft1_filtered_4FGL_J1008.0+0620_daily_bin423.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/681008/ft1_filtered_4FGL_J1008.0+0620_daily_bin423.fits" evtable="EVENTS" scfile=/scratch/kocevski/681008/ft2_4FGL_J1008.0+0620_daily_bin423.fits sctable="SC_DATA" outfile=/scratch/kocevski/681008/ltcube_348969601_349228801_4FGL_J1008.0+0620_daily_bin423.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/681008/ft2_4FGL_J1008.0+0620_daily_bin423.fits
.....................!
real 11.91
user 11.52
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/681008/ft1_filtered_4FGL_J1008.0+0620_daily_bin423.fits evtable="EVENTS" scfile=/scratch/kocevski/681008/ft2_4FGL_J1008.0+0620_daily_bin423.fits sctable="SC_DATA" expcube=/scratch/kocevski/681008/ltcube_348969601_349228801_4FGL_J1008.0+0620_daily_bin423.fits outfile=/scratch/kocevski/681008/expmap_348969601_349228801_4FGL_J1008.0+0620_daily_bin423.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/681008/ltcube_348969601_349228801_4FGL_J1008.0+0620_daily_bin423.fits
.....................!
real 190.21
user 185.08
sys 4.71

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/681008/ft1_filtered_4FGL_J1008.0+0620_daily_bin423.fits scfile=/scratch/kocevski/681008/ft2_4FGL_J1008.0+0620_daily_bin423.fits outfile=/scratch/kocevski/681008/cmap_348969601_349228801_4FGL_J1008.0+0620_daily_bin423.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.56
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/681008/ft1_filtered_4FGL_J1008.0+0620_daily_bin423.fits scfile=/scratch/kocevski/681008/ft2_4FGL_J1008.0+0620_daily_bin423.fits outfile=/scratch/kocevski/681008/cmap_HighResolution_348969601_349228801_4FGL_J1008.0+0620_daily_bin423.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.56
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/681008/ft1_filtered_4FGL_J1008.0+0620_daily_bin423.fits', '/scratch/kocevski/681008/ft2_4FGL_J1008.0+0620_daily_bin423.fits', expMap='/scratch/kocevski/681008/expmap_348969601_349228801_4FGL_J1008.0+0620_daily_bin423.fits', expCube='/scratch/kocevski/681008/ltcube_348969601_349228801_4FGL_J1008.0+0620_daily_bin423.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/681008/Model_4FGL_J1008.0+0620_daily_bin423.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/681008/ft1_filtered_4FGL_J1008.0+0620_daily_bin423.fits
Spacecraft file(s): /scratch/kocevski/681008/ft2_4FGL_J1008.0+0620_daily_bin423.fits
Exposure map: /scratch/kocevski/681008/expmap_348969601_349228801_4FGL_J1008.0+0620_daily_bin423.fits
Exposure cube: /scratch/kocevski/681008/ltcube_348969601_349228801_4FGL_J1008.0+0620_daily_bin423.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/681008/Model_4FGL_J1008.0+0620_daily_bin423.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) = 6354.31731412

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.2806       1.0000         .10000E-03   10000.    
     3 'norm      '    2.6090       1.0000         .10000E-03   10000.    
     4 'norm      '    2.4893       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    82.793       1.0000         .10000E-03   10000.    
     7 'Prefactor '    25.359       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .81566E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    1.4113       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.9803       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.1523       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.8024       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .68096       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1675       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6354.285     FROM MIGRAD    STATUS=CONVERGED    616 CALLS     2023 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.1655        .11341E-02** at limit **
   2  Prefactor     4.2802        12.713        .19473E-03   -.33570E-04
   3  norm          2.6090        1.3280        .62473E-04   -.10063E-03
   4  norm          2.4893        .75874        .36016E-04   -.26736E-03
   5  Prefactor     .10000E-03    3.5210        .14595E-02** at limit **
   6  Prefactor     82.797        47.639        .44145E-04    .36055E-05
   7  Prefactor     25.350        34.730        .79548E-04   -.79747E-04
   8  norm          .10000E-03    4.1794        .15911E-02** at limit **
   9  Prefactor     .10000E-03    5.4025        .17973E-02** at limit **
  10  Prefactor     .10000E-03    19.169        .18142E-02** at limit **
  11  Prefactor     .10000E-03    31.241        .18142E-02** at limit **
  12  Prefactor     .10001E-03    8.8236        .76488E-01** at limit **
  13  norm          1.4113        1.0593        .68734E-04   -.37397E-03
  14  Prefactor     2.9805        6.3268        .23518E-03   -.11684E-03
  15  Prefactor     3.1525        2.8740        .12200E-03   -.90114E-04
  16  Prefactor     7.8022        6.4628        .14355E-03   -.63039E-04
  17  Normalizat    .68094        .20797        .30600E-03   -.63233E-04
  18  Prefactor     1.1675        .17235        .20720E-03   -.22414E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.28024
  norm       = 2.609
  norm       = 2.48931
  Prefactor  = 0.0001
  Prefactor  = 82.797
  Prefactor  = 25.3505
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  norm       = 1.41127
  Prefactor  = 2.98045
  Prefactor  = 3.15249
  Prefactor  = 7.80221
  Normalizat = 0.680945
  Prefactor  = 1.16749
 **********
 **   18 **HESSE 
 **********

 FCN=   6354.285     FROM HESSE     STATUS=OK           236 CALLS     2259 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.1662        .22683E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.2802        12.711        .77891E-05   -1.5294    
   3  norm          2.6090        1.3279        .24989E-05   -1.5385    
   4  norm          2.4893        .75874        .14407E-05   -1.5392    
   5  Prefactor     .10000E-03    3.5211        .29191E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     82.797        47.638        .88289E-05   -1.3886    
   7  Prefactor     25.350        34.729        .31819E-05   -1.4701    
   8  norm          .10000E-03    4.1795        .31822E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.4048        .35946E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    19.169        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    31.244        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    8.5876        .78402E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.4113        1.0592        .27494E-05   -1.5470    
  14  Prefactor     2.9805        6.3255        .94070E-05   -1.5363    
  15  Prefactor     3.1525        2.8738        .48798E-05   -1.5353    
  16  Prefactor     7.8022        6.4625        .57422E-05   -1.5149    
  17  Normalizat    .68094        .20811        .12240E-04   -1.0465    
  18  Prefactor     1.1675        .17248        .41440E-04   -.87338    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27489e-10
Minuit parameter uncertainties:
  1  2.33821e-06
  2  12.7194
  3  1.32796
  4  0.758742
  5  3.89136e-06
  6  47.6598
  7  34.7567
  8  1.09729e-06
  9  5.52503e-06
  10  3.08501e-05
  11  0.00017629
  12  0.000478904
  13  1.05923
  14  6.32696
  15  2.87392
  16  6.46312
  17  0.208353
  18  0.172562
Done.

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

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  1.000e-04  3.891e-06  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.167e+00  1.726e-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:  6.809e-01  2.084e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/681008/likelihoodResults_348969601_349228801_4FGL_J1008.0+0620_daily_bin423.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): 102
logL (Free Index) = 6354.28659615
delta logL = -0.0013423543478

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6354.28525373
delta logL = 6.20138962404e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1730       1.0000          .0000       10.000    
     3 'Normalizat'    .68100       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1674       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6354.285     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      234 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10118E-03    48.594        .14753E-02** at limit **
   2  Index         2.1161        8.1484        .50000        .32062E-04
   3  Normalizat    .68094        .16145E-01    .30600E-03    .23480E-04
   4  Prefactor     1.1675        .14066E-01    .20720E-03    .30101E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101181
  Index      = 2.11614
  Normalizat = 0.680944
  Prefactor  = 1.16749
 **********
 **   18 **HESSE 
 **********

 FCN=   6354.285     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      263 TOTAL
                     EDM=   .57E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10118E-03    200.02        .29505E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1161        6.4204        .50000       -.61477    
   3  Normalizat    .68094        .34515E-01    .12240E-04   -1.0465    
   4  Prefactor     1.1675        .30069E-01    .41440E-04   -.87338    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.65219e-08
Minuit parameter uncertainties:
  1  0.0308488
  2  549.226
  3  0.0345164
  4  0.0300696
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/681008': 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) = 6354.28525332
delta logL = 4.7395042202e-07

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  1.012e-04  3.085e-02  1.000e-04  1.000e+04 ( 1.000e-13)
201        Index:  2.116e+00  5.492e+02  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.167e+00  3.007e-02  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:  6.809e-01  3.452e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 152.014 6.348

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/681008/cmap_HighResolution_348969601_349228801_4FGL_J1008.0+0620_daily_bin423.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.40e-03', job_status='DONE', photon_flux_upper_limit='4.47e-08', time_completed='2021-09-01 11:18:59.965920', job_id='681008', GAL2='1.17', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1630520339.97', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='4.74e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='423' AND source_name='4FGL J1008.0+0620' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 11:18:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 681008: <4FGL_J1008.0+0620_daily_bin423> in cluster <slac> Done

Job <4FGL_J1008.0+0620_daily_bin423> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 11:06:21 2021
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 11:06:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 11:06:22 2021
Terminated at Wed Sep  1 11:19:00 2021
Results reported at Wed Sep  1 11:19:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1008.0+0620_daily_bin423 152.014 6.3475 348969601 349228801 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 :                                   547.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            759 sec.

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

