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


Performing analysis on: 4FGL_J1728.3+5013_daily_bin1668
RA = 262.078, Dec = 50.2267
tmin = 671673601, tmax = 671932801
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='555657', job_status='RUN', time_executed='2022-04-18 03:06:26.714908', time_epoch_executed='1650276386.71' WHERE source_name='4FGL J1728.3+5013' and cadence='daily' and bin_id='1668'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/555657

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/555657/ft1_4FGL_J1728.3+5013_daily_bin1668.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/555657/ft2_4FGL_J1728.3+5013_daily_bin1668.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/555657/ft1_4FGL_J1728.3+5013_daily_bin1668.fits outfile=/scratch/kocevski/555657/ft1_filteredMKT_4FGL_J1728.3+5013_daily_bin1668.fits ra=262.078 dec=50.2267 rad=12.0 tmin=671673601.0 tmax=671932801.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.57
user 3.33
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/555657/ft2_4FGL_J1728.3+5013_daily_bin1668.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/555657/ft2_4FGL_J1728.3+5013_daily_bin1668.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/555657/ft1_filteredMKT_4FGL_J1728.3+5013_daily_bin1668.fits evtable="EVENTS" outfile="/scratch/kocevski/555657/ft1_filtered_4FGL_J1728.3+5013_daily_bin1668.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.49
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 821

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/555657/ft1_filtered_4FGL_J1728.3+5013_daily_bin1668.fits" evtable="EVENTS" scfile=/scratch/kocevski/555657/ft2_4FGL_J1728.3+5013_daily_bin1668.fits sctable="SC_DATA" outfile=/scratch/kocevski/555657/ltcube_671673601_671932801_4FGL_J1728.3+5013_daily_bin1668.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/555657/ft2_4FGL_J1728.3+5013_daily_bin1668.fits
.....................!
real 13.68
user 13.29
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/555657/ft1_filtered_4FGL_J1728.3+5013_daily_bin1668.fits evtable="EVENTS" scfile=/scratch/kocevski/555657/ft2_4FGL_J1728.3+5013_daily_bin1668.fits sctable="SC_DATA" expcube=/scratch/kocevski/555657/ltcube_671673601_671932801_4FGL_J1728.3+5013_daily_bin1668.fits outfile=/scratch/kocevski/555657/expmap_671673601_671932801_4FGL_J1728.3+5013_daily_bin1668.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/555657/ltcube_671673601_671932801_4FGL_J1728.3+5013_daily_bin1668.fits
.....................!
real 191.08
user 185.24
sys 5.19

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

Setting source of interest to:
4FGL J1728.3+5013 @ 262.078 50.2267

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/555657/ft1_filtered_4FGL_J1728.3+5013_daily_bin1668.fits scfile=/scratch/kocevski/555657/ft2_4FGL_J1728.3+5013_daily_bin1668.fits outfile=/scratch/kocevski/555657/cmap_671673601_671932801_4FGL_J1728.3+5013_daily_bin1668.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=262.078 yref=50.2267 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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/555657/ft1_filtered_4FGL_J1728.3+5013_daily_bin1668.fits scfile=/scratch/kocevski/555657/ft2_4FGL_J1728.3+5013_daily_bin1668.fits outfile=/scratch/kocevski/555657/cmap_HighResolution_671673601_671932801_4FGL_J1728.3+5013_daily_bin1668.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=262.078 yref=50.2267 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.54
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/555657/ft1_filtered_4FGL_J1728.3+5013_daily_bin1668.fits evtable="EVENTS" scfile=/scratch/kocevski/555657/ft2_4FGL_J1728.3+5013_daily_bin1668.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/555657/Model_4FGL_J1728.3+5013_daily_bin1668.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/555657/ft1_filtered_4FGL_J1728.3+5013_daily_bin1668.fits.....................!
real 73.84
user 72.48
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/555657/ft1_filtered_4FGL_J1728.3+5013_daily_bin1668.fits', '/scratch/kocevski/555657/ft2_4FGL_J1728.3+5013_daily_bin1668.fits', expMap='/scratch/kocevski/555657/expmap_671673601_671932801_4FGL_J1728.3+5013_daily_bin1668.fits', expCube='/scratch/kocevski/555657/ltcube_671673601_671932801_4FGL_J1728.3+5013_daily_bin1668.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/555657/Model_4FGL_J1728.3+5013_daily_bin1668.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1728.3+5013'

