aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 44 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J1808.2+3500_daily_bin1768
RA = 272.066, Dec = 35.0104
tmin = 697593601, tmax = 697852801
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='277966', job_status='RUN', time_executed='2023-02-12 01:22:26.761058', time_epoch_executed='1676193746.76' WHERE source_name='4FGL J1808.2+3500' and cadence='daily' and bin_id='1768'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/277966

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/277966/ft1_4FGL_J1808.2+3500_daily_bin1768.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/277966/ft2_4FGL_J1808.2+3500_daily_bin1768.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/277966/ft1_4FGL_J1808.2+3500_daily_bin1768.fits outfile=/scratch/kocevski/277966/ft1_filteredMKT_4FGL_J1808.2+3500_daily_bin1768.fits ra=272.066 dec=35.0104 rad=12.0 tmin=697593601.0 tmax=697852801.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 3.68
user 3.45
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/277966/ft2_4FGL_J1808.2+3500_daily_bin1768.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/277966/ft1_filteredMKT_4FGL_J1808.2+3500_daily_bin1768.fits evtable="EVENTS" outfile="/scratch/kocevski/277966/ft1_filtered_4FGL_J1808.2+3500_daily_bin1768.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.52
user 0.34
sys 0.17

Number of photons that the gtmktime cut: 863

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/277966/ft1_filtered_4FGL_J1808.2+3500_daily_bin1768.fits" evtable="EVENTS" scfile=/scratch/kocevski/277966/ft2_4FGL_J1808.2+3500_daily_bin1768.fits sctable="SC_DATA" outfile=/scratch/kocevski/277966/ltcube_697593601_697852801_4FGL_J1808.2+3500_daily_bin1768.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/277966/ft2_4FGL_J1808.2+3500_daily_bin1768.fits
.....................!
real 14.59
user 14.18
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/277966/ft1_filtered_4FGL_J1808.2+3500_daily_bin1768.fits evtable="EVENTS" scfile=/scratch/kocevski/277966/ft2_4FGL_J1808.2+3500_daily_bin1768.fits sctable="SC_DATA" expcube=/scratch/kocevski/277966/ltcube_697593601_697852801_4FGL_J1808.2+3500_daily_bin1768.fits outfile=/scratch/kocevski/277966/expmap_697593601_697852801_4FGL_J1808.2+3500_daily_bin1768.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/277966/ltcube_697593601_697852801_4FGL_J1808.2+3500_daily_bin1768.fits
.....................!
real 192.41
user 186.23
sys 5.80

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/277966/ft1_filtered_4FGL_J1808.2+3500_daily_bin1768.fits scfile=/scratch/kocevski/277966/ft2_4FGL_J1808.2+3500_daily_bin1768.fits outfile=/scratch/kocevski/277966/cmap_697593601_697852801_4FGL_J1808.2+3500_daily_bin1768.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.55
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/277966/ft1_filtered_4FGL_J1808.2+3500_daily_bin1768.fits scfile=/scratch/kocevski/277966/ft2_4FGL_J1808.2+3500_daily_bin1768.fits outfile=/scratch/kocevski/277966/cmap_HighResolution_697593601_697852801_4FGL_J1808.2+3500_daily_bin1768.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.57
user 0.41
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/277966/ft1_filtered_4FGL_J1808.2+3500_daily_bin1768.fits', '/scratch/kocevski/277966/ft2_4FGL_J1808.2+3500_daily_bin1768.fits', expMap='/scratch/kocevski/277966/expmap_697593601_697852801_4FGL_J1808.2+3500_daily_bin1768.fits', expCube='/scratch/kocevski/277966/ltcube_697593601_697852801_4FGL_J1808.2+3500_daily_bin1768.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/277966/Model_4FGL_J1808.2+3500_daily_bin1768.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  0.000e+00  1.000e+06 ( 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/277966/ft1_filtered_4FGL_J1808.2+3500_daily_bin1768.fits
Spacecraft file(s): /scratch/kocevski/277966/ft2_4FGL_J1808.2+3500_daily_bin1768.fits
Exposure map: /scratch/kocevski/277966/expmap_697593601_697852801_4FGL_J1808.2+3500_daily_bin1768.fits
Exposure cube: /scratch/kocevski/277966/ltcube_697593601_697852801_4FGL_J1808.2+3500_daily_bin1768.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/277966/Model_4FGL_J1808.2+3500_daily_bin1768.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) = 8908.82603609

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.847       1.0000          .0000       .10000E+07
     2 'norm      '    .19800E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    166.09       1.0000          .0000       .10000E+07
     4 'Prefactor '    .15342E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    25.849       1.0000          .0000       .10000E+07
     6 'Prefactor '    6.6301       1.0000          .0000       .10000E+07
     7 'Prefactor '    .17172E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    30.564       1.0000          .0000       .10000E+07
     9 'Prefactor '    .35459       1.0000          .0000       .10000E+07
    10 'norm      '    .43299E-08   1.0000          .0000       .10000E+07
    11 'norm      '    .59319E-03   1.0000          .0000       .10000E+07
    12 'norm      '    13.381       1.0000          .0000       .10000E+07
    13 'Prefactor '    9.4593       1.0000          .0000       .10000E+07
    14 'norm      '    7.9059       1.0000          .0000       .10000E+07
    15 'Prefactor '    .52164E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    39.848       1.0000          .0000       .10000E+07
    17 'Prefactor '    13.665       1.0000          .0000       .10000E+07
    18 'norm      '    .70349E-02   1.0000          .0000       .10000E+07
    19 'norm      '    2.8630       1.0000          .0000       .10000E+07
    20 'norm      '    3.1345       1.0000          .0000       .10000E+07
    21 'Prefactor '    .26754E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    .17813E-02   1.0000          .0000       .10000E+07
    23 'Normalizat'    .91813       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .92597       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8908.626     FROM MIGRAD    STATUS=CONVERGED    179 CALLS     2039 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.683        8.5108       -.16841E-07    .12729E-02
   2  norm           .0000        3.1855        .27108E-07** at limit **
   3  Prefactor     177.27        84.895        .19279E-06   -.10843E-02
   4  Prefactor     .37886E-06    27.642       -.20799E-06** at limit **
   5  Prefactor     25.914        1.7186        .27226E-07    .77907E-01
   6  Prefactor     6.6140        8.8741        .28608E-07   -.76495E-02
   7  Prefactor     .92926E-06    34.560        .20776E-06** at limit **
   8  Prefactor     30.289        4.7236        .17552E-07   -.26364    
   9  Prefactor     .46707        36.057       -.18021E-05    .23599E-02
  10  norm           .0000        .97150        .95804E-08** at limit **
  11  norm          .10669E-06    8.5026       -.46757E-07** at limit **
  12  norm          13.437        8.5383        .21937E-07    .53874E-02
  13  Prefactor     9.4559        5.1612       -.20668E-07   -.52921E-03
  14  norm          7.9134        7.8793        .29951E-07    .27495E-02
  15  Prefactor      .0000        .94781       -.54669E-07** at limit **
  16  Prefactor     39.917        1.3929        .77725E-08    .19693E-01
  17  Prefactor     13.693        8.0762        .50340E-07    .10718E-01
  18  norm          .47740E-08    8.6526       -.51309E-07** at limit **
  19  norm          2.8594        3.8924       -.36508E-07   -.10693E-03
  20  norm          3.1428        2.5146        .18165E-07    .29247E-03
  21  Prefactor     .83822E-08    14.659       -.12908E-06** at limit **
  22  Prefactor      .0000        10.182       -.17608E-06** at limit **
  23  Normalizat    .91061        .23451        .44457E-06   -.15835E-04
  24  Prefactor     .92763        .10404       -.68202E-06   -.79560E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.6827
  norm       = 0
  Prefactor  = 177.272
  Prefactor  = 3.78864e-07
  Prefactor  = 25.9135
  Prefactor  = 6.61399
  Prefactor  = 9.29257e-07
  Prefactor  = 30.2892
  Prefactor  = 0.467068
  norm       = 0
  norm       = 1.06692e-07
  norm       = 13.437
  Prefactor  = 9.45595
  norm       = 7.91339
  Prefactor  = 0
  Prefactor  = 39.9169
  Prefactor  = 13.6926
  norm       = 4.77396e-09
  norm       = 2.85937
  norm       = 3.14278
  Prefactor  = 8.38218e-09
  Prefactor  = 0
  Normalizat = 0.910612
  Prefactor  = 0.927634
 **********
 **   18 **HESSE 
 **********

 FCN=   8908.626     FROM HESSE     STATUS=OK           449 CALLS     2488 TOTAL
                     EDM=   .53E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.683        8.5144        .27921E-03   -1.5637    
   2  norm           .0000        3.1705        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     177.27        84.369        .77601E-04   -1.5442    
   4  Prefactor     .37886E-06    27.855        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     25.914        16.324        .19673E-03   -1.5606    
   6  Prefactor     6.6140        8.8923        .38948E-03   -1.5657    
   7  Prefactor     .92926E-06    34.779        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     30.289        47.282        .18091E-03   -1.5598    
   9  Prefactor     .46707        4.6767        .94949E-02   -1.5694    
  10  norm           .0000        .96573        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10669E-06    17.070        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          13.437        8.5626        .27357E-03   -1.5635    
  13  Prefactor     9.4559        5.1769        .32560E-03   -1.5646    
  14  norm          7.9134        8.0380        .35637E-03   -1.5652    
  15  Prefactor      .0000        .94592        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     39.917        19.413        .15843E-03   -1.5582    
  17  Prefactor     13.693        8.0884        .27070E-03   -1.5634    
  18  norm          .47740E-08    17.141        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.8594        3.9294        .60053E-03   -1.5674    
  20  norm          3.1428        2.5325        .57235E-03   -1.5673    
  21  Prefactor     .83822E-08    14.567        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor      .0000        10.180        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .91061        .20698        .84229E-01   -.96088    
  24  Prefactor     .92763        .89442E-01    .45335E-01   -.95182    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.27243e-06
