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 97 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7488
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2129.1-0240_daily_bin1746
RA = 322.296, Dec = -2.6829
tmin = 691891201, tmax = 692150401
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='739097', job_status='RUN', time_executed='2022-12-08 01:42:05.388367', time_epoch_executed='1670492525.39' WHERE source_name='4FGL J2129.1-0240' and cadence='daily' and bin_id='1746'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/739097

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/739097/ft1_4FGL_J2129.1-0240_daily_bin1746.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/739097/ft2_4FGL_J2129.1-0240_daily_bin1746.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/739097/ft1_4FGL_J2129.1-0240_daily_bin1746.fits outfile=/scratch/kocevski/739097/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin1746.fits ra=322.296 dec=-2.6829 rad=12.0 tmin=691891201.0 tmax=692150401.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.74
user 4.47
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/739097/ft2_4FGL_J2129.1-0240_daily_bin1746.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/739097/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin1746.fits evtable="EVENTS" outfile="/scratch/kocevski/739097/ft1_filtered_4FGL_J2129.1-0240_daily_bin1746.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.48
user 0.32
sys 0.15

Number of photons that the gtmktime cut: 561

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/739097/ft1_filtered_4FGL_J2129.1-0240_daily_bin1746.fits" evtable="EVENTS" scfile=/scratch/kocevski/739097/ft2_4FGL_J2129.1-0240_daily_bin1746.fits sctable="SC_DATA" outfile=/scratch/kocevski/739097/ltcube_691891201_692150401_4FGL_J2129.1-0240_daily_bin1746.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/739097/ft2_4FGL_J2129.1-0240_daily_bin1746.fits
.....................!
real 11.85
user 11.49
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/739097/ft1_filtered_4FGL_J2129.1-0240_daily_bin1746.fits evtable="EVENTS" scfile=/scratch/kocevski/739097/ft2_4FGL_J2129.1-0240_daily_bin1746.fits sctable="SC_DATA" expcube=/scratch/kocevski/739097/ltcube_691891201_692150401_4FGL_J2129.1-0240_daily_bin1746.fits outfile=/scratch/kocevski/739097/expmap_691891201_692150401_4FGL_J2129.1-0240_daily_bin1746.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/739097/ltcube_691891201_692150401_4FGL_J2129.1-0240_daily_bin1746.fits
.....................!
real 190.48
user 185.26
sys 4.91

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/739097/ft1_filtered_4FGL_J2129.1-0240_daily_bin1746.fits scfile=/scratch/kocevski/739097/ft2_4FGL_J2129.1-0240_daily_bin1746.fits outfile=/scratch/kocevski/739097/cmap_691891201_692150401_4FGL_J2129.1-0240_daily_bin1746.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/739097/ft1_filtered_4FGL_J2129.1-0240_daily_bin1746.fits scfile=/scratch/kocevski/739097/ft2_4FGL_J2129.1-0240_daily_bin1746.fits outfile=/scratch/kocevski/739097/cmap_HighResolution_691891201_692150401_4FGL_J2129.1-0240_daily_bin1746.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.56
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/739097/ft1_filtered_4FGL_J2129.1-0240_daily_bin1746.fits evtable="EVENTS" scfile=/scratch/kocevski/739097/ft2_4FGL_J2129.1-0240_daily_bin1746.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/739097/Model_4FGL_J2129.1-0240_daily_bin1746.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/739097/ft1_filtered_4FGL_J2129.1-0240_daily_bin1746.fits.....................!
real 61.55
user 60.19
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/739097/ft1_filtered_4FGL_J2129.1-0240_daily_bin1746.fits', '/scratch/kocevski/739097/ft2_4FGL_J2129.1-0240_daily_bin1746.fits', expMap='/scratch/kocevski/739097/expmap_691891201_692150401_4FGL_J2129.1-0240_daily_bin1746.fits', expCube='/scratch/kocevski/739097/ltcube_691891201_692150401_4FGL_J2129.1-0240_daily_bin1746.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/739097/Model_4FGL_J2129.1-0240_daily_bin1746.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  0.000e+00  1.000e+06 ( 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/739097/ft1_filtered_4FGL_J2129.1-0240_daily_bin1746.fits
Spacecraft file(s): /scratch/kocevski/739097/ft2_4FGL_J2129.1-0240_daily_bin1746.fits
Exposure map: /scratch/kocevski/739097/expmap_691891201_692150401_4FGL_J2129.1-0240_daily_bin1746.fits
Exposure cube: /scratch/kocevski/739097/ltcube_691891201_692150401_4FGL_J2129.1-0240_daily_bin1746.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/739097/Model_4FGL_J2129.1-0240_daily_bin1746.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) = 6145.12935307

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15710E-07   1.0000          .0000       .10000E+07
     2 'Prefactor '    .11308E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    .62411E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    .78770E-07   1.0000          .0000       .10000E+07
     5 'Prefactor '    10.952       1.0000          .0000       .10000E+07
     6 'Prefactor '    .17712       1.0000          .0000       .10000E+07
     7 'Prefactor '    .15665E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    33.341       1.0000          .0000       .10000E+07
     9 'Prefactor '    .37914E-06   1.0000          .0000       .10000E+07
    10 'Prefactor '    .92149E-08   1.0000          .0000       .10000E+07
    11 'Prefactor '    47.935       1.0000          .0000       .10000E+07
    12 'norm      '    9.3166       1.0000          .0000       .10000E+07
    13 'Prefactor '    .26701E-07   1.0000          .0000       .10000E+07
    14 'norm      '    .13722E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    .17492E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    2.3884       1.0000          .0000       .10000E+07
    17 'Prefactor '    .21450E-06   1.0000          .0000       .10000E+07
    18 'Prefactor '    .56521E-06   1.0000          .0000       .10000E+07
    19 'Prefactor '    .90961E-06   1.0000          .0000       .10000E+07
    20 'Normalizat'    1.1579       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .75046       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6145.092     FROM MIGRAD    STATUS=CONVERGED    152 CALLS     1918 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.7967       -.73847E-07** at limit **
   2  Prefactor     .20084E-06    5.3233        .60965E-06** at limit **
   3  Prefactor     .88818E-09    5.3212        .96954E-06** at limit **
   4  Prefactor     .10336E-06    19.601       -.14529E-05** at limit **
   5  Prefactor     11.065        18.910       -.86551E-06    .63783E-01
   6  Prefactor     .29900E-01    1398.4        .68097E-05** at limit **
   7  Prefactor     .12762E-06    6.3098       -.74317E-06** at limit **
   8  Prefactor     33.354        13.511       -.53793E-06    .11979    
   9  Prefactor      .0000        3.0191        .19752E-06** at limit **
  10  Prefactor      .0000        1.4185        .16010E-06** at limit **
  11  Prefactor     47.921        2.8022       -.15730E-06    .41738E-01
  12  norm          9.3164        1.4922        .12882E-06    .67608E-02
  13  Prefactor     .10547E-08    12.810       -.47449E-06** at limit **
  14  norm          .55511E-10    3.9945        .77037E-06** at limit **
  15  Prefactor      .0000        4.1802       -.72366E-06** at limit **
  16  Prefactor     2.3892        6.9853        .24632E-07   -.41527E-03
  17  Prefactor     .16237E-06    5.5245       -.18281E-05** at limit **
  18  Prefactor     .57010E-07    23.822        .23712E-05** at limit **
  19  Prefactor     .20212E-06    5.4829        .11389E-05** at limit **
  20  Normalizat    1.1577        .25221       -.15600E-04   -.54687E-03
  21  Prefactor     .75059        .12726        .38537E-05   -.73312E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 2.00839e-07
  Prefactor  = 8.88178e-10
  Prefactor  = 1.03362e-07
  Prefactor  = 11.0655
  Prefactor  = 0.0298996
  Prefactor  = 1.2762e-07
  Prefactor  = 33.3539
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 47.9214
  norm       = 9.31644
  Prefactor  = 1.05471e-09
  norm       = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 2.38919
  Prefactor  = 1.6237e-07
  Prefactor  = 5.701e-08
  Prefactor  = 2.02116e-07
  Normalizat = 1.15768
  Prefactor  = 0.750594
 **********
 **   18 **HESSE 
 **********

 FCN=   6145.092     FROM HESSE     STATUS=OK           353 CALLS     2271 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.7960        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .20084E-06    6.5726        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .88818E-09    5.3317        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10336E-06    19.906        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.065        26.340        .30249E-03   -1.5641    
   6  Prefactor     .29900E-01    14.988        .12198E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .12762E-06    8.9333        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     33.354        35.123        .17321E-03   -1.5592    
   9  Prefactor      .0000        3.0048        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        1.4038        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     47.921        28.333        .14445E-03   -1.5570    
  12  norm          9.3164        12.024        .32810E-03   -1.5647    
  13  Prefactor     .10547E-08    12.912        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .55511E-10    3.9988        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        4.1727        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.3892        7.0498        .66246E-03   -1.5677    
  17  Prefactor     .16237E-06    6.4471        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .57010E-07    24.076        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .20212E-06    8.6559        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1577        .21481        .64264E-01   -.87921    
  21  Prefactor     .75059        .10494        .43069E-01   -1.0158    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22703e-06
