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


Performing analysis on: 4FGL_J1008.0+0620_daily_bin935
RA = 152.014, Dec = 6.3475
tmin = 481680001, tmax = 481939201
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='684107', job_status='RUN', time_executed='2021-09-01 11:19:03.025288', time_epoch_executed='1630520343.03' WHERE source_name='4FGL J1008.0+0620' and cadence='daily' and bin_id='935'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/684107

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/684107/ft1_4FGL_J1008.0+0620_daily_bin935.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/684107/ft2_4FGL_J1008.0+0620_daily_bin935.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/684107/ft1_4FGL_J1008.0+0620_daily_bin935.fits outfile=/scratch/kocevski/684107/ft1_filteredMKT_4FGL_J1008.0+0620_daily_bin935.fits ra=152.014 dec=6.3475 rad=12.0 tmin=481680001.0 tmax=481939201.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.83
user 3.50
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/684107/ft1_filtered_4FGL_J1008.0+0620_daily_bin935.fits evtable="EVENTS" scfile=/scratch/kocevski/684107/ft2_4FGL_J1008.0+0620_daily_bin935.fits sctable="SC_DATA" expcube=/scratch/kocevski/684107/ltcube_481680001_481939201_4FGL_J1008.0+0620_daily_bin935.fits outfile=/scratch/kocevski/684107/expmap_481680001_481939201_4FGL_J1008.0+0620_daily_bin935.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/684107/ltcube_481680001_481939201_4FGL_J1008.0+0620_daily_bin935.fits
.....................!
real 191.32
user 186.70
sys 4.04

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/684107/ft1_filtered_4FGL_J1008.0+0620_daily_bin935.fits scfile=/scratch/kocevski/684107/ft2_4FGL_J1008.0+0620_daily_bin935.fits outfile=/scratch/kocevski/684107/cmap_481680001_481939201_4FGL_J1008.0+0620_daily_bin935.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.86
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/684107/ft1_filtered_4FGL_J1008.0+0620_daily_bin935.fits scfile=/scratch/kocevski/684107/ft2_4FGL_J1008.0+0620_daily_bin935.fits outfile=/scratch/kocevski/684107/cmap_HighResolution_481680001_481939201_4FGL_J1008.0+0620_daily_bin935.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.81
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10633E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10512E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.3913       1.0000         .10000E-03   10000.    
     4 'norm      '    .52394       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.8729       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .21085E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    13.304       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10248E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.9021       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.2935       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.4464       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.5425       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .85316       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .90571       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=   6298.915     FROM MIGRAD    STATUS=CONVERGED    367 CALLS     1537 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.6318        .57270E-01** at limit **
   2  Prefactor     .10000E-03    26.119        .90712E-02** at limit **
   3  norm          7.3919        1.7968        .36881E-02    .40520E-03
   4  norm          .52382        .52720        .11368E-01    .92997E-03
   5  Prefactor     9.8741        9.0026        .31883E-02   -.14676E-03
   6  Prefactor     .10000E-03    86.259        .90712E-02** at limit **
   7  Prefactor     .10000E-03    19.300        .90712E-02** at limit **
   8  norm          13.304        15.001        .27454E-02    .66757E-03
   9  Prefactor     .10000E-03    1.8470        .90712E-02** at limit **
  10  Prefactor     .10000E-03    18.826        .90712E-02** at limit **
  11  Prefactor     .10000E-03    8.5436        .90712E-02** at limit **
  12  Prefactor     .10000E-03    3.0801        .90712E-02** at limit **
  13  norm          4.9017        1.6352        .45417E-02   -.34188E-03
  14  Prefactor     1.2931        4.2994        .97282E-02    .10589E-02
  15  Prefactor     3.4472        2.7745        .54465E-02    .41939E-03
  16  Prefactor     6.5448        8.1179        .39224E-02   -.11994E-02
  17  Normalizat    .85296        .17413        .44300E-01   -.16393E-03
  18  Prefactor     .90574        .14094        .45078E-01   -.25291E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.39193
  norm       = 0.523822
  Prefactor  = 9.8741
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 13.3038
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.90167
  Prefactor  = 1.29306
  Prefactor  = 3.44719
  Prefactor  = 6.54477
  Normalizat = 0.852956
  Prefactor  = 0.905741
 **********
 **   18 **HESSE 
 **********

 FCN=   6298.915     FROM HESSE     STATUS=OK           248 CALLS     1785 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.049        .19656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    27.098        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.3919        1.8012        .49777E-04   -1.5164    
   4  norm          .52382        .50313        .54000E-03   -1.5563    
   5  Prefactor     9.8741        8.9994        .12753E-03   -1.5079    
   6  Prefactor     .10000E-03    88.491        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    19.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          13.304        14.998        .54909E-03   -1.4978    
   9  Prefactor     .10000E-03    1.8477        .10533E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.5440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.0804        .13603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.9017        1.6318        .55555E-04   -1.5265    
  14  Prefactor     1.2931        4.2630        .28537E-03   -1.5481    
  15  Prefactor     3.4472        2.7618        .11095E-03   -1.5337    
  16  Prefactor     6.5448        8.1069        .15690E-03   -1.5196    
  17  Normalizat    .85296        .20017        .26459E-03   -.98133    
  18  Prefactor     .90574        .16304        .21732E-03   -.95941    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.43796e-09
