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


Performing analysis on: 4FGL_J1806.3+5345_monthly_bin110
RA = 271.591, Dec = 53.7642
tmin = 522115201, tmax = 524707201
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='102640', job_status='RUN', time_executed='2021-11-01 11:05:54.281779', time_epoch_executed='1635789954.28' WHERE source_name='4FGL J1806.3+5345' and cadence='monthly' and bin_id='110'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/102640

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

Retrieving the FT1 file...

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

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

Retrieving 457 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/102640/ft1_4FGL_J1806.3+5345_monthly_bin110.fits


Retrieving the FT1 file...

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

Retrieving 457 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/102640/ft2_4FGL_J1806.3+5345_monthly_bin110.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/102640/ft1_4FGL_J1806.3+5345_monthly_bin110.fits outfile=/scratch/kocevski/102640/ft1_filteredMKT_4FGL_J1806.3+5345_monthly_bin110.fits ra=271.591 dec=53.7642 rad=12.0 tmin=522115201.0 tmax=524707201.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 32.15
user 31.20
sys 0.74

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/102640/ft2_4FGL_J1806.3+5345_monthly_bin110.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/102640/ft1_filteredMKT_4FGL_J1806.3+5345_monthly_bin110.fits evtable="EVENTS" outfile="/scratch/kocevski/102640/ft1_filtered_4FGL_J1806.3+5345_monthly_bin110.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.87
user 0.69
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/102640/ft1_filtered_4FGL_J1806.3+5345_monthly_bin110.fits" evtable="EVENTS" scfile=/scratch/kocevski/102640/ft2_4FGL_J1806.3+5345_monthly_bin110.fits sctable="SC_DATA" outfile=/scratch/kocevski/102640/ltcube_522115201_524707201_4FGL_J1806.3+5345_monthly_bin110.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/102640/ft2_4FGL_J1806.3+5345_monthly_bin110.fits
.....................!
real 125.32
user 124.74
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/102640/ft1_filtered_4FGL_J1806.3+5345_monthly_bin110.fits evtable="EVENTS" scfile=/scratch/kocevski/102640/ft2_4FGL_J1806.3+5345_monthly_bin110.fits sctable="SC_DATA" expcube=/scratch/kocevski/102640/ltcube_522115201_524707201_4FGL_J1806.3+5345_monthly_bin110.fits outfile=/scratch/kocevski/102640/expmap_522115201_524707201_4FGL_J1806.3+5345_monthly_bin110.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/102640/ltcube_522115201_524707201_4FGL_J1806.3+5345_monthly_bin110.fits
.....................!
real 191.64
user 186.15
sys 5.04

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/102640/ft1_filtered_4FGL_J1806.3+5345_monthly_bin110.fits scfile=/scratch/kocevski/102640/ft2_4FGL_J1806.3+5345_monthly_bin110.fits outfile=/scratch/kocevski/102640/cmap_522115201_524707201_4FGL_J1806.3+5345_monthly_bin110.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.79
user 0.61
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/102640/ft1_filtered_4FGL_J1806.3+5345_monthly_bin110.fits scfile=/scratch/kocevski/102640/ft2_4FGL_J1806.3+5345_monthly_bin110.fits outfile=/scratch/kocevski/102640/cmap_HighResolution_522115201_524707201_4FGL_J1806.3+5345_monthly_bin110.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.80
user 0.62
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/102640/ft1_filtered_4FGL_J1806.3+5345_monthly_bin110.fits', '/scratch/kocevski/102640/ft2_4FGL_J1806.3+5345_monthly_bin110.fits', expMap='/scratch/kocevski/102640/expmap_522115201_524707201_4FGL_J1806.3+5345_monthly_bin110.fits', expCube='/scratch/kocevski/102640/ltcube_522115201_524707201_4FGL_J1806.3+5345_monthly_bin110.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/102640/Model_4FGL_J1806.3+5345_monthly_bin110.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/102640/ft1_filtered_4FGL_J1806.3+5345_monthly_bin110.fits
Spacecraft file(s): /scratch/kocevski/102640/ft2_4FGL_J1806.3+5345_monthly_bin110.fits
Exposure map: /scratch/kocevski/102640/expmap_522115201_524707201_4FGL_J1806.3+5345_monthly_bin110.fits
Exposure cube: /scratch/kocevski/102640/ltcube_522115201_524707201_4FGL_J1806.3+5345_monthly_bin110.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/102640/Model_4FGL_J1806.3+5345_monthly_bin110.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) = 98169.4266356

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3336       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .68713       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .41439       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .63411       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .73596       1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.348       1.0000         .10000E-03   10000.    
     8 'norm      '    1.0838       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.269       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.4866       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.0314       1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.351       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.1001       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.4479       1.0000         .10000E-03   10000.    
    16 'norm      '    3.8676       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.0672       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    7.3643       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.4249       1.0000         .10000E-03   10000.    
    22 'norm      '    5.2078       1.0000         .10000E-03   10000.    
    23 'norm      '    9.1235       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.6155       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .30886       1.0000         .10000E-03   10000.    
    26 'norm      '    2.5479       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1885       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .94311       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   98169.42     FROM MIGRAD    STATUS=CONVERGED    677 CALLS     3528 TOTAL
                     EDM=   .25E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3336        2.6431         .0000       -.82275E-03
   2  Prefactor     .67609        1.6426         .0000        .16148E-02
   3  Prefactor     .39929        .97822         .0000        .87320E-02
   4  Prefactor     .10000E-03    .64021         .0000    ** at limit **
   5  norm          .63422        .43250         .0000        .19989E-01
   6  Prefactor     .73581        .71215         .0000        .52649E-02
   7  Prefactor     15.368        18.379         .0000        .93359E-03
   8  norm          1.0845        1.4406         .0000        .17593E-01
   9  Prefactor     12.269        8.9871         .0000       -.41685E-03
  10  Prefactor     1.4868        1.0536         .0000        .81012E-02
  11  Prefactor     4.0307        11.442         .0000       -.76144E-03
  12  Prefactor     17.340        21.073         .0000        .30218E-02
  13  Prefactor     .10000E-03    2.8831         .0000    ** at limit **
  14  Prefactor     5.1002        2.1188         .0000        .11703E-02
  15  Prefactor     4.4482        4.0241         .0000        .21625E-02
  16  norm          3.8677        1.6687         .0000        .37968E-01
  17  Prefactor     2.0671        2.3385         .0000        .81111E-01
  18  Prefactor     .10000E-03    1.2102         .0000    ** at limit **
  19  Prefactor     .10000E-03    1.9643         .0000    ** at limit **
  20  norm          7.3644        2.0409         .0000       -.29138E-02
  21  Prefactor     3.4249        4.0530         .0000        .15391E-01
  22  norm          5.2079        2.1624         .0000        .20619E-02
  23  norm          9.1235        2.5422         .0000       -.39292E-02
  24  Prefactor     1.6153        3.8005         .0000        .55743E-01
  25  Prefactor     .30888        .48354         .0000        .32184E-01
  26  norm          2.5479        .59860         .0000        .83236E-03
  27  Normalizat    1.1884        .60710E-01     .0000        .49703E-04
  28  Prefactor     .94313        .36599E-01     .0000       -.89477E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.33363
  Prefactor  = 0.676086
  Prefactor  = 0.399287
  Prefactor  = 0.0001
  norm       = 0.634219
  Prefactor  = 0.735811
  Prefactor  = 15.3681
  norm       = 1.08449
  Prefactor  = 12.2688
  Prefactor  = 1.48678
  Prefactor  = 4.03067
  Prefactor  = 17.3399
  Prefactor  = 0.0001
  Prefactor  = 5.10017
  Prefactor  = 4.44825
  norm       = 3.86766
  Prefactor  = 2.06709
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.36439
  Prefactor  = 3.42488
  norm       = 5.20786
  norm       = 9.1235
  Prefactor  = 1.61527
  Prefactor  = 0.308878
  norm       = 2.54785
  Normalizat = 1.18845
  Prefactor  = 0.943134
 **********
 **   18 **HESSE 
 **********

 FCN=   98169.42     FROM HESSE     STATUS=OK           541 CALLS     4069 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3336        2.6432        .17402E-03   -1.5246    
   2  Prefactor     .67609        5.4021        .59114E-02   -1.5544    
   3  Prefactor     .39929        2.5030        .36716E-02   -1.5582    
   4  Prefactor     .10000E-03    .66762        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .63422        .42188        .16159E-03   -1.5549    
   6  Prefactor     .73581        .56329        .24398E-02   -1.5536    
   7  Prefactor     15.368        19.273        .10224E-03   -1.4924    
   8  norm          1.0845        1.3917        .39539E-03   -1.5500    
   9  Prefactor     12.269        8.9576        .11436E-03   -1.5007    
  10  Prefactor     1.4868        1.0313        .24984E-03   -1.5464    
  11  Prefactor     4.0307        11.368        .20084E-03   -1.5306    
  12  Prefactor     17.340        21.069        .96152E-04   -1.4875    
  13  Prefactor     .10000E-03    2.8908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.1002        2.1170        .17803E-03   -1.5256    
  15  Prefactor     4.4482        4.0249        .95467E-03   -1.5286    
  16  norm          3.8677        1.6672        .10259E-02   -1.5315    
  17  Prefactor     2.0671        2.3298        .14368E-02   -1.5420    
  18  Prefactor     .10000E-03    1.2217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.0604        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          7.3644        2.0398        .14780E-03   -1.5165    
  21  Prefactor     3.4249        4.0453        .10929E-02   -1.5338    
  22  norm          5.2079        2.1587        .17615E-03   -1.5252    
  23  norm          9.1235        2.5402        .66344E-03   -1.5104    
  24  Prefactor     1.6153        3.8087        .16656E-02   -1.5454    
  25  Prefactor     .30888        .48086        .25842E-03   -1.5597    
  26  norm          2.5479        .59866        .11390E-03   -1.5389    
  27  Normalizat    1.1884        .71841E-01    .30800E-03   -.86961    
  28  Prefactor     .94313        .43709E-01    .21760E-03   -.94650    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22706e-06
