/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 151 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 = 7387
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1806.8+6949_daily_bin974
RA = 271.711, Dec = 69.827
tmin = 491788801, tmax = 492048001
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='550491', job_status='RUN', time_executed='2021-09-19 14:03:18.252341', time_epoch_executed='1632085398.25' WHERE source_name='4FGL J1806.8+6949' and cadence='daily' and bin_id='974'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/550491

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/550491/ft1_4FGL_J1806.8+6949_daily_bin974.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/550491/ft2_4FGL_J1806.8+6949_daily_bin974.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/550491/ft1_4FGL_J1806.8+6949_daily_bin974.fits outfile=/scratch/kocevski/550491/ft1_filteredMKT_4FGL_J1806.8+6949_daily_bin974.fits ra=271.711 dec=69.827 rad=12.0 tmin=491788801.0 tmax=492048001.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 4.28
user 4.05
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/550491/ft2_4FGL_J1806.8+6949_daily_bin974.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/550491/ft1_filteredMKT_4FGL_J1806.8+6949_daily_bin974.fits evtable="EVENTS" outfile="/scratch/kocevski/550491/ft1_filtered_4FGL_J1806.8+6949_daily_bin974.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/550491/ft1_filtered_4FGL_J1806.8+6949_daily_bin974.fits" evtable="EVENTS" scfile=/scratch/kocevski/550491/ft2_4FGL_J1806.8+6949_daily_bin974.fits sctable="SC_DATA" outfile=/scratch/kocevski/550491/ltcube_491788801_492048001_4FGL_J1806.8+6949_daily_bin974.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/550491/ft2_4FGL_J1806.8+6949_daily_bin974.fits
.....................!
real 11.90
user 11.56
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/550491/ft1_filtered_4FGL_J1806.8+6949_daily_bin974.fits evtable="EVENTS" scfile=/scratch/kocevski/550491/ft2_4FGL_J1806.8+6949_daily_bin974.fits sctable="SC_DATA" expcube=/scratch/kocevski/550491/ltcube_491788801_492048001_4FGL_J1806.8+6949_daily_bin974.fits outfile=/scratch/kocevski/550491/expmap_491788801_492048001_4FGL_J1806.8+6949_daily_bin974.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/550491/ltcube_491788801_492048001_4FGL_J1806.8+6949_daily_bin974.fits
.....................!
real 190.22
user 185.01
sys 4.85

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/550491/ft1_filtered_4FGL_J1806.8+6949_daily_bin974.fits scfile=/scratch/kocevski/550491/ft2_4FGL_J1806.8+6949_daily_bin974.fits outfile=/scratch/kocevski/550491/cmap_491788801_492048001_4FGL_J1806.8+6949_daily_bin974.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/550491/ft1_filtered_4FGL_J1806.8+6949_daily_bin974.fits scfile=/scratch/kocevski/550491/ft2_4FGL_J1806.8+6949_daily_bin974.fits outfile=/scratch/kocevski/550491/cmap_HighResolution_491788801_492048001_4FGL_J1806.8+6949_daily_bin974.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.55
user 0.36
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/550491/ft1_filtered_4FGL_J1806.8+6949_daily_bin974.fits', '/scratch/kocevski/550491/ft2_4FGL_J1806.8+6949_daily_bin974.fits', expMap='/scratch/kocevski/550491/expmap_491788801_492048001_4FGL_J1806.8+6949_daily_bin974.fits', expCube='/scratch/kocevski/550491/ltcube_491788801_492048001_4FGL_J1806.8+6949_daily_bin974.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/550491/Model_4FGL_J1806.8+6949_daily_bin974.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/550491/ft1_filtered_4FGL_J1806.8+6949_daily_bin974.fits
Spacecraft file(s): /scratch/kocevski/550491/ft2_4FGL_J1806.8+6949_daily_bin974.fits
Exposure map: /scratch/kocevski/550491/expmap_491788801_492048001_4FGL_J1806.8+6949_daily_bin974.fits
Exposure cube: /scratch/kocevski/550491/ltcube_491788801_492048001_4FGL_J1806.8+6949_daily_bin974.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/550491/Model_4FGL_J1806.8+6949_daily_bin974.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) = 1214.473602

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    54.747       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .17441E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    176.70       1.0000         .10000E-03   10000.    
     4 'norm      '    27.098       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.903       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10257E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    45.661       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.501       1.0000         .10000E-03   10000.    
    13 'norm      '    .26586       1.0000         .10000E-03   10000.    
    14 'norm      '    .38406       1.0000         .10000E-03   10000.    
    15 'Prefactor '    54.072       1.0000         .10000E-03   10000.    
    16 'norm      '    8.1649       1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.158       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10262E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    53.007       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    491.82       1.0000         .10000E-03   10000.    
    24 'norm      '    .22295E-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 '    83.611       1.0000         .10000E-03   10000.    
    28 'Prefactor '    8.4813       1.0000         .10000E-03   10000.    
    29 'norm      '    5.4080       1.0000         .10000E-03   10000.    
    30 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    6.0372       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    33 'norm      '    9.6434       1.0000         .10000E-03   10000.    
    34 'Prefactor '    41.281       1.0000         .10000E-03   10000.    
    35 'Normalizat'    .52589       1.0000         .10000E-01   10.000    
    36 'Prefactor '    .67133       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=   1214.429     FROM MIGRAD    STATUS=CONVERGED   1035 CALLS     7323 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          54.744        49.842        .20215E-06   -.15603E-04
   2  Prefactor     .10000E-03    751.04        .11247E-04** at limit **
   3  Prefactor     176.70        154.33        .13235E-05   -.13127E-04
   4  norm          27.101        31.733        .74103E-06   -.28674E-05
   5  norm          .10000E-03    1.2351        .94730E-07** at limit **
   6  Prefactor     20.906        21.408        .30457E-06    .31740E-05
   7  Prefactor     .10000E-03    11.893        .88215E-06** at limit **
   8  Prefactor     .10000E-03    31.553       -.26038E-06** at limit **
   9  Prefactor     .10000E-03    6.9738        .74802E-07** at limit **
  10  Prefactor     45.683        78.284        .10711E-06   -.47081E-04
  11  Prefactor     .10000E-03    12.887        .70803E-07** at limit **
  12  Prefactor     17.509        322.50        .26346E-05   -.19747E-05
  13  norm          .27211        12.181        .89324E-05    .81877E-04
  14  norm          .38477        3.4394        .12008E-05    .48611E-03
  15  Prefactor     54.074        35.134        .27284E-06   -.13940E-06
  16  norm          8.1626        8.5046       -.43820E-06   -.23451E-04
  17  Prefactor     25.158        59.358        .33713E-06   -.19049E-05
  18  Prefactor     .10000E-03    125.94        .51004E-05** at limit **
  19  Prefactor     .10000E-03    3.6045        .71905E-08** at limit **
  20  Prefactor     53.019        52.306        .24200E-06    .22801E-05
  21  Prefactor     .10000E-03    12.413       -.48274E-07** at limit **
  22  Prefactor     .10000E-03    172.75       -.60845E-05** at limit **
  23  Prefactor     491.61        365.69       -.10646E-04    .13693E-04
  24  norm          .10001E-03    28.287       -.14337E-04** at limit **
  25  norm          .10000E-03    16.326        .36012E-07** at limit **
  26  norm          .10000E-03    37.909       -.54131E-06** at limit **
  27  Prefactor     83.615        74.248       -.71310E-08   -.32679E-05
  28  Prefactor     8.4806        13.374        .30812E-06    .25544E-05
  29  norm          5.4078        5.8933        .12089E-08   -.17792E-04
  30  norm          .10000E-03    83.929       -.10010E-05** at limit **
  31  norm          6.0371        8.3665        .18923E-07   -.27894E-04
  32  Prefactor     .10000E-03    36.058        .44607E-06** at limit **
  33  norm          9.6429        9.4810        .89176E-07   -.33374E-04
  34  Prefactor     41.271        42.074       -.50833E-07   -.88365E-05
  35  Normalizat    .52572        .48453       -.57244E-05   -.73465E-04
  36  Prefactor     .67144        .24308       -.37509E-06   -.41087E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 54.7437
  Prefactor  = 0.0001
  Prefactor  = 176.703
  norm       = 27.1013
  norm       = 0.0001
  Prefactor  = 20.9057
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.6826
  Prefactor  = 0.0001
  Prefactor  = 17.5093
  norm       = 0.272109
  norm       = 0.384774
  Prefactor  = 54.0737
  norm       = 8.16262
  Prefactor  = 25.1585
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 53.0188
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 491.614
  norm       = 0.000100006
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 83.6153
  Prefactor  = 8.48055
  norm       = 5.40784
  norm       = 0.0001
  norm       = 6.03711
  Prefactor  = 0.0001
  norm       = 9.64286
  Prefactor  = 41.271
  Normalizat = 0.525716
  Prefactor  = 0.671439
 **********
 **   18 **HESSE 
 **********

 FCN=   1214.429     FROM HESSE     STATUS=OK           811 CALLS     8134 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          54.744        49.832        .54212E-04   -1.4227    
   2  Prefactor     .10000E-03    751.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     176.70        153.65        .30361E-04   -1.3041    
   4  norm          27.101        31.730        .76959E-04   -1.4666    
   5  norm          .10000E-03    1.2443        .37579E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     20.906        21.439        .87607E-04   -1.4793    
   7  Prefactor     .10000E-03    12.000        .23206E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    31.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.9759        .89862E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     45.683        77.168        .59334E-04   -1.4355    
  11  Prefactor     .10000E-03    12.888        .12221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.509        320.66        .95739E-04   -1.4871    
  13  norm          .27211        25.064        .17260E-02   -1.5604    
  14  norm          .38477        3.3523        .10836E-02   -1.5584    
  15  Prefactor     54.074        35.127        .54547E-04   -1.4236    
  16  norm          8.1626        8.6005        .96455E-04   -1.5136    
  17  Prefactor     25.158        59.296        .79865E-04   -1.4704    
  18  Prefactor     .10000E-03    125.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.6052        .64625E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     53.019        52.260        .55089E-04   -1.4250    
  21  Prefactor     .10000E-03    12.414        .11995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    172.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     491.61        369.29        .92486E-04   -1.1236    
  24  norm          .10001E-03    34.929        .20360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    16.327        .13757E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    37.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     83.615        74.242        .43930E-04   -1.3877    
  28  Prefactor     8.4806        13.373        .13765E-03   -1.5125    
  29  norm          5.4078        5.8948        .85915E-04   -1.5243    
  30  norm          .10000E-03    83.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          6.0371        8.3665        .11523E-03   -1.5217    
  32  Prefactor     .10000E-03    36.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  norm          9.6429        9.4976        .10260E-03   -1.5087    
  34  Prefactor     41.271        42.107        .62390E-04   -1.4422    
  35  Normalizat    .52572        .50975        .36754E-03   -1.1124    
  36  Prefactor     .67144        .26434        .19705E-03   -1.0466    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27546e-09
