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


Performing analysis on: 4FGL_J1008.0+0620_daily_bin548
RA = 152.014, Dec = 6.3475
tmin = 381369601, tmax = 381628801
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='682457', job_status='RUN', time_executed='2021-09-01 11:14:33.075035', time_epoch_executed='1630520073.08' WHERE source_name='4FGL J1008.0+0620' and cadence='daily' and bin_id='548'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/682457

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/682457/ft1_4FGL_J1008.0+0620_daily_bin548.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/682457/ft2_4FGL_J1008.0+0620_daily_bin548.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/682457/ft1_4FGL_J1008.0+0620_daily_bin548.fits outfile=/scratch/kocevski/682457/ft1_filteredMKT_4FGL_J1008.0+0620_daily_bin548.fits ra=152.014 dec=6.3475 rad=12.0 tmin=381369601.0 tmax=381628801.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.61
user 3.40
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/682457/ft1_filtered_4FGL_J1008.0+0620_daily_bin548.fits" evtable="EVENTS" scfile=/scratch/kocevski/682457/ft2_4FGL_J1008.0+0620_daily_bin548.fits sctable="SC_DATA" outfile=/scratch/kocevski/682457/ltcube_381369601_381628801_4FGL_J1008.0+0620_daily_bin548.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/682457/ft2_4FGL_J1008.0+0620_daily_bin548.fits
.....................!
real 11.72
user 11.39
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/682457/ft1_filtered_4FGL_J1008.0+0620_daily_bin548.fits evtable="EVENTS" scfile=/scratch/kocevski/682457/ft2_4FGL_J1008.0+0620_daily_bin548.fits sctable="SC_DATA" expcube=/scratch/kocevski/682457/ltcube_381369601_381628801_4FGL_J1008.0+0620_daily_bin548.fits outfile=/scratch/kocevski/682457/expmap_381369601_381628801_4FGL_J1008.0+0620_daily_bin548.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/682457/ltcube_381369601_381628801_4FGL_J1008.0+0620_daily_bin548.fits
.....................!
real 192.55
user 187.12
sys 4.76

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/682457/ft1_filtered_4FGL_J1008.0+0620_daily_bin548.fits scfile=/scratch/kocevski/682457/ft2_4FGL_J1008.0+0620_daily_bin548.fits outfile=/scratch/kocevski/682457/cmap_381369601_381628801_4FGL_J1008.0+0620_daily_bin548.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.55
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8144       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10275       1.0000         .10000E-03   10000.    
     4 'norm      '    2.0350       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.136       1.0000         .10000E-03   10000.    
     8 'norm      '    17.445       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.5016       1.0000         .10000E-03   10000.    
    13 'norm      '    2.9703       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.5709       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    .97845       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .93330       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=   6206.781     FROM MIGRAD    STATUS=CONVERGED    358 CALLS     1732 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8141        3.9655       -.21493E-05   -.71284E-04
   2  Prefactor     .10000E-03    7.4522        .21238E-05** at limit **
   3  norm          .99166E-01    .64549       -.19150E-06   -.39318E-03
   4  norm          2.0349        .67832       -.38379E-09   -.13889E-03
   5  Prefactor     .10000E-03    5.2898       -.10870E-05** at limit **
   6  Prefactor     .10000E-03    25.348       -.12575E-05** at limit **
   7  Prefactor     20.133        27.322       -.31770E-05    .12061E-03
   8  norm          17.444        12.663        .74246E-07    .53128E-05
   9  Prefactor     .10000E-03    3.5573       -.53297E-07** at limit **
  10  Prefactor     .10000E-03    25.221        .88085E-07** at limit **
  11  Prefactor     .10000E-03    14.846        .14269E-05** at limit **
  12  Prefactor     8.5006        8.9761       -.21056E-08    .21400E-04
  13  norm          2.9703        1.4377       -.35507E-07   -.20118E-03
  14  Prefactor     .10000E-03    4.5163        .71920E-06** at limit **
  15  Prefactor     9.5697        4.1156        .57626E-06   -.53522E-03
  16  Prefactor     .10000E-03    9.1243       -.26053E-05** at limit **
  17  Normalizat    .97852        .18138        .58181E-06    .76253E-04
  18  Prefactor     .93328        .14824        .15865E-06    .86856E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.81409
  Prefactor  = 0.0001
  norm       = 0.0991662
  norm       = 2.0349
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.1332
  norm       = 17.4439
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.50058
  norm       = 2.97028
  Prefactor  = 0.0001
  Prefactor  = 9.56968
  Prefactor  = 0.0001
  Normalizat = 0.978518
  Prefactor  = 0.933279
 **********
 **   18 **HESSE 
 **********

 FCN=   6206.781     FROM HESSE     STATUS=OK           246 CALLS     1978 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8141        4.1866        .18821E-03   -1.5372    
   2  Prefactor     .10000E-03    7.4457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .99166E-01    2.7468        .11896E-02   -1.5645    
   4  norm          2.0349        .67623        .35607E-04   -1.5423    
   5  Prefactor     .10000E-03    5.2922        .17674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    25.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     20.133        27.253        .89258E-04   -1.4810    
   8  norm          17.444        12.663        .95893E-04   -1.4872    
   9  Prefactor     .10000E-03    3.5685        .14509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    25.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.5006        8.9769        .13748E-03   -1.5125    
  13  norm          2.9703        1.4359        .63062E-04   -1.5363    
  14  Prefactor     .10000E-03    4.5943        .16322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.5697        4.0853        .98512E-04   -1.5089    
  16  Prefactor     .10000E-03    9.3090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .97852        .20952        .25997E-03   -.93754    
  18  Prefactor     .93328        .17181        .22489E-03   -.94988    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.80425e-10