Minuit parameter uncertainties:
  1  2.89115e-06
  2  0.00229771
  3  0.000137736
  4  0.00286861
  5  26.3404
  6  1.33887
  7  0.00213543
  8  35.1234
  9  6.4347e-06
  10  2.36226e-06
  11  28.3331
  12  12.0241
  13  0.000235554
  14  3.31817e-05
  15  7.03795e-06
  16  7.04987
  17  0.00204622
  18  0.00234311
  19  0.00264525
  20  0.214969
  21  0.104968
Done.

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

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  3.335e+01  3.512e+01  0.000e+00  1.000e+06 ( 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:  7.506e-01  1.050e-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:  1.158e+00  2.150e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.21
Ra Dec: 322.296 -2.683
Photon Index (Fixed Index): 2.64 +/- 0.00
Photon Flux (Fixed Index): 4.24e-08 +/- 4.46e-08
Energy Flux (Fixed Index): 1.07e-05 +/- 1.13e-05

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

Saving results to:
/scratch/kocevski/739097/likelihoodResults_691891201_692150401_4FGL_J2129.1-0240_daily_bin1746.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): 0
logL (Free Index) = 6144.16983857
delta logL = 0.922195255448

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6143.86090025
delta logL = 1.23113357558

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    72.028       1.0000          .0000       .10000E+07
     2 'Index     '    1.7640       1.0000          .0000       10.000    
     3 'Normalizat'    1.1873       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73497       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6143.861     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      243 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     71.978        55.648        .23567E-04    .46599E-03
   2  Index         1.7641        .43854        .74915E-02    .53964E-04
   3  Normalizat    1.1875        .24970        .28106E-03    .10072E-02
   4  Prefactor     .73492        .12676        .17599E-03    .14591E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 71.9781
  Index      = 1.76414
  Normalizat = 1.18751
  Prefactor  = 0.734916
 **********
 **   18 **HESSE 
 **********

 FCN=   6143.861     FROM HESSE     STATUS=OK            25 CALLS      268 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     71.978        55.988        .94268E-06   -1.5538    
   2  Index         1.7641        .44126        .29966E-03   -.70387    
   3  Normalizat    1.1875        .24991        .56211E-04   -.86990    
   4  Prefactor     .73492        .12687        .35197E-04   -1.0217    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39043e-09
