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


Performing analysis on: 4FGL_J1801.5+4404_daily_bin1694
RA = 270.377, Dec = 44.0747
tmin = 678412801, tmax = 678672001
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='640943', job_status='RUN', time_executed='2022-07-05 03:57:46.354403', time_epoch_executed='1657018666.35' WHERE source_name='4FGL J1801.5+4404' and cadence='daily' and bin_id='1694'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/640943

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/640943/ft1_4FGL_J1801.5+4404_daily_bin1694.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/640943/ft2_4FGL_J1801.5+4404_daily_bin1694.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/640943/ft1_4FGL_J1801.5+4404_daily_bin1694.fits outfile=/scratch/kocevski/640943/ft1_filteredMKT_4FGL_J1801.5+4404_daily_bin1694.fits ra=270.377 dec=44.0747 rad=12.0 tmin=678412801.0 tmax=678672001.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.66
user 3.41
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/640943/ft2_4FGL_J1801.5+4404_daily_bin1694.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/640943/ft1_filteredMKT_4FGL_J1801.5+4404_daily_bin1694.fits evtable="EVENTS" outfile="/scratch/kocevski/640943/ft1_filtered_4FGL_J1801.5+4404_daily_bin1694.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.50
user 0.33
sys 0.17

Number of photons that the gtmktime cut: 906

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/640943/ft1_filtered_4FGL_J1801.5+4404_daily_bin1694.fits" evtable="EVENTS" scfile=/scratch/kocevski/640943/ft2_4FGL_J1801.5+4404_daily_bin1694.fits sctable="SC_DATA" outfile=/scratch/kocevski/640943/ltcube_678412801_678672001_4FGL_J1801.5+4404_daily_bin1694.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/640943/ft2_4FGL_J1801.5+4404_daily_bin1694.fits
.....................!
real 14.18
user 13.79
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/640943/ft1_filtered_4FGL_J1801.5+4404_daily_bin1694.fits evtable="EVENTS" scfile=/scratch/kocevski/640943/ft2_4FGL_J1801.5+4404_daily_bin1694.fits sctable="SC_DATA" expcube=/scratch/kocevski/640943/ltcube_678412801_678672001_4FGL_J1801.5+4404_daily_bin1694.fits outfile=/scratch/kocevski/640943/expmap_678412801_678672001_4FGL_J1801.5+4404_daily_bin1694.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/640943/ltcube_678412801_678672001_4FGL_J1801.5+4404_daily_bin1694.fits
.....................!
real 193.09
user 186.87
sys 5.39

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/640943/ft1_filtered_4FGL_J1801.5+4404_daily_bin1694.fits scfile=/scratch/kocevski/640943/ft2_4FGL_J1801.5+4404_daily_bin1694.fits outfile=/scratch/kocevski/640943/cmap_678412801_678672001_4FGL_J1801.5+4404_daily_bin1694.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 1.08
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/640943/ft1_filtered_4FGL_J1801.5+4404_daily_bin1694.fits scfile=/scratch/kocevski/640943/ft2_4FGL_J1801.5+4404_daily_bin1694.fits outfile=/scratch/kocevski/640943/cmap_HighResolution_678412801_678672001_4FGL_J1801.5+4404_daily_bin1694.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.55
user 0.36
sys 0.18

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/640943/ft1_filtered_4FGL_J1801.5+4404_daily_bin1694.fits', '/scratch/kocevski/640943/ft2_4FGL_J1801.5+4404_daily_bin1694.fits', expMap='/scratch/kocevski/640943/expmap_678412801_678672001_4FGL_J1801.5+4404_daily_bin1694.fits', expCube='/scratch/kocevski/640943/ltcube_678412801_678672001_4FGL_J1801.5+4404_daily_bin1694.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/640943/Model_4FGL_J1801.5+4404_daily_bin1694.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/640943/ft1_filtered_4FGL_J1801.5+4404_daily_bin1694.fits
Spacecraft file(s): /scratch/kocevski/640943/ft2_4FGL_J1801.5+4404_daily_bin1694.fits
Exposure map: /scratch/kocevski/640943/expmap_678412801_678672001_4FGL_J1801.5+4404_daily_bin1694.fits
Exposure cube: /scratch/kocevski/640943/ltcube_678412801_678672001_4FGL_J1801.5+4404_daily_bin1694.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/640943/Model_4FGL_J1801.5+4404_daily_bin1694.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) = 9394.09595467

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .55932       1.0000         .10000E-03   10000.    
     4 'norm      '    10.808       1.0000         .10000E-03   10000.    
     5 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.2519       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    14.398       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .39210       1.0000         .10000E-03   10000.    
    13 'Prefactor '    27.267       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.944       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.2147       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    8.7994       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    14.430       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .84518       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    25.630       1.0000         .10000E-03   10000.    
    25 'norm      '    6.8391       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .61320       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.3334       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .85722       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=   9394.002     FROM MIGRAD    STATUS=CONVERGED    695 CALLS     3594 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .38828       -.60252E-07** at limit **
   2  Prefactor     .10000E-03    2.3531       -.93983E-07** at limit **
   3  norm          .55929        .71182       -.22929E-07   -.57702E-04
   4  norm          10.808        8.0451       -.23142E-06    .65258E-05
   5  norm          .10000E-03    .86217       -.19562E-06** at limit **
   6  Prefactor     7.2516        3.7097       -.41614E-06   -.61909E-03
   7  Prefactor     .10000E-03    10.388        .70448E-05** at limit **
   8  norm          14.396        6.0075       -.45341E-06   -.12254E-04
   9  Prefactor     .10000E-03    40.702       -.94609E-06** at limit **
  10  norm          .10000E-03    3.3446       -.63845E-07** at limit **
  11  Prefactor     .10000E-03    12.079       -.58832E-05** at limit **
  12  Prefactor     .39566        2.5195        .31460E-05   -.12283E-02
  13  Prefactor     27.252        57.748       -.24256E-04   -.32058E-03
  14  Prefactor     12.943        21.080       -.63110E-06   -.33187E-04
  15  Prefactor     .10000E-03    19.491        .63125E-06** at limit **
  16  Prefactor     1.2143        .92346        .23869E-07   -.10487E-02
  17  norm          .10000E-03    .69337       -.48923E-07** at limit **
  18  norm          8.7932        84.029       -.16314E-04   -.25836E-05
  19  Prefactor     .10000E-03    20.024        .34810E-05** at limit **
  20  norm          14.430        7.9849       -.18647E-06   -.23279E-04
  21  Prefactor     .10000E-03    4.4142        .17372E-07** at limit **
  22  Prefactor     .84532        3.0604        .20549E-06   -.15730E-04
  23  Prefactor     .10000E-03    8.9120       -.21231E-05** at limit **
  24  norm          25.630        9.7737       -.10484E-06   -.46087E-04
  25  norm          6.8388        9.5797       -.10374E-06    .19613E-05
  26  Prefactor     .61344        1.2705       -.20829E-06   -.44381E-03
  27  Normalizat    1.3334        .19067        .91444E-06   -.49914E-03
  28  Prefactor     .85723        .10741        .41774E-06   -.46463E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.559289
  norm       = 10.8076
  norm       = 0.0001
  Prefactor  = 7.25159
  Prefactor  = 0.0001
  norm       = 14.3961
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.395662
  Prefactor  = 27.2519
  Prefactor  = 12.9431
  Prefactor  = 0.0001
  Prefactor  = 1.21433
  norm       = 0.0001
  norm       = 8.7932
  Prefactor  = 0.0001
  norm       = 14.4298
  Prefactor  = 0.0001
  Prefactor  = 0.845322
  Prefactor  = 0.0001
  norm       = 25.6302
  norm       = 6.83875
  Prefactor  = 0.613442
  Normalizat = 1.33339
  Prefactor  = 0.857227
 **********
 **   18 **HESSE 
 **********

 FCN=   9394.002     FROM HESSE     STATUS=OK           527 CALLS     4121 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .69671        .11728E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.3661        .14509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .55929        .64194        .87138E-03   -1.5558    
   4  norm          10.808        8.0369        .12187E-03   -1.5050    
   5  norm          .10000E-03    1.9190        .17155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.2516        3.7124        .12881E-03   -1.5169    
   7  Prefactor     .10000E-03    10.295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          14.396        6.0037        .10556E-03   -1.4949    
   9  Prefactor     .10000E-03    40.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.4120        .17286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .39566        13.525        .25377E-02   -1.5582    
  13  Prefactor     27.252        60.279        .76720E-04   -1.4663    
  14  Prefactor     12.943        21.072        .11134E-03   -1.4988    
  15  Prefactor     .10000E-03    19.800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.2143        5.2828        .20499E-02   -1.5488    
  17  norm          .10000E-03    .69433        .78799E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          8.7932        83.063        .13512E-03   -1.5115    
  19  Prefactor     .10000E-03    20.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          14.430        8.0002        .10544E-03   -1.4948    
  21  Prefactor     .10000E-03    4.4225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .84532        3.0346        .31201E-03   -1.5524    
  23  Prefactor     .10000E-03    8.9094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          25.630        9.7636        .39564E-03   -1.4695    
  25  norm          6.8388        9.5725        .15342E-03   -1.5185    
  26  Prefactor     .61344        1.0763        .15182E-02   -1.5551    
  27  Normalizat    1.3334        .22441        .28633E-03   -.82575    
  28  Prefactor     .85723        .12862        .20513E-03   -.97652    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84327e-08
