/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 93 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 = 7395
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1008.0+0620_daily_bin106
RA = 152.014, Dec = 6.3475
tmin = 266803201, tmax = 267062401
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='679304', job_status='RUN', time_executed='2021-09-01 11:03:10.977206', time_epoch_executed='1630519390.98' WHERE source_name='4FGL J1008.0+0620' and cadence='daily' and bin_id='106'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/679304

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/679304/ft1_4FGL_J1008.0+0620_daily_bin106.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/679304/ft2_4FGL_J1008.0+0620_daily_bin106.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/679304/ft1_4FGL_J1008.0+0620_daily_bin106.fits outfile=/scratch/kocevski/679304/ft1_filteredMKT_4FGL_J1008.0+0620_daily_bin106.fits ra=152.014 dec=6.3475 rad=12.0 tmin=266803201.0 tmax=267062401.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 2.23
user 1.77
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/679304/ft1_filtered_4FGL_J1008.0+0620_daily_bin106.fits evtable="EVENTS" scfile=/scratch/kocevski/679304/ft2_4FGL_J1008.0+0620_daily_bin106.fits sctable="SC_DATA" expcube=/scratch/kocevski/679304/ltcube_266803201_267062401_4FGL_J1008.0+0620_daily_bin106.fits outfile=/scratch/kocevski/679304/expmap_266803201_267062401_4FGL_J1008.0+0620_daily_bin106.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/679304/ltcube_266803201_267062401_4FGL_J1008.0+0620_daily_bin106.fits
.....................!
real 192.18
user 184.73
sys 5.50

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/679304/ft1_filtered_4FGL_J1008.0+0620_daily_bin106.fits scfile=/scratch/kocevski/679304/ft2_4FGL_J1008.0+0620_daily_bin106.fits outfile=/scratch/kocevski/679304/cmap_266803201_267062401_4FGL_J1008.0+0620_daily_bin106.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.79
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/679304/ft1_filtered_4FGL_J1008.0+0620_daily_bin106.fits scfile=/scratch/kocevski/679304/ft2_4FGL_J1008.0+0620_daily_bin106.fits outfile=/scratch/kocevski/679304/cmap_HighResolution_266803201_267062401_4FGL_J1008.0+0620_daily_bin106.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.88
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.166       1.0000         .10000E-03   10000.    
     3 'norm      '    .96048       1.0000         .10000E-03   10000.    
     4 'norm      '    .70741       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10759E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13379E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10337E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.981       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12248E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11240E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11623E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.8737       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.7312       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .81716E-02   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0171       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0656       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=   8085.266     FROM MIGRAD    STATUS=CONVERGED    373 CALLS     1568 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.4924        .90712E-02** at limit **
   2  Prefactor     13.103        14.845        .27598E-02    .93815E-03
   3  norm          .96038        .67474        .13025E-01    .87573E-04
   4  norm          .70774        .58655        .12090E-01    .15944E-02
   5  Prefactor     .10000E-03    9.9799        .90712E-02** at limit **
   6  Prefactor     .10000E-03    19.924        .90712E-02** at limit **
   7  Prefactor     .10000E-03    6.3544        .90712E-02** at limit **
   8  norm          .10000E-03    3.8359        .90712E-02** at limit **
   9  Prefactor     11.983        6.8368        .28933E-02   -.64876E-03
  10  Prefactor     .10033E-03    166.97        .10312E-01** at limit **
  11  Prefactor     .10000E-03    15.841        .90712E-02** at limit **
  12  Prefactor     .10000E-03    7.3585        .90712E-02** at limit **
  13  norm          .10000E-03    .63590        .25545E-01** at limit **
  14  Prefactor     3.8751        5.9354        .51255E-02   -.21207E-02
  15  Prefactor     1.7313        2.2431        .79763E-02    .73855E-03
  16  Prefactor     .10002E-03    3.7778        .92202E-01** at limit **
  17  Normalizat    1.0171        .16079        .43820E-01    .24849E-04
  18  Prefactor     1.0656        .13425        .39071E-01    .17330E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 13.1029
  norm       = 0.960381
  norm       = 0.707741
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.9825
  Prefactor  = 0.000100332
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.8751
  Prefactor  = 1.7313
  Prefactor  = 0.000100018
  Normalizat = 1.01705
  Prefactor  = 1.06563
 **********
 **   18 **HESSE 
 **********

 FCN=   8085.266     FROM HESSE     STATUS=OK           252 CALLS     1820 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.5232        .10723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.103        14.777        .55196E-03   -1.4984    
   3  norm          .96038        .66765        .59759E-04   -1.5512    
   4  norm          .70774        .56597        .57629E-04   -1.5540    
   5  Prefactor     .10000E-03    10.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    19.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.3559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.8390        .17199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.983        6.8370        .11573E-03   -1.5016    
  10  Prefactor     .10033E-03    170.07        .20623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.4053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.1868        .13741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.8751        5.8909        .20502E-03   -1.5314    
  15  Prefactor     1.7313        2.2177        .14492E-03   -1.5445    
  16  Prefactor     .10002E-03    8.4495        .53323E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.0171        .18341        .25723E-03   -.92461    
  18  Prefactor     1.0656        .15412        .21759E-03   -.90573    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.83866e-09
