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


Performing analysis on: 4FGL_J1008.0+0620_daily_bin751
RA = 152.014, Dec = 6.3475
tmin = 433987201, tmax = 434246401
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='683841', job_status='RUN', time_executed='2021-09-01 11:18:50.546616', time_epoch_executed='1630520330.55' WHERE source_name='4FGL J1008.0+0620' and cadence='daily' and bin_id='751'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/683841

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/683841/ft1_4FGL_J1008.0+0620_daily_bin751.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/683841/ft2_4FGL_J1008.0+0620_daily_bin751.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/683841/ft1_4FGL_J1008.0+0620_daily_bin751.fits outfile=/scratch/kocevski/683841/ft1_filteredMKT_4FGL_J1008.0+0620_daily_bin751.fits ra=152.014 dec=6.3475 rad=12.0 tmin=433987201.0 tmax=434246401.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 6.31
user 5.94
sys 0.27

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/683841/ft1_filtered_4FGL_J1008.0+0620_daily_bin751.fits evtable="EVENTS" scfile=/scratch/kocevski/683841/ft2_4FGL_J1008.0+0620_daily_bin751.fits sctable="SC_DATA" expcube=/scratch/kocevski/683841/ltcube_433987201_434246401_4FGL_J1008.0+0620_daily_bin751.fits outfile=/scratch/kocevski/683841/expmap_433987201_434246401_4FGL_J1008.0+0620_daily_bin751.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/683841/ltcube_433987201_434246401_4FGL_J1008.0+0620_daily_bin751.fits
.....................!
real 191.83
user 185.85
sys 5.20

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/683841/ft1_filtered_4FGL_J1008.0+0620_daily_bin751.fits scfile=/scratch/kocevski/683841/ft2_4FGL_J1008.0+0620_daily_bin751.fits outfile=/scratch/kocevski/683841/cmap_433987201_434246401_4FGL_J1008.0+0620_daily_bin751.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.74
user 0.37
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/683841/ft1_filtered_4FGL_J1008.0+0620_daily_bin751.fits scfile=/scratch/kocevski/683841/ft2_4FGL_J1008.0+0620_daily_bin751.fits outfile=/scratch/kocevski/683841/cmap_HighResolution_433987201_434246401_4FGL_J1008.0+0620_daily_bin751.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.92
user 0.41
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12649E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .41091E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.9938       1.0000         .10000E-03   10000.    
     4 'norm      '    2.9579       1.0000         .10000E-03   10000.    
     5 'Prefactor '    33.280       1.0000         .10000E-03   10000.    
     6 'Prefactor '    53.746       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10280E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .13728E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    74.687       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .22040E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.4225       1.0000         .10000E-03   10000.    
    13 'norm      '    1.2825       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.2241       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0525       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .76556       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=   3415.031     FROM MIGRAD    STATUS=CONVERGED    353 CALLS     1989 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.4652        .18320E-06** at limit **
   2  Prefactor     .10049E-03    13.144       -.14243E-05** at limit **
   3  norm          3.9943        1.8415       -.18939E-07    .67369E-04
   4  norm          2.9580        .95737       -.18539E-07    .41934E-03
   5  Prefactor     33.272        21.309        .51112E-06    .80454E-04
   6  Prefactor     53.770        47.057        .16136E-05    .11388E-03
   7  Prefactor     .10000E-03    15.682       -.34732E-06** at limit **
   8  norm          .10002E-03    79.527       -.23752E-05** at limit **
   9  Prefactor     .10001E-03    14.230        .21297E-05** at limit **
  10  Prefactor     74.606        75.602       -.64580E-05   -.75212E-04
  11  Prefactor     .10005E-03    463.91       -.17962E-04** at limit **
  12  Prefactor     2.4907        54.249       -.24403E-04    .10714E-03
  13  norm          1.2826        1.7229        .18839E-06    .14254E-03
  14  Prefactor     .10000E-03    4.9393        .15648E-06** at limit **
  15  Prefactor     .10000E-03    1.6180       -.19286E-06** at limit **
  16  Prefactor     5.2267        9.3064        .47959E-05   -.82451E-04
  17  Normalizat    1.0523        .24001        .15653E-05    .84035E-04
  18  Prefactor     .76559        .19381       -.20331E-05    .17941E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100494
  norm       = 3.9943
  norm       = 2.95796
  Prefactor  = 33.2716
  Prefactor  = 53.7703
  Prefactor  = 0.0001
  norm       = 0.000100022
  Prefactor  = 0.000100005
  Prefactor  = 74.6059
  Prefactor  = 0.000100049
  Prefactor  = 2.49067
  norm       = 1.28262
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.22669
  Normalizat = 1.05232
  Prefactor  = 0.76559
 **********
 **   18 **HESSE 
 **********

 FCN=   3415.031     FROM HESSE     STATUS=OK           242 CALLS     2231 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.555        .23848E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10049E-03    123.78        .40459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.9943        1.8495        .50887E-04   -1.5308    
   4  norm          2.9580        .95628        .31109E-04   -1.5364    
   5  Prefactor     33.272        21.294        .69462E-04   -1.4554    
   6  Prefactor     53.770        47.105        .54711E-04   -1.4240    
   7  Prefactor     .10000E-03    15.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10002E-03    80.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    14.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     74.606        75.569        .23230E-03   -1.3978    
  11  Prefactor     .10005E-03    460.21        .20140E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.4907        53.632        .26296E-03   -1.5392    
  13  norm          1.2826        1.6949        .85120E-04   -1.5481    
  14  Prefactor     .10000E-03    4.9692        .12681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.6327        .72563E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.2267        9.3374        .87934E-03   -1.5251    
  17  Normalizat    1.0523        .27393        .24242E-03   -.91298    
  18  Prefactor     .76559        .22148        .23579E-03   -1.0101    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.04389e-09
