/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 202 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 = 7403
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0809.8+0507_daily_bin436
RA = 122.453, Dec = 5.1313
tmin = 352339201, tmax = 352598401
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='250312', job_status='RUN', time_executed='2021-08-29 08:54:35.719801', time_epoch_executed='1630252475.72' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='436'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250312

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250312/ft1_4FGL_J0809.8+0507_daily_bin436.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250312/ft2_4FGL_J0809.8+0507_daily_bin436.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250312/ft1_4FGL_J0809.8+0507_daily_bin436.fits outfile=/scratch/kocevski/250312/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin436.fits ra=122.453 dec=5.1313 rad=12.0 tmin=352339201.0 tmax=352598401.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.06
user 3.20
sys 0.84

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/250312/ft2_4FGL_J0809.8+0507_daily_bin436.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/250312/ft2_4FGL_J0809.8+0507_daily_bin436.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/250312/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin436.fits evtable="EVENTS" outfile="/scratch/kocevski/250312/ft1_filtered_4FGL_J0809.8+0507_daily_bin436.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.11
user 0.32
sys 0.77

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250312/ft1_filtered_4FGL_J0809.8+0507_daily_bin436.fits" evtable="EVENTS" scfile=/scratch/kocevski/250312/ft2_4FGL_J0809.8+0507_daily_bin436.fits sctable="SC_DATA" outfile=/scratch/kocevski/250312/ltcube_352339201_352598401_4FGL_J0809.8+0507_daily_bin436.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/250312/ft2_4FGL_J0809.8+0507_daily_bin436.fits
.....................!
real 12.51
user 11.45
sys 1.03

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250312/ft1_filtered_4FGL_J0809.8+0507_daily_bin436.fits evtable="EVENTS" scfile=/scratch/kocevski/250312/ft2_4FGL_J0809.8+0507_daily_bin436.fits sctable="SC_DATA" expcube=/scratch/kocevski/250312/ltcube_352339201_352598401_4FGL_J0809.8+0507_daily_bin436.fits outfile=/scratch/kocevski/250312/expmap_352339201_352598401_4FGL_J0809.8+0507_daily_bin436.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/250312/ltcube_352339201_352598401_4FGL_J0809.8+0507_daily_bin436.fits
.....................!
real 191.01
user 185.13
sys 5.47

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 163 point sources and 0 extended sources

Setting source of interest to:
4FGL J0809.8+0507 @ 122.453 5.1313

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/250312/ft1_filtered_4FGL_J0809.8+0507_daily_bin436.fits scfile=/scratch/kocevski/250312/ft2_4FGL_J0809.8+0507_daily_bin436.fits outfile=/scratch/kocevski/250312/cmap_352339201_352598401_4FGL_J0809.8+0507_daily_bin436.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.453 yref=5.1313 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.16
user 0.37
sys 0.76

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250312/ft1_filtered_4FGL_J0809.8+0507_daily_bin436.fits scfile=/scratch/kocevski/250312/ft2_4FGL_J0809.8+0507_daily_bin436.fits outfile=/scratch/kocevski/250312/cmap_HighResolution_352339201_352598401_4FGL_J0809.8+0507_daily_bin436.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.453 yref=5.1313 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.39
sys 0.74

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/250312/ft1_filtered_4FGL_J0809.8+0507_daily_bin436.fits evtable="EVENTS" scfile=/scratch/kocevski/250312/ft2_4FGL_J0809.8+0507_daily_bin436.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/250312/Model_4FGL_J0809.8+0507_daily_bin436.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/250312/ft1_filtered_4FGL_J0809.8+0507_daily_bin436.fits.....................!
real 66.25
user 63.97
sys 2.02

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/250312/ft1_filtered_4FGL_J0809.8+0507_daily_bin436.fits', '/scratch/kocevski/250312/ft2_4FGL_J0809.8+0507_daily_bin436.fits', expMap='/scratch/kocevski/250312/expmap_352339201_352598401_4FGL_J0809.8+0507_daily_bin436.fits', expCube='/scratch/kocevski/250312/ltcube_352339201_352598401_4FGL_J0809.8+0507_daily_bin436.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/250312/Model_4FGL_J0809.8+0507_daily_bin436.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0809.8+0507'

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  4.437e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.815e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
282         beta:  8.580e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  4.471e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/250312/ft1_filtered_4FGL_J0809.8+0507_daily_bin436.fits
Spacecraft file(s): /scratch/kocevski/250312/ft2_4FGL_J0809.8+0507_daily_bin436.fits
Exposure map: /scratch/kocevski/250312/expmap_352339201_352598401_4FGL_J0809.8+0507_daily_bin436.fits
Exposure cube: /scratch/kocevski/250312/ltcube_352339201_352598401_4FGL_J0809.8+0507_daily_bin436.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/250312/Model_4FGL_J0809.8+0507_daily_bin436.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) = 5629.00102452

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16097E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10966E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.4460       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10587E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .56219       1.0000         .10000E-03   10000.    
     6 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .21073E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10278E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10444E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10507E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10383E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.8991       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.538       1.0000         .10000E-03   10000.    
    17 'norm      '    .34014       1.0000         .10000E-03   10000.    
    18 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    46.959       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1337       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .92834       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5628.996     FROM MIGRAD    STATUS=CONVERGED    462 CALLS     2214 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    167.21       -.65985E-04** at limit **
   2  Prefactor     .10000E-03    50.650        .26048E-05** at limit **
   3  norm          1.4451        1.3470       -.12857E-07    .68619E-04
   4  Prefactor     .10000E-03    30.372       -.12236E-04** at limit **
   5  Prefactor     .56983        2.5983       -.10171E-05   -.45730E-03
   6  norm          .10000E-03    23.942        .10941E-04** at limit **
   7  Prefactor     .10000E-03    3.6608        .47338E-07** at limit **
   8  Prefactor     .10000E-03    85.457        .15128E-04** at limit **
   9  Prefactor     .10000E-03    9.9817        .10828E-05** at limit **
  10  Prefactor     .10000E-03    11.288        .53418E-06** at limit **
  11  norm          .10000E-03    10.847       -.45712E-05** at limit **
  12  norm          .10000E-03    .95420       -.59142E-07** at limit **
  13  norm          .10000E-03    11.531        .39156E-05** at limit **
  14  norm          6.9008        4.1763        .45215E-07    .17178E-04
  15  Prefactor     .10000E-03    17.523       -.39377E-05** at limit **
  16  Prefactor     19.524        17.591        .32179E-06    .10281E-04
  17  norm          .34083        .89556       -.28612E-06   -.92187E-03
  18  norm          .10000E-03    4.0754        .69311E-07** at limit **
  19  Prefactor     46.968        40.273        .52895E-05    .35526E-05
  20  Normalizat    1.1337        .21466       -.33971E-06    .25632E-03
  21  Prefactor     .92826        .13634        .35713E-06    .35255E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  norm       = 1.44509
  Prefactor  = 0.0001
  Prefactor  = 0.569832
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.90085
  Prefactor  = 0.0001
  Prefactor  = 19.5237
  norm       = 0.340834
  norm       = 0.0001
  Prefactor  = 46.9677
  Normalizat = 1.13366
  Prefactor  = 0.928261
 **********
 **   18 **HESSE 
 **********

 FCN=   5628.996     FROM HESSE     STATUS=OK           311 CALLS     2525 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    167.27        .40829E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    51.047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.4451        1.3374        .81119E-04   -1.5468    
   4  Prefactor     .10000E-03    30.489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .56983        4.7668        .22249E-02   -1.5557    
   6  norm          .10000E-03    24.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.6640        .14018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    85.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    10.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .96103        .71562E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    11.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.9008        4.1748        .11545E-03   -1.5183    
  15  Prefactor     .10000E-03    17.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     19.524        17.659        .90614E-04   -1.4824    
  17  norm          .34083        1.0893        .10704E-02   -1.5591    
  18  norm          .10000E-03    4.1008        .14789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     46.968        40.270        .58512E-04   -1.4336    
  20  Normalizat    1.1337        .24909        .27438E-03   -.88678    
  21  Prefactor     .92826        .16068        .20456E-03   -.95160    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.26097e-10
