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


Performing analysis on: 4FGL_J0809.8+5218_daily_bin1200
RA = 122.462, Dec = 52.3143
tmin = 550368001, tmax = 550627201
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='263160', job_status='RUN', time_executed='2021-08-29 09:39:32.782080', time_epoch_executed='1630255172.78' WHERE source_name='4FGL J0809.8+5218' and cadence='daily' and bin_id='1200'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/263160

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/263160/ft1_4FGL_J0809.8+5218_daily_bin1200.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/263160/ft2_4FGL_J0809.8+5218_daily_bin1200.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/263160/ft1_4FGL_J0809.8+5218_daily_bin1200.fits outfile=/scratch/kocevski/263160/ft1_filteredMKT_4FGL_J0809.8+5218_daily_bin1200.fits ra=122.462 dec=52.3143 rad=12.0 tmin=550368001.0 tmax=550627201.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 8.50
user 3.81
sys 4.63

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/263160/ft1_filtered_4FGL_J0809.8+5218_daily_bin1200.fits" evtable="EVENTS" scfile=/scratch/kocevski/263160/ft2_4FGL_J0809.8+5218_daily_bin1200.fits sctable="SC_DATA" outfile=/scratch/kocevski/263160/ltcube_550368001_550627201_4FGL_J0809.8+5218_daily_bin1200.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/263160/ft2_4FGL_J0809.8+5218_daily_bin1200.fits
.....................!
real 16.58
user 11.31
sys 5.22

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/263160/ft1_filtered_4FGL_J0809.8+5218_daily_bin1200.fits evtable="EVENTS" scfile=/scratch/kocevski/263160/ft2_4FGL_J0809.8+5218_daily_bin1200.fits sctable="SC_DATA" expcube=/scratch/kocevski/263160/ltcube_550368001_550627201_4FGL_J0809.8+5218_daily_bin1200.fits outfile=/scratch/kocevski/263160/expmap_550368001_550627201_4FGL_J0809.8+5218_daily_bin1200.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/263160/ltcube_550368001_550627201_4FGL_J0809.8+5218_daily_bin1200.fits
.....................!
real 194.76
user 184.43
sys 9.96

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/263160/ft1_filtered_4FGL_J0809.8+5218_daily_bin1200.fits scfile=/scratch/kocevski/263160/ft2_4FGL_J0809.8+5218_daily_bin1200.fits outfile=/scratch/kocevski/263160/cmap_550368001_550627201_4FGL_J0809.8+5218_daily_bin1200.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 4.89
user 0.39
sys 4.47

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/263160/ft1_filtered_4FGL_J0809.8+5218_daily_bin1200.fits scfile=/scratch/kocevski/263160/ft2_4FGL_J0809.8+5218_daily_bin1200.fits outfile=/scratch/kocevski/263160/cmap_HighResolution_550368001_550627201_4FGL_J0809.8+5218_daily_bin1200.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 4.92
user 0.39
sys 4.51

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/263160/ft1_filtered_4FGL_J0809.8+5218_daily_bin1200.fits', '/scratch/kocevski/263160/ft2_4FGL_J0809.8+5218_daily_bin1200.fits', expMap='/scratch/kocevski/263160/expmap_550368001_550627201_4FGL_J0809.8+5218_daily_bin1200.fits', expCube='/scratch/kocevski/263160/ltcube_550368001_550627201_4FGL_J0809.8+5218_daily_bin1200.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/263160/Model_4FGL_J0809.8+5218_daily_bin1200.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/263160/ft1_filtered_4FGL_J0809.8+5218_daily_bin1200.fits
Spacecraft file(s): /scratch/kocevski/263160/ft2_4FGL_J0809.8+5218_daily_bin1200.fits
Exposure map: /scratch/kocevski/263160/expmap_550368001_550627201_4FGL_J0809.8+5218_daily_bin1200.fits
Exposure cube: /scratch/kocevski/263160/ltcube_550368001_550627201_4FGL_J0809.8+5218_daily_bin1200.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/263160/Model_4FGL_J0809.8+5218_daily_bin1200.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 131.231586271

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 125.806375819

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5298       1.0000         .10000E-03   10000.    
     2 'norm      '    1.5203       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.3504       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .17345E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.0824       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.7677       1.0000         .10000E-03   10000.    
     7 'norm      '    .79854E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.5212       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.9598       1.0000         .10000E-03   10000.    
    10 'norm      '    1.0164       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .26652E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .21574E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    .89417E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    29.192       1.0000         .10000E-03   10000.    
    15 'norm      '    1.2453       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.9617       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.0004       1.0000         .10000E-03   10000.    
    18 'Prefactor '    54.806       1.0000         .10000E-03   10000.    
    19 'norm      '    2.0909       1.0000         .10000E-03   10000.    
    20 'norm      '    .95676E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.4983       1.0000         .10000E-03   10000.    
    22 'norm      '    .10182E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13061       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.1668       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .17078E-01   1.0000         .10000E-03   10000.    
    26 'Prefactor '    35.581       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.4330       1.0000         .10000E-03   10000.    
    28 'norm      '    43.037       1.0000         .10000E-03   10000.    
    29 'norm      '    15.497       1.0000         .10000E-03   10000.    
    30 'Prefactor '    3.8697       1.0000         .10000E-03   10000.    
    31 'Prefactor '    1.0475       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    33 'Prefactor '    .29807       1.0000         .10000E-03   10000.    
    34 'Prefactor '    2.7790       1.0000         .10000E-03   10000.    
    35 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    36 'Prefactor '    .17001E-07   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   125.7722     FROM MIGRAD    STATUS=CONVERGED    339 CALLS      545 TOTAL
                     EDM=   .83E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5298        1.0210         .0000         .0000    
   2  norm          1.5203        1.0681         .0000         .0000    
   3  Prefactor     2.3504        1.0246         .0000         .0000    
   4  Prefactor     .10000E-03    143.62       -.16740E-09** at limit **
   5  Prefactor     9.0824        1.0015         .0000         .0000    
   6  Prefactor     5.7677        1.0038         .0000         .0000    
   7  norm          .10000E-03    64.388       -.59015E-06** at limit **
   8  Prefactor     3.5212        1.0104         .0000         .0000    
   9  Prefactor     .10007E-03    7118.1       -.16046E-04** at limit **
  10  norm          1.0164        1.3026         .0000         .0000    
  11  Prefactor     .10000E-03    240.80        .12851E-04** at limit **
  12  Prefactor     .10000E-03    49.872       -.17476E-06** at limit **
  13  norm          .10000E-03    30.729       -.72930E-07** at limit **
  14  Prefactor     28.566        66.166        .79475E-05    .32981E-04
  15  norm          1.2453        1.1194         .0000         .0000    
  16  Prefactor     .10000E-03    133.06       -.83355E-07** at limit **
  17  Prefactor     3.0004        1.0146         .0000         .0000    
  18  Prefactor     55.359        34.305       -.34365E-05    .11412E-04
  19  norm          2.0909        1.0319         .0000         .0000    
  20  norm          .10000E-03    161.91       -.54132E-05** at limit **
  21  Prefactor     5.4983        1.0042         .0000         .0000    
  22  norm          .10000E-03    10.753       -.79650E-05** at limit **
  23  Prefactor     .10000E-03    50.750        .23851E-05** at limit **
  24  Prefactor     3.1668        1.0130         .0000         .0000    
  25  Prefactor     .10000E-03    33.313        .43868E-06** at limit **
  26  Prefactor     36.261        34.164        .21070E-05    .34837E-05
  27  Prefactor     .10000E-03    6663.3        .10848E-04** at limit **
  28  norm          .10005E-03    1065.6       -.53094E-04** at limit **
  29  norm          136.31        127.20        .42181E-05    .77976E-04
  30  Prefactor     3.8697        1.0086         .0000         .0000    
  31  Prefactor     1.0475        1.2416         .0000         .0000    
  32  Prefactor     .10000E-03    5.9124       -.48319E-07** at limit **
  33  Prefactor     .10000E-03    319.83        .96561E-05** at limit **
  34  Prefactor     .10000E-03    512.98       -.31094E-06** at limit **
  35  Normalizat    .10000E-01    .16336        .46101E-07** at limit **
  36  Prefactor      .0000        .17047       -.40056E-06** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 2.52983
  norm       = 1.52027
  Prefactor  = 2.35041
  Prefactor  = 0.0001
  Prefactor  = 9.08243
  Prefactor  = 5.76768
  norm       = 0.0001
  Prefactor  = 3.52117
  Prefactor  = 0.000100067
  norm       = 1.01645
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 28.5657
  norm       = 1.24535
  Prefactor  = 0.0001
  Prefactor  = 3.00044
  Prefactor  = 55.3594
  norm       = 2.09087
  norm       = 0.0001
  Prefactor  = 5.49826
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.16678
  Prefactor  = 0.0001
  Prefactor  = 36.261
  Prefactor  = 0.0001
  norm       = 0.000100053
  norm       = 136.313
  Prefactor  = 3.86972
  Prefactor  = 1.04748
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   125.7722     FROM HESSE     STATUS=FAILED         9 CALLS      554 TOTAL
                     EDM=   .83E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          560.85        558.22         .0000       -1.5390    
   2  norm          1.5203        1.0681         .0000       -1.5461    
   3  Prefactor     2.3504        1.0246         .0000       -1.5401    
   4  Prefactor     .10000E-03    .20745       -.16740E-09   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.0824        1.0015         .0000       -1.5105    
   6  Prefactor     5.7677        1.0038         .0000       -1.5228    
   7  norm          .10000E-03    .22159       -.59015E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.5212        1.0104         .0000       -1.5333    
   9  Prefactor     .10007E-03    .28015E-01   -.16046E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.0164        1.3026         .0000       -1.5506    
  11  Prefactor     .10000E-03    .20956        .12851E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .20841       -.17476E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .20886       -.72930E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     28.566        .98939        .79475E-05   -1.4639    
  15  norm          1.2453        1.1194         .0000       -1.5485    
  16  Prefactor     .10000E-03    .13704       -.83355E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.0004        1.0146         .0000       -1.5362    
  18  Prefactor     55.359        1.0051       -.34365E-05   -1.4219    
  19  norm          2.0909        1.0319         .0000       -1.5419    
  20  norm          .10000E-03    .20602       -.54132E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.4983        1.0042         .0000       -1.5239    
  22  norm          .10000E-03    .20571       -.79650E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    .23310        .23851E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.1668        1.0130         .0000       -1.5352    
  25  Prefactor     .10000E-03    .20739        .43868E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     36.261        1.0096        .21070E-05   -1.4503    
  27  Prefactor     .10000E-03    .10753        .10848E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10005E-03    .58349E-02   -.53094E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          136.31        2.9493        .42181E-05   -1.3368    
  30  Prefactor     3.8697        1.0086         .0000       -1.5315    
  31  Prefactor     1.0475        1.2416         .0000       -1.5503    
  32  Prefactor     .10000E-03    .20571       -.48319E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .10000E-03    .27126        .96561E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     .10000E-03    .93107E-01   -.31094E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Normalizat    .10000E-01    .25505        .46101E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  Prefactor      .0000        .25504       -.40056E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 8.34791e-11
