aklog: Couldn't determine realm of user:aklog: No credentials cache found  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: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 56 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).
nnumber of points = 17469
number of fields = 31
RA_SUN column already exists. File will not be modified.Done.


Performing analysis on: 4FGL_J1806.8+6949_weekly_bin730
RA = 271.711, Dec = 69.827
tmin = 680486401, tmax = 681091201
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='659730', job_status='RUN', time_executed='2022-08-02 02:24:53.312703', time_epoch_executed='1659432293.31' WHERE source_name='4FGL J1806.8+6949' and cadence='weekly' and bin_id='730'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/659730

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/659730/ft1_4FGL_J1806.8+6949_weekly_bin730.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/659730/ft2_4FGL_J1806.8+6949_weekly_bin730.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/659730/ft1_4FGL_J1806.8+6949_weekly_bin730.fits outfile=/scratch/kocevski/659730/ft1_filteredMKT_4FGL_J1806.8+6949_weekly_bin730.fits ra=271.711 dec=69.827 rad=12.0 tmin=680486401.0 tmax=681091201.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.34
user 5.96
sys 0.35

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/659730/ft2_4FGL_J1806.8+6949_weekly_bin730.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/659730/ft2_4FGL_J1806.8+6949_weekly_bin730.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/659730/ft1_filteredMKT_4FGL_J1806.8+6949_weekly_bin730.fits evtable="EVENTS" outfile="/scratch/kocevski/659730/ft1_filtered_4FGL_J1806.8+6949_weekly_bin730.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.56
user 0.38
sys 0.17

Number of photons that the gtmktime cut: 5208

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/659730/ft1_filtered_4FGL_J1806.8+6949_weekly_bin730.fits" evtable="EVENTS" scfile=/scratch/kocevski/659730/ft2_4FGL_J1806.8+6949_weekly_bin730.fits sctable="SC_DATA" outfile=/scratch/kocevski/659730/ltcube_680486401_681091201_4FGL_J1806.8+6949_weekly_bin730.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/659730/ft2_4FGL_J1806.8+6949_weekly_bin730.fits
.....................!
real 36.10
user 35.36
sys 0.47

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/659730/ft1_filtered_4FGL_J1806.8+6949_weekly_bin730.fits evtable="EVENTS" scfile=/scratch/kocevski/659730/ft2_4FGL_J1806.8+6949_weekly_bin730.fits sctable="SC_DATA" expcube=/scratch/kocevski/659730/ltcube_680486401_681091201_4FGL_J1806.8+6949_weekly_bin730.fits outfile=/scratch/kocevski/659730/expmap_680486401_681091201_4FGL_J1806.8+6949_weekly_bin730.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/659730/ltcube_680486401_681091201_4FGL_J1806.8+6949_weekly_bin730.fits
.....................!
real 192.51
user 186.15
sys 5.33

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

Setting source of interest to:
4FGL J1806.8+6949 @ 271.711 69.827

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/659730/ft1_filtered_4FGL_J1806.8+6949_weekly_bin730.fits scfile=/scratch/kocevski/659730/ft2_4FGL_J1806.8+6949_weekly_bin730.fits outfile=/scratch/kocevski/659730/cmap_680486401_681091201_4FGL_J1806.8+6949_weekly_bin730.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=271.711 yref=69.827 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.61
user 0.43
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/659730/ft1_filtered_4FGL_J1806.8+6949_weekly_bin730.fits scfile=/scratch/kocevski/659730/ft2_4FGL_J1806.8+6949_weekly_bin730.fits outfile=/scratch/kocevski/659730/cmap_HighResolution_680486401_681091201_4FGL_J1806.8+6949_weekly_bin730.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=271.711 yref=69.827 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.64
user 0.45
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/659730/ft1_filtered_4FGL_J1806.8+6949_weekly_bin730.fits evtable="EVENTS" scfile=/scratch/kocevski/659730/ft2_4FGL_J1806.8+6949_weekly_bin730.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/659730/Model_4FGL_J1806.8+6949_weekly_bin730.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/659730/ft1_filtered_4FGL_J1806.8+6949_weekly_bin730.fits.....................!
real 526.25
user 522.28
sys 1.38

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/659730/ft1_filtered_4FGL_J1806.8+6949_weekly_bin730.fits', '/scratch/kocevski/659730/ft2_4FGL_J1806.8+6949_weekly_bin730.fits', expMap='/scratch/kocevski/659730/expmap_680486401_681091201_4FGL_J1806.8+6949_weekly_bin730.fits', expCube='/scratch/kocevski/659730/ltcube_680486401_681091201_4FGL_J1806.8+6949_weekly_bin730.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/659730/Model_4FGL_J1806.8+6949_weekly_bin730.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1806.8+6949'

