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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin961
RA = 122.453, Dec = 5.1313
tmin = 488419201, tmax = 488678401
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='254326', job_status='RUN', time_executed='2021-08-29 09:08:41.610689', time_epoch_executed='1630253321.61' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='961'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/254326

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/254326/ft1_4FGL_J0809.8+0507_daily_bin961.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/254326/ft2_4FGL_J0809.8+0507_daily_bin961.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/254326/ft1_4FGL_J0809.8+0507_daily_bin961.fits outfile=/scratch/kocevski/254326/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin961.fits ra=122.453 dec=5.1313 rad=12.0 tmin=488419201.0 tmax=488678401.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 9.49
user 6.85
sys 2.60

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/254326/ft1_filtered_4FGL_J0809.8+0507_daily_bin961.fits" evtable="EVENTS" scfile=/scratch/kocevski/254326/ft2_4FGL_J0809.8+0507_daily_bin961.fits sctable="SC_DATA" outfile=/scratch/kocevski/254326/ltcube_488419201_488678401_4FGL_J0809.8+0507_daily_bin961.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/254326/ft2_4FGL_J0809.8+0507_daily_bin961.fits
.....................!
real 14.36
user 11.55
sys 2.65

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/254326/ft1_filtered_4FGL_J0809.8+0507_daily_bin961.fits evtable="EVENTS" scfile=/scratch/kocevski/254326/ft2_4FGL_J0809.8+0507_daily_bin961.fits sctable="SC_DATA" expcube=/scratch/kocevski/254326/ltcube_488419201_488678401_4FGL_J0809.8+0507_daily_bin961.fits outfile=/scratch/kocevski/254326/expmap_488419201_488678401_4FGL_J0809.8+0507_daily_bin961.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/254326/ltcube_488419201_488678401_4FGL_J0809.8+0507_daily_bin961.fits
.....................!
real 193.45
user 185.85
sys 7.09

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/254326/ft1_filtered_4FGL_J0809.8+0507_daily_bin961.fits scfile=/scratch/kocevski/254326/ft2_4FGL_J0809.8+0507_daily_bin961.fits outfile=/scratch/kocevski/254326/cmap_488419201_488678401_4FGL_J0809.8+0507_daily_bin961.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 3.07
user 0.39
sys 2.44

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/254326/ft1_filtered_4FGL_J0809.8+0507_daily_bin961.fits scfile=/scratch/kocevski/254326/ft2_4FGL_J0809.8+0507_daily_bin961.fits outfile=/scratch/kocevski/254326/cmap_HighResolution_488419201_488678401_4FGL_J0809.8+0507_daily_bin961.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 2.88
user 0.39
sys 2.43

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    90.784       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.0637       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.204       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.0767       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.8514       1.0000         .10000E-03   10000.    
    12 'norm      '    1.9009       1.0000         .10000E-03   10000.    
    13 'norm      '    34.272       1.0000         .10000E-03   10000.    
    14 'norm      '    12.349       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.2938       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    121.69       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .74802       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0815       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=   3585.923     FROM MIGRAD    STATUS=CONVERGED    438 CALLS     2178 TOTAL
                     EDM=   .90E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     90.791        80.624        .24252E-06    .13421E-04
   2  Prefactor     .10000E-03    13.066       -.46224E-06** at limit **
   3  norm          3.0639        2.6376        .12894E-06    .72183E-04
   4  Prefactor     16.198        48.366        .12481E-05   -.19439E-05
   5  Prefactor     .10000E-03    3.1819        .25738E-06** at limit **
   6  norm          .10000E-03    15.254        .82813E-06** at limit **
   7  Prefactor     .10000E-03    11.543        .34573E-06** at limit **
   8  Prefactor     .10000E-03    109.02        .28214E-06** at limit **
   9  Prefactor     3.0771        7.0302        .18892E-05   -.46214E-04
  10  Prefactor     .10000E-03    13.718       -.17771E-06** at limit **
  11  norm          1.8515        13.215        .84675E-05   -.35536E-04
  12  norm          1.9005        3.0897        .48506E-07    .23675E-04
  13  norm          34.275        31.058        .93989E-07    .16252E-04
  14  norm          12.349        6.5465       -.10873E-06    .69586E-05
  15  Prefactor     .10000E-03    20.391       -.14502E-06** at limit **
  16  Prefactor     .10000E-03    7.0369       -.89777E-07** at limit **
  17  norm          3.2930        2.1821        .40716E-07   -.85028E-04
  18  norm          .10000E-03    4.2316        .58372E-07** at limit **
  19  Prefactor     121.66        74.070        .11323E-05   -.37314E-04
  20  Normalizat    .74826        .27775        .14559E-05   -.29068E-04
  21  Prefactor     1.0814        .19221       -.21233E-05   -.21137E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 90.7914
  Prefactor  = 0.0001
  norm       = 3.06385
  Prefactor  = 16.1977
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.07713
  Prefactor  = 0.0001
  norm       = 1.85145
  norm       = 1.90052
  norm       = 34.2747
  norm       = 12.3485
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.29301
  norm       = 0.0001
  Prefactor  = 121.665
  Normalizat = 0.748259
  Prefactor  = 1.08139
 **********
 **   18 **HESSE 
 **********

 FCN=   3585.923     FROM HESSE     STATUS=OK           315 CALLS     2493 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     90.791        80.902        .42174E-04   -1.3799    
   2  Prefactor     .10000E-03    13.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.0639        2.6349        .85563E-04   -1.5358    
   4  Prefactor     16.198        48.732        .99497E-04   -1.4903    
   5  Prefactor     .10000E-03    3.2339        .10429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    15.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    109.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.0771        6.9904        .11562E-02   -1.5357    
  10  Prefactor     .10000E-03    13.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.8515        13.289        .15320E-02   -1.5436    
  12  norm          1.9005        3.0730        .12954E-03   -1.5432    
  13  norm          34.275        31.065        .68451E-04   -1.4536    
  14  norm          12.349        6.5473        .10741E-03   -1.5005    
  15  Prefactor     .10000E-03    20.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.0435        .15515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.2930        2.1857        .66367E-04   -1.5345    
  18  norm          .10000E-03    4.2360        .12031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     121.66        74.412        .18242E-03   -1.3497    
  20  Normalizat    .74826        .31906        .33591E-03   -1.0202    
  21  Prefactor     1.0814        .22227        .19801E-03   -.90064    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11264e-10
