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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin848
RA = 122.33, Dec = 40.8954
tmin = 459129601, tmax = 459388801
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='230928', job_status='RUN', time_executed='2021-08-29 07:52:52.218748', time_epoch_executed='1630248772.22' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='848'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/230928

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/230928/ft1_4FGL_J0809.3+4053_daily_bin848.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/230928/ft2_4FGL_J0809.3+4053_daily_bin848.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/230928/ft1_4FGL_J0809.3+4053_daily_bin848.fits outfile=/scratch/kocevski/230928/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin848.fits ra=122.33 dec=40.8954 rad=12.0 tmin=459129601.0 tmax=459388801.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.54
user 3.67
sys 0.82

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/230928/ft1_filtered_4FGL_J0809.3+4053_daily_bin848.fits evtable="EVENTS" scfile=/scratch/kocevski/230928/ft2_4FGL_J0809.3+4053_daily_bin848.fits sctable="SC_DATA" expcube=/scratch/kocevski/230928/ltcube_459129601_459388801_4FGL_J0809.3+4053_daily_bin848.fits outfile=/scratch/kocevski/230928/expmap_459129601_459388801_4FGL_J0809.3+4053_daily_bin848.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/230928/ltcube_459129601_459388801_4FGL_J0809.3+4053_daily_bin848.fits
.....................!
real 191.84
user 184.70
sys 6.21

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/230928/ft1_filtered_4FGL_J0809.3+4053_daily_bin848.fits scfile=/scratch/kocevski/230928/ft2_4FGL_J0809.3+4053_daily_bin848.fits outfile=/scratch/kocevski/230928/cmap_459129601_459388801_4FGL_J0809.3+4053_daily_bin848.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.75

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/230928/ft1_filtered_4FGL_J0809.3+4053_daily_bin848.fits scfile=/scratch/kocevski/230928/ft2_4FGL_J0809.3+4053_daily_bin848.fits outfile=/scratch/kocevski/230928/cmap_HighResolution_459129601_459388801_4FGL_J0809.3+4053_daily_bin848.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.18
user 0.38
sys 0.79

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10094E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.0760       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10498E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    17.433       1.0000         .10000E-03   10000.    
     7 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12780E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    54.455       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.5765       1.0000         .10000E-03   10000.    
    12 'norm      '    1.8273       1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.096       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    8.3631       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    40.724       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.5846       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .87995       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2060       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=   7398.432     FROM MIGRAD    STATUS=CONVERGED    502 CALLS     2529 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    11.671       -.15940E-05** at limit **
   2  Prefactor     .10000E-03    5.5151        .15529E-05** at limit **
   3  Prefactor     .10000E-03    9.8124        .26867E-06** at limit **
   4  Prefactor     4.0829        13.670        .49500E-05   -.15325E-03
   5  Prefactor     .10000E-03    20.848        .62980E-06** at limit **
   6  norm          17.434        13.806        .64856E-07   -.48314E-04
   7  norm          .10000E-03    1.9869       -.17165E-06** at limit **
   8  Prefactor     .10000E-03    11.973        .46223E-07** at limit **
   9  Prefactor     54.441        50.345       -.15568E-04    .27294E-03
  10  Prefactor     .10000E-03    3.2364       -.92664E-07** at limit **
  11  norm          1.5764        1.7770       -.15194E-06   -.57236E-03
  12  norm          1.8274        .73194        .15348E-06    .90849E-05
  13  Prefactor     19.097        35.094        .16433E-05   -.33273E-04
  14  Prefactor     .10000E-03    3.9419        .30701E-06** at limit **
  15  Prefactor     .10000E-03    2.8592        .20488E-07** at limit **
  16  Prefactor     .10000E-03    13.403        .20701E-05** at limit **
  17  Prefactor     .10000E-03    5.2682       -.16045E-05** at limit **
  18  norm          8.3628        6.3448       -.10815E-05   -.19988E-02
  19  Prefactor     .10000E-03    2.2160        .79854E-08** at limit **
  20  Prefactor     40.727        39.822        .40518E-05   -.79560E-04
  21  Prefactor     8.5850        4.7747       -.59323E-06   -.17201E-02
  22  Normalizat    .87969        .18966        .18299E-05   -.64132E-04
  23  Prefactor     1.2062        .13887       -.16023E-06    .65840E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.08286
  Prefactor  = 0.0001
  norm       = 17.4344
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 54.4414
  Prefactor  = 0.0001
  norm       = 1.57641
  norm       = 1.82744
  Prefactor  = 19.0972
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.36276
  Prefactor  = 0.0001
  Prefactor  = 40.7273
  Prefactor  = 8.585
  Normalizat = 0.87969
  Prefactor  = 1.20621
 **********
 **   18 **HESSE 
 **********

 FCN=   7398.432     FROM HESSE     STATUS=OK           362 CALLS     2891 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.075        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.5223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.8177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.0829        13.442        .19970E-03   -1.5304    
   5  Prefactor     .10000E-03    21.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          17.434        13.809        .95926E-04   -1.4873    
   7  norm          .10000E-03    2.0289        .23522E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.453        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     54.441        49.104        .54356E-04   -1.4231    
  10  Prefactor     .10000E-03    3.3117        .30186E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.5764        1.7598        .11822E-03   -1.5457    
  12  norm          1.8274        .72618        .44303E-04   -1.5438    
  13  Prefactor     19.097        35.088        .91655E-04   -1.4834    
  14  Prefactor     .10000E-03    3.9452        .16676E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.9806        .28345E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.2684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          8.3628        6.6418        .69313E-03   -1.5130    
  19  Prefactor     .10000E-03    2.2720        .24980E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     40.727        39.800        .62814E-04   -1.4431    
  21  Prefactor     8.5850        4.8748        .68407E-03   -1.5122    
  22  Normalizat    .87969        .21379        .31713E-03   -.97178    
  23  Prefactor     1.2062        .15686        .20757E-03   -.86141    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.66507e-09
