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


Performing analysis on: 4FGL_J1808.2+3500_monthly_bin169
RA = 272.066, Dec = 35.0104
tmin = 675043201, tmax = 677635201
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='182863', job_status='RUN', time_executed='2022-06-23 02:43:39.131690', time_epoch_executed='1655977419.13' WHERE source_name='4FGL J1808.2+3500' and cadence='monthly' and bin_id='169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/182863

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/182863/ft1_4FGL_J1808.2+3500_monthly_bin169.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/182863/ft2_4FGL_J1808.2+3500_monthly_bin169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/182863/ft1_4FGL_J1808.2+3500_monthly_bin169.fits outfile=/scratch/kocevski/182863/ft1_filteredMKT_4FGL_J1808.2+3500_monthly_bin169.fits ra=272.066 dec=35.0104 rad=12.0 tmin=675043201.0 tmax=677635201.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 27.57
user 26.77
sys 0.69

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/182863/ft2_4FGL_J1808.2+3500_monthly_bin169.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/182863/ft1_filteredMKT_4FGL_J1808.2+3500_monthly_bin169.fits evtable="EVENTS" outfile="/scratch/kocevski/182863/ft1_filtered_4FGL_J1808.2+3500_monthly_bin169.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.87
user 0.68
sys 0.16

Number of photons that the gtmktime cut: 11356

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/182863/ft1_filtered_4FGL_J1808.2+3500_monthly_bin169.fits" evtable="EVENTS" scfile=/scratch/kocevski/182863/ft2_4FGL_J1808.2+3500_monthly_bin169.fits sctable="SC_DATA" outfile=/scratch/kocevski/182863/ltcube_675043201_677635201_4FGL_J1808.2+3500_monthly_bin169.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/182863/ft2_4FGL_J1808.2+3500_monthly_bin169.fits
.....................!
real 124.38
user 123.62
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/182863/ft1_filtered_4FGL_J1808.2+3500_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/182863/ft2_4FGL_J1808.2+3500_monthly_bin169.fits sctable="SC_DATA" expcube=/scratch/kocevski/182863/ltcube_675043201_677635201_4FGL_J1808.2+3500_monthly_bin169.fits outfile=/scratch/kocevski/182863/expmap_675043201_677635201_4FGL_J1808.2+3500_monthly_bin169.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/182863/ltcube_675043201_677635201_4FGL_J1808.2+3500_monthly_bin169.fits
.....................!
real 192.35
user 186.75
sys 4.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/182863/ft1_filtered_4FGL_J1808.2+3500_monthly_bin169.fits scfile=/scratch/kocevski/182863/ft2_4FGL_J1808.2+3500_monthly_bin169.fits outfile=/scratch/kocevski/182863/cmap_675043201_677635201_4FGL_J1808.2+3500_monthly_bin169.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.80
user 0.62
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/182863/ft1_filtered_4FGL_J1808.2+3500_monthly_bin169.fits scfile=/scratch/kocevski/182863/ft2_4FGL_J1808.2+3500_monthly_bin169.fits outfile=/scratch/kocevski/182863/cmap_HighResolution_675043201_677635201_4FGL_J1808.2+3500_monthly_bin169.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.80
user 0.62
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/182863/ft1_filtered_4FGL_J1808.2+3500_monthly_bin169.fits', '/scratch/kocevski/182863/ft2_4FGL_J1808.2+3500_monthly_bin169.fits', expMap='/scratch/kocevski/182863/expmap_675043201_677635201_4FGL_J1808.2+3500_monthly_bin169.fits', expCube='/scratch/kocevski/182863/ltcube_675043201_677635201_4FGL_J1808.2+3500_monthly_bin169.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/182863/Model_4FGL_J1808.2+3500_monthly_bin169.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/182863/ft1_filtered_4FGL_J1808.2+3500_monthly_bin169.fits
Spacecraft file(s): /scratch/kocevski/182863/ft2_4FGL_J1808.2+3500_monthly_bin169.fits
Exposure map: /scratch/kocevski/182863/expmap_675043201_677635201_4FGL_J1808.2+3500_monthly_bin169.fits
Exposure cube: /scratch/kocevski/182863/ltcube_675043201_677635201_4FGL_J1808.2+3500_monthly_bin169.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/182863/Model_4FGL_J1808.2+3500_monthly_bin169.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) = 121490.829304

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3497       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.1129       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.4363       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .72645       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .30064       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.5991       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.2712       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.4373       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12152E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.4525       1.0000         .10000E-03   10000.    
    13 'norm      '    .10106E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .86271       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.0109       1.0000         .10000E-03   10000.    
    16 'norm      '    3.3147       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.7821       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11368E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    7.5447       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.6347       1.0000         .10000E-03   10000.    
    21 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .13427E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .80910       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.7917       1.0000         .10000E-03   10000.    
    25 'Prefactor '    11.067       1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.7124       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.3283       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .91981       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   121490.8     FROM MIGRAD    STATUS=CONVERGED    727 CALLS     3712 TOTAL
                     EDM=   .41E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3473        1.4915         .0000        .52622E-02
   2  Prefactor     .10000E-03    2.1934         .0000    ** at limit **
   3  norm          3.1154        1.1684         .0000        .47833E-02
   4  Prefactor     4.3327        13.068         .0000        .99673E-03
   5  Prefactor     .64194        4.0687         .0000        .20002E-02
   6  Prefactor     .30320        .80569         .0000        .68892E-02
   7  Prefactor     9.6591        9.7854         .0000        .21774E-02
   8  Prefactor     2.2692        1.4312         .0000        .17873E-02
   9  Prefactor     6.4221        8.3812         .0000       -.65967E-03
  10  Prefactor     .10000E-03    5.2615         .0000    ** at limit **
  11  Prefactor     .10000E-03    .89138         .0000    ** at limit **
  12  norm          1.4525        .40426         .0000        .56774E-03
  13  norm          .10000E-03    4.5302         .0000    ** at limit **
  14  norm          .86573        1.5241         .0000        .54898    
  15  Prefactor     1.0111        .81694         .0000        .53260E-02
  16  norm          3.3150        1.5704         .0000        .12749E-02
  17  Prefactor     2.7816        1.1932         .0000        .61316E-02
  18  Prefactor     .10000E-03    1.1395         .0000    ** at limit **
  19  norm          7.5511        5.5679         .0000        .11184E-02
  20  Prefactor     5.6368        2.0908         .0000        .23019E-02
  21  norm          .10000E-03    2.5898         .0000    ** at limit **
  22  norm          .10003E-03    .11597         .0000    ** at limit **
  23  norm          .80911        .49747         .0000        .19423E-01
  24  Prefactor     2.7937        2.3999         .0000        .21946E-02
  25  Prefactor     11.089        11.843         .0000        .15420E-02
  26  Prefactor     3.7066        2.6958         .0000        .12759E-01
  27  Normalizat    1.3284        .57381E-01     .0000        .49235E-03
  28  Prefactor     .91979        .25153E-01     .0000        .66882E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.34734
  Prefactor  = 0.0001
  norm       = 3.11536
  Prefactor  = 4.33271
  Prefactor  = 0.641938
  Prefactor  = 0.3032
  Prefactor  = 9.65912
  Prefactor  = 2.26923
  Prefactor  = 6.4221
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.45255
  norm       = 0.0001
  norm       = 0.865732
  Prefactor  = 1.01114
  norm       = 3.315
  Prefactor  = 2.78163
  Prefactor  = 0.0001
  norm       = 7.55106
  Prefactor  = 5.63683
  norm       = 0.0001
  norm       = 0.000100025
  norm       = 0.809112
  Prefactor  = 2.79368
  Prefactor  = 11.0887
  Prefactor  = 3.70657
  Normalizat = 1.3284
  Prefactor  = 0.919791
 **********
 **   18 **HESSE 
 **********

 FCN=   121490.8     FROM HESSE     STATUS=OK           553 CALLS     4265 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3473        1.4851        .26742E-03   -1.5402    
   2  Prefactor     .10000E-03    2.2000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.1154        1.1576        .21200E-03   -1.5355    
   4  Prefactor     4.3327        12.985        .19119E-03   -1.5292    
   5  Prefactor     .64194        3.9803        .24264       -1.5548    
   6  Prefactor     .30320        3.1261        .48506E-02   -1.5598    
   7  Prefactor     9.6591        9.7758        .12934E-03   -1.5086    
   8  Prefactor     2.2692        1.4299        .27250E-03   -1.5407    
   9  Prefactor     6.4221        8.3589        .15819E-03   -1.5201    
  10  Prefactor     .10000E-03    5.2674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .91687        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.4525        .40378        .11343E-03   -1.5467    
  13  norm          .10000E-03    4.5489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .86573        1.5301        .25343E-02   -1.5522    
  15  Prefactor     1.0111        .81103        .27389E-03   -1.5507    
  16  norm          3.3150        1.5595        .22235E-03   -1.5344    
  17  Prefactor     2.7816        1.1667        .23474E-03   -1.5374    
  18  Prefactor     .10000E-03    9.3213        .68939E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          7.5511        5.5701        .14600E-03   -1.5158    
  20  Prefactor     5.6368        2.0811        .16923E-03   -1.5233    
  21  norm          .10000E-03    2.6065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10003E-03    .19035        .37598E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .80911        .48019        .15685E-03   -1.5528    
  24  Prefactor     2.7937        2.3999        .24351E-03   -1.5374    
  25  Prefactor     11.089        11.706        .12043E-03   -1.5042    
  26  Prefactor     3.7066        2.6967        .10479E-02   -1.5323    
  27  Normalizat    1.3284        .67383E-01    .33112E-03   -.82722    
  28  Prefactor     .91979        .29880E-01    .17458E-03   -.95453    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2777e-06
