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 60 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 = 17252
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1806.8+6949_weekly_bin715
RA = 271.711, Dec = 69.827
tmin = 671414401, tmax = 672019201
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='935310', job_status='RUN', time_executed='2022-04-19 02:34:33.790972', time_epoch_executed='1650360873.79' WHERE source_name='4FGL J1806.8+6949' and cadence='weekly' and bin_id='715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/935310

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/935310/ft1_4FGL_J1806.8+6949_weekly_bin715.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/935310/ft2_4FGL_J1806.8+6949_weekly_bin715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/935310/ft1_4FGL_J1806.8+6949_weekly_bin715.fits outfile=/scratch/kocevski/935310/ft1_filteredMKT_4FGL_J1806.8+6949_weekly_bin715.fits ra=271.711 dec=69.827 rad=12.0 tmin=671414401.0 tmax=672019201.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 7.62
user 7.26
sys 0.31

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/935310/ft2_4FGL_J1806.8+6949_weekly_bin715.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/935310/ft1_filteredMKT_4FGL_J1806.8+6949_weekly_bin715.fits evtable="EVENTS" outfile="/scratch/kocevski/935310/ft1_filtered_4FGL_J1806.8+6949_weekly_bin715.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.59
user 0.37
sys 0.16

Number of photons that the gtmktime cut: 2905

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/935310/ft1_filtered_4FGL_J1806.8+6949_weekly_bin715.fits" evtable="EVENTS" scfile=/scratch/kocevski/935310/ft2_4FGL_J1806.8+6949_weekly_bin715.fits sctable="SC_DATA" outfile=/scratch/kocevski/935310/ltcube_671414401_672019201_4FGL_J1806.8+6949_weekly_bin715.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/935310/ft2_4FGL_J1806.8+6949_weekly_bin715.fits
.....................!
real 26.76
user 26.12
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/935310/ft1_filtered_4FGL_J1806.8+6949_weekly_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/935310/ft2_4FGL_J1806.8+6949_weekly_bin715.fits sctable="SC_DATA" expcube=/scratch/kocevski/935310/ltcube_671414401_672019201_4FGL_J1806.8+6949_weekly_bin715.fits outfile=/scratch/kocevski/935310/expmap_671414401_672019201_4FGL_J1806.8+6949_weekly_bin715.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/935310/ltcube_671414401_672019201_4FGL_J1806.8+6949_weekly_bin715.fits
.....................!
real 192.70
user 186.28
sys 5.61

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/935310/ft1_filtered_4FGL_J1806.8+6949_weekly_bin715.fits scfile=/scratch/kocevski/935310/ft2_4FGL_J1806.8+6949_weekly_bin715.fits outfile=/scratch/kocevski/935310/cmap_671414401_672019201_4FGL_J1806.8+6949_weekly_bin715.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.58
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/935310/ft1_filtered_4FGL_J1806.8+6949_weekly_bin715.fits scfile=/scratch/kocevski/935310/ft2_4FGL_J1806.8+6949_weekly_bin715.fits outfile=/scratch/kocevski/935310/cmap_HighResolution_671414401_672019201_4FGL_J1806.8+6949_weekly_bin715.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.58
user 0.42
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/935310/ft1_filtered_4FGL_J1806.8+6949_weekly_bin715.fits', '/scratch/kocevski/935310/ft2_4FGL_J1806.8+6949_weekly_bin715.fits', expMap='/scratch/kocevski/935310/expmap_671414401_672019201_4FGL_J1806.8+6949_weekly_bin715.fits', expCube='/scratch/kocevski/935310/ltcube_671414401_672019201_4FGL_J1806.8+6949_weekly_bin715.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/935310/Model_4FGL_J1806.8+6949_weekly_bin715.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/935310/ft1_filtered_4FGL_J1806.8+6949_weekly_bin715.fits
Spacecraft file(s): /scratch/kocevski/935310/ft2_4FGL_J1806.8+6949_weekly_bin715.fits
Exposure map: /scratch/kocevski/935310/expmap_671414401_672019201_4FGL_J1806.8+6949_weekly_bin715.fits
Exposure cube: /scratch/kocevski/935310/ltcube_671414401_672019201_4FGL_J1806.8+6949_weekly_bin715.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/935310/Model_4FGL_J1806.8+6949_weekly_bin715.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 29504.9085439

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    36.763       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.1969       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.8779       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.1875       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.5686       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.169       1.0000         .10000E-03   10000.    
    13 'norm      '    2.0198       1.0000         .10000E-03   10000.    
    14 'norm      '    6.1928       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.6354       1.0000         .10000E-03   10000.    
    16 'norm      '    2.6311       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.9453       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .31949E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.784       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.025       1.0000         .10000E-03   10000.    
    22 'Prefactor '    25.921       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10189E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.7800       1.0000         .10000E-03   10000.    
    28 'Prefactor '    9.8038       1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .55662       1.0000         .10000E-03   10000.    
    32 'Prefactor '    27.030       1.0000         .10000E-03   10000.    
    33 'norm      '    2.0597       1.0000         .10000E-03   10000.    
    34 'Prefactor '    10.709       1.0000         .10000E-03   10000.    
    35 'Normalizat'    1.0635       1.0000         .10000E-01   10.000    
    36 'Prefactor '    .98451       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   29504.82     FROM MIGRAD    STATUS=CONVERGED   1056 CALLS     4648 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          36.763        12.075       -.68222E-08    .56187E-04
   2  Prefactor     .10000E-03    35.808       -.49645E-07** at limit **
   3  Prefactor     .10000E-03    8.6015       -.60529E-06** at limit **
   4  norm          4.1966        4.3883        .20729E-06    .24595E-03
   5  norm          .10000E-03    .12039       -.88314E-07** at limit **
   6  Prefactor     2.8767        4.3443        .41848E-06    .40308E-03
   7  Prefactor     .10000E-03    .46825       -.59259E-07** at limit **
   8  Prefactor     .10000E-03    2.8963       -.11770E-06** at limit **
   9  Prefactor     .10000E-03    1.4949        .12658E-05** at limit **
  10  Prefactor     2.1895        10.973        .12185E-05   -.13916E-03
  11  Prefactor     1.5670        3.9005        .23439E-05   -.67565E-03
  12  Prefactor     16.156        19.065       -.20835E-07   -.21273E-03
  13  norm          2.0198        1.1302       -.49548E-08    .98873E-04
  14  norm          6.1928        .69179       -.60096E-08    .86479E-03
  15  Prefactor     1.6340        6.2506        .26720E-05   -.51659E-03
  16  norm          2.6310        2.4139       -.21774E-07   -.14093E-04
  17  Prefactor     8.9444        11.235       -.12598E-06   -.87482E-06
  18  Prefactor     .10001E-03    506.79        .19924E-05** at limit **
  19  Prefactor     16.782        5.0409        .42533E-07    .69366E-03
  20  Prefactor     .10000E-03    9.0784        .19705E-07** at limit **
  21  Prefactor     12.040        10.640        .10982E-05    .76672E-03
  22  Prefactor     25.921        25.479        .17021E-07    .25804E-04
  23  Prefactor     .10000E-03    14.694       -.82594E-07** at limit **
  24  norm          .10000E-03    .51837        .38898E-07** at limit **
  25  norm          .10000E-03    .77379       -.24831E-07** at limit **
  26  norm          .10000E-03    7.3220       -.42896E-07** at limit **
  27  Prefactor     5.7809        6.8163        .14358E-06   -.58801E-04
  28  Prefactor     9.8042        3.5195       -.35960E-07    .16554E-03
  29  norm          .10000E-03    .20725       -.29284E-06** at limit **
  30  norm          .10000E-03    6.0038       -.17888E-07** at limit **
  31  norm          .55619        1.5039        .79715E-08   -.29633E-03
  32  Prefactor     27.037        15.401       -.21907E-06    .12291E-03
  33  norm          2.0596        2.1238       -.78282E-07   -.14797E-03
  34  Prefactor     10.711        8.4224       -.26680E-07   -.14520E-04
  35  Normalizat    1.0635        .11560       -.51235E-06    .50039E-03
  36  Prefactor     .98451        .61045E-01    .52935E-06    .15922E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 36.7634
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.19661
  norm       = 0.0001
  Prefactor  = 2.87673
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 2.18951
  Prefactor  = 1.56702
  Prefactor  = 16.1557
  norm       = 2.01979
  norm       = 6.19284
  Prefactor  = 1.63396
  norm       = 2.63096
  Prefactor  = 8.94445
  Prefactor  = 0.00010001
  Prefactor  = 16.7824
  Prefactor  = 0.0001
  Prefactor  = 12.0397
  Prefactor  = 25.9214
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 5.7809
  Prefactor  = 9.80419
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.556188
  Prefactor  = 27.0371
  norm       = 2.05961
  Prefactor  = 10.7112
  Normalizat = 1.06351
  Prefactor  = 0.984511
 **********
 **   18 **HESSE 
 **********

 FCN=   29504.82     FROM HESSE     STATUS=OK           819 CALLS     5467 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          36.763        12.074        .66099E-04   -1.4495    
   2  Prefactor     .10000E-03    35.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.6597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.1966        4.3795        .19672E-03   -1.5298    
   5  norm          .10000E-03    .39219        .11277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.8767        4.2782        .23959E-03   -1.5369    
   7  Prefactor     .10000E-03    .47731        .11453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.9142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.6554        .34769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.1895        11.159        .13914E-02   -1.5412    
  11  Prefactor     1.5670        4.0505        .16975E-02   -1.5458    
  12  Prefactor     16.156        19.056        .99605E-04   -1.4904    
  13  norm          2.0198        1.1288        .13070E-03   -1.5424    
  14  norm          6.1928        .69138        .45054E-04   -1.5210    
  15  Prefactor     1.6340        6.5873        .16527E-02   -1.5452    
  16  norm          2.6310        2.3913        .23257E-03   -1.5384    
  17  Prefactor     8.9444        11.225        .13401E-03   -1.5110    
  18  Prefactor     .10001E-03    517.82        .39518E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.782        5.0142        .97763E-04   -1.4888    
  20  Prefactor     .10000E-03    9.1995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.040        10.511        .11552E-03   -1.5014    
  22  Prefactor     25.921        25.482        .78683E-04   -1.4689    
  23  Prefactor     .10000E-03    14.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .87230        .22681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    .77886        .14756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    7.5241        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     5.7809        6.8229        .83529E-03   -1.5227    
  28  Prefactor     9.8042        3.5111        .12798E-03   -1.5082    
  29  norm          .10000E-03    .38368        .14821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    6.0065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .55619        1.4950        .33160E-03   -1.5559    
  32  Prefactor     27.037        15.258        .77055E-04   -1.4668    
  33  norm          2.0596        2.1261        .23550E-03   -1.5421    
  34  Prefactor     10.711        8.3971        .61215E-03   -1.5053    
  35  Normalizat    1.0635        .12870        .35262E-03   -.90932    
  36  Prefactor     .98451        .69831E-01    .20617E-03   -.93248    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.8797e-09
