/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 84 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 = 7427
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2129.1-0240_daily_bin405
RA = 322.296, Dec = -2.6829
tmin = 344304001, tmax = 344563201
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='504774', job_status='RUN', time_executed='2021-09-26 14:33:49.768881', time_epoch_executed='1632692029.77' WHERE source_name='4FGL J2129.1-0240' and cadence='daily' and bin_id='405'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/504774

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/504774/ft1_4FGL_J2129.1-0240_daily_bin405.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/504774/ft2_4FGL_J2129.1-0240_daily_bin405.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/504774/ft1_4FGL_J2129.1-0240_daily_bin405.fits outfile=/scratch/kocevski/504774/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin405.fits ra=322.296 dec=-2.6829 rad=12.0 tmin=344304001.0 tmax=344563201.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 3.45
user 3.19
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/504774/ft1_filtered_4FGL_J2129.1-0240_daily_bin405.fits" evtable="EVENTS" scfile=/scratch/kocevski/504774/ft2_4FGL_J2129.1-0240_daily_bin405.fits sctable="SC_DATA" outfile=/scratch/kocevski/504774/ltcube_344304001_344563201_4FGL_J2129.1-0240_daily_bin405.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/504774/ft2_4FGL_J2129.1-0240_daily_bin405.fits
.....................!
real 15.73
user 15.36
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/504774/ft1_filtered_4FGL_J2129.1-0240_daily_bin405.fits evtable="EVENTS" scfile=/scratch/kocevski/504774/ft2_4FGL_J2129.1-0240_daily_bin405.fits sctable="SC_DATA" expcube=/scratch/kocevski/504774/ltcube_344304001_344563201_4FGL_J2129.1-0240_daily_bin405.fits outfile=/scratch/kocevski/504774/expmap_344304001_344563201_4FGL_J2129.1-0240_daily_bin405.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/504774/ltcube_344304001_344563201_4FGL_J2129.1-0240_daily_bin405.fits
.....................!
real 194.27
user 188.78
sys 4.92

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/504774/ft1_filtered_4FGL_J2129.1-0240_daily_bin405.fits scfile=/scratch/kocevski/504774/ft2_4FGL_J2129.1-0240_daily_bin405.fits outfile=/scratch/kocevski/504774/cmap_344304001_344563201_4FGL_J2129.1-0240_daily_bin405.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.59
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/504774/ft1_filtered_4FGL_J2129.1-0240_daily_bin405.fits scfile=/scratch/kocevski/504774/ft2_4FGL_J2129.1-0240_daily_bin405.fits outfile=/scratch/kocevski/504774/cmap_HighResolution_344304001_344563201_4FGL_J2129.1-0240_daily_bin405.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.60
user 0.38
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/504774/ft1_filtered_4FGL_J2129.1-0240_daily_bin405.fits evtable="EVENTS" scfile=/scratch/kocevski/504774/ft2_4FGL_J2129.1-0240_daily_bin405.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/504774/Model_4FGL_J2129.1-0240_daily_bin405.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/504774/ft1_filtered_4FGL_J2129.1-0240_daily_bin405.fits.....................!
real 69.40
user 67.92
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/504774/ft1_filtered_4FGL_J2129.1-0240_daily_bin405.fits', '/scratch/kocevski/504774/ft2_4FGL_J2129.1-0240_daily_bin405.fits', expMap='/scratch/kocevski/504774/expmap_344304001_344563201_4FGL_J2129.1-0240_daily_bin405.fits', expCube='/scratch/kocevski/504774/ltcube_344304001_344563201_4FGL_J2129.1-0240_daily_bin405.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/504774/Model_4FGL_J2129.1-0240_daily_bin405.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/504774/ft1_filtered_4FGL_J2129.1-0240_daily_bin405.fits
Spacecraft file(s): /scratch/kocevski/504774/ft2_4FGL_J2129.1-0240_daily_bin405.fits
Exposure map: /scratch/kocevski/504774/expmap_344304001_344563201_4FGL_J2129.1-0240_daily_bin405.fits
Exposure cube: /scratch/kocevski/504774/ltcube_344304001_344563201_4FGL_J2129.1-0240_daily_bin405.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/504774/Model_4FGL_J2129.1-0240_daily_bin405.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) = 6524.42903104

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.2572       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.381       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    41.073       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.0799       1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.899       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.786       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.060       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .24164E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.919       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.319       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.6797       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .85050       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=   6524.415     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     2875 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.2580        5.9087        .17098E-06   -.78989E-04
   2  Prefactor     .10000E-03    11.412       -.14089E-05** at limit **
   3  Prefactor     .10000E-03    55.943       -.53714E-06** at limit **
   4  Prefactor     11.380        15.686       -.43975E-06   -.25789E-03
   5  Prefactor     .10000E-03    25.342        .53060E-05** at limit **
   6  Prefactor     .10000E-03    15.220        .10087E-05** at limit **
   7  Prefactor     41.058        30.394        .12163E-04   -.14952E-05
   8  Prefactor     .10000E-03    9.3198       -.82480E-07** at limit **
   9  Prefactor     7.0789        18.913        .13427E-05   -.31880E-04
  10  Prefactor     23.912        35.530       -.10135E-04   -.74294E-05
  11  Prefactor     10.787        11.959       -.17482E-05   -.91222E-04
  12  Prefactor     .10000E-03    1.5486        .13990E-06** at limit **
  13  Prefactor     13.044        39.449        .69918E-05    .28789E-05
  14  Prefactor     .10000E-03    26.448       -.47211E-05** at limit **
  15  norm          .10000E-03    3.3779        .79578E-07** at limit **
  16  Prefactor     .10001E-03    448.84       -.25648E-04** at limit **
  17  norm          .10000E-03    10.731        .11826E-05** at limit **
  18  Prefactor     12.916        8.5291        .12479E-06    .17503E-03
  19  Prefactor     11.315        9.7725       -.85228E-06   -.12690E-02
  20  Prefactor     .10000E-03    8.9333        .65641E-06** at limit **
  21  Prefactor     .10000E-03    18.042       -.16171E-05** at limit **
  22  Prefactor     .10000E-03    9.1269       -.86162E-06** at limit **
  23  Prefactor     .10000E-03    12.019        .23207E-06** at limit **
  24  Normalizat    1.6796        .27508       -.13803E-05    .70655E-04
  25  Prefactor     .85052        .12993       -.33953E-06    .20134E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.25801
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.3802
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.0578
  Prefactor  = 0.0001
  Prefactor  = 7.07886
  Prefactor  = 23.9122
  Prefactor  = 10.7873
  Prefactor  = 0.0001
  Prefactor  = 13.0443
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100005
  norm       = 0.0001
  Prefactor  = 12.9163
  Prefactor  = 11.3154
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.67961
  Prefactor  = 0.850522
 **********
 **   18 **HESSE 
 **********

 FCN=   6524.415     FROM HESSE     STATUS=OK           425 CALLS     3300 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.2580        5.9096        .13172E-03   -1.5099    
   2  Prefactor     .10000E-03    11.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    56.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.380        15.697        .59376E-03   -1.5033    
   5  Prefactor     .10000E-03    25.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     41.058        30.080        .62547E-04   -1.4426    
   8  Prefactor     .10000E-03    9.3411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.0789        18.902        .15076E-03   -1.5176    
  10  Prefactor     23.912        35.579        .81939E-04   -1.4730    
  11  Prefactor     10.787        11.993        .12199E-03   -1.5051    
  12  Prefactor     .10000E-03    1.5778        .97881E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.044        39.573        .11084E-03   -1.4985    
  14  Prefactor     .10000E-03    26.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.3780        .14499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    462.56        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    10.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.916        8.5122        .11144E-03   -1.4989    
  19  Prefactor     11.315        10.002        .59539E-03   -1.5035    
  20  Prefactor     .10000E-03    8.9908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    18.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.1638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    12.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.6796        .33552        .31411E-03   -.72849    
  25  Prefactor     .85052        .15756        .20866E-03   -.97892    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8055e-09
