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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin81
RA = 122.33, Dec = 40.8954
tmin = 260323201, tmax = 260582401
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='225313', job_status='RUN', time_executed='2021-08-29 07:31:30.185013', time_epoch_executed='1630247490.19' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='81'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/225313

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/225313/ft1_4FGL_J0809.3+4053_daily_bin81.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/225313/ft2_4FGL_J0809.3+4053_daily_bin81.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/225313/ft1_4FGL_J0809.3+4053_daily_bin81.fits outfile=/scratch/kocevski/225313/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin81.fits ra=122.33 dec=40.8954 rad=12.0 tmin=260323201.0 tmax=260582401.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 1.57
user 1.35
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/225313/ft2_4FGL_J0809.3+4053_daily_bin81.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/225313/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin81.fits evtable="EVENTS" outfile="/scratch/kocevski/225313/ft1_filtered_4FGL_J0809.3+4053_daily_bin81.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.49
user 0.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/225313/ft1_filtered_4FGL_J0809.3+4053_daily_bin81.fits" evtable="EVENTS" scfile=/scratch/kocevski/225313/ft2_4FGL_J0809.3+4053_daily_bin81.fits sctable="SC_DATA" outfile=/scratch/kocevski/225313/ltcube_260323201_260582401_4FGL_J0809.3+4053_daily_bin81.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/225313/ft2_4FGL_J0809.3+4053_daily_bin81.fits
.....................!
real 13.70
user 13.35
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/225313/ft1_filtered_4FGL_J0809.3+4053_daily_bin81.fits evtable="EVENTS" scfile=/scratch/kocevski/225313/ft2_4FGL_J0809.3+4053_daily_bin81.fits sctable="SC_DATA" expcube=/scratch/kocevski/225313/ltcube_260323201_260582401_4FGL_J0809.3+4053_daily_bin81.fits outfile=/scratch/kocevski/225313/expmap_260323201_260582401_4FGL_J0809.3+4053_daily_bin81.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/225313/ltcube_260323201_260582401_4FGL_J0809.3+4053_daily_bin81.fits
.....................!
real 189.92
user 184.90
sys 4.65

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/225313/ft1_filtered_4FGL_J0809.3+4053_daily_bin81.fits scfile=/scratch/kocevski/225313/ft2_4FGL_J0809.3+4053_daily_bin81.fits outfile=/scratch/kocevski/225313/cmap_260323201_260582401_4FGL_J0809.3+4053_daily_bin81.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/225313/ft1_filtered_4FGL_J0809.3+4053_daily_bin81.fits scfile=/scratch/kocevski/225313/ft2_4FGL_J0809.3+4053_daily_bin81.fits outfile=/scratch/kocevski/225313/cmap_HighResolution_260323201_260582401_4FGL_J0809.3+4053_daily_bin81.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.53
user 0.38
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/225313/ft1_filtered_4FGL_J0809.3+4053_daily_bin81.fits', '/scratch/kocevski/225313/ft2_4FGL_J0809.3+4053_daily_bin81.fits', expMap='/scratch/kocevski/225313/expmap_260323201_260582401_4FGL_J0809.3+4053_daily_bin81.fits', expCube='/scratch/kocevski/225313/ltcube_260323201_260582401_4FGL_J0809.3+4053_daily_bin81.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/225313/Model_4FGL_J0809.3+4053_daily_bin81.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/225313/ft1_filtered_4FGL_J0809.3+4053_daily_bin81.fits
Spacecraft file(s): /scratch/kocevski/225313/ft2_4FGL_J0809.3+4053_daily_bin81.fits
Exposure map: /scratch/kocevski/225313/expmap_260323201_260582401_4FGL_J0809.3+4053_daily_bin81.fits
Exposure cube: /scratch/kocevski/225313/ltcube_260323201_260582401_4FGL_J0809.3+4053_daily_bin81.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/225313/Model_4FGL_J0809.3+4053_daily_bin81.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) = 7887.35716677

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.9326       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.4274       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.2715       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.5878       1.0000         .10000E-03   10000.    
    11 'norm      '    2.6826       1.0000         .10000E-03   10000.    
    12 'norm      '    1.1391       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.7546       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    54.326       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.0165       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .80263       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.9100       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0451       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0546       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=   7887.263     FROM MIGRAD    STATUS=CONVERGED    494 CALLS     2162 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.4254        .32048E-06** at limit **
   2  Prefactor     .10000E-03    5.4174       -.30516E-06** at limit **
   3  Prefactor     .10000E-03    25.896       -.12858E-05** at limit **
   4  Prefactor     .10000E-03    5.1097       -.11425E-06** at limit **
   5  Prefactor     8.9343        17.097        .10078E-05   -.59498E-04
   6  norm          .10000E-03    1.9950       -.69382E-07** at limit **
   7  norm          2.4275        2.2334       -.87228E-07   -.16351E-03
   8  Prefactor     7.2718        9.2896       -.30785E-06   -.84460E-04
   9  Prefactor     .10000E-03    21.438        .36975E-05** at limit **
  10  Prefactor     2.5884        4.4926       -.15219E-05   -.65241E-03
  11  norm          2.6826        1.5574        .26022E-08    .43833E-04
  12  norm          1.1391        .62009        .12318E-07   -.18866E-03
  13  Prefactor     .10000E-03    9.2058        .15922E-06** at limit **
  14  Prefactor     7.7515        13.706       -.19179E-05   -.40233E-04
  15  Prefactor     .10000E-03    1.3224        .57776E-07** at limit **
  16  Prefactor     54.333        31.723        .74187E-05   -.41577E-03
  17  Prefactor     6.0020        10.200       -.19505E-05   -.98105E-04
  18  norm          .10000E-03    1.9860        .10077E-06** at limit **
  19  Prefactor     .80200        2.4000       -.12391E-05   -.15427E-02
  20  Prefactor     .10000E-03    19.770       -.28319E-05** at limit **
  21  Prefactor     1.9090        3.2421       -.27273E-06   -.64872E-03
  22  Normalizat    1.0454        .17492       -.51431E-07    .66635E-04
  23  Prefactor     1.0544        .12822        .41992E-07    .53943E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.93431
  norm       = 0.0001
  norm       = 2.42748
  Prefactor  = 7.27177
  Prefactor  = 0.0001
  Prefactor  = 2.58839
  norm       = 2.6826
  norm       = 1.13906
  Prefactor  = 0.0001
  Prefactor  = 7.75152
  Prefactor  = 0.0001
  Prefactor  = 54.3333
  Prefactor  = 6.00198
  norm       = 0.0001
  Prefactor  = 0.801996
  Prefactor  = 0.0001
  Prefactor  = 1.90903
  Normalizat = 1.04536
  Prefactor  = 1.0544
 **********
 **   18 **HESSE 
 **********

 FCN=   7887.263     FROM HESSE     STATUS=OK           370 CALLS     2532 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.4708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.4394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    26.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.1240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.9343        17.016        .13411E-03   -1.5110    
   6  norm          .10000E-03    1.9963        .12250E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.4275        2.2306        .12338E-03   -1.5396    
   8  Prefactor     7.2718        9.2477        .14874E-03   -1.5169    
   9  Prefactor     .10000E-03    21.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.5884        4.5799        .23437E-03   -1.5386    
  11  norm          2.6826        1.5568        .82337E-04   -1.5380    
  12  norm          1.1391        .61228        .47073E-04   -1.5495    
  13  Prefactor     .10000E-03    9.2247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.7515        13.570        .14400E-03   -1.5151    
  15  Prefactor     .10000E-03    1.3444        .19846E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     54.333        30.409        .54420E-04   -1.4232    
  17  Prefactor     6.0020        10.189        .16370E-03   -1.5218    
  18  norm          .10000E-03    1.9915        .12222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .80200        2.5618        .24278E-03   -1.5529    
  20  Prefactor     .10000E-03    19.711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.9090        3.2439        .20212E-03   -1.5432    
  22  Normalizat    1.0454        .20187        .28007E-03   -.91526    
  23  Prefactor     1.0544        .14817        .21287E-03   -.90938    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.99172e-09
