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


Performing analysis on: 4FGL_J0809.8+5218_daily_bin1202
RA = 122.462, Dec = 52.3143
tmin = 550886401, tmax = 551145601
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='263163', job_status='RUN', time_executed='2021-08-29 09:35:58.340507', time_epoch_executed='1630254958.34' WHERE source_name='4FGL J0809.8+5218' and cadence='daily' and bin_id='1202'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/263163

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/263163/ft1_4FGL_J0809.8+5218_daily_bin1202.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/263163/ft2_4FGL_J0809.8+5218_daily_bin1202.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/263163/ft1_4FGL_J0809.8+5218_daily_bin1202.fits outfile=/scratch/kocevski/263163/ft1_filteredMKT_4FGL_J0809.8+5218_daily_bin1202.fits ra=122.462 dec=52.3143 rad=12.0 tmin=550886401.0 tmax=551145601.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.42
user 3.51
sys 0.88

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/263163/ft2_4FGL_J0809.8+5218_daily_bin1202.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/263163/ft2_4FGL_J0809.8+5218_daily_bin1202.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/263163/ft1_filteredMKT_4FGL_J0809.8+5218_daily_bin1202.fits evtable="EVENTS" outfile="/scratch/kocevski/263163/ft1_filtered_4FGL_J0809.8+5218_daily_bin1202.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 1.15
user 0.32
sys 0.81

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/263163/ft1_filtered_4FGL_J0809.8+5218_daily_bin1202.fits" evtable="EVENTS" scfile=/scratch/kocevski/263163/ft2_4FGL_J0809.8+5218_daily_bin1202.fits sctable="SC_DATA" outfile=/scratch/kocevski/263163/ltcube_550886401_551145601_4FGL_J0809.8+5218_daily_bin1202.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/263163/ft2_4FGL_J0809.8+5218_daily_bin1202.fits
.....................!
real 12.70
user 11.61
sys 1.05

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/263163/ft1_filtered_4FGL_J0809.8+5218_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/263163/ft2_4FGL_J0809.8+5218_daily_bin1202.fits sctable="SC_DATA" expcube=/scratch/kocevski/263163/ltcube_550886401_551145601_4FGL_J0809.8+5218_daily_bin1202.fits outfile=/scratch/kocevski/263163/expmap_550886401_551145601_4FGL_J0809.8+5218_daily_bin1202.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/263163/ltcube_550886401_551145601_4FGL_J0809.8+5218_daily_bin1202.fits
.....................!
real 191.26
user 185.09
sys 5.79

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

Setting source of interest to:
4FGL J0809.8+5218 @ 122.462 52.3143

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/263163/ft1_filtered_4FGL_J0809.8+5218_daily_bin1202.fits scfile=/scratch/kocevski/263163/ft2_4FGL_J0809.8+5218_daily_bin1202.fits outfile=/scratch/kocevski/263163/cmap_550886401_551145601_4FGL_J0809.8+5218_daily_bin1202.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=122.462 yref=52.3143 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 1.18
user 0.37
sys 0.80

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/263163/ft1_filtered_4FGL_J0809.8+5218_daily_bin1202.fits scfile=/scratch/kocevski/263163/ft2_4FGL_J0809.8+5218_daily_bin1202.fits outfile=/scratch/kocevski/263163/cmap_HighResolution_550886401_551145601_4FGL_J0809.8+5218_daily_bin1202.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=122.462 yref=52.3143 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 1.18
user 0.37
sys 0.80

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/263163/ft1_filtered_4FGL_J0809.8+5218_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/263163/ft2_4FGL_J0809.8+5218_daily_bin1202.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/263163/Model_4FGL_J0809.8+5218_daily_bin1202.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/263163/ft1_filtered_4FGL_J0809.8+5218_daily_bin1202.fits.....................!
real 35.01
user 32.77
sys 2.10

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/263163/ft1_filtered_4FGL_J0809.8+5218_daily_bin1202.fits', '/scratch/kocevski/263163/ft2_4FGL_J0809.8+5218_daily_bin1202.fits', expMap='/scratch/kocevski/263163/expmap_550886401_551145601_4FGL_J0809.8+5218_daily_bin1202.fits', expCube='/scratch/kocevski/263163/ltcube_550886401_551145601_4FGL_J0809.8+5218_daily_bin1202.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/263163/Model_4FGL_J0809.8+5218_daily_bin1202.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0809.8+5218'

