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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin854
RA = 122.33, Dec = 40.8954
tmin = 460684801, tmax = 460944001
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='230937', job_status='RUN', time_executed='2021-08-29 07:53:17.037102', time_epoch_executed='1630248797.04' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='854'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/230937

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/230937/ft1_4FGL_J0809.3+4053_daily_bin854.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/230937/ft2_4FGL_J0809.3+4053_daily_bin854.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/230937/ft1_4FGL_J0809.3+4053_daily_bin854.fits outfile=/scratch/kocevski/230937/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin854.fits ra=122.33 dec=40.8954 rad=12.0 tmin=460684801.0 tmax=460944001.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.90
user 3.12
sys 0.75

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/230937/ft1_filtered_4FGL_J0809.3+4053_daily_bin854.fits" evtable="EVENTS" scfile=/scratch/kocevski/230937/ft2_4FGL_J0809.3+4053_daily_bin854.fits sctable="SC_DATA" outfile=/scratch/kocevski/230937/ltcube_460684801_460944001_4FGL_J0809.3+4053_daily_bin854.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/230937/ft2_4FGL_J0809.3+4053_daily_bin854.fits
.....................!
real 12.64
user 11.65
sys 0.94

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/230937/ft1_filtered_4FGL_J0809.3+4053_daily_bin854.fits evtable="EVENTS" scfile=/scratch/kocevski/230937/ft2_4FGL_J0809.3+4053_daily_bin854.fits sctable="SC_DATA" expcube=/scratch/kocevski/230937/ltcube_460684801_460944001_4FGL_J0809.3+4053_daily_bin854.fits outfile=/scratch/kocevski/230937/expmap_460684801_460944001_4FGL_J0809.3+4053_daily_bin854.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/230937/ltcube_460684801_460944001_4FGL_J0809.3+4053_daily_bin854.fits
.....................!
real 193.24
user 187.02
sys 5.81

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/230937/ft1_filtered_4FGL_J0809.3+4053_daily_bin854.fits scfile=/scratch/kocevski/230937/ft2_4FGL_J0809.3+4053_daily_bin854.fits outfile=/scratch/kocevski/230937/cmap_460684801_460944001_4FGL_J0809.3+4053_daily_bin854.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.17
user 0.38
sys 0.66

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/230937/ft1_filtered_4FGL_J0809.3+4053_daily_bin854.fits scfile=/scratch/kocevski/230937/ft2_4FGL_J0809.3+4053_daily_bin854.fits outfile=/scratch/kocevski/230937/cmap_HighResolution_460684801_460944001_4FGL_J0809.3+4053_daily_bin854.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.09
user 0.38
sys 0.66

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0541       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.8563       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.3410       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.1669       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10644E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.194       1.0000         .10000E-03   10000.    
     9 'Prefactor '    37.483       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .97556       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.0185       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .77419       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.5476       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .81655       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2089       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=   7609.294     FROM MIGRAD    STATUS=CONVERGED    502 CALLS     2549 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0531        10.974        .12257E-04   -.86999E-04
   2  Prefactor     1.8550        15.789        .46296E-06    .22090E-04
   3  Prefactor     4.3115        80.026        .34563E-06    .37247E-04
   4  Prefactor     4.1698        15.712        .29153E-05    .13964E-03
   5  Prefactor     .10000E-03    4.8931       -.23886E-06** at limit **
   6  norm          .10000E-03    5.5802        .95186E-07** at limit **
   7  norm          .10000E-03    1.7807        .10310E-06** at limit **
   8  Prefactor     10.195        10.203       -.12812E-06    .97723E-04
   9  Prefactor     37.468        52.932        .16662E-05    .14765E-03
  10  Prefactor     .10000E-03    3.7802       -.18464E-06** at limit **
  11  norm          .10000E-03    .61792       -.47129E-07** at limit **
  12  norm          .97556        .52726       -.10816E-08   -.28675E-03
  13  Prefactor     .10000E-03    7.1823        .65212E-07** at limit **
  14  Prefactor     .10000E-03    3.5271       -.36603E-07** at limit **
  15  Prefactor     .10000E-03    .90331        .48220E-07** at limit **
  16  Prefactor     .10000E-03    22.202       -.56177E-07** at limit **
  17  Prefactor     .10000E-03    5.2377        .23557E-07** at limit **
  18  norm          6.0184        4.6227       -.33108E-07    .17464E-05
  19  Prefactor     .77416        2.3627        .10815E-06    .11851E-03
  20  Prefactor     .10000E-03    23.714        .36888E-06** at limit **
  21  Prefactor     5.5474        4.3099       -.65946E-07   -.95827E-04
  22  Normalizat    .81656        .17448        .21379E-05    .80703E-03
  23  Prefactor     1.2089        .13280       -.17838E-05    .68295E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.05315
  Prefactor  = 1.85503
  Prefactor  = 4.31146
  Prefactor  = 4.16981
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 10.1949
  Prefactor  = 37.4678
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.975556
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 6.01844
  Prefactor  = 0.774161
  Prefactor  = 0.0001
  Prefactor  = 5.54736
  Normalizat = 0.816561
  Prefactor  = 1.20893
 **********
 **   18 **HESSE 
 **********

 FCN=   7609.294     FROM HESSE     STATUS=OK           366 CALLS     2915 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0531        11.156        .24018E-02   -1.5503    
   2  Prefactor     1.8550        15.780        .30592E-03   -1.5436    
   3  Prefactor     4.3115        80.752        .19333E-03   -1.5293    
   4  Prefactor     4.1698        16.207        .19745E-03   -1.5300    
   5  Prefactor     .10000E-03    4.9008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.6092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.3632        .21801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.195        10.175        .62749E-03   -1.5069    
   9  Prefactor     37.468        52.960        .65464E-04   -1.4483    
  10  Prefactor     .10000E-03    3.9419        .33083E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .62662        .66966E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .97556        .51997        .44733E-04   -1.5510    
  13  Prefactor     .10000E-03    7.1860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.5332        .15997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .91366        .80921E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    22.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.2772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.0184        4.6142        .15858E-03   -1.5217    
  19  Prefactor     .77416        2.3340        .22176E-03   -1.5532    
  20  Prefactor     .10000E-03    23.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.5474        4.3187        .15336E-03   -1.5237    
  22  Normalizat    .81656        .19818        .30061E-03   -.99457    
  23  Prefactor     1.2089        .15005        .19651E-03   -.86057    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.90283e-09
