/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 226 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 = 7480
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1008.0+0620_daily_bin744
RA = 152.014, Dec = 6.3475
tmin = 432172801, tmax = 432432001
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='683830', job_status='RUN', time_executed='2021-09-01 11:19:34.651821', time_epoch_executed='1630520374.65' WHERE source_name='4FGL J1008.0+0620' and cadence='daily' and bin_id='744'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/683830

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/683830/ft1_4FGL_J1008.0+0620_daily_bin744.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/683830/ft2_4FGL_J1008.0+0620_daily_bin744.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/683830/ft1_4FGL_J1008.0+0620_daily_bin744.fits outfile=/scratch/kocevski/683830/ft1_filteredMKT_4FGL_J1008.0+0620_daily_bin744.fits ra=152.014 dec=6.3475 rad=12.0 tmin=432172801.0 tmax=432432001.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 5.18
user 4.86
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/683830/ft2_4FGL_J1008.0+0620_daily_bin744.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/683830/ft1_filteredMKT_4FGL_J1008.0+0620_daily_bin744.fits evtable="EVENTS" outfile="/scratch/kocevski/683830/ft1_filtered_4FGL_J1008.0+0620_daily_bin744.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.51
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/683830/ft1_filtered_4FGL_J1008.0+0620_daily_bin744.fits" evtable="EVENTS" scfile=/scratch/kocevski/683830/ft2_4FGL_J1008.0+0620_daily_bin744.fits sctable="SC_DATA" outfile=/scratch/kocevski/683830/ltcube_432172801_432432001_4FGL_J1008.0+0620_daily_bin744.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/683830/ft2_4FGL_J1008.0+0620_daily_bin744.fits
.....................!
real 16.32
user 15.92
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/683830/ft1_filtered_4FGL_J1008.0+0620_daily_bin744.fits evtable="EVENTS" scfile=/scratch/kocevski/683830/ft2_4FGL_J1008.0+0620_daily_bin744.fits sctable="SC_DATA" expcube=/scratch/kocevski/683830/ltcube_432172801_432432001_4FGL_J1008.0+0620_daily_bin744.fits outfile=/scratch/kocevski/683830/expmap_432172801_432432001_4FGL_J1008.0+0620_daily_bin744.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/683830/ltcube_432172801_432432001_4FGL_J1008.0+0620_daily_bin744.fits
.....................!
real 190.39
user 185.92
sys 3.98

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/683830/ft1_filtered_4FGL_J1008.0+0620_daily_bin744.fits scfile=/scratch/kocevski/683830/ft2_4FGL_J1008.0+0620_daily_bin744.fits outfile=/scratch/kocevski/683830/cmap_432172801_432432001_4FGL_J1008.0+0620_daily_bin744.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.68
user 0.42
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/683830/ft1_filtered_4FGL_J1008.0+0620_daily_bin744.fits scfile=/scratch/kocevski/683830/ft2_4FGL_J1008.0+0620_daily_bin744.fits outfile=/scratch/kocevski/683830/cmap_HighResolution_432172801_432432001_4FGL_J1008.0+0620_daily_bin744.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.65
user 0.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3177       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10997E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.2744       1.0000         .10000E-03   10000.    
     4 'norm      '    .10079E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.266       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14086E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    30.174       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.028       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10449E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .57843       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.1136       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10419E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.703       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.3029       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0035       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=   5950.264     FROM MIGRAD    STATUS=CONVERGED    644 CALLS     2093 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3174        3.6166        .13027E-03    .15385E-03
   2  Prefactor     .10000E-03    109.00        .44886E-02** at limit **
   3  norm          1.2741        1.1002        .73458E-04    .43489E-03
   4  norm          .10000E-03    .42400        .70317E-03** at limit **
   5  Prefactor     .10000E-03    9.9858        .18142E-02** at limit **
   6  Prefactor     10.275        39.978        .12505E-03    .19909E-04
   7  Prefactor     .10000E-03    27.067        .11950    ** at limit **
   8  norm          30.177        18.741        .72939E-04   -.23258E-03
   9  Prefactor     .10000E-03    3.0293        .13106E-02** at limit **
  10  Prefactor     10.028        77.112        .12653E-03    .43127E-05
  11  Prefactor     .10000E-03    20.881        .18142E-02** at limit **
  12  Prefactor     .10000E-03    12.223        .18142E-02** at limit **
  13  norm          .57840        .85687        .99973E-03   -.28865E-03
  14  Prefactor     8.1140        6.6270        .14075E-03    .64535E-04
  15  Prefactor     .10000E-03    8.5999        .22449E-02** at limit **
  16  Prefactor     17.704        12.454        .95190E-04    .33787E-03
  17  Normalizat    1.3033        .24941        .25949E-03   -.84819E-04
  18  Prefactor     1.0033        .20288        .24311E-03   -.28323E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.31738
  Prefactor  = 0.000100002
  norm       = 1.27412
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.2754
  Prefactor  = 0.000100001
  norm       = 30.1767
  Prefactor  = 0.0001
  Prefactor  = 10.0283
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.578399
  Prefactor  = 8.11401
  Prefactor  = 0.0001
  Prefactor  = 17.7036
  Normalizat = 1.30329
  Prefactor  = 1.00328
 **********
 **   18 **HESSE 
 **********

 FCN=   5950.264     FROM HESSE     STATUS=OK           238 CALLS     2331 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3174        3.6165        .52110E-05   -1.5292    
   2  Prefactor     .10000E-03    113.75        .17955E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.2741        1.1002        .29383E-05   -1.5482    
   4  norm          .10000E-03    .42462        .14063E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.9876        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.275        39.980        .50022E-05   -1.5067    
   7  Prefactor     .10000E-03    26.426        .12187       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          30.177        18.739        .14588E-04   -1.4609    
   9  Prefactor     .10000E-03    3.0293        .26212E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.028        77.078        .50613E-05   -1.5075    
  11  Prefactor     .10000E-03    20.881        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.227        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .57840        .85634        .39989E-04   -1.5556    
  14  Prefactor     8.1140        6.6264        .56302E-05   -1.5138    
  15  Prefactor     .10000E-03    8.6328        .44898E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     17.704        12.451        .38076E-05   -1.4866    
  17  Normalizat    1.3033        .24958        .10380E-04   -.83468    
  18  Prefactor     1.0033        .20310        .48621E-04   -.92620    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.28793e-10
