aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  while getting realm
/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: Dan/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 217 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 = 17162
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0809.3+4053_weekly_bin561
RA = 122.33, Dec = 40.8954
tmin = 578275201, tmax = 578880001
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='463603', job_status='RUN', time_executed='2021-07-12 04:12:15.127042', time_epoch_executed='1626088335.13' WHERE source_name='4FGL J0809.3+4053' and cadence='weekly' and bin_id='561'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/463603

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/463603/ft1_4FGL_J0809.3+4053_weekly_bin561.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/463603/ft2_4FGL_J0809.3+4053_weekly_bin561.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/463603/ft1_4FGL_J0809.3+4053_weekly_bin561.fits outfile=/scratch/kocevski/463603/ft1_filteredMKT_4FGL_J0809.3+4053_weekly_bin561.fits ra=122.33 dec=40.8954 rad=12.0 tmin=578275201.0 tmax=578880001.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.29
user 7.75
sys 0.33

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/463603/ft2_4FGL_J0809.3+4053_weekly_bin561.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/463603/ft2_4FGL_J0809.3+4053_weekly_bin561.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/463603/ft1_filteredMKT_4FGL_J0809.3+4053_weekly_bin561.fits evtable="EVENTS" outfile="/scratch/kocevski/463603/ft1_filtered_4FGL_J0809.3+4053_weekly_bin561.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.72
user 0.37
sys 0.21

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/463603/ft1_filtered_4FGL_J0809.3+4053_weekly_bin561.fits" evtable="EVENTS" scfile=/scratch/kocevski/463603/ft2_4FGL_J0809.3+4053_weekly_bin561.fits sctable="SC_DATA" outfile=/scratch/kocevski/463603/ltcube_578275201_578880001_4FGL_J0809.3+4053_weekly_bin561.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/463603/ft2_4FGL_J0809.3+4053_weekly_bin561.fits
.....................!
real 27.70
user 26.73
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/463603/ft1_filtered_4FGL_J0809.3+4053_weekly_bin561.fits evtable="EVENTS" scfile=/scratch/kocevski/463603/ft2_4FGL_J0809.3+4053_weekly_bin561.fits sctable="SC_DATA" expcube=/scratch/kocevski/463603/ltcube_578275201_578880001_4FGL_J0809.3+4053_weekly_bin561.fits outfile=/scratch/kocevski/463603/expmap_578275201_578880001_4FGL_J0809.3+4053_weekly_bin561.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/463603/ltcube_578275201_578880001_4FGL_J0809.3+4053_weekly_bin561.fits
.....................!
real 193.94
user 185.65
sys 5.56

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 188 point sources and 0 extended sources

