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


Performing analysis on: 4FGL_J2129.1-0240_daily_bin1759
RA = 322.296, Dec = -2.6829
tmin = 695260801, tmax = 695520001
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='573114', job_status='RUN', time_executed='2023-01-16 02:04:52.815141', time_epoch_executed='1673863492.82' WHERE source_name='4FGL J2129.1-0240' and cadence='daily' and bin_id='1759'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/573114

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/573114/ft1_4FGL_J2129.1-0240_daily_bin1759.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/573114/ft2_4FGL_J2129.1-0240_daily_bin1759.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/573114/ft1_4FGL_J2129.1-0240_daily_bin1759.fits outfile=/scratch/kocevski/573114/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin1759.fits ra=322.296 dec=-2.6829 rad=12.0 tmin=695260801.0 tmax=695520001.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.73
user 2.50
sys 0.21

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

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

Number of photons that the gtmktime cut: 480

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/573114/ft1_filtered_4FGL_J2129.1-0240_daily_bin1759.fits" evtable="EVENTS" scfile=/scratch/kocevski/573114/ft2_4FGL_J2129.1-0240_daily_bin1759.fits sctable="SC_DATA" outfile=/scratch/kocevski/573114/ltcube_695260801_695520001_4FGL_J2129.1-0240_daily_bin1759.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/573114/ft2_4FGL_J2129.1-0240_daily_bin1759.fits
.....................!
real 16.04
user 15.46
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/573114/ft1_filtered_4FGL_J2129.1-0240_daily_bin1759.fits evtable="EVENTS" scfile=/scratch/kocevski/573114/ft2_4FGL_J2129.1-0240_daily_bin1759.fits sctable="SC_DATA" expcube=/scratch/kocevski/573114/ltcube_695260801_695520001_4FGL_J2129.1-0240_daily_bin1759.fits outfile=/scratch/kocevski/573114/expmap_695260801_695520001_4FGL_J2129.1-0240_daily_bin1759.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/573114/ltcube_695260801_695520001_4FGL_J2129.1-0240_daily_bin1759.fits
.....................!
real 194.20
user 186.31
sys 5.65

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/573114/ft1_filtered_4FGL_J2129.1-0240_daily_bin1759.fits scfile=/scratch/kocevski/573114/ft2_4FGL_J2129.1-0240_daily_bin1759.fits outfile=/scratch/kocevski/573114/cmap_695260801_695520001_4FGL_J2129.1-0240_daily_bin1759.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.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/573114/ft1_filtered_4FGL_J2129.1-0240_daily_bin1759.fits scfile=/scratch/kocevski/573114/ft2_4FGL_J2129.1-0240_daily_bin1759.fits outfile=/scratch/kocevski/573114/cmap_HighResolution_695260801_695520001_4FGL_J2129.1-0240_daily_bin1759.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/573114/ft1_filtered_4FGL_J2129.1-0240_daily_bin1759.fits evtable="EVENTS" scfile=/scratch/kocevski/573114/ft2_4FGL_J2129.1-0240_daily_bin1759.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/573114/Model_4FGL_J2129.1-0240_daily_bin1759.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/573114/ft1_filtered_4FGL_J2129.1-0240_daily_bin1759.fits....................!
real 59.94
user 57.90
sys 1.33

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/573114/ft1_filtered_4FGL_J2129.1-0240_daily_bin1759.fits', '/scratch/kocevski/573114/ft2_4FGL_J2129.1-0240_daily_bin1759.fits', expMap='/scratch/kocevski/573114/expmap_695260801_695520001_4FGL_J2129.1-0240_daily_bin1759.fits', expCube='/scratch/kocevski/573114/ltcube_695260801_695520001_4FGL_J2129.1-0240_daily_bin1759.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/573114/Model_4FGL_J2129.1-0240_daily_bin1759.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/573114/ft1_filtered_4FGL_J2129.1-0240_daily_bin1759.fits
Spacecraft file(s): /scratch/kocevski/573114/ft2_4FGL_J2129.1-0240_daily_bin1759.fits
Exposure map: /scratch/kocevski/573114/expmap_695260801_695520001_4FGL_J2129.1-0240_daily_bin1759.fits
Exposure cube: /scratch/kocevski/573114/ltcube_695260801_695520001_4FGL_J2129.1-0240_daily_bin1759.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/573114/Model_4FGL_J2129.1-0240_daily_bin1759.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5624.4999171

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .76093       1.0000          .0000       .10000E+07
     2 'Prefactor '    8.6939       1.0000          .0000       .10000E+07
     3 'Prefactor '    2.8639       1.0000          .0000       .10000E+07
     4 'Prefactor '    137.69       1.0000          .0000       .10000E+07
     5 'Prefactor '    20.845       1.0000          .0000       .10000E+07
     6 'Prefactor '    .61473E-06   1.0000          .0000       .10000E+07
     7 'Prefactor '    7.3255       1.0000          .0000       .10000E+07
     8 'Prefactor '    38.341       1.0000          .0000       .10000E+07
     9 'Prefactor '    .27384E-06   1.0000          .0000       .10000E+07
    10 'Prefactor '    1.8475       1.0000          .0000       .10000E+07
    11 'Prefactor '    17.668       1.0000          .0000       .10000E+07
    12 'norm      '    .22304E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    .22699E-06   1.0000          .0000       .10000E+07
    14 'norm      '    2.9686       1.0000          .0000       .10000E+07
    15 'Prefactor '    .55511E-10   1.0000          .0000       .10000E+07
    16 'Prefactor '    10.114       1.0000          .0000       .10000E+07
    17 'Prefactor '    .14594E-06   1.0000          .0000       .10000E+07
    18 'Prefactor '    .42688E-07   1.0000          .0000       .10000E+07
    19 'Prefactor '    .41800E-07   1.0000          .0000       .10000E+07
    20 'Normalizat'    .37927       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0564       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=   5624.493     FROM MIGRAD    STATUS=CONVERGED     88 CALLS     2249 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .75627        10.587       -.40209E-05   -.40241E-01
   2  Prefactor     8.6793        14.334       -.33494E-05    .66785E-01
   3  Prefactor     2.8771        5.4534        .22571E-05   -.35618E-01
   4  Prefactor     137.72        1.4764       -.62470E-07    .17571E-01
   5  Prefactor     20.841        13.795        .20456E-05   -.29159E-01
   6  Prefactor     .84927E-06    8.9189       -.22184E-05** at limit **
   7  Prefactor     7.3229        2.1359       -.30161E-06   -.18216E-01
   8  Prefactor     38.360        3.3326       -.35714E-06    .44477E-01
   9  Prefactor     .77716E-07    6.0970        .64827E-06** at limit **
  10  Prefactor     1.8471        2.2856        .59004E-07   -.19573E-02
  11  Prefactor     17.669        4.0393       -.64554E-06    .20490E-01
  12  norm          .16653E-09    4.7741       -.37133E-06** at limit **
  13  Prefactor     .22572E-05    6.5729        .29520E-06** at limit **
  14  norm          2.9680        1.5750       -.46695E-06   -.50262E-02
  15  Prefactor      .0000        1.7315       -.15309E-05** at limit **
  16  Prefactor     10.115        1.7401       -.72891E-07    .15232E-01
  17  Prefactor     .46296E-07    5.8461       -.15798E-05** at limit **
  18  Prefactor     .11585E-06    4.6248       -.22538E-05** at limit **
  19  Prefactor     .10875E-06    4.6516       -.22545E-05** at limit **
  20  Normalizat    .37918        .25515        .82734E-05   -.75732E-05
  21  Prefactor     1.0565        .13227       -.24148E-05   -.73293E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.756269
  Prefactor  = 8.67933
  Prefactor  = 2.87706
  Prefactor  = 137.716
  Prefactor  = 20.8406
  Prefactor  = 8.49265e-07
  Prefactor  = 7.32293
  Prefactor  = 38.36
  Prefactor  = 7.77156e-08
  Prefactor  = 1.84706
  Prefactor  = 17.6692
  norm       = 1.66533e-10
  Prefactor  = 2.25725e-06
  norm       = 2.968
  Prefactor  = 0
  Prefactor  = 10.1146
  Prefactor  = 4.62963e-08
  Prefactor  = 1.15852e-07
  Prefactor  = 1.08746e-07
  Normalizat = 0.379179
  Prefactor  = 1.05646
 **********
 **   18 **HESSE 
 **********

 FCN=   5624.493     FROM HESSE     STATUS=OK           361 CALLS     2610 TOTAL
                     EDM=   .40E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .75627        29.880        .55894E-03   -1.5691    
   2  Prefactor     8.6793        77.481        .33972E-03   -1.5649    
   3  Prefactor     2.8771        102.72        .60043E-03   -1.5674    
   4  Prefactor     137.72        80.003        .85228E-04   -1.5473    
   5  Prefactor     20.841        29.620        .21909E-03   -1.5617    
   6  Prefactor     .84927E-06    12.378        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.3229        16.879        .37034E-03   -1.5654    
   8  Prefactor     38.360        57.837        .16152E-03   -1.5584    
   9  Prefactor     .77716E-07    6.1965        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.8471        2.5878        .76686E-03   -1.5681    
  11  Prefactor     17.669        31.893        .23800E-03   -1.5624    
  12  norm          .16653E-09    4.7810        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .22572E-05    11.393        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.9680        17.001        .58907E-03   -1.5674    
  15  Prefactor      .0000        1.7320        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.115        11.266        .31483E-03   -1.5644    
  17  Prefactor     .46296E-07    5.8818        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .11585E-06    9.4283        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10875E-06    9.4126        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .37918        .28495        .10825       -1.1839    
  21  Prefactor     1.0565        .12979        .39548E-01   -.90870    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.98217e-06
