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


Performing analysis on: 4FGL_J0809.8+5218_daily_bin1211
RA = 122.462, Dec = 52.3143
tmin = 553219201, tmax = 553478401
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='263177', job_status='RUN', time_executed='2021-08-29 09:37:47.996346', time_epoch_executed='1630255068.0' WHERE source_name='4FGL J0809.8+5218' and cadence='daily' and bin_id='1211'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/263177

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/263177/ft1_4FGL_J0809.8+5218_daily_bin1211.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/263177/ft2_4FGL_J0809.8+5218_daily_bin1211.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/263177/ft1_4FGL_J0809.8+5218_daily_bin1211.fits outfile=/scratch/kocevski/263177/ft1_filteredMKT_4FGL_J0809.8+5218_daily_bin1211.fits ra=122.462 dec=52.3143 rad=12.0 tmin=553219201.0 tmax=553478401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.11
user 2.63
sys 0.45

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/263177/ft1_filtered_4FGL_J0809.8+5218_daily_bin1211.fits" evtable="EVENTS" scfile=/scratch/kocevski/263177/ft2_4FGL_J0809.8+5218_daily_bin1211.fits sctable="SC_DATA" outfile=/scratch/kocevski/263177/ltcube_553219201_553478401_4FGL_J0809.8+5218_daily_bin1211.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/263177/ft2_4FGL_J0809.8+5218_daily_bin1211.fits
.....................!
real 12.61
user 11.96
sys 0.62

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/263177/ft1_filtered_4FGL_J0809.8+5218_daily_bin1211.fits evtable="EVENTS" scfile=/scratch/kocevski/263177/ft2_4FGL_J0809.8+5218_daily_bin1211.fits sctable="SC_DATA" expcube=/scratch/kocevski/263177/ltcube_553219201_553478401_4FGL_J0809.8+5218_daily_bin1211.fits outfile=/scratch/kocevski/263177/expmap_553219201_553478401_4FGL_J0809.8+5218_daily_bin1211.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/263177/ltcube_553219201_553478401_4FGL_J0809.8+5218_daily_bin1211.fits
.....................!
real 191.71
user 186.05
sys 5.31

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/263177/ft1_filtered_4FGL_J0809.8+5218_daily_bin1211.fits scfile=/scratch/kocevski/263177/ft2_4FGL_J0809.8+5218_daily_bin1211.fits outfile=/scratch/kocevski/263177/cmap_553219201_553478401_4FGL_J0809.8+5218_daily_bin1211.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 0.80
user 0.37
sys 0.42

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/263177/ft1_filtered_4FGL_J0809.8+5218_daily_bin1211.fits scfile=/scratch/kocevski/263177/ft2_4FGL_J0809.8+5218_daily_bin1211.fits outfile=/scratch/kocevski/263177/cmap_HighResolution_553219201_553478401_4FGL_J0809.8+5218_daily_bin1211.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 0.81
user 0.37
sys 0.43

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/263177/ft1_filtered_4FGL_J0809.8+5218_daily_bin1211.fits', '/scratch/kocevski/263177/ft2_4FGL_J0809.8+5218_daily_bin1211.fits', expMap='/scratch/kocevski/263177/expmap_553219201_553478401_4FGL_J0809.8+5218_daily_bin1211.fits', expCube='/scratch/kocevski/263177/ltcube_553219201_553478401_4FGL_J0809.8+5218_daily_bin1211.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/263177/Model_4FGL_J0809.8+5218_daily_bin1211.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/263177/ft1_filtered_4FGL_J0809.8+5218_daily_bin1211.fits
Spacecraft file(s): /scratch/kocevski/263177/ft2_4FGL_J0809.8+5218_daily_bin1211.fits
Exposure map: /scratch/kocevski/263177/expmap_553219201_553478401_4FGL_J0809.8+5218_daily_bin1211.fits
Exposure cube: /scratch/kocevski/263177/ltcube_553219201_553478401_4FGL_J0809.8+5218_daily_bin1211.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/263177/Model_4FGL_J0809.8+5218_daily_bin1211.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) = 2226.10892641

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.770       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14538E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.3696       1.0000         .10000E-03   10000.    
     7 'norm      '    .12466E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    722.82       1.0000         .10000E-03   10000.    
     9 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    10 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11724E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .43225E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .36595E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .37898       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10509E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10083E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .36265       1.0000         .10000E-03   10000.    
    21 'Prefactor '    29.163       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .20435E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .14161E-01   1.0000         .10000E-03   10000.    
    26 'Prefactor '    75.763       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    7.9957       1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    11.629       1.0000         .10000E-03   10000.    
    31 'Prefactor '    27.535       1.0000         .10000E-03   10000.    
    32 'Prefactor '    2.4659       1.0000         .10000E-03   10000.    
    33 'Prefactor '    5.2420       1.0000         .10000E-03   10000.    
    34 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    35 'Normalizat'    .23999       1.0000         .10000E-01   10.000    
    36 'Prefactor '    .87307       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=   2208.845     FROM MIGRAD    STATUS=CONVERGED   1072 CALLS     4214 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.1186       -.27428E-07** at limit **
   2  norm          .10000E-03    6.5292       -.40399E-06** at limit **
   3  Prefactor     .10000E-03    32.329        .21568E-05** at limit **
   4  Prefactor     24.708        29.011       -.90355E-07   -.34514E-04
   5  Prefactor     .10000E-03    19.940        .22590E-07** at limit **
   6  Prefactor     9.3232        26.328        .24811E-06   -.19517E-04
   7  norm          .10000E-03    37.213       -.22011E-06** at limit **
   8  Prefactor     723.37        339.78       -.23273E-05    .91757E-05
   9  Prefactor    10000.0        6977.5       -.35982E-05** at limit **
  10  norm          .10000E-03    6.6105        .20709E-05** at limit **
  11  Prefactor     .10000E-03    65.300       -.14381E-07** at limit **
  12  Prefactor     .10000E-03    118.76        .15183E-06** at limit **
  13  norm          .10000E-03    8.4340       -.93763E-08** at limit **
  14  Prefactor     .10000E-03    19.615       -.16741E-07** at limit **
  15  norm          .10000E-03    1.9603        .34519E-06** at limit **
  16  Prefactor     .10000E-03    42.729       -.39282E-07** at limit **
  17  Prefactor     .52755E-02    103.75       -.40511E-05    .12236E-03
  18  Prefactor     .10000E-03    19.506       -.52338E-07** at limit **
  19  norm          .10000E-03    9.0201       -.47737E-06** at limit **
  20  norm          .36374        7.8054        .18604E-05   -.49099E-04
  21  Prefactor     29.221        23.436       -.32385E-06    .44542E-04
  22  norm          .10000E-03    .54438       -.19253E-07** at limit **
  23  Prefactor     .10000E-03    52.421       -.16611E-06** at limit **
  24  Prefactor     .10000E-03    3.6868       -.20273E-06** at limit **
  25  Prefactor     .10000E-03    67.299       -.28526E-06** at limit **
  26  Prefactor     76.299        34.484       -.58137E-06   -.56609E-04
  27  Prefactor     .10000E-03    3.3388       -.10886E-06** at limit **
  28  norm          7.9915        8.0937       -.28449E-06   -.50593E-04
  29  norm          .10000E-03    2.5309       -.76847E-07** at limit **
  30  Prefactor     11.636        12.517       -.52114E-06   -.35194E-04
  31  Prefactor     27.550        14.358       -.52810E-06   -.88869E-04
  32  Prefactor     2.4640        3.3085       -.25969E-06   -.10470E-03
  33  Prefactor     5.2567        13.312       -.74590E-06   -.23232E-04
  34  Prefactor     .10000E-03    20.571       -.92003E-07** at limit **
  35  Normalizat    .23953        .26052        .11014E-04    .48267E-04
  36  Prefactor     .87310        .21907       -.37020E-05    .63270E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.708
  Prefactor  = 0.0001
  Prefactor  = 9.3232
  norm       = 0.0001
  Prefactor  = 723.372
  Prefactor  = 10000
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00527554
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.363743
  Prefactor  = 29.2213
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 76.2988
  Prefactor  = 0.0001
  norm       = 7.99147
  norm       = 0.0001
  Prefactor  = 11.6363
  Prefactor  = 27.5497
  Prefactor  = 2.46398
  Prefactor  = 5.25666
  Prefactor  = 0.0001
  Normalizat = 0.239527
  Prefactor  = 0.8731
 **********
 **   18 **HESSE 
 **********

 FCN=   2208.845     FROM HESSE     STATUS=OK           805 CALLS     5019 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.1291        .93159E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    6.5335        .11723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    32.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     24.708        29.007        .40244E-03   -1.4713    
   5  Prefactor     .10000E-03    19.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.3232        26.331        .13093E-03   -1.5097    
   7  norm          .10000E-03    37.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     723.37        341.03        .77234E-04   -1.0262    
   9  Prefactor    10000.0        6979.1        .19154E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    6.5154        .11696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    65.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    118.74        .19396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    8.4346        .13332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    19.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.9696        .64055E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    42.729        .19603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .52755E-02    117.30        .12054       -1.5694    
  18  Prefactor     .10000E-03    19.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    9.0739        .13763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .36374        7.9062        .24939E-02   -1.5587    
  21  Prefactor     29.221        23.553        .74190E-04   -1.4626    
  22  norm          .10000E-03    .54670        .33853E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    52.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.6981        .88153E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    67.404        .18187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     76.299        34.457        .46131E-04   -1.3959    
  27  Prefactor     .10000E-03    3.3427        .83884E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          7.9915        8.0878        .12867E-03   -1.5143    
  29  norm          .10000E-03    2.5330        .73025E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     11.636        12.512        .11748E-03   -1.5026    
  31  Prefactor     27.550        14.419        .76347E-04   -1.4658    
  32  Prefactor     2.4640        3.2894        .93351E-04   -1.5394    
  33  Prefactor     5.2567        13.273        .17556E-03   -1.5249    
  34  Prefactor     .10000E-03    20.574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Normalizat    .23953        .25872        .42531E-03   -1.2665    
  36  Prefactor     .87310        .22382        .19694E-03   -.97087    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57573e-08