Minuit parameter uncertainties:
  1  5.90996
  2  6.64527e-06
  3  6.33162e-05
  4  15.7032
  5  4.61229e-06
  6  7.5901e-06
  7  30.0916
  8  0.000127924
  9  18.9176
  10  35.6107
  11  11.9961
  12  1.3665e-05
  13  39.6523
  14  5.24518e-05
  15  5.68028e-07
  16  0.00311158
  17  1.10014e-05
  18  8.51299
  19  10.0038
  20  1.21288e-05
  21  2.19351e-05
  22  9.64293e-06
  23  1.44073e-05
  24  0.335972
  25  0.157646
Done.

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

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  2.391e+01  3.561e+01  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.505e-01  1.576e-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.680e+00  3.360e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/504774/likelihoodResults_344304001_344563201_4FGL_J2129.1-0240_daily_bin405.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) = 6523.18897261
delta logL = 1.22635627125

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6523.17385345
delta logL = 1.24147543415

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.133       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3067       1.0000          .0000       10.000    
     3 'Normalizat'    1.7097       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84131       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=   6523.174     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      219 TOTAL
                     EDM=   .69E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 17.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.102        30.797       -.33076E-04   -.17295E-03
   2  Index         1.3061        .70245       -.14251E-03    .41982E-04
   3  Normalizat    1.7097        .25913        .12596E-05    .17673E-03
   4  Prefactor     .84132        .12883       -.51436E-07    .21049E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.1022
  Index      = 1.30611
  Normalizat = 1.70967
  Prefactor  = 0.841317
 **********
 **   18 **HESSE 
 **********

 FCN=   6523.174     FROM HESSE     STATUS=OK            27 CALLS      246 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.102        29.184        .91565E-04   -1.4834    
   2  Index         1.3061        .66640        .95839E-02   -.83126    
   3  Normalizat    1.7097        .31179        .31172E-03   -.72045    
   4  Prefactor     .84132        .15512        .20953E-03   -.98223    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24712e-10
