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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin271
RA = 122.453, Dec = 5.1313
tmin = 309571201, tmax = 309830401
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='250046', job_status='RUN', time_executed='2021-08-29 08:54:34.445493', time_epoch_executed='1630252474.45' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='271'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250046

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250046/ft1_4FGL_J0809.8+0507_daily_bin271.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250046/ft2_4FGL_J0809.8+0507_daily_bin271.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250046/ft1_4FGL_J0809.8+0507_daily_bin271.fits outfile=/scratch/kocevski/250046/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin271.fits ra=122.453 dec=5.1313 rad=12.0 tmin=309571201.0 tmax=309830401.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 7.02
user 6.04
sys 0.92

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/250046/ft2_4FGL_J0809.8+0507_daily_bin271.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/250046/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin271.fits evtable="EVENTS" outfile="/scratch/kocevski/250046/ft1_filtered_4FGL_J0809.8+0507_daily_bin271.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.16
user 0.33
sys 0.82

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250046/ft1_filtered_4FGL_J0809.8+0507_daily_bin271.fits" evtable="EVENTS" scfile=/scratch/kocevski/250046/ft2_4FGL_J0809.8+0507_daily_bin271.fits sctable="SC_DATA" outfile=/scratch/kocevski/250046/ltcube_309571201_309830401_4FGL_J0809.8+0507_daily_bin271.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/250046/ft2_4FGL_J0809.8+0507_daily_bin271.fits
.....................!
real 12.94
user 11.85
sys 1.05

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250046/ft1_filtered_4FGL_J0809.8+0507_daily_bin271.fits evtable="EVENTS" scfile=/scratch/kocevski/250046/ft2_4FGL_J0809.8+0507_daily_bin271.fits sctable="SC_DATA" expcube=/scratch/kocevski/250046/ltcube_309571201_309830401_4FGL_J0809.8+0507_daily_bin271.fits outfile=/scratch/kocevski/250046/expmap_309571201_309830401_4FGL_J0809.8+0507_daily_bin271.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/250046/ltcube_309571201_309830401_4FGL_J0809.8+0507_daily_bin271.fits
.....................!
real 190.84
user 185.06
sys 5.39

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/250046/ft1_filtered_4FGL_J0809.8+0507_daily_bin271.fits scfile=/scratch/kocevski/250046/ft2_4FGL_J0809.8+0507_daily_bin271.fits outfile=/scratch/kocevski/250046/cmap_309571201_309830401_4FGL_J0809.8+0507_daily_bin271.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.17
user 0.39
sys 0.77

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250046/ft1_filtered_4FGL_J0809.8+0507_daily_bin271.fits scfile=/scratch/kocevski/250046/ft2_4FGL_J0809.8+0507_daily_bin271.fits outfile=/scratch/kocevski/250046/cmap_HighResolution_309571201_309830401_4FGL_J0809.8+0507_daily_bin271.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.19
user 0.39
sys 0.78

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/250046/ft1_filtered_4FGL_J0809.8+0507_daily_bin271.fits', '/scratch/kocevski/250046/ft2_4FGL_J0809.8+0507_daily_bin271.fits', expMap='/scratch/kocevski/250046/expmap_309571201_309830401_4FGL_J0809.8+0507_daily_bin271.fits', expCube='/scratch/kocevski/250046/ltcube_309571201_309830401_4FGL_J0809.8+0507_daily_bin271.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/250046/Model_4FGL_J0809.8+0507_daily_bin271.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/250046/ft1_filtered_4FGL_J0809.8+0507_daily_bin271.fits
Spacecraft file(s): /scratch/kocevski/250046/ft2_4FGL_J0809.8+0507_daily_bin271.fits
Exposure map: /scratch/kocevski/250046/expmap_309571201_309830401_4FGL_J0809.8+0507_daily_bin271.fits
Exposure cube: /scratch/kocevski/250046/ltcube_309571201_309830401_4FGL_J0809.8+0507_daily_bin271.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/250046/Model_4FGL_J0809.8+0507_daily_bin271.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) = 5375.86025582

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.4592       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.4425       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    10.054       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.4198       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.8801       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .30998E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    13.619       1.0000         .10000E-03   10000.    
    12 'norm      '    2.2685       1.0000         .10000E-03   10000.    
    13 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.4848       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .95369       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0895       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=   5375.761     FROM MIGRAD    STATUS=CONVERGED    456 CALLS     1914 TOTAL
                     EDM=   .50E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.4587        32.935        .24892E-06    .44511E-05
   2  Prefactor     .10000E-03    15.243       -.31777E-05** at limit **
   3  norm          4.4424        2.2658        .63487E-07    .18253E-03
   4  Prefactor     .10000E-03    33.579       -.36660E-06** at limit **
   5  Prefactor     .10000E-03    1.5237       -.81248E-08** at limit **
   6  norm          10.052        16.897       -.25130E-07    .79186E-05
   7  Prefactor     8.4194        10.088        .10078E-06    .14341E-04
   8  Prefactor     .10000E-03    144.27        .24827E-05** at limit **
   9  Prefactor     9.8805        8.0164        .12222E-08    .12028E-04
  10  Prefactor     .10000E-03    88.763       -.55419E-05** at limit **
  11  norm          13.619        11.307        .11958E-06    .44885E-04
  12  norm          2.2688        3.4051        .11250E-06    .54720E-05
  13  norm          .10000E-03    6.9362        .40176E-07** at limit **
  14  norm          .10000E-03    3.3121        .35936E-07** at limit **
  15  Prefactor     .10000E-03    14.244        .22241E-05** at limit **
  16  Prefactor     .10000E-03    9.0416       -.85456E-07** at limit **
  17  norm          .10000E-03    .51161       -.76426E-07** at limit **
  18  norm          2.4861        7.4985        .60355E-05    .22702E-04
  19  Prefactor     .10000E-03    19.625        .13334E-05** at limit **
  20  Normalizat    .95346        .21034       -.31208E-06    .14660E-03
  21  Prefactor     1.0896        .15342       -.66478E-07    .20140E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.45868
  Prefactor  = 0.0001
  norm       = 4.44235
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.0521
  Prefactor  = 8.41939
  Prefactor  = 0.0001
  Prefactor  = 9.88046
  Prefactor  = 0.000100003
  norm       = 13.6186
  norm       = 2.26877
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.48612
  Prefactor  = 0.0001
  Normalizat = 0.953456
  Prefactor  = 1.08959
 **********
 **   18 **HESSE 
 **********

 FCN=   5375.761     FROM HESSE     STATUS=OK           315 CALLS     2229 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.4587        33.022        .13030E-03   -1.5093    
   2  Prefactor     .10000E-03    15.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.4424        2.2714        .75070E-04   -1.5286    
   4  Prefactor     .10000E-03    33.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.5592        .88308E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          10.052        16.876        .12637E-03   -1.5074    
   7  Prefactor     8.4194        10.079        .13815E-03   -1.5128    
   8  Prefactor     .10000E-03    144.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.8805        8.0089        .12748E-03   -1.5079    
  10  Prefactor     .10000E-03    90.557        .42752E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          13.619        11.302        .10854E-03   -1.4970    
  12  norm          2.2688        3.3941        .15850E-03   -1.5407    
  13  norm          .10000E-03    6.9510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.4422        .26049E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.0976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .74219        .10098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.4861        7.5012        .12967E-02   -1.5393    
  19  Prefactor     .10000E-03    19.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .95346        .24294        .29525E-03   -.94606    
  21  Prefactor     1.0896        .17924        .19989E-03   -.89800    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.24657e-11