Minuit parameter uncertainties:
  1  1.021
  2  1.06807
  3  1.02464
  4  8.7888e-07
  5  1.00152
  6  1.00381
  7  4.42674e-09
  8  1.01045
  9  8.64809e-05
  10  1.30263
  11  1.18263e-05
  12  2.32016e-08
  13  9.66848e-08
  14  0.989388
  15  1.11946
  16  2.02173e-08
  17  1.01461
  18  1.00505
  19  1.03191
  20  5.23562e-07
  21  1.00419
  22  1.49568e-05
  23  4.4842e-07
  24  1.01304
  25  1.3331e-07
  26  1.00958
  27  2.16482e-06
  28  3.52284e-05
  29  2.94934
  30  1.0086
  31  1.24158
  32  2.89579e-08
  33  7.82661e-06
  34  8.35078e-08
  35  1.78869e-09
  36  1.01788e-08
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 125.77218238

Extracting fit parameters...

4FGL J0809.8+5218
   Spectrum: LogParabola
330         norm:  1.000e-04  5.236e-07  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:  0.000e+00  1.018e-08  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.000e-02  1.789e-09  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.19e-05 ph cm-2 s-1
Energy Flux Upper Limit: 1.27e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/263160/likelihoodResults_550368001_550627201_4FGL_J0809.8+5218_daily_bin1200.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) = 125.772211886
delta logL = -2.95059187891e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 125.772182891
delta logL = -5.1068168716e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7277       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .14771E-08   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.

 FCN=   125.7722     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      273 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10003E-03    8629.0        .88430E-02** at limit **
   2  alpha         1.4178        2.8485        .16548        .19301E-08
   3  Normalizat    .10000E-01    .21530E-01    .14203E-02** at limit **
   4  Prefactor     .88030E-11    .22227E-01    .14384E-02** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100027
  alpha      = 1.41776
  Normalizat = 0.01
  Prefactor  = 8.80296e-12
 **********
 **   18 **HESSE 
 **********

 FCN=   125.7722     FROM HESSE     STATUS=OK            23 CALLS      296 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10003E-03    182.29        .14830E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4178        4.0606        .66191E-02   -.44770    
   3  Normalizat    .10000E-01    .16703        .28407E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .88030E-11    .17242        .28769E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.56151e-10
