/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 235 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 = 7256
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1008.0+0620_daily_bin369
RA = 152.014, Dec = 6.3475
tmin = 334972801, tmax = 335232001
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='680920', job_status='RUN', time_executed='2021-09-01 11:10:44.105893', time_epoch_executed='1630519844.11' WHERE source_name='4FGL J1008.0+0620' and cadence='daily' and bin_id='369'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/680920

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/680920/ft1_4FGL_J1008.0+0620_daily_bin369.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/680920/ft2_4FGL_J1008.0+0620_daily_bin369.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/680920/ft1_4FGL_J1008.0+0620_daily_bin369.fits outfile=/scratch/kocevski/680920/ft1_filteredMKT_4FGL_J1008.0+0620_daily_bin369.fits ra=152.014 dec=6.3475 rad=12.0 tmin=334972801.0 tmax=335232001.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.55
user 3.15
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/680920/ft1_filtered_4FGL_J1008.0+0620_daily_bin369.fits" evtable="EVENTS" scfile=/scratch/kocevski/680920/ft2_4FGL_J1008.0+0620_daily_bin369.fits sctable="SC_DATA" outfile=/scratch/kocevski/680920/ltcube_334972801_335232001_4FGL_J1008.0+0620_daily_bin369.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/680920/ft2_4FGL_J1008.0+0620_daily_bin369.fits
.....................!
real 11.94
user 11.51
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/680920/ft1_filtered_4FGL_J1008.0+0620_daily_bin369.fits evtable="EVENTS" scfile=/scratch/kocevski/680920/ft2_4FGL_J1008.0+0620_daily_bin369.fits sctable="SC_DATA" expcube=/scratch/kocevski/680920/ltcube_334972801_335232001_4FGL_J1008.0+0620_daily_bin369.fits outfile=/scratch/kocevski/680920/expmap_334972801_335232001_4FGL_J1008.0+0620_daily_bin369.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/680920/ltcube_334972801_335232001_4FGL_J1008.0+0620_daily_bin369.fits
.....................!
real 192.02
user 184.98
sys 4.53

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/680920/ft1_filtered_4FGL_J1008.0+0620_daily_bin369.fits scfile=/scratch/kocevski/680920/ft2_4FGL_J1008.0+0620_daily_bin369.fits outfile=/scratch/kocevski/680920/cmap_334972801_335232001_4FGL_J1008.0+0620_daily_bin369.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=152.014 yref=6.3475 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.74
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/680920/ft1_filtered_4FGL_J1008.0+0620_daily_bin369.fits scfile=/scratch/kocevski/680920/ft2_4FGL_J1008.0+0620_daily_bin369.fits outfile=/scratch/kocevski/680920/cmap_HighResolution_334972801_335232001_4FGL_J1008.0+0620_daily_bin369.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.66
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.1724       1.0000         .10000E-03   10000.    
     4 'norm      '    3.9961       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14718E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10390E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12164E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.5948       1.0000         .10000E-03   10000.    
    10 'Prefactor '    40.633       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.5871       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .16607E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.4558       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.1656       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14670       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.4971       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0871       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=   7964.866     FROM MIGRAD    STATUS=CONVERGED    395 CALLS     1615 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.3553       -.11921E-06** at limit **
   2  Prefactor     .10000E-03    8.7108       -.29258E-06** at limit **
   3  norm          3.1705        1.7191        .50502E-07   -.64588E-04
   4  norm          3.9954        .82797        .20744E-07   -.71778E-04
   5  Prefactor     .10000E-03    16.600        .29648E-05** at limit **
   6  Prefactor     .10000E-03    13.910        .32753E-07** at limit **
   7  Prefactor     .10000E-03    15.904       -.80240E-06** at limit **
   8  norm          .10000E-03    4.7020        .78827E-06** at limit **
   9  Prefactor     1.5892        5.8234        .42966E-05   -.83626E-04
  10  Prefactor     40.580        41.769        .21200E-05    .91321E-04
  11  Prefactor     3.4996        127.16       -.11958E-04   -.33046E-04
  12  Prefactor     .10000E-03    27.144        .14496E-04** at limit **
  13  norm          .10000E-03    .39074        .73009E-08** at limit **
  14  Prefactor     5.4496        6.7687        .29999E-07   -.13952E-04
  15  Prefactor     1.1764        2.9594        .40175E-06   -.66039E-04
  16  Prefactor     .12637E-01    4.0212        .54905E-06   -.21427E-03
  17  Normalizat    1.4978        .20101       -.10816E-05   -.79779E-04
  18  Prefactor     1.0870        .16204        .90435E-06   -.30080E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.17046
  norm       = 3.99544
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.58921
  Prefactor  = 40.5803
  Prefactor  = 3.49958
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.44963
  Prefactor  = 1.17642
  Prefactor  = 0.0126372
  Normalizat = 1.49779
  Prefactor  = 1.08704
 **********
 **   18 **HESSE 
 **********

 FCN=   7964.866     FROM HESSE     STATUS=OK           252 CALLS     1867 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.3614        .10145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.7569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.1705        1.7201        .81036E-04   -1.5352    
   4  norm          3.9954        .82882        .35319E-04   -1.5308    
   5  Prefactor     .10000E-03    17.174        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.7039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.5892        5.8439        .16794E-02   -1.5456    
  10  Prefactor     40.580        41.764        .62883E-04   -1.4433    
  11  Prefactor     3.4996        129.52        .21336E-03   -1.5334    
  12  Prefactor     .10000E-03    27.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .64602        .10807E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.4496        6.7541        .17203E-03   -1.5241    
  15  Prefactor     1.1764        2.9317        .22724E-03   -1.5491    
  16  Prefactor     .12637E-01    9.7502        .54003E-01   -1.5686    
  17  Normalizat    1.4978        .23871        .27701E-03   -.77840    
  18  Prefactor     1.0870        .19118        .26562E-03   -.89882    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.40798e-10
