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 62 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.
DDone.


Performing analysis on: 4FGL_J1728.3+5013_daily_bin1694
RA = 262.078, Dec = 50.2267
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='640750', job_status='RUN', time_executed='2022-07-05 03:56:01.709666', time_epoch_executed='1657018561.71' WHERE source_name='4FGL J1728.3+5013' and cadence='daily' and bin_id='1694'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/640750

Creating custom pfile directory:
/scratch/kocevski/640750/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/640750/ft1_4FGL_J1728.3+5013_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/640750/ft2_4FGL_J1728.3+5013_daily_bin1694.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/640750/ft1_4FGL_J1728.3+5013_daily_bin1694.fits outfile=/scratch/kocevski/640750/ft1_filteredMKT_4FGL_J1728.3+5013_daily_bin1694.fits ra=262.078 dec=50.2267 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.74
user 3.49
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/640750/ft2_4FGL_J1728.3+5013_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/640750/ft1_filteredMKT_4FGL_J1728.3+5013_daily_bin1694.fits evtable="EVENTS" outfile="/scratch/kocevski/640750/ft1_filtered_4FGL_J1728.3+5013_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.51
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 877

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/640750/ft1_filtered_4FGL_J1728.3+5013_daily_bin1694.fits" evtable="EVENTS" scfile=/scratch/kocevski/640750/ft2_4FGL_J1728.3+5013_daily_bin1694.fits sctable="SC_DATA" outfile=/scratch/kocevski/640750/ltcube_678412801_678672001_4FGL_J1728.3+5013_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/640750/ft2_4FGL_J1728.3+5013_daily_bin1694.fits
.....................!
real 14.77
user 14.37
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/640750/ft1_filtered_4FGL_J1728.3+5013_daily_bin1694.fits evtable="EVENTS" scfile=/scratch/kocevski/640750/ft2_4FGL_J1728.3+5013_daily_bin1694.fits sctable="SC_DATA" expcube=/scratch/kocevski/640750/ltcube_678412801_678672001_4FGL_J1728.3+5013_daily_bin1694.fits outfile=/scratch/kocevski/640750/expmap_678412801_678672001_4FGL_J1728.3+5013_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/640750/ltcube_678412801_678672001_4FGL_J1728.3+5013_daily_bin1694.fits
.....................!
real 194.44
user 188.78
sys 5.26

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/640750/ft1_filtered_4FGL_J1728.3+5013_daily_bin1694.fits scfile=/scratch/kocevski/640750/ft2_4FGL_J1728.3+5013_daily_bin1694.fits outfile=/scratch/kocevski/640750/cmap_678412801_678672001_4FGL_J1728.3+5013_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=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.56
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/640750/ft1_filtered_4FGL_J1728.3+5013_daily_bin1694.fits scfile=/scratch/kocevski/640750/ft2_4FGL_J1728.3+5013_daily_bin1694.fits outfile=/scratch/kocevski/640750/cmap_HighResolution_678412801_678672001_4FGL_J1728.3+5013_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=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.57
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/640750/ft1_filtered_4FGL_J1728.3+5013_daily_bin1694.fits evtable="EVENTS" scfile=/scratch/kocevski/640750/ft2_4FGL_J1728.3+5013_daily_bin1694.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/640750/Model_4FGL_J1728.3+5013_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/640750/ft1_filtered_4FGL_J1728.3+5013_daily_bin1694.fits.....................!
real 77.46
user 75.93
sys 1.35

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/640750/ft1_filtered_4FGL_J1728.3+5013_daily_bin1694.fits', '/scratch/kocevski/640750/ft2_4FGL_J1728.3+5013_daily_bin1694.fits', expMap='/scratch/kocevski/640750/expmap_678412801_678672001_4FGL_J1728.3+5013_daily_bin1694.fits', expCube='/scratch/kocevski/640750/ltcube_678412801_678672001_4FGL_J1728.3+5013_daily_bin1694.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/640750/Model_4FGL_J1728.3+5013_daily_bin1694.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/640750/ft1_filtered_4FGL_J1728.3+5013_daily_bin1694.fits
Spacecraft file(s): /scratch/kocevski/640750/ft2_4FGL_J1728.3+5013_daily_bin1694.fits
Exposure map: /scratch/kocevski/640750/expmap_678412801_678672001_4FGL_J1728.3+5013_daily_bin1694.fits
Exposure cube: /scratch/kocevski/640750/ltcube_678412801_678672001_4FGL_J1728.3+5013_daily_bin1694.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/640750/Model_4FGL_J1728.3+5013_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) = 9125.80822967

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.7530       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11034E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.100       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.871       1.0000         .10000E-03   10000.    
    10 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .66720       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .27736E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    12.080       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.7231       1.0000         .10000E-03   10000.    
    16 'norm      '    .10101E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.4050       1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.914       1.0000         .10000E-03   10000.    
    19 'norm      '    16.510       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10327E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .88171       1.0000         .10000E-03   10000.    
    24 'Prefactor '    25.757       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    14.150       1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.2815       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    14.866       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    13.910       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    33 'norm      '    26.131       1.0000         .10000E-03   10000.    
    34 'norm      '    12.080       1.0000         .10000E-03   10000.    
    35 'Normalizat'    1.1650       1.0000         .10000E-01   10.000    
    36 'Prefactor '    .93746       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=   9125.757     FROM MIGRAD    STATUS=CONVERGED   1027 CALLS     5430 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.0900       -.14071E-06** at limit **
   2  norm          .10000E-03    4.5249        .16584E-06** at limit **
   3  norm          .10000E-03    6.1814       -.54705E-06** at limit **
   4  Prefactor     .10000E-03    .84940       -.34807E-07** at limit **
   5  Prefactor     1.7524        4.4738        .17760E-05    .84090E-04
   6  Prefactor     .10000E-03    1.2213       -.89345E-07** at limit **
   7  Prefactor     .10000E-03    1.1133       -.14394E-06** at limit **
   8  Prefactor     11.100        10.460       -.51041E-06    .10132E-03
   9  Prefactor     12.878        12.879        .13668E-05   -.14545E-03
  10  norm          .10000E-03    .25223       -.28740E-06** at limit **
  11  Prefactor     .10000E-03    2.8439       -.10022E-06** at limit **
  12  norm          .66706        .74536       -.15380E-06   -.53485E-05
  13  Prefactor     .10040E-03    3.4610        .51340E-06** at limit **
  14  norm          12.079        8.6124       -.19181E-06    .15384E-03
  15  Prefactor     7.7262        7.3117        .18252E-05   -.30986E-03
  16  norm          .10000E-03    .59896       -.35553E-06** at limit **
  17  Prefactor     7.4048        3.7832        .63710E-07    .20124E-03
  18  Prefactor     20.001        45.985       -.52941E-06   -.14927E-03
  19  norm          16.510        6.9025       -.16189E-06    .15813E-03
  20  Prefactor     .10000E-03    42.355       -.29024E-05** at limit **
  21  norm          .10000E-03    3.6663        .33571E-06** at limit **
  22  Prefactor     .10000E-03    12.603       -.11987E-05** at limit **
  23  Prefactor     .87203        6.8562       -.74158E-06    .17965E-03
  24  Prefactor     25.800        62.636       -.56620E-05    .43485E-04
  25  Prefactor     .10000E-03    22.500        .71549E-06** at limit **
  26  Prefactor     14.160        22.106       -.11865E-05    .58210E-04
  27  Prefactor     1.2815        5.2892        .37198E-05    .19648E-03
  28  Prefactor     .10000E-03    22.059        .70633E-06** at limit **
  29  norm          14.866        8.1397       -.36597E-06    .87942E-04
  30  Prefactor     .10000E-03    5.1300        .37183E-06** at limit **
  31  norm          13.909        8.6220       -.12822E-06   -.15854E-04
  32  Prefactor     .10000E-03    9.1365        .79374E-06** at limit **
  33  norm          26.130        10.043       -.20351E-06    .34801E-04
  34  norm          12.079        12.446       -.77521E-07    .78959E-05
  35  Normalizat    1.1648        .18105        .29740E-05    .24562E-03
  36  Prefactor     .93761        .13208        .28771E-06    .50403E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.75238
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.1005
  Prefactor  = 12.8783
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.667065
  Prefactor  = 0.000100403
  norm       = 12.0795
  Prefactor  = 7.72616
  norm       = 0.0001
  Prefactor  = 7.40477
  Prefactor  = 20.0013
  norm       = 16.5104
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.872031
  Prefactor  = 25.8005
  Prefactor  = 0.0001
  Prefactor  = 14.1595
  Prefactor  = 1.28146
  Prefactor  = 0.0001
  norm       = 14.8658
  Prefactor  = 0.0001
  norm       = 13.9091
  Prefactor  = 0.0001
  norm       = 26.1304
  norm       = 12.0787
  Normalizat = 1.16484
  Prefactor  = 0.937612
 **********
 **   18 **HESSE 
 **********

 FCN=   9125.757     FROM HESSE     STATUS=OK           819 CALLS     6249 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.1422        .16400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.5255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    6.1869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    .85246        .85972E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.7524        4.4670        .15480E-02   -1.5443    
   6  Prefactor     .10000E-03    1.2483        .10297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.2924        .19383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.100        10.457        .12025E-03   -1.5041    
   9  Prefactor     12.878        12.836        .11165E-03   -1.4990    
  10  norm          .10000E-03    .47762        .92633E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.8669        .15716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .66706        .67701        .81751E-03   -1.5545    
  13  Prefactor     .10040E-03    31.941        .30034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          12.079        8.5974        .57628E-03   -1.5013    
  15  Prefactor     7.7262        7.2330        .14429E-03   -1.5152    
  16  norm          .10000E-03    4.4111        .13969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.4048        3.7713        .63678E-03   -1.5164    
  18  Prefactor     20.001        46.086        .89754E-04   -1.4813    
  19  norm          16.510        6.9002        .49285E-03   -1.4895    
  20  Prefactor     .10000E-03    42.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.7420        .35628E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    12.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .87203        6.4527        .39305E-02   -1.5521    
  24  Prefactor     25.800        59.998        .78933E-04   -1.4692    
  25  Prefactor     .10000E-03    22.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     14.160        22.066        .10648E-03   -1.4955    
  27  Prefactor     1.2815        5.3190        .19600E-02   -1.5482    
  28  Prefactor     .10000E-03    22.256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          14.866        8.1407        .51941E-03   -1.4937    
  30  Prefactor     .10000E-03    5.1368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          13.909        8.6208        .53697E-03   -1.4962    
  32  Prefactor     .10000E-03    9.1334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  norm          26.130        10.048        .39183E-03   -1.4685    
  34  norm          12.079        12.457        .57628E-03   -1.5013    
  35  Normalizat    1.1648        .20843        .27944E-03   -.87696    
  36  Prefactor     .93761        .15622        .23406E-03   -.94839    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5692e-08
