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


Performing analysis on: 4FGL_J1008.0+0620_daily_bin193
RA = 152.014, Dec = 6.3475
tmin = 289353601, tmax = 289612801
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='680649', job_status='RUN', time_executed='2021-09-01 11:09:54.694624', time_epoch_executed='1630519794.69' WHERE source_name='4FGL J1008.0+0620' and cadence='daily' and bin_id='193'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/680649

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/680649/ft1_4FGL_J1008.0+0620_daily_bin193.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/680649/ft2_4FGL_J1008.0+0620_daily_bin193.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/680649/ft1_4FGL_J1008.0+0620_daily_bin193.fits outfile=/scratch/kocevski/680649/ft1_filteredMKT_4FGL_J1008.0+0620_daily_bin193.fits ra=152.014 dec=6.3475 rad=12.0 tmin=289353601.0 tmax=289612801.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.77
user 3.29
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/680649/ft1_filtered_4FGL_J1008.0+0620_daily_bin193.fits" evtable="EVENTS" scfile=/scratch/kocevski/680649/ft2_4FGL_J1008.0+0620_daily_bin193.fits sctable="SC_DATA" outfile=/scratch/kocevski/680649/ltcube_289353601_289612801_4FGL_J1008.0+0620_daily_bin193.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/680649/ft2_4FGL_J1008.0+0620_daily_bin193.fits
.....................!
real 12.61
user 12.08
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/680649/ft1_filtered_4FGL_J1008.0+0620_daily_bin193.fits evtable="EVENTS" scfile=/scratch/kocevski/680649/ft2_4FGL_J1008.0+0620_daily_bin193.fits sctable="SC_DATA" expcube=/scratch/kocevski/680649/ltcube_289353601_289612801_4FGL_J1008.0+0620_daily_bin193.fits outfile=/scratch/kocevski/680649/expmap_289353601_289612801_4FGL_J1008.0+0620_daily_bin193.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/680649/ltcube_289353601_289612801_4FGL_J1008.0+0620_daily_bin193.fits
.....................!
real 193.01
user 187.75
sys 3.79

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/680649/ft1_filtered_4FGL_J1008.0+0620_daily_bin193.fits scfile=/scratch/kocevski/680649/ft2_4FGL_J1008.0+0620_daily_bin193.fits outfile=/scratch/kocevski/680649/cmap_289353601_289612801_4FGL_J1008.0+0620_daily_bin193.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.61
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/680649/ft1_filtered_4FGL_J1008.0+0620_daily_bin193.fits scfile=/scratch/kocevski/680649/ft2_4FGL_J1008.0+0620_daily_bin193.fits outfile=/scratch/kocevski/680649/cmap_HighResolution_289353601_289612801_4FGL_J1008.0+0620_daily_bin193.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .45934       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.0788       1.0000         .10000E-03   10000.    
     3 'norm      '    1.3115       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.7151       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.3696       1.0000         .10000E-03   10000.    
     8 'norm      '    .10247E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.349       1.0000         .10000E-03   10000.    
    10 'Prefactor '    78.830       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.2027       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.3959       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.9103       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0482       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0535       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=   6529.743     FROM MIGRAD    STATUS=CONVERGED    367 CALLS     1798 TOTAL
                     EDM=   .39E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .46283        2.4270       -.77271E-07   -.13381E-03
   2  Prefactor     2.0791        21.594        .74525E-05   -.31891E-04
   3  norm          1.3115        1.3198        .26363E-07   -.35201E-04
   4  norm          .10000E-03    .25329       -.14171E-07** at limit **
   5  Prefactor     1.7102        19.043        .20127E-05    .13897E-04
   6  Prefactor     .10000E-03    37.462        .47229E-06** at limit **
   7  Prefactor     2.3768        80.394       -.21327E-05    .30404E-05
   8  norm          .10000E-03    12.815        .15875E-06** at limit **
   9  Prefactor     23.367        18.367       -.21028E-05   -.12521E-03
  10  Prefactor     78.861        63.490       -.34990E-05   -.27993E-04
  11  Prefactor     9.1455        174.06        .21961E-04   -.89129E-05
  12  Prefactor     .10000E-03    9.2711       -.57274E-06** at limit **
  13  norm          .10000E-03    .46992        .41362E-07** at limit **
  14  Prefactor     .10000E-03    1.6538        .84375E-08** at limit **
  15  Prefactor     3.3957        2.7613        .38164E-07   -.70232E-05
  16  Prefactor     2.9099        7.4862        .28472E-06   -.45824E-05
  17  Normalizat    1.0482        .19111       -.13212E-05   -.32190E-04
  18  Prefactor     1.0535        .15376        .65079E-06   -.64129E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.462828
  Prefactor  = 2.07909
  norm       = 1.3115
  norm       = 0.0001
  Prefactor  = 1.71018
  Prefactor  = 0.0001
  Prefactor  = 2.37683
  norm       = 0.0001
  Prefactor  = 23.3672
  Prefactor  = 78.8608
  Prefactor  = 9.14554
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.39573
  Prefactor  = 2.90991
  Normalizat = 1.04821
  Prefactor  = 1.0535
 **********
 **   18 **HESSE 
 **********

 FCN=   6529.743     FROM HESSE     STATUS=OK           254 CALLS     2052 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .46283        4.6511        .24083E-02   -1.5572    
   2  Prefactor     2.0791        21.708        .14322E-02   -1.5420    
   3  norm          1.3115        1.2990        .87782E-04   -1.5479    
   4  norm          .10000E-03    .47260        .78335E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.7102        18.881        .32089E-03   -1.5446    
   6  Prefactor     .10000E-03    37.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.3768        80.278        .26618E-03   -1.5400    
   8  norm          .10000E-03    12.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     23.367        18.327        .82897E-04   -1.4741    
  10  Prefactor     78.861        63.669        .45232E-04   -1.3930    
  11  Prefactor     9.1455        174.36        .13211E-03   -1.5103    
  12  Prefactor     .10000E-03    9.2943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .99945        .10767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.6584        .10148E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.3957        2.7508        .11550E-03   -1.5339    
  16  Prefactor     2.9099        7.4596        .23816E-03   -1.5367    
  17  Normalizat    1.0482        .22297        .26546E-03   -.91432    
  18  Prefactor     1.0535        .18100        .22376E-03   -.90967    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.01538e-08
