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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin909
RA = 122.33, Dec = 40.8954
tmin = 474940801, tmax = 475200001
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='231014', job_status='RUN', time_executed='2021-08-29 07:53:17.611279', time_epoch_executed='1630248797.61' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='909'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/231014

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/231014/ft1_4FGL_J0809.3+4053_daily_bin909.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/231014/ft2_4FGL_J0809.3+4053_daily_bin909.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/231014/ft1_4FGL_J0809.3+4053_daily_bin909.fits outfile=/scratch/kocevski/231014/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin909.fits ra=122.33 dec=40.8954 rad=12.0 tmin=474940801.0 tmax=475200001.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.97
user 3.32
sys 0.63

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/231014/ft2_4FGL_J0809.3+4053_daily_bin909.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/231014/ft2_4FGL_J0809.3+4053_daily_bin909.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/231014/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin909.fits evtable="EVENTS" outfile="/scratch/kocevski/231014/ft1_filtered_4FGL_J0809.3+4053_daily_bin909.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.92
user 0.31
sys 0.59

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/231014/ft1_filtered_4FGL_J0809.3+4053_daily_bin909.fits" evtable="EVENTS" scfile=/scratch/kocevski/231014/ft2_4FGL_J0809.3+4053_daily_bin909.fits sctable="SC_DATA" outfile=/scratch/kocevski/231014/ltcube_474940801_475200001_4FGL_J0809.3+4053_daily_bin909.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/231014/ft2_4FGL_J0809.3+4053_daily_bin909.fits
.....................!
real 12.22
user 11.35
sys 0.84

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/231014/ft1_filtered_4FGL_J0809.3+4053_daily_bin909.fits evtable="EVENTS" scfile=/scratch/kocevski/231014/ft2_4FGL_J0809.3+4053_daily_bin909.fits sctable="SC_DATA" expcube=/scratch/kocevski/231014/ltcube_474940801_475200001_4FGL_J0809.3+4053_daily_bin909.fits outfile=/scratch/kocevski/231014/expmap_474940801_475200001_4FGL_J0809.3+4053_daily_bin909.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/231014/ltcube_474940801_475200001_4FGL_J0809.3+4053_daily_bin909.fits
.....................!
real 191.37
user 186.29
sys 4.73

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