Minuit parameter uncertainties:
  1  55.9887
  2  0.44225
  3  0.250164
  4  0.126917
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/739097': 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) = 6143.86089934
delta logL = 1.23113448241

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  7.198e+01  5.599e+01  0.000e+00  1.000e+06 ( 1.000e-13)
295        Index:  1.764e+00  4.422e-01  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:  7.349e-01  1.269e-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:  1.188e+00  2.502e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.69
Ra Dec: 322.296 -2.683
Photon Index (Free Index): 1.76 +/- 0.44
Photon Flux (Free Index): 3.33e-08 +/- 3.03e-08
Energy Flux (Free Index): 4.44e-05 +/- 5.08e-05

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/739097/cmap_HighResolution_691891201_692150401_4FGL_J2129.1-0240_daily_bin1746.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', comment='SUCCESS', photon_flux='4.24e-08', energy_flux2='4.44e-05', photon_flux_error='4.46e-08', dlogl='1.23e+00', energy_flux='1.07e-05', photon_flux2='3.33e-08', job_status='DONE', time_completed='2022-12-08 01:51:43.572209', photon_index_error2='0.44', photon_index2='1.76', ts='1.21', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', photon_flux_upper_limit='1.40e-07', energy_flux_error2='5.08e-05', EG='1.16', time_epoch_completed='1670493103.57', return_code='0', job_id='739097', GAL2='0.73', EG2='1.19', return_code2='0', energy_flux_error='1.13e-05', photon_flux_error2='3.03e-08', ts2='3.69', photon_index='2.64' WHERE bin_id='1746' AND source_name='4FGL J2129.1-0240' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec  8 01:51:43 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 739097: <4FGL_J2129.1-0240_daily_bin1746> in cluster <slac> Done

Job <4FGL_J2129.1-0240_daily_bin1746> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Dec  8 01:40:18 2022
Job was executed on host(s) <bullet0273>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec  8 01:40:18 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec  8 01:40:18 2022
Terminated at Thu Dec  8 01:51:44 2022
Results reported at Thu Dec  8 01:51:44 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.1-0240_daily_bin1746 322.296 -2.6829 691891201 692150401 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 :                                   581.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             269.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   685 sec.
    Turnaround time :                            686 sec.

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