Minuit parameter uncertainties:
  1  1.0016e-06
  2  2.0629e-06
  3  0.641947
  4  8.0377
  5  5.68394e-06
  6  3.71256
  7  3.81975e-06
  8  6.00398
  9  2.48435e-05
  10  9.91833e-06
  11  2.98731e-06
  12  4.62707
  13  60.414
  14  21.0837
  15  0.000163657
  16  5.06614
  17  1.99724e-06
  18  54.1501
  19  3.51448e-05
  20  8.00077
  21  1.35929e-06
  22  3.03516
  23  2.92697e-06
  24  9.76416
  25  9.57462
  26  1.07631
  27  0.224575
  28  0.128661
Done.

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

Extracting fit parameters...

4FGL J1801.5+4404
   Spectrum: LogParabola
365         norm:  1.443e+01  8.001e+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

GAL_V02
   Spectrum: PowerLaw
683    Prefactor:  8.572e-01  1.287e-01  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.333e+00  2.246e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.87
Ra Dec: 270.377 44.075
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 5.89e-08 +/- 3.26e-08
Energy Flux (Fixed Index): 2.03e-05 +/- 1.13e-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) = 9394.00166317
delta logL = 0.000820303985165

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9394.00159225
delta logL = 0.00089122326608

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.367       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3304       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3320       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85760       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9394.002     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      272 TOTAL
                     EDM=   .30E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.342        8.2913        .52835E-03   -.59172E-04
   2  alpha         2.3284        .49290        .14956E-01   -.36425E-05
   3  Normalizat    1.3323        .21591        .28643E-03   -.47629E-06
   4  Prefactor     .85763        .12688        .20509E-03   -.25388E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.3423
  alpha      = 2.32844
  Normalizat = 1.33226
  Prefactor  = 0.857634
 **********
 **   18 **HESSE 
 **********

 FCN=   9394.002     FROM HESSE     STATUS=OK            25 CALLS      297 TOTAL
                     EDM=   .41E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.342        8.1987        .21134E-04   -1.4950    
   2  alpha         2.3284        .48729        .59825E-03   -.68680E-01
   3  Normalizat    1.3323        .21608        .11457E-04   -.82608    
   4  Prefactor     .85763        .12698        .82036E-05   -.97638    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.11471e-12
