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


Performing analysis on: 4FGL_J1808.2+3500_daily_bin505
RA = 272.066, Dec = 35.0104
tmin = 370224001, tmax = 370483201
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='614108', job_status='RUN', time_executed='2021-09-19 18:05:33.782362', time_epoch_executed='1632099933.78' WHERE source_name='4FGL J1808.2+3500' and cadence='daily' and bin_id='505'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/614108

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/614108/ft1_4FGL_J1808.2+3500_daily_bin505.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/614108/ft2_4FGL_J1808.2+3500_daily_bin505.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/614108/ft1_4FGL_J1808.2+3500_daily_bin505.fits outfile=/scratch/kocevski/614108/ft1_filteredMKT_4FGL_J1808.2+3500_daily_bin505.fits ra=272.066 dec=35.0104 rad=12.0 tmin=370224001.0 tmax=370483201.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 16.18
user 15.70
sys 0.43

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/614108/ft2_4FGL_J1808.2+3500_daily_bin505.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/614108/ft2_4FGL_J1808.2+3500_daily_bin505.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/614108/ft1_filteredMKT_4FGL_J1808.2+3500_daily_bin505.fits evtable="EVENTS" outfile="/scratch/kocevski/614108/ft1_filtered_4FGL_J1808.2+3500_daily_bin505.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/614108/ft1_filtered_4FGL_J1808.2+3500_daily_bin505.fits" evtable="EVENTS" scfile=/scratch/kocevski/614108/ft2_4FGL_J1808.2+3500_daily_bin505.fits sctable="SC_DATA" outfile=/scratch/kocevski/614108/ltcube_370224001_370483201_4FGL_J1808.2+3500_daily_bin505.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/614108/ft2_4FGL_J1808.2+3500_daily_bin505.fits
.....................!
real 10.50
user 10.18
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/614108/ft1_filtered_4FGL_J1808.2+3500_daily_bin505.fits evtable="EVENTS" scfile=/scratch/kocevski/614108/ft2_4FGL_J1808.2+3500_daily_bin505.fits sctable="SC_DATA" expcube=/scratch/kocevski/614108/ltcube_370224001_370483201_4FGL_J1808.2+3500_daily_bin505.fits outfile=/scratch/kocevski/614108/expmap_370224001_370483201_4FGL_J1808.2+3500_daily_bin505.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/614108/ltcube_370224001_370483201_4FGL_J1808.2+3500_daily_bin505.fits
.....................!
real 189.58
user 185.37
sys 3.85

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

Setting source of interest to:
4FGL J1808.2+3500 @ 272.066 35.0104

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/614108/ft1_filtered_4FGL_J1808.2+3500_daily_bin505.fits scfile=/scratch/kocevski/614108/ft2_4FGL_J1808.2+3500_daily_bin505.fits outfile=/scratch/kocevski/614108/cmap_370224001_370483201_4FGL_J1808.2+3500_daily_bin505.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=272.066 yref=35.0104 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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/614108/ft1_filtered_4FGL_J1808.2+3500_daily_bin505.fits scfile=/scratch/kocevski/614108/ft2_4FGL_J1808.2+3500_daily_bin505.fits outfile=/scratch/kocevski/614108/cmap_HighResolution_370224001_370483201_4FGL_J1808.2+3500_daily_bin505.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=272.066 yref=35.0104 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/614108/ft1_filtered_4FGL_J1808.2+3500_daily_bin505.fits evtable="EVENTS" scfile=/scratch/kocevski/614108/ft2_4FGL_J1808.2+3500_daily_bin505.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/614108/Model_4FGL_J1808.2+3500_daily_bin505.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/614108/ft1_filtered_4FGL_J1808.2+3500_daily_bin505.fits.....................!
real 39.88
user 38.60
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/614108/ft1_filtered_4FGL_J1808.2+3500_daily_bin505.fits', '/scratch/kocevski/614108/ft2_4FGL_J1808.2+3500_daily_bin505.fits', expMap='/scratch/kocevski/614108/expmap_370224001_370483201_4FGL_J1808.2+3500_daily_bin505.fits', expCube='/scratch/kocevski/614108/ltcube_370224001_370483201_4FGL_J1808.2+3500_daily_bin505.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/614108/Model_4FGL_J1808.2+3500_daily_bin505.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1808.2+3500'

4FGL J1808.2+3500
   Spectrum: PowerLaw
