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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin1699
RA = 344.953, Dec = -15.8809
tmin = 679708801, tmax = 679968001
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='1438', job_status='RUN', time_executed='2022-07-20 00:39:15.336102', time_epoch_executed='1658302755.34' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='1699'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/1438

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/1438/ft1_4FGL_J2259.8-1552_daily_bin1699.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/1438/ft2_4FGL_J2259.8-1552_daily_bin1699.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/1438/ft1_4FGL_J2259.8-1552_daily_bin1699.fits outfile=/scratch/kocevski/1438/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin1699.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=679708801.0 tmax=679968001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.09
user 3.57
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/1438/ft2_4FGL_J2259.8-1552_daily_bin1699.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/1438/ft2_4FGL_J2259.8-1552_daily_bin1699.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/1438/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin1699.fits evtable="EVENTS" outfile="/scratch/kocevski/1438/ft1_filtered_4FGL_J2259.8-1552_daily_bin1699.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.54
user 0.33
sys 0.17

Number of photons that the gtmktime cut: 621

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/1438/ft1_filtered_4FGL_J2259.8-1552_daily_bin1699.fits" evtable="EVENTS" scfile=/scratch/kocevski/1438/ft2_4FGL_J2259.8-1552_daily_bin1699.fits sctable="SC_DATA" outfile=/scratch/kocevski/1438/ltcube_679708801_679968001_4FGL_J2259.8-1552_daily_bin1699.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/1438/ft2_4FGL_J2259.8-1552_daily_bin1699.fits
.....................!
real 12.30
user 11.91
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/1438/ft1_filtered_4FGL_J2259.8-1552_daily_bin1699.fits evtable="EVENTS" scfile=/scratch/kocevski/1438/ft2_4FGL_J2259.8-1552_daily_bin1699.fits sctable="SC_DATA" expcube=/scratch/kocevski/1438/ltcube_679708801_679968001_4FGL_J2259.8-1552_daily_bin1699.fits outfile=/scratch/kocevski/1438/expmap_679708801_679968001_4FGL_J2259.8-1552_daily_bin1699.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/1438/ltcube_679708801_679968001_4FGL_J2259.8-1552_daily_bin1699.fits
.....................!
real 192.01
user 185.85
sys 5.79

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

