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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin414
RA = 122.453, Dec = 5.1313
tmin = 346636801, tmax = 346896001
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='250278', job_status='RUN', time_executed='2021-08-29 08:53:17.532341', time_epoch_executed='1630252397.53' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='414'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250278

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250278/ft1_4FGL_J0809.8+0507_daily_bin414.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250278/ft2_4FGL_J0809.8+0507_daily_bin414.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250278/ft1_4FGL_J0809.8+0507_daily_bin414.fits outfile=/scratch/kocevski/250278/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin414.fits ra=122.453 dec=5.1313 rad=12.0 tmin=346636801.0 tmax=346896001.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 3.56
user 3.19
sys 0.36

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250278/ft1_filtered_4FGL_J0809.8+0507_daily_bin414.fits evtable="EVENTS" scfile=/scratch/kocevski/250278/ft2_4FGL_J0809.8+0507_daily_bin414.fits sctable="SC_DATA" expcube=/scratch/kocevski/250278/ltcube_346636801_346896001_4FGL_J0809.8+0507_daily_bin414.fits outfile=/scratch/kocevski/250278/expmap_346636801_346896001_4FGL_J0809.8+0507_daily_bin414.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/250278/ltcube_346636801_346896001_4FGL_J0809.8+0507_daily_bin414.fits
.....................!
real 191.85
user 186.97
sys 4.50

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/250278/ft1_filtered_4FGL_J0809.8+0507_daily_bin414.fits scfile=/scratch/kocevski/250278/ft2_4FGL_J0809.8+0507_daily_bin414.fits outfile=/scratch/kocevski/250278/cmap_346636801_346896001_4FGL_J0809.8+0507_daily_bin414.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 0.72
user 0.37
sys 0.32

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250278/ft1_filtered_4FGL_J0809.8+0507_daily_bin414.fits scfile=/scratch/kocevski/250278/ft2_4FGL_J0809.8+0507_daily_bin414.fits outfile=/scratch/kocevski/250278/cmap_HighResolution_346636801_346896001_4FGL_J0809.8+0507_daily_bin414.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 0.71
user 0.37
sys 0.34

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.632       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10219E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.9191       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10391E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.280       1.0000         .10000E-03   10000.    
     8 'Prefactor '    73.399       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.955       1.0000         .10000E-03   10000.    
    11 'norm      '    .10182E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.8336       1.0000         .10000E-03   10000.    
    13 'norm      '    .10800E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.2678       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.4829       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1488       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .89778       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=   5436.334     FROM MIGRAD    STATUS=CONVERGED    453 CALLS     2165 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.585        50.889       -.54682E-07   -.67411E-05
   2  Prefactor     .10000E-03    22.968        .23775E-06** at limit **
   3  norm          3.9193        2.1002        .63231E-07   -.20920E-04
   4  Prefactor     .10000E-03    8.8485        .10253E-06** at limit **
   5  Prefactor     .10000E-03    1.0837       -.15465E-05** at limit **
   6  norm          .10000E-03    6.4090        .20600E-07** at limit **
   7  Prefactor     13.279        12.057        .22239E-06    .34275E-04
   8  Prefactor     72.896        122.98       -.10765E-05   -.34002E-04
   9  Prefactor     .10000E-03    4.6185        .30751E-06** at limit **
  10  Prefactor     13.918        25.401        .84286E-07    .43222E-05
  11  norm          .10000E-03    14.954        .14117E-05** at limit **
  12  norm          1.8336        1.8447        .20364E-07   -.12277E-04
  13  norm          .10000E-03    12.723        .15270E-05** at limit **
  14  norm          4.2680        3.3762        .34644E-07   -.66675E-04
  15  Prefactor     .10000E-03    14.930        .51104E-06** at limit **
  16  Prefactor     .10000E-03    6.5257        .11498E-06** at limit **
  17  norm          .10000E-03    .64420        .43192E-06** at limit **
  18  norm          5.4802        9.1103        .51427E-05   -.80946E-04
  19  Prefactor     .10000E-03    15.520        .21296E-06** at limit **
  20  Normalizat    1.1492        .19787       -.17968E-05   -.75483E-04
  21  Prefactor     .89752        .13766        .24892E-06   -.19450E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.5852
  Prefactor  = 0.0001
  norm       = 3.91931
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.279
  Prefactor  = 72.8963
  Prefactor  = 0.0001
  Prefactor  = 13.9178
  norm       = 0.0001
  norm       = 1.83363
  norm       = 0.0001
  norm       = 4.26803
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.48021
  Prefactor  = 0.0001
  Normalizat = 1.14919
  Prefactor  = 0.897519
 **********
 **   18 **HESSE 
 **********

 FCN=   5436.334     FROM HESSE     STATUS=OK           315 CALLS     2480 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.585        51.085        .71242E-04   -1.4583    
   2  Prefactor     .10000E-03    23.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.9193        2.0988        .74740E-04   -1.5312    
   4  Prefactor     .10000E-03    8.8502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.0872        .74639E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6.4130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.279        12.071        .10991E-03   -1.4979    
   8  Prefactor     72.896        123.26        .23431E-03   -1.3998    
   9  Prefactor     .10000E-03    4.6425        .15475E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.918        25.403        .10722E-03   -1.4962    
  11  norm          .10000E-03    15.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.8336        1.8534        .97784E-04   -1.5437    
  13  norm          .10000E-03    12.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.2680        3.3749        .11689E-03   -1.5295    
  15  Prefactor     .10000E-03    14.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.5441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.0315        .11186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.4802        9.1274        .85797E-03   -1.5240    
  19  Prefactor     .10000E-03    15.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1492        .22572        .26567E-03   -.88188    
  21  Prefactor     .89752        .15845        .10428E-02   -.96228    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.4065e-10
