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


Performing analysis on: 4FGL_J1801.5+4404_monthly_bin168
RA = 270.377, Dec = 44.0747
tmin = 672451201, tmax = 675043201
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='643332', job_status='RUN', time_executed='2022-05-24 03:44:24.453614', time_epoch_executed='1653389064.45' WHERE source_name='4FGL J1801.5+4404' and cadence='monthly' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/643332

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/643332/ft1_4FGL_J1801.5+4404_monthly_bin168.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/643332/ft2_4FGL_J1801.5+4404_monthly_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/643332/ft1_4FGL_J1801.5+4404_monthly_bin168.fits outfile=/scratch/kocevski/643332/ft1_filteredMKT_4FGL_J1801.5+4404_monthly_bin168.fits ra=270.377 dec=44.0747 rad=12.0 tmin=672451201.0 tmax=675043201.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 28.50
user 27.74
sys 0.69

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/643332/ft2_4FGL_J1801.5+4404_monthly_bin168.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/643332/ft2_4FGL_J1801.5+4404_monthly_bin168.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/643332/ft1_filteredMKT_4FGL_J1801.5+4404_monthly_bin168.fits evtable="EVENTS" outfile="/scratch/kocevski/643332/ft1_filtered_4FGL_J1801.5+4404_monthly_bin168.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.86
user 0.66
sys 0.18

Number of photons that the gtmktime cut: 11430

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/643332/ft1_filtered_4FGL_J1801.5+4404_monthly_bin168.fits" evtable="EVENTS" scfile=/scratch/kocevski/643332/ft2_4FGL_J1801.5+4404_monthly_bin168.fits sctable="SC_DATA" outfile=/scratch/kocevski/643332/ltcube_672451201_675043201_4FGL_J1801.5+4404_monthly_bin168.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/643332/ft2_4FGL_J1801.5+4404_monthly_bin168.fits
.....................!
real 119.95
user 119.39
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/643332/ft1_filtered_4FGL_J1801.5+4404_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/643332/ft2_4FGL_J1801.5+4404_monthly_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/643332/ltcube_672451201_675043201_4FGL_J1801.5+4404_monthly_bin168.fits outfile=/scratch/kocevski/643332/expmap_672451201_675043201_4FGL_J1801.5+4404_monthly_bin168.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/643332/ltcube_672451201_675043201_4FGL_J1801.5+4404_monthly_bin168.fits
.....................!
real 191.56
user 186.95
sys 4.25

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

Setting source of interest to:
4FGL J1801.5+4404 @ 270.377 44.0747

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/643332/ft1_filtered_4FGL_J1801.5+4404_monthly_bin168.fits scfile=/scratch/kocevski/643332/ft2_4FGL_J1801.5+4404_monthly_bin168.fits outfile=/scratch/kocevski/643332/cmap_672451201_675043201_4FGL_J1801.5+4404_monthly_bin168.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=270.377 yref=44.0747 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.61
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/643332/ft1_filtered_4FGL_J1801.5+4404_monthly_bin168.fits scfile=/scratch/kocevski/643332/ft2_4FGL_J1801.5+4404_monthly_bin168.fits outfile=/scratch/kocevski/643332/cmap_HighResolution_672451201_675043201_4FGL_J1801.5+4404_monthly_bin168.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=270.377 yref=44.0747 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.79
user 0.64
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/643332/ft1_filtered_4FGL_J1801.5+4404_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/643332/ft2_4FGL_J1801.5+4404_monthly_bin168.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/643332/Model_4FGL_J1801.5+4404_monthly_bin168.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/643332/ft1_filtered_4FGL_J1801.5+4404_monthly_bin168.fits.....................!
real 867.48
user 864.74
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/643332/ft1_filtered_4FGL_J1801.5+4404_monthly_bin168.fits', '/scratch/kocevski/643332/ft2_4FGL_J1801.5+4404_monthly_bin168.fits', expMap='/scratch/kocevski/643332/expmap_672451201_675043201_4FGL_J1801.5+4404_monthly_bin168.fits', expCube='/scratch/kocevski/643332/ltcube_672451201_675043201_4FGL_J1801.5+4404_monthly_bin168.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/643332/Model_4FGL_J1801.5+4404_monthly_bin168.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1801.5+4404'