Minuit parameter uncertainties:
  1  8.19935
  2  0.49044
  3  0.216223
  4  0.127019
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/640943': 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) = 9394.0015736
delta logL = 0.000909869997486

Extracting fit parameters...

4FGL J1801.5+4404
   Spectrum: LogParabola
365         norm:  1.434e+01  8.199e+00  1.000e-04  1.000e+04 ( 1.000e-12)
366        alpha:  2.328e+00  4.904e-01  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:  8.576e-01  1.270e-01  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.332e+00  2.162e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.85
Ra Dec: 270.377 44.075
Photon Index (Free Index): 2.33 +/- 0.49
Photon Flux (Free Index): 5.97e-08 +/- 3.85e-08
Energy Flux (Free Index): 2.01e-05 +/- 1.19e-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/640943/cmap_HighResolution_678412801_678672001_4FGL_J1801.5+4404_daily_bin1694.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.89e-08', energy_flux2='2.01e-05', photon_flux_error='3.26e-08', dlogl='9.10e-04', energy_flux='2.03e-05', photon_flux2='5.97e-08', job_status='DONE', time_completed='2022-07-05 04:15:17.222312', photon_index_error2='0.49', photon_index2='2.33', ts='6.87', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='1.19e-05', EG='1.33', time_epoch_completed='1657019717.22', return_code='0', job_id='640943', GAL2='0.86', EG2='1.33', return_code2='0', energy_flux_error='1.13e-05', photon_flux_error2='3.85e-08', ts2='6.85', photon_index='2.31' WHERE bin_id='1694' AND source_name='4FGL J1801.5+4404' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul  5 04:15:17 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 640828: <4FGL_J1801.5+4404_daily_bin1694> in cluster <slac> Done

Job <4FGL_J1801.5+4404_daily_bin1694> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Tue Jul  5 00:07:02 2022
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul  5 03:55:06 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul  5 03:55:06 2022
Terminated at Tue Jul  5 04:13:04 2022
Results reported at Tue Jul  5 04:13:04 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1801.5+4404_daily_bin1694 270.377 44.0747 678412801 678672001 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 :                                   1053.00 sec.
    Max Memory :                                 618 MB
    Average Memory :                             326.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1077 sec.
    Turnaround time :                            14762 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 640943: <4FGL_J1801.5+4404_daily_bin1694> in cluster <slac> Done

Job <4FGL_J1801.5+4404_daily_bin1694> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Tue Jul  5 00:07:07 2022
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul  5 03:56:16 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul  5 03:56:16 2022
Terminated at Tue Jul  5 04:15:18 2022
Results reported at Tue Jul  5 04:15:18 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1801.5+4404_daily_bin1694 270.377 44.0747 678412801 678672001 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 :                                   1050.14 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             329.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1141 sec.
    Turnaround time :                            14891 sec.

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

