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


Performing analysis on: 4FGL_J2129.1-0240_daily_bin1706
RA = 322.296, Dec = -2.6829
tmin = 681523201, tmax = 681782401
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='506400', job_status='RUN', time_executed='2022-08-10 02:18:08.741333', time_epoch_executed='1660123088.74' WHERE source_name='4FGL J2129.1-0240' and cadence='daily' and bin_id='1706'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/506400

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/506400/ft1_4FGL_J2129.1-0240_daily_bin1706.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/506400/ft2_4FGL_J2129.1-0240_daily_bin1706.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/506400/ft1_4FGL_J2129.1-0240_daily_bin1706.fits outfile=/scratch/kocevski/506400/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin1706.fits ra=322.296 dec=-2.6829 rad=12.0 tmin=681523201.0 tmax=681782401.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 2.62
user 2.41
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/506400/ft2_4FGL_J2129.1-0240_daily_bin1706.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/506400/ft2_4FGL_J2129.1-0240_daily_bin1706.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/506400/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin1706.fits evtable="EVENTS" outfile="/scratch/kocevski/506400/ft1_filtered_4FGL_J2129.1-0240_daily_bin1706.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.33
sys 0.16

Number of photons that the gtmktime cut: 240

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/506400/ft1_filtered_4FGL_J2129.1-0240_daily_bin1706.fits" evtable="EVENTS" scfile=/scratch/kocevski/506400/ft2_4FGL_J2129.1-0240_daily_bin1706.fits sctable="SC_DATA" outfile=/scratch/kocevski/506400/ltcube_681523201_681782401_4FGL_J2129.1-0240_daily_bin1706.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/506400/ft2_4FGL_J2129.1-0240_daily_bin1706.fits
.....................!
real 15.27
user 14.89
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/506400/ft1_filtered_4FGL_J2129.1-0240_daily_bin1706.fits evtable="EVENTS" scfile=/scratch/kocevski/506400/ft2_4FGL_J2129.1-0240_daily_bin1706.fits sctable="SC_DATA" expcube=/scratch/kocevski/506400/ltcube_681523201_681782401_4FGL_J2129.1-0240_daily_bin1706.fits outfile=/scratch/kocevski/506400/expmap_681523201_681782401_4FGL_J2129.1-0240_daily_bin1706.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/506400/ltcube_681523201_681782401_4FGL_J2129.1-0240_daily_bin1706.fits
.....................!
real 194.80
user 188.62
sys 5.64

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