4FGL J1806.8+6949
   Spectrum: LogParabola
346         norm:  7.628e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
347        alpha:  2.243e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
348         beta:  5.091e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
349           Eb:  7.887e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/659730/ft1_filtered_4FGL_J1806.8+6949_weekly_bin730.fits
Spacecraft file(s): /scratch/kocevski/659730/ft2_4FGL_J1806.8+6949_weekly_bin730.fits
Exposure map: /scratch/kocevski/659730/expmap_680486401_681091201_4FGL_J1806.8+6949_weekly_bin730.fits
Exposure cube: /scratch/kocevski/659730/ltcube_680486401_681091201_4FGL_J1806.8+6949_weekly_bin730.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/659730/Model_4FGL_J1806.8+6949_weekly_bin730.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) = 53171.2232023

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.4794       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.654       1.0000         .10000E-03   10000.    
     4 'norm      '    18.145       1.0000         .10000E-03   10000.    
     5 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.8070       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .55615E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .30981       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.3146       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.419       1.0000         .10000E-03   10000.    
    13 'norm      '    4.5695       1.0000         .10000E-03   10000.    
    14 'norm      '    3.0474       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.8739       1.0000         .10000E-03   10000.    
    16 'norm      '    2.7315       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.1776       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.5102       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.2026       1.0000         .10000E-03   10000.    
    25 'norm      '    .10442E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    8.9800       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .76198E-01   1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.0155       1.0000         .10000E-03   10000.    
    29 'norm      '    2.2085       1.0000         .10000E-03   10000.    
    30 'norm      '    5.0363       1.0000         .10000E-03   10000.    
    31 'norm      '    1.2946       1.0000         .10000E-03   10000.    
    32 'Prefactor '    8.2168       1.0000         .10000E-03   10000.    
    33 'norm      '    1.2053       1.0000         .10000E-03   10000.    
    34 'Prefactor '    6.8030       1.0000         .10000E-03   10000.    
    35 'Normalizat'    .84689       1.0000         .10000E-01   10.000    
    36 'Prefactor '    1.1180       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6180E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   53171.17     FROM MIGRAD    STATUS=CONVERGED   1047 CALLS     4646 TOTAL
                     EDM=   .37E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.4812        4.9349         .0000       -.59829E-04
   2  Prefactor     .10006E-03    11.332         .0000    ** at limit **
   3  Prefactor     15.657        13.220         .0000       -.14928E-02
   4  norm          18.147        4.0130         .0000        .13005E-02
   5  norm          .10000E-03    .58792E-01     .0000    ** at limit **
   6  Prefactor     5.8082        3.2131         .0000        .28444E-01
   7  Prefactor     .53447E-01    .22432         .0000        .22574E-02
   8  Prefactor     .32059        1.2286         .0000        .34855E-02
   9  Prefactor     .10000E-03    .83459         .0000    ** at limit **
  10  Prefactor     6.3233        7.9099         .0000       -.50763E-03
  11  Prefactor     .10000E-03    1.1599         .0000    ** at limit **
  12  Prefactor     13.420        15.554         .0000       -.21030E-02
  13  norm          4.5698        1.0946         .0000        .22049E-03
  14  norm          3.0477        .39116         .0000       -.14545E-03
  15  Prefactor     1.8774        4.5742         .0000        .37608E-01
  16  norm          2.7322        1.5866         .0000        .30967E-02
  17  Prefactor     .10002E-03    9.5482         .0000    ** at limit **
  18  Prefactor     .10002E-03    12.633         .0000    ** at limit **
  19  Prefactor     5.1778        2.6002         .0000        .20367E-02
  20  Prefactor     3.5105        5.5340         .0000        .13114E-01
  21  Prefactor     .10000E-03    4.8221         .0000    ** at limit **
  22  Prefactor     .10000E-03    30.623         .0000    ** at limit **
  23  Prefactor     .10000E-03    6.9848         .0000    ** at limit **
  24  norm          2.2022        1.0402         .0000        .17399E-02
  25  norm          .10000E-03    .50030         .0000    ** at limit **
  26  norm          8.9764        4.6065         .0000        .21472E-03
  27  Prefactor     .18602        1.9191         .0000        .10507E-02
  28  Prefactor     2.0159        2.1528         .0000        .14886    
  29  norm          2.2079        .62330         .0000       -.10899E-03
  30  norm          5.0375        13.320         .0000       -.21408E-03
  31  norm          1.2949        1.0767         .0000        .37795E-02
  32  Prefactor     8.2011        8.3061         .0000       -.48418E-03
  33  norm          1.2055        1.0144         .0000        .34832E-02
  34  Prefactor     6.8042        4.5159         .0000        .38430E-03
  35  Normalizat    .84671        .85128E-01     .0000        .56982E-04
  36  Prefactor     1.1180        .45966E-01     .0000       -.37214E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.48121
  Prefactor  = 0.000100063
  Prefactor  = 15.6572
  norm       = 18.1474
  norm       = 0.0001
  Prefactor  = 5.80819
  Prefactor  = 0.0534469
  Prefactor  = 0.32059
  Prefactor  = 0.0001
  Prefactor  = 6.32327
  Prefactor  = 0.0001
  Prefactor  = 13.4202
  norm       = 4.56982
  norm       = 3.04769
  Prefactor  = 1.87739
  norm       = 2.73223
  Prefactor  = 0.000100018
  Prefactor  = 0.000100021
  Prefactor  = 5.17781
  Prefactor  = 3.51048
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.2022
  norm       = 0.0001
  norm       = 8.97644
  Prefactor  = 0.186021
  Prefactor  = 2.01587
  norm       = 2.20789
  norm       = 5.03752
  norm       = 1.29488
  Prefactor  = 8.20107
  norm       = 1.20554
  Prefactor  = 6.80422
  Normalizat = 0.846708
  Prefactor  = 1.11803
 **********
 **   18 **HESSE 
 **********

 FCN=   53171.17     FROM HESSE     STATUS=OK           839 CALLS     5485 TOTAL
                     EDM=   .75E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.4812        4.9446        .13767E-03   -1.5125    
   2  Prefactor     .10006E-03    11.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.657        13.110        .10123E-03   -1.4916    
   4  norm          18.147        4.0159        .94024E-04   -1.4856    
   5  norm          .10000E-03    .10322        .10427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.8082        3.1788        .83332E-03   -1.5226    
   7  Prefactor     .53447E-01    5.7242        .19687E-02   -1.5662    
   8  Prefactor     .32059        5.8161        .46463E-02   -1.5595    
   9  Prefactor     .10000E-03    .84944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.3233        8.4720        .15974E-03   -1.5205    
  11  Prefactor     .10000E-03    1.1707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.420        15.527        .10935E-03   -1.4975    
  13  norm          4.5698        1.0917        .11220E-03   -1.5280    
  14  norm          3.0477        .39040        .48800E-04   -1.5359    
  15  Prefactor     1.8774        4.5824        .15211E-02   -1.5434    
  16  norm          2.7322        1.5717        .20335E-03   -1.5377    
  17  Prefactor     .10002E-03    9.9410        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10002E-03    12.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.1778        2.5849        .17667E-03   -1.5253    
  20  Prefactor     3.5105        5.5205        .10789E-02   -1.5333    
  21  Prefactor     .10000E-03    4.9345        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    30.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.9870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.2022        1.0390        .13861E-03   -1.5411    
  25  norm          .10000E-03    1.1527        .31227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          8.9764        4.5282        .13375E-03   -1.5109    
  27  Prefactor     .18602        2.6641        .87192E-01   -1.5622    
  28  Prefactor     2.0159        2.1368        .14578E-02   -1.5424    
  29  norm          2.2079        .62267        .92792E-04   -1.5411    
  30  norm          5.0375        13.343        .17918E-03   -1.5259    
  31  norm          1.2949        1.0642        .21051E-03   -1.5480    
  32  Prefactor     8.2011        8.3060        .13986E-03   -1.5135    
  33  norm          1.2055        1.0008        .20230E-03   -1.5488    
  34  Prefactor     6.8042        4.5133        .15383E-03   -1.5186    
  35  Normalizat    .84671        .94221E-01    .37093E-03   -.98359    
  36  Prefactor     1.1180        .51475E-01    .19136E-03   -.88892    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.46196e-07
