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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin1023
RA = 122.33, Dec = 40.8954
tmin = 504489601, tmax = 504748801
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='231185', job_status='RUN', time_executed='2021-08-29 07:51:40.973680', time_epoch_executed='1630248700.97' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='1023'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/231185

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/231185/ft1_4FGL_J0809.3+4053_daily_bin1023.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/231185/ft2_4FGL_J0809.3+4053_daily_bin1023.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/231185/ft1_4FGL_J0809.3+4053_daily_bin1023.fits outfile=/scratch/kocevski/231185/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin1023.fits ra=122.33 dec=40.8954 rad=12.0 tmin=504489601.0 tmax=504748801.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 6.68
user 4.14
sys 2.51

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/231185/ft2_4FGL_J0809.3+4053_daily_bin1023.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/231185/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin1023.fits evtable="EVENTS" outfile="/scratch/kocevski/231185/ft1_filtered_4FGL_J0809.3+4053_daily_bin1023.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 2.78
user 0.32
sys 2.44

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/231185/ft1_filtered_4FGL_J0809.3+4053_daily_bin1023.fits" evtable="EVENTS" scfile=/scratch/kocevski/231185/ft2_4FGL_J0809.3+4053_daily_bin1023.fits sctable="SC_DATA" outfile=/scratch/kocevski/231185/ltcube_504489601_504748801_4FGL_J0809.3+4053_daily_bin1023.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/231185/ft2_4FGL_J0809.3+4053_daily_bin1023.fits
.....................!
real 14.14
user 11.27
sys 2.83

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/231185/ft1_filtered_4FGL_J0809.3+4053_daily_bin1023.fits evtable="EVENTS" scfile=/scratch/kocevski/231185/ft2_4FGL_J0809.3+4053_daily_bin1023.fits sctable="SC_DATA" expcube=/scratch/kocevski/231185/ltcube_504489601_504748801_4FGL_J0809.3+4053_daily_bin1023.fits outfile=/scratch/kocevski/231185/expmap_504489601_504748801_4FGL_J0809.3+4053_daily_bin1023.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/231185/ltcube_504489601_504748801_4FGL_J0809.3+4053_daily_bin1023.fits
.....................!
real 193.72
user 185.46
sys 7.59

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/231185/ft1_filtered_4FGL_J0809.3+4053_daily_bin1023.fits scfile=/scratch/kocevski/231185/ft2_4FGL_J0809.3+4053_daily_bin1023.fits outfile=/scratch/kocevski/231185/cmap_504489601_504748801_4FGL_J0809.3+4053_daily_bin1023.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 2.76
user 0.37
sys 2.36

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/231185/ft1_filtered_4FGL_J0809.3+4053_daily_bin1023.fits scfile=/scratch/kocevski/231185/ft2_4FGL_J0809.3+4053_daily_bin1023.fits outfile=/scratch/kocevski/231185/cmap_HighResolution_504489601_504748801_4FGL_J0809.3+4053_daily_bin1023.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 2.77
user 0.38
sys 2.38

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.650       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    16.086       1.0000         .10000E-03   10000.    
     7 'norm      '    .10315E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.1911       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.4452       1.0000         .10000E-03   10000.    
    12 'norm      '    1.9859       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.5755       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9858       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.745       1.0000         .10000E-03   10000.    
    18 'norm      '    .12281E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    43.808       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.0145       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .64628       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0544       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=   6271.531     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2537 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.4687       -.34650E-07** at limit **
   2  Prefactor     .10000E-03    4.8672        .56101E-06** at limit **
   3  Prefactor     15.648        26.721       -.49197E-06   -.31978E-04
   4  Prefactor     .10000E-03    5.9326       -.12210E-05** at limit **
   5  Prefactor     .10000E-03    15.546        .33140E-05** at limit **
   6  norm          16.086        12.456        .46459E-07   -.68477E-05
   7  norm          .10000E-03    1.6907        .13674E-06** at limit **
   8  Prefactor     4.1901        5.1996        .27871E-05   -.15660E-02
   9  Prefactor     .10000E-03    33.963       -.24511E-06** at limit **
  10  Prefactor     .10000E-03    2.8552       -.71363E-08** at limit **
  11  norm          3.4452        2.0095       -.12545E-08    .14597E-04
  12  norm          1.9860        .74714       -.33955E-07    .42157E-04
  13  Prefactor     2.5683        70.091       -.51738E-05   -.98730E-04
  14  Prefactor     .10000E-03    7.3878        .13457E-05** at limit **
  15  Prefactor     1.9860        1.8488       -.27380E-07   -.81313E-04
  16  Prefactor     .10001E-03    12.806       -.33554E-05** at limit **
  17  Prefactor     14.746        12.509        .43825E-06   -.15759E-03
  18  norm          .10056E-03    3.1071       -.99145E-06** at limit **
  19  Prefactor     .10000E-03    1.4278        .26171E-07** at limit **
  20  Prefactor     43.780        77.902       -.11068E-04   -.27054E-03
  21  Prefactor     5.0140        4.6804        .14648E-05   -.83466E-03
  22  Normalizat    .64642        .17358        .32377E-06    .74620E-04
  23  Prefactor     1.0542        .12834       -.29702E-06    .15149E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.6482
  Prefactor  = 0.000100001
  Prefactor  = 0.000100004
  norm       = 16.0861
  norm       = 0.0001
  Prefactor  = 4.19012
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.44519
  norm       = 1.98597
  Prefactor  = 2.56834
  Prefactor  = 0.000100001
  Prefactor  = 1.98601
  Prefactor  = 0.000100005
  Prefactor  = 14.7463
  norm       = 0.000100556
  Prefactor  = 0.0001
  Prefactor  = 43.7804
  Prefactor  = 5.01397
  Normalizat = 0.646422
  Prefactor  = 1.05422
 **********
 **   18 **HESSE 
 **********

 FCN=   6271.531     FROM HESSE     STATUS=OK           372 CALLS     2909 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.5182        .14402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.8872        .17074E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.648        26.715        .10124E-03   -1.4917    
   4  Prefactor     .10000E-03    6.0103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          16.086        12.454        .99862E-04   -1.4906    
   7  norm          .10000E-03    3.1162        .19848E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.1901        5.6383        .98428E-03   -1.5299    
   9  Prefactor     .10000E-03    34.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.8882        .13053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.4452        2.0101        .83152E-04   -1.5337    
  12  norm          1.9860        .74488        .39760E-04   -1.5426    
  13  Prefactor     2.5683        72.400        .25432E-03   -1.5387    
  14  Prefactor     .10000E-03    7.4728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.9860        1.8538        .10035E-03   -1.5426    
  16  Prefactor     .10001E-03    13.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     14.746        12.553        .52152E-03   -1.4940    
  18  norm          .10056E-03    47.942        .26542E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.4514        .92316E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     43.780        80.578        .60571E-04   -1.4384    
  21  Prefactor     5.0140        4.7037        .75714E-03   -1.5260    
  22  Normalizat    .64642        .19598        .30590E-03   -1.0605    
  23  Prefactor     1.0542        .14555        .18665E-03   -.90943    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51578e-08