Minuit parameter uncertainties:
  1  29.2054
  2  0.67082
  3  0.312146
  4  0.155206
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/504774': 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) = 6523.17385292
delta logL = 1.24147596144

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.910e+01  2.921e+01  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  1.306e+00  6.708e-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:  8.413e-01  1.552e-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.710e+00  3.121e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.21
Ra Dec: 322.296 -2.683
Photon Index (Free Index): 1.31 +/- 0.67
Photon Flux (Free Index): 7.71e-09 +/- 1.08e-08
Energy Flux (Free Index): 4.63e-05 +/- 7.73e-05

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/504774/cmap_HighResolution_344304001_344563201_4FGL_J2129.1-0240_daily_bin405.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-02', comment='SUCCESS', energy_flux2='4.63e-05', dlogl='1.24e+00', photon_flux2='7.71e-09', job_status='DONE', time_completed='2021-09-26 14:46:12.315963', photon_index_error2='0.67', photon_index2='1.31', ts='0.73', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='1.52e-07', energy_flux_error2='7.73e-05', EG='1.68', time_epoch_completed='1632692772.32', return_code='0', job_id='504774', GAL2='0.84', EG2='1.71', return_code2='0', photon_flux_error2='1.08e-08', ts2='3.21', photon_index='2.64' WHERE bin_id='405' AND source_name='4FGL J2129.1-0240' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 14:46:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0013>
Subject: Job 504774: <4FGL_J2129.1-0240_daily_bin405> in cluster <slac> Done

Job <4FGL_J2129.1-0240_daily_bin405> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep 26 14:30:28 2021
Job was executed on host(s) <bullet0013>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 14:32:10 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 14:32:10 2021
Terminated at Sun Sep 26 14:46:13 2021
Results reported at Sun Sep 26 14:46:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.1-0240_daily_bin405 322.296 -2.6829 344304001 344563201 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 :                                   738.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             314.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            945 sec.

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

