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


Performing analysis on: 4FGL_J0806.5+4503_daily_bin654
RA = 121.628, Dec = 45.0605
tmin = 408844801, tmax = 409104001
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='153240', job_status='RUN', time_executed='2021-08-29 03:19:30.633363', time_epoch_executed='1630232370.63' WHERE source_name='4FGL J0806.5+4503' and cadence='daily' and bin_id='654'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/153240

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/153240/ft1_4FGL_J0806.5+4503_daily_bin654.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/153240/ft2_4FGL_J0806.5+4503_daily_bin654.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/153240/ft1_4FGL_J0806.5+4503_daily_bin654.fits outfile=/scratch/kocevski/153240/ft1_filteredMKT_4FGL_J0806.5+4503_daily_bin654.fits ra=121.628 dec=45.0605 rad=12.0 tmin=408844801.0 tmax=409104001.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 4.78
user 4.13
sys 0.47

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/153240/ft1_filtered_4FGL_J0806.5+4503_daily_bin654.fits" evtable="EVENTS" scfile=/scratch/kocevski/153240/ft2_4FGL_J0806.5+4503_daily_bin654.fits sctable="SC_DATA" outfile=/scratch/kocevski/153240/ltcube_408844801_409104001_4FGL_J0806.5+4503_daily_bin654.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/153240/ft2_4FGL_J0806.5+4503_daily_bin654.fits
.....................!
real 11.74
user 11.07
sys 0.61

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/153240/ft1_filtered_4FGL_J0806.5+4503_daily_bin654.fits evtable="EVENTS" scfile=/scratch/kocevski/153240/ft2_4FGL_J0806.5+4503_daily_bin654.fits sctable="SC_DATA" expcube=/scratch/kocevski/153240/ltcube_408844801_409104001_4FGL_J0806.5+4503_daily_bin654.fits outfile=/scratch/kocevski/153240/expmap_408844801_409104001_4FGL_J0806.5+4503_daily_bin654.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/153240/ltcube_408844801_409104001_4FGL_J0806.5+4503_daily_bin654.fits
.....................!
real 190.19
user 185.22
sys 4.59

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/153240/ft1_filtered_4FGL_J0806.5+4503_daily_bin654.fits scfile=/scratch/kocevski/153240/ft2_4FGL_J0806.5+4503_daily_bin654.fits outfile=/scratch/kocevski/153240/cmap_408844801_409104001_4FGL_J0806.5+4503_daily_bin654.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 0.82
user 0.35
sys 0.43

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/153240/ft1_filtered_4FGL_J0806.5+4503_daily_bin654.fits scfile=/scratch/kocevski/153240/ft2_4FGL_J0806.5+4503_daily_bin654.fits outfile=/scratch/kocevski/153240/cmap_HighResolution_408844801_409104001_4FGL_J0806.5+4503_daily_bin654.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 0.79
user 0.36
sys 0.42

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/153240/ft1_filtered_4FGL_J0806.5+4503_daily_bin654.fits', '/scratch/kocevski/153240/ft2_4FGL_J0806.5+4503_daily_bin654.fits', expMap='/scratch/kocevski/153240/expmap_408844801_409104001_4FGL_J0806.5+4503_daily_bin654.fits', expCube='/scratch/kocevski/153240/ltcube_408844801_409104001_4FGL_J0806.5+4503_daily_bin654.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/153240/Model_4FGL_J0806.5+4503_daily_bin654.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/153240/ft1_filtered_4FGL_J0806.5+4503_daily_bin654.fits
Spacecraft file(s): /scratch/kocevski/153240/ft2_4FGL_J0806.5+4503_daily_bin654.fits
Exposure map: /scratch/kocevski/153240/expmap_408844801_409104001_4FGL_J0806.5+4503_daily_bin654.fits
Exposure cube: /scratch/kocevski/153240/ltcube_408844801_409104001_4FGL_J0806.5+4503_daily_bin654.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/153240/Model_4FGL_J0806.5+4503_daily_bin654.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) = 1710.38233654

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.4855       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10248E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.5016       1.0000         .10000E-03   10000.    
    12 'Prefactor '    96.963       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.7949       1.0000         .10000E-03   10000.    
    14 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.0125       1.0000         .10000E-03   10000.    
    16 'norm      '    .87430       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10892E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    43.074       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .19427E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    38.864       1.0000         .10000E-03   10000.    
    23 'norm      '    .10425E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.4786       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.4983       1.0000         .10000E-03   10000.    
    26 'Prefactor '    96.935       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10416E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .86459       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .89739       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=   1710.356     FROM MIGRAD    STATUS=CONVERGED    710 CALLS     3644 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    12.371        .21687E-05** at limit **
   2  Prefactor     .10000E-03    15.633        .13813E-05** at limit **
   3  Prefactor     .10000E-03    65.120       -.15291E-04** at limit **
   4  norm          .10000E-03    7.2308       -.62920E-07** at limit **
   5  Prefactor     6.4756        24.571       -.42772E-05   -.22301E-04
   6  Prefactor     .10000E-03    70.424        .71687E-06** at limit **
   7  norm          .10000E-03    1.3841       -.46629E-07** at limit **
   8  Prefactor     .10000E-03    34.842       -.25164E-05** at limit **
   9  Prefactor     .10000E-03    30.629        .95898E-05** at limit **
  10  norm          .10000E-03    12.874       -.39570E-05** at limit **
  11  Prefactor     9.5034        24.823        .14193E-04    .30213E-05
  12  Prefactor     96.896        137.18       -.62076E-04   -.62397E-07
  13  Prefactor     4.8027        12.627        .18284E-05   -.47291E-04
  14  norm          .10000E-03    5.5433       -.28800E-07** at limit **
  15  norm          2.0107        4.8942       -.37520E-06   -.79477E-04
  16  norm          .87513        .88632        .72461E-06    .10587E-02
  17  Prefactor     .10000E-03    23.532       -.45935E-05** at limit **
  18  Prefactor     .10000E-03    8.5259       -.56016E-07** at limit **
  19  Prefactor     .10000E-03    2.5424        .19180E-06** at limit **
  20  Prefactor     43.010        54.492       -.52939E-04    .71042E-05
  21  Prefactor     .10001E-03    16.393        .11170E-05** at limit **
  22  Prefactor     38.905        39.511        .24603E-04    .16042E-03
  23  norm          .10000E-03    15.120        .24955E-05** at limit **
  24  norm          2.4318        75.280       -.56760E-04   -.16255E-03
  25  Prefactor     1.4986        7.2935       -.14047E-05   -.23060E-03
  26  Prefactor     97.011        116.54        .69856E-04    .48848E-04
  27  Prefactor     .10000E-03    126.40        .37169E-04** at limit **
  28  Normalizat    .86346        .37631        .15421E-04   -.29663E-04
  29  Prefactor     .89829        .25179       -.13480E-05    .23721E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.47564
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 9.50341
  Prefactor  = 96.8963
  Prefactor  = 4.8027
  norm       = 0.0001
  norm       = 2.01066
  norm       = 0.875129
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.0095
  Prefactor  = 0.000100008
  Prefactor  = 38.9048
  norm       = 0.0001
  norm       = 2.43175
  Prefactor  = 1.49865
  Prefactor  = 97.0113
  Prefactor  = 0.0001
  Normalizat = 0.863463
  Prefactor  = 0.898293
 **********
 **   18 **HESSE 
 **********

 FCN=   1710.356     FROM HESSE     STATUS=OK           543 CALLS     4187 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.397        .14208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.821        .15970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    65.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    7.2337        .10863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.4756        24.578        .15759E-03   -1.5199    
   6  Prefactor     .10000E-03    70.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.3888        .47519E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    34.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    30.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    13.225        .28966E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.5034        24.735        .13001E-03   -1.5091    
  12  Prefactor     96.896        136.88        .20410E-03   -1.3736    
  13  Prefactor     4.8027        12.612        .18373E-03   -1.5270    
  14  norm          .10000E-03    5.5437        .95106E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.0107        4.8577        .13892E-03   -1.5424    
  16  norm          .87513        .89497        .37440E-04   -1.5521    
  17  Prefactor     .10000E-03    23.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.5261        .11796E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.5492        .64370E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     43.010        54.413        .61083E-04   -1.4395    
  21  Prefactor     .10001E-03    16.437        .16356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     38.905        39.372        .32147E-03   -1.4460    
  23  norm          .10000E-03    15.149        .15704E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.4318        75.123        .25969E-03   -1.5396    
  25  Prefactor     1.4986        7.2429        .21445E-03   -1.5463    
  26  Prefactor     97.011        116.61        .20413E-03   -1.3735    
  27  Prefactor     .10000E-03    126.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .86346        .44241        .29842E-03   -.97756    
  29  Prefactor     .89829        .29759        .20427E-03   -.96201    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.93403e-09