Minuit parameter uncertainties:
  1  2.09994e-07
  2  14.7812
  3  0.667653
  4  0.565977
  5  9.71709e-06
  6  9.25112e-05
  7  9.62451e-07
  8  1.11269e-06
  9  6.83742
  10  0.0150663
  11  6.91281e-05
  12  2.93351e-05
  13  2.56639e-07
  14  5.89181
  15  2.21777
  16  0.000780808
  17  0.183523
  18  0.154185
Done.

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

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  1.000e-04  9.717e-06  1.000e-04  1.000e+04 ( 1.000e-13)
201        Index:  2.189e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
202        Scale:  1.356e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
481    Prefactor:  1.066e+00  1.542e-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.017e+00  1.835e-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: 5.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.27e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/679304/likelihoodResults_266803201_267062401_4FGL_J1008.0+0620_daily_bin106.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) = 8085.26673251
delta logL = -0.000470279084766

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8085.26626332
delta logL = -1.09054235509e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13695E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2496       1.0000          .0000       10.000    
     3 'Normalizat'    1.0172       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0655       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=   8085.266     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      247 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10009E-03    349.03        .36285E-02** at limit **
   2  Index         2.3349        8.6876        .50000       -.70802E-04
   3  Normalizat    1.0171        .18050E-01    .25723E-03   -.15380E-04
   4  Prefactor     1.0656        .15668E-01    .21759E-03   -.83701E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100094
  Index      = 2.3349
  Normalizat = 1.01705
  Prefactor  = 1.06563
 **********
 **   18 **HESSE 
 **********

 FCN=   8085.266     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10009E-03    1205.3        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3349        5.3189        .50000       -.56217    
   3  Normalizat    1.0171        .36245E-01    .10289E-04   -.92461    
   4  Prefactor     1.0656        .31462E-01    .87036E-05   -.90573    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.03039e-09
Minuit parameter uncertainties:
  1  0.0217082
  2  35.7271
  3  0.0362461
  4  0.0314629
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/679304': 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) = 8085.26626012
delta logL = 2.10982852877e-06

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  1.001e-04  2.171e-02  1.000e-04  1.000e+04 ( 1.000e-13)
201        Index:  2.335e+00  3.573e+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.066e+00  3.146e-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.017e+00  3.625e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/679304/cmap_HighResolution_266803201_267062401_4FGL_J1008.0+0620_daily_bin106.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.27e-03', job_status='DONE', photon_flux_upper_limit='5.61e-08', time_completed='2021-09-01 11:13:07.037343', job_id='679304', GAL2='1.07', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1630519987.04', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='2.11e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='106' AND source_name='4FGL J1008.0+0620' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 11:13:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 679304: <4FGL_J1008.0+0620_daily_bin106> in cluster <slac> Done

Job <4FGL_J1008.0+0620_daily_bin106> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 11:01:06 2021
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 11:01:07 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:01:07 2021
Terminated at Wed Sep  1 11:13:07 2021
Results reported at Wed Sep  1 11:13:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1008.0+0620_daily_bin106 152.014 6.3475 266803201 267062401 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 :                                   575.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             268.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   720 sec.
    Turnaround time :                            721 sec.

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