Minuit parameter uncertainties:
  1  0.00445152
  2  1438.36
  3  2.54294e-06
  4  2.47111e-06
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/263160': 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) = 125.772182344
delta logL = 3.59028291541e-08

Extracting fit parameters...

4FGL J0809.8+5218
   Spectrum: LogParabola
330         norm:  1.000e-04  4.452e-03  1.000e-04  1.000e+04 ( 1.000e-12)
331        alpha:  1.418e+00  1.438e+03  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:  8.803e-12  2.471e-06  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.000e-02  2.543e-06  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/263160/cmap_HighResolution_550368001_550627201_4FGL_J0809.8+5218_daily_bin1200.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.27e-02', job_status='DONE', photon_flux_upper_limit='1.19e-05', time_completed='2021-08-29 09:46:16.606669', job_id='263160', GAL2='0.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630255576.61', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.00', dlogl='3.59e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.81' WHERE bin_id='1200' AND source_name='4FGL J0809.8+5218' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:46:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 263160: <4FGL_J0809.8+5218_daily_bin1200> in cluster <slac> Done

Job <4FGL_J0809.8+5218_daily_bin1200> 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) <bullet0205>, 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:46:17 2021
Results reported at Sun Aug 29 09:46:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+5218_daily_bin1200 122.462 52.3143 550368001 550627201 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 :                                   472.42 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             259.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   648 sec.
    Turnaround time :                            650 sec.

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