Minuit parameter uncertainties:
  1  3.47955e-05
  2  9.684e-05
  3  0.000161751
  4  7.01339e-06
  5  24.6165
  6  7.3965e-05
  7  4.87343e-06
  8  2.64731e-05
  9  1.26843e-05
  10  0.000180543
  11  24.7617
  12  137.332
  13  12.6187
  14  1.29035e-06
  15  4.85868
  16  0.89498
  17  0.000445016
  18  7.23576e-06
  19  2.8226e-05
  20  54.4757
  21  0.000741139
  22  39.398
  23  4.20178e-05
  24  27.0685
  25  6.59034
  26  116.888
  27  0.00029878
  28  0.444278
  29  0.298126
Done.

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

Extracting fit parameters...

4FGL J0806.5+4503
   Spectrum: PowerLaw
282    Prefactor:  9.690e+01  1.373e+02  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:  8.983e-01  2.981e-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:  8.635e-01  4.443e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/153240/likelihoodResults_408844801_409104001_4FGL_J0806.5+4503_daily_bin654.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) = 1710.18281498
delta logL = 0.173625272164

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1710.17969582
delta logL = 0.176744435843

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    57.932       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2384       1.0000          .0000       10.000    
     3 'Normalizat'    .83726       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90972       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=   1710.180     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      293 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     57.785        115.96        .26354E-03   -.43559E-04
   2  Index         3.2343        1.2499        .53874E-02    .11776E-04
   3  Normalizat    .83904        .42188        .30206E-03   -.16118E-04
   4  Prefactor     .90933        .29311        .20308E-03   -.15465E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 57.7849
  Index      = 3.23428
  Normalizat = 0.839043
  Prefactor  = 0.909328
 **********
 **   18 **HESSE 
 **********

 FCN=   1710.180     FROM HESSE     STATUS=OK            25 CALLS      318 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     57.785        106.40        .10542E-04   -1.4186    
   2  Index         3.2343        1.1479        .21550E-03   -.36093    
   3  Normalizat    .83904        .42235        .12082E-04   -.98636    
   4  Prefactor     .90933        .29336        .81233E-05   -.95816    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.74521e-11