358    Prefactor:  1.117e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
359        Index:  2.260e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
360        Scale:  1.888e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/614108/ft1_filtered_4FGL_J1808.2+3500_daily_bin505.fits
Spacecraft file(s): /scratch/kocevski/614108/ft2_4FGL_J1808.2+3500_daily_bin505.fits
Exposure map: /scratch/kocevski/614108/expmap_370224001_370483201_4FGL_J1808.2+3500_daily_bin505.fits
Exposure cube: /scratch/kocevski/614108/ltcube_370224001_370483201_4FGL_J1808.2+3500_daily_bin505.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/614108/Model_4FGL_J1808.2+3500_daily_bin505.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) = 3247.1112349

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.544       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .12482E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    104.36       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .25299E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10656E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    32.677       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10457E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .11432E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.8355       1.0000         .10000E-03   10000.    
    15 'Prefactor '    26.118       1.0000         .10000E-03   10000.    
    16 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10261E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.9286       1.0000         .10000E-03   10000.    
    19 'norm      '    .11628E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    59.243       1.0000         .10000E-03   10000.    
    21 'norm      '    .10537E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10190E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    11.614       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11098E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.7606       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1926       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0252       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3246.969     FROM MIGRAD    STATUS=CONVERGED    663 CALLS     3476 TOTAL
                     EDM=   .27E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.557        13.577       -.13261E-06    .13744E-04
   2  Prefactor     .10000E-03    35.602       -.14678E-06** at limit **
   3  norm          .10000E-03    5.4495       -.12273E-05** at limit **
   4  Prefactor     104.22        170.18       -.13708E-05    .16008E-05
   5  Prefactor     .10000E-03    134.25        .12004E-06** at limit **
   6  Prefactor     .10000E-03    16.895       -.13310E-06** at limit **
   7  Prefactor     .10000E-03    56.616       -.12727E-06** at limit **
   8  Prefactor     32.668        25.477       -.29308E-06    .77339E-05
   9  Prefactor     .10000E-03    31.429       -.26782E-06** at limit **
  10  Prefactor     .10000E-03    60.142       -.27187E-06** at limit **
  11  Prefactor     .10000E-03    11.461       -.12850E-06** at limit **
  12  norm          .10000E-03    1.8085       -.16090E-06** at limit **
  13  norm          .10000E-03    110.30       -.12741E-07** at limit **
  14  norm          5.8399        11.582        .52365E-07    .28515E-05
  15  Prefactor     26.134        18.309       -.29009E-06    .33395E-04
  16  norm          .10000E-03    19.270       -.20976E-05** at limit **
  17  Prefactor     .10000E-03    10.084       -.43613E-05** at limit **
  18  Prefactor     5.7518        246.23       -.39166E-05    .15500E-05
  19  norm          .10000E-03    42.635       -.15003E-06** at limit **
  20  Prefactor     59.237        34.416       -.52101E-06    .75708E-05
  21  norm          .10000E-03    64.267        .10149E-06** at limit **
  22  norm          .10000E-03    9.4660        .55819E-06** at limit **
  23  norm          11.613        6.7854       -.30338E-06   -.61909E-04
  24  Prefactor     .10000E-03    21.054       -.10603E-06** at limit **
  25  Prefactor     3.7240        986.35        .45562E-05   -.66071E-06
  26  Prefactor     .10000E-03    14.119        .16560E-06** at limit **
  27  Normalizat    1.1913        .43730        .27621E-05   -.10767E-04
  28  Prefactor     1.0259        .18637       -.14889E-05    .86073E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.5569
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 104.219
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.6678
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.83991
  Prefactor  = 26.1337
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.75181
  norm       = 0.0001
  Prefactor  = 59.2367
  norm       = 0.0001
  norm       = 0.0001
  norm       = 11.6129
  Prefactor  = 0.0001
  Prefactor  = 3.72399
  Prefactor  = 0.0001
  Normalizat = 1.19127
  Prefactor  = 1.02592
 **********
 **   18 **HESSE 
 **********

 FCN=   3246.969     FROM HESSE     STATUS=OK           511 CALLS     3987 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.557        13.571        .11791E-03   -1.5028    
   2  Prefactor     .10000E-03    35.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.4617        .12983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     104.22        171.98        .19681E-03   -1.3663    
   5  Prefactor     .10000E-03    134.27        .21460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    16.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    56.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     32.668        25.537        .70098E-04   -1.4564    
   9  Prefactor     .10000E-03    31.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    60.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.8098        .74829E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    110.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.8399        11.566        .16625E-03   -1.5225    
  15  Prefactor     26.134        18.325        .78386E-04   -1.4685    
  16  norm          .10000E-03    19.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.106        .17656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.7518        251.64        .16492E-03   -1.5228    
  19  norm          .10000E-03    42.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     59.237        34.407        .52125E-04   -1.4167    
  21  norm          .10000E-03    64.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    9.5695        .17051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          11.613        6.7345        .10168E-03   -1.5026    
  24  Prefactor     .10000E-03    21.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.7240        991.24        .20819E-03   -1.5322    
  26  Prefactor     .10000E-03    14.124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.1913        .50101        .40694E-03   -.86873    
  28  Prefactor     1.0259        .21308        .19553E-03   -.91870    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.02405e-11