Minuit parameter uncertainties:
  1  1.48517
  2  9.17248e-06
  3  1.15761
  4  12.9936
  5  3.19701
  6  1.94695
  7  9.77742
  8  1.42988
  9  8.36041
  10  8.09657e-06
  11  4.27057e-07
  12  0.403776
  13  3.6691e-06
  14  1.53022
  15  0.811039
  16  1.55947
  17  1.1667
  18  0.000117132
  19  5.57047
  20  2.08111
  21  4.57992e-06
  22  0.000138665
  23  0.480188
  24  2.40001
  25  11.7085
  26  2.69683
  27  0.0673875
  28  0.0298805
Done.

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

Extracting fit parameters...

4FGL J1808.2+3500
   Spectrum: PowerLaw
358    Prefactor:  1.011e+00  8.110e-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:  9.198e-01  2.988e-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:  1.328e+00  6.739e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.85
Ra Dec: 272.066 35.010
Photon Index (Fixed Index): 2.26 +/- 0.00
Photon Flux (Fixed Index): 6.14e-09 +/- 4.93e-09
Energy Flux (Fixed Index): 2.48e-06 +/- 1.99e-06

TS (Fixed Index): 3.85
Ra Dec: 272.066 35.010
Photon Flux Upper Limit: 1.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/182863/likelihoodResults_675043201_677635201_4FGL_J1808.2+3500_monthly_bin169.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 121490.632181
delta logL = 0.157797979453

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 121490.631182
delta logL = 0.158797635551

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0534       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8928       1.0000          .0000       10.000    
     3 'Normalizat'    1.3314       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91936       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=   121490.6     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      216 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0532        3.2968        .12022E-01    .67795E-03
   2  Index         1.8928        .36153        .50000       -.16864E-07
   3  Normalizat    1.3314        .55010E-02    .74750E-01    .99571E-04
   4  Prefactor     .91936        .24578E-02    .45251E-01   -.16646E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.05317
  Index      = 1.89276
  Normalizat = 1.3314
  Prefactor  = 0.919363
 **********
 **   18 **HESSE 
 **********

 FCN=   121490.6     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0532        .93870        .30003E-03   -1.5503    
   2  Index         1.8928        .67867        .86292E-02   -.67059    
   3  Normalizat    1.3314        .63717E-01    .33080E-03   -.82634    
   4  Prefactor     .91936        .28685E-01    .17462E-03   -.95468    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28633e-12