4FGL J0809.8+5218
   Spectrum: LogParabola
330         norm:  2.044e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
331        alpha:  1.811e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
332         beta:  3.259e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
333           Eb:  1.346e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/263163/ft1_filtered_4FGL_J0809.8+5218_daily_bin1202.fits
Spacecraft file(s): /scratch/kocevski/263163/ft2_4FGL_J0809.8+5218_daily_bin1202.fits
Exposure map: /scratch/kocevski/263163/expmap_550886401_551145601_4FGL_J0809.8+5218_daily_bin1202.fits
Exposure cube: /scratch/kocevski/263163/ltcube_550886401_551145601_4FGL_J0809.8+5218_daily_bin1202.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/263163/Model_4FGL_J0809.8+5218_daily_bin1202.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) = 2459.9441588

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.6114       1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.2285       1.0000         .10000E-03   10000.    
     8 'Prefactor '    67.333       1.0000         .10000E-03   10000.    
     9 'Prefactor '    130.52       1.0000         .10000E-03   10000.    
    10 'norm      '    .10490E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.403       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    8.1672       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .47560       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10219E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.985       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.1648       1.0000         .10000E-03   10000.    
    22 'norm      '    1.2356       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.2503       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10370E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .11300E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .72450E-01   1.0000         .10000E-03   10000.    
    29 'norm      '    3.9837       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    40.894       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10213E-03   1.0000         .10000E-03   10000.    
    34 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    35 'Normalizat'    1.3209       1.0000         .10000E-01   10.000    
    36 'Prefactor '    .68064       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2459.893     FROM MIGRAD    STATUS=CONVERGED   1047 CALLS     5421 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.6051        11.120       -.22423E-06    .16116E-04
   2  norm          .10000E-03    6.0283        .30046E-07** at limit **
   3  Prefactor     .10000E-03    11.307       -.41108E-06** at limit **
   4  Prefactor     .10000E-03    12.814       -.27160E-05** at limit **
   5  Prefactor     .10000E-03    13.299       -.47215E-05** at limit **
   6  Prefactor     .10000E-03    181.48       -.21771E-05** at limit **
   7  norm          2.2219        32.904       -.23499E-05   -.76983E-04
   8  Prefactor     67.318        54.226       -.15067E-05   -.64708E-05
   9  Prefactor     130.49        79.469       -.12803E-04    .20817E-04
  10  norm          .10000E-03    1.0455        .53429E-07** at limit **
  11  Prefactor     19.398        35.216        .48630E-05    .22455E-04
  12  Prefactor     .10000E-03    19.573       -.34336E-05** at limit **
  13  norm          8.1655        9.3983       -.11143E-05   -.49424E-04
  14  Prefactor     .10000E-03    8.1234       -.44474E-06** at limit **
  15  norm          .46712        6.7227        .10541E-05   -.82986E-03
  16  Prefactor     .10000E-03    70.326       -.10085E-05** at limit **
  17  Prefactor     21.965        47.366        .11754E-05   -.22046E-04
  18  Prefactor     .10000E-03    7.7914        .88731E-07** at limit **
  19  norm          .10000E-03    13.510        .77272E-07** at limit **
  20  norm          .10000E-03    3.6361       -.99318E-07** at limit **
  21  Prefactor     6.1640        16.908       -.19027E-05   -.62763E-04
  22  norm          1.2355        .85863        .17589E-06    .72327E-03
  23  Prefactor     .10000E-03    14.188        .37271E-05** at limit **
  24  Prefactor     .10000E-03    12.335        .17868E-05** at limit **
  25  Prefactor     2.3838        210.95       -.66450E-04   -.72325E-05
  26  Prefactor     .10001E-03    39.449       -.22723E-05** at limit **
  27  Prefactor     .10000E-03    22.312        .53923E-05** at limit **
  28  norm          .10225E-03    18.020       -.63078E-06** at limit **
  29  norm          4.0442        14.919       -.28665E-05   -.79533E-04
  30  Prefactor     .10000E-03    12.546        .27876E-05** at limit **
  31  Prefactor     40.886        34.401        .21238E-06   -.17431E-04
  32  Prefactor     .10000E-03    1.6973        .69894E-08** at limit **
  33  Prefactor     .10000E-03    25.832       -.33254E-05** at limit **
  34  Prefactor     .10000E-03    40.780        .49193E-05** at limit **
  35  Normalizat    1.3211        .32096        .32548E-05    .42103E-04
  36  Prefactor     .68072        .22037        .24469E-05    .12023E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.60511
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.22194
  Prefactor  = 67.3183
  Prefactor  = 130.489
  norm       = 0.0001
  Prefactor  = 19.3978
  Prefactor  = 0.0001
  norm       = 8.16552
  Prefactor  = 0.0001
  norm       = 0.46712
  Prefactor  = 0.0001
  Prefactor  = 21.9645
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.16396
  norm       = 1.23551
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.38379
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  norm       = 0.000102249
  norm       = 4.04425
  Prefactor  = 0.0001
  Prefactor  = 40.8861
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.32112
  Prefactor  = 0.680719
 **********
 **   18 **HESSE 
 **********

 FCN=   2459.893     FROM HESSE     STATUS=OK           813 CALLS     6234 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.6051        11.116        .13660E-03   -1.5121    
   2  norm          .10000E-03    6.0629        .11890E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.308        .16292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.942        .17308E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.280        .17652E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    187.54        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.2219        33.067        .27541E-03   -1.5410    
   8  Prefactor     67.318        54.061        .48913E-04   -1.4065    
   9  Prefactor     130.49        79.288        .17622E-03   -1.3418    
  10  norm          .10000E-03    1.5248        .97657E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     19.398        35.167        .90926E-04   -1.4827    
  12  Prefactor     .10000E-03    19.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.1655        9.3876        .13830E-03   -1.5136    
  14  Prefactor     .10000E-03    8.1480        .13807E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .46712        13.245        .23111E-02   -1.5571    
  16  Prefactor     .10000E-03    70.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     21.965        47.254        .85425E-04   -1.4770    
  18  Prefactor     .10000E-03    7.8948        .13513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    14.009        .35566E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.7364        .18453E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.1640        16.908        .16169E-03   -1.5211    
  22  norm          1.2355        .86028        .36804E-04   -1.5486    
  23  Prefactor     .10000E-03    14.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    12.591        .16989E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.3838        215.66        .27391E-03   -1.5399    
  26  Prefactor     .10001E-03    39.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    22.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10225E-03    25.228        .56191E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          4.0442        14.953        .20208E-03   -1.5306    
  30  Prefactor     .10000E-03    12.544        .17152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     40.886        34.420        .62684E-04   -1.4428    
  32  Prefactor     .10000E-03    1.7006        .63096E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    25.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     .10000E-03    40.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Normalizat    1.3211        .36433        .26055E-03   -.82938    
  36  Prefactor     .68072        .24902        .24540E-03   -1.0429    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.77828e-09
