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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin540
RA = 122.33, Dec = 40.8954
tmin = 379296001, tmax = 379555201
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='228199', job_status='RUN', time_executed='2021-08-29 07:41:14.174630', time_epoch_executed='1630248074.17' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='540'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/228199

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/228199/ft1_4FGL_J0809.3+4053_daily_bin540.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/228199/ft2_4FGL_J0809.3+4053_daily_bin540.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/228199/ft1_4FGL_J0809.3+4053_daily_bin540.fits outfile=/scratch/kocevski/228199/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin540.fits ra=122.33 dec=40.8954 rad=12.0 tmin=379296001.0 tmax=379555201.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.84
user 4.39
sys 0.41

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/228199/ft1_filtered_4FGL_J0809.3+4053_daily_bin540.fits" evtable="EVENTS" scfile=/scratch/kocevski/228199/ft2_4FGL_J0809.3+4053_daily_bin540.fits sctable="SC_DATA" outfile=/scratch/kocevski/228199/ltcube_379296001_379555201_4FGL_J0809.3+4053_daily_bin540.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/228199/ft2_4FGL_J0809.3+4053_daily_bin540.fits
.....................!
real 11.87
user 11.30
sys 0.50

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/228199/ft1_filtered_4FGL_J0809.3+4053_daily_bin540.fits evtable="EVENTS" scfile=/scratch/kocevski/228199/ft2_4FGL_J0809.3+4053_daily_bin540.fits sctable="SC_DATA" expcube=/scratch/kocevski/228199/ltcube_379296001_379555201_4FGL_J0809.3+4053_daily_bin540.fits outfile=/scratch/kocevski/228199/expmap_379296001_379555201_4FGL_J0809.3+4053_daily_bin540.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/228199/ltcube_379296001_379555201_4FGL_J0809.3+4053_daily_bin540.fits
.....................!
real 190.68
user 185.25
sys 5.07

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/228199/ft1_filtered_4FGL_J0809.3+4053_daily_bin540.fits scfile=/scratch/kocevski/228199/ft2_4FGL_J0809.3+4053_daily_bin540.fits outfile=/scratch/kocevski/228199/cmap_379296001_379555201_4FGL_J0809.3+4053_daily_bin540.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.71
user 0.38
sys 0.32

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/228199/ft1_filtered_4FGL_J0809.3+4053_daily_bin540.fits scfile=/scratch/kocevski/228199/ft2_4FGL_J0809.3+4053_daily_bin540.fits outfile=/scratch/kocevski/228199/cmap_HighResolution_379296001_379555201_4FGL_J0809.3+4053_daily_bin540.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.71
user 0.37
sys 0.33

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    22.816       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.8813       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.6384       1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.4035       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10607E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.3497       1.0000         .10000E-03   10000.    
    12 'norm      '    .10963E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    63.702       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.597       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10438E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.858       1.0000         .10000E-03   10000.    
    18 'norm      '    7.7008       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.911       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3221       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .65348       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=   5828.200     FROM MIGRAD    STATUS=CONVERGED    506 CALLS     2251 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          22.816        10.063       -.38996E-06   -.37781E-03
   2  Prefactor     8.8770        15.344       -.16471E-05   -.13908E-04
   3  Prefactor     .10000E-03    13.996       -.23069E-06** at limit **
   4  Prefactor     .10000E-03    6.4376       -.57988E-06** at limit **
   5  Prefactor     3.6202        19.437       -.53589E-05   -.29406E-04
   6  norm          .10000E-03    3.5675       -.33436E-06** at limit **
   7  norm          1.4034        1.7346       -.36233E-07    .16819E-04
   8  Prefactor     .10000E-03    3.8850        .18614E-06** at limit **
   9  Prefactor     .10000E-03    46.043       -.14560E-05** at limit **
  10  Prefactor     .10000E-03    1.4680        .40233E-06** at limit **
  11  norm          1.3497        1.3188       -.15194E-06    .24025E-03
  12  norm          .10000E-03    .42449       -.21376E-06** at limit **
  13  Prefactor     63.693        38.357       -.78247E-05    .22430E-03
  14  Prefactor     .10000E-03    11.717       -.16107E-06** at limit **
  15  Prefactor     11.598        4.3220        .19789E-06   -.55725E-04
  16  Prefactor     .10000E-03    27.219       -.12948E-05** at limit **
  17  Prefactor     12.860        10.894       -.11627E-05   -.81341E-03
  18  norm          7.6997        6.1999       -.40135E-06   -.24091E-04
  19  Prefactor     .10000E-03    1.0431       -.12399E-06** at limit **
  20  Prefactor     11.903        39.965       -.15296E-04    .69487E-04
  21  Prefactor     .10000E-03    .88268       -.10335E-06** at limit **
  22  Normalizat    1.3224        .19030        .19920E-05    .42314E-04
  23  Prefactor     .65329        .13577        .10032E-05    .13535E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 22.8164
  Prefactor  = 8.87701
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.62019
  norm       = 0.0001
  norm       = 1.40339
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.34968
  norm       = 0.000100002
  Prefactor  = 63.6933
  Prefactor  = 0.0001
  Prefactor  = 11.5985
  Prefactor  = 0.0001
  Prefactor  = 12.8604
  norm       = 7.69972
  Prefactor  = 0.0001
  Prefactor  = 11.9035
  Prefactor  = 0.0001
  Normalizat = 1.32238
  Prefactor  = 0.653286
 **********
 **   18 **HESSE 
 **********

 FCN=   5828.200     FROM HESSE     STATUS=OK           378 CALLS     2629 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          22.816        10.114        .41928E-03   -1.4752    
   2  Prefactor     8.8770        15.425        .13450E-03   -1.5112    
   3  Prefactor     .10000E-03    14.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.4640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.6202        19.690        .21179E-03   -1.5327    
   6  norm          .10000E-03    3.5730        .14082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.4034        1.7220        .10865E-03   -1.5471    
   8  Prefactor     .10000E-03    3.8981        .14691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    46.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.4728        .90260E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.3497        1.3327        .84437E-04   -1.5476    
  12  norm          .10000E-03    .41530        .15432E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     63.693        38.103        .50279E-04   -1.4110    
  14  Prefactor     .10000E-03    11.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.598        4.3277        .91214E-04   -1.5027    
  16  Prefactor     .10000E-03    27.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.860        11.202        .55853E-03   -1.4991    
  18  norm          7.6997        6.2067        .14451E-03   -1.5153    
  19  Prefactor     .10000E-03    1.0549        .76121E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.903        39.753        .11607E-03   -1.5018    
  21  Prefactor     .10000E-03    .88369        .70038E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.3224        .21941        .23740E-03   -.82901    
  23  Prefactor     .65329        .15557        .24040E-03   -1.0539    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02606e-09
