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


Performing analysis on: 4FGL_J0806.5+4503_daily_bin1512
RA = 121.628, Dec = 45.0605
tmin = 631238401, tmax = 631497601
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='157727', job_status='RUN', time_executed='2021-08-29 03:35:24.943245', time_epoch_executed='1630233324.94' WHERE source_name='4FGL J0806.5+4503' and cadence='daily' and bin_id='1512'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/157727

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/157727/ft1_4FGL_J0806.5+4503_daily_bin1512.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/157727/ft2_4FGL_J0806.5+4503_daily_bin1512.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/157727/ft1_4FGL_J0806.5+4503_daily_bin1512.fits outfile=/scratch/kocevski/157727/ft1_filteredMKT_4FGL_J0806.5+4503_daily_bin1512.fits ra=121.628 dec=45.0605 rad=12.0 tmin=631238401.0 tmax=631497601.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 10.54
user 2.51
sys 7.98

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/157727/ft2_4FGL_J0806.5+4503_daily_bin1512.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/157727/ft2_4FGL_J0806.5+4503_daily_bin1512.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/157727/ft1_filteredMKT_4FGL_J0806.5+4503_daily_bin1512.fits evtable="EVENTS" outfile="/scratch/kocevski/157727/ft1_filtered_4FGL_J0806.5+4503_daily_bin1512.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 9.20
user 0.33
sys 8.83

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/157727/ft1_filtered_4FGL_J0806.5+4503_daily_bin1512.fits" evtable="EVENTS" scfile=/scratch/kocevski/157727/ft2_4FGL_J0806.5+4503_daily_bin1512.fits sctable="SC_DATA" outfile=/scratch/kocevski/157727/ltcube_631238401_631497601_4FGL_J0806.5+4503_daily_bin1512.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/157727/ft2_4FGL_J0806.5+4503_daily_bin1512.fits
.....................!
real 23.67
user 14.44
sys 9.12

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/157727/ft1_filtered_4FGL_J0806.5+4503_daily_bin1512.fits evtable="EVENTS" scfile=/scratch/kocevski/157727/ft2_4FGL_J0806.5+4503_daily_bin1512.fits sctable="SC_DATA" expcube=/scratch/kocevski/157727/ltcube_631238401_631497601_4FGL_J0806.5+4503_daily_bin1512.fits outfile=/scratch/kocevski/157727/expmap_631238401_631497601_4FGL_J0806.5+4503_daily_bin1512.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/157727/ltcube_631238401_631497601_4FGL_J0806.5+4503_daily_bin1512.fits
.....................!
real 200.26
user 184.64
sys 14.73

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 207 point sources and 0 extended sources

Setting source of interest to:
4FGL J0806.5+4503 @ 121.628 45.0605

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/157727/ft1_filtered_4FGL_J0806.5+4503_daily_bin1512.fits scfile=/scratch/kocevski/157727/ft2_4FGL_J0806.5+4503_daily_bin1512.fits outfile=/scratch/kocevski/157727/cmap_631238401_631497601_4FGL_J0806.5+4503_daily_bin1512.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=121.628 yref=45.0605 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 7.42
user 0.38
sys 7.00

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/157727/ft1_filtered_4FGL_J0806.5+4503_daily_bin1512.fits scfile=/scratch/kocevski/157727/ft2_4FGL_J0806.5+4503_daily_bin1512.fits outfile=/scratch/kocevski/157727/cmap_HighResolution_631238401_631497601_4FGL_J0806.5+4503_daily_bin1512.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=121.628 yref=45.0605 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 8.19
user 0.38
sys 7.78

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/157727/ft1_filtered_4FGL_J0806.5+4503_daily_bin1512.fits evtable="EVENTS" scfile=/scratch/kocevski/157727/ft2_4FGL_J0806.5+4503_daily_bin1512.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/157727/Model_4FGL_J0806.5+4503_daily_bin1512.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/157727/ft1_filtered_4FGL_J0806.5+4503_daily_bin1512.fits......................!
real 31.66
user 20.11
sys 11.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/157727/ft1_filtered_4FGL_J0806.5+4503_daily_bin1512.fits', '/scratch/kocevski/157727/ft2_4FGL_J0806.5+4503_daily_bin1512.fits', expMap='/scratch/kocevski/157727/expmap_631238401_631497601_4FGL_J0806.5+4503_daily_bin1512.fits', expCube='/scratch/kocevski/157727/ltcube_631238401_631497601_4FGL_J0806.5+4503_daily_bin1512.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/157727/Model_4FGL_J0806.5+4503_daily_bin1512.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0806.5+4503'