Minuit parameter uncertainties:
  1  3.93848e-05
  2  3.58514e-05
  3  2.34908e-05
  4  13.452
  5  0.000166243
  6  13.811
  7  1.95129e-05
  8  0.000311472
  9  49.1405
  10  1.40949e-05
  11  1.75991
  12  0.726186
  13  35.1262
  14  3.53786e-06
  15  7.75443e-06
  16  5.53598e-05
  17  3.71153e-05
  18  6.64238
  19  4.94502e-06
  20  39.8255
  21  4.87505
  22  0.213994
  23  0.156918
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  1.409e-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.206e+00  1.569e-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.797e-01  2.140e-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: 7.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/230928/likelihoodResults_459129601_459388801_4FGL_J0809.3+4053_daily_bin848.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) = 7398.43305682
delta logL = -0.00144025947702

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7398.43161611
delta logL = 4.43341377832e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5530       1.0000          .0000       10.000    
     3 'Normalizat'    .87962       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2063       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=   7398.432     FROM MIGRAD    STATUS=FAILED       105 CALLS      255 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    138.02        .31760E-02** at limit **
   2  Index         1.9585        8.5738        .50000       -.27619E-06
   3  Normalizat    .87970        .22556E-01    .31713E-03    .10833E-02
   4  Prefactor     1.2062        .17104E-01    .20757E-03    .15203E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7398.432     FROM SIMPLEX   STATUS=UNCHANGED    160 CALLS      415 TOTAL
                     EDM=   .84E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    138.02        .39180E-03** at limit **
   2  Index         1.9585        8.5738        .12861E-04   -.27619E-06
   3  Normalizat    .87970        .22556E-01    .21128E-06    .10833E-02
   4  Prefactor     1.2062        .17104E-01    .48215E-07    .15203E-02
                               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=   7398.432     FROM MIGRAD    STATUS=CONVERGED     70 CALLS      485 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.402        .12704E-03** at limit **
   2  Index         1.9609        5.6301        .50000        .16330E-06
   3  Normalizat    .87970        .20518        .12685E-04    .93118E-03
   4  Prefactor     1.2062        .15566        .83030E-05    .12915E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.96086
  Normalizat = 0.879695
  Prefactor  = 1.20621
 **********
 **   18 **HESSE 
 **********

 FCN=   7398.432     FROM HESSE     STATUS=OK            29 CALLS      514 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.6737        .25408E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9609        5.4323        .50000       -.65332    
   3  Normalizat    .87970        .20517        .25370E-05   -.97177    
   4  Prefactor     1.2062        .15563        .16606E-05   -.86141    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30893e-09
Minuit parameter uncertainties:
  1  0.000103757
  2  74.0315
  3  0.205355
  4  0.155689
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/230928': 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) = 7398.43160921
delta logL = 7.35079629521e-06

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  1.038e-04  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  1.961e+00  7.403e+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.206e+00  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:  8.797e-01  2.054e-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/230928/cmap_HighResolution_459129601_459388801_4FGL_J0809.3+4053_daily_bin848.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.96e-03', job_status='DONE', photon_flux_upper_limit='7.63e-08', time_completed='2021-08-29 08:06:01.269531', job_id='230928', GAL2='1.21', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1630249561.27', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='7.35e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='848' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 08:06:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 230928: <4FGL_J0809.3+4053_daily_bin848> in cluster <slac> Done

Job <4FGL_J0809.3+4053_daily_bin848> 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) <bullet0282>, 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:01 2021
Results reported at Sun Aug 29 08:06:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin848 122.33 40.8954 459129601 459388801 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 :                                   795.24 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             273.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            930 sec.

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