Setting source of interest to:
4FGL J0809.3+4053 @ 122.33 40.8954

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/463603/ft1_filtered_4FGL_J0809.3+4053_weekly_bin561.fits scfile=/scratch/kocevski/463603/ft2_4FGL_J0809.3+4053_weekly_bin561.fits outfile=/scratch/kocevski/463603/cmap_578275201_578880001_4FGL_J0809.3+4053_weekly_bin561.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.33 yref=40.8954 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.48
user 0.40
sys 0.22

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/463603/ft1_filtered_4FGL_J0809.3+4053_weekly_bin561.fits scfile=/scratch/kocevski/463603/ft2_4FGL_J0809.3+4053_weekly_bin561.fits outfile=/scratch/kocevski/463603/cmap_HighResolution_578275201_578880001_4FGL_J0809.3+4053_weekly_bin561.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.33 yref=40.8954 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.85
user 0.41
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/463603/ft1_filtered_4FGL_J0809.3+4053_weekly_bin561.fits evtable="EVENTS" scfile=/scratch/kocevski/463603/ft2_4FGL_J0809.3+4053_weekly_bin561.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/463603/Model_4FGL_J0809.3+4053_weekly_bin561.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/463603/ft1_filtered_4FGL_J0809.3+4053_weekly_bin561.fits.....................!
real 148.56
user 140.05
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/463603/ft1_filtered_4FGL_J0809.3+4053_weekly_bin561.fits', '/scratch/kocevski/463603/ft2_4FGL_J0809.3+4053_weekly_bin561.fits', expMap='/scratch/kocevski/463603/expmap_578275201_578880001_4FGL_J0809.3+4053_weekly_bin561.fits', expCube='/scratch/kocevski/463603/ltcube_578275201_578880001_4FGL_J0809.3+4053_weekly_bin561.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/463603/Model_4FGL_J0809.3+4053_weekly_bin561.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0809.3+4053'

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.019e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.588e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
271        Scale:  6.589e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/463603/ft1_filtered_4FGL_J0809.3+4053_weekly_bin561.fits
Spacecraft file(s): /scratch/kocevski/463603/ft2_4FGL_J0809.3+4053_weekly_bin561.fits
Exposure map: /scratch/kocevski/463603/expmap_578275201_578880001_4FGL_J0809.3+4053_weekly_bin561.fits
Exposure cube: /scratch/kocevski/463603/ltcube_578275201_578880001_4FGL_J0809.3+4053_weekly_bin561.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/463603/Model_4FGL_J0809.3+4053_weekly_bin561.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) = 16325.7231613

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    122.07       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.0508       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.583       1.0000         .10000E-03   10000.    
     6 'norm      '    18.201       1.0000         .10000E-03   10000.    
     7 'norm      '    1.9761       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.7255       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10824E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.0974       1.0000         .10000E-03   10000.    
    11 'norm      '    .13819       1.0000         .10000E-03   10000.    
    12 'norm      '    1.5453       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.4713       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.1766       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.4967       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .17639E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.6440       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.3549       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.5308       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1181       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .89388       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   16325.69     FROM MIGRAD    STATUS=CONVERGED    524 CALLS     2276 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.2273       -.26914E-06** at limit **
   2  Prefactor     .10000E-03    3.3783        .70247E-07** at limit **
   3  Prefactor     122.08        27.645        .80500E-06    .24311E-03
   4  Prefactor     4.0495        6.2379        .34487E-06   -.22532E-04
   5  Prefactor     11.580        10.877        .91381E-06    .16528E-03
   6  norm          18.202        9.2897        .41087E-06    .44745E-04
   7  norm          1.9762        1.6286        .82978E-07   -.26181E-03
   8  Prefactor     3.7223        4.2482        .45811E-06    .17203E-03
   9  Prefactor     .10000E-03    63.771       -.62667E-06** at limit **
  10  Prefactor     1.0983        3.4474        .20614E-05   -.71349E-03
  11  norm          .13982        .49067        .51239E-07   -.26680E-03
  12  norm          1.5452        .43959       -.13172E-06   -.10840E-02
  13  Prefactor     7.4720        14.000        .19552E-06   -.30611E-04
  14  Prefactor     9.1526        9.3809        .19347E-05    .54324E-03
  15  Prefactor     .10001E-03    .66387        .55556E-07** at limit **
  16  Prefactor     8.5002        17.190        .19252E-06    .31635E-04
  17  Prefactor     .10000E-03    2.3871       -.80765E-07** at limit **
  18  norm          1.6441        1.8078       -.52230E-06    .99189E-03
  19  Prefactor     2.3551        1.7139        .16998E-06   -.17065E-03
  20  Prefactor     .10000E-03    14.726       -.59704E-06** at limit **
  21  Prefactor     1.5310        1.5900       -.11835E-07   -.38177E-04
  22  Normalizat    1.1180        .12407       -.14792E-05   -.72138E-04
  23  Prefactor     .89390        .84718E-01   -.86868E-07   -.32520E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 122.079
  Prefactor  = 4.04947
  Prefactor  = 11.5803
  norm       = 18.2025
  norm       = 1.97617
  Prefactor  = 3.72232
  Prefactor  = 0.0001
  Prefactor  = 1.09826
  norm       = 0.139821
  norm       = 1.54521
  Prefactor  = 7.47202
  Prefactor  = 9.15258
  Prefactor  = 0.000100005
  Prefactor  = 8.50021
  Prefactor  = 0.000100001
  norm       = 1.64411
  Prefactor  = 2.35511
  Prefactor  = 0.0001
  Prefactor  = 1.53096
  Normalizat = 1.11804
  Prefactor  = 0.8939
 **********
 **   18 **HESSE 
 **********

 FCN=   16325.69     FROM HESSE     STATUS=OK           384 CALLS     2660 TOTAL
                     EDM=   .60E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.2546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.3917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     122.08        27.692        .36427E-04   -1.3494    
   4  Prefactor     4.0495        6.2023        .20034E-03   -1.5305    
   5  Prefactor     11.580        10.879        .11771E-03   -1.5027    
   6  norm          18.202        9.2917        .93880E-04   -1.4854    
   7  norm          1.9762        1.6139        .14004E-03   -1.5427    
   8  Prefactor     3.7223        4.2384        .20921E-03   -1.5322    
   9  Prefactor     .10000E-03    64.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.0983        3.7698        .40893E-03   -1.5498    
  11  norm          .13982        1.7904        .16222E-02   -1.5633    
  12  norm          1.5452        .43800        .41670E-04   -1.5459    
  13  Prefactor     7.4720        13.997        .14673E-03   -1.5161    
  14  Prefactor     9.1526        9.9797        .13230E-03   -1.5103    
  15  Prefactor     .10001E-03    2.2855        .19222E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.5002        16.741        .13752E-03   -1.5125    
  17  Prefactor     .10000E-03    9.1940        .37008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.6441        1.8507        .89734E-03   -1.5452    
  19  Prefactor     2.3551        1.7127        .13752E-03   -1.5401    
  20  Prefactor     .10000E-03    14.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.5310        1.5949        .15950E-03   -1.5461    
  22  Normalizat    1.1180        .14066        .27494E-03   -.89175    
  23  Prefactor     .89390        .98268E-01    .22096E-03   -.96355    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.98541e-08