Minuit parameter uncertainties:
  1  33.0859
  2  2.09224e-05
  3  2.27146
  4  1.0356e-05
  5  1.54375e-06
  6  16.8842
  7  10.0815
  8  1.8916e-05
  9  8.00981
  10  0.00102311
  11  11.3034
  12  3.39443
  13  4.82111e-06
  14  2.58173e-06
  15  1.43976e-05
  16  5.76236e-06
  17  6.60737e-06
  18  7.50406
  19  4.38098e-06
  20  0.243223
  21  0.179341
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  4.821e-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:  1.090e+00  1.793e-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:  9.535e-01  2.432e-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: 5.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.33e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/250046/likelihoodResults_309571201_309830401_4FGL_J0809.8+0507_daily_bin271.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) = 5375.76195314
delta logL = -0.000683643259435

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5375.76126948
delta logL = 1.74322849489e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8067       1.0000          .0000       5.0000    
     3 'Normalizat'    .95347       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0896       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5375.761     FROM MIGRAD    STATUS=FAILED       100 CALLS      237 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    430.52        .18142E-01** at limit **
   2  alpha         1.8661        2.9595        .16620       -.49935E-07
   3  Normalizat    .95345        .41871E-01    .29525E-03   -.14343E-03
   4  Prefactor     1.0896        .30273E-01    .19989E-03   -.12458E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5375.761     FROM SIMPLEX   STATUS=UNCHANGED    180 CALLS      417 TOTAL
                     EDM=   .96E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    430.52        .49413E-03** at limit **
   2  alpha         1.8661        2.9595        .10596E-05   -.49935E-07
   3  Normalizat    .95345        .41871E-01    .16321E-07   -.14343E-03
   4  Prefactor     1.0896        .30273E-01    .60834E-08   -.12458E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5375.761     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      445 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.1928        .20442E-02** at limit **
   2  alpha         1.8729        3.8923        .66480E-02   -.11287E-07
   3  Normalizat    .95345        .23921        .11810E-04   -.14266E-03
   4  Prefactor     1.0896        .17306        .39977E-04   -.12353E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.87286
  Normalizat = 0.953455
  Prefactor  = 1.08959
 **********
 **   18 **HESSE 
 **********

 FCN=   5375.761     FROM HESSE     STATUS=OK            23 CALLS      468 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.1868        .40884E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8729        3.2546        .13296E-02   -.25356    
   3  Normalizat    .95345        .23894        .23620E-05   -.94606    
   4  Prefactor     1.0896        .17291        .79954E-05   -.89800    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.48638e-11
Minuit parameter uncertainties:
  1  4.84147e-05
  2  661.706
  3  0.239212
  4  0.172995
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250046': 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) = 5375.76126841
delta logL = 1.08510357677e-06

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  4.841e-05  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  1.873e+00  6.617e+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:  1.090e+00  1.730e-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:  9.535e-01  2.392e-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/250046/cmap_HighResolution_309571201_309830401_4FGL_J0809.8+0507_daily_bin271.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.33e-05', job_status='DONE', photon_flux_upper_limit='5.06e-08', time_completed='2021-08-29 09:04:16.807973', job_id='250046', GAL2='1.09', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1630253056.81', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='1.09e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='271' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:04:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 250046: <4FGL_J0809.8+0507_daily_bin271> in cluster <slac> Done

Job <4FGL_J0809.8+0507_daily_bin271> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 29 08:50:25 2021
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 08:50:27 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:27 2021
Terminated at Sun Aug 29 09:04:17 2021
Results reported at Sun Aug 29 09:04:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin271 122.453 5.1313 309571201 309830401 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 :                                   591.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             261.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            832 sec.

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