Minuit parameter uncertainties:
  1  4.18702
  2  7.78983e-05
  3  1.04334
  4  0.676236
  5  3.46061e-05
  6  0.00013605
  7  27.2696
  8  12.6647
  9  1.70315e-06
  10  2.52622e-05
  11  8.91064e-05
  12  8.97832
  13  1.43591
  14  2.56191e-05
  15  4.08546
  16  8.19764e-05
  17  0.209692
  18  0.171908
Done.

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

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  1.000e-04  3.461e-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:  9.333e-01  1.719e-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:  9.785e-01  2.097e-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: 5.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/682457/likelihoodResults_381369601_381628801_4FGL_J1008.0+0620_daily_bin548.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) = 6206.78239823
delta logL = -0.000899816296624

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6206.78149842
delta logL = -7.62520357966e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1894       1.0000          .0000       10.000    
     3 'Normalizat'    .97852       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93329       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=   6206.781     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      198 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    509.56        .90712E-02** at limit **
   2  Index         2.1893        8.6274        .50000        .11364E-06
   3  Normalizat    .97852        .50494E-01    .45897E-01   -.76285E-05
   4  Prefactor     .93328        .42942E-01    .45428E-01    .19474E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.18926
  Normalizat = 0.978517
  Prefactor  = 0.933279
 **********
 **   18 **HESSE 
 **********

 FCN=   6206.781     FROM HESSE     STATUS=OK            33 CALLS      231 TOTAL
                     EDM=   .99E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.7711        .17674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1893        5.9716        .50000       -.59698    
   3  Normalizat    .97852        .19970        .25997E-03   -.93754    
   4  Prefactor     .93328        .17008        .11244E-02   -.94988    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.86618e-13
Minuit parameter uncertainties:
  1  1.82348e-06
  2  5.32957
  3  0.199857
  4  0.170176
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/682457': 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) = 6206.78149841
delta logL = 1.90993887372e-11

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  1.000e-04  1.823e-06  1.000e-04  1.000e+04 ( 1.000e-13)
201        Index:  2.189e+00  5.330e+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:  9.333e-01  1.702e-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:  9.785e-01  1.999e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/682457/cmap_HighResolution_381369601_381628801_4FGL_J1008.0+0620_daily_bin548.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.34e-03', job_status='DONE', photon_flux_upper_limit='5.70e-08', time_completed='2021-09-01 11:23:20.115795', job_id='682457', GAL2='0.93', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1630520600.12', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.91e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='548' AND source_name='4FGL J1008.0+0620' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 11:23:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0293>
Subject: Job 682457: <4FGL_J1008.0+0620_daily_bin548> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1008.0+0620_daily_bin548 152.014 6.3475 381369601 381628801 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 :                                   526.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             227.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   732 sec.
    Turnaround time :                            734 sec.

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

