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


Performing analysis on: 4FGL_J1008.0+0620_daily_bin373
RA = 152.014, Dec = 6.3475
tmin = 336009601, tmax = 336268801
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='680927', job_status='RUN', time_executed='2021-09-01 11:10:03.038659', time_epoch_executed='1630519803.04' WHERE source_name='4FGL J1008.0+0620' and cadence='daily' and bin_id='373'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/680927

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/680927/ft1_4FGL_J1008.0+0620_daily_bin373.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/680927/ft2_4FGL_J1008.0+0620_daily_bin373.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/680927/ft1_4FGL_J1008.0+0620_daily_bin373.fits outfile=/scratch/kocevski/680927/ft1_filteredMKT_4FGL_J1008.0+0620_daily_bin373.fits ra=152.014 dec=6.3475 rad=12.0 tmin=336009601.0 tmax=336268801.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.28
user 3.04
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/680927/ft2_4FGL_J1008.0+0620_daily_bin373.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/680927/ft1_filteredMKT_4FGL_J1008.0+0620_daily_bin373.fits evtable="EVENTS" outfile="/scratch/kocevski/680927/ft1_filtered_4FGL_J1008.0+0620_daily_bin373.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/680927/ft1_filtered_4FGL_J1008.0+0620_daily_bin373.fits" evtable="EVENTS" scfile=/scratch/kocevski/680927/ft2_4FGL_J1008.0+0620_daily_bin373.fits sctable="SC_DATA" outfile=/scratch/kocevski/680927/ltcube_336009601_336268801_4FGL_J1008.0+0620_daily_bin373.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/680927/ft2_4FGL_J1008.0+0620_daily_bin373.fits
.....................!
real 12.06
user 11.64
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/680927/ft1_filtered_4FGL_J1008.0+0620_daily_bin373.fits evtable="EVENTS" scfile=/scratch/kocevski/680927/ft2_4FGL_J1008.0+0620_daily_bin373.fits sctable="SC_DATA" expcube=/scratch/kocevski/680927/ltcube_336009601_336268801_4FGL_J1008.0+0620_daily_bin373.fits outfile=/scratch/kocevski/680927/expmap_336009601_336268801_4FGL_J1008.0+0620_daily_bin373.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/680927/ltcube_336009601_336268801_4FGL_J1008.0+0620_daily_bin373.fits
.....................!
real 193.43
user 187.13
sys 4.79

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/680927/ft1_filtered_4FGL_J1008.0+0620_daily_bin373.fits scfile=/scratch/kocevski/680927/ft2_4FGL_J1008.0+0620_daily_bin373.fits outfile=/scratch/kocevski/680927/cmap_336009601_336268801_4FGL_J1008.0+0620_daily_bin373.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.59
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/680927/ft1_filtered_4FGL_J1008.0+0620_daily_bin373.fits scfile=/scratch/kocevski/680927/ft2_4FGL_J1008.0+0620_daily_bin373.fits outfile=/scratch/kocevski/680927/cmap_HighResolution_336009601_336268801_4FGL_J1008.0+0620_daily_bin373.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5193       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.5095       1.0000         .10000E-03   10000.    
     4 'norm      '    .91602       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.7369       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10625E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.7243       1.0000         .10000E-03   10000.    
    10 'Prefactor '    97.398       1.0000         .10000E-03   10000.    
    11 'Prefactor '    72.964       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .37558       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.5071       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.2126       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0309       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.8587       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=   7950.909     FROM MIGRAD    STATUS=CONVERGED    344 CALLS     1792 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5192        3.9534       -.20842E-05   -.55426E-03
   2  Prefactor     .10000E-03    5.1778       -.64911E-07** at limit **
   3  norm          1.5090        2.0007       -.93959E-06   -.12254E-02
   4  norm          .91610        .71075       -.25448E-06   -.14001E-02
   5  Prefactor     3.7298        17.983       -.21644E-05    .21840E-04
   6  Prefactor     .10000E-03    11.952       -.52657E-06** at limit **
   7  Prefactor     .10000E-03    10.655        .80342E-06** at limit **
   8  norm          .10000E-03    17.622        .15730E-05** at limit **
   9  Prefactor     9.7142        16.606       -.11237E-04    .53731E-05
  10  Prefactor     97.340        103.44       -.57404E-04    .51319E-04
  11  Prefactor     73.010        74.096        .52927E-04    .60237E-04
  12  Prefactor     .10000E-03    11.427       -.16102E-05** at limit **
  13  norm          .10000E-03    .66076       -.13840E-06** at limit **
  14  Prefactor     .37623        4.5602       -.22991E-05   -.74562E-04
  15  Prefactor     4.5056        4.5927       -.15824E-06   -.12937E-03
  16  Prefactor     1.2124        21.945       -.65812E-05   -.44770E-03
  17  Normalizat    1.0315        .24232        .98691E-05    .14859E-03
  18  Prefactor     1.8583        .19452       -.58747E-06    .66854E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.51917
  Prefactor  = 0.0001
  norm       = 1.50903
  norm       = 0.916098
  Prefactor  = 3.72976
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 9.71423
  Prefactor  = 97.3396
  Prefactor  = 73.0104
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.376232
  Prefactor  = 4.50563
  Prefactor  = 1.21235
  Normalizat = 1.03148
  Prefactor  = 1.85825
 **********
 **   18 **HESSE 
 **********

 FCN=   7950.909     FROM HESSE     STATUS=OK           252 CALLS     2044 TOTAL
                     EDM=   .56E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5192        3.9464        .21483E-03   -1.5391    
   2  Prefactor     .10000E-03    5.1833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.5090        1.9833        .13207E-03   -1.5462    
   4  norm          .91610        .68413        .62608E-03   -1.5517    
   5  Prefactor     3.7298        17.685        .20888E-03   -1.5322    
   6  Prefactor     .10000E-03    11.957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    17.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.7142        16.510        .12851E-03   -1.5085    
  10  Prefactor     97.340        103.28        .20365E-03   -1.3732    
  11  Prefactor     73.010        73.719        .23500E-03   -1.3997    
  12  Prefactor     .10000E-03    11.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .68748        .14141E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .37623        18.563        .36567E-02   -1.5585    
  15  Prefactor     4.5056        4.5346        .17633E-03   -1.5283    
  16  Prefactor     1.2124        22.182        .41060E-03   -1.5488    
  17  Normalizat    1.0315        .28429        .36695E-03   -.91983    
  18  Prefactor     1.8583        .23282        .24750E-03   -.67943    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.60913e-08