Setting source of interest to:
4FGL J0809.3+4053 @ 122.33 40.8954

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/231014/ft1_filtered_4FGL_J0809.3+4053_daily_bin909.fits scfile=/scratch/kocevski/231014/ft2_4FGL_J0809.3+4053_daily_bin909.fits outfile=/scratch/kocevski/231014/cmap_474940801_475200001_4FGL_J0809.3+4053_daily_bin909.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.33 yref=40.8954 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.96
user 0.38
sys 0.57

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/231014/ft1_filtered_4FGL_J0809.3+4053_daily_bin909.fits scfile=/scratch/kocevski/231014/ft2_4FGL_J0809.3+4053_daily_bin909.fits outfile=/scratch/kocevski/231014/cmap_HighResolution_474940801_475200001_4FGL_J0809.3+4053_daily_bin909.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.33 yref=40.8954 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.97
user 0.39
sys 0.57

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/231014/ft1_filtered_4FGL_J0809.3+4053_daily_bin909.fits evtable="EVENTS" scfile=/scratch/kocevski/231014/ft2_4FGL_J0809.3+4053_daily_bin909.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/231014/Model_4FGL_J0809.3+4053_daily_bin909.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/231014/ft1_filtered_4FGL_J0809.3+4053_daily_bin909.fits.....................!
real 65.03
user 63.11
sys 1.80

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/231014/ft1_filtered_4FGL_J0809.3+4053_daily_bin909.fits', '/scratch/kocevski/231014/ft2_4FGL_J0809.3+4053_daily_bin909.fits', expMap='/scratch/kocevski/231014/expmap_474940801_475200001_4FGL_J0809.3+4053_daily_bin909.fits', expCube='/scratch/kocevski/231014/ltcube_474940801_475200001_4FGL_J0809.3+4053_daily_bin909.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/231014/Model_4FGL_J0809.3+4053_daily_bin909.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0809.3+4053'

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.019e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.588e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
271        Scale:  6.589e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/231014/ft1_filtered_4FGL_J0809.3+4053_daily_bin909.fits
Spacecraft file(s): /scratch/kocevski/231014/ft2_4FGL_J0809.3+4053_daily_bin909.fits
Exposure map: /scratch/kocevski/231014/expmap_474940801_475200001_4FGL_J0809.3+4053_daily_bin909.fits
Exposure cube: /scratch/kocevski/231014/ltcube_474940801_475200001_4FGL_J0809.3+4053_daily_bin909.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/231014/Model_4FGL_J0809.3+4053_daily_bin909.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) = 6791.28672517

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.1731       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.3829       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.947       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .88442       1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.118       1.0000         .10000E-03   10000.    
     6 'norm      '    13.193       1.0000         .10000E-03   10000.    
     7 'norm      '    .35275       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.7434       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.8906       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.1275       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.473       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    56.073       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .84234       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .93951       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6791.181     FROM MIGRAD    STATUS=CONVERGED    481 CALLS     2221 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1729        4.5790       -.19528E-06   -.33709E-05
   2  Prefactor     6.3812        13.921       -.47573E-05    .26788E-05
   3  Prefactor     12.945        19.135       -.48710E-05    .89618E-05
   4  Prefactor     .88539        1.4468        .47178E-06   -.15912E-02
   5  Prefactor     18.118        11.559       -.40367E-06    .48175E-04
   6  norm          13.194        12.463        .59405E-06    .73896E-04
   7  norm          .35291        1.1025       -.40030E-06   -.24369E-03
   8  Prefactor     .10000E-03    1.8075       -.15452E-06** at limit **
   9  Prefactor     .10000E-03    9.2694       -.87181E-05** at limit **
  10  Prefactor     2.7434        3.8401       -.31710E-06    .54706E-04
  11  norm          .10000E-03    .37956       -.48032E-07** at limit **
  12  norm          1.8906        .61953       -.80663E-07    .19499E-04
  13  Prefactor     4.1134        46.397       -.55742E-04    .76353E-06
  14  Prefactor     .10000E-03    5.3939       -.46171E-05** at limit **
  15  Prefactor     .10000E-03    .97579        .51491E-07** at limit **
  16  Prefactor     17.472        16.833       -.19058E-06   -.10915E-03
  17  Prefactor     .10000E-03    7.6915        .12026E-04** at limit **
  18  norm          .10000E-03    3.6865        .10217E-05** at limit **
  19  Prefactor     .10000E-03    .99642       -.60383E-07** at limit **
  20  Prefactor     56.073        46.305        .43936E-06    .13435E-05
  21  Prefactor     .10000E-03    1.6310        .12956E-06** at limit **
  22  Normalizat    .84230        .15887        .38020E-05    .53845E-04
  23  Prefactor     .93957        .11890        .57331E-06    .17677E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.17286
  Prefactor  = 6.3812
  Prefactor  = 12.9447
  Prefactor  = 0.885393
  Prefactor  = 18.1178
  norm       = 13.1936
  norm       = 0.352915
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.74342
  norm       = 0.0001
  norm       = 1.89063
  Prefactor  = 4.11343
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.4724
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 56.0734
  Prefactor  = 0.0001
  Normalizat = 0.842302
  Prefactor  = 0.939567
 **********
 **   18 **HESSE 
 **********

 FCN=   6791.181     FROM HESSE     STATUS=OK           368 CALLS     2589 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1729        4.5803        .17898E-03   -1.5299    
   2  Prefactor     6.3812        13.922        .15887E-03   -1.5203    
   3  Prefactor     12.945        19.207        .11132E-03   -1.4988    
   4  Prefactor     .88539        11.797        .25502E-02   -1.5520    
   5  Prefactor     18.118        11.556        .94095E-04   -1.4856    
   6  norm          13.194        12.469        .11028E-03   -1.4981    
   7  norm          .35291        1.0738        .14799E-03   -1.5589    
   8  Prefactor     .10000E-03    1.8121        .10819E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.2853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.7434        3.8198        .17984E-03   -1.5377    
  11  norm          .10000E-03    .38088        .49581E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.8906        .61873        .35291E-04   -1.5433    
  13  Prefactor     4.1134        46.716        .19841E-03   -1.5302    
  14  Prefactor     .10000E-03    5.4266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .98951        .79416E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     17.472        16.845        .95816E-04   -1.4872    
  17  Prefactor     .10000E-03    7.7469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.7338        .15442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.0044        .80309E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     56.073        46.323        .53570E-04   -1.4209    
  21  Prefactor     .10000E-03    1.6447        .10273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .84230        .17984        .26469E-03   -.98518    
  23  Prefactor     .93957        .13573        .19433E-03   -.94772    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13512e-08
