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


Performing analysis on: 4FGL_J0809.3+4053_daily_bin797
RA = 122.33, Dec = 40.8954
tmin = 445910401, tmax = 446169601
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='230854', job_status='RUN', time_executed='2021-08-29 07:50:45.017346', time_epoch_executed='1630248645.02' WHERE source_name='4FGL J0809.3+4053' and cadence='daily' and bin_id='797'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/230854

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/230854/ft1_4FGL_J0809.3+4053_daily_bin797.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/230854/ft2_4FGL_J0809.3+4053_daily_bin797.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/230854/ft1_4FGL_J0809.3+4053_daily_bin797.fits outfile=/scratch/kocevski/230854/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin797.fits ra=122.33 dec=40.8954 rad=12.0 tmin=445910401.0 tmax=446169601.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.26
user 3.74
sys 0.48

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/230854/ft2_4FGL_J0809.3+4053_daily_bin797.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/230854/ft1_filteredMKT_4FGL_J0809.3+4053_daily_bin797.fits evtable="EVENTS" outfile="/scratch/kocevski/230854/ft1_filtered_4FGL_J0809.3+4053_daily_bin797.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.86
user 0.34
sys 0.50

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/230854/ft1_filtered_4FGL_J0809.3+4053_daily_bin797.fits" evtable="EVENTS" scfile=/scratch/kocevski/230854/ft2_4FGL_J0809.3+4053_daily_bin797.fits sctable="SC_DATA" outfile=/scratch/kocevski/230854/ltcube_445910401_446169601_4FGL_J0809.3+4053_daily_bin797.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/230854/ft2_4FGL_J0809.3+4053_daily_bin797.fits
.....................!
real 12.62
user 11.92
sys 0.66

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/230854/ft1_filtered_4FGL_J0809.3+4053_daily_bin797.fits evtable="EVENTS" scfile=/scratch/kocevski/230854/ft2_4FGL_J0809.3+4053_daily_bin797.fits sctable="SC_DATA" expcube=/scratch/kocevski/230854/ltcube_445910401_446169601_4FGL_J0809.3+4053_daily_bin797.fits outfile=/scratch/kocevski/230854/expmap_445910401_446169601_4FGL_J0809.3+4053_daily_bin797.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/230854/ltcube_445910401_446169601_4FGL_J0809.3+4053_daily_bin797.fits
.....................!
real 191.35
user 186.41
sys 4.51

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/230854/ft1_filtered_4FGL_J0809.3+4053_daily_bin797.fits scfile=/scratch/kocevski/230854/ft2_4FGL_J0809.3+4053_daily_bin797.fits outfile=/scratch/kocevski/230854/cmap_445910401_446169601_4FGL_J0809.3+4053_daily_bin797.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.85
user 0.39
sys 0.44

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/230854/ft1_filtered_4FGL_J0809.3+4053_daily_bin797.fits scfile=/scratch/kocevski/230854/ft2_4FGL_J0809.3+4053_daily_bin797.fits outfile=/scratch/kocevski/230854/cmap_HighResolution_445910401_446169601_4FGL_J0809.3+4053_daily_bin797.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.91
user 0.38
sys 0.52

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.393       1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.047       1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.740       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.7419       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.6073       1.0000         .10000E-03   10000.    
     9 'Prefactor '    51.605       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.7727       1.0000         .10000E-03   10000.    
    12 'norm      '    .85819       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .57619       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11294E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.4384       1.0000         .10000E-03   10000.    
    18 'norm      '    15.850       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.5631       1.0000         .10000E-03   10000.    
    20 'Prefactor '    59.466       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .16170E-02   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .73826       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1185       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=   6934.399     FROM MIGRAD    STATUS=CONVERGED    913 CALLS     2997 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.399        10.383        .46695E-03   -.23465E-03
   2  Prefactor     23.061        14.899        .83436E-04    .72625E-04
   3  Prefactor     25.773        29.636        .78958E-04    .36140E-04
   4  Prefactor     .10000E-03    4.6063        .17431E-02** at limit **
   5  Prefactor     .10000E-03    22.630        .36285E-03** at limit **
   6  norm          .10000E-03    2.6647        .13268E-02** at limit **
   7  norm          1.7424        1.6610        .10089E-03    .51836E-04
   8  Prefactor     1.6080        3.8695        .24865E-03   -.27039E-03
   9  Prefactor     51.629        36.897        .55829E-04    .11461E-03
  10  Prefactor     .10000E-03    1.8573        .11040E-02** at limit **
  11  norm          2.7731        1.6338        .79568E-04    .89586E-04
  12  norm          .85764        .60864        .52265E-03    .26076E-02
  13  Prefactor     .10000E-03    21.918        .18142E-02** at limit **
  14  Prefactor     .70537        60.899        .43103E-02    .42420E-03
  15  Prefactor     .10000E-03    2.1602        .11815E-02** at limit **
  16  Prefactor     .10000E-03    38.838        .18142E-02** at limit **
  17  Prefactor     3.4436        11.503        .21813E-03    .74479E-04
  18  norm          15.854        8.1116        .10060E-03    .17742E-04
  19  Prefactor     3.5620        2.6671        .11360E-03   -.30633E-03
  20  Prefactor     59.358        57.448        .26014E-03   -.21393E-03
  21  Prefactor     .10002E-03    5.7148        .42244E-01** at limit **
  22  Normalizat    .73751        .21310        .32082E-03    .48976E-03
  23  Prefactor     1.1187        .15314        .20078E-03    .21459E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 18.3993
  Prefactor  = 23.0611
  Prefactor  = 25.773
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 1.74245
  Prefactor  = 1.60799
  Prefactor  = 51.6292
  Prefactor  = 0.0001
  norm       = 2.77314
  norm       = 0.857636
  Prefactor  = 0.0001
  Prefactor  = 0.705366
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.44361
  norm       = 15.8543
  Prefactor  = 3.56201
  Prefactor  = 59.3576
  Prefactor  = 0.000100018
  Normalizat = 0.73751
  Prefactor  = 1.11867
 **********
 **   18 **HESSE 
 **********

 FCN=   6934.399     FROM HESSE     STATUS=OK           358 CALLS     3355 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.399        10.381        .18678E-04   -1.4850    
   2  Prefactor     23.061        14.896        .33374E-05   -1.4747    
   3  Prefactor     25.773        29.633        .31583E-05   -1.4692    
   4  Prefactor     .10000E-03    4.6067        .34863E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    22.632        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    2.6648        .26537E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.7424        1.6610        .40355E-05   -1.5444    
   8  Prefactor     1.6080        3.8693        .99461E-05   -1.5454    
   9  Prefactor     51.629        36.894        .11166E-04   -1.4270    
  10  Prefactor     .10000E-03    1.8574        .22080E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.7731        1.6337        .31827E-05   -1.5375    
  12  norm          .85764        .60484        .20906E-04   -1.5523    
  13  Prefactor     .10000E-03    21.921        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .70537        59.829        .17241E-03   -1.5540    
  15  Prefactor     .10000E-03    2.1605        .23631E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    38.842        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.4436        11.498        .87251E-05   -1.5337    
  18  norm          15.854        8.1105        .40241E-05   -1.4911    
  19  Prefactor     3.5620        2.6669        .45441E-05   -1.5330    
  20  Prefactor     59.358        57.376        .52028E-04   -1.4166    
  21  Prefactor     .10002E-03    4.4549        .49709E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .73751        .21247        .12833E-04   -1.0243    
  23  Prefactor     1.1187        .15321        .40156E-04   -.88872    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.20524e-09
