/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 91 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 = 7427
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1008.0+0620_daily_bin979
RA = 152.014, Dec = 6.3475
tmin = 493084801, tmax = 493344001
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='685323', job_status='RUN', time_executed='2021-09-01 11:25:08.279360', time_epoch_executed='1630520708.28' WHERE source_name='4FGL J1008.0+0620' and cadence='daily' and bin_id='979'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/685323

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/685323/ft1_4FGL_J1008.0+0620_daily_bin979.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/685323/ft2_4FGL_J1008.0+0620_daily_bin979.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/685323/ft1_4FGL_J1008.0+0620_daily_bin979.fits outfile=/scratch/kocevski/685323/ft1_filteredMKT_4FGL_J1008.0+0620_daily_bin979.fits ra=152.014 dec=6.3475 rad=12.0 tmin=493084801.0 tmax=493344001.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.06
user 2.73
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/685323/ft1_filtered_4FGL_J1008.0+0620_daily_bin979.fits" evtable="EVENTS" scfile=/scratch/kocevski/685323/ft2_4FGL_J1008.0+0620_daily_bin979.fits sctable="SC_DATA" outfile=/scratch/kocevski/685323/ltcube_493084801_493344001_4FGL_J1008.0+0620_daily_bin979.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/685323/ft2_4FGL_J1008.0+0620_daily_bin979.fits
.....................!
real 20.07
user 19.62
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/685323/ft1_filtered_4FGL_J1008.0+0620_daily_bin979.fits evtable="EVENTS" scfile=/scratch/kocevski/685323/ft2_4FGL_J1008.0+0620_daily_bin979.fits sctable="SC_DATA" expcube=/scratch/kocevski/685323/ltcube_493084801_493344001_4FGL_J1008.0+0620_daily_bin979.fits outfile=/scratch/kocevski/685323/expmap_493084801_493344001_4FGL_J1008.0+0620_daily_bin979.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/685323/ltcube_493084801_493344001_4FGL_J1008.0+0620_daily_bin979.fits
.....................!
real 147.19
user 142.84
sys 3.99

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/685323/ft1_filtered_4FGL_J1008.0+0620_daily_bin979.fits scfile=/scratch/kocevski/685323/ft2_4FGL_J1008.0+0620_daily_bin979.fits outfile=/scratch/kocevski/685323/cmap_493084801_493344001_4FGL_J1008.0+0620_daily_bin979.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.30
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/685323/ft1_filtered_4FGL_J1008.0+0620_daily_bin979.fits scfile=/scratch/kocevski/685323/ft2_4FGL_J1008.0+0620_daily_bin979.fits outfile=/scratch/kocevski/685323/cmap_HighResolution_493084801_493344001_4FGL_J1008.0+0620_daily_bin979.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.45
user 0.31
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    11.211       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.2136       1.0000         .10000E-03   10000.    
     6 'Prefactor '    47.292       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10571E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10630E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.639       1.0000         .10000E-03   10000.    
    11 'Prefactor '    94.789       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.030       1.0000         .10000E-03   10000.    
    13 'norm      '    .81571       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.901       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .88175       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.5834       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=   5930.763     FROM MIGRAD    STATUS=CONVERGED    385 CALLS     1756 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.8487       -.51021E-08** at limit **
   2  Prefactor     .10000E-03    5.9129       -.31153E-08** at limit **
   3  norm          11.211        2.5719       -.66954E-07    .23541E-04
   4  norm          .10000E-03    .21472        .61587E-07** at limit **
   5  Prefactor     7.2156        7.0937       -.82313E-06    .94858E-04
   6  Prefactor     47.357        49.893       -.34902E-04    .12711E-04
   7  Prefactor     .10000E-03    17.257        .26544E-06** at limit **
   8  norm          .10000E-03    6.7393       -.27419E-06** at limit **
   9  Prefactor     .10000E-03    4.2071       -.60783E-06** at limit **
  10  Prefactor     16.441        59.752       -.41959E-04   -.13932E-05
  11  Prefactor     94.955        89.227        .11499E-03    .75577E-04
  12  Prefactor     15.953        31.158       -.67525E-04   -.20902E-04
  13  norm          .81472        1.8826       -.51348E-06   -.11072E-02
  14  Prefactor     10.893        11.366        .21009E-05    .21514E-04
  15  Prefactor     .10000E-03    1.2784       -.62035E-07** at limit **
  16  Prefactor     .10000E-03    4.9133       -.55538E-07** at limit **
  17  Normalizat    .88113        .23301       -.16177E-05    .13451E-03
  18  Prefactor     1.5840        .19933        .21818E-05   -.50358E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.2111
  norm       = 0.0001
  Prefactor  = 7.21558
  Prefactor  = 47.357
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 16.4414
  Prefactor  = 94.9549
  Prefactor  = 15.9532
  norm       = 0.81472
  Prefactor  = 10.8931
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.881127
  Prefactor  = 1.584
 **********
 **   18 **HESSE 
 **********

 FCN=   5930.763     FROM HESSE     STATUS=OK           246 CALLS     2002 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.8728        .10224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.9287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          11.211        2.5793        .55335E-04   -1.5038    
   4  norm          .10000E-03    .26561        .69331E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.2156        7.0960        .14935E-03   -1.5171    
   6  Prefactor     47.357        49.829        .58307E-04   -1.4331    
   7  Prefactor     .10000E-03    17.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.7468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.2093        .15423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     16.441        59.921        .98189E-04   -1.4897    
  11  Prefactor     94.955        89.246        .20641E-03   -1.3756    
  12  Prefactor     15.953        31.134        .10004E-03   -1.4909    
  13  norm          .81472        1.8365        .14784E-03   -1.5527    
  14  Prefactor     10.893        11.263        .12135E-03   -1.5048    
  15  Prefactor     .10000E-03    1.2905        .85007E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.9676        .16669E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .88113        .27263        .34183E-03   -.97127    
  18  Prefactor     1.5840        .23444        .23491E-03   -.75214    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12253e-09