Minuit parameter uncertainties:
  1  4.94484
  2  0.00168575
  3  13.1119
  4  4.01591
  5  9.13332e-08
  6  3.17891
  7  1.10531
  8  2.73088
  9  7.60469e-06
  10  8.47361
  11  4.01855e-06
  12  15.5313
  13  1.09166
  14  0.390398
  15  4.58324
  16  1.57177
  17  0.000839593
  18  0.00103744
  19  2.585
  20  5.52126
  21  2.46227e-05
  22  0.000163902
  23  9.08876e-05
  24  1.039
  25  1.52442e-06
  26  4.5284
  27  1.40764
  28  2.13693
  29  0.622672
  30  13.3509
  31  1.06417
  32  8.30721
  33  1.00086
  34  4.5135
  35  0.0942387
  36  0.0514769
Done.

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

Extracting fit parameters...

4FGL J1806.8+6949
   Spectrum: LogParabola
346         norm:  2.732e+00  1.572e+00  1.000e-04  1.000e+04 ( 1.000e-12)
347        alpha:  2.243e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
348         beta:  5.091e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
349           Eb:  7.887e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
615    Prefactor:  1.118e+00  5.148e-02  0.000e+00  1.000e+01 ( 1.000e+00)
616        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
617        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
614   Normalization:  8.467e-01  9.424e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.61
Ra Dec: 271.711 69.827
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 2.02e-08 +/- 1.16e-08
Energy Flux (Fixed Index): 8.01e-06 +/- 4.61e-06

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) = 53170.2676979
delta logL = 0.90367852481

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 53170.2659519
delta logL = 0.905424485711

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1824       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8551       1.0000          .0000       5.0000    
     3 'Normalizat'    .82685       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1236       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6180E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   53170.27     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      248 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1844        9.1444        .69665E-02    .44855E-02
   2  alpha         2.8543        1.9048        .41689        .36596E-03
   3  Normalizat    .82687        .23623E-01    .84655E-01    .20844E-03
   4  Prefactor     1.1236        .12807E-01    .36751E-01   -.15359E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.18443
  alpha      = 2.85427
  Normalizat = 0.826866
  Prefactor  = 1.12363
 **********
 **   18 **HESSE 
 **********

 FCN=   53170.27     FROM HESSE     STATUS=OK            33 CALLS      281 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1844        1.5831        .14418E-03   -1.5412    
   2  alpha         2.8543        .53293        .20901E-01    .14219    
   3  Normalizat    .82687        .84307E-01    .37487E-03   -.99080    
   4  Prefactor     1.1236        .48625E-01    .19092E-03   -.88715    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00111e-07