Minuit parameter uncertainties:
  1  6.8566
  2  10.8245
  3  37.3762
  4  16.2244
  5  4.6694e-05
  6  2.69531e-05
  7  0.000103753
  8  10.177
  9  53.0269
  10  5.4134e-05
  11  2.48672e-06
  12  0.519975
  13  2.09198e-06
  14  1.53874e-05
  15  5.2309e-06
  16  0.000340477
  17  1.67746e-05
  18  4.61446
  19  2.33429
  20  0.000188652
  21  4.31889
  22  0.198354
  23  0.150103
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  5.413e-05  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.209e+00  1.501e-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.166e-01  1.984e-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: 6.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.45e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/230937/likelihoodResults_460684801_460944001_4FGL_J0809.3+4053_daily_bin854.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) = 7609.29506488
delta logL = -0.00121128713181

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7609.29385364
delta logL = -4.11346263718e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5760       1.0000          .0000       10.000    
     3 'Normalizat'    .81655       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2090       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=   7609.294     FROM MIGRAD    STATUS=FAILED        92 CALLS      249 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10104E-03    59.607        .33293E-02** at limit **
   2  Index         2.5013        5.9610        .50000        .17372E-04
   3  Normalizat    .81656        .16672E-01    .30061E-03   -.95681E-05
   4  Prefactor     1.2089        .13077E-01    .19651E-03   -.17240E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7609.294     FROM SIMPLEX   STATUS=PROGRESS     130 CALLS      379 TOTAL
                     EDM=   .80E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10035E-03    59.607        .30034E-03** at limit **
   2  Index         2.5002        5.9610        .36424E-03    .17372E-04
   3  Normalizat    .81655        .16672E-01    .24813E-05   -.95681E-05
   4  Prefactor     1.2089        .13077E-01    .98431E-06   -.17240E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7609.294     FROM MIGRAD    STATUS=CONVERGED     75 CALLS      454 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.4896        .13317E-03** at limit **
   2  Index         2.3637        5.0053        .50000       -.65097E-07
   3  Normalizat    .81656        .18705        .24049E-05   -.12291E-04
   4  Prefactor     1.2089        .14676        .15721E-05    .17356E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.3637
  Normalizat = 0.816555
  Prefactor  = 1.20893
 **********
 **   18 **HESSE 
 **********

 FCN=   7609.294     FROM HESSE     STATUS=OK            29 CALLS      483 TOTAL
                     EDM=   .60E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.2567        .26634E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3637        5.1633        .50000       -.55537    
   3  Normalizat    .81656        .18638        .48098E-06   -.99457    
   4  Prefactor     1.2089        .14672        .31442E-06   -.86057    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.02895e-12
Minuit parameter uncertainties:
  1  6.8319e-06
  2  107.112
  3  0.186522
  4  0.146766
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/230937': 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) = 7609.29385287
delta logL = 7.25788595446e-07

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  6.832e-06  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.364e+00  1.071e+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.209e+00  1.468e-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.166e-01  1.865e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/230937/cmap_HighResolution_460684801_460944001_4FGL_J0809.3+4053_daily_bin854.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.45e-03', job_status='DONE', photon_flux_upper_limit='6.97e-08', time_completed='2021-08-29 08:06:48.544074', job_id='230937', GAL2='1.21', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1630249608.54', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='7.26e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='854' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 08:06:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 230937: <4FGL_J0809.3+4053_daily_bin854> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin854 122.33 40.8954 460684801 460944001 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 :                                   816.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   976 sec.
    Turnaround time :                            978 sec.

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