Minuit parameter uncertainties:
  1  9.1708e-07
  2  3.17834e-07
  3  2.57937
  4  2.91884e-06
  5  7.09678
  6  49.8724
  7  0.000115845
  8  6.90816e-05
  9  0.000124499
  10  60.1415
  11  89.3725
  12  31.166
  13  1.83667
  14  11.2648
  15  7.7036e-06
  16  1.31114e-05
  17  0.273062
  18  0.234606
Done.

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

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  7.216e+00  7.097e+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

GAL_V02
   Spectrum: PowerLaw
481    Prefactor:  1.584e+00  2.346e-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:  8.811e-01  2.731e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.03
Ra Dec: 152.014 6.348
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 1.83e-08 +/- 1.80e-08
Energy Flux (Fixed Index): 8.37e-06 +/- 8.23e-06

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) = 5927.66038965
delta logL = 3.10211431435

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5927.56515919
delta logL = 3.1973447717

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6683       1.0000         .10000E-03   10000.    
     2 'Index     '    .63216       1.0000          .0000       10.000    
     3 'Normalizat'    .88372       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5856       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=   5927.565     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      220 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6668        3.6777        .52723E-02   -.17650E-03
   2  Index         .63204        .35399        .22209       -.41282E-04
   3  Normalizat    .88369        .22191        .77125E-01    .30440E-04
   4  Prefactor     1.5857        .19762        .53108E-01    .23998E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.66685
  Index      = 0.632039
  Normalizat = 0.883691
  Prefactor  = 1.58567
 **********
 **   18 **HESSE 
 **********

 FCN=   5927.565     FROM HESSE     STATUS=OK            33 CALLS      253 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6668        5.8350        .13248E-03   -1.5325    
   2  Index         .63204        .54362        .10069E-01   -1.0625    
   3  Normalizat    .88369        .25942        .34136E-03   -.97036    
   4  Prefactor     1.5857        .23149        .23478E-03   -.75168    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43868e-09
Minuit parameter uncertainties:
  1  5.83595
  2  0.548252
  3  0.259782
  4  0.231641
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/685323': 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) = 5927.56515916
delta logL = 3.19734480574

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  3.667e+00  5.836e+00  1.000e-04  1.000e+04 ( 1.000e-13)
201        Index:  6.320e-01  5.483e-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:  1.586e+00  2.316e-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:  8.837e-01  2.598e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.43
Ra Dec: 152.014 6.348
Photon Index (Free Index): 0.63 +/- 0.55
Photon Flux (Free Index): 6.06e-09 +/- 5.62e-09
Energy Flux (Free Index): 1.77e-04 +/- 2.01e-04

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/685323/cmap_HighResolution_493084801_493344001_4FGL_J1008.0+0620_daily_bin979.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.83e-08', energy_flux2='1.77e-04', photon_flux_error='1.80e-08', dlogl='3.20e+00', energy_flux='8.37e-06', photon_flux2='6.06e-09', job_status='DONE', time_completed='2021-09-01 11:31:51.389219', photon_index_error2='0.55', photon_index2='0.63', ts='10.03', fit_tolerance='1e-08', GAL='1.58', photon_index_error='0.00', energy_flux_error2='2.01e-04', EG='0.88', time_epoch_completed='1630521111.39', return_code='0', job_id='685323', GAL2='1.59', EG2='0.88', return_code2='0', energy_flux_error='8.23e-06', photon_flux_error2='5.62e-09', ts2='16.43', photon_index='2.19' WHERE bin_id='979' AND source_name='4FGL J1008.0+0620' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 11:31:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0026>
Subject: Job 685323: <4FGL_J1008.0+0620_daily_bin979> in cluster <slac> Done

Job <4FGL_J1008.0+0620_daily_bin979> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep  1 11:20:34 2021
Job was executed on host(s) <bullet0026>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 11:20:35 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:20:35 2021
Terminated at Wed Sep  1 11:31:52 2021
Results reported at Wed Sep  1 11:31:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1008.0+0620_daily_bin979 152.014 6.3475 493084801 493344001 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 :                                   388.10 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             254.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   676 sec.
    Turnaround time :                            678 sec.

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

