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


Performing analysis on: 4FGL_J1801.5+4404_daily_bin1716
RA = 270.377, Dec = 44.0747
tmin = 684115201, tmax = 684374401
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='189308', job_status='RUN', time_executed='2022-09-16 20:41:18.158422', time_epoch_executed='1663386078.16' WHERE source_name='4FGL J1801.5+4404' and cadence='daily' and bin_id='1716'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/189308

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/189308/ft1_4FGL_J1801.5+4404_daily_bin1716.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/189308/ft2_4FGL_J1801.5+4404_daily_bin1716.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/189308/ft1_4FGL_J1801.5+4404_daily_bin1716.fits outfile=/scratch/kocevski/189308/ft1_filteredMKT_4FGL_J1801.5+4404_daily_bin1716.fits ra=270.377 dec=44.0747 rad=12.0 tmin=684115201.0 tmax=684374401.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 4.08
user 3.85
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/189308/ft2_4FGL_J1801.5+4404_daily_bin1716.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/189308/ft1_filteredMKT_4FGL_J1801.5+4404_daily_bin1716.fits evtable="EVENTS" outfile="/scratch/kocevski/189308/ft1_filtered_4FGL_J1801.5+4404_daily_bin1716.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.34
sys 0.15

Number of photons that the gtmktime cut: 824

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/189308/ft1_filtered_4FGL_J1801.5+4404_daily_bin1716.fits" evtable="EVENTS" scfile=/scratch/kocevski/189308/ft2_4FGL_J1801.5+4404_daily_bin1716.fits sctable="SC_DATA" outfile=/scratch/kocevski/189308/ltcube_684115201_684374401_4FGL_J1801.5+4404_daily_bin1716.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/189308/ft2_4FGL_J1801.5+4404_daily_bin1716.fits
.....................!
real 12.92
user 12.52
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/189308/ft1_filtered_4FGL_J1801.5+4404_daily_bin1716.fits evtable="EVENTS" scfile=/scratch/kocevski/189308/ft2_4FGL_J1801.5+4404_daily_bin1716.fits sctable="SC_DATA" expcube=/scratch/kocevski/189308/ltcube_684115201_684374401_4FGL_J1801.5+4404_daily_bin1716.fits outfile=/scratch/kocevski/189308/expmap_684115201_684374401_4FGL_J1801.5+4404_daily_bin1716.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/189308/ltcube_684115201_684374401_4FGL_J1801.5+4404_daily_bin1716.fits
.....................!
real 191.00
user 185.67
sys 4.96

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/189308/ft1_filtered_4FGL_J1801.5+4404_daily_bin1716.fits scfile=/scratch/kocevski/189308/ft2_4FGL_J1801.5+4404_daily_bin1716.fits outfile=/scratch/kocevski/189308/cmap_684115201_684374401_4FGL_J1801.5+4404_daily_bin1716.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/189308/ft1_filtered_4FGL_J1801.5+4404_daily_bin1716.fits scfile=/scratch/kocevski/189308/ft2_4FGL_J1801.5+4404_daily_bin1716.fits outfile=/scratch/kocevski/189308/cmap_HighResolution_684115201_684374401_4FGL_J1801.5+4404_daily_bin1716.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.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/189308/ft1_filtered_4FGL_J1801.5+4404_daily_bin1716.fits', '/scratch/kocevski/189308/ft2_4FGL_J1801.5+4404_daily_bin1716.fits', expMap='/scratch/kocevski/189308/expmap_684115201_684374401_4FGL_J1801.5+4404_daily_bin1716.fits', expCube='/scratch/kocevski/189308/ltcube_684115201_684374401_4FGL_J1801.5+4404_daily_bin1716.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/189308/Model_4FGL_J1801.5+4404_daily_bin1716.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  0.000e+00  1.000e+06 ( 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 -5.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/189308/ft1_filtered_4FGL_J1801.5+4404_daily_bin1716.fits
Spacecraft file(s): /scratch/kocevski/189308/ft2_4FGL_J1801.5+4404_daily_bin1716.fits
Exposure map: /scratch/kocevski/189308/expmap_684115201_684374401_4FGL_J1801.5+4404_daily_bin1716.fits
Exposure cube: /scratch/kocevski/189308/ltcube_684115201_684374401_4FGL_J1801.5+4404_daily_bin1716.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/189308/Model_4FGL_J1801.5+4404_daily_bin1716.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) = 8622.25094706

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .21977E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    .15710E-07   1.0000          .0000       .10000E+07
     3 'norm      '    .55511E-10   1.0000          .0000       .10000E+07
     4 'norm      '    5.9103       1.0000          .0000       .10000E+07
     5 'norm      '    2.3242       1.0000          .0000       .10000E+07
     6 'Prefactor '    .44409E-09   1.0000          .0000       .10000E+07
     7 'norm      '    .83267E-09   1.0000          .0000       .10000E+07
     8 'Prefactor '    .17824E-05   1.0000          .0000       .10000E+07
     9 'norm      '    1.6723       1.0000          .0000       .10000E+07
    10 'Prefactor '    .35689E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    .12157E-07   1.0000          .0000       .10000E+07
    12 'Prefactor '    31.151       1.0000          .0000       .10000E+07
    13 'Prefactor '    .42144E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    5.6885       1.0000          .0000       .10000E+07
    15 'norm      '    3.3407       1.0000          .0000       .10000E+07
    16 'norm      '    .13612E-01   1.0000          .0000       .10000E+07
    17 'norm      '    .20595E-07   1.0000          .0000       .10000E+07
    18 'Prefactor '    .15721E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    .44409E-09   1.0000          .0000       .10000E+07
    20 'norm      '    22.865       1.0000          .0000       .10000E+07
    21 'norm      '    .10192E-06   1.0000          .0000       .10000E+07
    22 'Prefactor '    5.3890       1.0000          .0000       .10000E+07
    23 'Normalizat'    .97358       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .99453       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6860E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8620.997     FROM MIGRAD    STATUS=CONVERGED    142 CALLS     1241 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .14433E-06    6.0772        .10553E-05** at limit **
   2  Prefactor     .17764E-08    2.2255        .27059E-06** at limit **
   3  norm           .0000        .26457        .26805E-06** at limit **
   4  norm          5.9088        6.1803       -.17231E-05   -.32335E-01
   5  norm          2.3241        1.4361       -.29134E-07    .47979E-02
   6  Prefactor     .11102E-09    .85122       -.52126E-07** at limit **
   7  norm          .38858E-09    1.4853       -.54527E-06** at limit **
   8  Prefactor     .31641E-08    16.357       -.13795E-05** at limit **
   9  norm          1.6722        2.0641        .13602E-07    .36102E-03
  10  Prefactor     .47766E-05    10.536        .17202E-06** at limit **
  11  Prefactor      .0000        2.0816        .17226E-07** at limit **
  12  Prefactor     31.253        1.4056       -.41689E-07    .42520E-01
  13  Prefactor     .49916E-03    3.1754        .11135E-05** at limit **
  14  Prefactor     5.6887        4.8573       -.14477E-08   -.21528E-03
  15  norm          3.3418        2.6564        .12099E-06   -.62182E-03
  16  norm          .87208E-07    57.082       -.31850E-06** at limit **
  17  norm          .22204E-09    1.5239       -.50342E-06** at limit **
  18  Prefactor     .47568E-04    2.3342       -.37383E-06** at limit **
  19  Prefactor     .55511E-10    2.6534       -.20052E-06** at limit **
  20  norm          22.866        3.9052        .10405E-06    .89145E-01
  21  norm          .20983E-07    5.1508        .10430E-05** at limit **
  22  Prefactor     5.3888        2.3277        .11708E-07    .24933E-02
  23  Normalizat    .97365        .21201        .16808E-04    .11234E-04
  24  Prefactor     .99454        .12618       -.26705E-05   -.42342E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.44329e-07
  Prefactor  = 1.77636e-09
  norm       = 0
  norm       = 5.90881
  norm       = 2.32407
  Prefactor  = 1.11022e-10
  norm       = 3.88578e-10
  Prefactor  = 3.16414e-09
  norm       = 1.67217
  Prefactor  = 4.77662e-06
  Prefactor  = 0
  Prefactor  = 31.2532
  Prefactor  = 0.000499161
  Prefactor  = 5.68872
  norm       = 3.34183
  norm       = 8.7208e-08
  norm       = 2.22045e-10
  Prefactor  = 4.75678e-05
  Prefactor  = 5.55112e-11
  norm       = 22.8662
  norm       = 2.09832e-08
  Prefactor  = 5.38877
  Normalizat = 0.973654
  Prefactor  = 0.994536
 **********
 **   18 **HESSE 
 **********

 FCN=   8620.997     FROM HESSE     STATUS=OK           463 CALLS     1704 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .14433E-06    .67538        .25224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .17764E-08    2.2355        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        .26051        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.9088        6.2629        .41283E-03   -1.5659    
   5  norm          2.3241        1.4423        .67251E-03   -1.5677    
   6  Prefactor     .11102E-09    .85243        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .38858E-09    1.4888        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .31641E-08    16.405        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.6722        2.0747        .81477E-03   -1.5682    
  10  Prefactor     .47766E-05    14.530        .16164E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        2.0753        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     31.253        33.495        .17919E-03   -1.5596    
  13  Prefactor     .49916E-03    11.057        .96195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.6887        4.8614        .42092E-03   -1.5660    
  15  norm          3.3418        2.6721        .55350E-03   -1.5671    
  16  norm          .87208E-07    57.275        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .22204E-09    1.5271        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .47568E-04    7.1444        .14603E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .55511E-10    2.6495        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          22.866        10.639        .20918E-03   -1.5612    
  21  norm          .20983E-07    5.3483        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.3888        2.3401        .43266E-03   -1.5662    
  23  Normalizat    .97365        .18322        .69580E-01   -.93918    
  24  Prefactor     .99454        .10552        .46199E-01   -.92912    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41341e-07
