/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 9 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7387
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1806.3+5345_daily_bin356
RA = 271.591, Dec = 53.7642
tmin = 331603201, tmax = 331862401
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='534492', job_status='RUN', time_executed='2021-09-19 13:00:45.648831', time_epoch_executed='1632081645.65' WHERE source_name='4FGL J1806.3+5345' and cadence='daily' and bin_id='356'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/534492

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/534492/ft1_4FGL_J1806.3+5345_daily_bin356.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/534492/ft2_4FGL_J1806.3+5345_daily_bin356.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/534492/ft1_4FGL_J1806.3+5345_daily_bin356.fits outfile=/scratch/kocevski/534492/ft1_filteredMKT_4FGL_J1806.3+5345_daily_bin356.fits ra=271.591 dec=53.7642 rad=12.0 tmin=331603201.0 tmax=331862401.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 2.46
user 2.26
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/534492/ft2_4FGL_J1806.3+5345_daily_bin356.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/534492/ft1_filteredMKT_4FGL_J1806.3+5345_daily_bin356.fits evtable="EVENTS" outfile="/scratch/kocevski/534492/ft1_filtered_4FGL_J1806.3+5345_daily_bin356.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.40
user 0.26
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/534492/ft1_filtered_4FGL_J1806.3+5345_daily_bin356.fits" evtable="EVENTS" scfile=/scratch/kocevski/534492/ft2_4FGL_J1806.3+5345_daily_bin356.fits sctable="SC_DATA" outfile=/scratch/kocevski/534492/ltcube_331603201_331862401_4FGL_J1806.3+5345_daily_bin356.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/534492/ft2_4FGL_J1806.3+5345_daily_bin356.fits
.....................!
real 8.70
user 8.40
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/534492/ft1_filtered_4FGL_J1806.3+5345_daily_bin356.fits evtable="EVENTS" scfile=/scratch/kocevski/534492/ft2_4FGL_J1806.3+5345_daily_bin356.fits sctable="SC_DATA" expcube=/scratch/kocevski/534492/ltcube_331603201_331862401_4FGL_J1806.3+5345_daily_bin356.fits outfile=/scratch/kocevski/534492/expmap_331603201_331862401_4FGL_J1806.3+5345_daily_bin356.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/534492/ltcube_331603201_331862401_4FGL_J1806.3+5345_daily_bin356.fits
.....................!
real 140.64
user 136.91
sys 3.49

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/534492/ft1_filtered_4FGL_J1806.3+5345_daily_bin356.fits scfile=/scratch/kocevski/534492/ft2_4FGL_J1806.3+5345_daily_bin356.fits outfile=/scratch/kocevski/534492/cmap_331603201_331862401_4FGL_J1806.3+5345_daily_bin356.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.45
user 0.29
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/534492/ft1_filtered_4FGL_J1806.3+5345_daily_bin356.fits scfile=/scratch/kocevski/534492/ft2_4FGL_J1806.3+5345_daily_bin356.fits outfile=/scratch/kocevski/534492/cmap_HighResolution_331603201_331862401_4FGL_J1806.3+5345_daily_bin356.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.44
user 0.31
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.845       1.0000         .10000E-03   10000.    
     5 'norm      '    4.4022       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .26947E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    19.778       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .25736       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.3825       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    66.386       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .45864E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.5107       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14443E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.6215       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10083E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    12.129       1.0000         .10000E-03   10000.    
    23 'norm      '    .16562E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    20.040       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.2195       1.0000         .10000E-03   10000.    
    26 'norm      '    3.7203       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.3151       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .77466       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=   9403.297     FROM MIGRAD    STATUS=CONVERGED   1311 CALLS     4645 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.7211        .18142E-02** at limit **
   2  Prefactor     .10000E-03    6.0365        .18142E-02** at limit **
   3  Prefactor     .10000E-03    5.0284        .36285E-03** at limit **
   4  Prefactor     15.842        8.9754        .10062E-03   -.18055E-03
   5  norm          4.4028        2.1638        .93497E-04   -.20428E-04
   6  Prefactor     .10000E-03    1.1852        .10297E-02** at limit **
   7  Prefactor     .10002E-03    28.310        .17827    ** at limit **
   8  norm          19.786        8.2670        .90061E-04   -.19995E-03
   9  Prefactor     .55869E-01    45.586        .18523        .40592E-04
  10  Prefactor     3.3813        3.6762        .92886E-03   -.34802E-03
  11  Prefactor     .10000E-03    14.984        .18142E-02** at limit **
  12  Prefactor     66.428        74.265        .49259E-04   -.14863E-04
  13  Prefactor     .10000E-03    134.37        .21200E-02** at limit **
  14  Prefactor     2.5105        6.2611        .25787E-03    .49377E-05
  15  Prefactor     .10000E-03    67.176        .36285E-03** at limit **
  16  norm          .10000E-03    1.5792        .11897E-02** at limit **
  17  Prefactor     1.6109        24.118        .33234E-03   -.97151E-05
  18  Prefactor     .10000E-03    4.9900        .18142E-02** at limit **
  19  Prefactor     .10000E-03    6.3563        .18142E-02** at limit **
  20  norm          .10000E-03    6.1159        .18142E-02** at limit **
  21  Prefactor     .10000E-03    5.8614        .18142E-02** at limit **
  22  norm          12.130        9.8397        .11502E-03    .16546E-03
  23  norm          .10005E-03    43.826        .48547E-02** at limit **
  24  Prefactor     20.036        17.008        .44735E-03   -.13566E-03
  25  Prefactor     2.2195        1.9351        .12111E-03    .30995E-03
  26  norm          3.7202        2.0525        .10009E-03   -.19763E-04
  27  Normalizat    1.3156        .23991        .30208E-03   -.47193E-04
  28  Prefactor     .77447        .13916        .23463E-03   -.23761E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.8419
  norm       = 4.40279
  Prefactor  = 0.0001
  Prefactor  = 0.000100021
  norm       = 19.7856
  Prefactor  = 0.0558695
  Prefactor  = 3.38132
  Prefactor  = 0.0001
  Prefactor  = 66.4285
  Prefactor  = 0.000100002
  Prefactor  = 2.51054
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.61092
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 12.1299
  norm       = 0.000100046
  Prefactor  = 20.036
  Prefactor  = 2.21947
  norm       = 3.7202
  Normalizat = 1.31556
  Prefactor  = 0.774466
 **********
 **   18 **HESSE 
 **********

 FCN=   9403.297     FROM HESSE     STATUS=OK           511 CALLS     5156 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.7216        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.0369        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.0286        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.842        8.9751        .40248E-05   -1.4912    
   5  norm          4.4028        2.1638        .37399E-05   -1.5288    
   6  Prefactor     .10000E-03    1.1852        .20595E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10002E-03    28.374        .17786       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          19.786        8.2663        .36024E-05   -1.4818    
   9  Prefactor     .55869E-01    46.729        .18186       -1.5661    
  10  Prefactor     3.3813        3.6748        .37154E-04   -1.5340    
  11  Prefactor     .10000E-03    14.984        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     66.428        74.258        .98517E-05   -1.4076    
  13  Prefactor     .10000E-03    134.45        .42399E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.5105        6.2609        .10315E-04   -1.5391    
  15  Prefactor     .10000E-03    67.179        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.5792        .23793E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.6109        24.087        .13294E-04   -1.5454    
  18  Prefactor     .10000E-03    4.9905        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.3564        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    6.1204        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.8614        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          12.130        9.8359        .46009E-05   -1.5011    
  23  norm          .10005E-03    45.090        .19419E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     20.036        17.005        .17894E-04   -1.4812    
  25  Prefactor     2.2195        1.9348        .48446E-05   -1.5410    
  26  norm          3.7202        2.0525        .40037E-05   -1.5322    
  27  Normalizat    1.3156        .24007        .12083E-04   -.83103    
  28  Prefactor     .77447        .13929        .93853E-05   -1.0068    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35343e-09