4FGL J0806.5+4503
   Spectrum: PowerLaw
282    Prefactor:  6.264e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  2.607e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  6.910e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/157727/ft1_filtered_4FGL_J0806.5+4503_daily_bin1512.fits
Spacecraft file(s): /scratch/kocevski/157727/ft2_4FGL_J0806.5+4503_daily_bin1512.fits
Exposure map: /scratch/kocevski/157727/expmap_631238401_631497601_4FGL_J0806.5+4503_daily_bin1512.fits
Exposure cube: /scratch/kocevski/157727/ltcube_631238401_631497601_4FGL_J0806.5+4503_daily_bin1512.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/157727/Model_4FGL_J0806.5+4503_daily_bin1512.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 1045.78981695

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10374E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12166E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12039E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10371E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.6347       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.346       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.461       1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.441       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.2509       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.5392       1.0000         .10000E-03   10000.    
    26 'Prefactor '    37.475       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .12495E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .28140       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0744       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1045.745     FROM MIGRAD    STATUS=CONVERGED    717 CALLS     3665 TOTAL
                     EDM=   .72E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    311.63       -.86256E-04** at limit **
   2  Prefactor     .10000E-03    234.01        .46717E-04** at limit **
   3  Prefactor     .10000E-03    167.32        .47470E-04** at limit **
   4  norm          .10000E-03    206.40        .68120E-04** at limit **
   5  Prefactor     .10000E-03    869.38       -.94083E-03** at limit **
   6  Prefactor     .10000E-03    57.579       -.11106E-04** at limit **
   7  norm          .10000E-03    1.8805        .14034E-06** at limit **
   8  Prefactor     .10000E-03    13.750       -.44694E-05** at limit **
   9  Prefactor     .10000E-03    39.672       -.19642E-04** at limit **
  10  norm          5.6341        7.3135        .30698E-06    .42434E-04
  11  Prefactor     .10000E-03    14.368        .15788E-05** at limit **
  12  Prefactor     .10000E-03    62.323       -.75373E-04** at limit **
  13  Prefactor     .10000E-03    11.340        .42738E-06** at limit **
  14  norm          .10000E-03    2.7293       -.63921E-07** at limit **
  15  norm          .10000E-03    1.5559       -.13484E-06** at limit **
  16  norm          .10000E-03    .75070        .21045E-07** at limit **
  17  Prefactor     25.344        78.780       -.53635E-06   -.37574E-04
  18  Prefactor     15.460        12.683        .84910E-06   -.50323E-04
  19  Prefactor     14.438        20.448       -.60927E-07   -.10167E-03
  20  Prefactor     .10000E-03    50.239        .81814E-04** at limit **
  21  Prefactor     4.2316        59.402        .10617E-05   -.59730E-04
  22  Prefactor     .10000E-03    13.737        .27982E-05** at limit **
  23  norm          .10000E-03    8.5099       -.38305E-06** at limit **
  24  norm          .10000E-03    8.3961        .34364E-06** at limit **
  25  Prefactor     2.5395        5.7344       -.23558E-06   -.24397E-03
  26  Prefactor     37.468        44.435       -.22206E-05   -.79952E-04
  27  Prefactor     .10000E-03    244.91        .32656E-04** at limit **
  28  Normalizat    .28127        .55765        .82661E-06   -.59719E-04
  29  Prefactor     1.0746        .40290       -.11014E-05   -.87555E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.6341
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 25.3435
  Prefactor  = 15.4596
  Prefactor  = 14.4378
  Prefactor  = 0.0001
  Prefactor  = 4.23162
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.53948
  Prefactor  = 37.468
  Prefactor  = 0.0001
  Normalizat = 0.281273
  Prefactor  = 1.07463
 **********
 **   18 **HESSE 
 **********

 FCN=   1045.745     FROM HESSE     STATUS=OK           537 CALLS     4202 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    311.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    234.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    167.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    206.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    869.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    57.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.4702        .86004E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.750        .11715E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    39.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.6341        7.3209        .96500E-04   -1.5233    
  11  Prefactor     .10000E-03    14.369        .11976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    62.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.345        .10636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.7319        .52177E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.5640        .39387E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .75638        .27282E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     25.344        78.815        .79569E-04   -1.4701    
  18  Prefactor     15.460        12.554        .95122E-04   -1.4921    
  19  Prefactor     14.438        20.479        .10540E-03   -1.4948    
  20  Prefactor     .10000E-03    50.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.2316        56.483        .19543E-03   -1.5297    
  22  Prefactor     .10000E-03    13.943        .11696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    8.5389        .92045E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    8.4400        .91394E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.5395        5.4310        .92568E-04   -1.5389    
  26  Prefactor     37.468        43.408        .65470E-04   -1.4483    
  27  Prefactor     .10000E-03    245.39        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .28127        .50574        .41804E-03   -1.2397    
  29  Prefactor     1.0746        .39353        .18975E-03   -.90281    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50925e-10
