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


Performing analysis on: 4FGL_J1806.3+5345_daily_bin33
RA = 271.591, Dec = 53.7642
tmin = 247881601, tmax = 248140801
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='531766', job_status='RUN', time_executed='2021-09-19 12:50:34.923312', time_epoch_executed='1632081034.92' WHERE source_name='4FGL J1806.3+5345' and cadence='daily' and bin_id='33'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/531766

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/531766/ft1_4FGL_J1806.3+5345_daily_bin33.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/531766/ft2_4FGL_J1806.3+5345_daily_bin33.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/531766/ft1_4FGL_J1806.3+5345_daily_bin33.fits outfile=/scratch/kocevski/531766/ft1_filteredMKT_4FGL_J1806.3+5345_daily_bin33.fits ra=271.591 dec=53.7642 rad=12.0 tmin=247881601.0 tmax=248140801.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.42
user 1.24
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/531766/ft2_4FGL_J1806.3+5345_daily_bin33.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/531766/ft1_filteredMKT_4FGL_J1806.3+5345_daily_bin33.fits evtable="EVENTS" outfile="/scratch/kocevski/531766/ft1_filtered_4FGL_J1806.3+5345_daily_bin33.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/531766/ft1_filtered_4FGL_J1806.3+5345_daily_bin33.fits" evtable="EVENTS" scfile=/scratch/kocevski/531766/ft2_4FGL_J1806.3+5345_daily_bin33.fits sctable="SC_DATA" outfile=/scratch/kocevski/531766/ltcube_247881601_248140801_4FGL_J1806.3+5345_daily_bin33.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/531766/ft2_4FGL_J1806.3+5345_daily_bin33.fits
.....................!
real 12.92
user 12.55
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/531766/ft1_filtered_4FGL_J1806.3+5345_daily_bin33.fits evtable="EVENTS" scfile=/scratch/kocevski/531766/ft2_4FGL_J1806.3+5345_daily_bin33.fits sctable="SC_DATA" expcube=/scratch/kocevski/531766/ltcube_247881601_248140801_4FGL_J1806.3+5345_daily_bin33.fits outfile=/scratch/kocevski/531766/expmap_247881601_248140801_4FGL_J1806.3+5345_daily_bin33.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/531766/ltcube_247881601_248140801_4FGL_J1806.3+5345_daily_bin33.fits
.....................!
real 190.65
user 186.03
sys 4.18

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/531766/ft1_filtered_4FGL_J1806.3+5345_daily_bin33.fits scfile=/scratch/kocevski/531766/ft2_4FGL_J1806.3+5345_daily_bin33.fits outfile=/scratch/kocevski/531766/cmap_247881601_248140801_4FGL_J1806.3+5345_daily_bin33.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/531766/ft1_filtered_4FGL_J1806.3+5345_daily_bin33.fits scfile=/scratch/kocevski/531766/ft2_4FGL_J1806.3+5345_daily_bin33.fits outfile=/scratch/kocevski/531766/cmap_HighResolution_247881601_248140801_4FGL_J1806.3+5345_daily_bin33.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.56
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.455       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.6018       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.7298       1.0000         .10000E-03   10000.    
     5 'norm      '    2.0541       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .50769       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10258E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10707E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    40.533       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.877       1.0000         .10000E-03   10000.    
    16 'norm      '    .10373E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    26.836       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.0288       1.0000         .10000E-03   10000.    
    20 'norm      '    20.739       1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.571       1.0000         .10000E-03   10000.    
    22 'norm      '    .41069E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    12.023       1.0000         .10000E-03   10000.    
    24 'Prefactor '    20.427       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.8277       1.0000         .10000E-03   10000.    
    26 'norm      '    3.2324       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.5455       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .71049       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=   7435.309     FROM MIGRAD    STATUS=CONVERGED    682 CALLS     3505 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.455        14.815       -.31610E-07   -.53796E-04
   2  Prefactor     7.5999        18.847        .33669E-06    .18608E-04
   3  Prefactor     .10000E-03    2.5979        .38151E-07** at limit **
   4  Prefactor     3.7292        4.9077       -.19045E-07   -.81188E-04
   5  norm          2.0538        1.9700        .17901E-06   -.41607E-04
   6  Prefactor     .50797        2.9366        .27722E-05    .20336E-03
   7  Prefactor     .10000E-03    94.442       -.12881E-06** at limit **
   8  norm          .10000E-03    1.4453       -.64371E-07** at limit **
   9  Prefactor     .10000E-03    24.277       -.11827E-05** at limit **
  10  Prefactor     .10000E-03    1.1943       -.54343E-07** at limit **
  11  Prefactor     .10000E-03    16.079       -.68369E-06** at limit **
  12  Prefactor     .10000E-03    25.030        .81597E-07** at limit **
  13  Prefactor     40.518        37.410       -.33568E-05   -.69410E-03
  14  Prefactor     .10000E-03    16.810        .13044E-05** at limit **
  15  Prefactor     19.878        20.482       -.39703E-07   -.37328E-04
  16  norm          .10000E-03    18.453       -.23782E-08** at limit **
  17  Prefactor     26.833        15.473        .29533E-06    .23583E-03
  18  Prefactor     .10000E-03    7.3496       -.50157E-07** at limit **
  19  Prefactor     5.0176        26.822       -.36531E-06   -.52625E-04
  20  norm          20.740        12.499       -.36696E-08   -.94139E-04
  21  Prefactor     14.573        27.043        .26200E-06    .63290E-05
  22  norm          .10064E-03    12.290        .44910E-05** at limit **
  23  norm          12.020        11.961       -.30695E-07   -.31631E-03
  24  Prefactor     20.428        19.476        .47669E-06    .18540E-04
  25  Prefactor     1.8279        2.2594        .21245E-06   -.32945E-03
  26  norm          3.2334        3.4133        .20528E-06   -.51499E-05
  27  Normalizat    1.5456        .22555       -.14169E-06   -.46901E-03
  28  Prefactor     .71035        .13887       -.33413E-06   -.52562E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.4553
  Prefactor  = 7.59994
  Prefactor  = 0.0001
  Prefactor  = 3.72916
  norm       = 2.05378
  Prefactor  = 0.507971
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 40.5178
  Prefactor  = 0.000100003
  Prefactor  = 19.8778
  norm       = 0.0001
  Prefactor  = 26.8334
  Prefactor  = 0.0001
  Prefactor  = 5.01765
  norm       = 20.7404
  Prefactor  = 14.573
  norm       = 0.000100637
  norm       = 12.0204
  Prefactor  = 20.4278
  Prefactor  = 1.82787
  norm       = 3.23343
  Normalizat = 1.54556
  Prefactor  = 0.710353
 **********
 **   18 **HESSE 
 **********

 FCN=   7435.309     FROM HESSE     STATUS=OK           513 CALLS     4018 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.455        14.831        .72603E-04   -1.4604    
   2  Prefactor     7.5999        18.890        .14545E-03   -1.5157    
   3  Prefactor     .10000E-03    2.6045        .13570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.7292        4.9037        .20908E-03   -1.5322    
   5  norm          2.0538        1.9617        .11285E-03   -1.5421    
   6  Prefactor     .50797        3.3175        .30294E-03   -1.5565    
   7  Prefactor     .10000E-03    94.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.4479        .10123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    24.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.1960        .92023E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    25.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     40.518        40.977        .62961E-04   -1.4434    
  14  Prefactor     .10000E-03    17.577        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     19.878        20.483        .89838E-04   -1.4816    
  16  norm          .10000E-03    19.177        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     26.833        15.567        .77332E-04   -1.4671    
  18  Prefactor     .10000E-03    7.3591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.0176        26.923        .17932E-03   -1.5260    
  20  norm          20.740        12.499        .87952E-04   -1.4797    
  21  Prefactor     14.573        27.041        .10493E-03   -1.4944    
  22  norm          .10064E-03    49.981        .43920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          12.020        11.841        .11553E-03   -1.5014    
  24  Prefactor     20.428        19.510        .44310E-03   -1.4804    
  25  Prefactor     1.8279        2.2415        .13826E-03   -1.5438    
  26  norm          3.2334        3.4247        .15678E-03   -1.5348    
  27  Normalizat    1.5456        .26663        .29443E-03   -.76506    
  28  Prefactor     .71035        .16320        .25573E-03   -1.0312    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48623e-08