4FGL J1801.5+4404
   Spectrum: LogParabola
365         norm:  8.383e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
366        alpha:  2.308e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
367         beta:  6.673e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
368           Eb:  5.859e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/643332/ft1_filtered_4FGL_J1801.5+4404_monthly_bin168.fits
Spacecraft file(s): /scratch/kocevski/643332/ft2_4FGL_J1801.5+4404_monthly_bin168.fits
Exposure map: /scratch/kocevski/643332/expmap_672451201_675043201_4FGL_J1801.5+4404_monthly_bin168.fits
Exposure cube: /scratch/kocevski/643332/ltcube_672451201_675043201_4FGL_J1801.5+4404_monthly_bin168.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/643332/Model_4FGL_J1801.5+4404_monthly_bin168.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) = 121327.636522

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .19402       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13440E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .27133       1.0000         .10000E-03   10000.    
     4 'norm      '    3.1130       1.0000         .10000E-03   10000.    
     5 'norm      '    4.2874       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .85450       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .49764       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.768       1.0000         .10000E-03   10000.    
    10 'norm      '    1.6827       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.501       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.3020       1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.142       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.7712       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.0424       1.0000         .10000E-03   10000.    
    17 'norm      '    1.8648       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .99744       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.3827       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.9668       1.0000         .10000E-03   10000.    
    24 'norm      '    8.9464       1.0000         .10000E-03   10000.    
    25 'norm      '    8.0926       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1471       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .95810       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6860E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   121327.6     FROM MIGRAD    STATUS=CONVERGED    692 CALLS     3089 TOTAL
                     EDM=   .90E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .19405        .15381       -.11951E-07   -.88462E-04
   2  Prefactor     .10000E-03    .27936       -.12067E-07** at limit **
   3  norm          .27136        .15662       -.11702E-07    .14145E-03
   4  norm          3.1129        1.6497        .84449E-07    .11812E-03
   5  norm          4.2875        .48917       -.47829E-09    .27985E-03
   6  Prefactor     .85458        .62338        .13843E-07    .10845E-03
   7  Prefactor     .10000E-03    2.8785       -.15470E-06** at limit **
   8  norm          .49866        .80034        .52827E-06    .14800E-03
   9  Prefactor     16.764        11.536       -.48231E-05   -.12008E-04
  10  norm          1.6829        .99690       -.17806E-07   -.48044E-04
  11  Prefactor     12.501        6.8843        .14762E-07   -.23929E-06
  12  Prefactor     3.3020        1.0791        .70953E-08    .20750E-04
  13  Prefactor     15.142        8.0188       -.17472E-06    .19752E-05
  14  Prefactor     .10000E-03    3.7480        .94946E-07** at limit **
  15  Prefactor     6.7712        2.9223       -.29823E-07    .43218E-04
  16  Prefactor     6.0426        2.0333        .39263E-07   -.98742E-05
  17  norm          1.8648        .59024       -.43593E-08    .61523E-04
  18  norm          .10000E-03    4.2711       -.86428E-06** at limit **
  19  Prefactor     .10000E-03    1.2934        .50696E-07** at limit **
  20  norm          .10000E-03    .22781        .18210E-07** at limit **
  21  Prefactor     .99807        .16017        .84025E-10   -.36627E-03
  22  Prefactor     2.3827        1.0521       -.19808E-06    .36287E-04
  23  Prefactor     1.9667        2.5930       -.78994E-07   -.61388E-05
  24  norm          8.9465        2.2460       -.17320E-07   -.20505E-05
  25  norm          8.0926        2.2449        .59102E-07    .26101E-04
  26  Prefactor     .10000E-03    .65137E-01   -.15493E-07** at limit **
  27  Normalizat    1.1470        .52344E-01    .61318E-07    .14896E-03
  28  Prefactor     .95811        .29336E-01    .13622E-06    .72690E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.194047
  Prefactor  = 0.0001
  norm       = 0.271359
  norm       = 3.11291
  norm       = 4.28751
  Prefactor  = 0.854583
  Prefactor  = 0.0001
  norm       = 0.49866
  Prefactor  = 16.7636
  norm       = 1.68286
  Prefactor  = 12.5013
  Prefactor  = 3.30196
  Prefactor  = 15.1423
  Prefactor  = 0.0001
  Prefactor  = 6.77116
  Prefactor  = 6.04259
  norm       = 1.8648
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.998071
  Prefactor  = 2.38268
  Prefactor  = 1.96674
  norm       = 8.94653
  norm       = 8.09262
  Prefactor  = 0.0001
  Normalizat = 1.14704
  Prefactor  = 0.958108
 **********
 **   18 **HESSE 
 **********

 FCN=   121327.6     FROM HESSE     STATUS=OK           551 CALLS     3640 TOTAL
                     EDM=   .53E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .19405        .15270        .11564E-03   -1.5620    
   2  Prefactor     .10000E-03    .31937        .54130E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .27136        .14394        .97812E-03   -1.5604    
   4  norm          3.1129        1.6452        .22981E-03   -1.5355    
   5  norm          4.2875        .48910        .77652E-04   -1.5294    
   6  Prefactor     .85458        .48402        .22356E-02   -1.5523    
   7  Prefactor     .10000E-03    2.8918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .49866        .79993        .45045E-04   -1.5567    
   9  Prefactor     16.764        11.554        .97807E-04   -1.4889    
  10  norm          1.6829        .98353        .25260E-03   -1.5449    
  11  Prefactor     12.501        6.8770        .11329E-03   -1.5001    
  12  Prefactor     3.3020        1.0768        .22280E-04   -1.5345    
  13  Prefactor     15.142        8.0158        .10293E-03   -1.4930    
  14  Prefactor     .10000E-03    3.7797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.7712        2.9195        .15419E-03   -1.5187    
  16  Prefactor     6.0426        2.0251        .81670E-03   -1.5216    
  17  norm          1.8648        .58948        .14626E-03   -1.5435    
  18  norm          .10000E-03    4.3069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.3057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .98756        .31796E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .99807        2.2034        .26313E-02   -1.5508    
  22  Prefactor     2.3827        1.0519        .26537E-04   -1.5399    
  23  Prefactor     1.9667        2.5809        .29571E-03   -1.5427    
  24  norm          8.9465        2.2459        .67001E-03   -1.5110    
  25  norm          8.0926        2.2437        .14094E-03   -1.5139    
  26  Prefactor     .10000E-03    .14963        .17227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.1470        .62894E-01    .30038E-03   -.88256    
  28  Prefactor     .95811        .35468E-01    .19243E-03   -.94139    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.25451e-08
