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


Performing analysis on: 4FGL_J1728.3+5013_monthly_bin167
RA = 262.078, Dec = 50.2267
tmin = 669859201, tmax = 672451201
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='902374', job_status='RUN', time_executed='2022-04-24 02:32:16.885877', time_epoch_executed='1650792736.89' WHERE source_name='4FGL J1728.3+5013' and cadence='monthly' and bin_id='167'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/902374

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/902374/ft1_4FGL_J1728.3+5013_monthly_bin167.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/902374/ft2_4FGL_J1728.3+5013_monthly_bin167.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/902374/ft1_4FGL_J1728.3+5013_monthly_bin167.fits outfile=/scratch/kocevski/902374/ft1_filteredMKT_4FGL_J1728.3+5013_monthly_bin167.fits ra=262.078 dec=50.2267 rad=12.0 tmin=669859201.0 tmax=672451201.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 38.35
user 37.33
sys 0.93

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/902374/ft2_4FGL_J1728.3+5013_monthly_bin167.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/902374/ft1_filteredMKT_4FGL_J1728.3+5013_monthly_bin167.fits evtable="EVENTS" outfile="/scratch/kocevski/902374/ft1_filtered_4FGL_J1728.3+5013_monthly_bin167.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.87
user 0.65
sys 0.20

