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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin368
RA = 122.33, Dec = 40.8954
tmin = 334713601, tmax = 334972801
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='227933', job_status='RUN', time_executed='2021-08-29 07:43:15.469091', time_epoch_executed='1630248195.47' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='368'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/227933

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/227933/ft1_4FGL_J0809.3+4053_daily_bin368.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/227933/ft2_4FGL_J0809.3+4053_daily_bin368.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/227933/ft1_4FGL_J0809.3+4053_daily_bin368.fits outfile=/scratch/kocevski/227933/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin368.fits ra=122.33 dec=40.8954 rad=12.0 tmin=334713601.0 tmax=334972801.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.79
user 3.26
sys 0.51

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/227933/ft2_4FGL_J0809.3+4053_daily_bin368.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/227933/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin368.fits evtable="EVENTS" outfile="/scratch/kocevski/227933/ft1_filtered_4FGL_J0809.3+4053_daily_bin368.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.84
user 0.33
sys 0.46

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/227933/ft1_filtered_4FGL_J0809.3+4053_daily_bin368.fits" evtable="EVENTS" scfile=/scratch/kocevski/227933/ft2_4FGL_J0809.3+4053_daily_bin368.fits sctable="SC_DATA" outfile=/scratch/kocevski/227933/ltcube_334713601_334972801_4FGL_J0809.3+4053_daily_bin368.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/227933/ft2_4FGL_J0809.3+4053_daily_bin368.fits
.....................!
real 12.27
user 11.55
sys 0.66

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/227933/ft1_filtered_4FGL_J0809.3+4053_daily_bin368.fits evtable="EVENTS" scfile=/scratch/kocevski/227933/ft2_4FGL_J0809.3+4053_daily_bin368.fits sctable="SC_DATA" expcube=/scratch/kocevski/227933/ltcube_334713601_334972801_4FGL_J0809.3+4053_daily_bin368.fits outfile=/scratch/kocevski/227933/expmap_334713601_334972801_4FGL_J0809.3+4053_daily_bin368.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/227933/ltcube_334713601_334972801_4FGL_J0809.3+4053_daily_bin368.fits
.....................!
real 191.01
user 185.02
sys 5.28

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/227933/ft1_filtered_4FGL_J0809.3+4053_daily_bin368.fits scfile=/scratch/kocevski/227933/ft2_4FGL_J0809.3+4053_daily_bin368.fits outfile=/scratch/kocevski/227933/cmap_334713601_334972801_4FGL_J0809.3+4053_daily_bin368.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.85
user 0.37
sys 0.44

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/227933/ft1_filtered_4FGL_J0809.3+4053_daily_bin368.fits scfile=/scratch/kocevski/227933/ft2_4FGL_J0809.3+4053_daily_bin368.fits outfile=/scratch/kocevski/227933/cmap_HighResolution_334713601_334972801_4FGL_J0809.3+4053_daily_bin368.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.84
user 0.38
sys 0.45

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1241       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .29061E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.088       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    8.3753       1.0000         .10000E-03   10000.    
     7 'norm      '    4.1914       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.3127       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10831E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.4976       1.0000         .10000E-03   10000.    
    11 'norm      '    5.4297       1.0000         .10000E-03   10000.    
    12 'norm      '    1.0074       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.7316       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.093       1.0000         .10000E-03   10000.    
    18 'norm      '    .10833E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.8894       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.8507       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3249       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .77782       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=   7083.831     FROM MIGRAD    STATUS=CONVERGED    532 CALLS     2202 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1256        6.3308       -.40756E-06    .29122E-03
   2  Prefactor     .10003E-03    46.838       -.14768E-04** at limit **
   3  Prefactor     .10000E-03    15.765       -.25058E-05** at limit **
   4  Prefactor     10.087        11.897        .30125E-07    .68718E-04
   5  Prefactor     .10000E-03    5.4969        .20443E-08** at limit **
   6  norm          8.3757        8.1528       -.90020E-07    .24701E-04
   7  norm          4.1908        3.2283       -.84833E-07    .98199E-04
   8  Prefactor     9.2911        8.2656        .15991E-06   -.53112E-04
   9  Prefactor     .10000E-03    112.83        .37880E-05** at limit **
  10  Prefactor     3.4974        5.0561       -.13817E-05   -.61895E-04
  11  norm          5.4297        2.1614        .78922E-08   -.20328E-04
  12  norm          1.0073        .48229        .39042E-07    .29945E-03
  13  Prefactor     .10000E-03    55.171       -.67440E-05** at limit **
  14  Prefactor     .10000E-03    4.2128        .35765E-07** at limit **
  15  Prefactor     3.7318        2.8047        .69829E-07    .23722E-03
  16  Prefactor     .10000E-03    11.958       -.15211E-06** at limit **
  17  Prefactor     12.092        11.510        .29508E-07    .35437E-04
  18  norm          .10002E-03    5.6014       -.37999E-05** at limit **
  19  Prefactor     4.8895        2.7457       -.12239E-07   -.60844E-04
  20  Prefactor     .10000E-03    18.208        .11732E-05** at limit **
  21  Prefactor     2.8511        3.7444       -.28772E-06    .12888E-03
  22  Normalizat    1.3249        .18747       -.47694E-07    .60678E-04
  23  Prefactor     .77772        .13223        .27881E-06    .24400E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.12565
  Prefactor  = 0.000100032
  Prefactor  = 0.000100001
  Prefactor  = 10.0875
  Prefactor  = 0.0001
  norm       = 8.37567
  norm       = 4.19084
  Prefactor  = 9.29107
  Prefactor  = 0.000100001
  Prefactor  = 3.4974
  norm       = 5.42973
  norm       = 1.00728
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 3.73179
  Prefactor  = 0.0001
  Prefactor  = 12.0922
  norm       = 0.000100017
  Prefactor  = 4.88949
  Prefactor  = 0.0001
  Prefactor  = 2.85107
  Normalizat = 1.32492
  Prefactor  = 0.777725
 **********
 **   18 **HESSE 
 **********

 FCN=   7083.831     FROM HESSE     STATUS=OK           378 CALLS     2580 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1256        6.6105        .28295E-03   -1.5416    
   2  Prefactor     .10003E-03    56.799        .40688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.087        11.878        .12616E-03   -1.5073    
   5  Prefactor     .10000E-03    5.5025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          8.3757        8.1532        .13852E-03   -1.5129    
   7  norm          4.1908        3.2202        .12263E-03   -1.5299    
   8  Prefactor     9.2911        8.2409        .13133E-03   -1.5098    
   9  Prefactor     .10000E-03    114.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.4974        5.0585        .21371E-03   -1.5334    
  11  norm          5.4297        2.1623        .75987E-04   -1.5242    
  12  norm          1.0073        .48656        .38893E-04   -1.5507    
  13  Prefactor     .10000E-03    56.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.2175        .16868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.7318        2.8035        .11670E-03   -1.5322    
  16  Prefactor     .10000E-03    11.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.092        11.525        .11519E-03   -1.5012    
  18  norm          .10002E-03    14.197        .29740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.8895        2.7443        .10142E-03   -1.5266    
  20  Prefactor     .10000E-03    18.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.8511        3.7513        .18093E-03   -1.5370    
  22  Normalizat    1.3249        .21762        .25754E-03   -.82826    
  23  Prefactor     .77772        .15373        .23537E-03   -1.0055    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03515e-09