Minuit parameter uncertainties:
  1  5.12672e-06
  2  8.54664e-06
  3  27.6947
  4  6.20325
  5  10.881
  6  9.29243
  7  1.61391
  8  4.23876
  9  0.000277792
  10  3.77057
  11  1.00035
  12  0.437998
  13  14.0036
  14  9.98153
  15  0.000223874
  16  16.7505
  17  0.000174121
  18  1.85081
  19  1.7127
  20  4.34541e-05
  21  1.59495
  22  0.140707
  23  0.0982877
Done.

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

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.098e+00  3.771e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.588e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
271        Scale:  6.589e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  8.939e-01  9.829e-02  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  1.118e+00  1.407e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.10
Ra Dec: 122.330 40.895
Photon Flux Upper Limit: 7.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/463603/likelihoodResults_578275201_578880001_4FGL_J0809.3+4053_weekly_bin561.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) = 16325.6779494
delta logL = 0.0155841328997

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 16325.6746374
delta logL = 0.0188961600397

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4014       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2450       1.0000          .0000       10.000    
     3 'Normalizat'    1.1207       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89215       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+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=   16325.67     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      270 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4069        4.0122        .18323E-02    .22091E-02
   2  Index         2.2468        1.4769        .13739E-01   -.54773E-04
   3  Normalizat    1.1207        .13382        .27466E-03   -.18626E-04
   4  Prefactor     .89218        .97388E-01    .22115E-03    .65802E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.40691
  Index      = 2.24677
  Normalizat = 1.12068
  Prefactor  = 0.892184
 **********
 **   18 **HESSE 
 **********

 FCN=   16325.67     FROM HESSE     STATUS=OK            27 CALLS      297 TOTAL
                     EDM=   .99E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4069        4.0023        .36647E-03   -1.5471    
   2  Index         2.2468        1.4757        .27478E-02   -.58314    
   3  Normalizat    1.1207        .13394        .10986E-04   -.89091    
   4  Prefactor     .89218        .97440E-01    .88458E-05   -.96415    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.93388e-12
Minuit parameter uncertainties:
  1  4.00303
  2  1.50832
  3  0.133978
  4  0.0974588
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/463603': 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) = 16325.6746356
delta logL = 0.0188979565846

Extracting fit parameters...

4FGL J0809.3+4053
   Spectrum: PowerLaw
269    Prefactor:  1.407e+00  4.003e+00  1.000e-04  1.000e+04 ( 1.000e-12)
270        Index:  2.247e+00  1.508e+00  0.000e+00  1.000e+01 (-1.000e+00)
271        Scale:  6.589e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  8.922e-01  9.746e-02  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  1.121e+00  1.340e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.10
Ra Dec: 122.330 40.895

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/463603/cmap_HighResolution_578275201_578880001_4FGL_J0809.3+4053_weekly_bin561.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.70e-03', job_status='DONE', photon_flux_upper_limit='7.28e-08', time_completed='2021-07-12 04:34:28.149597', job_id='463603', GAL2='0.89', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1626089668.15', return_code2='0', ts='0.10', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='1.89e-02', ts2='0.13', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='561' AND source_name='4FGL J0809.3+4053' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Jul 12 04:34:28 PDT 2021

r <slac> at Mon Jul 12 01:23:51 2021
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 12 01:53:17 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jul 12 01:53:17 2021
Terminated at Mon Jul 12 02:19:27 2021
Results reported at Mon Jul 12 02:19:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_weekly_bin561 122.33 40.8954 578275201 578880001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0809.3+4053 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1300.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             301.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1570 sec.
    Turnaround time :                            3336 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0256>
Subject: Job 463603: <4FGL_J0809.3+4053_weekly_bin561> in cluster <slac> Done

Job <4FGL_J0809.3+4053_weekly_bin561> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Jul 12 01:23:23 2021
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 12 01:49:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jul 12 01:49:49 2021
Terminated at Mon Jul 12 04:34:44 2021
Results reported at Mon Jul 12 04:34:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0809.3+4053_weekly_bin561 122.33 40.8954 578275201 578880001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0809.3+4053 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1293.00 sec.
    Max Memory :                                 621 MB
    Average Memory :                             86.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   9894 sec.
    Turnaround time :                            11481 sec.

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

