/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 9 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 = 7481
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0809.3+4053_daily_bin84
RA = 122.33, Dec = 40.8954
tmin = 261100801, tmax = 261360001
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='225318', job_status='RUN', time_executed='2021-08-29 07:31:47.530700', time_epoch_executed='1630247507.53' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='84'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/225318

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/225318/ft1_4FGL_J0809.3+4053_daily_bin84.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/225318/ft2_4FGL_J0809.3+4053_daily_bin84.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/225318/ft1_4FGL_J0809.3+4053_daily_bin84.fits outfile=/scratch/kocevski/225318/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin84.fits ra=122.33 dec=40.8954 rad=12.0 tmin=261100801.0 tmax=261360001.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.54
user 1.34
sys 2.14

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/225318/ft2_4FGL_J0809.3+4053_daily_bin84.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/225318/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin84.fits evtable="EVENTS" outfile="/scratch/kocevski/225318/ft1_filtered_4FGL_J0809.3+4053_daily_bin84.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 2.50
user 0.32
sys 2.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/225318/ft1_filtered_4FGL_J0809.3+4053_daily_bin84.fits" evtable="EVENTS" scfile=/scratch/kocevski/225318/ft2_4FGL_J0809.3+4053_daily_bin84.fits sctable="SC_DATA" outfile=/scratch/kocevski/225318/ltcube_261100801_261360001_4FGL_J0809.3+4053_daily_bin84.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/225318/ft2_4FGL_J0809.3+4053_daily_bin84.fits
.....................!
real 21.41
user 12.07
sys 2.52

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/225318/ft1_filtered_4FGL_J0809.3+4053_daily_bin84.fits evtable="EVENTS" scfile=/scratch/kocevski/225318/ft2_4FGL_J0809.3+4053_daily_bin84.fits sctable="SC_DATA" expcube=/scratch/kocevski/225318/ltcube_261100801_261360001_4FGL_J0809.3+4053_daily_bin84.fits outfile=/scratch/kocevski/225318/expmap_261100801_261360001_4FGL_J0809.3+4053_daily_bin84.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/225318/ltcube_261100801_261360001_4FGL_J0809.3+4053_daily_bin84.fits
.....................!
real 193.82
user 185.42
sys 7.80

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/225318/ft1_filtered_4FGL_J0809.3+4053_daily_bin84.fits scfile=/scratch/kocevski/225318/ft2_4FGL_J0809.3+4053_daily_bin84.fits outfile=/scratch/kocevski/225318/cmap_261100801_261360001_4FGL_J0809.3+4053_daily_bin84.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=122.33 yref=40.8954 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 2.48
user 0.36
sys 2.09

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/225318/ft1_filtered_4FGL_J0809.3+4053_daily_bin84.fits scfile=/scratch/kocevski/225318/ft2_4FGL_J0809.3+4053_daily_bin84.fits outfile=/scratch/kocevski/225318/cmap_HighResolution_261100801_261360001_4FGL_J0809.3+4053_daily_bin84.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=122.33 yref=40.8954 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 2.44
user 0.37
sys 2.06

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.6429       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.712       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.948       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.6750       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .11211E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.749       1.0000         .10000E-03   10000.    
     9 'Prefactor '    31.149       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.7769       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.4347       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.0184       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.5754       1.0000         .10000E-03   10000.    
    18 'norm      '    .11902E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.4893       1.0000         .10000E-03   10000.    
    20 'Prefactor '    24.587       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .95164       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0009       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=   9428.521     FROM MIGRAD    STATUS=CONVERGED    518 CALLS     2620 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.9435       -.10161E-06** at limit **
   2  Prefactor     2.6425        8.9936        .46987E-05   -.21337E-03
   3  Prefactor     14.706        25.035        .93454E-06    .10939E-04
   4  Prefactor     11.952        11.945        .61801E-06    .45105E-03
   5  Prefactor     5.6738        14.009        .45027E-06    .85449E-04
   6  norm          .10000E-03    6.1937        .39354E-06** at limit **
   7  norm          .10000E-03    1.3891       -.13851E-05** at limit **
   8  Prefactor     12.749        6.8657        .91374E-07    .24543E-03
   9  Prefactor     31.151        32.017        .19773E-06    .12954E-03
  10  Prefactor     .10000E-03    3.8844        .39155E-05** at limit **
  11  norm          .10000E-03    .62731       -.75283E-07** at limit **
  12  norm          2.7770        .71314        .11636E-06    .35381E-02
  13  Prefactor     2.4347        10.653        .44760E-05   -.15326E-03
  14  Prefactor     .10000E-03    13.491       -.12317E-05** at limit **
  15  Prefactor     2.0188        2.5770        .83839E-06    .13181E-02
  16  Prefactor     .10000E-03    13.136        .10803E-05** at limit **
  17  Prefactor     8.5751        7.9752       -.10144E-07    .92826E-05
  18  norm          .10017E-03    5.0233       -.23556E-05** at limit **
  19  Prefactor     2.4888        2.8651        .12204E-06    .16946E-03
  20  Prefactor     24.586        28.015        .55922E-07    .33614E-06
  21  Prefactor     .10000E-03    2.0834       -.18894E-08** at limit **
  22  Normalizat    .95168        .15323       -.23736E-06    .49982E-03
  23  Prefactor     1.0009        .11128       -.35512E-06    .64619E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 2.6425
  Prefactor  = 14.7063
  Prefactor  = 11.9525
  Prefactor  = 5.67383
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 12.7492
  Prefactor  = 31.1508
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 2.77699
  Prefactor  = 2.43466
  Prefactor  = 0.0001
  Prefactor  = 2.01879
  Prefactor  = 0.0001
  Prefactor  = 8.57505
  norm       = 0.000100167
  Prefactor  = 2.48879
  Prefactor  = 24.5865
  Prefactor  = 0.0001
  Normalizat = 0.951684
  Prefactor  = 1.00093
 **********
 **   18 **HESSE 
 **********

 FCN=   9428.521     FROM HESSE     STATUS=OK           378 CALLS     2998 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.0081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.6425        10.028        .12540E-02   -1.5383    
   3  Prefactor     14.706        24.979        .10442E-03   -1.4941    
   4  Prefactor     11.952        11.508        .11589E-03   -1.5016    
   5  Prefactor     5.6738        13.985        .16862E-03   -1.5232    
   6  norm          .10000E-03    6.2481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.2043        .20048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.749        6.8548        .11219E-03   -1.4994    
   9  Prefactor     31.151        31.975        .71791E-04   -1.4591    
  10  Prefactor     .10000E-03    6.0125        .28678E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.0811        .14988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.7770        .70414        .38939E-04   -1.5375    
  13  Prefactor     2.4347        12.302        .13112E-02   -1.5396    
  14  Prefactor     .10000E-03    13.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.0188        2.5750        .16634E-03   -1.5424    
  16  Prefactor     .10000E-03    13.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.5751        7.9819        .13689E-03   -1.5122    
  18  norm          .10017E-03    4.8196        .58451E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.4888        2.8560        .16624E-03   -1.5392    
  20  Prefactor     24.586        28.017        .80786E-04   -1.4716    
  21  Prefactor     .10000E-03    2.1250        .13679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .95168        .17311        .28224E-03   -.94667    
  23  Prefactor     1.0009        .12617        .20784E-03   -.92699    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6741e-09
