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


Performing analysis on: 4FGL_J1008.0+0620_daily_bin540
RA = 152.014, Dec = 6.3475
tmin = 379296001, tmax = 379555201
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='682445', job_status='RUN', time_executed='2021-09-01 11:14:06.732534', time_epoch_executed='1630520046.73' WHERE source_name='4FGL J1008.0+0620' and cadence='daily' and bin_id='540'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/682445

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/682445/ft1_4FGL_J1008.0+0620_daily_bin540.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/682445/ft2_4FGL_J1008.0+0620_daily_bin540.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/682445/ft1_4FGL_J1008.0+0620_daily_bin540.fits outfile=/scratch/kocevski/682445/ft1_filteredMKT_4FGL_J1008.0+0620_daily_bin540.fits ra=152.014 dec=6.3475 rad=12.0 tmin=379296001.0 tmax=379555201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.03
user 4.42
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/682445/ft1_filtered_4FGL_J1008.0+0620_daily_bin540.fits" evtable="EVENTS" scfile=/scratch/kocevski/682445/ft2_4FGL_J1008.0+0620_daily_bin540.fits sctable="SC_DATA" outfile=/scratch/kocevski/682445/ltcube_379296001_379555201_4FGL_J1008.0+0620_daily_bin540.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/682445/ft2_4FGL_J1008.0+0620_daily_bin540.fits
.....................!
real 12.92
user 12.59
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/682445/ft1_filtered_4FGL_J1008.0+0620_daily_bin540.fits evtable="EVENTS" scfile=/scratch/kocevski/682445/ft2_4FGL_J1008.0+0620_daily_bin540.fits sctable="SC_DATA" expcube=/scratch/kocevski/682445/ltcube_379296001_379555201_4FGL_J1008.0+0620_daily_bin540.fits outfile=/scratch/kocevski/682445/expmap_379296001_379555201_4FGL_J1008.0+0620_daily_bin540.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/682445/ltcube_379296001_379555201_4FGL_J1008.0+0620_daily_bin540.fits
.....................!
real 193.09
user 186.52
sys 4.07

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/682445/ft1_filtered_4FGL_J1008.0+0620_daily_bin540.fits scfile=/scratch/kocevski/682445/ft2_4FGL_J1008.0+0620_daily_bin540.fits outfile=/scratch/kocevski/682445/cmap_379296001_379555201_4FGL_J1008.0+0620_daily_bin540.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.62
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/682445/ft1_filtered_4FGL_J1008.0+0620_daily_bin540.fits scfile=/scratch/kocevski/682445/ft2_4FGL_J1008.0+0620_daily_bin540.fits outfile=/scratch/kocevski/682445/cmap_HighResolution_379296001_379555201_4FGL_J1008.0+0620_daily_bin540.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.59
user 0.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .82347E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.4121       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.2565       1.0000         .10000E-03   10000.    
     8 'norm      '    12.574       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.5054       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.263       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.8833       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.707       1.0000         .10000E-03   10000.    
    13 'norm      '    .10154E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.2336       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0540       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0377       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=   5142.002     FROM MIGRAD    STATUS=CONVERGED    360 CALLS     1509 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10057E-03    3.2641        .11799E-05** at limit **
   2  Prefactor     .10000E-03    36.620       -.20135E-06** at limit **
   3  norm          .10000E-03    .35834       -.68359E-07** at limit **
   4  norm          1.4120        .69462        .27750E-07   -.21645E-04
   5  Prefactor     .10000E-03    3.2525       -.27057E-06** at limit **
   6  Prefactor     .10000E-03    22.453        .14793E-05** at limit **
   7  Prefactor     2.3108        228.78       -.13638E-05    .48113E-05
   8  norm          12.575        11.664       -.23213E-06   -.10376E-03
   9  Prefactor     5.5081        8.3450       -.21872E-05   -.40276E-03
  10  Prefactor     15.227        51.682       -.55146E-05   -.98130E-04
  11  Prefactor     1.8419        227.96        .14688E-04    .18861E-05
  12  Prefactor     12.710        12.890       -.18180E-05   -.31121E-03
  13  norm          .10001E-03    .94285        .51616E-06** at limit **
  14  Prefactor     .10000E-03    6.7092        .10467E-05** at limit **
  15  Prefactor     4.2338        2.9541       -.80588E-07   -.79035E-04
  16  Prefactor     .10000E-03    4.6773       -.16191E-06** at limit **
  17  Normalizat    1.0541        .20900        .24828E-05   -.29084E-03
  18  Prefactor     1.0376        .17468       -.15028E-05   -.20617E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100571
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.412
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.31075
  norm       = 12.5747
  Prefactor  = 5.50811
  Prefactor  = 15.2272
  Prefactor  = 1.84195
  Prefactor  = 12.7102
  norm       = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 4.23379
  Prefactor  = 0.0001
  Normalizat = 1.05409
  Prefactor  = 1.03761
 **********
 **   18 **HESSE 
 **********

 FCN=   5142.002     FROM HESSE     STATUS=OK           242 CALLS     1751 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10057E-03    37.269        .22257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    37.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .36390        .41903E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.4120        .69305        .40121E-04   -1.5470    
   5  Prefactor     .10000E-03    3.2511        .12624E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.3108        222.25        .27349E-03   -1.5404    
   8  norm          12.575        11.658        .11297E-03   -1.4999    
   9  Prefactor     5.5081        8.3900        .17124E-03   -1.5239    
  10  Prefactor     15.227        51.568        .10252E-03   -1.4927    
  11  Prefactor     1.8419        232.89        .30331E-03   -1.5437    
  12  Prefactor     12.710        12.958        .11237E-03   -1.4995    
  13  norm          .10001E-03    4.7533        .12528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.7839        .18092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.2338        2.9520        .99191E-04   -1.5296    
  16  Prefactor     .10000E-03    4.7142        .15142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.0541        .23808        .25526E-03   -.91240    
  18  Prefactor     1.0376        .20131        .22119E-03   -.91486    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74203e-08