Minuit parameter uncertainties:
  1  13.5742
  2  1.43149e-06
  3  3.26054e-06
  4  172.817
  5  2.22584e-05
  6  9.78433e-08
  7  1.27242e-05
  8  25.5459
  9  2.2599e-05
  10  3.3708e-06
  11  3.96372e-06
  12  8.06399e-07
  13  9.70215e-05
  14  11.5708
  15  18.3291
  16  1.12697e-05
  17  2.54716e-05
  18  76.4333
  19  1.68189e-05
  20  34.4182
  21  2.59395e-05
  22  4.15217e-05
  23  6.73498
  24  1.04275e-05
  25  123.639
  26  8.23789e-06
  27  0.503042
  28  0.213256
Done.

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

Extracting fit parameters...

4FGL J1808.2+3500
   Spectrum: PowerLaw
358    Prefactor:  2.613e+01  1.833e+01  1.000e-04  1.000e+04 ( 1.000e-13)
359        Index:  2.260e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
360        Scale:  1.888e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  1.026e+00  2.133e-01  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  1.191e+00  5.030e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.49
Ra Dec: 272.066 35.010
Photon Index (Fixed Index): 2.26 +/- 0.00
Photon Flux (Fixed Index): 1.59e-07 +/- 1.11e-07
Energy Flux (Fixed Index): 6.41e-05 +/- 4.50e-05

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) = 3246.93536596
delta logL = 0.033515841681

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3246.93101217
delta logL = 0.0378696329308

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.501       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0776       1.0000          .0000       10.000    
     3 'Normalizat'    1.2164       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0203       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+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=   3246.931     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      295 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.500        29.246        .71390E-04    .34760E-03
   2  Index         2.0775        .67764        .57010E-02    .98055E-04
   3  Normalizat    1.2168        .46285        .40326E-03   -.54552E-04
   4  Prefactor     1.0201        .20514        .19604E-03   -.14422E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.4995
  Index      = 2.07747
  Normalizat = 1.21682
  Prefactor  = 1.02009
 **********
 **   18 **HESSE 
 **********

 FCN=   3246.931     FROM HESSE     STATUS=OK            25 CALLS      320 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.500        28.106        .14278E-04   -1.4585    
   2  Index         2.0775        .65018        .22804E-03   -.62427    
   3  Normalizat    1.2168        .46225        .16130E-04   -.86084    
   4  Prefactor     1.0201        .20515        .39208E-04   -.92063    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.65855e-10
Minuit parameter uncertainties:
  1  28.1174
  2  0.653001
  3  0.463817
  4  0.205306
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/614108': 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) = 3246.93101175
delta logL = 0.037870060617

Extracting fit parameters...

4FGL J1808.2+3500
   Spectrum: PowerLaw
358    Prefactor:  3.150e+01  2.812e+01  1.000e-04  1.000e+04 ( 1.000e-13)
359        Index:  2.077e+00  6.530e-01  0.000e+00  1.000e+01 (-1.000e+00)
360        Scale:  1.888e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  1.020e+00  2.053e-01  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  1.217e+00  4.638e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.54
Ra Dec: 272.066 35.010
Photon Index (Free Index): 2.08 +/- 0.65
Photon Flux (Free Index): 1.31e-07 +/- 1.39e-07
Energy Flux (Free Index): 7.54e-05 +/- 7.39e-05

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/614108/cmap_HighResolution_370224001_370483201_4FGL_J1808.2+3500_daily_bin505.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.59e-07', energy_flux2='7.54e-05', photon_flux_error='1.11e-07', dlogl='3.79e-02', energy_flux='6.41e-05', photon_flux2='1.31e-07', job_status='DONE', time_completed='2021-09-19 18:15:36.314073', photon_index_error2='0.65', photon_index2='2.08', ts='6.49', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='7.39e-05', EG='1.19', time_epoch_completed='1632100536.31', return_code='0', job_id='614108', GAL2='1.02', EG2='1.22', return_code2='0', energy_flux_error='4.50e-05', photon_flux_error2='1.39e-07', ts2='6.54', photon_index='2.26' WHERE bin_id='505' AND source_name='4FGL J1808.2+3500' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 19 18:15:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 614108: <4FGL_J1808.2+3500_daily_bin505> in cluster <slac> Done

Job <4FGL_J1808.2+3500_daily_bin505> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Sep 19 18:05:21 2021
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 19 18:05:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 19 18:05:23 2021
Terminated at Sun Sep 19 18:15:37 2021
Results reported at Sun Sep 19 18:15:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1808.2+3500_daily_bin505 272.066 35.0104 370224001 370483201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1808.2+3500 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   597.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             279.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   613 sec.
    Turnaround time :                            616 sec.

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