Setting source of interest to:
4FGL J2259.8-1552 @ 344.953 -15.8809

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/1438/ft1_filtered_4FGL_J2259.8-1552_daily_bin1699.fits scfile=/scratch/kocevski/1438/ft2_4FGL_J2259.8-1552_daily_bin1699.fits outfile=/scratch/kocevski/1438/cmap_679708801_679968001_4FGL_J2259.8-1552_daily_bin1699.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=344.953 yref=-15.8809 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/1438/ft1_filtered_4FGL_J2259.8-1552_daily_bin1699.fits scfile=/scratch/kocevski/1438/ft2_4FGL_J2259.8-1552_daily_bin1699.fits outfile=/scratch/kocevski/1438/cmap_HighResolution_679708801_679968001_4FGL_J2259.8-1552_daily_bin1699.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=344.953 yref=-15.8809 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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/1438/ft1_filtered_4FGL_J2259.8-1552_daily_bin1699.fits evtable="EVENTS" scfile=/scratch/kocevski/1438/ft2_4FGL_J2259.8-1552_daily_bin1699.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/1438/Model_4FGL_J2259.8-1552_daily_bin1699.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/1438/ft1_filtered_4FGL_J2259.8-1552_daily_bin1699.fits.....................!
real 58.52
user 57.14
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/1438/ft1_filtered_4FGL_J2259.8-1552_daily_bin1699.fits', '/scratch/kocevski/1438/ft2_4FGL_J2259.8-1552_daily_bin1699.fits', expMap='/scratch/kocevski/1438/expmap_679708801_679968001_4FGL_J2259.8-1552_daily_bin1699.fits', expCube='/scratch/kocevski/1438/ltcube_679708801_679968001_4FGL_J2259.8-1552_daily_bin1699.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/1438/Model_4FGL_J2259.8-1552_daily_bin1699.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2259.8-1552'

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  2.289e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.132e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  1.486e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/1438/ft1_filtered_4FGL_J2259.8-1552_daily_bin1699.fits
Spacecraft file(s): /scratch/kocevski/1438/ft2_4FGL_J2259.8-1552_daily_bin1699.fits
Exposure map: /scratch/kocevski/1438/expmap_679708801_679968001_4FGL_J2259.8-1552_daily_bin1699.fits
Exposure cube: /scratch/kocevski/1438/ltcube_679708801_679968001_4FGL_J2259.8-1552_daily_bin1699.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/1438/Model_4FGL_J2259.8-1552_daily_bin1699.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) = 6729.16330593

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    46.649       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.9068       1.0000         .10000E-03   10000.    
     5 'Prefactor '    41.082       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.6067       1.0000         .10000E-03   10000.    
     7 'norm      '    2.9672       1.0000         .10000E-03   10000.    
     8 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.969       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.9256       1.0000         .10000E-03   10000.    
    11 'norm      '    .89109E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.243       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .26138E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    69.380       1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.574       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    7.7805       1.0000         .10000E-03   10000.    
    22 'norm      '    .48684       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    15.002       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1864       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .69024       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5160E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6729.117     FROM MIGRAD    STATUS=CONVERGED    166 CALLS     3200 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     46.649        2.6422        .18134E-06   -.28344E-02
   2  Prefactor     .10004E-03    98.436        .13341E-05** at limit **
   3  Prefactor     .10000E-03    31.702        .81845E-07** at limit **
   4  norm          4.9076        4.1126        .14354E-06    .16251E-04
   5  Prefactor     40.764        89.942       -.35582E-05    .24539E-02
   6  Prefactor     3.6113        10.145        .17243E-05    .29229E-02
   7  norm          2.9664        1.1253        .10665E-06    .28441E-03
   8  norm          .10000E-03    3.7506        .40368E-07** at limit **
   9  Prefactor     32.969        4.2468        .49020E-06   -.10954E-02
  10  Prefactor     8.9666        26.504        .65421E-05   -.34983E-02
  11  norm          .83432E-01    6.3759       -.39076E-05    .25143E-03
  12  Prefactor     27.198        19.332       -.26523E-05   -.10889E-01
  13  Prefactor     .10001E-03    23.592        .11225E-05** at limit **
  14  Prefactor     .10000E-03    3.6189       -.19818E-06** at limit **
  15  Prefactor     .10000E-03    2.5829        .57941E-06** at limit **
  16  Prefactor     .10000E-03    5.9871       -.28133E-06** at limit **
  17  Prefactor     .10000E-03    2.2409        .75850E-06** at limit **
  18  Prefactor     69.425        12.463        .84798E-06    .77356E-02
  19  Prefactor     20.563        6.3918        .82808E-06   -.89684E-02
  20  Prefactor     .10000E-03    5.8742       -.59572E-06** at limit **
  21  norm          7.7799        6.7641       -.54370E-06    .19266E-03
  22  norm          .48691        1.1974        .19506E-06    .55534E-04
  23  Prefactor     .10001E-03    12.823       -.85981E-06** at limit **
  24  Prefactor     .10000E-03    4.4278       -.71370E-07** at limit **
  25  Prefactor     .10001E-03    12.892       -.10829E-05** at limit **
  26  norm          .10000E-03    .15381       -.33225E-07** at limit **
  27  norm          15.004        5.0659       -.40473E-07   -.58055E-05
  28  Normalizat    1.1859        .19802        .44227E-06   -.93529E-04
  29  Prefactor     .69058        .16476       -.19636E-05   -.15235E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 46.6491
  Prefactor  = 0.000100038
  Prefactor  = 0.0001
  norm       = 4.9076
  Prefactor  = 40.7644
  Prefactor  = 3.61128
  norm       = 2.96642
  norm       = 0.0001
  Prefactor  = 32.9688
  Prefactor  = 8.96662
  norm       = 0.0834317
  Prefactor  = 27.1984
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 69.4246
  Prefactor  = 20.5628
  Prefactor  = 0.0001
  norm       = 7.7799
  norm       = 0.486909
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  norm       = 0.0001
  norm       = 15.0043
  Normalizat = 1.18592
  Prefactor  = 0.690581
 **********
 **   18 **HESSE 
 **********

 FCN=   6729.117     FROM HESSE     STATUS=OK           633 CALLS     3833 TOTAL
                     EDM=   .96E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     46.649        23.006        .14676E-02   -1.4341    
   2  Prefactor     .10004E-03    98.465        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    31.671        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.9076        4.1448        .45394E-02   -1.5265    
   5  Prefactor     40.764        97.530        .15635E-02   -1.4430    
   6  Prefactor     3.6113        10.397        .53190E-02   -1.5328    
   7  norm          2.9664        1.1298        .58932E-02   -1.5363    
   8  norm          .10000E-03    1.2313        .29411E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     32.969        29.359        .17447E-02   -1.4559    
  10  Prefactor     8.9666        19.273        .33540E-02   -1.5109    
  11  norm          .83432E-01    1.0787        .29831E-01   -1.5650    
  12  Prefactor     27.198        33.953        .19188E-02   -1.4664    
  13  Prefactor     .10001E-03    5.3714        .10723       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.6012        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.5812        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.9321        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.2382        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     69.425        47.979        .12048E-02   -1.4040    
  19  Prefactor     20.563        18.733        .22076E-02   -1.4801    
  20  Prefactor     .10000E-03    5.8632        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          7.7799        6.9303        .35939E-02   -1.5150    
  22  norm          .48691        1.3415        .32825E-01   -1.5568    
  23  Prefactor     .10001E-03    12.825        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    4.4217        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10001E-03    12.880        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .14073        .13794E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          15.004        5.1409        .25852E-02   -1.4933    
  28  Normalizat    1.1859        .17477        .53787E-01   -.87039    
  29  Prefactor     .69058        .14287        .42271E-01   -1.0390    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.61723e-07