Minuit parameter uncertainties:
  1  2.30987e-05
  2  8.5593e-06
  3  1.44294e-06
  4  3.79256e-06
  5  4.46785
  6  9.44122e-06
  7  3.21656e-05
  8  10.4585
  9  12.8386
  10  3.89707e-06
  11  1.27545e-05
  12  0.677019
  13  0.00717907
  14  8.59831
  15  7.23377
  16  3.81028e-05
  17  3.77145
  18  46.1681
  19  6.90056
  20  1.47957e-05
  21  1.91781e-05
  22  1.19121e-05
  23  4.74468
  24  60.1391
  25  5.29536e-05
  26  22.0783
  27  5.22211
  28  7.13639e-05
  29  8.14134
  30  1.75878e-05
  31  8.62157
  32  2.34389e-05
  33  10.0486
  34  12.4601
  35  0.208578
  36  0.156291
Done.

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

Extracting fit parameters...

4FGL J1728.3+5013
   Spectrum: PowerLaw
341    Prefactor:  7.405e+00  3.771e+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

GAL_V02
   Spectrum: PowerLaw
664    Prefactor:  9.376e-01  1.563e-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.165e+00  2.086e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 21.79
Ra Dec: 262.078 50.227
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 4.12e-08 +/- 2.10e-08
Energy Flux (Fixed Index): 5.31e-05 +/- 2.71e-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) = 9125.65797491
delta logL = 0.0991106447364

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9125.63154594
delta logL = 0.125539616096

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.2141       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5986       1.0000          .0000       10.000    
     3 'Normalizat'    1.1733       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93615       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9125.632     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      252 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.2147        4.4878        .13988E-03    .24382E-04
   2  Index         1.5982        .35818        .73396E-02    .38300E-03
   3  Normalizat    1.1734        .19954        .27856E-03   -.18611E-04
   4  Prefactor     .93609        .15233        .23427E-03   -.12617E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.21468
  Index      = 1.59817
  Normalizat = 1.17341
  Prefactor  = 0.936092
 **********
 **   18 **HESSE 
 **********

 FCN=   9125.632     FROM HESSE     STATUS=OK            25 CALLS      277 TOTAL
                     EDM=   .82E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.2147        4.4555        .55954E-05   -1.5135    
   2  Index         1.5982        .35554        .14679E-02   -.74826    
   3  Normalizat    1.1734        .19970        .11142E-04   -.87428    
   4  Prefactor     .93609        .15249        .93707E-05   -.94891    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.16488e-13