Minuit parameter uncertainties:
  1  0.000624388
  2  0.000125439
  3  2.34812e-06
  4  6.26295
  5  1.4423
  6  1.71957e-05
  7  4.96819e-05
  8  0.000454741
  9  2.0747
  10  0.0166616
  11  2.34345e-06
  12  33.4956
  13  0.14858
  14  4.86141
  15  2.67211
  16  0.00447059
  17  3.76352e-05
  18  0.0368698
  19  2.49131e-05
  20  10.6389
  21  0.000669735
  22  2.34009
  23  0.183341
  24  0.10554
Done.

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

Extracting fit parameters...

4FGL J1801.5+4404
   Spectrum: LogParabola
365         norm:  2.220e-10  3.764e-05  0.000e+00  1.000e+06 ( 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 -5.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.945e-01  1.055e-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:  9.737e-01  1.833e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/189308/likelihoodResults_684115201_684374401_4FGL_J1801.5+4404_daily_bin1716.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) = 8621.00376059
delta logL = -0.00717268419976

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8620.99658797
delta logL = -7.04785634298e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .21427E-07   1.0000          .0000       .10000E+07
     2 'alpha     '    1.1598       1.0000          .0000       5.0000    
     3 'Normalizat'    .97371       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99449       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8620.997     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      234 TOTAL
                     EDM=   .23E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        1.6124        .42118E-03** at limit **
   2  alpha         2.1650        1.2683        .52816E-05     .0000    
   3  Normalizat    .97365        1.3050       -.11844E-04   -.14396E-04
   4  Prefactor     .99454        1.3339        .23279E-05   -.49730E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 2.16498
  Normalizat = 0.973654
  Prefactor  = 0.994537
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8620.997     FROM HESSE     STATUS=FAILED         7 CALLS      241 TOTAL
                     EDM=   .23E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.6124        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .99818        1.2683        .52816E-05   -.13441    
   3  Normalizat    .97365        1.3050       -.11844E-04   -.93918    
   4  Prefactor     .99454        1.3339        .23279E-05   -.92912    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.32077e-12