Minuit parameter uncertainties:
  1  1.31985e-06
  2  4.49718e-06
  3  9.84153e-07
  4  29.0239
  5  7.16788e-06
  6  26.3634
  7  9.38317e-07
  8  342.021
  9  0.0053105
  10  7.41847e-06
  11  6.20257e-05
  12  0.000181006
  13  1.88309e-06
  14  1.73672e-06
  15  3.99923e-07
  16  1.7241e-05
  17  1.5614
  18  1.39757e-06
  19  6.35543e-05
  20  3.3917
  21  23.5601
  22  1.2214e-07
  23  1.88402e-05
  24  4.40948e-06
  25  1.47123e-05
  26  34.4657
  27  3.54688e-06
  28  8.08892
  29  2.1977e-06
  30  12.5143
  31  14.4206
  32  3.28969
  33  13.2803
  34  1.02247e-05
  35  0.260027
  36  0.22406
Done.

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

Extracting fit parameters...

4FGL J0809.8+5218
   Spectrum: LogParabola
330         norm:  3.637e-01  3.392e+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

GAL_V02
   Spectrum: PowerLaw
721    Prefactor:  8.731e-01  2.241e-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:  2.395e-01  2.600e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/263177/likelihoodResults_553219201_553478401_4FGL_J0809.8+5218_daily_bin1211.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) = 2208.84479543
delta logL = 0.000110355998459

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2208.84479381
delta logL = 0.000111972626655

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .36374       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8497       1.0000          .0000       5.0000    
     3 'Normalizat'    .23950       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87308       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   2208.845     FROM MIGRAD    STATUS=FAILED        97 CALLS      248 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .36130        9.1105        .24640E-02    .27667E-02
   2  alpha         1.8503        3.4134        .41784E-01    .49552E-05
   3  Normalizat    .23950        .24626        .42536E-03    .18923E-04
   4  Prefactor     .87309        .21747        .19694E-03    .72159E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   2208.845     FROM SIMPLEX   STATUS=UNCHANGED     86 CALLS      334 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .36130        9.1105        .18193E-03   -1.5588    
   2  alpha         1.8503        3.4134        .56226E-02   -.26289    
   3  Normalizat    .23950        .24626        .87303E-03   -1.2665    
   4  Prefactor     .87309        .21747        .39076E-03   -.97088    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2208.845     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      365 TOTAL
                     EDM=   .78E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .36132        7.8542        .49281E-03    .48907E-05
   2  alpha         1.8503        3.3951        .16714E-02   -.13264E-06
   3  Normalizat    .23950        .24614        .17014E-04    .54123E-05
   4  Prefactor     .87309        .21719        .78775E-05    .14432E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.361321
  alpha      = 1.8503
  Normalizat = 0.239499
  Prefactor  = 0.873087
 **********
 **   18 **HESSE 
 **********

 FCN=   2208.845     FROM HESSE     STATUS=OK            25 CALLS      390 TOTAL
                     EDM=   .66E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .36132        7.8137        .19712E-04   -1.5588    
   2  alpha         1.8503        3.3944        .66855E-04   -.26290    
   3  Normalizat    .23950        .24628        .34029E-05   -1.2665    
   4  Prefactor     .87309        .21724        .15755E-05   -.97088    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.57033e-13