Minuit parameter uncertainties:
  1  49.8697
  2  0.00109526
  3  153.996
  4  31.75
  5  5.75119e-06
  6  21.4473
  7  0.000275763
  8  7.56332e-05
  9  1.68768e-05
  10  77.3378
  11  1.0368e-05
  12  150.809
  13  5.22442
  14  2.27133
  15  35.1402
  16  8.60181
  17  59.4358
  18  0.000346131
  19  7.54652e-07
  20  52.3048
  21  7.21044e-06
  22  0.000613127
  23  371.108
  24  0.000949074
  25  9.375e-06
  26  3.84454e-05
  27  74.3248
  28  13.3777
  29  5.89543
  30  7.10385e-05
  31  8.36808
  32  8.19398e-06
  33  9.49909
  34  42.1377
  35  0.514378
  36  0.26483
Done.

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

Extracting fit parameters...

4FGL J1806.8+6949
   Spectrum: LogParabola
346         norm:  8.163e+00  8.602e+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:  6.714e-01  2.648e-01  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:  5.257e-01  5.144e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.08
Ra Dec: 271.711 69.827
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 6.04e-08 +/- 6.36e-08
Energy Flux (Fixed Index): 2.39e-05 +/- 2.52e-05

TS (Fixed Index): 3.08
Ra Dec: 271.711 69.827
Photon Flux Upper Limit: 2.42e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.59e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/550491/likelihoodResults_491788801_492048001_4FGL_J1806.8+6949_daily_bin974.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) = 1214.427067
delta logL = 0.00195131938199

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1214.42613946
delta logL = 0.00287885618854

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.7558       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3188       1.0000          .0000       5.0000    
     3 'Normalizat'    .52254       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67215       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=   1214.426     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      234 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.7632        356.00        .35997E-02   -.43535E-04
   2  alpha         2.3201        3.7071        .25158        .50574E-05
   3  Normalizat    .52199        .30083        .83249E-01    .11448E-04
   4  Prefactor     .67258        .14268        .42029E-01   -.21753E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.76323
  alpha      = 2.32011
  Normalizat = 0.521993
  Prefactor  = 0.672576
 **********
 **   18 **HESSE 
 **********

 FCN=   1214.426     FROM HESSE     STATUS=OK            33 CALLS      267 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.7632        9.7453        .93226E-04   -1.5151    
   2  alpha         2.3201        1.0207        .10180E-01   -.72016E-01
   3  Normalizat    .52199        .40749        .36880E-03   -1.1141    
   4  Prefactor     .67258        .24643        .19690E-03   -1.0461    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00189e-11