Minuit parameter uncertainties:
  1  106.754
  2  1.15979
  3  0.424019
  4  0.293875
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/153240': 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) = 1710.1796558
delta logL = 0.176784454982

Extracting fit parameters...

4FGL J0806.5+4503
   Spectrum: PowerLaw
282    Prefactor:  5.778e+01  1.068e+02  1.000e-04  1.000e+04 ( 1.000e-13)
283        Index:  3.234e+00  1.160e+00  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:  9.093e-01  2.939e-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:  8.390e-01  4.240e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.27
Ra Dec: 121.628 45.060
Photon Index (Free Index): 3.23 +/- 1.16
Photon Flux (Free Index): 1.34e-07 +/- 1.56e-07
Energy Flux (Free Index): 2.43e-05 +/- 2.78e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/153240/cmap_HighResolution_408844801_409104001_4FGL_J0806.5+4503_daily_bin654.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.09e-02', comment='SUCCESS', energy_flux2='2.43e-05', dlogl='1.77e-01', photon_flux2='1.34e-07', job_status='DONE', time_completed='2021-08-29 03:27:31.170894', photon_index_error2='1.16', photon_index2='3.23', ts='0.89', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='3.94e-07', energy_flux_error2='2.78e-05', EG='0.86', time_epoch_completed='1630232851.17', return_code='0', job_id='153240', GAL2='0.91', EG2='0.84', return_code2='0', photon_flux_error2='1.56e-07', ts2='1.27', photon_index='2.61' WHERE bin_id='654' AND source_name='4FGL J0806.5+4503' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 03:27:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 153240: <4FGL_J0806.5+4503_daily_bin654> in cluster <slac> Done

Job <4FGL_J0806.5+4503_daily_bin654> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Aug 29 03:15:40 2021
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 03:15:41 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:15:41 2021
Terminated at Sun Aug 29 03:27:32 2021
Results reported at Sun Aug 29 03:27:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0806.5+4503_daily_bin654 121.628 45.0605 408844801 409104001 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 :                                   483.29 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             230.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   710 sec.
    Turnaround time :                            712 sec.

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