Minuit parameter uncertainties:
  1  0.00923451
  2  0.000102773
  3  1.29269e-06
  4  0.693058
  5  5.89831e-06
  6  9.85645e-05
  7  45.4979
  8  11.6597
  9  8.39178
  10  51.7196
  11  41.5886
  12  12.9608
  13  0.000450793
  14  2.84487e-05
  15  2.95207
  16  9.60908e-06
  17  0.238317
  18  0.201457
Done.

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

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  1.000e-04  5.898e-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.038e+00  2.015e-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.054e+00  2.383e-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: 4.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/682445/likelihoodResults_379296001_379555201_4FGL_J1008.0+0620_daily_bin540.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) = 5142.00294355
delta logL = -0.00142395590046

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5142.00151946
delta logL = 1.34405127028e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1699       1.0000          .0000       10.000    
     3 'Normalizat'    1.0541       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0376       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=   5142.002     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      238 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10240E-03    4.8374        .12830E-01** at limit **
   2  Index         2.0842        8.5005        .50000        .41589E-04
   3  Normalizat    1.0541        .58343E-02    .25526E-03   -.45740E-04
   4  Prefactor     1.0376        .50479E-02    .22119E-03   -.49958E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102399
  Index      = 2.08419
  Normalizat = 1.05409
  Prefactor  = 1.03761
 **********
 **   18 **HESSE 
 **********

 FCN=   5142.002     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      267 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10240E-03    58.408        .13146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0842        5.3866        .50000       -.62262    
   3  Normalizat    1.0541        .20609E-01    .10210E-04   -.91240    
   4  Prefactor     1.0376        .17831E-01    .88477E-05   -.91486    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.57488e-08
Minuit parameter uncertainties:
  1  0.023696
  2  332.613
  3  0.0206094
  4  0.0178313
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/682445': 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) = 5142.00151873
delta logL = 8.58880412125e-07

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  1.024e-04  2.370e-02  1.000e-04  1.000e+04 ( 1.000e-13)
201        Index:  2.084e+00  3.326e+02  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.038e+00  1.783e-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.054e+00  2.061e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 152.014 6.348

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/682445/cmap_HighResolution_379296001_379555201_4FGL_J1008.0+0620_daily_bin540.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.52e-03', job_status='DONE', photon_flux_upper_limit='4.63e-08', time_completed='2021-09-01 11:22:22.504292', job_id='682445', GAL2='1.04', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1630520542.5', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='8.59e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='540' AND source_name='4FGL J1008.0+0620' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 11:22:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0161>
Subject: Job 682445: <4FGL_J1008.0+0620_daily_bin540> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1008.0+0620_daily_bin540 152.014 6.3475 379296001 379555201 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 :                                   490.32 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             259.22 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.

