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


Performing analysis on: 4FGL_J0809.8+0507_daily_bin150
RA = 122.453, Dec = 5.1313
tmin = 278208001, tmax = 278467201
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='248812', job_status='RUN', time_executed='2021-08-29 08:48:19.963082', time_epoch_executed='1630252099.96' WHERE source_name='4FGL J0809.8+0507' and cadence='daily' and bin_id='150'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/248812

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/248812/ft1_4FGL_J0809.8+0507_daily_bin150.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/248812/ft2_4FGL_J0809.8+0507_daily_bin150.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/248812/ft1_4FGL_J0809.8+0507_daily_bin150.fits outfile=/scratch/kocevski/248812/ft1_filteredMKT_4FGL_J0809.8+0507_daily_bin150.fits ra=122.453 dec=5.1313 rad=12.0 tmin=278208001.0 tmax=278467201.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 6.50
user 5.07
sys 1.38

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/248812/ft1_filtered_4FGL_J0809.8+0507_daily_bin150.fits" evtable="EVENTS" scfile=/scratch/kocevski/248812/ft2_4FGL_J0809.8+0507_daily_bin150.fits sctable="SC_DATA" outfile=/scratch/kocevski/248812/ltcube_278208001_278467201_4FGL_J0809.8+0507_daily_bin150.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/248812/ft2_4FGL_J0809.8+0507_daily_bin150.fits
.....................!
real 13.28
user 11.64
sys 1.60

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/248812/ft1_filtered_4FGL_J0809.8+0507_daily_bin150.fits evtable="EVENTS" scfile=/scratch/kocevski/248812/ft2_4FGL_J0809.8+0507_daily_bin150.fits sctable="SC_DATA" expcube=/scratch/kocevski/248812/ltcube_278208001_278467201_4FGL_J0809.8+0507_daily_bin150.fits outfile=/scratch/kocevski/248812/expmap_278208001_278467201_4FGL_J0809.8+0507_daily_bin150.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/248812/ltcube_278208001_278467201_4FGL_J0809.8+0507_daily_bin150.fits
.....................!
real 192.60
user 186.57
sys 5.69

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/248812/ft1_filtered_4FGL_J0809.8+0507_daily_bin150.fits scfile=/scratch/kocevski/248812/ft2_4FGL_J0809.8+0507_daily_bin150.fits outfile=/scratch/kocevski/248812/cmap_278208001_278467201_4FGL_J0809.8+0507_daily_bin150.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.59
user 0.38
sys 1.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/248812/ft1_filtered_4FGL_J0809.8+0507_daily_bin150.fits scfile=/scratch/kocevski/248812/ft2_4FGL_J0809.8+0507_daily_bin150.fits outfile=/scratch/kocevski/248812/cmap_HighResolution_278208001_278467201_4FGL_J0809.8+0507_daily_bin150.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.65
user 0.39
sys 1.25

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .37851E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .35892       1.0000         .10000E-03   10000.    
     6 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.2634       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10143E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .54028       1.0000         .10000E-03   10000.    
    13 'norm      '    4.7221       1.0000         .10000E-03   10000.    
    14 'norm      '    3.2401       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    12.409       1.0000         .10000E-03   10000.    
    18 'norm      '    3.5350       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.7849       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2246       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1176       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=   5868.129     FROM MIGRAD    STATUS=CONVERGED    466 CALLS     2000 TOTAL
                     EDM=   .10E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    65.643       -.57679E-05** at limit **
   2  Prefactor     .10000E-03    34.882        .20390E-05** at limit **
   3  norm          .10010E-03    .88623        .93650E-07** at limit **
   4  Prefactor     .10000E-03    11.167       -.13127E-06** at limit **
   5  Prefactor     .36596        1.9969        .92190E-07   -.85163E-04
   6  norm          .10000E-03    20.164       -.81592E-06** at limit **
   7  Prefactor     9.2628        10.751        .39434E-06    .22678E-04
   8  Prefactor     .10000E-03    97.730        .63631E-05** at limit **
   9  Prefactor     .10000E-03    9.3545        .44065E-07** at limit **
  10  Prefactor     .10000E-03    17.585        .10142E-05** at limit **
  11  norm          .10000E-03    20.670       -.96464E-06** at limit **
  12  norm          .54066        3.5027        .57947E-06   -.32581E-05
  13  norm          4.7218        17.597        .44577E-07   -.53315E-05
  14  norm          3.2395        3.9068        .68412E-07    .14064E-04
  15  Prefactor     .10000E-03    25.011        .38543E-06** at limit **
  16  Prefactor     .10000E-03    6.4354        .59724E-08** at limit **
  17  norm          12.409        2.2050       -.24327E-07    .15218E-05
  18  norm          3.5348        9.2999        .27618E-05    .24086E-05
  19  Prefactor     9.7844        30.646        .17842E-06    .15818E-06
  20  Normalizat    1.2244        .23905       -.23520E-06    .12110E-04
  21  Prefactor     1.1177        .16260       -.34222E-07    .20855E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100098
  Prefactor  = 0.0001
  Prefactor  = 0.365957
  norm       = 0.0001
  Prefactor  = 9.26279
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.540655
  norm       = 4.72177
  norm       = 3.23952
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.4093
  norm       = 3.53482
  Prefactor  = 9.78444
  Normalizat = 1.22444
  Prefactor  = 1.11775
 **********
 **   18 **HESSE 
 **********

 FCN=   5868.129     FROM HESSE     STATUS=OK           327 CALLS     2327 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    65.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    34.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10010E-03    2.8042        .24824E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .36596        7.5521        .20026E-02   -1.5587    
   6  norm          .10000E-03    20.646        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.2628        10.732        .65839E-03   -1.5099    
   8  Prefactor     .10000E-03    97.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.4090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    17.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    21.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .54066        3.5513        .27484E-03   -1.5561    
  13  norm          4.7218        17.592        .18517E-03   -1.5273    
  14  norm          3.2395        3.8963        .16098E-03   -1.5348    
  15  Prefactor     .10000E-03    25.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.4483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          12.409        2.2097        .45861E-04   -1.5003    
  18  norm          3.5348        9.3132        .10750E-02   -1.5332    
  19  Prefactor     9.7844        30.652        .12811E-03   -1.5082    
  20  Normalizat    1.2244        .27575        .30745E-03   -.85851    
  21  Prefactor     1.1177        .18863        .22259E-03   -.88901    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40882e-08