Minuit parameter uncertainties:
  1  1.58317
  2  0.537137
  3  0.0843205
  4  0.0486274
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/659730': 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) = 53170.26595
delta logL = 0.905426360354

Extracting fit parameters...

4FGL J1806.8+6949
   Spectrum: LogParabola
346         norm:  2.184e+00  1.583e+00  1.000e-04  1.000e+04 ( 1.000e-12)
347        alpha:  2.854e+00  5.371e-01  0.000e+00  5.000e+00 ( 1.000e+00)
348         beta:  5.091e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
349           Eb:  7.887e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
615    Prefactor:  1.124e+00  4.863e-02  0.000e+00  1.000e+01 ( 1.000e+00)
616        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
617        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
614   Normalization:  8.269e-01  8.432e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.52
Ra Dec: 271.711 69.827
Photon Index (Free Index): 2.85 +/- 0.54
Photon Flux (Free Index): 3.76e-08 +/- 1.88e-08
Energy Flux (Free Index): 8.37e-06 +/- 3.78e-06

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/659730/cmap_HighResolution_680486401_681091201_4FGL_J1806.8+6949_weekly_bin730.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.02e-08', energy_flux2='8.37e-06', photon_flux_error='1.16e-08', dlogl='9.05e-01', energy_flux='8.01e-06', photon_flux2='3.76e-08', job_status='DONE', time_completed='2022-08-02 03:57:38.426333', photon_index_error2='0.54', photon_index2='2.85', ts='5.61', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='3.78e-06', EG='0.85', time_epoch_completed='1659437858.43', return_code='0', job_id='659730', GAL2='1.12', EG2='0.83', return_code2='0', energy_flux_error='4.61e-06', photon_flux_error2='1.88e-08', ts2='7.52', photon_index='2.24' WHERE bin_id='730' AND source_name='4FGL J1806.8+6949' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Aug  2 03:57:38 PDT 2022



------------------------------------------------------------
Sender: LSF System <lsf@bullet0176>
Subject: Job 659729: <4FGL_J1806.8+6949_weekly_bin730> in cluster <slac> Done

Job <4FGL_J1806.8+6949_weekly_bin730> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Aug  2 00:06:57 2022
Job was executed on host(s) <bullet0176>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug  2 02:24:33 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug  2 02:24:33 2022
Terminated at Tue Aug  2 03:56:34 2022
Results reported at Tue Aug  2 03:56:34 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1806.8+6949_weekly_bin730 271.711 69.827 680486401 681091201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1806.8+6949 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   5448.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             395.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   5520 sec.
    Turnaround time :                            13777 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 659730: <4FGL_J1806.8+6949_weekly_bin730> in cluster <slac> Done

Job <4FGL_J1806.8+6949_weekly_bin730> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Aug  2 00:06:57 2022
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug  2 02:24:35 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug  2 02:24:35 2022
Terminated at Tue Aug  2 03:57:39 2022
Results reported at Tue Aug  2 03:57:39 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1806.8+6949_weekly_bin730 271.711 69.827 680486401 681091201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1806.8+6949 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   5546.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             396.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   5584 sec.
    Turnaround time :                            13842 sec.

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

