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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin486
RA = 122.33, Dec = 40.8954
tmin = 365299201, tmax = 365558401
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='228117', job_status='RUN', time_executed='2021-08-29 07:44:18.985408', time_epoch_executed='1630248258.99' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='486'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/228117

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/228117/ft1_4FGL_J0809.3+4053_daily_bin486.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/228117/ft2_4FGL_J0809.3+4053_daily_bin486.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/228117/ft1_4FGL_J0809.3+4053_daily_bin486.fits outfile=/scratch/kocevski/228117/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin486.fits ra=122.33 dec=40.8954 rad=12.0 tmin=365299201.0 tmax=365558401.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 4.80
user 3.22
sys 1.52

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/228117/ft1_filtered_4FGL_J0809.3+4053_daily_bin486.fits" evtable="EVENTS" scfile=/scratch/kocevski/228117/ft2_4FGL_J0809.3+4053_daily_bin486.fits sctable="SC_DATA" outfile=/scratch/kocevski/228117/ltcube_365299201_365558401_4FGL_J0809.3+4053_daily_bin486.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/228117/ft2_4FGL_J0809.3+4053_daily_bin486.fits
.....................!
real 13.02
user 11.17
sys 1.81

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/228117/ft1_filtered_4FGL_J0809.3+4053_daily_bin486.fits evtable="EVENTS" scfile=/scratch/kocevski/228117/ft2_4FGL_J0809.3+4053_daily_bin486.fits sctable="SC_DATA" expcube=/scratch/kocevski/228117/ltcube_365299201_365558401_4FGL_J0809.3+4053_daily_bin486.fits outfile=/scratch/kocevski/228117/expmap_365299201_365558401_4FGL_J0809.3+4053_daily_bin486.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/228117/ltcube_365299201_365558401_4FGL_J0809.3+4053_daily_bin486.fits
.....................!
real 191.77
user 184.79
sys 6.57

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/228117/ft1_filtered_4FGL_J0809.3+4053_daily_bin486.fits scfile=/scratch/kocevski/228117/ft2_4FGL_J0809.3+4053_daily_bin486.fits outfile=/scratch/kocevski/228117/cmap_365299201_365558401_4FGL_J0809.3+4053_daily_bin486.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 1.82
user 0.36
sys 1.45

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/228117/ft1_filtered_4FGL_J0809.3+4053_daily_bin486.fits scfile=/scratch/kocevski/228117/ft2_4FGL_J0809.3+4053_daily_bin486.fits outfile=/scratch/kocevski/228117/cmap_HighResolution_365299201_365558401_4FGL_J0809.3+4053_daily_bin486.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 1.88
user 0.38
sys 1.43

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8245       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.2658       1.0000         .10000E-03   10000.    
     3 'Prefactor '    38.288       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.822       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.127       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.8396       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10192E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .44639       1.0000         .10000E-03   10000.    
    11 'norm      '    .86781       1.0000         .10000E-03   10000.    
    12 'norm      '    .64382       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10443E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.7073       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.4300       1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.322       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.359       1.0000         .10000E-03   10000.    
    18 'norm      '    18.020       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .83982       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1385       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=   6654.623     FROM MIGRAD    STATUS=CONVERGED    497 CALLS     2195 TOTAL
                     EDM=   .76E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8256        7.2346        .22975E-05    .94239E-04
   2  Prefactor     2.2707        11.956        .47082E-06    .78233E-05
   3  Prefactor     38.272        29.199        .19682E-05    .87147E-05
   4  Prefactor     16.827        13.452       -.42217E-06    .36296E-05
   5  Prefactor     12.122        17.476        .50297E-06    .23031E-04
   6  norm          .10000E-03    3.9749       -.14370E-07** at limit **
   7  norm          .10000E-03    .88132        .14889E-08** at limit **
   8  Prefactor     3.8377        9.6108       -.13623E-06    .47152E-04
   9  Prefactor     .10000E-03    25.272        .36870E-06** at limit **
  10  Prefactor     .49262        3.1534       -.82585E-06    .35967E-03
  11  norm          .86789        1.2911       -.18147E-07   -.94616E-04
  12  norm          .64353        .42268       -.45622E-08    .44804E-03
  13  Prefactor     .10000E-03    13.220       -.17966E-05** at limit **
  14  Prefactor     5.6989        13.375        .13975E-05    .95745E-04
  15  Prefactor     2.4296        2.2218       -.11988E-06    .10218E-03
  16  Prefactor     16.331        28.518       -.18476E-05    .14599E-04
  17  Prefactor     13.359        10.489        .20630E-06    .32133E-04
  18  norm          18.020        8.6496        .35146E-07    .82719E-05
  19  Prefactor     .10000E-03    .89088        .13387E-08** at limit **
  20  Prefactor     .10000E-03    11.872        .16226E-05** at limit **
  21  Prefactor     .10000E-03    .98181       -.52417E-09** at limit **
  22  Normalizat    .83966        .18565        .56189E-06    .76836E-04
  23  Prefactor     1.1385        .14218       -.65644E-06    .13780E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.82557
  Prefactor  = 2.27069
  Prefactor  = 38.2723
  Prefactor  = 16.8266
  Prefactor  = 12.1223
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.83772
  Prefactor  = 0.0001
  Prefactor  = 0.492624
  norm       = 0.867886
  norm       = 0.643532
  Prefactor  = 0.0001
  Prefactor  = 5.69887
  Prefactor  = 2.42963
  Prefactor  = 16.3311
  Prefactor  = 13.3594
  norm       = 18.0201
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.839662
  Prefactor  = 1.13851
 **********
 **   18 **HESSE 
 **********

 FCN=   6654.623     FROM HESSE     STATUS=OK           382 CALLS     2577 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8256        7.2810        .10319E-02   -1.5317    
   2  Prefactor     2.2707        11.906        .27287E-03   -1.5407    
   3  Prefactor     38.272        29.178        .64774E-04   -1.4470    
   4  Prefactor     16.827        13.442        .97653E-04   -1.4887    
   5  Prefactor     12.122        17.433        .11503E-03   -1.5011    
   6  norm          .10000E-03    3.9925        .15883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .88333        .74751E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.8377        9.5244        .20596E-03   -1.5316    
   9  Prefactor     .10000E-03    25.295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .49262        12.971        .24386E-02   -1.5568    
  11  norm          .86789        1.0781        .11023E-02   -1.5522    
  12  norm          .64353        .43857        .40344E-03   -1.5548    
  13  Prefactor     .10000E-03    13.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.6989        13.210        .16813E-03   -1.5230    
  15  Prefactor     2.4296        2.2026        .10753E-03   -1.5396    
  16  Prefactor     16.331        28.472        .99136E-04   -1.4900    
  17  Prefactor     13.359        10.480        .10959E-03   -1.4977    
  18  norm          18.020        8.6637        .94351E-04   -1.4859    
  19  Prefactor     .10000E-03    .89678        .75159E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    .98521        .78933E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .83966        .20987        .29672E-03   -.98614    
  23  Prefactor     1.1385        .16100        .20392E-03   -.88245    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.9374e-10