Minuit parameter uncertainties:
  1  12.0746
  2  3.10201e-05
  3  9.75325e-05
  4  4.37984
  5  2.48354e-06
  6  4.27861
  7  2.83039e-06
  8  1.61367e-05
  9  0.000186963
  10  9.8884
  11  4.05116
  12  19.0634
  13  1.12881
  14  0.691378
  15  6.56259
  16  2.39136
  17  11.2275
  18  0.00450722
  19  5.0143
  20  5.66541e-05
  21  10.5131
  22  25.4926
  23  1.94618e-05
  24  2.21385e-05
  25  2.38623e-06
  26  3.59112e-05
  27  6.82385
  28  3.51119
  29  1.86594e-05
  30  3.34368e-06
  31  1.49515
  32  15.2598
  33  2.1262
  34  8.39806
  35  0.128741
  36  0.0698372
Done.

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

Extracting fit parameters...

4FGL J1806.8+6949
   Spectrum: LogParabola
346         norm:  2.631e+00  2.391e+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:  9.845e-01  6.984e-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:  1.064e+00  1.287e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.74
Ra Dec: 271.711 69.827
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 1.95e-08 +/- 1.77e-08
Energy Flux (Fixed Index): 7.71e-06 +/- 7.01e-06

TS (Fixed Index): 1.74
Ra Dec: 271.711 69.827
Photon Flux Upper Limit: 5.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.15e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/935310/likelihoodResults_671414401_672019201_4FGL_J1806.8+6949_weekly_bin715.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) = 29503.7855
delta logL = 1.03343812246

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 29503.7781307
delta logL = 1.04080739617

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7101       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1614       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0355       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99225       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=   29503.78     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      248 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7099        10.798        .80366E-02    .33089E-02
   2  alpha         3.1615        3.7147        .43138        .21658E-03
   3  Normalizat    1.0355        .29480E-01    .80540E-01    .80412E-04
   4  Prefactor     .99224        .16137E-01    .46170E-01    .14444E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.70995
  alpha      = 3.16149
  Normalizat = 1.03554
  Prefactor  = 0.992237
 **********
 **   18 **HESSE 
 **********

 FCN=   29503.78     FROM HESSE     STATUS=OK            33 CALLS      281 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7099        2.4269        .12390E-03   -1.5446    
   2  alpha         3.1615        .93163        .19836E-01    .26779    
   3  Normalizat    1.0355        .11569        .35653E-03   -.91849    
   4  Prefactor     .99224        .64500E-01    .20539E-03   -.92989    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37597e-10
