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


Performing analysis on: 4FGL_J1008.0+0620_daily_bin350
RA = 152.014, Dec = 6.3475
tmin = 330048001, tmax = 330307201
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='680892', job_status='RUN', time_executed='2021-09-01 11:10:20.931901', time_epoch_executed='1630519820.93' WHERE source_name='4FGL J1008.0+0620' and cadence='daily' and bin_id='350'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/680892

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/680892/ft1_4FGL_J1008.0+0620_daily_bin350.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/680892/ft2_4FGL_J1008.0+0620_daily_bin350.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/680892/ft1_4FGL_J1008.0+0620_daily_bin350.fits outfile=/scratch/kocevski/680892/ft1_filteredMKT_4FGL_J1008.0+0620_daily_bin350.fits ra=152.014 dec=6.3475 rad=12.0 tmin=330048001.0 tmax=330307201.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.63
user 3.26
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/680892/ft1_filtered_4FGL_J1008.0+0620_daily_bin350.fits" evtable="EVENTS" scfile=/scratch/kocevski/680892/ft2_4FGL_J1008.0+0620_daily_bin350.fits sctable="SC_DATA" outfile=/scratch/kocevski/680892/ltcube_330048001_330307201_4FGL_J1008.0+0620_daily_bin350.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/680892/ft2_4FGL_J1008.0+0620_daily_bin350.fits
.....................!
real 11.99
user 11.56
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/680892/ft1_filtered_4FGL_J1008.0+0620_daily_bin350.fits evtable="EVENTS" scfile=/scratch/kocevski/680892/ft2_4FGL_J1008.0+0620_daily_bin350.fits sctable="SC_DATA" expcube=/scratch/kocevski/680892/ltcube_330048001_330307201_4FGL_J1008.0+0620_daily_bin350.fits outfile=/scratch/kocevski/680892/expmap_330048001_330307201_4FGL_J1008.0+0620_daily_bin350.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/680892/ltcube_330048001_330307201_4FGL_J1008.0+0620_daily_bin350.fits
.....................!
real 191.63
user 186.30
sys 4.45

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/680892/ft1_filtered_4FGL_J1008.0+0620_daily_bin350.fits scfile=/scratch/kocevski/680892/ft2_4FGL_J1008.0+0620_daily_bin350.fits outfile=/scratch/kocevski/680892/cmap_330048001_330307201_4FGL_J1008.0+0620_daily_bin350.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.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/680892/ft1_filtered_4FGL_J1008.0+0620_daily_bin350.fits scfile=/scratch/kocevski/680892/ft2_4FGL_J1008.0+0620_daily_bin350.fits outfile=/scratch/kocevski/680892/cmap_HighResolution_330048001_330307201_4FGL_J1008.0+0620_daily_bin350.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.1332       1.0000         .10000E-03   10000.    
     4 'norm      '    6.8578       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.0839       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .38042E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .51797E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10601E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.881       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .60753       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.0411       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .23310       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.0047       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.6688       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .58545       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=   7417.576     FROM MIGRAD    STATUS=CONVERGED    400 CALLS     1844 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.0502       -.11710E-08** at limit **
   2  Prefactor     .10000E-03    6.8021       -.78923E-09** at limit **
   3  norm          3.1334        1.6301       -.54590E-08   -.96343E-05
   4  norm          6.8579        .99867       -.12853E-08   -.35195E-04
   5  Prefactor     8.0806        7.9762       -.30311E-07   -.49120E-04
   6  Prefactor     .10000E-03    27.662        .39315E-07** at limit **
   7  Prefactor     .10000E-03    7.4149        .28016E-09** at limit **
   8  norm          .10000E-03    6.6491        .22531E-08** at limit **
   9  Prefactor     .10000E-03    2.5066       -.11159E-08** at limit **
  10  Prefactor     .10000E-03    36.212       -.31146E-08** at limit **
  11  Prefactor     21.877        23.073        .10330E-06   -.11364E-02
  12  Prefactor     .10000E-03    6.3056       -.41693E-08** at limit **
  13  norm          .60796        1.1081       -.12319E-08   -.49340E-04
  14  Prefactor     5.0394        1.7094       -.20515E-06   -.61348E-03
  15  Prefactor     .23287        1.8384       -.37643E-07   -.73560E-04
  16  Prefactor     1.0033        3.9528       -.36985E-07    .24170E-03
  17  Normalizat    1.6687        .19544        .56156E-07   -.10941E-04
  18  Prefactor     .58545        .15310        .12636E-07   -.71212E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.13344
  norm       = 6.85791
  Prefactor  = 8.08055
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.8774
  Prefactor  = 0.0001
  norm       = 0.607965
  Prefactor  = 5.03936
  Prefactor  = 0.232865
  Prefactor  = 1.0033
  Normalizat = 1.66871
  Prefactor  = 0.585448
 **********
 **   18 **HESSE 
 **********

 FCN=   7417.576     FROM HESSE     STATUS=OK           260 CALLS     2104 TOTAL
                     EDM=   .53E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.0877        .12040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.8418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.1334        1.6362        .74980E-04   -1.5354    
   4  norm          6.8579        1.0013        .31292E-04   -1.5184    
   5  Prefactor     8.0806        7.8401        .70507E-03   -1.5139    
   6  Prefactor     .10000E-03    29.503        .13114       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.4181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    29.260        .42102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.5123        .13315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    36.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     21.877        23.026        .85628E-04   -1.4772    
  12  Prefactor     .10000E-03    6.3125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .60796        1.0740        .11570E-03   -1.5552    
  14  Prefactor     5.0394        5.8860        .89546E-03   -1.5259    
  15  Prefactor     .23287        4.2964        .22223E-02   -1.5611    
  16  Prefactor     1.0033        12.701        .31861E-02   -1.5508    
  17  Normalizat    1.6687        .23268        .24282E-03   -.73142    
  18  Prefactor     .58545        .17941        .30926E-03   -1.0820    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.29699e-08