Minuit parameter uncertainties:
  1  0.152698
  2  1.79104e-05
  3  0.14394
  4  1.64523
  5  0.489096
  6  0.484019
  7  1.70516e-06
  8  0.799945
  9  11.5559
  10  0.983536
  11  6.87746
  12  1.07684
  13  8.01639
  14  2.25625e-06
  15  2.91951
  16  2.02516
  17  0.589483
  18  2.41578e-06
  19  6.50377e-07
  20  8.58688e-06
  21  2.20361
  22  1.0519
  23  2.581
  24  2.24592
  25  2.24376
  26  6.87903e-07
  27  0.0628979
  28  0.0354687
Done.

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

Extracting fit parameters...

4FGL J1801.5+4404
   Spectrum: LogParabola
365         norm:  1.000e-04  8.587e-06  1.000e-04  1.000e+04 ( 1.000e-12)
366        alpha:  2.308e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
367         beta:  6.673e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
368           Eb:  5.859e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
683    Prefactor:  9.581e-01  3.547e-02  0.000e+00  1.000e+01 ( 1.000e+00)
684        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
685        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
682   Normalization:  1.147e+00  6.290e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 270.377 44.075
Photon Flux Upper Limit: 1.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.78e-06 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/643332/likelihoodResults_672451201_675043201_4FGL_J1801.5+4404_monthly_bin168.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 121327.594483
delta logL = -0.00480208829686

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 121327.589673
delta logL = 7.7531876741e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3697       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1470       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95811       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6860E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   121326.3     FROM MIGRAD    STATUS=CONVERGED    189 CALLS      357 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .14394        .75510E-01    .17124E-01   -.39644E-01
   2  alpha         5.0000        .92850        .41222    ** at limit **
   3  Normalizat    1.1179        .50325E-01    .68670E-01    .13860E-02
   4  Prefactor     .96830        .29273E-01    .45741E-01    .36723E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.143943
  alpha      = 5
  Normalizat = 1.11792
  Prefactor  = 0.968301
 **********
 **   18 **HESSE 
 **********

 FCN=   121326.3     FROM HESSE     STATUS=OK            35 CALLS      392 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .14394        .10022        .67238E-03   -1.5784    
   2  alpha         5.0000        .89642        .50000        1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1179        .62112E-01    .30384E-03   -.89179    
   4  Prefactor     .96830        .35670E-01    .19153E-03   -.93794    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.27075e-07