Setting source of interest to:
4FGL J2129.1-0240 @ 322.296 -2.6829

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/506400/ft1_filtered_4FGL_J2129.1-0240_daily_bin1706.fits scfile=/scratch/kocevski/506400/ft2_4FGL_J2129.1-0240_daily_bin1706.fits outfile=/scratch/kocevski/506400/cmap_681523201_681782401_4FGL_J2129.1-0240_daily_bin1706.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=322.296 yref=-2.6829 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/506400/ft1_filtered_4FGL_J2129.1-0240_daily_bin1706.fits scfile=/scratch/kocevski/506400/ft2_4FGL_J2129.1-0240_daily_bin1706.fits outfile=/scratch/kocevski/506400/cmap_HighResolution_681523201_681782401_4FGL_J2129.1-0240_daily_bin1706.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=322.296 yref=-2.6829 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.58
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/506400/ft1_filtered_4FGL_J2129.1-0240_daily_bin1706.fits evtable="EVENTS" scfile=/scratch/kocevski/506400/ft2_4FGL_J2129.1-0240_daily_bin1706.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/506400/Model_4FGL_J2129.1-0240_daily_bin1706.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/506400/ft1_filtered_4FGL_J2129.1-0240_daily_bin1706.fits....................!
real 39.28
user 37.86
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/506400/ft1_filtered_4FGL_J2129.1-0240_daily_bin1706.fits', '/scratch/kocevski/506400/ft2_4FGL_J2129.1-0240_daily_bin1706.fits', expMap='/scratch/kocevski/506400/expmap_681523201_681782401_4FGL_J2129.1-0240_daily_bin1706.fits', expCube='/scratch/kocevski/506400/ltcube_681523201_681782401_4FGL_J2129.1-0240_daily_bin1706.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/506400/Model_4FGL_J2129.1-0240_daily_bin1706.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2129.1-0240'

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  5.059e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  2.637e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
296        Scale:  7.565e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/506400/ft1_filtered_4FGL_J2129.1-0240_daily_bin1706.fits
Spacecraft file(s): /scratch/kocevski/506400/ft2_4FGL_J2129.1-0240_daily_bin1706.fits
Exposure map: /scratch/kocevski/506400/expmap_681523201_681782401_4FGL_J2129.1-0240_daily_bin1706.fits
Exposure cube: /scratch/kocevski/506400/ltcube_681523201_681782401_4FGL_J2129.1-0240_daily_bin1706.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/506400/Model_4FGL_J2129.1-0240_daily_bin1706.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) = 2854.77595435

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    79.814       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12540E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.430       1.0000         .10000E-03   10000.    
     6 'Prefactor '    54.185       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    129.37       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.460       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11357E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .91329E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    76.395       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10450E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    19.330       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .71897       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87326       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2854.745     FROM MIGRAD    STATUS=CONVERGED    626 CALLS     2945 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.8789        .11812E-06** at limit **
   2  Prefactor     79.851        60.352       -.13349E-04   -.37548E-04
   3  Prefactor     .10032E-03    674.59        .12933E-03** at limit **
   4  Prefactor     .10000E-03    20.696       -.77938E-06** at limit **
   5  Prefactor     13.441        23.976        .52668E-05    .96914E-05
   6  Prefactor     53.914        123.52       -.19531E-03   -.99752E-04
   7  Prefactor     .10000E-03    40.444        .22236E-04** at limit **
   8  Prefactor     129.46        90.654        .17542E-04   -.45656E-04
   9  Prefactor     13.568        39.831       -.46074E-04    .41650E-05
  10  Prefactor     .10001E-03    122.04       -.39740E-04** at limit **
  11  Prefactor     .10000E-03    6.8275       -.23585E-06** at limit **
  12  Prefactor     .82908E-01    3.2491        .28605E-05   -.60475E-03
  13  Prefactor     76.078        68.540        .54009E-05   -.24063E-03
  14  Prefactor     .10000E-03    88.713        .86111E-04** at limit **
  15  norm          .10000E-03    19.212        .69491E-06** at limit **
  16  Prefactor     .10000E-03    38.599       -.26591E-04** at limit **
  17  norm          .10000E-03    10.390       -.21725E-06** at limit **
  18  Prefactor     .10000E-03    4.3544       -.27572E-06** at limit **
  19  Prefactor     .10000E-03    18.635       -.11278E-05** at limit **
  20  Prefactor     .10003E-03    47.925       -.10126E-04** at limit **
  21  Prefactor     .10000E-03    28.019       -.86614E-06** at limit **
  22  Prefactor     .10000E-03    11.916       -.28544E-06** at limit **
  23  Prefactor     19.357        28.224        .23112E-05    .57543E-04
  24  Normalizat    .71835        .37006        .34766E-04   -.31943E-03
  25  Prefactor     .87318        .16109        .11937E-05   -.42281E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 79.8508
  Prefactor  = 0.000100316
  Prefactor  = 0.0001
  Prefactor  = 13.4406
  Prefactor  = 53.9136
  Prefactor  = 0.000100001
  Prefactor  = 129.465
  Prefactor  = 13.5676
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 0.0829079
  Prefactor  = 76.0775
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.00010003
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  Prefactor  = 19.3569
  Normalizat = 0.718348
  Prefactor  = 0.87318
 **********
 **   18 **HESSE 
 **********

 FCN=   2854.745     FROM HESSE     STATUS=OK           415 CALLS     3360 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.8827        .10277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     79.851        60.343        .44954E-04   -1.3918    
   3  Prefactor     .10032E-03    704.74        .41212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    20.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.441        24.000        .10930E-03   -1.4975    
   6  Prefactor     53.914        123.84        .27245E-03   -1.4238    
   7  Prefactor     .10000E-03    40.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     129.46        90.630        .17699E-03   -1.3427    
   9  Prefactor     13.568        39.839        .10918E-03   -1.4971    
  10  Prefactor     .10001E-03    122.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.8318        .13636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .82908E-01    44.117        .17106E-02   -1.5650    
  13  Prefactor     76.078        69.736        .45941E-04   -1.3961    
  14  Prefactor     .10000E-03    88.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    19.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    38.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    10.407        .16821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.3641        .10887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    18.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10003E-03    49.674        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    28.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.929        .18009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     19.357        28.309        .91098E-04   -1.4828    
  24  Normalizat    .71835        .43419        .37549E-03   -1.0317    
  25  Prefactor     .87318        .19250        .16516E-03   -.97085    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.84813e-09
