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


Performing analysis on: 4FGL_J1008.0+0620_daily_bin188
RA = 152.014, Dec = 6.3475
tmin = 288057601, tmax = 288316801
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='680640', job_status='RUN', time_executed='2021-09-01 11:10:17.355878', time_epoch_executed='1630519817.36' WHERE source_name='4FGL J1008.0+0620' and cadence='daily' and bin_id='188'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/680640

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/680640/ft1_4FGL_J1008.0+0620_daily_bin188.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/680640/ft2_4FGL_J1008.0+0620_daily_bin188.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/680640/ft1_4FGL_J1008.0+0620_daily_bin188.fits outfile=/scratch/kocevski/680640/ft1_filteredMKT_4FGL_J1008.0+0620_daily_bin188.fits ra=152.014 dec=6.3475 rad=12.0 tmin=288057601.0 tmax=288316801.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.72
user 3.38
sys 0.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/680640/ft1_filtered_4FGL_J1008.0+0620_daily_bin188.fits" evtable="EVENTS" scfile=/scratch/kocevski/680640/ft2_4FGL_J1008.0+0620_daily_bin188.fits sctable="SC_DATA" outfile=/scratch/kocevski/680640/ltcube_288057601_288316801_4FGL_J1008.0+0620_daily_bin188.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/680640/ft2_4FGL_J1008.0+0620_daily_bin188.fits
.....................!
real 17.11
user 16.55
sys 0.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/680640/ft1_filtered_4FGL_J1008.0+0620_daily_bin188.fits evtable="EVENTS" scfile=/scratch/kocevski/680640/ft2_4FGL_J1008.0+0620_daily_bin188.fits sctable="SC_DATA" expcube=/scratch/kocevski/680640/ltcube_288057601_288316801_4FGL_J1008.0+0620_daily_bin188.fits outfile=/scratch/kocevski/680640/expmap_288057601_288316801_4FGL_J1008.0+0620_daily_bin188.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/680640/ltcube_288057601_288316801_4FGL_J1008.0+0620_daily_bin188.fits
.....................!
real 191.71
user 186.16
sys 5.17

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/680640/ft1_filtered_4FGL_J1008.0+0620_daily_bin188.fits scfile=/scratch/kocevski/680640/ft2_4FGL_J1008.0+0620_daily_bin188.fits outfile=/scratch/kocevski/680640/cmap_288057601_288316801_4FGL_J1008.0+0620_daily_bin188.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.57
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4836       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .84595       1.0000         .10000E-03   10000.    
     3 'norm      '    .58918E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.1560       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    38.832       1.0000         .10000E-03   10000.    
     8 'norm      '    .10083E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.203       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .15086E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11972E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.5635       1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.0459       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .93870       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5534.546     FROM MIGRAD    STATUS=FAILED       660 CALLS     2413 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4839        4.5847        .15485E-03    .81199E-04
   2  Prefactor     .83893        49.098        .47742E-02    .12497E-02
   3  norm          .37969E-02    3.0053        .18099E-01    .81588E-03
   4  norm          .10000E-03    .22349        .61851E-03** at limit **
   5  Prefactor     3.1505        9.9343        .22816E-03    .59744E-04
   6  Prefactor     .10000E-03    55.454        .18142E-02** at limit **
   7  Prefactor     38.837        39.954        .64320E-04   -.68933E-05
   8  norm          .10000E-03    7.5612        .18142E-02** at limit **
   9  Prefactor     12.186        10.968        .11467E-03    .19937E-03
  10  Prefactor     .10001E-03    78.270        .15731    ** at limit **
  11  Prefactor     .10000E-03    83.440        .18142E-02** at limit **
  12  Prefactor     .10000E-03    17.733        .18142E-02** at limit **
  13  norm          .10000E-03    .69779        .11863E-03** at limit **
  14  Prefactor     .10000E-03    7.8883        .36285E-03** at limit **
  15  Prefactor     .10000E-03    1.1311        .76886E-03** at limit **
  16  Prefactor     5.5658        8.0644        .17033E-03    .61873E-04
  17  Normalizat    1.0464        .22734        .24608E-03   -.10926E-03
  18  Prefactor     .93826        .17449        .21584E-03    .40031E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5534.546     FROM SIMPLEX   STATUS=PROGRESS     862 CALLS     3275 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4839        4.5847        .93013E-07   -1.5284    
   2  Prefactor     .83890        49.098        .57563E-05   -1.5525    
   3  norm          .36719E-02    3.0053        .82926E-05   -1.5696    
   4  norm          .10000E-03    .22349        .95677E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.1505        9.9343        .51887E-07   -1.5353    
   6  Prefactor     .10000E-03    55.454        .44197E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     38.837        39.954        .48813E-07   -1.4461    
   8  norm          .10000E-03    7.5612        .16307E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.186        10.968        .51084E-07   -1.5010    
  10  Prefactor     .10001E-03    78.270        .50537E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    83.440        .13264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    17.733        .18956E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .69779        .35940E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.8883        .14699E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.1311        .30790E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.5658        8.0644        .51812E-07   -1.5236    
  17  Normalizat    1.0464        .22734        .31016E-07   -.91492    
  18  Prefactor     .93826        .17449        .32085E-07   -.94817    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5534.546     FROM MIGRAD    STATUS=CONVERGED    252 CALLS     3527 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4839        4.5830        .61941E-05   -.37075E-04
   2  Prefactor     .83887        49.236        .95483E-03   -.10656E-04
   3  norm          .36694E-02    1.5005        .27102E-01    .24592E-03
   4  norm          .10000E-03    .22359        .12370E-03** at limit **
   5  Prefactor     3.1505        9.9317        .91262E-05    .54562E-04
   6  Prefactor     .10000E-03    55.491        .36285E-03** at limit **
   7  Prefactor     38.837        39.932        .25728E-05    .88376E-06
   8  norm          .10000E-03    7.5614        .36285E-03** at limit **
   9  Prefactor     12.186        10.969        .45869E-05    .15268E-03
  10  Prefactor     .10000E-03    82.667        .15195    ** at limit **
  11  Prefactor     .10000E-03    83.449        .36285E-03** at limit **
  12  Prefactor     .10000E-03    17.737        .36285E-03** at limit **
  13  norm          .10000E-03    .69779        .23725E-04** at limit **
  14  Prefactor     .10000E-03    7.8886        .72569E-04** at limit **
  15  Prefactor     .10000E-03    1.1312        .15377E-03** at limit **
  16  Prefactor     5.5657        8.0591        .68131E-05    .25697E-04
  17  Normalizat    1.0464        .22627        .98433E-05    .44813E-04
  18  Prefactor     .93826        .17464        .86335E-05    .44245E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.48386
  Prefactor  = 0.838865
  norm       = 0.00366942
  norm       = 0.0001
  Prefactor  = 3.15047
  Prefactor  = 0.0001
  Prefactor  = 38.8372
  norm       = 0.0001
  Prefactor  = 12.1862
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.56569
  Normalizat = 1.0464
  Prefactor  = 0.938261
 **********
 **   18 **HESSE 
 **********

 FCN=   5534.546     FROM HESSE     STATUS=OK           248 CALLS     3775 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4839        4.5816        .12388E-05   -1.5284    
   2  Prefactor     .83887        49.164        .38193E-04   -1.5525    
   3  norm          .36694E-02    2.0324        .22605E-01   -1.5696    
   4  norm          .10000E-03    .22359        .24740E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.1505        9.9280        .18252E-05   -1.5353    
   6  Prefactor     .10000E-03    55.492        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     38.837        39.395        .51456E-06   -1.4461    
   8  norm          .10000E-03    7.5614        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.186        10.970        .91738E-06   -1.5010    
  10  Prefactor     .10000E-03    80.865        .15401       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    83.450        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    17.737        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .69779        .47450E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.8885        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.1312        .30754E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.5657        8.0573        .13626E-05   -1.5236    
  17  Normalizat    1.0464        .22615        .19687E-05   -.91492    
  18  Prefactor     .93826        .17441        .17267E-05   -.94817    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10572e-10