Minuit parameter uncertainties:
  1  2.03785e-06
  2  1.02387e-05
  3  2.31867e-07
  4  5.73535e-06
  5  0.000127965
  6  4.55555e-07
  7  2.72813e-05
  8  3.7384e-07
  9  3.83079e-06
  10  7.32205
  11  2.21363e-06
  12  5.92656e-06
  13  6.09251e-06
  14  8.48625e-07
  15  1.11159e-07
  16  5.60898e-08
  17  79.1416
  18  12.5556
  19  20.4888
  20  5.00281e-06
  21  30.9556
  22  4.38677e-06
  23  1.40095e-05
  24  2.24038e-05
  25  5.43204
  26  43.4449
  27  0.000533035
  28  0.514293
  29  0.394592
Done.

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

Extracting fit parameters...

4FGL J0806.5+4503
   Spectrum: PowerLaw
282    Prefactor:  1.000e-04  5.927e-06  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  2.607e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  6.910e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
659    Prefactor:  1.075e+00  3.946e-01  0.000e+00  1.000e+01 ( 1.000e+00)
660        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
661        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
658   Normalization:  2.813e-01  5.143e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 121.628 45.060
Photon Flux Upper Limit: 2.96e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.31e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/157727/likelihoodResults_631238401_631497601_4FGL_J0806.5+4503_daily_bin1512.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) = 1045.74544035
delta logL = -7.41163348721e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1045.74536698
delta logL = -7.46744490243e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10853E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1748       1.0000          .0000       10.000    
     3 'Normalizat'    .28130       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0746       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6620E+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=   1045.745     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      276 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10834E-03    55.991        .18142E-01** at limit **
   2  Index         3.0004        6.2726        .50000        .64255E-05
   3  Normalizat    .28128        .10960E-01    .41804E-03    .72679E-05
   4  Prefactor     1.0746        .95074E-02    .18975E-03   -.17866E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000108341
  Index      = 3.0004
  Normalizat = 0.281277
  Prefactor  = 1.07463
 **********
 **   18 **HESSE 
 **********

 FCN=   1045.745     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      305 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10834E-03    457.89        .20710E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.0004        8.2796        .50000       -.41143    
   3  Normalizat    .28128        .31853E-01    .16722E-04   -1.2397    
   4  Prefactor     1.0746        .27634E-01    .37950E-04   -.90282    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.03216e-08
Minuit parameter uncertainties:
  1  0.12456
  2  1087.04
  3  0.0318554
  4  0.0276341
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/157727': 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): 102
logL (Free Index) = 1045.74536669
delta logL = -4.58762769995e-07

Extracting fit parameters...

4FGL J0806.5+4503
   Spectrum: PowerLaw
282    Prefactor:  1.083e-04  1.246e-01  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  3.000e+00  1.087e+03  0.000e+00  1.000e+01 (-1.000e+00)
284        Scale:  6.910e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
659    Prefactor:  1.075e+00  2.763e-02  0.000e+00  1.000e+01 ( 1.000e+00)
660        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
661        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
658   Normalization:  2.813e-01  3.186e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 121.628 45.060

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/157727/cmap_HighResolution_631238401_631497601_4FGL_J0806.5+4503_daily_bin1512.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.31e-02', job_status='DONE', photon_flux_upper_limit='2.96e-07', time_completed='2021-08-29 03:44:16.110706', job_id='157727', GAL2='1.07', fit_tolerance='1e-08', EG2='0.28', EG='0.28', time_epoch_completed='1630233856.11', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='-4.59e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='1512' AND source_name='4FGL J0806.5+4503' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 03:44:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0130>
Subject: Job 157727: <4FGL_J0806.5+4503_daily_bin1512> in cluster <slac> Done

Job <4FGL_J0806.5+4503_daily_bin1512> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Aug 29 03:30:46 2021
Job was executed on host(s) <bullet0130>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 03:30:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 03:30:48 2021
Terminated at Sun Aug 29 03:44:18 2021
Results reported at Sun Aug 29 03:44:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0806.5+4503_daily_bin1512 121.628 45.0605 631238401 631497601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0806.5+4503 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   647.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             200.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   809 sec.
    Turnaround time :                            812 sec.

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