Minuit parameter uncertainties:
  1  1.41595e-05
  2  0.015669
  3  1.84956
  4  0.956284
  5  21.2992
  6  47.1372
  7  6.04686e-05
  8  0.00268129
  9  0.000554934
  10  75.6667
  11  0.00956401
  12  23.1385
  13  1.69492
  14  2.99688e-06
  15  7.87063e-06
  16  9.33997
  17  0.2743
  18  0.221738
Done.

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

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  3.327e+01  2.130e+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:  7.656e-01  2.217e-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.052e+00  2.743e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.86
Ra Dec: 152.014 6.348
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 8.43e-08 +/- 5.39e-08
Energy Flux (Fixed Index): 3.86e-05 +/- 2.47e-05

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) = 3414.78272481
delta logL = 0.248532972784

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3414.75665151
delta logL = 0.274606279272

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.813       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7397       1.0000          .0000       10.000    
     3 'Normalizat'    1.0944       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74492       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=   3414.757     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      214 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.813        49.925        .15881E-02    .13725E-02
   2  Index         1.7398        .89640        .14180       -.16315E-05
   3  Normalizat    1.0944        .23842        .38235E-01    .43528E-05
   4  Prefactor     .74492        .19524        .42996E-01    .83368E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.8131
  Index      = 1.73976
  Normalizat = 1.09437
  Prefactor  = 0.744919
 **********
 **   18 **HESSE 
 **********

 FCN=   3414.757     FROM HESSE     STATUS=OK            31 CALLS      245 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.813        28.822        .63525E-04   -1.4445    
   2  Index         1.7398        .61658        .73572E-02   -.71028    
   3  Normalizat    1.0944        .26588        .23862E-03   -.89933    
   4  Prefactor     .74492        .21990        .23881E-03   -1.0179    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.91746e-09
Minuit parameter uncertainties:
  1  28.8316
  2  0.619327
  3  0.266205
  4  0.220161
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/683841': 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) = 3414.75665148
delta logL = 0.274606300357

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  3.981e+01  2.883e+01  1.000e-04  1.000e+04 ( 1.000e-13)
201        Index:  1.740e+00  6.193e-01  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:  7.449e-01  2.202e-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.094e+00  2.662e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.38
Ra Dec: 152.014 6.348
Photon Index (Free Index): 1.74 +/- 0.62
Photon Flux (Free Index): 4.99e-08 +/- 5.93e-08
Energy Flux (Free Index): 7.18e-05 +/- 8.70e-05

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/683841/cmap_HighResolution_433987201_434246401_4FGL_J1008.0+0620_daily_bin751.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.43e-08', energy_flux2='7.18e-05', photon_flux_error='5.39e-08', dlogl='2.75e-01', energy_flux='3.86e-05', photon_flux2='4.99e-08', job_status='DONE', time_completed='2021-09-01 11:26:33.453563', photon_index_error2='0.62', photon_index2='1.74', ts='9.86', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', energy_flux_error2='8.70e-05', EG='1.05', time_epoch_completed='1630520793.45', return_code='0', job_id='683841', GAL2='0.74', EG2='1.09', return_code2='0', energy_flux_error='2.47e-05', photon_flux_error2='5.93e-08', ts2='10.38', photon_index='2.19' WHERE bin_id='751' AND source_name='4FGL J1008.0+0620' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 11:26:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 683841: <4FGL_J1008.0+0620_daily_bin751> in cluster <slac> Done

Job <4FGL_J1008.0+0620_daily_bin751> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 11:15:32 2021
Job was executed on host(s) <bullet0298>, 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:26:34 2021
Results reported at Wed Sep  1 11:26:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1008.0+0620_daily_bin751 152.014 6.3475 433987201 434246401 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 :                                   448.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             240.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   657 sec.
    Turnaround time :                            662 sec.

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

