/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 119 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 = 7388
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0809.8+0507_daily_bin293
RA = 122.453, Dec = 5.1313
tmin = 315273601, tmax = 315532801
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='250079', job_status='RUN', time_executed='2021-08-29 08:53:38.237177', time_epoch_executed='1630252418.24' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='293'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250079

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250079/ft1_4FGL_J0809.8+0507_daily_bin293.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250079/ft2_4FGL_J0809.8+0507_daily_bin293.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250079/ft1_4FGL_J0809.8+0507_daily_bin293.fits outfile=/scratch/kocevski/250079/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin293.fits ra=122.453 dec=5.1313 rad=12.0 tmin=315273601.0 tmax=315532801.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 7.56
user 3.44
sys 4.09

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/250079/ft2_4FGL_J0809.8+0507_daily_bin293.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/250079/ft2_4FGL_J0809.8+0507_daily_bin293.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/250079/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin293.fits evtable="EVENTS" outfile="/scratch/kocevski/250079/ft1_filtered_4FGL_J0809.8+0507_daily_bin293.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.39
user 0.32
sys 4.04

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250079/ft1_filtered_4FGL_J0809.8+0507_daily_bin293.fits" evtable="EVENTS" scfile=/scratch/kocevski/250079/ft2_4FGL_J0809.8+0507_daily_bin293.fits sctable="SC_DATA" outfile=/scratch/kocevski/250079/ltcube_315273601_315532801_4FGL_J0809.8+0507_daily_bin293.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/250079/ft2_4FGL_J0809.8+0507_daily_bin293.fits
.....................!
real 16.28
user 11.42
sys 4.74

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250079/ft1_filtered_4FGL_J0809.8+0507_daily_bin293.fits evtable="EVENTS" scfile=/scratch/kocevski/250079/ft2_4FGL_J0809.8+0507_daily_bin293.fits sctable="SC_DATA" expcube=/scratch/kocevski/250079/ltcube_315273601_315532801_4FGL_J0809.8+0507_daily_bin293.fits outfile=/scratch/kocevski/250079/expmap_315273601_315532801_4FGL_J0809.8+0507_daily_bin293.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/250079/ltcube_315273601_315532801_4FGL_J0809.8+0507_daily_bin293.fits
.....................!
real 195.11
user 185.65
sys 8.95

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