Minuit parameter uncertainties:
  1  6.73221e-07
  2  2.39595e-06
  3  1.63618
  4  1.00127
  5  7.8411
  6  0.000591682
  7  2.7627e-06
  8  1.07534e-05
  9  4.40586e-07
  10  9.45445e-06
  11  23.0349
  12  4.89717e-08
  13  1.074
  14  5.88672
  15  2.00021
  16  7.14107
  17  0.232827
  18  0.179586
Done.

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

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  8.081e+00  7.841e+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:  5.854e-01  1.796e-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.669e+00  2.328e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.13
Ra Dec: 152.014 6.348
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 2.05e-08 +/- 1.99e-08
Energy Flux (Fixed Index): 9.38e-06 +/- 9.10e-06

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

Saving results to:
/scratch/kocevski/680892/likelihoodResults_330048001_330307201_4FGL_J1008.0+0620_daily_bin350.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) = 7417.51893727
delta logL = 0.0574051694675

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7417.51505831
delta logL = 0.0612841304965

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.066       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9686       1.0000          .0000       10.000    
     3 'Normalizat'    1.6722       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58321       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=   7417.515     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      274 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.066        10.804        .12630E-03   -.16788E-03
   2  Index         1.9692        .61151        .97447E-02    .22267E-03
   3  Normalizat    1.6724        .22300        .24259E-03   -.71008E-04
   4  Prefactor     .58311        .17887        .30981E-03   -.58639E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.0663
  Index      = 1.9692
  Normalizat = 1.67243
  Prefactor  = 0.583108
 **********
 **   18 **HESSE 
 **********

 FCN=   7417.515     FROM HESSE     STATUS=OK            25 CALLS      299 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.066        10.599        .50518E-05   -1.5073    
   2  Index         1.9692        .60012        .19489E-02   -.65122    
   3  Normalizat    1.6724        .22315        .48518E-04   -.73042    
   4  Prefactor     .58311        .17899        .12392E-04   -1.0830    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.94543e-11
Minuit parameter uncertainties:
  1  10.6009
  2  0.602417
  3  0.223287
  4  0.179167
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/680892': 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) = 7417.51505689
delta logL = 0.0612855482341

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  1.007e+01  1.060e+01  1.000e-04  1.000e+04 ( 1.000e-13)
201        Index:  1.969e+00  6.024e-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:  5.831e-01  1.792e-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.672e+00  2.233e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.24
Ra Dec: 152.014 6.348
Photon Index (Free Index): 1.97 +/- 0.60
Photon Flux (Free Index): 1.76e-08 +/- 1.90e-08
Energy Flux (Free Index): 1.31e-05 +/- 1.85e-05

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/680892/cmap_HighResolution_330048001_330307201_4FGL_J1008.0+0620_daily_bin350.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.67e-03', comment='SUCCESS', photon_flux='2.05e-08', energy_flux2='1.31e-05', photon_flux_error='1.99e-08', dlogl='6.13e-02', energy_flux='9.38e-06', photon_flux2='1.76e-08', job_status='DONE', time_completed='2021-09-01 11:20:19.922389', photon_index_error2='0.60', photon_index2='1.97', ts='2.13', fit_tolerance='1e-08', GAL='0.59', photon_index_error='0.00', photon_flux_upper_limit='7.44e-08', energy_flux_error2='1.85e-05', EG='1.67', time_epoch_completed='1630520419.92', return_code='0', job_id='680892', GAL2='0.58', EG2='1.67', return_code2='0', energy_flux_error='9.10e-06', photon_flux_error2='1.90e-08', ts2='2.24', photon_index='2.19' WHERE bin_id='350' AND source_name='4FGL J1008.0+0620' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 11:20:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 680892: <4FGL_J1008.0+0620_daily_bin350> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1008.0+0620_daily_bin350 152.014 6.3475 330048001 330307201 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 :                                   594.41 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             292.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   847 sec.
    Turnaround time :                            849 sec.

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