Minuit parameter uncertainties:
  1  14.8325
  2  18.9052
  3  3.06427e-06
  4  4.90424
  5  1.96171
  6  2.59626
  7  0.000162392
  8  1.97099e-06
  9  0.00039261
  10  3.83043e-06
  11  0.000225691
  12  3.13641e-05
  13  41.0053
  14  0.000429812
  15  20.4907
  16  8.00689e-06
  17  15.5697
  18  1.26255e-05
  19  23.2619
  20  12.5007
  21  27.0641
  22  0.0112904
  23  11.8435
  24  19.5164
  25  2.2416
  26  3.4249
  27  0.266871
  28  0.163309
Done.

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

Extracting fit parameters...

4FGL J1806.3+5345
   Spectrum: PowerLaw
376    Prefactor:  1.000e-04  1.263e-05  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:  7.104e-01  1.633e-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:  1.546e+00  2.669e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/531766/likelihoodResults_247881601_248140801_4FGL_J1806.3+5345_daily_bin33.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) = 7435.30969635
delta logL = -0.000645121939669

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7435.3090512
delta logL = 2.73321347777e-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.5156       1.0000          .0000       10.000    
     3 'Normalizat'    1.5456       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71035       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.

 FCN=   7435.309     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      207 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.340        .90712E-02** at limit **
   2  Index         2.5046        5.9670        .50000        .13233E-04
   3  Normalizat    1.5456        .21675        .66563E-01   -.10580E-05
   4  Prefactor     .71035        .13425        .42539E-01    .13326E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.50463
  Normalizat = 1.54556
  Prefactor  = 0.710354
 **********
 **   18 **HESSE 
 **********

 FCN=   7435.309     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.6510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5046        6.2510        .50000       -.52253    
   3  Normalizat    1.5456        .25328        .29443E-03   -.76506    
   4  Prefactor     .71035        .15694        .25573E-03   -1.0312    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9575e-10