Setting source of interest to:
4FGL J0809.8+0507 @ 122.453 5.1313

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/250079/ft1_filtered_4FGL_J0809.8+0507_daily_bin293.fits scfile=/scratch/kocevski/250079/ft2_4FGL_J0809.8+0507_daily_bin293.fits outfile=/scratch/kocevski/250079/cmap_315273601_315532801_4FGL_J0809.8+0507_daily_bin293.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.453 yref=5.1313 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.37
user 0.36
sys 3.93

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250079/ft1_filtered_4FGL_J0809.8+0507_daily_bin293.fits scfile=/scratch/kocevski/250079/ft2_4FGL_J0809.8+0507_daily_bin293.fits outfile=/scratch/kocevski/250079/cmap_HighResolution_315273601_315532801_4FGL_J0809.8+0507_daily_bin293.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.453 yref=5.1313 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 5.11
user 0.39
sys 4.68

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/250079/ft1_filtered_4FGL_J0809.8+0507_daily_bin293.fits evtable="EVENTS" scfile=/scratch/kocevski/250079/ft2_4FGL_J0809.8+0507_daily_bin293.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/250079/Model_4FGL_J0809.8+0507_daily_bin293.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/250079/ft1_filtered_4FGL_J0809.8+0507_daily_bin293.fits.....................!
real 56.41
user 49.93
sys 6.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/250079/ft1_filtered_4FGL_J0809.8+0507_daily_bin293.fits', '/scratch/kocevski/250079/ft2_4FGL_J0809.8+0507_daily_bin293.fits', expMap='/scratch/kocevski/250079/expmap_315273601_315532801_4FGL_J0809.8+0507_daily_bin293.fits', expCube='/scratch/kocevski/250079/ltcube_315273601_315532801_4FGL_J0809.8+0507_daily_bin293.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/250079/Model_4FGL_J0809.8+0507_daily_bin293.xml', optimizer='MINUIT')

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

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  4.437e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.815e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
282         beta:  8.580e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  4.471e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/250079/ft1_filtered_4FGL_J0809.8+0507_daily_bin293.fits
Spacecraft file(s): /scratch/kocevski/250079/ft2_4FGL_J0809.8+0507_daily_bin293.fits
Exposure map: /scratch/kocevski/250079/expmap_315273601_315532801_4FGL_J0809.8+0507_daily_bin293.fits
Exposure cube: /scratch/kocevski/250079/ltcube_315273601_315532801_4FGL_J0809.8+0507_daily_bin293.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/250079/Model_4FGL_J0809.8+0507_daily_bin293.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) = 3914.09276662

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17242E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.694       1.0000         .10000E-03   10000.    
     3 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.615       1.0000         .10000E-03   10000.    
     8 'Prefactor '    52.106       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.5008       1.0000         .10000E-03   10000.    
    10 'Prefactor '    52.795       1.0000         .10000E-03   10000.    
    11 'norm      '    21.776       1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10236E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.7852       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .48097       1.0000         .10000E-03   10000.    
    17 'norm      '    .10844E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10391E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0547       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .92694       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3914.083     FROM MIGRAD    STATUS=CONVERGED    459 CALLS     2242 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    74.510       -.62859E-05** at limit **
   2  Prefactor     10.716        45.504       -.45245E-06    .15942E-04
   3  norm          .10000E-03    1.7580       -.15635E-06** at limit **
   4  Prefactor     .10000E-03    14.545        .40421E-06** at limit **
   5  Prefactor     .10000E-03    2.0459       -.10877E-05** at limit **
   6  norm          .10000E-03    6.3563       -.82223E-07** at limit **
   7  Prefactor     18.613        13.402       -.25276E-06   -.12866E-04
   8  Prefactor     52.201        157.13       -.82392E-05   -.38982E-04
   9  Prefactor     8.5033        8.1823        .14354E-06    .13341E-04
  10  Prefactor     52.817        43.543       -.14661E-05   -.80172E-04
  11  norm          21.792        18.571       -.19711E-06   -.82478E-04
  12  norm          .10000E-03    1.6397        .35429E-06** at limit **
  13  norm          .10000E-03    17.088       -.34163E-05** at limit **
  14  norm          3.7886        6.0575       -.15074E-05   -.38491E-03
  15  Prefactor     .10000E-03    18.005       -.30663E-06** at limit **
  16  Prefactor     .82051        107.56        .19665E-04   -.67500E-04
  17  norm          .10000E-03    .76276       -.24464E-06** at limit **
  18  norm          .10000E-03    6.1211        .12079E-05** at limit **
  19  Prefactor     .10000E-03    26.040        .17096E-05** at limit **
  20  Normalizat    1.0540        .26326        .23948E-05   -.12471E-03
  21  Prefactor     .92698        .17184       -.23493E-05    .19839E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Prefactor  = 10.716
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 18.6128
  Prefactor  = 52.2007
  Prefactor  = 8.50332
  Prefactor  = 52.817
  norm       = 21.7919
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 3.78862
  Prefactor  = 0.0001
  Prefactor  = 0.820515
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.05405
  Prefactor  = 0.926981
 **********
 **   18 **HESSE 
 **********

 FCN=   3914.083     FROM HESSE     STATUS=OK           317 CALLS     2559 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    75.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.716        45.052        .12252E-03   -1.5053    
   3  norm          .10000E-03    2.6840        .15362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.1168        .17472E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6.3570        .15406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.613        13.404        .92831E-04   -1.4845    
   8  Prefactor     52.201        157.55        .27781E-03   -1.4262    
   9  Prefactor     8.5033        8.1801        .13749E-03   -1.5125    
  10  Prefactor     52.817        43.451        .55199E-04   -1.4253    
  11  norm          21.792        18.556        .85834E-04   -1.4774    
  12  norm          .10000E-03    1.6565        .78300E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    17.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.7886        6.1047        .18471E-03   -1.5319    
  15  Prefactor     .10000E-03    18.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .82051        111.57        .48047E-02   -1.5527    
  17  norm          .10000E-03    2.4981        .10442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    6.1812        .15145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    26.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0540        .28700        .27999E-03   -.91241    
  21  Prefactor     .92698        .18877        .20252E-03   -.95205    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08302e-09