Minuit parameter uncertainties:
  1  51.156
  2  1.26498e-05
  3  2.09882
  4  1.77802e-06
  5  4.96852e-06
  6  2.74743e-06
  7  12.0728
  8  123.693
  9  2.84156e-06
  10  25.4224
  11  1.8913e-05
  12  1.85343
  13  7.03644e-07
  14  3.37506
  15  1.01754e-05
  16  6.17769e-06
  17  4.43277e-05
  18  9.1297
  19  8.046e-06
  20  0.225909
  21  0.158534
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  7.036e-07  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:  8.975e-01  1.585e-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.149e+00  2.259e-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.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.62e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/250278/likelihoodResults_346636801_346896001_4FGL_J0809.8+0507_daily_bin414.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) = 5436.33390391
delta logL = -0.000372296161913

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5436.33353205
delta logL = -4.32543856732e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10584E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8084       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1491       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89762       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=   5436.334     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      234 TOTAL
                     EDM=   .81E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    550.60        .18142E-01** at limit **
   2  alpha         2.3349        3.6416        .16622        .49246E-08
   3  Normalizat    1.1492        .35464E-01    .26567E-03    .26959E-04
   4  Prefactor     .89752        .25067E-01    .20856E-03    .36685E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.33491
  Normalizat = 1.14919
  Prefactor  = 0.89752
 **********
 **   18 **HESSE 
 **********

 FCN=   5436.334     FROM HESSE     STATUS=OK            23 CALLS      257 TOTAL
                     EDM=   .35E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    13.729        .26368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3349        2.7537        .66487E-02   -.66085E-01
   3  Normalizat    1.1492        .21972        .10627E-04   -.88188    
   4  Prefactor     .89752        .15539        .83426E-05   -.96228    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.49714e-12
Minuit parameter uncertainties:
  1  2.48418e-05
  2  674.483
  3  0.219897
  4  0.155464
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250278': 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) = 5436.33353137
delta logL = 2.48724973062e-07

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  1.000e-04  2.484e-05  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.335e+00  6.745e+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:  8.975e-01  1.555e-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.149e+00  2.199e-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/250278/cmap_HighResolution_346636801_346896001_4FGL_J0809.8+0507_daily_bin414.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.62e-05', job_status='DONE', photon_flux_upper_limit='6.15e-08', time_completed='2021-08-29 09:02:44.422449', job_id='250278', GAL2='0.90', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1630252964.42', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='2.49e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='414' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 09:02:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 250278: <4FGL_J0809.8+0507_daily_bin414> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin414 122.453 5.1313 346636801 346896001 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 :                                   569.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   715 sec.
    Turnaround time :                            718 sec.

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