Minuit parameter uncertainties:
  1  4.58193
  2  12.8543
  3  0.170354
  4  6.50746e-08
  5  9.9332
  6  1.97329e-05
  7  39.4217
  8  1.1006e-05
  9  10.9719
  10  0.000346784
  11  3.78154e-06
  12  6.52451e-06
  13  4.50993e-07
  14  5.35518e-06
  15  1.8161e-06
  16  8.05888
  17  0.226359
  18  0.174514
Done.

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

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  3.150e+00  9.933e+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.383e-01  1.745e-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.046e+00  2.264e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/680640/likelihoodResults_288057601_288316801_4FGL_J1008.0+0620_daily_bin188.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) = 5534.4241267
delta logL = 0.121666348041

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5534.40476347
delta logL = 0.141029572666

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8457       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1267       1.0000          .0000       10.000    
     3 'Normalizat'    1.0214       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94975       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5534.405     FROM MIGRAD    STATUS=FAILED        80 CALLS      248 TOTAL
                     EDM=   .93E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8448        238.96        .16209E-03   -.23924E-02
   2  Index         3.1272        6.0797        .94298E-02   -.37879E-03
   3  Normalizat    1.0214        .33133        .24871E-03   -.87894E-03
   4  Prefactor     .94979        .23597        .21463E-03   -.89877E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5534.405     FROM SIMPLEX   STATUS=UNCHANGED     93 CALLS      341 TOTAL
                     EDM=   .66E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8448        238.96        .20245E-03   -.23924E-02
   2  Index         3.1272        6.0797        .20097E-02   -.37879E-03
   3  Normalizat    1.0214        .33133        .12677E-03   -.87894E-03
   4  Prefactor     .94979        .23597        .11856E-03   -.89877E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5534.405     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      374 TOTAL
                     EDM=   .25E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8446        6.6372        .64836E-05   -.12976E-04
   2  Index         3.1273        1.9822        .37719E-03   -.99463E-06
   3  Normalizat    1.0214        .21625        .49742E-04    .40820E-04
   4  Prefactor     .94979        .17536        .42927E-04    .41315E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.84457
  Index      = 3.12733
  Normalizat = 1.02135
  Prefactor  = 0.949793
 **********
 **   18 **HESSE 
 **********

 FCN=   5534.405     FROM HESSE     STATUS=OK            23 CALLS      397 TOTAL
                     EDM=   .25E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8446        6.5296        .12967E-05   -1.5436    
   2  Index         3.1273        1.9514        .15088E-04   -.38389    
   3  Normalizat    1.0214        .21616        .99484E-05   -.92319    
   4  Prefactor     .94979        .17533        .85853E-05   -.94422    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47588e-12
