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


Performing analysis on: 4FGL_J1806.3+5345_daily_bin1178
RA = 271.591, Dec = 53.7642
tmin = 544665601, tmax = 544924801
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='541232', job_status='RUN', time_executed='2021-09-19 13:25:36.398079', time_epoch_executed='1632083136.4' WHERE source_name='4FGL J1806.3+5345' and cadence='daily' and bin_id='1178'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/541232

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/541232/ft1_4FGL_J1806.3+5345_daily_bin1178.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/541232/ft2_4FGL_J1806.3+5345_daily_bin1178.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/541232/ft1_4FGL_J1806.3+5345_daily_bin1178.fits outfile=/scratch/kocevski/541232/ft1_filteredMKT_4FGL_J1806.3+5345_daily_bin1178.fits ra=271.591 dec=53.7642 rad=12.0 tmin=544665601.0 tmax=544924801.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 4.02
user 3.81
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/541232/ft2_4FGL_J1806.3+5345_daily_bin1178.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/541232/ft1_filteredMKT_4FGL_J1806.3+5345_daily_bin1178.fits evtable="EVENTS" outfile="/scratch/kocevski/541232/ft1_filtered_4FGL_J1806.3+5345_daily_bin1178.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/541232/ft1_filtered_4FGL_J1806.3+5345_daily_bin1178.fits" evtable="EVENTS" scfile=/scratch/kocevski/541232/ft2_4FGL_J1806.3+5345_daily_bin1178.fits sctable="SC_DATA" outfile=/scratch/kocevski/541232/ltcube_544665601_544924801_4FGL_J1806.3+5345_daily_bin1178.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/541232/ft2_4FGL_J1806.3+5345_daily_bin1178.fits
.....................!
real 11.81
user 11.44
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/541232/ft1_filtered_4FGL_J1806.3+5345_daily_bin1178.fits evtable="EVENTS" scfile=/scratch/kocevski/541232/ft2_4FGL_J1806.3+5345_daily_bin1178.fits sctable="SC_DATA" expcube=/scratch/kocevski/541232/ltcube_544665601_544924801_4FGL_J1806.3+5345_daily_bin1178.fits outfile=/scratch/kocevski/541232/expmap_544665601_544924801_4FGL_J1806.3+5345_daily_bin1178.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/541232/ltcube_544665601_544924801_4FGL_J1806.3+5345_daily_bin1178.fits
.....................!
real 190.13
user 184.70
sys 5.11

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/541232/ft1_filtered_4FGL_J1806.3+5345_daily_bin1178.fits scfile=/scratch/kocevski/541232/ft2_4FGL_J1806.3+5345_daily_bin1178.fits outfile=/scratch/kocevski/541232/cmap_544665601_544924801_4FGL_J1806.3+5345_daily_bin1178.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.55
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/541232/ft1_filtered_4FGL_J1806.3+5345_daily_bin1178.fits scfile=/scratch/kocevski/541232/ft2_4FGL_J1806.3+5345_daily_bin1178.fits outfile=/scratch/kocevski/541232/cmap_HighResolution_544665601_544924801_4FGL_J1806.3+5345_daily_bin1178.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.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/541232/ft1_filtered_4FGL_J1806.3+5345_daily_bin1178.fits', '/scratch/kocevski/541232/ft2_4FGL_J1806.3+5345_daily_bin1178.fits', expMap='/scratch/kocevski/541232/expmap_544665601_544924801_4FGL_J1806.3+5345_daily_bin1178.fits', expCube='/scratch/kocevski/541232/ltcube_544665601_544924801_4FGL_J1806.3+5345_daily_bin1178.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/541232/Model_4FGL_J1806.3+5345_daily_bin1178.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/541232/ft1_filtered_4FGL_J1806.3+5345_daily_bin1178.fits
Spacecraft file(s): /scratch/kocevski/541232/ft2_4FGL_J1806.3+5345_daily_bin1178.fits
Exposure map: /scratch/kocevski/541232/expmap_544665601_544924801_4FGL_J1806.3+5345_daily_bin1178.fits
Exposure cube: /scratch/kocevski/541232/ltcube_544665601_544924801_4FGL_J1806.3+5345_daily_bin1178.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/541232/Model_4FGL_J1806.3+5345_daily_bin1178.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 347.460581491

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 344.952149764

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24320       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.3178       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.9006       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.2423       1.0000         .10000E-03   10000.    
     5 'norm      '    14.931       1.0000         .10000E-03   10000.    
     6 'Prefactor '    39.642       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.1004       1.0000         .10000E-03   10000.    
     8 'norm      '    7.9992       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .97136       1.0000         .10000E-03   10000.    
    10 'Prefactor '    138.44       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.497       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.3904       1.0000         .10000E-03   10000.    
    13 'Prefactor '    77.216       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.3220       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.4067       1.0000         .10000E-03   10000.    
    16 'norm      '    63.262       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.0131       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.8885       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.7270       1.0000         .10000E-03   10000.    
    20 'norm      '    9.0448       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.1705       1.0000         .10000E-03   10000.    
    22 'norm      '    .16208       1.0000         .10000E-03   10000.    
    23 'norm      '    .55251       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.6782       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.7342       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .23594       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .74702       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6780E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   344.9083     FROM MIGRAD    STATUS=CONVERGED    285 CALLS      527 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    162.12       -.59226E-06** at limit **
   2  Prefactor     3.3178        1.0118         .0000         .0000    
   3  Prefactor     1.9006        1.0396         .0000         .0000    
   4  Prefactor     2.2423        1.0273         .0000         .0000    
   5  norm          14.797        15.245       -.15443E-05    .17885E-03
   6  Prefactor     41.409        68.499       -.41880E-06    .16130E-02
   7  Prefactor     5.1004        1.0049         .0000         .0000    
   8  norm          4.6133        318.17       -.15661E-04   -.10843E-02
   9  Prefactor     .10000E-03    244.00        .77507E-07** at limit **
  10  Prefactor     117.35        57.518       -.18030E-05   -.49471E-01
  11  Prefactor     576.43        5055.7        .47031E-04   -.24071E-02
  12  Prefactor     8.3904        1.0018         .0000         .0000    
  13  Prefactor     109.34        296.20        .87916E-06    .20974E-02
  14  Prefactor     .10017E-03    258.79        .37793E-04** at limit **
  15  Prefactor     3.4067        1.0112         .0000         .0000    
  16  norm          63.215        79.370       -.32300E-06   -.49849E-02
  17  Prefactor     2.0131        1.0347         .0000         .0000    
  18  Prefactor     2.8885        1.0158         .0000         .0000    
  19  Prefactor     1.7270        1.0496         .0000         .0000    
  20  norm          9.0448        1.0015         .0000         .0000    
  21  Prefactor     4.1705        1.0074         .0000         .0000    
  22  norm          .10000E-03    108.08        .21601E-06** at limit **
  23  norm          .10002E-03    491.77        .31069E-05** at limit **
  24  Prefactor     3.6782        1.0095         .0000         .0000    
  25  Prefactor     .10000E-03    47.171       -.13166E-05** at limit **
  26  norm          2.7342        1.0178         .0000         .0000    
  27  Normalizat    .22363        5.8749        .56662E-04    .37384E-04
  28  Prefactor     .75171        .67119       -.76312E-05    .57234E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.31778
  Prefactor  = 1.90059
  Prefactor  = 2.24233
  norm       = 14.7971
  Prefactor  = 41.4094
  Prefactor  = 5.10036
  norm       = 4.61331
  Prefactor  = 0.0001
  Prefactor  = 117.351
  Prefactor  = 576.431
  Prefactor  = 8.39043
  Prefactor  = 109.338
  Prefactor  = 0.000100166
  Prefactor  = 3.40672
  norm       = 63.2149
  Prefactor  = 2.01312
  Prefactor  = 2.88854
  Prefactor  = 1.72703
  norm       = 9.04483
  Prefactor  = 4.17054
  norm       = 0.0001
  norm       = 0.000100017
  Prefactor  = 3.67824
  Prefactor  = 0.0001
  norm       = 2.73421
  Normalizat = 0.223629
  Prefactor  = 0.75171
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   344.9083     FROM HESSE     STATUS=FAILED        13 CALLS      540 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    161.73        .10173E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     550.27        546.87         .0000       -1.5344    
   3  Prefactor     1.9006        1.0396         .0000       -1.5432    
   4  Prefactor     2.2423        1.0273         .0000       -1.5408    
   5  norm          14.797        .99607       -.15443E-05   -1.4938    
   6  Prefactor     41.409        1.0220       -.41880E-06   -1.4420    
   7  Prefactor     5.1004        1.0049         .0000       -1.5256    
   8  norm          4.6133        .76104       -.15661E-04   -1.5278    
   9  Prefactor     .10000E-03    .42667        .77507E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     117.35        .92167       -.18030E-05   -1.3537    
  11  Prefactor     576.43        7.2057        .47031E-04   -1.0859    
  12  Prefactor     8.3904        1.0018         .0000       -1.5129    
  13  Prefactor     109.34        1.1881        .87916E-06   -1.3613    
  14  Prefactor     .10017E-03    .11321        .37793E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.4067        1.0112         .0000       -1.5339    
  16  norm          63.215        .99966       -.32300E-06   -1.4116    
  17  Prefactor     2.0131        1.0347         .0000       -1.5424    
  18  Prefactor     2.8885        1.0158         .0000       -1.5368    
  19  Prefactor     1.7270        1.0496         .0000       -1.5445    
  20  norm          9.0448        1.0015         .0000       -1.5106    
  21  Prefactor     4.1705        1.0074         .0000       -1.5300    
  22  norm          .10000E-03    .24025        .21601E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10002E-03    .32966        .31069E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.6782        1.0095         .0000       -1.5324    
  25  Prefactor     .10000E-03    .20571       -.13166E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.7342        1.0178         .0000       -1.5377    
  27  Normalizat    .22363        .50493        .56662E-04   -1.2773    
  28  Prefactor     .75171        1.0997       -.76312E-05   -1.0153    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.68756e-09