Minuit parameter uncertainties:
  1  2.427
  2  0.95653
  3  0.115713
  4  0.0645048
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/935310': 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) = 29503.7781307
delta logL = 1.04080742578

Extracting fit parameters...

4FGL J1806.8+6949
   Spectrum: LogParabola
346         norm:  1.710e+00  2.427e+00  1.000e-04  1.000e+04 ( 1.000e-12)
347        alpha:  3.161e+00  9.565e-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:  9.922e-01  6.450e-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:  1.036e+00  1.157e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.91
Ra Dec: 271.711 69.827
Photon Index (Free Index): 3.16 +/- 0.96
Photon Flux (Free Index): 4.72e-08 +/- 2.91e-08
Energy Flux (Free Index): 9.05e-06 +/- 5.47e-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/935310/cmap_HighResolution_671414401_672019201_4FGL_J1806.8+6949_weekly_bin715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.15e-05', comment='SUCCESS', photon_flux='1.95e-08', energy_flux2='9.05e-06', photon_flux_error='1.77e-08', dlogl='1.04e+00', energy_flux='7.71e-06', photon_flux2='4.72e-08', job_status='DONE', time_completed='2022-04-19 03:42:07.787508', photon_index_error2='0.96', photon_index2='3.16', ts='1.74', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='5.42e-08', energy_flux_error2='5.47e-06', EG='1.06', time_epoch_completed='1650364927.79', return_code='0', job_id='935310', GAL2='0.99', EG2='1.04', return_code2='0', energy_flux_error='7.01e-06', photon_flux_error2='2.91e-08', ts2='3.91', photon_index='2.24' WHERE bin_id='715' AND source_name='4FGL J1806.8+6949' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Apr 19 03:42:07 PDT 2022



------------------------------------------------------------
Sender: LSF System <lsf@bullet0126>
Subject: Job 931531: <4FGL_J1806.8+6949_weekly_bin715> in cluster <slac> Done

Job <4FGL_J1806.8+6949_weekly_bin715> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Apr 19 00:07:33 2022
Job was executed on host(s) <bullet0126>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:19:24 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 19 02:19:24 2022
Terminated at Tue Apr 19 03:29:07 2022
Results reported at Tue Apr 19 03:29:07 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1806.8+6949_weekly_bin715 271.711 69.827 671414401 672019201 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 :                                   4045.00 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             353.02 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   4183 sec.
    Turnaround time :                            12094 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 935310: <4FGL_J1806.8+6949_weekly_bin715> in cluster <slac> Done

Job <4FGL_J1806.8+6949_weekly_bin715> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Apr 19 00:18:56 2022
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:33:24 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 19 02:33:24 2022
Terminated at Tue Apr 19 03:42:08 2022
Results reported at Tue Apr 19 03:42:08 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1806.8+6949_weekly_bin715 271.711 69.827 671414401 672019201 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 :                                   4043.00 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             363.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   4124 sec.
    Turnaround time :                            12192 sec.

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