Minuit parameter uncertainties:
  1  3.36055
  2  2.62096
  3  0.247405
  4  0.217456
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/263177': 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) = 2208.84479354
delta logL = 0.000112244073534

Extracting fit parameters...

4FGL J0809.8+5218
   Spectrum: LogParabola
330         norm:  3.613e-01  3.361e+00  1.000e-04  1.000e+04 ( 1.000e-12)
331        alpha:  1.850e+00  2.621e+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:  8.731e-01  2.175e-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:  2.395e-01  2.474e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/263177/cmap_HighResolution_553219201_553478401_4FGL_J0809.8+5218_daily_bin1211.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.76e-04', job_status='DONE', photon_flux_upper_limit='1.65e-07', time_completed='2021-08-29 09:48:11.200092', job_id='263177', GAL2='0.87', fit_tolerance='1e-08', EG2='0.24', EG='0.24', time_epoch_completed='1630255691.2', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='1.12e-04', ts2='0.01', photon_index_error='0.00', photon_index='1.81' WHERE bin_id='1211' AND source_name='4FGL J0809.8+5218' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:48:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 263177: <4FGL_J0809.8+5218_daily_bin1211> in cluster <slac> Done

Job <4FGL_J0809.8+5218_daily_bin1211> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Aug 29 09:35:29 2021
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 09:35:30 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:30 2021
Terminated at Sun Aug 29 09:48:11 2021
Results reported at Sun Aug 29 09:48:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+5218_daily_bin1211 122.462 52.3143 553219201 553478401 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 :                                   627.05 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             252.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   761 sec.
    Turnaround time :                            762 sec.

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