Minuit parameter uncertainties:
  1  0.00230857
  2  1.40902e-05
  3  1.33741
  4  2.47399e-05
  5  3.29629
  6  8.90668e-05
  7  1.26305e-06
  8  3.58186e-05
  9  3.54686e-06
  10  1.48097e-07
  11  1.21569e-05
  12  6.62183e-09
  13  2.19334e-06
  14  4.17496
  15  2.02589e-06
  16  17.6639
  17  1.08937
  18  2.21884e-06
  19  40.2935
  20  0.249354
  21  0.160765
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  2.193e-06  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.815e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
282         beta:  8.580e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  4.471e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  9.283e-01  1.608e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  1.134e+00  2.494e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 122.453 5.131
Photon Flux Upper Limit: 6.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.74e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/250312/likelihoodResults_352339201_352598401_4FGL_J0809.8+0507_daily_bin436.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) = 5628.9964924
delta logL = -0.000412011592744

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5628.99607858
delta logL = 1.80575170816e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10607E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.1026       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1333       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92846       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+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=   5628.996     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      271 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10037E-03    7189.9        .18142E-02** at limit **
   2  alpha         1.0298        3.9354        .20000        .34225E-06
   3  Normalizat    1.1337        .85136E-01    .27438E-03    .15331E-05
   4  Prefactor     .92826        .58409E-01    .20456E-03    .17785E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100368
  alpha      = 1.02981
  Normalizat = 1.13366
  Prefactor  = 0.92826
 **********
 **   18 **HESSE 
 **********

 FCN=   5628.996     FROM HESSE     STATUS=OK            23 CALLS      294 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10037E-03    34.477        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.0298        3.7192        .80000E-02   -.62868    
   3  Normalizat    1.1337        .23116        .10975E-04   -.88678    
   4  Prefactor     .92826        .15860        .81822E-05   -.95160    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81073e-08
Minuit parameter uncertainties:
  1  0.00712331
  2  582.341
  3  0.231364
  4  0.158677
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250312': 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) = 5628.99607754
delta logL = 2.84429188468e-06

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.004e-04  7.123e-03  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  1.030e+00  5.823e+02  0.000e+00  5.000e+00 ( 1.000e+00)
282         beta:  8.580e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  4.471e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  9.283e-01  1.587e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  1.134e+00  2.314e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 122.453 5.131

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/250312/cmap_HighResolution_352339201_352598401_4FGL_J0809.8+0507_daily_bin436.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.74e-05', job_status='DONE', photon_flux_upper_limit='6.61e-08', time_completed='2021-08-29 09:04:12.821106', job_id='250312', GAL2='0.93', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1630253052.82', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='2.84e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='436' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:04:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 250312: <4FGL_J0809.8+0507_daily_bin436> in cluster <slac> Done

Job <4FGL_J0809.8+0507_daily_bin436> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 29 08:50:50 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 08:50:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 08:50:51 2021
Terminated at Sun Aug 29 09:04:13 2021
Results reported at Sun Aug 29 09:04:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin436 122.453 5.1313 352339201 352598401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0809.8+0507 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   587.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             260.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            803 sec.

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