Minuit parameter uncertainties:
  1  3.94681
  2  9.20013e-06
  3  1.98341
  4  0.684131
  5  16.251
  6  1.47938e-05
  7  1.25702e-05
  8  0.000347637
  9  16.5175
  10  103.475
  11  73.8114
  12  0.000185039
  13  4.54866e-06
  14  5.28641
  15  4.53496
  16  10.3756
  17  0.284707
  18  0.232955
Done.

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

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  3.730e+00  1.625e+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.858e+00  2.330e-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.031e+00  2.847e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.06
Ra Dec: 152.014 6.348
Photon Flux Upper Limit: 1.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/680927/likelihoodResults_336009601_336268801_4FGL_J1008.0+0620_daily_bin373.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) = 7950.81470214
delta logL = 0.0941259238607

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7950.81295869
delta logL = 0.0958693776365

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9481       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7697       1.0000          .0000       10.000    
     3 'Normalizat'    1.0105       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.8664       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7950.813     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      291 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9725        13.968        .10151E-02    .24399E-03
   2  Index         2.7647        1.5665        .89222E-02    .25958E-03
   3  Normalizat    1.0103        .27216        .37023E-03    .15046E-04
   4  Prefactor     1.8666        .23186        .24701E-03    .69038E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.97246
  Index      = 2.76472
  Normalizat = 1.01033
  Prefactor  = 1.8666
 **********
 **   18 **HESSE 
 **********

 FCN=   7950.813     FROM HESSE     STATUS=OK            27 CALLS      318 TOTAL
                     EDM=   .26E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9725        11.405        .20301E-03   -1.5309    
   2  Index         2.7647        1.2870        .17844E-02   -.46347    
   3  Normalizat    1.0103        .27243        .14809E-04   -.92685    
   4  Prefactor     1.8666        .23179        .98803E-05   -.67729    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.6162e-12
Minuit parameter uncertainties:
  1  11.4116
  2  1.30544
  3  0.272804
  4  0.231932
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/680927': 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) = 7950.81294977
delta logL = 0.0958782980533

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  3.972e+00  1.141e+01  1.000e-04  1.000e+04 ( 1.000e-13)
201        Index:  2.765e+00  1.305e+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.867e+00  2.319e-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.010e+00  2.728e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
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/680927/cmap_HighResolution_336009601_336268801_4FGL_J1008.0+0620_daily_bin373.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.41e-03', job_status='DONE', photon_flux_upper_limit='1.10e-07', time_completed='2021-09-01 11:20:07.192139', job_id='680927', GAL2='1.87', fit_tolerance='1e-08', EG2='1.01', EG='1.03', time_epoch_completed='1630520407.19', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='1.86', dlogl='9.59e-02', ts2='0.26', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='373' AND source_name='4FGL J1008.0+0620' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 11:20:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 680927: <4FGL_J1008.0+0620_daily_bin373> in cluster <slac> Done

Job <4FGL_J1008.0+0620_daily_bin373> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 11:06:14 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 11:06:16 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:16 2021
Terminated at Wed Sep  1 11:20:08 2021
Results reported at Wed Sep  1 11:20:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1008.0+0620_daily_bin373 152.014 6.3475 336009601 336268801 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 :                                   599.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             231.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            834 sec.

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