Number of photons that the gtmktime cut: 8013

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/902374/ft1_filtered_4FGL_J1728.3+5013_monthly_bin167.fits" evtable="EVENTS" scfile=/scratch/kocevski/902374/ft2_4FGL_J1728.3+5013_monthly_bin167.fits sctable="SC_DATA" outfile=/scratch/kocevski/902374/ltcube_669859201_672451201_4FGL_J1728.3+5013_monthly_bin167.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/902374/ft2_4FGL_J1728.3+5013_monthly_bin167.fits
.....................!
real 137.90
user 137.24
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/902374/ft1_filtered_4FGL_J1728.3+5013_monthly_bin167.fits evtable="EVENTS" scfile=/scratch/kocevski/902374/ft2_4FGL_J1728.3+5013_monthly_bin167.fits sctable="SC_DATA" expcube=/scratch/kocevski/902374/ltcube_669859201_672451201_4FGL_J1728.3+5013_monthly_bin167.fits outfile=/scratch/kocevski/902374/expmap_669859201_672451201_4FGL_J1728.3+5013_monthly_bin167.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/902374/ltcube_669859201_672451201_4FGL_J1728.3+5013_monthly_bin167.fits
.....................!
real 194.03
user 188.29
sys 5.33

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/902374/ft1_filtered_4FGL_J1728.3+5013_monthly_bin167.fits scfile=/scratch/kocevski/902374/ft2_4FGL_J1728.3+5013_monthly_bin167.fits outfile=/scratch/kocevski/902374/cmap_669859201_672451201_4FGL_J1728.3+5013_monthly_bin167.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.83
user 0.63
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/902374/ft1_filtered_4FGL_J1728.3+5013_monthly_bin167.fits scfile=/scratch/kocevski/902374/ft2_4FGL_J1728.3+5013_monthly_bin167.fits outfile=/scratch/kocevski/902374/cmap_HighResolution_669859201_672451201_4FGL_J1728.3+5013_monthly_bin167.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.82
user 0.64
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    19.052       1.0000         .10000E-03   10000.    
     3 'norm      '    2.6378       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .89253       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.4938       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.7418       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.5057       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.1602       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.5040       1.0000         .10000E-03   10000.    
    10 'norm      '    .22036       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .78383E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .60495E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10341E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    15.435       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .69954       1.0000         .10000E-03   10000.    
    16 'norm      '    4.5184       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .83624       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .42468       1.0000         .10000E-03   10000.    
    19 'norm      '    .65624       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.2602       1.0000         .10000E-03   10000.    
    21 'norm      '    1.2557       1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.002       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.8432       1.0000         .10000E-03   10000.    
    24 'Prefactor '    13.459       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.8695       1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.8361       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .55970       1.0000         .10000E-03   10000.    
    29 'norm      '    1.3263       1.0000         .10000E-03   10000.    
    30 'Prefactor '    9.4981       1.0000         .10000E-03   10000.    
    31 'norm      '    5.5868       1.0000         .10000E-03   10000.    
    32 'Prefactor '    2.2911       1.0000         .10000E-03   10000.    
    33 'norm      '    6.8182       1.0000         .10000E-03   10000.    
    34 'norm      '    6.9440       1.0000         .10000E-03   10000.    
    35 'Normalizat'    1.0930       1.0000         .10000E-01   10.000    
    36 'Prefactor '    1.0179       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   85311.39     FROM MIGRAD    STATUS=CONVERGED   1034 CALLS     4701 TOTAL
                     EDM=   .75E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .29334         .0000    ** at limit **
   2  norm          19.051        5.4745         .0000       -.16049E-03
   3  norm          2.6378        2.0242         .0000       -.17804E-01
   4  Prefactor     .89265        .96102         .0000        .13183E-01
   5  Prefactor     4.4938        1.6963         .0000        .58030E-02
   6  Prefactor     2.7417        .91140         .0000        .42000E-02
   7  Prefactor     1.5056        .83215         .0000        .81494E-02
   8  Prefactor     3.1603        2.0603         .0000        .26804E-02
   9  Prefactor     7.5035        4.5815         .0000        .78454E-03
  10  norm          .22034        .18865         .0000        .17509E-01
  11  Prefactor     .10000E-03    .53439         .0000    ** at limit **
  12  norm          .60446E-01    .10633         .0000        .27210E-01
  13  Prefactor     .10000E-03    .30098         .0000    ** at limit **
  14  norm          15.435        2.8695         .0000       -.86348E-02
  15  Prefactor     .69927        .95696         .0000        .34597E-02
  16  norm          4.5183        .62263         .0000       -.11992E-02
  17  Prefactor     .83607        .71113         .0000       -.36745E-02
  18  Prefactor     .42028        2.0831         .0000        .36015E-02
  19  norm          .65670        .76875         .0000        .97298E-02
  20  Prefactor     4.2602        10.349         .0000        .32343E-02
  21  norm          1.2558        1.0105         .0000        .56216E-02
  22  Prefactor     16.003        9.5290         .0000       -.42745E-03
  23  Prefactor     2.8432        1.2187         .0000        .45695E-02
  24  Prefactor     13.459        10.001         .0000       -.26529E-03
  25  Prefactor     .10000E-03    10.259         .0000    ** at limit **
  26  Prefactor     2.8689        8.3039         .0000        .77584E-02
  27  Prefactor     5.8363        2.3937         .0000        .34243E-02
  28  Prefactor     .55629        1.6870         .0000        .49928E-02
  29  norm          1.3267        1.6571         .0000        .26206    
  30  Prefactor     9.4984        4.2864         .0000       -.33271E-02
  31  norm          5.5869        1.8940         .0000        .46330E-01
  32  Prefactor     2.2911        2.3594         .0000       -.22584E-01
  33  norm          6.8184        2.5002         .0000        .25536E-02
  34  norm          6.9442        2.6685         .0000        .20820E-02
  35  Normalizat    1.0930        .62458E-01     .0000       -.20415E-02
  36  Prefactor     1.0179        .43374E-01     .0000       -.21140E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 19.0513
  norm       = 2.63784
  Prefactor  = 0.892652
  Prefactor  = 4.49384
  Prefactor  = 2.74173
  Prefactor  = 1.50564
  Prefactor  = 3.1603
  Prefactor  = 7.50349
  norm       = 0.220341
  Prefactor  = 0.000100003
  norm       = 0.0604464
  Prefactor  = 0.0001
  norm       = 15.4345
  Prefactor  = 0.699272
  norm       = 4.5183
  Prefactor  = 0.836073
  Prefactor  = 0.42028
  norm       = 0.656702
  Prefactor  = 4.26021
  norm       = 1.25577
  Prefactor  = 16.0029
  Prefactor  = 2.8432
  Prefactor  = 13.4592
  Prefactor  = 0.0001
  Prefactor  = 2.86894
  Prefactor  = 5.83631
  Prefactor  = 0.556292
  norm       = 1.32673
  Prefactor  = 9.49838
  norm       = 5.58694
  Prefactor  = 2.29113
  norm       = 6.81844
  norm       = 6.94416
  Normalizat = 1.093
  Prefactor  = 1.01786
 **********
 **   18 **HESSE 
 **********

 FCN=   85311.39     FROM HESSE     STATUS=OK           857 CALLS     5558 TOTAL
                     EDM=   .21E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .69370        .30480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          19.051        5.4461        .91761E-04   -1.4835    
   3  norm          2.6378        2.0258        .12552E-02   -1.5383    
   4  Prefactor     .89265        .93223        .27935E-03   -1.5519    
   5  Prefactor     4.4938        1.6990        .18993E-03   -1.5284    
   6  Prefactor     2.7417        .89252        .14843E-03   -1.5377    
   7  Prefactor     1.5056        .82290        .18891E-03   -1.5463    
   8  Prefactor     3.1603        2.0538        .22800E-03   -1.5352    
   9  Prefactor     7.5035        4.5664        .14640E-03   -1.5160    
  10  norm          .22034        .17166        .10579E-02   -1.5614    
  11  Prefactor     .10000E-03    .59774        .56003E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .60446E-01    .16024        .11706E-02   -1.5659    
  13  Prefactor     .10000E-03    .71742        .30160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          15.435        2.8420        .10195E-03   -1.4922    
  15  Prefactor     .69927        .95492        .31705E-03   -1.5541    
  16  norm          4.5183        .62104        .79969E-04   -1.5283    
  17  Prefactor     .83607        .54329        .21584E-02   -1.5525    
  18  Prefactor     .42028        14.684        .79751E-02   -1.5578    
  19  norm          .65670        .91473        .25933E-02   -1.5546    
  20  Prefactor     4.2602        10.216        .97603E-03   -1.5295    
  21  norm          1.2558        .98909        .24997E-03   -1.5484    
  22  Prefactor     16.003        9.4831        .10012E-03   -1.4908    
  23  Prefactor     2.8432        1.2069        .19718E-03   -1.5371    
  24  Prefactor     13.459        9.9810        .10918E-03   -1.4974    
  25  Prefactor     .10000E-03    10.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     2.8689        8.2520        .11998E-02   -1.5369    
  27  Prefactor     5.8363        2.3887        .16624E-03   -1.5225    
  28  Prefactor     .55629        6.5301        .63271E-02   -1.5559    
  29  norm          1.3267        1.6389        .19082E-02   -1.5478    
  30  Prefactor     9.4984        4.2643        .13003E-03   -1.5091    
  31  norm          5.5869        1.8915        .84983E-03   -1.5235    
  32  Prefactor     2.2911        2.3670        .13559E-02   -1.5405    
  33  norm          6.8184        2.4978        .15366E-03   -1.5186    
  34  norm          6.9442        2.6689        .15225E-03   -1.5181    
  35  Normalizat    1.0930        .72666E-01    .29103E-03   -.89977    
  36  Prefactor     1.0179        .51604E-01    .22453E-03   -.92136    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1479e-06