Minuit parameter uncertainties:
  1  3.42839e-05
  2  9.0165e-06
  3  0.00104883
  4  1.27513e-06
  5  3.32493
  6  9.89911e-06
  7  10.734
  8  4.13096e-05
  9  3.06864e-06
  10  2.19665e-06
  11  1.05658e-06
  12  2.7713
  13  17.6116
  14  3.89664
  15  3.83963e-06
  16  1.55504e-06
  17  2.20969
  18  9.31701
  19  30.7013
  20  0.276075
  21  0.188747
Done.

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

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  4.722e+00  1.761e+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.118e+00  1.887e-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.224e+00  2.761e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/248812/likelihoodResults_278208001_278467201_4FGL_J0809.8+0507_daily_bin150.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) = 5868.11382972
delta logL = 0.0154911157651

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5868.11104855
delta logL = 0.0182722884347

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.1138       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3043       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2254       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1170       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=   5868.111     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      252 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.1207        19.592        .16237E-03    .10502E-05
   2  alpha         2.3052        3.5338        .74197E-01    .40575E-04
   3  Normalizat    1.2257        .26442        .30730E-03   -.13318E-05
   4  Prefactor     1.1167        .18473        .22268E-03    .17154E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.12069
  alpha      = 2.30517
  Normalizat = 1.22575
  Prefactor  = 1.11667
 **********
 **   18 **HESSE 
 **********

 FCN=   5868.111     FROM HESSE     STATUS=OK            25 CALLS      277 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.1207        19.359        .64948E-05   -1.5213    
   2  alpha         2.3052        3.5279        .14839E-01   -.78011E-01
   3  Normalizat    1.2257        .26469        .12292E-04   -.85811    
   4  Prefactor     1.1167        .18489        .89070E-05   -.88935    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21387e-12
Minuit parameter uncertainties:
  1  19.3784
  2  2.59775
  3  0.264983
  4  0.184992
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/248812': 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) = 5868.11104689
delta logL = 0.0182739426409

Extracting fit parameters...

4FGL J0809.8+0507
   Spectrum: LogParabola
280         norm:  6.121e+00  1.938e+01  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.305e+00  2.598e+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.117e+00  1.850e-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.226e+00  2.650e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
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/248812/cmap_HighResolution_278208001_278467201_4FGL_J0809.8+0507_daily_bin150.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.31e-05', job_status='DONE', photon_flux_upper_limit='8.76e-08', time_completed='2021-08-29 08:58:29.807658', job_id='248812', GAL2='1.12', fit_tolerance='1e-08', EG2='1.23', EG='1.22', time_epoch_completed='1630252709.81', return_code2='0', ts='0.08', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='1.83e-02', ts2='0.12', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='150' AND source_name='4FGL J0809.8+0507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 08:58:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 248812: <4FGL_J0809.8+0507_daily_bin150> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.8+0507_daily_bin150 122.453 5.1313 278208001 278467201 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 :                                   626.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             262.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   763 sec.
    Turnaround time :                            765 sec.

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

