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


Performing analysis on: 4FGL_J1806.8+6949_daily_bin809
RA = 271.711, Dec = 69.827
tmin = 449020801, tmax = 449280001
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='549113', job_status='RUN', time_executed='2021-09-19 13:55:46.281698', time_epoch_executed='1632084946.28' WHERE source_name='4FGL J1806.8+6949' and cadence='daily' and bin_id='809'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/549113

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/549113/ft1_4FGL_J1806.8+6949_daily_bin809.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/549113/ft2_4FGL_J1806.8+6949_daily_bin809.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/549113/ft1_4FGL_J1806.8+6949_daily_bin809.fits outfile=/scratch/kocevski/549113/ft1_filteredMKT_4FGL_J1806.8+6949_daily_bin809.fits ra=271.711 dec=69.827 rad=12.0 tmin=449020801.0 tmax=449280001.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 5.52
user 5.25
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/549113/ft2_4FGL_J1806.8+6949_daily_bin809.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/549113/ft1_filteredMKT_4FGL_J1806.8+6949_daily_bin809.fits evtable="EVENTS" outfile="/scratch/kocevski/549113/ft1_filtered_4FGL_J1806.8+6949_daily_bin809.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.32
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/549113/ft1_filtered_4FGL_J1806.8+6949_daily_bin809.fits evtable="EVENTS" scfile=/scratch/kocevski/549113/ft2_4FGL_J1806.8+6949_daily_bin809.fits sctable="SC_DATA" expcube=/scratch/kocevski/549113/ltcube_449020801_449280001_4FGL_J1806.8+6949_daily_bin809.fits outfile=/scratch/kocevski/549113/expmap_449020801_449280001_4FGL_J1806.8+6949_daily_bin809.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/549113/ltcube_449020801_449280001_4FGL_J1806.8+6949_daily_bin809.fits
.....................!
real 191.46
user 186.13
sys 4.97

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/549113/ft1_filtered_4FGL_J1806.8+6949_daily_bin809.fits scfile=/scratch/kocevski/549113/ft2_4FGL_J1806.8+6949_daily_bin809.fits outfile=/scratch/kocevski/549113/cmap_449020801_449280001_4FGL_J1806.8+6949_daily_bin809.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/549113/ft1_filtered_4FGL_J1806.8+6949_daily_bin809.fits scfile=/scratch/kocevski/549113/ft2_4FGL_J1806.8+6949_daily_bin809.fits outfile=/scratch/kocevski/549113/cmap_HighResolution_449020801_449280001_4FGL_J1806.8+6949_daily_bin809.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.6430       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10508E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.583       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .31307       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    29.418       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .16571E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.5847       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10309E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.1963       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12386E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.7317       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    10.415       1.0000         .10000E-03   10000.    
    25 'norm      '    7.0250       1.0000         .10000E-03   10000.    
    26 'norm      '    .10085E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    16.560       1.0000         .10000E-03   10000.    
    29 'norm      '    3.5899       1.0000         .10000E-03   10000.    
    30 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    4.5711       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    33 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    34 'Prefactor '    2.0338       1.0000         .10000E-03   10000.    
    35 'Normalizat'    1.0521       1.0000         .10000E-01   10.000    
    36 'Prefactor '    .93433       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=   4472.013     FROM MIGRAD    STATUS=CONVERGED   1053 CALLS     5389 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.6188       -.13823E-07** at limit **
   2  Prefactor     .10000E-03    57.140       -.81559E-06** at limit **
   3  Prefactor     .10000E-03    59.109        .11603E-06** at limit **
   4  norm          .10000E-03    4.6844       -.34768E-08** at limit **
   5  norm          .10000E-03    .62409        .13178E-06** at limit **
   6  Prefactor     3.6420        8.8849       -.49695E-06   -.58089E-04
   7  Prefactor     .10000E-03    2.7932       -.19024E-06** at limit **
   8  Prefactor     10.574        28.905        .20920E-06   -.16850E-04
   9  Prefactor     .11797        14.337        .20928E-05   -.44020E-03
  10  Prefactor     .10000E-03    32.674        .10060E-05** at limit **
  11  Prefactor     29.568        24.525        .36211E-07   -.22588E-03
  12  Prefactor     .10000E-03    480.07        .18863E-04** at limit **
  13  norm          .10000E-03    .99119        .40349E-10** at limit **
  14  norm          2.5837        1.3315        .49463E-08    .80260E-04
  15  Prefactor     .10000E-03    26.513       -.48485E-06** at limit **
  16  norm          4.1952        4.4646       -.15882E-07   -.98967E-05
  17  Prefactor     .10000E-03    18.206       -.61594E-06** at limit **
  18  Prefactor     .10000E-03    180.85       -.17245E-06** at limit **
  19  Prefactor     2.7251        10.414        .20270E-06   -.54008E-05
  20  Prefactor     .10000E-03    41.633        .78766E-06** at limit **
  21  Prefactor     .10000E-03    18.750        .71270E-06** at limit **
  22  Prefactor     .10000E-03    47.343       -.12356E-05** at limit **
  23  Prefactor     .10000E-03    64.353        .32624E-05** at limit **
  24  norm          10.413        6.0866       -.44475E-07   -.37923E-04
  25  norm          7.0259        6.9719       -.70317E-06   -.11053E-03
  26  norm          .10000E-03    7.9923        .15149E-07** at limit **
  27  Prefactor     .10000E-03    26.153       -.30838E-08** at limit **
  28  Prefactor     16.548        10.619        .84064E-08    .28735E-04
  29  norm          3.5897        2.6759        .34937E-08    .96028E-05
  30  norm          .10000E-03    29.479       -.61511E-06** at limit **
  31  norm          4.5691        5.0148       -.18211E-06    .27634E-04
  32  Prefactor     .10000E-03    53.548       -.18137E-05** at limit **
  33  norm          .10000E-03    1.7861        .28612E-10** at limit **
  34  Prefactor     2.0359        73.287        .93194E-05    .67552E-04
  35  Normalizat    1.0530        .27857        .36527E-06   -.79322E-04
  36  Prefactor     .93425        .15102       -.20569E-06   -.43673E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.64196
  Prefactor  = 0.0001
  Prefactor  = 10.5745
  Prefactor  = 0.117969
  Prefactor  = 0.0001
  Prefactor  = 29.5682
  Prefactor  = 0.000100004
  norm       = 0.0001
  norm       = 2.58368
  Prefactor  = 0.0001
  norm       = 4.1952
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.72515
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.413
  norm       = 7.02586
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.5477
  norm       = 3.58969
  norm       = 0.0001
  norm       = 4.56914
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.03591
  Normalizat = 1.05299
  Prefactor  = 0.934254
 **********
 **   18 **HESSE 
 **********

 FCN=   4472.013     FROM HESSE     STATUS=OK           815 CALLS     6204 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.6228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    57.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    59.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.6903        .14135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .77055        .96568E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.6420        8.8060        .21165E-03   -1.5326    
   7  Prefactor     .10000E-03    5.8721        .21483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.574        28.037        .12316E-03   -1.5057    
   9  Prefactor     .11797        36.698        .56167E-01   -1.5639    
  10  Prefactor     .10000E-03    32.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     29.568        26.551        .73868E-04   -1.4620    
  12  Prefactor     .10000E-03    478.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .99155        .65010E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.5837        1.3305        .52429E-04   -1.5386    
  15  Prefactor     .10000E-03    26.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.1952        4.4451        .13750E-03   -1.5298    
  17  Prefactor     .10000E-03    18.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    180.87        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.7251        10.352        .24637E-03   -1.5378    
  20  Prefactor     .10000E-03    41.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    18.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    47.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    64.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          10.413        6.0706        .11955E-03   -1.5062    
  25  norm          7.0259        6.9784        .15136E-03   -1.5178    
  26  norm          .10000E-03    7.9939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    26.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     16.548        10.624        .98421E-04   -1.4894    
  29  norm          3.5897        2.6800        .92136E-04   -1.5329    
  30  norm          .10000E-03    29.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          4.5691        5.0188        .14870E-03   -1.5280    
  32  Prefactor     .10000E-03    53.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  norm          .10000E-03    1.7881        .87263E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     2.0359        73.834        .14502E-02   -1.5423    
  35  Normalizat    1.0530        .32126        .33917E-03   -.91276    
  36  Prefactor     .93425        .17231        .21016E-03   -.94954    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.35265e-10