4FGL J1728.3+5013
   Spectrum: PowerLaw
341    Prefactor:  1.850e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
342        Index:  1.775e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
343        Scale:  3.056e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/555657/ft1_filtered_4FGL_J1728.3+5013_daily_bin1668.fits
Spacecraft file(s): /scratch/kocevski/555657/ft2_4FGL_J1728.3+5013_daily_bin1668.fits
Exposure map: /scratch/kocevski/555657/expmap_671673601_671932801_4FGL_J1728.3+5013_daily_bin1668.fits
Exposure cube: /scratch/kocevski/555657/ltcube_671673601_671932801_4FGL_J1728.3+5013_daily_bin1668.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/555657/Model_4FGL_J1728.3+5013_daily_bin1668.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) = 8769.709501

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16236       1.0000         .10000E-03   10000.    
     2 'norm      '    41.409       1.0000         .10000E-03   10000.    
     3 'norm      '    2.3311       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8843       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.076       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.8842       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.5787       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.7733       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.3640       1.0000         .10000E-03   10000.    
    14 'norm      '    19.110       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.8526       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    63.159       1.0000         .10000E-03   10000.    
    21 'norm      '    3.9922       1.0000         .10000E-03   10000.    
    22 'Prefactor '    22.820       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.0703       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.5070       1.0000         .10000E-03   10000.    
    25 'Prefactor '    49.636       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.2382       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    1.2240       1.0000         .10000E-03   10000.    
    30 'Prefactor '    24.011       1.0000         .10000E-03   10000.    
    31 'norm      '    12.959       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    33 'norm      '    .10079E-03   1.0000         .10000E-03   10000.    
    34 'norm      '    9.7743       1.0000         .10000E-03   10000.    
    35 'Normalizat'    1.0267       1.0000         .10000E-01   10.000    
    36 'Prefactor '    .85715       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6670E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8769.702     FROM MIGRAD    STATUS=CONVERGED   1040 CALLS     5322 TOTAL
                     EDM=   .76E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15098        3.5316        .38942E-06   -.35123E-03
   2  norm          41.405        21.282        .39377E-06   -.42723E-04
   3  norm          2.3309        12.105       -.27061E-06   -.10345E-04
   4  Prefactor     1.8851        3.7433       -.64942E-07   -.78494E-04
   5  Prefactor     16.075        6.9022        .44205E-07   -.95549E-05
   6  Prefactor     4.8835        3.6361       -.46118E-07   -.59657E-04
   7  Prefactor     .10000E-03    1.8502       -.93029E-08** at limit **
   8  Prefactor     9.5784        8.9526       -.47377E-07   -.96257E-04
   9  Prefactor     .10000E-03    22.304       -.47661E-06** at limit **
  10  norm          .10000E-03    .26453       -.82132E-08** at limit **
  11  Prefactor     3.7732        1.6680        .76508E-07   -.76057E-03
  12  norm          .10000E-03    .21309       -.15798E-08** at limit **
  13  Prefactor     2.3616        5.2143       -.21446E-06   -.48990E-04
  14  norm          19.110        8.9584        .19861E-06    .14926E-05
  15  Prefactor     .10000E-03    5.5887       -.16726E-07** at limit **
  16  norm          3.8527        1.6991        .11319E-07   -.96262E-06
  17  Prefactor     .10000E-03    1.1148        .79244E-08** at limit **
  18  Prefactor     .10000E-03    68.972        .10841E-0* at limit **
  19  norm          .10000E-03    1.3854        .23264E-07** at limit **
  20  Prefactor     63.154        45.995       -.29770E-05   -.21094E-05
  21  norm          3.9923        3.6752        .15457E-07   -.66679E-06
  22  Prefactor     22.821        22.476       -.89389E-06   -.52999E-06
  23  Prefactor     6.0720        3.9561        .23587E-07    .38664E-05
  24  Prefactor     1.2859        282.74       -.10360E-05   -.15088E-05
  25  Prefactor     49.636        75.682        .21509E-05    .14426E-05
  26  Prefactor     .10000E-03    10.166       -.63262E-08** at limit **
  27  Prefactor     3.2379        5.5356       -.15600E-06   -.82553E-05
  28  Prefactor     .10000E-03    14.181        .65444E-06** at limit **
  29  norm          1.2241        5.2760       -.41632E-06   -.77248E-04
  30  Prefactor     24.012        15.150       -.87906E-06   -.64984E-05
  31  norm          12.959        7.1781        .30033E-07   -.63774E-04
  32  Prefactor     .10000E-03    15.634       -.26535E-05** at limit **
  33  norm          .10000E-03    15.699        .19687E-05** at limit **
  34  norm          9.7738        9.7236       -.15697E-06   -.23576E-04
  35  Normalizat    1.0266        .18420        .80048E-07   -.38085E-04
  36  Prefactor     .85728        .12841        .13213E-06   -.47490E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.150985
  norm       = 41.4049
  norm       = 2.33088
  Prefactor  = 1.8851
  Prefactor  = 16.0754
  Prefactor  = 4.88346
  Prefactor  = 0.0001
  Prefactor  = 9.57845
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.77319
  norm       = 0.0001
  Prefactor  = 2.36156
  norm       = 19.1097
  Prefactor  = 0.0001
  norm       = 3.85265
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 63.1543
  norm       = 3.99228
  Prefactor  = 22.8212
  Prefactor  = 6.07202
  Prefactor  = 1.28594
  Prefactor  = 49.6359
  Prefactor  = 0.0001
  Prefactor  = 3.23794
  Prefactor  = 0.0001
  norm       = 1.22411
  Prefactor  = 24.0123
  norm       = 12.9594
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.77376
  Normalizat = 1.02657
  Prefactor  = 0.857283
 * **********
 **   18 **HESSE 
 **********

 FCN=   8769.702     FROM HESSE     STATUS=OK           821 CALLS     6143 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15098        24.700        .32952E-02   -1.5630    
   2  norm          41.405        21.262        .62294E-04   -1.4420    
   3  norm          2.3309        12.085        .26860E-03   -1.5403    
   4  Prefactor     1.8851        3.7253        .23683E-03   -1.5433    
   5  Prefactor     16.075        6.9438        .99894E-04   -1.4906    
   6  Prefactor     4.8835        3.5856        .13932E-03   -1.5266    
   7  Prefactor     .10000E-03    1.9091        .24853E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.5784        9.0438        .64741E-03   -1.5089    
   9  Prefactor     .10000E-03    22.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .34888        .91986E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.7732        4.6388        .10391E-02   -1.5319    
  12  norm          .10000E-03    .21317        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.3616        5.2442        .26652E-03   -1.5401    
  14  norm          19.110        8.9623        .91620E-04   -1.4833    
  15  Prefactor     .10000E-03    5.6320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.8527        1.7031        .76798E-04   .5315    
  17  Prefactor     .10000E-03    1.1213        .96529E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    69.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.3879        .10762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     63.154        46.046        .50493E-04   -1.4117    
  21  norm          3.9923        3.6753        .82775E-03   -1.5308    
  22  Prefactor     22.821        22.478        .83850E-04   -1.4752    
  23  Prefactor     6.0720        3.9156        .13815E-03   -1.5215    
  24  Prefactor     1.2859        283.70        .34857E-03   -1.5481    
  25  Prefactor     49.636        75.799        .56920E-04   -1.4298    
  26  Prefactor     .10000E-03    10.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     3.2379        5.5146        .22509E-03   -1.5348    
  28  Prefactor     .10000E-03    14.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          1.2241        5.4593        .40725E-03   -1.5487    
  30  Prefactor     24.012        15.182        .81747E-04   -1.4728    
  31  norm          12.959        7.2146        .55634E-03   -1.4988    
  32  Prefactor     .10000E-03    15.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  norm          .10000E-03    16.197        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  norm          9.7738        9.7361        .12817E-03   -1.5083    
  35  Normalizat    1.0266        .22181        .28726E-03   -.92145    
  36  Prefactor     .85728        .15271        .22922E-03   -.97650    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.16638e-10