Minuit parameter uncertainties:
  1  4.17826e-08
  2  3.46918e-06
  3  1.72015
  4  0.828819
  5  3.65191e-05
  6  3.59462e-05
  7  0.00014518
  8  6.06229e-07
  9  5.84599
  10  41.7946
  11  42.6794
  12  8.6305e-06
  13  3.60279e-06
  14  6.75508
  15  2.93203
  16  0.699374
  17  0.238893
  18  0.191305
Done.

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

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  1.000e-04  3.652e-05  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.087e+00  1.913e-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.498e+00  2.389e-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: 6.01e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/680920/likelihoodResults_334972801_335232001_4FGL_J1008.0+0620_daily_bin369.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) = 7964.86634522
delta logL = -0.000277952623037

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7964.86606732
delta logL = -5.28962118551e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2034       1.0000          .0000       10.000    
     3 'Normalizat'    1.4977       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0871       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=   7964.866     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      222 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.382        .90712E-02** at limit **
   2  Index         2.2159        5.9668        .50000       -.53684E-05
   3  Normalizat    1.4978        .45285E-02    .62631E-01    .42815E-04
   4  Prefactor     1.0870        .38004E-02    .60062E-01    .46979E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.21591
  Normalizat = 1.49779
  Prefactor  = 1.08704
 **********
 **   18 **HESSE 
 **********

 FCN=   7964.866     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      255 TOTAL
                     EDM=   .43E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    515.08        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2159        5.0208        .50000       -.59055    
   3  Normalizat    1.4978        .28598E-01    .27700E-03   -.77840    
   4  Prefactor     1.0870        .23996E-01    .26562E-03   -.89882    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.29666e-07
Minuit parameter uncertainties:
  1  0.000511125
  2  495.766
  3  0.0285987
  4  0.0239961
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/680920': 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) = 7964.86606723
delta logL = 3.94302333007e-08

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  1.000e-04  5.111e-04  1.000e-04  1.000e+04 ( 1.000e-13)
201        Index:  2.216e+00  4.958e+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.087e+00  2.400e-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.498e+00  2.860e-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/680920/cmap_HighResolution_334972801_335232001_4FGL_J1008.0+0620_daily_bin369.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.58e-03', job_status='DONE', photon_flux_upper_limit='6.01e-08', time_completed='2021-09-01 11:20:41.431003', job_id='680920', GAL2='1.09', fit_tolerance='1e-08', EG2='1.50', EG='1.50', time_epoch_completed='1630520441.43', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='3.94e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='369' AND source_name='4FGL J1008.0+0620' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 11:20:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0144>
Subject: Job 680920: <4FGL_J1008.0+0620_daily_bin369> in cluster <slac> Done

Job <4FGL_J1008.0+0620_daily_bin369> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 11:06:14 2021
Job was executed on host(s) <bullet0144>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 11:06:15 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:06:15 2021
Terminated at Wed Sep  1 11:20:42 2021
Results reported at Wed Sep  1 11:20:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1008.0+0620_daily_bin369 152.014 6.3475 334972801 335232001 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 :                                   591.22 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             261.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   866 sec.
    Turnaround time :                            868 sec.

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