Minuit parameter uncertainties:
  1  5.95073e-06
  2  10.0344
  3  24.9965
  4  11.5099
  5  13.9928
  6  5.01042e-05
  7  7.32593e-06
  8  6.85521
  9  31.9922
  10  0.000168519
  11  2.84862e-06
  12  0.704138
  13  10.9488
  14  4.44085e-05
  15  2.57513
  16  0.00011919
  17  7.98284
  18  0.00179222
  19  2.85615
  20  28.0315
  21  2.39954e-07
  22  0.17321
  23  0.126206
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  1.685e-04  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.001e+00  1.262e-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:  9.517e-01  1.732e-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.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/225318/likelihoodResults_261100801_261360001_4FGL_J0809.3+4053_daily_bin84.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) = 9428.52186218
delta logL = -0.000789996649473

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9428.52107539
delta logL = -3.2070929592e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14931E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6324       1.0000          .0000       10.000    
     3 'Normalizat'    .95178       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0009       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=   9428.521     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      229 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.4757        .65194E-01** at limit **
   2  Index         2.6850        6.2880        .50000       -.75046E-04
   3  Normalizat    .95168        .50486E-02    .45560E-01    .15580E-03
   4  Prefactor     1.0009        .38230E-02    .45439E-01    .23323E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 2.68503
  Normalizat = 0.951683
  Prefactor  = 1.00093
 **********
 **   18 **HESSE 
 **********

 FCN=   9428.521     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      262 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1065.3        .22988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6850        5.9000        .50000       -.48137    
   3  Normalizat    .95168        .60831E-01    .28224E-03   -.94667    
   4  Prefactor     1.0009        .45818E-01    .20784E-03   -.92699    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.38416e-06
Minuit parameter uncertainties:
  1  0.00393172
  2  54.0156
  3  0.0608353
  4  0.0458194
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/225318': 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) = 9428.52107057
delta logL = 1.60741365107e-06

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  3.932e-03  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.685e+00  5.402e+01  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.001e+00  4.582e-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:  9.517e-01  6.084e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/225318/cmap_HighResolution_261100801_261360001_4FGL_J0809.3+4053_daily_bin84.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.43e-03', job_status='DONE', photon_flux_upper_limit='6.94e-08', time_completed='2021-08-29 07:47:10.992478', job_id='225318', GAL2='1.00', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1630248430.99', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.61e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='84' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 07:47:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 225318: <4FGL_J0809.3+4053_daily_bin84> in cluster <slac> Done

Job <4FGL_J0809.3+4053_daily_bin84> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sun Aug 29 07:30:53 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 07:30:55 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:30:55 2021
Terminated at Sun Aug 29 07:47:11 2021
Results reported at Sun Aug 29 07:47:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin84 122.33 40.8954 261100801 261360001 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 :                                   945.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             357.26 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.