Minuit parameter uncertainties:
  1  3.86263
  2  21.2662
  3  10.6179
  4  3.72579
  5  6.94415
  6  3.58574
  7  5.71695e-07
  8  9.04506
  9  3.3161e-06
  10  7.5958e-08
  11  4.63927
  12  1.08825e-08
  13  5.24518
  14  8.96291
  15  6.54239e-06
  16  1.70311
  17  9.03417e-08
  18  8.77682e-06
  19  2.71989e-06
  20  46.0723
  21  3.67551
  22  22.4868
  23  3.91572
  24  38.3847
  25  75.9469
  26  1.91462e-06
  27  5.51545
  28  5.03409e-06
  29  5.17078
  30  15.1845
  31  7.21509
  32  2.66946e-06
  33  2.5727e-05
  34  9.73768
  35  0.222008
  36  0.152789
DoDone.

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

Extracting fit parameters...

4FGL J1728.3+5013
   Spectrum: PowerLaw
341    Prefactor:  1.000e-04  9.034e-08  1.000e-04  1.000e+04 ( 1.000e-13)
342        Index:  1.775e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
343        Scale:  3.056e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
664    Prefactor:  8.573e-01  1.528e-01  0.000e+00  1.000e+01 ( 1.000e+00)
665        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
666        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
663   Normalization:  1.027e+00  2.220e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 262.078 50.227
Photon Flux Upper Limit: 3.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/555657/likelihoodResults_671673601_671932801_4FGL_J1728.3+5013_daily_bin1668.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) = 8769.70608376
delta logL = -0.00419937067818

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8769.70188421
delta logL = 1.78799382411e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7651       1.0000          .0000       10.000    
     3 'Normalizat'    1.0266       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85728       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6670E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8769.702     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      201 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.8969        .90712E-02** at limit **
   2  Index         1.7547        5.2677        .50000        .67771E-04
   3  Normalizat    1.0266        .79192E-02    .64941E-01    .78445E-04
   4  Prefactor     .85728        .58587E-02    .44458E-01    .93568E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.75465
  Normalizat = 1.02657
  Prefactor  = 0.857283
 **********
 **   18 **HESSE 
 **********

 FCN=   8769.702     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      234 TOTAL
                     EDM=   .92E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    215.33        .96964E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7547        5.6592        .50000       -.70636    
   3  Normalizat    1.0266        .89119E-01    .28726E-03   -.92145    
   4  Prefactor     .85728        .65918E-01    .22922E-03   -.97650    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.22493e-07