Minuit parameter uncertainties:
  1  9.13761e-06
  2  8.938e-06
  3  7.22242e-05
  4  3.56059e-06
  5  17.0247
  6  1.24072e-06
  7  2.23063
  8  9.2495
  9  0.0001768
  10  4.58051
  11  1.55683
  12  0.612288
  13  4.9415e-06
  14  13.5758
  15  3.0156e-06
  16  30.4176
  17  10.1918
  18  1.05932e-06
  19  2.56218
  20  0.000133574
  21  3.24424
  22  0.202014
  23  0.148231
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  2.588e+00  4.581e+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:  1.054e+00  1.482e-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:  1.045e+00  2.020e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.40
Ra Dec: 122.330 40.895
Photon Flux Upper Limit: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/225313/likelihoodResults_260323201_260582401_4FGL_J0809.3+4053_daily_bin81.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) = 7886.86673752
delta logL = 0.396443679528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7886.8276609
delta logL = 0.435520302543

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .38523       1.0000         .10000E-03   10000.    
     2 'Index     '    4.6558       1.0000          .0000       10.000    
     3 'Normalizat'    .98361       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0856       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.

 FCN=   7886.828     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      270 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .38415        4.3499        .10776E-01    .22182E-02
   2  Index         4.6578        3.0294        .14082        .16512E-03
   3  Normalizat    .98369        .35155E-01    .45961E-01    .18557E-04
   4  Prefactor     1.0855        .26988E-01    .38160E-01   -.29232E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.384152
  Index      = 4.65785
  Normalizat = 0.983692
  Prefactor  = 1.08554
 **********
 **   18 **HESSE 
 **********

 FCN=   7886.828     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      303 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .38415        14.944        .48377E-04   -1.5584    
   2  Index         4.6578        7.3220        .75683E-02   -.68484E-01
   3  Normalizat    .98369        .16900        .28727E-03   -.93579    
   4  Prefactor     1.0855        .12589        .21017E-03   -.89930    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.11227e-06