Minuit parameter uncertainties:
  1  6.61281
  2  0.002684
  3  0.000187806
  4  11.8806
  5  2.53351e-07
  6  8.1543
  7  3.22035
  8  8.24186
  9  0.000645927
  10  5.05907
  11  2.16229
  12  0.486558
  13  0.000745456
  14  1.4604e-05
  15  2.80363
  16  6.40783e-06
  17  11.5275
  18  0.000969969
  19  2.74435
  20  9.66585e-05
  21  3.75165
  22  0.217767
  23  0.15381
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  3.497e+00  5.059e+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:  7.777e-01  1.538e-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.325e+00  2.178e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/227933/likelihoodResults_334713601_334972801_4FGL_J0809.3+4053_daily_bin368.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) = 7083.72330801
delta logL = 0.107576674245

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7083.7188322
delta logL = 0.112052479103

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4684       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1532       1.0000          .0000       10.000    
     3 'Normalizat'    1.3069       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78612       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=   7083.719     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      238 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4669        67.851        .65068E-02    .85261E-03
   2  Index         3.1535        6.5558        .21777        .91023E-04
   3  Normalizat    1.3069        .49222E-01    .58564E-01   -.23353E-05
   4  Prefactor     .78612        .34749E-01    .43536E-01    .23756E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.46689
  Index      = 3.15351
  Normalizat = 1.30687
  Prefactor  = 0.786122
 **********
 **   18 **HESSE 
 **********

 FCN=   7083.719     FROM HESSE     STATUS=OK            33 CALLS      271 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4669        5.8852        .14944E-03   -1.5394    
   2  Index         3.1535        1.6491        .96244E-02   -.37825    
   3  Normalizat    1.3069        .21480        .25899E-03   -.83362    
   4  Prefactor     .78612        .15259        .23423E-03   -1.0024    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08359e-11
Minuit parameter uncertainties:
  1  5.88654
  2  1.68589
  3  0.214944
  4  0.152673
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/227933': 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) = 7083.71883215
delta logL = 0.112052533864

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  2.467e+00  5.887e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  3.154e+00  1.686e+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:  7.861e-01  1.527e-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.307e+00  2.149e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/227933/cmap_HighResolution_334713601_334972801_4FGL_J0809.3+4053_daily_bin368.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.48e-03', job_status='DONE', photon_flux_upper_limit='1.21e-07', time_completed='2021-08-29 07:55:24.037893', job_id='227933', GAL2='0.79', fit_tolerance='1e-08', EG2='1.31', EG='1.32', time_epoch_completed='1630248924.04', return_code2='0', ts='0.60', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='1.12e-01', ts2='0.84', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='368' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:55:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 227933: <4FGL_J0809.3+4053_daily_bin368> in cluster <slac> Done

Job <4FGL_J0809.3+4053_daily_bin368> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Aug 29 07:40:32 2021
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 07:40:33 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:40:33 2021
Terminated at Sun Aug 29 07:55:24 2021
Results reported at Sun Aug 29 07:55:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin368 122.33 40.8954 334713601 334972801 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 :                                   729.06 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             291.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            892 sec.

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