Minuit parameter uncertainties:
  1  8.51438
  2  4.58421e-06
  3  84.3691
  4  0.00649732
  5  16.3245
  6  8.89232
  7  0.0113701
  8  47.2829
  9  2.95589
  10  4.71553e-07
  11  0.00269884
  12  8.5626
  13  5.17692
  14  8.03799
  15  5.86634e-07
  16  19.4129
  17  8.08843
  18  0.000573303
  19  3.9294
  20  2.5325
  21  0.00069839
  22  2.47612e-06
  23  0.20716
  24  0.0894558
Done.

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

Extracting fit parameters...

4FGL J1808.2+3500
   Spectrum: PowerLaw
358    Prefactor:  9.456e+00  5.177e+00  0.000e+00  1.000e+06 ( 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:  9.276e-01  8.946e-02  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:  9.106e-01  2.072e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.35
Ra Dec: 272.066 35.010
Photon Index (Fixed Index): 2.26 +/- 0.00
Photon Flux (Fixed Index): 5.75e-08 +/- 3.14e-08
Energy Flux (Fixed Index): 2.32e-05 +/- 1.27e-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) = 8907.50571816
delta logL = 1.12008404457

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8907.50471216
delta logL = 1.12109004887

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.722       1.0000          .0000       .10000E+07
     2 'Index     '    1.6987       1.0000          .0000       10.000    
     3 'Normalizat'    .93560       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92185       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.

 FCN=   8907.505     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      272 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.729        244.62        .24465E-03   -.23904E-03
   2  Index         1.6990        5.8146        .19057        .54939E-04
   3  Normalizat    .93558        .15317        .83208E-01    .27924E-05
   4  Prefactor     .92185        .47237E-01    .45283E-01    .97620E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.7286
  Index      = 1.69901
  Normalizat = 0.935582
  Prefactor  = 0.921846
 **********
 **   18 **HESSE 
 **********

 FCN=   8907.505     FROM HESSE     STATUS=OK            33 CALLS      305 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.729        9.6803        .97861E-05   -1.5626    
   2  Index         1.6990        .35450        .68528E-02   -.72108    
   3  Normalizat    .93558        .22262        .36837E-03   -.95221    
   4  Prefactor     .92185        .10053        .16640E-03   -.95382    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.62911e-10