Minuit parameter uncertainties:
  1  0.00132731
  2  44.0009
  3  0.000159559
  4  4.92019e-05
  5  2.56169e-05
  6  3.10509e-06
  7  13.4061
  8  158.832
  9  8.18113
  10  43.4769
  11  18.5613
  12  1.24991e-05
  13  0.000263942
  14  6.10571
  15  2.44671e-05
  16  19.171
  17  7.13432e-05
  18  5.92915e-05
  19  0.000195589
  20  0.287423
  21  0.1889
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  2.639e-04  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.815e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
282         beta:  8.580e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  4.471e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  9.270e-01  1.889e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  1.054e+00  2.874e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 122.453 5.131
Photon Flux Upper Limit: 9.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.58e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/250079/likelihoodResults_315273601_315532801_4FGL_J0809.8+0507_daily_bin293.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) = 3914.08358015
delta logL = -0.000276739488072

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3914.07798027
delta logL = 0.00532314283055

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .56132       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0464       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93007       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+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=   3914.078     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      310 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .56594        13.909        .23240E-02    .13322E-02
   2  alpha         5.0000        4.0108        .18507    ** at limit **
   3  Normalizat    1.0463        .28440        .28086E-03   -.12113E-03
   4  Prefactor     .93006        .19015        .20221E-03   -.20375E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.565944
  alpha      = 5
  Normalizat = 1.0463
  Prefactor  = 0.930056
 **********
 **   18 **HESSE 
 **********

 FCN=   3914.078     FROM HESSE     STATUS=OK            25 CALLS      335 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .56594        13.773        .46479E-03   -1.5558    
   2  alpha         5.0000        4.0532        .37014E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0463        .28315        .11234E-04   -.91495    
   4  Prefactor     .93006        .18996        .40442E-04   -.95099    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.69399e-11
Minuit parameter uncertainties:
  1  5.5847
  2  5.06353e-05
  3  0.283564
  4  0.190097
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250079': 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) = 3914.07797915
delta logL = 0.00532426970221

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  5.659e-01  5.585e+00  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  5.000e+00  5.064e-05  0.000e+00  5.000e+00 ( 1.000e+00)
282         beta:  8.580e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  4.471e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  9.301e-01  1.901e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  1.046e+00  2.836e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 122.453 5.131

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/250079/cmap_HighResolution_315273601_315532801_4FGL_J0809.8+0507_daily_bin293.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.58e-05', job_status='DONE', photon_flux_upper_limit='9.81e-08', time_completed='2021-08-29 09:02:52.429275', job_id='250079', GAL2='0.93', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1630252972.43', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='5.32e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='293' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:02:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 250079: <4FGL_J0809.8+0507_daily_bin293> in cluster <slac> Done

Job <4FGL_J0809.8+0507_daily_bin293> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 29 08:50:28 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 08:50: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 08:50:29 2021
Terminated at Sun Aug 29 09:02:53 2021
Results reported at Sun Aug 29 09:02:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin293 122.453 5.1313 315273601 315532801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0809.8+0507 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   614.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             230.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   744 sec.
    Turnaround time :                            745 sec.

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