Minuit parameter uncertainties:
  1  2.93436
  2  13.4422
  3  1.29907
  4  4.1171e-06
  5  11.3689
  6  6.57052e-05
  7  27.6665
  8  3.58469e-05
  9  18.3317
  10  63.7239
  11  80.1361
  12  6.45751e-05
  13  1.66502e-07
  14  4.25349e-07
  15  2.75094
  16  7.46203
  17  0.223164
  18  0.181106
Done.

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

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  1.710e+00  1.137e+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:  1.053e+00  1.811e-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.048e+00  2.232e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.03
Ra Dec: 152.014 6.348
Photon Flux Upper Limit: 7.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/680649/likelihoodResults_289353601_289612801_4FGL_J1008.0+0620_daily_bin193.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) = 6529.73417629
delta logL = 0.00907800356981

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6529.73381258
delta logL = 0.00944171008814

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5663       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5038       1.0000          .0000       10.000    
     3 'Normalizat'    1.0450       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0547       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6529.734     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      290 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5497        19.947        .16990E-02   -.18337E-03
   2  Index         2.5200        2.7516        .43923E-02   -.42891E-04
   3  Normalizat    1.0451        .21468        .26579E-03   -.18987E-03
   4  Prefactor     1.0549        .18108        .22361E-03    .11389E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.54971
  Index      = 2.52
  Normalizat = 1.04505
  Prefactor  = 1.05494
 **********
 **   18 **HESSE 
 **********

 FCN=   6529.734     FROM HESSE     STATUS=OK            25 CALLS      315 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5497        14.077        .67962E-04   -1.5459    
   2  Index         2.5200        2.3684        .17569E-03   -.51899    
   3  Normalizat    1.0451        .21498        .10632E-04   -.91536    
   4  Prefactor     1.0549        .18117        .44722E-04   -.90920    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.99842e-10
Minuit parameter uncertainties:
  1  9.34387
  2  2.50511
  3  0.215164
  4  0.181272
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/680649': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6529.73378316
delta logL = 0.00947113571601

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  1.550e+00  9.344e+00  1.000e-04  1.000e+04 ( 1.000e-13)
201        Index:  2.520e+00  2.505e+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:  1.055e+00  1.813e-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.045e+00  2.152e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
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/680649/cmap_HighResolution_289353601_289612801_4FGL_J1008.0+0620_daily_bin193.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.89e-03', job_status='DONE', photon_flux_upper_limit='7.74e-08', time_completed='2021-09-01 11:19:07.019813', job_id='680649', GAL2='1.05', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1630520347.02', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='9.47e-03', ts2='0.05', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='193' AND source_name='4FGL J1008.0+0620' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 11:19:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 680649: <4FGL_J1008.0+0620_daily_bin193> in cluster <slac> Done

Job <4FGL_J1008.0+0620_daily_bin193> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 11:05:47 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 11:05:48 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:05:48 2021
Terminated at Wed Sep  1 11:19:08 2021
Results reported at Wed Sep  1 11:19:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1008.0+0620_daily_bin193 152.014 6.3475 289353601 289612801 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 :                                 1255 MB
    Average Memory :                             213.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            801 sec.

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

