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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin455
RA = 122.453, Dec = 5.1313
tmin = 357264001, tmax = 357523201
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='250346', job_status='RUN', time_executed='2021-08-29 08:55:17.741623', time_epoch_executed='1630252517.74' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='455'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250346

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250346/ft1_4FGL_J0809.8+0507_daily_bin455.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250346/ft2_4FGL_J0809.8+0507_daily_bin455.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250346/ft1_4FGL_J0809.8+0507_daily_bin455.fits outfile=/scratch/kocevski/250346/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin455.fits ra=122.453 dec=5.1313 rad=12.0 tmin=357264001.0 tmax=357523201.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 8.05
user 3.60
sys 4.40

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/250346/ft2_4FGL_J0809.8+0507_daily_bin455.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/250346/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin455.fits evtable="EVENTS" outfile="/scratch/kocevski/250346/ft1_filtered_4FGL_J0809.8+0507_daily_bin455.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 4.67
user 0.35
sys 4.30

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250346/ft1_filtered_4FGL_J0809.8+0507_daily_bin455.fits" evtable="EVENTS" scfile=/scratch/kocevski/250346/ft2_4FGL_J0809.8+0507_daily_bin455.fits sctable="SC_DATA" outfile=/scratch/kocevski/250346/ltcube_357264001_357523201_4FGL_J0809.8+0507_daily_bin455.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/250346/ft2_4FGL_J0809.8+0507_daily_bin455.fits
.....................!
real 16.86
user 11.81
sys 5.00

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250346/ft1_filtered_4FGL_J0809.8+0507_daily_bin455.fits evtable="EVENTS" scfile=/scratch/kocevski/250346/ft2_4FGL_J0809.8+0507_daily_bin455.fits sctable="SC_DATA" expcube=/scratch/kocevski/250346/ltcube_357264001_357523201_4FGL_J0809.8+0507_daily_bin455.fits outfile=/scratch/kocevski/250346/expmap_357264001_357523201_4FGL_J0809.8+0507_daily_bin455.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/250346/ltcube_357264001_357523201_4FGL_J0809.8+0507_daily_bin455.fits
.....................!
real 196.00
user 185.96
sys 9.57

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/250346/ft1_filtered_4FGL_J0809.8+0507_daily_bin455.fits scfile=/scratch/kocevski/250346/ft2_4FGL_J0809.8+0507_daily_bin455.fits outfile=/scratch/kocevski/250346/cmap_357264001_357523201_4FGL_J0809.8+0507_daily_bin455.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 4.65
user 0.38
sys 4.24

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250346/ft1_filtered_4FGL_J0809.8+0507_daily_bin455.fits scfile=/scratch/kocevski/250346/ft2_4FGL_J0809.8+0507_daily_bin455.fits outfile=/scratch/kocevski/250346/cmap_HighResolution_357264001_357523201_4FGL_J0809.8+0507_daily_bin455.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 4.68
user 0.37
sys 4.28

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.1655       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.2231       1.0000         .10000E-03   10000.    
     6 'norm      '    3.9064       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10747E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.6913       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.0499       1.0000         .10000E-03   10000.    
    13 'norm      '    4.2978       1.0000         .10000E-03   10000.    
    14 'norm      '    .53245       1.0000         .10000E-03   10000.    
    15 'Prefactor '    129.45       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .28400       1.0000         .10000E-03   10000.    
    18 'norm      '    8.2921       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .98107       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1034       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=   6589.289     FROM MIGRAD    STATUS=CONVERGED    459 CALLS     2840 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.356        .44353E-08** at limit **
   2  Prefactor     .10000E-03    18.877        .36032E-07** at limit **
   3  norm          3.1655        2.0203        .11179E-06    .70824E-05
   4  Prefactor     .10000E-03    9.0538        .53605E-08** at limit **
   5  Prefactor     4.2232        3.3930        .15685E-06    .72390E-05
   6  norm          3.9088        22.451        .92762E-06    .32414E-05
   7  Prefactor     .10000E-03    10.742       -.77278E-07** at limit **
   8  Prefactor     .10000E-03    90.227        .41308E-06** at limit **
   9  Prefactor     .10000E-03    3.9995       -.31947E-07** at limit **
  10  Prefactor     2.7261        91.585        .13807E-05    .40120E-04
  11  norm          .10000E-03    3.0726        .43087E-08** at limit **
  12  norm          1.0499        2.0187        .62058E-06    .48609E-03
  13  norm          4.2896        27.581        .74936E-06   -.48421E-04
  14  norm          .53316        4.6720        .18280E-05   -.51816E-03
  15  Prefactor     129.45        54.624       -.10034E-06   -.97467E-04
  16  Prefactor     .10000E-03    3.8833       -.15513E-07** at limit **
  17  norm          .28401        .89155        .77915E-06    .32292E-03
  18  norm          8.2922        9.4303       -.80160E-08   -.98353E-04
  19  Prefactor     .10000E-03    59.450       -.20252E-06** at limit **
  20  Normalizat    .98105        .21764       -.12942E-05   -.24534E-03
  21  Prefactor     1.1034        .14513       -.96246E-07   -.34134E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.16552
  Prefactor  = 0.0001
  Prefactor  = 4.22316
  norm       = 3.90879
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.72605
  norm       = 0.0001
  norm       = 1.04985
  norm       = 4.28961
  norm       = 0.533161
  Prefactor  = 129.449
  Prefactor  = 0.0001
  norm       = 0.284013
  norm       = 8.29221
  Prefactor  = 0.0001
  Normalizat = 0.981047
  Prefactor  = 1.10336
 **********
 **   18 **HESSE 
 **********

 FCN=   6589.289     FROM HESSE     STATUS=OK           319 CALLS     3159 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.1655        2.0239        .87747E-04   -1.5352    
   4  Prefactor     .10000E-03    9.0569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.2232        3.3935        .12756E-03   -1.5297    
   6  norm          3.9088        22.388        .20413E-03   -1.5313    
   7  Prefactor     .10000E-03    10.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    90.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.0626        .15852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.7261        89.163        .24835E-03   -1.5378    
  11  norm          .10000E-03    3.0773        .13895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.0499        1.9294        .16190E-02   -1.5503    
  13  norm          4.2896        26.885        .19433E-03   -1.5294    
  14  norm          .53316        6.0460        .26989E-02   -1.5562    
  15  Prefactor     129.45        54.589        .35387E-04   -1.3428    
  16  Prefactor     .10000E-03    3.8861        .15622E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .28401        .90346        .13227E-03   -1.5601    
  18  norm          8.2922        9.4100        .13922E-03   -1.5132    
  19  Prefactor     .10000E-03    59.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .98105        .25460        .31722E-03   -.93668    
  21  Prefactor     1.1034        .17027        .20550E-03   -.89359    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.53638e-10