Minuit parameter uncertainties:
  1  2.76678e-07
  2  5.44628
  3  2.02586
  4  0.932241
  5  1.69906
  6  0.892528
  7  0.822907
  8  2.05384
  9  4.56662
  10  0.171656
  11  8.11297e-05
  12  0.160245
  13  3.59842e-06
  14  2.84201
  15  0.954941
  16  0.621045
  17  0.543295
  18  4.96926
  19  0.91475
  20  10.2203
  21  0.989099
  22  9.48397
  23  1.20693
  24  9.98222
  25  0.000143265
  26  8.25525
  27  2.38872
  28  3.81209
  29  1.63896
  30  4.2644
  31  1.89154
  32  2.3671
  33  2.49779
  34  2.66891
  35  0.0726724
  36  0.0516064
Done.

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

Extracting fit parameters...

4FGL J1728.3+5013
   Spectrum: PowerLaw
341    Prefactor:  8.361e-01  5.433e-01  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:  1.018e+00  5.161e-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.093e+00  7.267e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.96
Ra Dec: 262.078 50.227
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 4.65e-09 +/- 3.02e-09
Energy Flux (Fixed Index): 6.00e-06 +/- 3.90e-06

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) = 85311.2471847
delta logL = 0.146806942852

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 85311.2468102
delta logL = 0.147181425753

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .60787       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2956       1.0000          .0000       10.000    
     3 'Normalizat'    1.0950       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0183       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   85311.25     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      313 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .60791        .61064        .22705E-02   -.29313E-02
   2  Index         1.2955        .70990        .15265E-01   -.67610E-04
   3  Normalizat    1.0950        .66483E-01    .29079E-03   -.16039E-02
   4  Prefactor     1.0183        .49993E-01    .22449E-03   -.27622E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.607907
  Index      = 1.29552
  Normalizat = 1.09497
  Prefactor  = 1.01829
 **********
 **   18 **HESSE 
 **********

 FCN=   85311.25     FROM HESSE     STATUS=OK            27 CALLS      340 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .60791        .60547        .90821E-04   -1.5552    
   2  Index         1.2955        .70243        .61062E-03   -.83440    
   3  Normalizat    1.0950        .66542E-01    .11632E-04   -.89913    
   4  Prefactor     1.0183        .50037E-01    .44899E-04   -.92122    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.53578e-10