Minuit parameter uncertainties:
  1  2.83762e-05
  2  60.3897
  3  0.0302236
  4  6.43058e-05
  5  24.0169
  6  124.434
  7  0.000314552
  8  90.7274
  9  39.9172
  10  0.0026826
  11  3.37258e-05
  12  3.82551
  13  69.8107
  14  0.000804845
  15  2.31052e-05
  16  0.000294525
  17  0.000101866
  18  6.00852e-05
  19  0.000230759
  20  0.00246108
  21  0.000625243
  22  0.000167124
  23  28.3283
  24  0.436296
  25  0.192649
Done.

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

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  2.683e-03  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  2.637e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
296        Scale:  7.565e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
548    Prefactor:  8.732e-01  1.926e-01  0.000e+00  1.000e+01 ( 1.000e+00)
549        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
550        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
547   Normalization:  7.183e-01  4.363e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 322.296 -2.683
Photon Flux Upper Limit: 2.71e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.12e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/506400/likelihoodResults_681523201_681782401_4FGL_J2129.1-0240_daily_bin1706.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) = 2854.74519969
delta logL = -3.89191905015e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2854.7451608
delta logL = -2.727165338e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2854.745     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      238 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    9002.6        .90712E-02** at limit **
   2  Index         2.6329        8.6315        .50000       -.31477E-05
   3  Normalizat    .71836        .98125E-01    .84777E-01    .20486E-04
   4  Prefactor     .87318        .47521E-01    .44662E-01    .17492E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100018
  Index      = 2.6329
  Normalizat = 0.718358
  Prefactor  = 0.873177
 **********
 **   18 **HESSE 
 **********

 FCN=   2854.745     FROM HESSE     STATUS=OK            31 CALLS      269 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    331.51        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6329        5.8473        .50000       -.49317    
   3  Normalizat    .71836        .38278        .37547E-03   -1.0317    
   4  Prefactor     .87318        .18676        .16516E-03   -.97085    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70394e-10
Minuit parameter uncertainties:
  1  0.00497642
  2  7.48844
  3  0.384215
  4  0.186899
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/506400': 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) = 2854.74516077
delta logL = -2.71984390565e-09

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  4.976e-03  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  2.633e+00  7.488e+00  0.000e+00  1.000e+01 (-1.000e+00)
296        Scale:  7.565e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
548    Prefactor:  8.732e-01  1.869e-01  0.000e+00  1.000e+01 ( 1.000e+00)
549        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
550        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
547   Normalization:  7.184e-01  3.842e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 322.296 -2.683

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/506400/cmap_HighResolution_681523201_681782401_4FGL_J2129.1-0240_daily_bin1706.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.12e-02', job_status='DONE', photon_flux_upper_limit='2.71e-07', time_completed='2022-08-10 02:26:19.648250', job_id='506400', GAL2='0.87', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1660123579.65', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='-2.72e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='1706' AND source_name='4FGL J2129.1-0240' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Aug 10 02:26:19 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0173>
Subject: Job 506400: <4FGL_J2129.1-0240_daily_bin1706> in cluster <slac> Done

Job <4FGL_J2129.1-0240_daily_bin1706> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Aug 10 02:10:44 2022
Job was executed on host(s) <bullet0173>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Aug 10 02:15:26 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Aug 10 02:15:26 2022
Terminated at Wed Aug 10 02:26:20 2022
Results reported at Wed Aug 10 02:26:20 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.1-0240_daily_bin1706 322.296 -2.6829 681523201 681782401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2129.1-0240 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   493.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             231.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   655 sec.
    Turnaround time :                            936 sec.

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

