/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 3 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 = 7415
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1806.3+5345_daily_bin15
RA = 271.591, Dec = 53.7642
tmin = 243216001, tmax = 243475201
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='531737', job_status='RUN', time_executed='2021-09-19 12:50:29.083245', time_epoch_executed='1632081029.08' WHERE source_name='4FGL J1806.3+5345' and cadence='daily' and bin_id='15'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/531737

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/531737/ft1_4FGL_J1806.3+5345_daily_bin15.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/531737/ft2_4FGL_J1806.3+5345_daily_bin15.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/531737/ft1_4FGL_J1806.3+5345_daily_bin15.fits outfile=/scratch/kocevski/531737/ft1_filteredMKT_4FGL_J1806.3+5345_daily_bin15.fits ra=271.591 dec=53.7642 rad=12.0 tmin=243216001.0 tmax=243475201.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 1.37
user 1.19
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/531737/ft2_4FGL_J1806.3+5345_daily_bin15.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/531737/ft2_4FGL_J1806.3+5345_daily_bin15.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/531737/ft1_filteredMKT_4FGL_J1806.3+5345_daily_bin15.fits evtable="EVENTS" outfile="/scratch/kocevski/531737/ft1_filtered_4FGL_J1806.3+5345_daily_bin15.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.48
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/531737/ft1_filtered_4FGL_J1806.3+5345_daily_bin15.fits" evtable="EVENTS" scfile=/scratch/kocevski/531737/ft2_4FGL_J1806.3+5345_daily_bin15.fits sctable="SC_DATA" outfile=/scratch/kocevski/531737/ltcube_243216001_243475201_4FGL_J1806.3+5345_daily_bin15.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/531737/ft2_4FGL_J1806.3+5345_daily_bin15.fits
.....................!
real 13.25
user 12.88
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/531737/ft1_filtered_4FGL_J1806.3+5345_daily_bin15.fits evtable="EVENTS" scfile=/scratch/kocevski/531737/ft2_4FGL_J1806.3+5345_daily_bin15.fits sctable="SC_DATA" expcube=/scratch/kocevski/531737/ltcube_243216001_243475201_4FGL_J1806.3+5345_daily_bin15.fits outfile=/scratch/kocevski/531737/expmap_243216001_243475201_4FGL_J1806.3+5345_daily_bin15.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/531737/ltcube_243216001_243475201_4FGL_J1806.3+5345_daily_bin15.fits
.....................!
real 191.11
user 185.07
sys 5.67

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

Setting source of interest to:
4FGL J1806.3+5345 @ 271.591 53.7642

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/531737/ft1_filtered_4FGL_J1806.3+5345_daily_bin15.fits scfile=/scratch/kocevski/531737/ft2_4FGL_J1806.3+5345_daily_bin15.fits outfile=/scratch/kocevski/531737/cmap_243216001_243475201_4FGL_J1806.3+5345_daily_bin15.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.591 yref=53.7642 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/531737/ft1_filtered_4FGL_J1806.3+5345_daily_bin15.fits scfile=/scratch/kocevski/531737/ft2_4FGL_J1806.3+5345_daily_bin15.fits outfile=/scratch/kocevski/531737/cmap_HighResolution_243216001_243475201_4FGL_J1806.3+5345_daily_bin15.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.591 yref=53.7642 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/531737/ft1_filtered_4FGL_J1806.3+5345_daily_bin15.fits evtable="EVENTS" scfile=/scratch/kocevski/531737/ft2_4FGL_J1806.3+5345_daily_bin15.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/531737/Model_4FGL_J1806.3+5345_daily_bin15.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/531737/ft1_filtered_4FGL_J1806.3+5345_daily_bin15.fits.....................!
real 62.06
user 60.71
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/531737/ft1_filtered_4FGL_J1806.3+5345_daily_bin15.fits', '/scratch/kocevski/531737/ft2_4FGL_J1806.3+5345_daily_bin15.fits', expMap='/scratch/kocevski/531737/expmap_243216001_243475201_4FGL_J1806.3+5345_daily_bin15.fits', expCube='/scratch/kocevski/531737/ltcube_243216001_243475201_4FGL_J1806.3+5345_daily_bin15.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/531737/Model_4FGL_J1806.3+5345_daily_bin15.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1806.3+5345'

4FGL J1806.3+5345
   Spectrum: PowerLaw