Minuit parameter uncertainties:
  1  10.1147
  2  15.4324
  3  6.09902e-06
  4  3.80852e-07
  5  16.8941
  6  2.21816e-06
  7  1.72209
  8  1.35397e-06
  9  4.34935e-05
  10  6.05074e-06
  11  1.33276
  12  6.06967e-05
  13  38.1174
  14  3.38936e-05
  15  4.32777
  16  5.06348e-05
  17  11.2034
  18  6.20721
  19  9.13937e-07
  20  39.8414
  21  1.481e-06
  22  0.219563
  23  0.155671
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  6.051e-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:  6.533e-01  1.557e-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.322e+00  2.196e-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: 5.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/228199/likelihoodResults_379296001_379555201_4FGL_J0809.3+4053_daily_bin540.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) = 5828.20310197
delta logL = -0.00317059926147

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5828.19993121
delta logL = 1.64981429407e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5760       1.0000          .0000       10.000    
     3 'Normalizat'    1.3224       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65330       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5828.200     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      247 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.906        .90827E-02** at limit **
   2  Index         2.0994        5.3728        .50000        .20827E-06
   3  Normalizat    1.3224        .14406E-01    .23740E-03   -.35442E-02
   4  Prefactor     .65328        .10682E-01    .24040E-03   -.34628E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.09943
  Normalizat = 1.32237
  Prefactor  = 0.65328
 **********
 **   18 **HESSE 
 **********

 FCN=   5828.200     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    148.44        .96766E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0994        8.0512        .50000       -.61887    
   3  Normalizat    1.3224        .50568E-01    .47480E-04   -.82901    
   4  Prefactor     .65328        .37493E-01    .48081E-04   -1.0539    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.59372e-08
Minuit parameter uncertainties:
  1  0.000499785
  2  806.375
  3  0.0505699
  4  0.0374948
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/228199': 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) = 5828.19992706
delta logL = 4.31100670539e-06

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  4.998e-04  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.099e+00  8.064e+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:  6.533e-01  3.749e-02  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.322e+00  5.057e-02  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/228199/cmap_HighResolution_379296001_379555201_4FGL_J0809.3+4053_daily_bin540.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.68e-03', job_status='DONE', photon_flux_upper_limit='5.98e-08', time_completed='2021-08-29 07:52:19.836480', job_id='228199', GAL2='0.65', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1630248739.84', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='4.31e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='540' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:52:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 228199: <4FGL_J0809.3+4053_daily_bin540> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin540 122.33 40.8954 379296001 379555201 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 :                                   665.49 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             371.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   684 sec.
    Turnaround time :                            685 sec.

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