Minuit parameter uncertainties:
  1  81.0008
  2  4.28471e-05
  3  2.63499
  4  48.8517
  5  3.2328e-05
  6  2.18053e-05
  7  7.43354e-06
  8  8.53095e-05
  9  6.99225
  10  3.63917e-05
  11  9.92347
  12  3.07329
  13  31.0796
  14  6.54771
  15  4.83835e-05
  16  1.63586e-05
  17  2.18577
  18  8.34492e-06
  19  74.4695
  20  0.319861
  21  0.222461
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  3.427e+01  3.108e+01  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.081e+00  2.225e-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:  7.483e-01  3.199e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.97
Ra Dec: 122.453 5.131
Photon Index (Fixed Index): 2.82 +/- 0.00
Photon Flux (Fixed Index): 5.50e-08 +/- 4.98e-08
Energy Flux (Fixed Index): 1.45e-05 +/- 1.31e-05

TS (Fixed Index): 1.97
Ra Dec: 122.453 5.131
Photon Flux Upper Limit: 1.71e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.51e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/254326/likelihoodResults_488419201_488678401_4FGL_J0809.8+0507_daily_bin961.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): 0
logL (Free Index) = 3585.13620137
delta logL = 0.787224057798

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3585.1057179
delta logL = 0.817707522694

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    43.125       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.0423       1.0000          .0000       5.0000    
     3 'Normalizat'    .79821       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0493       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.

 FCN=   3585.106     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      210 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          43.125        33.040        .15262E-02    .66509E-03
   2  alpha         1.0424        .99982        .50000       -.80597E-05
   3  Normalizat    .79811        .25901        .73631E-01    .13202E-04
   4  Prefactor     1.0493        .18140        .39951E-01    .17342E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 43.1248
  alpha      = 1.04244
  Normalizat = 0.798111
  Prefactor  = 1.04931
 **********
 **   18 **HESSE 
 **********

 FCN=   3585.106     FROM HESSE     STATUS=OK            31 CALLS      241 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          43.125        38.285        .61047E-04   -1.4394    
   2  alpha         1.0424        1.0882        .29928E-01   -.62245    
   3  Normalizat    .79811        .29521        .32588E-03   -1.0014    
   4  Prefactor     1.0493        .20712        .20034E-03   -.91104    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1205e-09
Minuit parameter uncertainties:
  1  38.3064
  2  1.14842
  3  0.295808
  4  0.207278
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/254326': 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) = 3585.10571774
delta logL = 0.817707684999

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  4.312e+01  3.831e+01  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  1.042e+00  1.148e+00  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.049e+00  2.073e-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:  7.981e-01  2.958e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.61
Ra Dec: 122.453 5.131
Photon Index (Free Index): 1.04 +/- 1.15
Photon Flux (Free Index): 3.59e-08 +/- 3.14e-08
Energy Flux (Free Index): 2.15e-05 +/- 1.70e-05

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/254326/cmap_HighResolution_488419201_488678401_4FGL_J0809.8+0507_daily_bin961.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.51e-05', comment='SUCCESS', photon_flux='5.50e-08', energy_flux2='2.15e-05', photon_flux_error='4.98e-08', dlogl='8.18e-01', energy_flux='1.45e-05', photon_flux2='3.59e-08', job_status='DONE', time_completed='2021-08-29 09:17:31.246540', photon_index_error2='1.15', photon_index2='1.04', ts='1.97', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='1.71e-07', energy_flux_error2='1.70e-05', EG='0.75', time_epoch_completed='1630253851.25', return_code='0', job_id='254326', GAL2='1.05', EG2='0.80', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='3.14e-08', ts2='3.61', photon_index='2.82' WHERE bin_id='961' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:17:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 254326: <4FGL_J0809.8+0507_daily_bin961> in cluster <slac> Done

Job <4FGL_J0809.8+0507_daily_bin961> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Aug 29 09:05:24 2021
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 09:05: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 09:05:26 2021
Terminated at Sun Aug 29 09:17:31 2021
Results reported at Sun Aug 29 09:17:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin961 122.453 5.1313 488419201 488678401 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 :                                   556.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             204.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   725 sec.
    Turnaround time :                            727 sec.

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

