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


Performing analysis on: 4FGL_J1008.0+0620_daily_bin475
RA = 152.014, Dec = 6.3475
tmin = 362448001, tmax = 362707201
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='682362', job_status='RUN', time_executed='2021-09-01 11:14:39.702858', time_epoch_executed='1630520079.7' WHERE source_name='4FGL J1008.0+0620' and cadence='daily' and bin_id='475'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/682362

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/682362/ft1_4FGL_J1008.0+0620_daily_bin475.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/682362/ft2_4FGL_J1008.0+0620_daily_bin475.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/682362/ft1_4FGL_J1008.0+0620_daily_bin475.fits outfile=/scratch/kocevski/682362/ft1_filteredMKT_4FGL_J1008.0+0620_daily_bin475.fits ra=152.014 dec=6.3475 rad=12.0 tmin=362448001.0 tmax=362707201.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.55
user 5.31
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/682362/ft1_filtered_4FGL_J1008.0+0620_daily_bin475.fits" evtable="EVENTS" scfile=/scratch/kocevski/682362/ft2_4FGL_J1008.0+0620_daily_bin475.fits sctable="SC_DATA" outfile=/scratch/kocevski/682362/ltcube_362448001_362707201_4FGL_J1008.0+0620_daily_bin475.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/682362/ft2_4FGL_J1008.0+0620_daily_bin475.fits
.....................!
real 12.23
user 11.83
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/682362/ft1_filtered_4FGL_J1008.0+0620_daily_bin475.fits evtable="EVENTS" scfile=/scratch/kocevski/682362/ft2_4FGL_J1008.0+0620_daily_bin475.fits sctable="SC_DATA" expcube=/scratch/kocevski/682362/ltcube_362448001_362707201_4FGL_J1008.0+0620_daily_bin475.fits outfile=/scratch/kocevski/682362/expmap_362448001_362707201_4FGL_J1008.0+0620_daily_bin475.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/682362/ltcube_362448001_362707201_4FGL_J1008.0+0620_daily_bin475.fits
.....................!
real 191.14
user 185.52
sys 5.22

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/682362/ft1_filtered_4FGL_J1008.0+0620_daily_bin475.fits scfile=/scratch/kocevski/682362/ft2_4FGL_J1008.0+0620_daily_bin475.fits outfile=/scratch/kocevski/682362/cmap_362448001_362707201_4FGL_J1008.0+0620_daily_bin475.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.58
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/682362/ft1_filtered_4FGL_J1008.0+0620_daily_bin475.fits scfile=/scratch/kocevski/682362/ft2_4FGL_J1008.0+0620_daily_bin475.fits outfile=/scratch/kocevski/682362/cmap_HighResolution_362448001_362707201_4FGL_J1008.0+0620_daily_bin475.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.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    30.292       1.0000         .10000E-03   10000.    
     3 'norm      '    1.3530       1.0000         .10000E-03   10000.    
     4 'norm      '    .37698       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.662       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14353E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .16562E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    29.714       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11349E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12678E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11949E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10276E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.3832       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.5762       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.1164       1.0000         .10000E-03   10000.    
    16 'Prefactor '    27.321       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.1313       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .82444       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=   6120.852     FROM MIGRAD    STATUS=CONVERGED    660 CALLS     1860 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.5828        .23696E-02** at limit **
   2  Prefactor     30.303        16.685        .72797E-04    .25065E-03
   3  norm          1.3535        1.1543        .74868E-04    .12831E-03
   4  norm          .37752        .52067        .64977E-03   -.11871E-02
   5  Prefactor     11.685        15.966        .11731E-03    .33319E-03
   6  Prefactor     .10030E-03    47.111        .13385    ** at limit **
   7  Prefactor     .10000E-03    143.62        .36285E-03** at limit **
   8  norm          29.692        19.221        .73500E-04    .51755E-03
   9  Prefactor     .10002E-03    67.190        .38048E-02** at limit **
  10  Prefactor     .10000E-03    246.24        .20598E-02** at limit **
  11  Prefactor     .10000E-03    134.82        .18142E-02** at limit **
  12  Prefactor     .10000E-03    13.994        .18142E-02** at limit **
  13  norm          1.3834        1.1999        .77132E-04    .49598E-03
  14  Prefactor     6.5776        6.2666        .15649E-03    .23226E-03
  15  Prefactor     4.1173        3.1118        .11354E-03    .36316E-03
  16  Prefactor     27.328        10.173        .76645E-04    .16287E-03
  17  Normalizat    1.1311        .22552        .24929E-03    .36120E-03
  18  Prefactor     .82444        .17685        .23831E-03    .95127E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 30.3031
  norm       = 1.35353
  norm       = 0.377516
  Prefactor  = 11.6845
  Prefactor  = 0.000100296
  Prefactor  = 0.000100003
  norm       = 29.692
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.38339
  Prefactor  = 6.57756
  Prefactor  = 4.11727
  Prefactor  = 27.3284
  Normalizat = 1.13114
  Prefactor  = 0.824439
 **********
 **   18 **HESSE 
 **********

 FCN=   6120.852     FROM HESSE     STATUS=OK           238 CALLS     2098 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.6154        .47392E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     30.303        16.682        .14559E-04   -1.4606    
   3  norm          1.3535        1.1542        .29947E-05   -1.5475    
   4  norm          .37752        .51996        .25991E-04   -1.5585    
   5  Prefactor     11.685        15.959        .46923E-05   -1.5024    
   6  Prefactor     .10030E-03    49.638        .12961       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    143.63        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          29.692        19.213        .14700E-04   -1.4618    
   9  Prefactor     .10002E-03    68.265        .76096E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    246.42        .41196E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    134.86        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.997        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.3834        1.1998        .30853E-05   -1.5473    
  14  Prefactor     6.5776        6.2661        .62596E-05   -1.5195    
  15  Prefactor     4.1173        3.1117        .45418E-05   -1.5302    
  16  Prefactor     27.328        10.173        .30658E-05   -1.4662    
  17  Normalizat    1.1311        .22559        .49858E-04   -.88758    
  18  Prefactor     .82444        .17700        .47662E-04   -.98834    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77119e-09