Minuit parameter uncertainties:
  1  7.18807e-06
  2  4.52402e-05
  3  26.7356
  4  0.000132716
  5  0.000501584
  6  12.4562
  7  3.54919e-05
  8  5.63904
  9  8.99504e-05
  10  8.06121e-06
  11  2.0101
  12  0.74488
  13  27.3086
  14  0.000151281
  15  1.8539
  16  0.000526876
  17  12.5556
  18  0.0103307
  19  3.52802e-07
  20  80.7791
  21  4.70402
  22  0.196193
  23  0.145604
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  8.061e-06  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.456e-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:  6.464e-01  1.962e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/231185/likelihoodResults_504489601_504748801_4FGL_J0809.3+4053_daily_bin1023.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) = 6271.53271287
delta logL = -0.00165098691468

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6271.53106203
delta logL = -1.4725355868e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5789       1.0000          .0000       10.000    
     3 'Normalizat'    .64640       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0543       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6271.531     FROM MIGRAD    STATUS=FAILED        85 CALLS      234 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10066E-03    95.378        .13098E-02** at limit **
   2  Index         2.5225        6.6229        .50000        .19910E-04
   3  Normalizat    .64642        .25383E-01    .30590E-03    .25644E-04
   4  Prefactor     1.0542        .19531E-01    .18665E-03    .54478E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6271.531     FROM SIMPLEX   STATUS=UNCHANGED    131 CALLS      365 TOTAL
                     EDM=   .82E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10066E-03    95.378        .26610E-03** at limit **
   2  Index         2.5225        6.6229        .66021E-04    .19910E-04
   3  Normalizat    .64642        .25383E-01    .15683E-05    .25644E-04
   4  Prefactor     1.0542        .19531E-01    .31456E-06    .54478E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6271.531     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      406 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    478.06        .26196E-03** at limit **
   2  Index         2.3713        5.3416        .50000        .47294E-08
   3  Normalizat    .64642        .72710E-01    .12236E-04   -.16148E-03
   4  Prefactor     1.0542        .55920E-01    .37329E-04   -.25064E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.37132
  Normalizat = 0.646422
  Prefactor  = 1.05422
 **********
 **   18 **HESSE 
 **********

 FCN=   6271.531     FROM HESSE     STATUS=OK            29 CALLS      435 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.6576        .52391E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3713        5.2759        .50000       -.55358    
   3  Normalizat    .64642        .18734        .24472E-05   -1.0605    
   4  Prefactor     1.0542        .14427        .74659E-05   -.90943    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.19574e-11
Minuit parameter uncertainties:
  1  1.49287e-07
  2  107.473
  3  0.187523
  4  0.14432
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/231185': 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) = 6271.53106118
delta logL = 7.06614628143e-07

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  1.493e-07  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.371e+00  1.075e+02  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.054e+00  1.443e-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:  6.464e-01  1.875e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 122.330 40.895

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/231185/cmap_HighResolution_504489601_504748801_4FGL_J0809.3+4053_daily_bin1023.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.20e-03', job_status='DONE', photon_flux_upper_limit='7.92e-08', time_completed='2021-08-29 08:04:10.483916', job_id='231185', GAL2='1.05', fit_tolerance='1e-08', EG2='0.65', EG='0.65', time_epoch_completed='1630249450.48', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='7.07e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1023' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 08:04:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 231185: <4FGL_J0809.3+4053_daily_bin1023> in cluster <slac> Done

Job <4FGL_J0809.3+4053_daily_bin1023> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Aug 29 07:50:49 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 07:50:51 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:51 2021
Terminated at Sun Aug 29 08:04:11 2021
Results reported at Sun Aug 29 08:04:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin1023 122.33 40.8954 504489601 504748801 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 :                                   774.19 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             286.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            802 sec.

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