Minuit parameter uncertainties:
  1  6.53214
  2  2.01417
  3  0.216341
  4  0.17543
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/680640': 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) = 5534.40476329
delta logL = 0.141029753917

Extracting fit parameters...

4FGL J1008.0+0620
   Spectrum: PowerLaw
200    Prefactor:  1.845e+00  6.532e+00  1.000e-04  1.000e+04 ( 1.000e-13)
201        Index:  3.127e+00  2.014e+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.498e-01  1.754e-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.021e+00  2.163e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
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/680640/cmap_HighResolution_288057601_288316801_4FGL_J1008.0+0620_daily_bin188.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.84e-03', job_status='DONE', photon_flux_upper_limit='7.68e-08', time_completed='2021-09-01 11:20:33.895543', job_id='680640', GAL2='0.95', fit_tolerance='1e-08', EG2='1.02', EG='1.05', time_epoch_completed='1630520433.9', return_code2='0', ts='0.13', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='1.41e-01', ts2='0.42', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='188' AND source_name='4FGL J1008.0+0620' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 11:20:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 680640: <4FGL_J1008.0+0620_daily_bin188> in cluster <slac> Done

Job <4FGL_J1008.0+0620_daily_bin188> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 11:05:46 2021
Job was executed on host(s) <bullet0058>, 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:20:34 2021
Results reported at Wed Sep  1 11:20:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1008.0+0620_daily_bin188 152.014 6.3475 288057601 288316801 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 :                                   615.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             254.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   886 sec.
    Turnaround time :                            888 sec.

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