Minuit parameter uncertainties:
  1  4.79262
  2  7.86441
  3  0.16909
  4  0.125925
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/225313': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7886.82766029
delta logL = 0.435520915757

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  3.842e-01  4.793e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  4.658e+00  7.864e+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:  1.086e+00  1.259e-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:  9.837e-01  1.691e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.40
Ra Dec: 122.330 40.895
Photon Index (Free Index): 4.66 +/- 7.86
Photon Flux (Free Index): 6.88e-08 +/- 6.36e-08
Energy Flux (Free Index): 9.45e-06 +/- 1.01e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/225313/cmap_HighResolution_260323201_260582401_4FGL_J0809.3+4053_daily_bin81.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.31e-03', comment='SUCCESS', energy_flux2='9.45e-06', dlogl='4.36e-01', photon_flux2='6.88e-08', job_status='DONE', time_completed='2021-08-29 07:44:03.589501', photon_index_error2='7.86', photon_index2='4.66', ts='0.40', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.06e-07', energy_flux_error2='1.01e-05', EG='1.05', time_epoch_completed='1630248243.59', return_code='0', job_id='225313', GAL2='1.09', EG2='0.98', return_code2='102', photon_flux_error2='6.36e-08', ts2='1.40', photon_index='2.59' WHERE bin_id='81' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:44:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 225313: <4FGL_J0809.3+4053_daily_bin81> in cluster <slac> Done

Job <4FGL_J0809.3+4053_daily_bin81> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sun Aug 29 07:30:53 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 07:30:54 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:30:54 2021
Terminated at Sun Aug 29 07:44:04 2021
Results reported at Sun Aug 29 07:44:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin81 122.33 40.8954 260323201 260582401 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 :                                   751.44 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             323.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            791 sec.

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