Minuit parameter uncertainties:
  1  23.0105
  2  0.00389819
  3  0.000113252
  4  4.14501
  5  97.9146
  6  10.4019
  7  1.12983
  8  4.01773e-07
  9  29.3715
  10  19.2863
  11  0.59966
  12  33.9773
  13  0.000502957
  14  4.66094e-06
  15  1.08671e-05
  16  6.12012e-06
  17  1.36324e-05
  18  48.0062
  19  18.7387
  20  1.65052e-05
  21  6.93106
  22  1.34156
  23  0.000541763
  24  1.5774e-06
  25  0.00065721
  26  1.51275e-07
  27  5.14103
  28  0.17486
  29  0.142946
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  6.120e-06  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.132e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  1.486e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  6.906e-01  1.429e-01  0.000e+00  1.000e+01 ( 1.000e+00)
514        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
515        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  1.186e+00  1.749e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 344.953 -15.881
Photon Flux Upper Limit: 5.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/1438/likelihoodResults_679708801_679968001_4FGL_J2259.8-1552_daily_bin1699.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) = 6729.11810272
delta logL = -0.000795736595137

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6729.11730882
delta logL = -1.84206328413e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11599E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1617       1.0000          .0000       10.000    
     3 'Normalizat'    1.1857       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69079       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5160E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6729.117     FROM MIGRAD    STATUS=FAILED        88 CALLS      241 TOTAL
                     EDM=   .67E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    524.44        .18142E-02** at limit **
   2  Index         2.1930        7.0630        .50000       -.44844E-04
   3  Normalizat    1.1859        .43107E-01    .23783E-03   -.18627E-03
   4  Prefactor     .69058        .36105E-01    .25295E-03   -.92764E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6729.117     FROM SIMPLEX   STATUS=UNCHANGED    169 CALLS      410 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    524.44        .46029E-03** at limit **
   2  Index         2.1930        7.0630        .37094E-05   -.44844E-04
   3  Normalizat    1.1859        .43107E-01    .14863E-06   -.18627E-03
   4  Prefactor     .69058        .36105E-01    .55021E-07   -.92764E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6729.117     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      444 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    1472.2        .36285E-03** at limit **
   2  Index         2.1934        7.3345        .50000       -.44876E-04
   3  Normalizat    1.1859        .15159        .47565E-04   -.19111E-03
   4  Prefactor     .69058        .12695        .10118E-04   -.96854E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100013
  Index      = 2.19338
  Normalizat = 1.18592
  Prefactor  = 0.690582
 **********
 **   18 **HESSE 
 **********

 FCN=   6729.117     FROM HESSE     STATUS=OK            29 CALLS      473 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    6.8133        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1934        6.0933        .50000       -.59599    
   3  Normalizat    1.1859        .19099        .95130E-05   -.87039    
   4  Prefactor     .69058        .15997        .20236E-05   -1.0390    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.30602e-09
Minuit parameter uncertainties:
  1  0.00059368
  2  4.25015
  3  0.191105
  4  0.160074
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/1438': 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) = 6729.11730635
delta logL = 6.2709023041e-07

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  5.937e-04  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.193e+00  4.250e+00  0.000e+00  1.000e+01 (-1.000e+00)
316        Scale:  1.486e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  6.906e-01  1.601e-01  0.000e+00  1.000e+01 ( 1.000e+00)
514        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
515        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  1.186e+00  1.911e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 344.953 -15.881

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/1438/cmap_HighResolution_679708801_679968001_4FGL_J2259.8-1552_daily_bin1699.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.04e-03', job_status='DONE', photon_flux_upper_limit='5.34e-08', time_completed='2022-07-20 00:52:12.352745', job_id='1438', GAL2='0.69', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1658303532.35', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='6.27e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1699' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jul 20 00:52:12 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 1438: <4FGL_J2259.8-1552_daily_bin1699> in cluster <slac> Done

Job <4FGL_J2259.8-1552_daily_bin1699> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Jul 20 00:35:44 2022
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jul 20 00:35:46 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jul 20 00:35:46 2022
Terminated at Wed Jul 20 00:52:13 2022
Results reported at Wed Jul 20 00:52:13 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin1699 344.953 -15.8809 679708801 679968001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2259.8-1552 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   778.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             231.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   986 sec.
    Turnaround time :                            989 sec.

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