Minuit parameter uncertainties:
  1  9.74728
  2  1.05159
  3  0.40985
  4  0.246829
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/550491': 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) = 1214.42613556
delta logL = 0.00288276042306

Extracting fit parameters...

4FGL J1806.8+6949
   Spectrum: LogParabola
346         norm:  7.763e+00  9.747e+00  1.000e-04  1.000e+04 ( 1.000e-12)
347        alpha:  2.320e+00  1.052e+00  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:  6.726e-01  2.468e-01  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:  5.220e-01  4.099e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.08
Ra Dec: 271.711 69.827
Photon Index (Free Index): 2.32 +/- 1.05
Photon Flux (Free Index): 6.33e-08 +/- 7.25e-08
Energy Flux (Free Index): 2.26e-05 +/- 2.83e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/550491/cmap_HighResolution_491788801_492048001_4FGL_J1806.8+6949_daily_bin974.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.59e-05', comment='SUCCESS', photon_flux='6.04e-08', energy_flux2='2.26e-05', photon_flux_error='6.36e-08', dlogl='2.88e-03', energy_flux='2.39e-05', photon_flux2='6.33e-08', job_status='DONE', time_completed='2021-09-19 14:12:04.480956', photon_index_error2='1.05', photon_index2='2.32', ts='3.08', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', photon_flux_upper_limit='2.42e-07', energy_flux_error2='2.83e-05', EG='0.53', time_epoch_completed='1632085924.48', return_code='0', job_id='550491', GAL2='0.67', EG2='0.52', return_code2='0', energy_flux_error='2.52e-05', photon_flux_error2='7.25e-08', ts2='3.08', photon_index='2.24' WHERE bin_id='974' AND source_name='4FGL J1806.8+6949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 19 14:12:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 550491: <4FGL_J1806.8+6949_daily_bin974> in cluster <slac> Done

Job <4FGL_J1806.8+6949_daily_bin974> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 19 14:00:37 2021
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 19 14:00:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 19 14:00:38 2021
Terminated at Sun Sep 19 14:12:04 2021
Results reported at Sun Sep 19 14:12:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1806.8+6949_daily_bin974 271.711 69.827 491788801 492048001 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 :                                   525.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             300.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   686 sec.
    Turnaround time :                            687 sec.

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