Minuit parameter uncertainties:
  1  1.45571e-06
  2  6.89259e-05
  3  5.38131e-06
  4  1.53977e-06
  5  8.0564e-09
  6  8.80912
  7  9.93152e-06
  8  28.0717
  9  4.16216
  10  4.93864e-05
  11  26.5614
  12  0.00261759
  13  3.07348e-07
  14  1.33053
  15  7.82198e-05
  16  4.44545
  17  3.36483e-05
  18  3.92709e-05
  19  10.3593
  20  1.79724e-05
  21  2.85878e-05
  22  9.48309e-05
  23  0.000281087
  24  6.071
  25  6.9792
  26  1.67651e-06
  27  7.68796e-06
  28  10.6255
  29  2.6801
  30  3.66097e-05
  31  5.01927
  32  0.000154035
  33  8.02766e-07
  34  24.5531
  35  0.321859
  36  0.172409
Done.

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

Extracting fit parameters...

4FGL J1806.8+6949
   Spectrum: LogParabola
346         norm:  4.195e+00  4.445e+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.343e-01  1.724e-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:  1.053e+00  3.219e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.20
Ra Dec: 271.711 69.827
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 3.10e-08 +/- 3.29e-08
Energy Flux (Fixed Index): 1.23e-05 +/- 1.30e-05

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