Minuit parameter uncertainties:
  1  11.1188
  2  3.94226e-06
  3  2.74573e-06
  4  3.323e-05
  5  1.97373e-05
  6  0.000756204
  7  17.1542
  8  54.1004
  9  79.3522
  10  3.81504e-06
  11  35.2045
  12  6.4836e-06
  13  9.38927
  14  8.76735e-06
  15  4.97544
  16  1.34673e-05
  17  47.3342
  18  1.02837e-05
  19  6.86817e-05
  20  1.5208e-05
  21  16.9212
  22  0.860288
  23  5.26799e-05
  24  5.97817e-05
  25  45.5164
  26  0.00105769
  27  2.47064e-05
  28  0.0150722
  29  14.9666
  30  1.64976e-05
  31  34.4371
  32  5.46507e-07
  33  1.5664e-05
  34  2.01209e-06
  35  0.36504
  36  0.249432
Done.

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

Extracting fit parameters...

4FGL J0809.8+5218
   Spectrum: LogParabola
330         norm:  1.000e-04  1.521e-05  1.000e-04  1.000e+04 ( 1.000e-12)
331        alpha:  1.811e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
332         beta:  3.259e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
333           Eb:  1.346e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
721    Prefactor:  6.807e-01  2.494e-01  0.000e+00  1.000e+01 ( 1.000e+00)
722        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
723        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
720   Normalization:  1.321e+00  3.650e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 122.462 52.314
Photon Flux Upper Limit: 1.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.31e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/263163/likelihoodResults_550886401_551145601_4FGL_J0809.8+5218_daily_bin1202.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) = 2459.89419154
delta logL = -0.00126912415226

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2459.89292053
delta logL = 1.88583953786e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10156E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8732       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3212       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68073       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7240E+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=   2459.893     FROM MIGRAD    STATUS=FAILED        98 CALLS      247 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10008E-03    6.1673        .17429E-02** at limit **
   2  alpha         1.9500        3.4125        .17168       -.88664E-04
   3  Normalizat    1.3211        .33369        .26055E-03    .94465E-05
   4  Prefactor     .68072        .23476        .24539E-03    .12045E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   2459.893     FROM SIMPLEX   STATUS=UNCHANGED    121 CALLS      368 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10008E-03    6.1673        .43113E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9500        3.4125        .45947E-03   -.22181    
   3  Normalizat    1.3211        .33369        .41456E-04   -.82938    
   4  Prefactor     .68072        .23476        .57294E-04   -1.0429    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2459.652     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      466 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .24693        .88322        .50843E-05   -.28776E-02
   2  alpha         3.4803        1.5421        .19528E-03    .36378E-04
   3  Normalizat    1.2554        .34225       -.52855E-05   -.22437E-03
   4  Prefactor     .70088        .23047        .17679E-04   -.94135E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.246926
  alpha      = 3.48035
  Normalizat = 1.25535
  Prefactor  = 0.700884
 **********
 **   18 **HESSE 
 **********

 FCN=   2459.652     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      497 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .24693        29.416        .34857E-02   -1.5609    
   2  alpha         3.4803        4.2395        .68670E-01    9.0218    
   3  Normalizat    1.2554        .29773        .10422E-04   -.84909    
   4  Prefactor     .70088        .17448        .98158E-05   -1.0349    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.83728e-05