Minuit parameter uncertainties:
  1  0.000435769
  2  1.01183
  3  1.03964
  4  1.02732
  5  0.99607
  6  1.02204
  7  1.00489
  8  0.761041
  9  1.43407e-05
  10  0.921669
  11  7.20571
  12  1.00179
  13  1.18805
  14  0.000274262
  15  1.0112
  16  0.999659
  17  1.03476
  18  1.01583
  19  1.04964
  20  1.00154
  21  1.00737
  22  4.18859e-06
  23  0.000151465
  24  1.00955
  25  4.68606e-06
  26  1.01778
  27  0.515817
  28  1.13439
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 344.908270215

Extracting fit parameters...

4FGL J1806.3+5345
   Spectrum: PowerLaw
376    Prefactor:  2.889e+00  1.016e+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

GAL_V02
   Spectrum: PowerLaw
675    Prefactor:  7.517e-01  1.134e+00  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:  2.236e-01  5.158e-01  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = 0.0

TS (Fixed Index): 0.00
Ra Dec: 271.591 53.764
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.79e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/541232/likelihoodResults_544665601_544924801_4FGL_J1806.3+5345_daily_bin1178.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): 101
logL (Free Index) = 344.908490402
delta logL = -0.000220186683748

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 344.908490402
delta logL = -0.000220186683748

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    2.5268       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   344.9085     FROM MIGRAD    STATUS=CONVERGED     15 CALLS       62 TOTAL
                     EDM=   .00E+00  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       2.5268        1.0094        .23442         .0000    
                               ERR DEF=  .500    