Saving results to:
/scratch/kocevski/549113/likelihoodResults_449020801_449280001_4FGL_J1806.8+6949_daily_bin809.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) = 4471.84519925
delta logL = 0.167884534956

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4471.8388924
delta logL = 0.174191392719

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.7074       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6068       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0702       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92957       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=   4471.839     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      204 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.7074        3.9526        .52434E-02    .28948E-02
   2  alpha         1.6069        .67171        .45093       -.15197E-04
   3  Normalizat    1.0699        .25102        .76103E-01    .64211E-05
   4  Prefactor     .92972        .14783        .45381E-01    .31309E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.70741
  alpha      = 1.60689
  Normalizat = 1.06994
  Prefactor  = 0.929724
 **********
 **   18 **HESSE 
 **********

 FCN=   4471.839     FROM HESSE     STATUS=OK            31 CALLS      235 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.7074        4.3531        .13355E-03   -1.5323    
   2  alpha         1.6069        .90063        .18909E-01   -.36531    
   3  Normalizat    1.0699        .28188        .33682E-03   -.90723    
   4  Prefactor     .92972        .16648        .21061E-03   -.95110    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.75646e-09
Minuit parameter uncertainties:
  1  4.35351
  2  0.924605
  3  0.282279
  4  0.166566
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/549113': 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) = 4471.83889195
delta logL = 0.174191837255

Extracting fit parameters...

4FGL J1806.8+6949
   Spectrum: LogParabola
346         norm:  3.707e+00  4.354e+00  1.000e-04  1.000e+04 ( 1.000e-12)
347        alpha:  1.607e+00  9.246e-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.297e-01  1.666e-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:  1.070e+00  2.823e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.55
Ra Dec: 271.711 69.827
Photon Index (Free Index): 1.61 +/- 0.92
Photon Flux (Free Index): 1.50e-08 +/- 2.21e-08
Energy Flux (Free Index): 2.30e-05 +/- 4.31e-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/549113/cmap_HighResolution_449020801_449280001_4FGL_J1806.8+6949_daily_bin809.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.19e-05', comment='SUCCESS', photon_flux='3.10e-08', energy_flux2='2.30e-05', photon_flux_error='3.29e-08', dlogl='1.74e-01', energy_flux='1.23e-05', photon_flux2='1.50e-08', job_status='DONE', time_completed='2021-09-19 14:10:50.514446', photon_index_error2='0.92', photon_index2='1.61', ts='3.20', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.31e-07', energy_flux_error2='4.31e-05', EG='1.05', time_epoch_completed='1632085850.51', return_code='0', job_id='549113', GAL2='0.93', EG2='1.07', return_code2='0', energy_flux_error='1.30e-05', photon_flux_error2='2.21e-08', ts2='3.55', photon_index='2.24' WHERE bin_id='809' AND source_name='4FGL J1806.8+6949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 19 14:10:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 549113: <4FGL_J1806.8+6949_daily_bin809> in cluster <slac> Done

Job <4FGL_J1806.8+6949_daily_bin809> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep 19 13:55:28 2021
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 19 13:55:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 19 13:55:29 2021
Terminated at Sun Sep 19 14:10:51 2021
Results reported at Sun Sep 19 14:10:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1806.8+6949_daily_bin809 271.711 69.827 449020801 449280001 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 :                                   903.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             320.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            923 sec.

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