Minuit parameter uncertainties:
  1  4.94442e-05
  2  52.6865
  3  0.0891317
  4  0.0659246
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/555657': 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): 102
logL (Free Index) = 8769.70188401
delta logL = 3.79006451112e-07

Extracting fit parameters...

4FGL J1728.3+5013
   Spectrum: PowerLaw
341    Prefactor:  1.000e-04  4.944e-05  1.000e-04  1.000e+04 ( 1.000e-13)
342        Index:  1.755e+00  5.269e+01  0.000e+00  1.000e+01 (-1.000e+00)
343        Scale:  3.056e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
664    Prefactor:  8.573e-01  6.592e-02  0.000e+00  1.000e+01 ( 1.000e+00)
665        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
666        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
663   Normalization:  1.027e+00  8.913e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 262.078 50.227

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/555657/cmap_HighResolution_671673601_671932801_4FGL_J1728.3+5013_daily_bin1668.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.26e-03', job_status='DONE', photon_flux_upper_limit='3.07e-08', time_completed='2022-04-18 03:31:16.634644', job_id='555657', GAL2='0.86', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1650277876.63', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='3.79e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='1668' AND source_name='4FGL J1728.3+5013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Apr 18 03:31:16 PDT 2022

-----------------------------------------------------------
Sender: LSF System <lsf@bullet0247>
Subject: Job 555889: <4FGL_J1728.3+5013_daily_bin1668> in cluster <slac> Done

Job <4FGL_J1728.3+5013_daily_bin1668> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Apr 18 00:07:53 2022
Job was executed on host(s) <bullet0247>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Apr 18 03:07:33 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Apr 18 03:07:33 2022
Terminated at Mon Apr 18 03:28:51 2022
Results reported at Mon Apr 18 03:28:51 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1728.3+5013_daily_bin1668 262.078 50.2267 671673601 671932801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1728.3+5013 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1221.79 sec.
    Max Memory :                                 705 MB
    Average Memory :                             312.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   3015 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   1278 sec.
    Turnaround time :                            12058 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 555657: <4FGL_J1728.3+5013_daily_bin1668> in cluster <slac> Done

Job <4FGL_J1728.3+5013_daily_bin1668> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Apr 18 00:07:40 2022
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Apr 18 03:02:22 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Apr 18 03:02:22 2022
Terminated at Mon Apr 18 03:31:17 2022
Results reported at Mon Apr 18 03:31:17 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1728.3+5013_daily_bin1668 262.078 50.2267 671673601 671932801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1728.3+5013 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1491.16 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             292.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1734 sec.
    Turnaround time :                            12217 sec.

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