376    Prefactor:  2.889e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
377        Index:  2.527e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
378        Scale:  1.017e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/531737/ft1_filtered_4FGL_J1806.3+5345_daily_bin15.fits
Spacecraft file(s): /scratch/kocevski/531737/ft2_4FGL_J1806.3+5345_daily_bin15.fits
Exposure map: /scratch/kocevski/531737/expmap_243216001_243475201_4FGL_J1806.3+5345_daily_bin15.fits
Exposure cube: /scratch/kocevski/531737/ltcube_243216001_243475201_4FGL_J1806.3+5345_daily_bin15.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/531737/Model_4FGL_J1806.3+5345_daily_bin15.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) = 6478.47926618

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10318E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.4175       1.0000         .10000E-03   10000.    
     5 'norm      '    .60296E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11479E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.8287       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.0999       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.6453       1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10378E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.779       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    11.346       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.2184       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .81410       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0667       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6780E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6478.350     FROM MIGRAD    STATUS=CONVERGED    706 CALLS     3044 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.7763       -.13123E-08** at limit **
   2  Prefactor     .10000E-03    41.638       -.85663E-05** at limit **
   3  Prefactor     .10000E-03    3.2311        .82700E-08** at limit **
   4  Prefactor     4.4179        9.2384        .59269E-07   -.16896E-03
   5  norm          .66389E-01    .78597       -.18138E-06    .29524E-03
   6  Prefactor     .10000E-03    2.5536        .71219E-08** at limit **
   7  Prefactor     .10000E-03    28.968        .13375E-04** at limit **
   8  norm          .10000E-03    1.5882        .28280E-07** at limit **
   9  Prefactor     .10000E-03    34.922       -.88477E-05** at limit **
  10  Prefactor     4.8284        4.0462       -.64001E-06   -.16970E-03
  11  Prefactor     .10000E-03    27.532        .12422E-04** at limit **
  12  Prefactor     .10000E-03    46.588        .18255E-04** at limit **
  13  Prefactor     5.9638        83.507       -.11107E-04    .10037E-04
  14  Prefactor     .10000E-03    3.6094       -.51343E-08** at limit **
  15  Prefactor     3.6444        16.897       -.82750E-06   -.65324E-04
  16  norm          .10000E-03    2.4187       -.25165E-07** at limit **
  17  Prefactor     .10000E-03    35.267       -.13195E-04** at limit **
  18  Prefactor     12.775        21.363        .20443E-05    .47922E-06
  19  Prefactor     .10000E-03    24.037       -.11643E-04** at limit **
  20  norm          11.345        10.866       -.15876E-05   -.12345E-02
  21  Prefactor     .10000E-03    12.699       -.50616E-05** at limit **
  22  norm          .10000E-03    2.1763       -.27186E-07** at limit **
  23  norm          .10000E-03    2.9673       -.37487E-07** at limit **
  24  Prefactor     .10000E-03    12.989        .53742E-05** at limit **
  25  Prefactor     .10000E-03    1.2001       -.74860E-07** at limit **
  26  norm          1.2187        3.1145       -.85917E-06   -.99299E-03
  27  Normalizat    .81429        .21804        .99027E-06    .18651E-03
  28  Prefactor     1.0666        .13683        .32730E-06    .29709E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.4179
  norm       = 0.0663887
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.82844
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.96377
  Prefactor  = 0.0001
  Prefactor  = 3.64443
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.7752
  Prefactor  = 0.0001
  norm       = 11.3447
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.21873
  Normalizat = 0.814293
  Prefactor  = 1.06656
 **********
 **   18 **HESSE 
 **********

 FCN=   6478.350     FROM HESSE     STATUS=OK           513 CALLS     3557 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.7931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    42.580        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.2539        .14119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.4179        9.2357        .19161E-03   -1.5288    
   5  norm          .66389E-01    11.097        .13536E-02   -1.5656    
   6  Prefactor     .10000E-03    2.6213        .25112E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    28.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.5903        .99041E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    34.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.8284        4.0513        .14300E-03   -1.5268    
  11  Prefactor     .10000E-03    27.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    46.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.9638        83.478        .16256E-03   -1.5220    
  14  Prefactor     .10000E-03    3.6163        .14934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.6444        16.884        .21158E-03   -1.5326    
  16  norm          .10000E-03    2.4233        .12225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    36.016        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.775        21.381        .11205E-03   -1.4993    
  19  Prefactor     .10000E-03    23.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          11.345        11.152        .59469E-03   -1.5034    
  21  Prefactor     .10000E-03    12.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.1774        .11596E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.9677        .13541E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    12.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    1.9312        .17071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.2187        3.1208        .21956E-03   -1.5487    
  27  Normalizat    .81429        .25387        .34149E-03   -.99541    
  28  Prefactor     1.0666        .15949        .19574E-03   -.90543    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.24106e-09