Minuit parameter uncertainties:
  1  10.3822
  2  14.8984
  3  29.6502
  4  3.74e-05
  5  0.000352091
  6  7.99181e-06
  7  1.66103
  8  3.86989
  9  36.9105
  10  1.34832e-05
  11  1.63375
  12  0.604844
  13  0.000109126
  14  13.0051
  15  1.00507e-05
  16  0.000242827
  17  11.505
  18  8.1111
  19  2.66702
  20  57.4292
  21  0.000567264
  22  0.212704
  23  0.153275
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  1.348e-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.119e+00  1.533e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  7.375e-01  2.127e-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.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/230854/likelihoodResults_445910401_446169601_4FGL_J0809.3+4053_daily_bin797.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) = 6934.40152685
delta logL = -0.00255548891801

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6934.3989716
delta logL = -2.35486368183e-07

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.5901       1.0000          .0000       10.000    
     3 'Normalizat'    .73763       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1186       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=   6934.399     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      239 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.0073        .11041E-02** at limit **
   2  Index         2.5922        6.2951        .50000       -.10056E-04
   3  Normalizat    .73750        .19652        .32082E-03   -.89654E-05
   4  Prefactor     1.1187        .14979        .20078E-03    .46431E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.59219
  Normalizat = 0.737505
  Prefactor  = 1.11867
 **********
 **   18 **HESSE 
 **********

 FCN=   6934.399     FROM HESSE     STATUS=OK            29 CALLS      268 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.8626        .22083E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5922        6.2905        .50000       -.50244    
   3  Normalizat    .73750        .19667        .12833E-04   -1.0243    
   4  Prefactor     1.1187        .14990        .80312E-05   -.88872    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15089e-10
Minuit parameter uncertainties:
  1  3.7438e-05
  2  4.389
  3  0.196854
  4  0.149955
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/230854': 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) = 6934.39897136
delta logL = 9.56515577855e-09

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.000e-04  3.744e-05  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.592e+00  4.389e+00  0.000e+00  1.000e+01 (-1.000e+00)
271        Scale:  6.589e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  1.119e+00  1.500e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  7.375e-01  1.969e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/230854/cmap_HighResolution_445910401_446169601_4FGL_J0809.3+4053_daily_bin797.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.23e-03', job_status='DONE', photon_flux_upper_limit='6.69e-08', time_completed='2021-08-29 08:03:39.821824', job_id='230854', GAL2='1.12', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1630249419.82', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='9.57e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='797' AND source_name='4FGL J0809.3+4053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 08:03:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 230854: <4FGL_J0809.3+4053_daily_bin797> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_daily_bin797 122.33 40.8954 445910401 446169601 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 :                                   779.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             330.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   794 sec.
    Turnaround time :                            796 sec.

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