Minuit parameter uncertainties:
  1  9.50732
  2  51.8656
  3  34.3833
  4  80.0039
  5  29.62
  6  0.00648457
  7  16.8792
  8  57.8377
  9  0.00138771
  10  2.58777
  11  31.8937
  12  5.54614e-05
  13  0.0101422
  14  14.2068
  15  4.44511e-07
  16  11.2663
  17  0.00104363
  18  0.00209011
  19  0.00202342
  20  0.286044
  21  0.129831
Done.

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

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  3.836e+01  5.784e+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:  1.056e+00  1.298e-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:  3.792e-01  2.860e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/573114/likelihoodResults_695260801_695520001_4FGL_J2129.1-0240_daily_bin1759.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) = 5624.43186046
delta logL = 0.0611453179372

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5624.42919893
delta logL = 0.0638068463504

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    46.641       1.0000          .0000       .10000E+07
     2 'Index     '    2.3043       1.0000          .0000       10.000    
     3 'Normalizat'    .39132       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0523       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=   5624.429     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      261 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     46.641        2815.9        .14644E-03   -.25416E-02
   2  Index         2.3043        5.3360        .24289       -.11319E-03
   3  Normalizat    .39127        .11309        .10662        .49760E-04
   4  Prefactor     1.0523        .47529E-01    .39779E-01   -.56178E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 46.6415
  Index      = 2.30433
  Normalizat = 0.39127
  Prefactor  = 1.0523
 **********
 **   18 **HESSE 
 **********

 FCN=   5624.429     FROM HESSE     STATUS=OK            31 CALLS      292 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     46.641        61.683        .58575E-05   -1.5571    
   2  Index         2.3043        .88949        .11031E-01   -.56941    
   3  Normalizat    .39127        .25635        .47245E-03   -1.1775    
   4  Prefactor     1.0523        .13248        .15331E-03   -.91006    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10951e-09