Minuit parameter uncertainties:
  1  2.64325
  2  3.82237
  3  1.99927
  4  1.93605e-06
  5  0.421885
  6  0.563298
  7  19.2812
  8  1.39174
  9  8.95855
  10  1.03133
  11  11.3743
  12  21.0778
  13  4.2654e-05
  14  2.11705
  15  4.02513
  16  1.66725
  17  2.32989
  18  1.49306e-06
  19  6.22397e-06
  20  2.03987
  21  4.04563
  22  2.15878
  23  2.54023
  24  3.80932
  25  0.480868
  26  0.598658
  27  0.071847
  28  0.0437105
Done.

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

Extracting fit parameters...

4FGL J1806.3+5345
   Spectrum: PowerLaw
376    Prefactor:  1.000e-04  1.493e-06  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:  9.431e-01  4.371e-02  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:  1.188e+00  7.185e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 271.591 53.764
Photon Flux Upper Limit: 1.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 9.44e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/102640/likelihoodResults_522115201_524707201_4FGL_J1806.3+5345_monthly_bin110.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): 102
logL (Free Index) = 98169.4213323
delta logL = -0.00390283310844

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 98169.4174295
delta logL = -6.00994098932e-08

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 'Index     '    2.5196       1.0000          .0000       10.000    
     3 'Normalizat'    1.1885       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94313       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=   98169.42     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      242 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10050E-03    22.759        .18142E-02** at limit **
   2  Index         2.4704        8.6803        .50000        .41728E-04
   3  Normalizat    1.1884        .63226E-02    .30800E-03    .59648E-04
   4  Prefactor     .94313        .40549E-02    .21760E-03    .58514E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100504
  Index      = 2.47043
  Normalizat = 1.18845
  Prefactor  = 0.943134
 **********
 **   18 **HESSE 
 **********

 FCN=   98169.42     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .98E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10050E-03    104.01        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4704        8.5093        .50000       -.53044    
   3  Normalizat    1.1884        .14798E-01    .12320E-04   -.86961    
   4  Prefactor     .94313        .94833E-02    .87041E-05   -.94650    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.77767e-08