Minuit parameter uncertainties:
  1  0.100225
  2  0.000211062
  3  0.0621162
  4  0.035671
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/643332': 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) = 121326.255339
delta logL = 1.33434133603

Extracting fit parameters...

4FGL J1801.5+4404
   Spectrum: LogParabola
365         norm:  1.439e-01  1.002e-01  1.000e-04  1.000e+04 ( 1.000e-12)
366        alpha:  5.000e+00  2.111e-04  0.000e+00  5.000e+00 ( 1.000e+00)
367         beta:  6.673e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
368           Eb:  5.859e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
683    Prefactor:  9.683e-01  3.567e-02  0.000e+00  1.000e+01 ( 1.000e+00)
684        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
685        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
682   Normalization:  1.118e+00  6.212e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.85
Ra Dec: 270.377 44.075
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 2.14e-08 +/- 1.48e-08
Energy Flux (Free Index): 2.88e-06 +/- 2.00e-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/643332/cmap_HighResolution_672451201_675043201_4FGL_J1801.5+4404_monthly_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.78e-06', comment='SUCCESS', energy_flux2='2.88e-06', dlogl='1.33e+00', photon_flux2='2.14e-08', job_status='DONE', time_completed='2022-05-24 06:52:07.642538', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.10e-08', energy_flux_error2='2.00e-06', EG='1.15', time_epoch_completed='1653400327.64', return_code='0', job_id='643332', GAL2='0.97', EG2='1.12', return_code2='0', photon_flux_error2='1.48e-08', ts2='2.85', photon_index='2.31' WHERE bin_id='168' AND source_name='4FGL J1801.5+4404' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue May 24 06:52:07 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 643332: <4FGL_J1801.5+4404_monthly_bin168> in cluster <slac> Done

Job <4FGL_J1801.5+4404_monthly_bin168> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue May 24 03:40:28 2022
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 03:42:24 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 24 03:42:24 2022
Terminated at Tue May 24 06:52:09 2022
Results reported at Tue May 24 06:52:09 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1801.5+4404_monthly_bin168 270.377 44.0747 672451201 675043201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1801.5+4404 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   11232.00 sec.
    Max Memory :                                 634 MB
    Average Memory :                             486.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   11384 sec.
    Turnaround time :                            11501 sec.

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