Minuit parameter uncertainties:
  1  0.000156948
  2  0.000194711
  3  1.8012
  4  0.503138
  5  9.0006
  6  0.000263472
  7  0.000575725
  8  15.0026
  9  1.01353e-07
  10  0.000374938
  11  1.3859e-05
  12  8.85244e-06
  13  1.63184
  14  4.26403
  15  2.76194
  16  8.10826
  17  0.20034
  18  0.163123
Done.

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

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  9.874e+00  9.001e+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

GAL_V02
   Spectrum: PowerLaw
481    Prefactor:  9.057e-01  1.631e-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:  8.530e-01  2.003e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.60
Ra Dec: 152.014 6.348
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 2.50e-08 +/- 2.28e-08
Energy Flux (Fixed Index): 1.15e-05 +/- 1.04e-05

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

Saving results to:
/scratch/kocevski/684107/likelihoodResults_481680001_481939201_4FGL_J1008.0+0620_daily_bin935.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) = 6298.51445933
delta logL = 0.401033142981

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6298.51416205
delta logL = 0.401330421761

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.528       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7390       1.0000          .0000       10.000    
     3 'Normalizat'    .86080       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90025       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=   6298.514     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      259 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.505        509.78        .25410E-02    .82681E-05
   2  Index         1.7379        5.4856        .20587        .25886E-04
   3  Normalizat    .86084        .11567        .44399E-01    .11704E-04
   4  Prefactor     .90027        .88592E-01    .45008E-01   -.60336E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.5049
  Index      = 1.7379
  Normalizat = 0.860836
  Prefactor  = 0.900269
 **********
 **   18 **HESSE 
 **********

 FCN=   6298.514     FROM HESSE     STATUS=OK            33 CALLS      292 TOTAL
                     EDM=   .83E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.505        12.943        .10164E-03   -1.4920    
   2  Index         1.7379        .45577        .77274E-02   -.71077    
   3  Normalizat    .86084        .19038        .26344E-03   -.97850    
   4  Prefactor     .90027        .16163        .21782E-03   -.96132    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.26345e-13
Minuit parameter uncertainties:
  1  12.9458
  2  0.456876
  3  0.190529
  4  0.161716
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/684107': 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) = 6298.51415665
delta logL = 0.401335817148

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
481    Prefactor:  9.003e-01  1.617e-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:  8.608e-01  1.905e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.41
Ra Dec: 152.014 6.348
Photon Index (Free Index): 1.74 +/- 0.46
Photon Flux (Free Index): 1.94e-08 +/- 1.78e-08
Energy Flux (Free Index): 2.81e-05 +/- 3.65e-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/684107/cmap_HighResolution_481680001_481939201_4FGL_J1008.0+0620_daily_bin935.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.15e-03', comment='SUCCESS', photon_flux='2.50e-08', energy_flux2='2.81e-05', photon_flux_error='2.28e-08', dlogl='4.01e-01', energy_flux='1.15e-05', photon_flux2='1.94e-08', job_status='DONE', time_completed='2021-09-01 11:28:11.763401', photon_index_error2='0.46', photon_index2='1.74', ts='2.60', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='8.07e-08', energy_flux_error2='3.65e-05', EG='0.85', time_epoch_completed='1630520891.76', return_code='0', job_id='684107', GAL2='0.90', EG2='0.86', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='1.78e-08', ts2='3.41', photon_index='2.19' WHERE bin_id='935' AND source_name='4FGL J1008.0+0620' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 11:28:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0153>
Subject: Job 684107: <4FGL_J1008.0+0620_daily_bin935> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1008.0+0620_daily_bin935 152.014 6.3475 481680001 481939201 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 :                                   532.64 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             264.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   747 sec.
    Turnaround time :                            751 sec.

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