Minuit parameter uncertainties:
  1  0.0144986
  2  616.178
  3  0.0147977
  4  0.00948337
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/102640': 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): 102
logL (Free Index) = 98169.4174291
delta logL = 4.08050254919e-07

Extracting fit parameters...

4FGL J1806.3+5345
   Spectrum: PowerLaw
376    Prefactor:  1.005e-04  1.450e-02  1.000e-04  1.000e+04 ( 1.000e-13)
377        Index:  2.470e+00  6.162e+02  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:  9.431e-01  9.483e-03  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:  1.188e+00  1.480e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 271.591 53.764

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/102640/cmap_HighResolution_522115201_524707201_4FGL_J1806.3+5345_monthly_bin110.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.44e-04', job_status='DONE', photon_flux_upper_limit='1.21e-08', time_completed='2021-11-01 13:53:21.475775', job_id='102640', GAL2='0.94', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1635800001.48', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='4.08e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='110' AND source_name='4FGL J1806.3+5345' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Mon Nov  1 13:53:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0134>
Subject: Job 102640: <4FGL_J1806.3+5345_monthly_bin110> in cluster <slac> Done

Job <4FGL_J1806.3+5345_monthly_bin110> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Mon Nov  1 10:45:14 2021
Job was executed on host(s) <bullet0134>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Nov  1 11:04:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Nov  1 11:04:24 2021
Terminated at Mon Nov  1 13:53:22 2021
Results reported at Mon Nov  1 13:53:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1806.3+5345_monthly_bin110 271.591 53.7642 522115201 524707201 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 :                                   9819.00 sec.
    Max Memory :                                 631 MB
    Average Memory :                             449.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   10138 sec.
    Turnaround time :                            11288 sec.

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