Minuit parameter uncertainties:
  1  0.00011798
  2  16.6843
  3  1.15421
  4  0.519969
  5  15.9652
  6  0.0076766
  7  0.00125141
  8  19.2174
  9  0.00207626
  10  0.000619339
  11  0.000283534
  12  9.14556e-06
  13  1.19983
  14  6.26668
  15  3.11184
  16  10.1733
  17  0.225788
  18  0.177119
Done.

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

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  1.168e+01  1.597e+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:  8.244e-01  1.771e-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.131e+00  2.258e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/682362/likelihoodResults_362448001_362707201_4FGL_J1008.0+0620_daily_bin475.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6120.18575715
delta logL = 0.665817992205

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6120.15335871
delta logL = 0.698216434125

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6588       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2775       1.0000          .0000       10.000    
     3 'Normalizat'    1.0605       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86261       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=   6120.153     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      255 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6649        48.200        .52794E-02    .45413E-03
   2  Index         3.2772        2.5125        .12447        .14676E-03
   3  Normalizat    1.0605        .56125E-01    .57932E-01    .71855E-05
   4  Prefactor     .86262        .45165E-01    .44527E-01    .64442E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.66488
  Index      = 3.2772
  Normalizat = 1.06052
  Prefactor  = 0.862617
 **********
 **   18 **HESSE 
 **********

 FCN=   6120.153     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      288 TOTAL
                     EDM=   .37E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6649        94.731        .10501E-03   -1.5325    
   2  Index         3.2772        6.5985        .42615E-02   -.35177    
   3  Normalizat    1.0605        .23754        .25618E-03   -.91030    
   4  Prefactor     .86262        .19646        .23351E-03   -.97460    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.72772e-07
Minuit parameter uncertainties:
  1  37.3309
  2  4.88046
  3  0.237778
  4  0.196624
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/682362': 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) = 6120.15335768
delta logL = 0.698217465504

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
481    Prefactor:  8.626e-01  1.966e-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.061e+00  2.378e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.31
Ra Dec: 152.014 6.348
Photon Index (Free Index): 3.28 +/- 4.88
Photon Flux (Free Index): 8.28e-08 +/- 7.17e-08
Energy Flux (Free Index): 1.47e-05 +/- 2.15e-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/682362/cmap_HighResolution_362448001_362707201_4FGL_J1008.0+0620_daily_bin475.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.66e-03', comment='SUCCESS', energy_flux2='1.47e-05', dlogl='6.98e-01', photon_flux2='8.28e-08', job_status='DONE', time_completed='2021-09-01 11:23:47.002595', photon_index_error2='4.88', photon_index2='3.28', ts='0.78', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='1.14e-07', energy_flux_error2='2.15e-05', EG='1.13', time_epoch_completed='1630520627.0', return_code='0', job_id='682362', GAL2='0.86', EG2='1.06', return_code2='102', photon_flux_error2='7.17e-08', ts2='2.31', photon_index='2.19' WHERE bin_id='475' AND source_name='4FGL J1008.0+0620' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 11:23:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0005>
Subject: Job 682362: <4FGL_J1008.0+0620_daily_bin475> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1008.0+0620_daily_bin475 152.014 6.3475 362448001 362707201 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 :                                   546.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   768 sec.
    Turnaround time :                            770 sec.

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