Minuit parameter uncertainties:
  1  1.8175e-06
  2  1.6172e-05
  3  2.02392
  4  2.6461e-06
  5  3.3937
  6  18.7197
  7  1.19861e-05
  8  0.000418625
  9  3.25656e-06
  10  31.2312
  11  1.34708e-06
  12  1.92955
  13  21.4918
  14  3.59094
  15  54.6103
  16  3.20748e-07
  17  0.903501
  18  9.4117
  19  4.92973e-05
  20  0.254911
  21  0.170355
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  4.290e+00  2.149e+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.103e+00  1.704e-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.810e-01  2.549e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/250346/likelihoodResults_357264001_357523201_4FGL_J0809.8+0507_daily_bin455.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) = 6589.28541526
delta logL = 0.00322720979511

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6589.28469818
delta logL = 0.00394428626532

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.9084       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5289       1.0000          .0000       5.0000    
     3 'Normalizat'    .98193       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1028       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6589.285     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      278 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.9084        26.363        .90773E-03   -.60292E-04
   2  alpha         2.5289        3.7191        .95345E-01    .63855E-05
   3  Normalizat    .98183        .24206        .31711E-03   -.35851E-07
   4  Prefactor     1.1028        .16573        .20554E-03   -.55312E-07
                               ERR DEF=  .500    
Final values: 
  norm       = 4.90843
  alpha      = 2.52893
  Normalizat = 0.981834
  Prefactor  = 1.10283
 **********
 **   18 **HESSE 
 **********

 FCN=   6589.285     FROM HESSE     STATUS=OK            25 CALLS      303 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.9084        24.078        .36309E-04   -1.5265    
   2  alpha         2.5289        3.6984        .38138E-02    .11571E-01
   3  Normalizat    .98183        .24237        .12684E-04   -.93642    
   4  Prefactor     1.1028        .16587        .82216E-05   -.89376    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.63073e-11
Minuit parameter uncertainties:
  1  21.7564
  2  3.13909
  3  0.242642
  4  0.165943
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250346': 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) = 6589.28469807
delta logL = 0.00394439959109

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  4.908e+00  2.176e+01  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.529e+00  3.139e+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.103e+00  1.659e-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.818e-01  2.426e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
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/250346/cmap_HighResolution_357264001_357523201_4FGL_J0809.8+0507_daily_bin455.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.57e-05', job_status='DONE', photon_flux_upper_limit='9.76e-08', time_completed='2021-08-29 09:07:23.285854', job_id='250346', GAL2='1.10', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1630253243.29', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='3.94e-03', ts2='0.06', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='455' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:07:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 250346: <4FGL_J0809.8+0507_daily_bin455> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin455 122.453 5.1313 357264001 357523201 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 :                                   792.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             250.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   990 sec.
    Turnaround time :                            992 sec.

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