Minuit parameter uncertainties:
  1  0.938711
  2  0.682111
  3  0.0637209
  4  0.0286857
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/182863': 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) = 121490.631182
delta logL = 0.158797659402

Extracting fit parameters...

4FGL J1808.2+3500
   Spectrum: PowerLaw
358    Prefactor:  1.053e+00  9.387e-01  1.000e-04  1.000e+04 ( 1.000e-13)
359        Index:  1.893e+00  6.821e-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.194e-01  2.869e-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:  1.331e+00  6.372e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.17
Ra Dec: 272.066 35.010
Photon Index (Free Index): 1.89 +/- 0.68
Photon Flux (Free Index): 3.06e-09 +/- 5.21e-09
Energy Flux (Free Index): 2.80e-06 +/- 2.70e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/182863/cmap_HighResolution_675043201_677635201_4FGL_J1808.2+3500_monthly_bin169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.36e-03', comment='SUCCESS', photon_flux='6.14e-09', energy_flux2='2.80e-06', photon_flux_error='4.93e-09', dlogl='1.59e-01', energy_flux='2.48e-06', photon_flux2='3.06e-09', job_status='DONE', time_completed='2022-06-23 06:04:36.962179', photon_index_error2='0.68', photon_index2='1.89', ts='3.85', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.78e-08', energy_flux_error2='2.70e-06', EG='1.33', time_epoch_completed='1655989476.96', return_code='0', job_id='182863', GAL2='0.92', EG2='1.33', return_code2='0', energy_flux_error='1.99e-06', photon_flux_error2='5.21e-09', ts2='4.17', photon_index='2.26' WHERE bin_id='169' AND source_name='4FGL J1808.2+3500' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Jun 23 06:04:37 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 182863: <4FGL_J1808.2+3500_monthly_bin169> in cluster <slac> Done

Job <4FGL_J1808.2+3500_monthly_bin169> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Jun 23 02:40:28 2022
Job was executed on host(s) <bullet0272>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun 23 02:41:01 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jun 23 02:41:01 2022
Terminated at Thu Jun 23 06:04:37 2022
Results reported at Thu Jun 23 06:04:37 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1808.2+3500_monthly_bin169 272.066 35.0104 675043201 677635201 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 :                                   12002.00 sec.
    Max Memory :                                 859 MB
    Average Memory :                             480.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   12216 sec.
    Turnaround time :                            12249 sec.

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