Final values: 
  Index      = 2.52682
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   344.9085     FROM HESSE     STATUS=FAILED         7 CALLS       69 TOTAL
                     EDM=   .00E+00  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       .72017        1.8743        .23442       -.51742    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 0
Minuit parameter uncertainties:
  1  1.01867
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/541232': 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): 101
logL (Free Index) = 344.908490402
delta logL = -0.000220186683748

Extracting fit parameters...

4FGL J1806.3+5345
   Spectrum: PowerLaw
376    Prefactor:  2.889e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13) fixed
377        Index:  2.527e+00  1.019e+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.515e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
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:  2.236e-01  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): 0.00
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/541232/cmap_HighResolution_544665601_544924801_4FGL_J1806.3+5345_daily_bin1178.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.79e+04', job_status='DONE', photon_flux_upper_limit='-1.00e+00', time_completed='2021-09-19 13:31:11.598481', job_id='541232', GAL2='0.75', fit_tolerance='1e-08', EG2='0.22', EG='0.22', time_epoch_completed='1632083471.6', return_code2='101', ts='0.00', comment='SUCCESS', return_code='101', GAL='0.75', dlogl='-2.20e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='1178' AND source_name='4FGL J1806.3+5345' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 19 13:31:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 541232: <4FGL_J1806.3+5345_daily_bin1178> in cluster <slac> Done

Job <4FGL_J1806.3+5345_daily_bin1178> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep 19 13:25:23 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 19 13:25:24 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:25:24 2021
Terminated at Sun Sep 19 13:31:12 2021
Results reported at Sun Sep 19 13:31:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1806.3+5345_daily_bin1178 271.591 53.7642 544665601 544924801 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 :                                   334.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             474.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   347 sec.
    Turnaround time :                            349 sec.

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