Minuit parameter uncertainties:
  1  61.6839
  2  0.896243
  3  0.257119
  4  0.132516
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/573114': 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) = 5624.4291989
delta logL = 0.0638068711751

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  4.664e+01  6.168e+01  0.000e+00  1.000e+06 ( 1.000e-13)
295        Index:  2.304e+00  8.962e-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:  1.052e+00  1.325e-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:  3.913e-01  2.571e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.68
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/573114/cmap_HighResolution_695260801_695520001_4FGL_J2129.1-0240_daily_bin1759.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.50e-02', job_status='DONE', photon_flux_upper_limit='1.92e-07', time_completed='2023-01-16 02:14:28.402330', job_id='573114', GAL2='1.05', fit_tolerance='1e-08', EG2='0.39', EG='0.38', time_epoch_completed='1673864068.4', return_code2='0', ts='0.68', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='6.38e-02', ts2='0.82', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='1759' AND source_name='4FGL J2129.1-0240' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jan 16 02:14:28 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 573114: <4FGL_J2129.1-0240_daily_bin1759> in cluster <slac> Done

Job <4FGL_J2129.1-0240_daily_bin1759> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Jan 16 02:00:18 2023
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jan 16 02:01:30 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jan 16 02:01:30 2023
Terminated at Mon Jan 16 02:14:29 2023
Results reported at Mon Jan 16 02:14:29 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.1-0240_daily_bin1759 322.296 -2.6829 695260801 695520001 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 :                                   571.33 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             259.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   779 sec.
    Turnaround time :                            851 sec.

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