Minuit parameter uncertainties:
  1  1.00014e-05
  2  2.02104e-05
  3  1.47173e-05
  4  8.97588
  5  2.16382
  6  3.74642e-07
  7  0.00155518
  8  8.26673
  9  3.23119
  10  3.67504
  11  1.19531e-05
  12  74.3615
  13  0.000903131
  14  6.26253
  15  0.000154635
  16  2.46409e-06
  17  12.4639
  18  8.04605e-06
  19  7.35866e-06
  20  5.57744e-05
  21  8.14382e-06
  22  9.83716
  23  0.00288837
  24  17.009
  25  1.9349
  26  2.05252
  27  0.240277
  28  0.139349
Done.

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

Extracting fit parameters...

4FGL J1806.3+5345
   Spectrum: PowerLaw
376    Prefactor:  1.000e-04  8.046e-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:  7.745e-01  1.393e-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.316e+00  2.403e-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: 5.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/534492/likelihoodResults_331603201_331862401_4FGL_J1806.3+5345_daily_bin356.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) = 9403.29828974
delta logL = -0.000952842508923

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9403.29733685
delta logL = 4.95583662996e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5129       1.0000          .0000       10.000    
     3 'Normalizat'    1.3155       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77448       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=   9403.297     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      242 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10366E-03    3.0103        .18142E-01** at limit **
   2  Index         2.3376        6.8767        .50000        .17462E-04
   3  Normalizat    1.3156        .35589E-02    .30208E-03    .31613E-05
   4  Prefactor     .77447        .21957E-02    .23463E-03    .13858E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010366
  Index      = 2.33763
  Normalizat = 1.31556
  Prefactor  = 0.774468
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10366E-03    118.05        .22143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3376        5.8108        .50000       -.56152    
   3  Normalizat    1.3156        .22769E-01    .12083E-04   -.83103    
   4  Prefactor     .77447        .14048E-01    .93853E-05   -1.0068    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.20686e-08
Minuit parameter uncertainties:
  1  0.0416549
  2  906.103
  3  0.0227692
  4  0.0140478
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/534492': 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) = 9403.29733631
delta logL = 5.8956356952e-07

Extracting fit parameters...

4FGL J1806.3+5345
   Spectrum: PowerLaw
376    Prefactor:  1.037e-04  4.165e-02  1.000e-04  1.000e+04 ( 1.000e-13)
377        Index:  2.338e+00  9.061e+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:  7.745e-01  1.405e-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.316e+00  2.277e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/534492/cmap_HighResolution_331603201_331862401_4FGL_J1806.3+5345_daily_bin356.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.01e-03', job_status='DONE', photon_flux_upper_limit='5.14e-08', time_completed='2021-09-19 13:16:59.105320', job_id='534492', GAL2='0.77', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1632082619.11', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='5.90e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='356' AND source_name='4FGL J1806.3+5345' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 19 13:16:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 534492: <4FGL_J1806.3+5345_daily_bin356> in cluster <slac> Done

Job <4FGL_J1806.3+5345_daily_bin356> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 19 13:00:27 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 19 13:00: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:00:29 2021
Terminated at Sun Sep 19 13:16:59 2021
Results reported at Sun Sep 19 13:16:59 2021

Your job looked like:

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

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