Minuit parameter uncertainties:
  1  1.3001e-05
  2  4.68091
  3  0.253488
  4  0.15704
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/531766': 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) = 7435.30905116
delta logL = 6.89551598043e-08

Extracting fit parameters...

4FGL J1806.3+5345
   Spectrum: PowerLaw
376    Prefactor:  1.000e-04  1.300e-05  1.000e-04  1.000e+04 ( 1.000e-13)
377        Index:  2.505e+00  4.681e+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:  7.104e-01  1.570e-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:  1.546e+00  2.535e-01  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/531766/cmap_HighResolution_247881601_248140801_4FGL_J1806.3+5345_daily_bin33.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.96e-03', job_status='DONE', photon_flux_upper_limit='7.65e-08', time_completed='2021-09-19 13:06:49.860380', job_id='531766', GAL2='0.71', fit_tolerance='1e-08', EG2='1.55', EG='1.55', time_epoch_completed='1632082009.86', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='6.90e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='33' AND source_name='4FGL J1806.3+5345' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 19 13:06:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 531766: <4FGL_J1806.3+5345_daily_bin33> in cluster <slac> Done

Job <4FGL_J1806.3+5345_daily_bin33> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 19 12:50:18 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 19 12:50:19 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:19 2021
Terminated at Sun Sep 19 13:06:50 2021
Results reported at Sun Sep 19 13:06:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1806.3+5345_daily_bin33 271.591 53.7642 247881601 248140801 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 :                                   973.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             362.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   991 sec.
    Turnaround time :                            992 sec.

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