Minuit parameter uncertainties:
  1  3.61668
  2  0.000867063
  3  1.10022
  4  1.56313e-05
  5  0.000137148
  6  40.0841
  7  0.000270604
  8  18.7431
  9  3.3839e-06
  10  55.704
  11  9.55476e-06
  12  2.91609e-05
  13  0.856357
  14  6.62698
  15  2.86631e-06
  16  12.4531
  17  0.249807
  18  0.203251
Done.

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

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  1.000e-04  1.371e-04  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.003e+00  2.033e-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.303e+00  2.498e-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: 7.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/683830/likelihoodResults_432172801_432432001_4FGL_J1008.0+0620_daily_bin744.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) = 5950.26398111
delta logL = -0.00047709498358

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5950.26350578
delta logL = -1.76941466634e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11725E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1710       1.0000          .0000       10.000    
     3 'Normalizat'    1.3030       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0036       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=   5950.264     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      245 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10189E-03    4.4220        .18142E-01** at limit **
   2  Index         1.9627        8.1875        .50000        .36431E-05
   3  Normalizat    1.3033        .32830E-02    .25949E-03    .55641E-05
   4  Prefactor     1.0033        .27561E-02    .24311E-03    .77161E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101886
  Index      = 1.96272
  Normalizat = 1.30329
  Prefactor  = 1.00328
 **********
 **   18 **HESSE 
 **********

 FCN=   5950.264     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10189E-03    396.54        .24898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9627        5.5543        .50000       -.65286    
   3  Normalizat    1.3033        .32244E-01    .10380E-04   -.83468    
   4  Prefactor     1.0033        .27068E-01    .97243E-05   -.92620    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.64599e-06
Minuit parameter uncertainties:
  1  0.0550574
  2  1298.97
  3  0.032245
  4  0.0270687
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/683830': 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) = 5950.26350358
delta logL = 4.30304680776e-07

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  1.019e-04  5.506e-02  1.000e-04  1.000e+04 ( 1.000e-13)
201        Index:  1.963e+00  1.299e+03  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.003e+00  2.707e-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:  1.303e+00  3.224e-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/683830/cmap_HighResolution_432172801_432432001_4FGL_J1008.0+0620_daily_bin744.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.72e-03', job_status='DONE', photon_flux_upper_limit='7.51e-08', time_completed='2021-09-01 11:28:49.851518', job_id='683830', GAL2='1.00', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1630520929.85', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='4.30e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='744' AND source_name='4FGL J1008.0+0620' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 11:28:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 683830: <4FGL_J1008.0+0620_daily_bin744> in cluster <slac> Done

Job <4FGL_J1008.0+0620_daily_bin744> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 11:15:30 2021
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 11:15:36 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:15:36 2021
Terminated at Wed Sep  1 11:28:50 2021
Results reported at Wed Sep  1 11:28:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1008.0+0620_daily_bin744 152.014 6.3475 432172801 432432001 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 :                                   553.04 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             257.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   794 sec.
    Turnaround time :                            800 sec.

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