Minuit parameter uncertainties:
  1  7.28273
  2  10.402
  3  29.1892
  4  13.4445
  5  17.4405
  6  2.08766e-07
  7  3.0195e-07
  8  9.52814
  9  1.1104e-05
  10  5.05634
  11  1.07817
  12  0.438572
  13  4.36285e-07
  14  13.2169
  15  2.20265
  16  28.4952
  17  10.4817
  18  8.66426
  19  8.9707e-08
  20  3.52604e-06
  21  7.37282e-08
  22  0.210069
  23  0.161073
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  4.926e-01  5.056e+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.139e+00  1.611e-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.397e-01  2.101e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/228117/likelihoodResults_365299201_365558401_4FGL_J0809.3+4053_daily_bin486.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) = 6654.13015371
delta logL = 0.492789718213

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6654.02256525
delta logL = 0.60037817966

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .95217E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    5.3648       1.0000          .0000       10.000    
     3 'Normalizat'    .77960       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1662       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=   6654.023     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      240 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .94570E-01    1.5046        .54232E-02    .37395E-02
   2  Index         5.3696        3.3032        .14192        .14687E-03
   3  Normalizat    .77981        .38744E-01    .69289E-01    .23923E-04
   4  Prefactor     1.1661        .30707E-01    .35485E-01   -.40976E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0945697
  Index      = 5.3696
  Normalizat = 0.779806
  Prefactor  = 1.16609
 **********
 **   18 **HESSE 
 **********

 FCN=   6654.023     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      273 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .94570E-01    4.6418        .24932E-03   -1.5646    
   2  Index         5.3696        7.6839        .73593E-02    .73988E-01
   3  Normalizat    .77981        .14673        .30660E-03   -1.0082    
   4  Prefactor     1.1661        .11437        .20173E-03   -.87381    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.15238e-11
Minuit parameter uncertainties:
  1  1.32451
  2  8.07054
  3  0.1468
  4  0.114393
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/228117': 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) = 6654.022562
delta logL = 0.600381425501

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  9.457e-02  1.325e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  5.370e+00  8.071e+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.166e+00  1.144e-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:  7.798e-01  1.468e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.29
Ra Dec: 122.330 40.895
Photon Index (Free Index): 5.37 +/- 8.07
Photon Flux (Free Index): 5.44e-08 +/- 6.03e-08
Energy Flux (Free Index): 7.03e-06 +/- 1.04e-05

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/228117/cmap_HighResolution_365299201_365558401_4FGL_J0809.3+4053_daily_bin486.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.91e-03', comment='SUCCESS', energy_flux2='7.03e-06', dlogl='6.00e-01', photon_flux2='5.44e-08', job_status='DONE', time_completed='2021-08-29 07:56:08.567909', photon_index_error2='8.07', photon_index2='5.37', ts='0.01', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='1.01e-07', energy_flux_error2='1.04e-05', EG='0.84', time_epoch_completed='1630248968.57', return_code='0', job_id='228117', GAL2='1.17', EG2='0.78', return_code2='102', photon_flux_error2='6.03e-08', ts2='1.29', photon_index='2.59' WHERE bin_id='486' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:56:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0119>
Subject: Job 228117: <4FGL_J0809.3+4053_daily_bin486> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin486 122.33 40.8954 365299201 365558401 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 :                                   728.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             256.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            921 sec.

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