Minuit parameter uncertainties:
  1  9.68028
  2  0.355028
  3  0.222841
  4  0.100546
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/277966': 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) = 8907.50471143
delta logL = 1.12109077076

Extracting fit parameters...

4FGL J1808.2+3500
   Spectrum: PowerLaw
358    Prefactor:  1.673e+01  9.680e+00  0.000e+00  1.000e+06 ( 1.000e-13)
359        Index:  1.699e+00  3.550e-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:  9.218e-01  1.005e-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:  9.356e-01  2.228e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.58
Ra Dec: 272.066 35.010
Photon Index (Free Index): 1.70 +/- 0.36
Photon Flux (Free Index): 3.49e-08 +/- 2.48e-08
Energy Flux (Free Index): 5.72e-05 +/- 5.18e-05

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/277966/cmap_HighResolution_697593601_697852801_4FGL_J1808.2+3500_daily_bin1768.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.75e-08', energy_flux2='5.72e-05', photon_flux_error='3.14e-08', dlogl='1.12e+00', energy_flux='2.32e-05', photon_flux2='3.49e-08', job_status='DONE', time_completed='2023-02-12 01:35:18.228768', photon_index_error2='0.36', photon_index2='1.70', ts='10.35', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='5.18e-05', EG='0.91', time_epoch_completed='1676194518.23', return_code='0', job_id='277966', GAL2='0.92', EG2='0.94', return_code2='0', energy_flux_error='1.27e-05', photon_flux_error2='2.48e-08', ts2='12.58', photon_index='2.26' WHERE bin_id='1768' AND source_name='4FGL J1808.2+3500' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Feb 12 01:35:18 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 277966: <4FGL_J1808.2+3500_daily_bin1768> in cluster <slac> Done

Job <4FGL_J1808.2+3500_daily_bin1768> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Feb 12 01:20:16 2023
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Feb 12 01:21:30 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Feb 12 01:21:30 2023
Terminated at Sun Feb 12 01:35:19 2023
Results reported at Sun Feb 12 01:35:19 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1808.2+3500_daily_bin1768 272.066 35.0104 697593601 697852801 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 :                                   773.47 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             326.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            903 sec.

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