Minuit parameter uncertainties:
  1  0.605476
  2  0.707654
  3  0.0665472
  4  0.0500397
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/902374': 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) = 85311.2468102
delta logL = 0.147181435721

Extracting fit parameters...

4FGL J1728.3+5013
   Spectrum: PowerLaw
341    Prefactor:  6.079e-01  6.055e-01  1.000e-04  1.000e+04 ( 1.000e-13)
342        Index:  1.296e+00  7.077e-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:  1.018e+00  5.004e-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.095e+00  6.655e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.24
Ra Dec: 262.078 50.227
Photon Index (Free Index): 1.30 +/- 0.71
Photon Flux (Free Index): 1.50e-09 +/- 2.43e-09
Energy Flux (Free Index): 9.34e-06 +/- 9.97e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/902374/cmap_HighResolution_669859201_672451201_4FGL_J1728.3+5013_monthly_bin167.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.65e-09', energy_flux2='9.34e-06', photon_flux_error='3.02e-09', dlogl='1.47e-01', energy_flux='6.00e-06', photon_flux2='1.50e-09', job_status='DONE', time_completed='2022-04-24 05:06:17.163383', photon_index_error2='0.71', photon_index2='1.30', ts='11.96', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='9.97e-06', EG='1.09', time_epoch_completed='1650801977.16', return_code='0', job_id='902374', GAL2='1.02', EG2='1.09', return_code2='0', energy_flux_error='3.90e-06', photon_flux_error2='2.43e-09', ts2='12.24', photon_index='1.78' WHERE bin_id='167' AND source_name='4FGL J1728.3+5013' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sun Apr 24 05:06:17 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 902374: <4FGL_J1728.3+5013_monthly_bin167> in cluster <slac> Done

Job <4FGL_J1728.3+5013_monthly_bin167> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Apr 24 02:10:23 2022
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Apr 24 02:31:31 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Apr 24 02:31:31 2022
Terminated at Sun Apr 24 05:06:18 2022
Results reported at Sun Apr 24 05:06:18 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1728.3+5013_monthly_bin167 262.078 50.2267 669859201 672451201 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 :                                   9215.00 sec.
    Max Memory :                                 1101 MB
    Average Memory :                             428.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   9286 sec.
    Turnaround time :                            10555 sec.

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