Minuit parameter uncertainties:
  1  4.45566
  2  0.356097
  3  0.199828
  4  0.152555
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/640750': 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) = 9125.63154507
delta logL = 0.125540486773

Extracting fit parameters...

4FGL J1728.3+5013
   Spectrum: PowerLaw
341    Prefactor:  8.215e+00  4.456e+00  1.000e-04  1.000e+04 ( 1.000e-13)
342        Index:  1.598e+00  3.561e-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:  9.361e-01  1.526e-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.173e+00  1.998e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 22.01
Ra Dec: 262.078 50.227
Photon Index (Free Index): 1.60 +/- 0.36
Photon Flux (Free Index): 3.19e-08 +/- 2.44e-08
Energy Flux (Free Index): 7.27e-05 +/- 6.00e-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/640750/cmap_HighResolution_678412801_678672001_4FGL_J1728.3+5013_daily_bin1694.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.12e-08', energy_flux2='7.27e-05', photon_flux_error='2.10e-08', dlogl='1.26e-01', energy_flux='5.31e-05', photon_flux2='3.19e-08', job_status='DONE', time_completed='2022-07-05 04:18:44.394629', photon_index_error2='0.36', photon_index2='1.60', ts='21.79', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='6.00e-05', EG='1.16', time_epoch_completed='1657019924.39', return_code='0', job_id='640750', GAL2='0.94', EG2='1.17', return_code2='0', energy_flux_error='2.71e-05', photon_flux_error2='2.44e-08', ts2='22.01', photon_index='1.78' WHERE bin_id='1694' AND source_name='4FGL J1728.3+5013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul  5 04:18:44 PDT 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 640859: <4FGL_J1728.3+5013_daily_bin1694> in cluster <slac> Done

Job <4FGL_J1728.3+5013_daily_bin1694> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Tue Jul  5 00:07:03 2022
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul  5 03:55:26 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:26 2022
Terminated at Tue Jul  5 04:15:03 2022
Results reported at Tue Jul  5 04:15:03 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1728.3+5013_daily_bin1694 262.078 50.2267 678412801 678672001 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 :                                   1107.00 sec.
    Max Memory :                                 618 MB
    Average Memory :                             292.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1177 sec.
    Turnaround time :                            14880 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 640750: <4FGL_J1728.3+5013_daily_bin1694> in cluster <slac> Done

Job <4FGL_J1728.3+5013_daily_bin1694> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Tue Jul  5 00:06:58 2022
Job was executed on host(s) <bullet0121>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul  5 03:54: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:54:06 2022
Terminated at Tue Jul  5 04:18:44 2022
Results reported at Tue Jul  5 04:18:44 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1728.3+5013_daily_bin1694 262.078 50.2267 678412801 678672001 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 :                                   1360.16 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             319.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1478 sec.
    Turnaround time :                            15106 sec.

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