Minuit parameter uncertainties:
  1  4.5914e-06
  2  1.33144
  3  1.35185
  4  1.38258
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/189308': 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): 101
logL (Free Index) = 8620.9965879
delta logL = 7.63975549489e-11

Extracting fit parameters...

4FGL J1801.5+4404
   Spectrum: LogParabola
365         norm:  0.000e+00  4.591e-06  0.000e+00  1.000e+06 ( 1.000e-12)
366        alpha:  2.165e+00  1.331e+00  0.000e+00  5.000e+00 ( 1.000e+00)
367         beta:  6.673e-02  0.000e+00 -5.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.945e-01  1.383e+00  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:  9.737e-01  1.352e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 270.377 44.075

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/189308/cmap_HighResolution_684115201_684374401_4FGL_J1801.5+4404_daily_bin1716.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.17e-05', job_status='DONE', photon_flux_upper_limit='3.39e-08', time_completed='2022-09-16 20:53:26.839813', job_id='189308', GAL2='0.99', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1663386806.84', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='7.64e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='1716' AND source_name='4FGL J1801.5+4404' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 20:53:26 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0190>
Subject: Job 189308: <4FGL_J1801.5+4404_daily_bin1716> in cluster <slac> Done

Job <4FGL_J1801.5+4404_daily_bin1716> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 16 20:40:14 2022
Job was executed on host(s) <bullet0190>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 20:40:31 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 20:40:31 2022
Terminated at Fri Sep 16 20:53:27 2022
Results reported at Fri Sep 16 20:53:27 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1801.5+4404_daily_bin1716 270.377 44.0747 684115201 684374401 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 :                                   730.58 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             340.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   776 sec.
    Turnaround time :                            793 sec.

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