Minuit parameter uncertainties:
  1  4.58072
  2  13.9287
  3  19.2165
  4  6.46481
  5  11.5576
  6  12.4711
  7  1.07389
  8  2.43437e-06
  9  1.62852e-05
  10  3.82011
  11  8.00943e-07
  12  0.618731
  13  27.7515
  14  1.09113e-05
  15  2.57607e-06
  16  16.8498
  17  9.20976e-05
  18  2.60548e-05
  19  6.42853e-06
  20  46.3523
  21  8.64623e-06
  22  0.179966
  23  0.135775
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  2.743e+00  3.820e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.588e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
271        Scale:  6.589e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  9.396e-01  1.358e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  8.423e-01  1.800e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.70
Ra Dec: 122.330 40.895
Photon Flux Upper Limit: 9.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/231014/likelihoodResults_474940801_475200001_4FGL_J0809.3+4053_daily_bin909.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) = 6791.18100059
delta logL = 0.000130710121994

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6791.18093096
delta logL = 0.000200332113309

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6914       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6183       1.0000          .0000       10.000    
     3 'Normalizat'    .84164       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93982       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+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=   6791.181     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      247 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6913        5.1418        .17738E-03   -.93947E-03
   2  Index         2.6184        1.6756        .13501E-01   -.10296E-03
   3  Normalizat    .84163        .17745        .26478E-03   -.90596E-04
   4  Prefactor     .93993        .13541        .19430E-03   -.14730E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.69127
  Index      = 2.61838
  Normalizat = 0.841629
  Prefactor  = 0.939927
 **********
 **   18 **HESSE 
 **********

 FCN=   6791.181     FROM HESSE     STATUS=OK            25 CALLS      272 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6913        4.5942        .70951E-05   -1.5380    
   2  Index         2.6184        1.5035        .54005E-03   -.49647    
   3  Normalizat    .84163        .17686        .10591E-04   -.98543    
   4  Prefactor     .93993        .13507        .38860E-04   -.94760    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.46367e-10
Minuit parameter uncertainties:
  1  4.59478
  2  1.53451
  3  0.176982
  4  0.135121
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/231014': 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) = 6791.18093004
delta logL = 0.000201254653803

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  2.691e+00  4.595e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.618e+00  1.535e+00  0.000e+00  1.000e+01 (-1.000e+00)
271        Scale:  6.589e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  9.399e-01  1.351e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  8.416e-01  1.770e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.70
Ra Dec: 122.330 40.895

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/231014/cmap_HighResolution_474940801_475200001_4FGL_J0809.3+4053_daily_bin909.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.42e-03', job_status='DONE', photon_flux_upper_limit='9.49e-08', time_completed='2021-08-29 08:05:09.790460', job_id='231014', GAL2='0.94', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1630249509.79', return_code2='0', ts='0.70', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='2.01e-04', ts2='0.71', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='909' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 08:05:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 231014: <4FGL_J0809.3+4053_daily_bin909> in cluster <slac> Done

Job <4FGL_J0809.3+4053_daily_bin909> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Aug 29 07:50:37 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 07:50:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 07:50:38 2021
Terminated at Sun Aug 29 08:05:10 2021
Results reported at Sun Aug 29 08:05:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin909 122.33 40.8954 474940801 475200001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0809.3+4053 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   716.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            873 sec.

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