Minuit parameter uncertainties:
  1  3.11002e-06
  2  7.20119e-05
  3  3.04589e-06
  4  9.23869
  5  1.71567
  6  1.43689e-06
  7  7.62833e-06
  8  3.12923e-06
  9  0.000117093
  10  4.05149
  11  5.07566e-07
  12  1.4846e-05
  13  44.7001
  14  7.1572e-07
  15  15.6957
  16  3.06707e-07
  17  0.000222706
  18  21.3933
  19  1.55856e-05
  20  11.1544
  21  8.00047e-07
  22  8.46325e-07
  23  4.89963e-07
  24  6.36175e-07
  25  9.83837e-06
  26  3.12118
  27  0.254238
  28  0.159561
Done.

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

Extracting fit parameters...

4FGL J1806.3+5345
   Spectrum: PowerLaw
376    Prefactor:  1.278e+01  2.139e+01  1.000e-04  1.000e+04 ( 1.000e-13)
377        Index:  2.527e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
378        Scale:  1.017e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
675    Prefactor:  1.067e+00  1.596e-01  0.000e+00  1.000e+01 ( 1.000e+00)
676        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
677        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
674   Normalization:  8.143e-01  2.542e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.46
Ra Dec: 271.591 53.764
Photon Flux Upper Limit: 1.38e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.08e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/531737/likelihoodResults_243216001_243475201_4FGL_J1806.3+5345_daily_bin15.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) = 6478.27543382
delta logL = 0.0743666379212

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6478.27137857
delta logL = 0.0784218908057

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.7365       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1538       1.0000          .0000       10.000    
     3 'Normalizat'    .79262       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0751       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6780E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6478.271     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      318 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.7303        556.05        .15460E-03    .77215E-05
   2  Index         3.1545        5.1623        .89139E-02    .20599E-04
   3  Normalizat    .79192        .32011        .34581E-03    .91262E-04
   4  Prefactor     1.0755        .19651        .19500E-03   -.20197E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.73035
  Index      = 3.1545
  Normalizat = 0.791919
  Prefactor  = 1.07552
 **********
 **   18 **HESSE 
 **********

 FCN=   6478.271     FROM HESSE     STATUS=OK            25 CALLS      343 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.7303        20.670        .61838E-05   -1.5189    
   2  Index         3.1545        1.7527        .35656E-03   -.37804    
   3  Normalizat    .79192        .25087        .13833E-04   -1.0037    
   4  Prefactor     1.0755        .15920        .39000E-04   -.90253    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.32443e-10
Minuit parameter uncertainties:
  1  20.6921
  2  1.79721
  3  0.251233
  4  0.159269
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/531737': 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) = 6478.27137436
delta logL = 0.0784261009703

Extracting fit parameters...

4FGL J1806.3+5345
   Spectrum: PowerLaw
376    Prefactor:  6.730e+00  2.069e+01  1.000e-04  1.000e+04 ( 1.000e-13)
377        Index:  3.155e+00  1.797e+00  0.000e+00  1.000e+01 (-1.000e+00)
378        Scale:  1.017e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
675    Prefactor:  1.076e+00  1.593e-01  0.000e+00  1.000e+01 ( 1.000e+00)
676        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
677        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
674   Normalization:  7.919e-01  2.512e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.46
Ra Dec: 271.591 53.764

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/531737/cmap_HighResolution_243216001_243475201_4FGL_J1806.3+5345_daily_bin15.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.08e-02', job_status='DONE', photon_flux_upper_limit='1.38e-07', time_completed='2021-09-19 13:04:29.368168', job_id='531737', GAL2='1.08', fit_tolerance='1e-08', EG2='0.79', EG='0.81', time_epoch_completed='1632081869.37', return_code2='0', ts='0.46', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='7.84e-02', ts2='0.66', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='15' AND source_name='4FGL J1806.3+5345' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 19 13:04:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 531737: <4FGL_J1806.3+5345_daily_bin15> in cluster <slac> Done

Job <4FGL_J1806.3+5345_daily_bin15> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 19 12:50:15 2021
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 19 12:50:17 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 19 12:50:17 2021
Terminated at Sun Sep 19 13:04:30 2021
Results reported at Sun Sep 19 13:04:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1806.3+5345_daily_bin15 271.591 53.7642 243216001 243475201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1806.3+5345 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   840.34 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             331.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            855 sec.

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