Minuit parameter uncertainties:
  1  5.39186
  2  9.83649
  3  0.29814
  4  0.174621
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/263163': 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) = 2459.65182124
delta logL = 0.241101173295

Extracting fit parameters...

4FGL J0809.8+5218
   Spectrum: LogParabola
330         norm:  2.469e-01  5.392e+00  1.000e-04  1.000e+04 ( 1.000e-12)
331        alpha:  3.480e+00  9.836e+00  0.000e+00  5.000e+00 ( 1.000e+00)
332         beta:  3.259e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
333           Eb:  1.346e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
721    Prefactor:  7.009e-01  1.746e-01  0.000e+00  1.000e+01 ( 1.000e+00)
722        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
723        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
720   Normalization:  1.255e+00  2.981e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 122.462 52.314

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/263163/cmap_HighResolution_550886401_551145601_4FGL_J0809.8+5218_daily_bin1202.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.31e-04', job_status='DONE', photon_flux_upper_limit='1.23e-07', time_completed='2021-08-29 09:47:47.680773', job_id='263163', GAL2='0.70', fit_tolerance='1e-08', EG2='1.26', EG='1.32', time_epoch_completed='1630255667.68', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='2.41e-01', ts2='0.50', photon_index_error='0.00', photon_index='1.81' WHERE bin_id='1202' AND source_name='4FGL J0809.8+5218' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:47:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 263163: <4FGL_J0809.8+5218_daily_bin1202> in cluster <slac> Done

Job <4FGL_J0809.8+5218_daily_bin1202> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Aug 29 09:35:27 2021
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 09:35:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 09:35:29 2021
Terminated at Sun Aug 29 09:47:48 2021
Results reported at Sun Aug 29 09:47:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+5218_daily_bin1202 122.462 52.3143 550886401 551145601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0809.8+5218 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   718.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             312.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   739 sec.
    Turnaround time :                            741 sec.

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

