/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 4 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 = 7031
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2129.1-0240_daily_bin232
RA = 322.296, Dec = -2.6829
tmin = 299462401, tmax = 299721601
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='503704', job_status='RUN', time_executed='2021-09-26 14:26:31.727202', time_epoch_executed='1632691591.73' WHERE source_name='4FGL J2129.1-0240' and cadence='daily' and bin_id='232'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/503704

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/503704/ft1_4FGL_J2129.1-0240_daily_bin232.fits


Retrieving the FT1 file...

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

Retrieving 44 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/503704/ft2_4FGL_J2129.1-0240_daily_bin232.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/503704/ft1_4FGL_J2129.1-0240_daily_bin232.fits outfile=/scratch/kocevski/503704/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin232.fits ra=322.296 dec=-2.6829 rad=12.0 tmin=299462401.0 tmax=299721601.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.24
user 3.02
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/503704/ft1_filtered_4FGL_J2129.1-0240_daily_bin232.fits" evtable="EVENTS" scfile=/scratch/kocevski/503704/ft2_4FGL_J2129.1-0240_daily_bin232.fits sctable="SC_DATA" outfile=/scratch/kocevski/503704/ltcube_299462401_299721601_4FGL_J2129.1-0240_daily_bin232.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/503704/ft2_4FGL_J2129.1-0240_daily_bin232.fits
.....................!
real 13.37
user 13.01
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/503704/ft1_filtered_4FGL_J2129.1-0240_daily_bin232.fits evtable="EVENTS" scfile=/scratch/kocevski/503704/ft2_4FGL_J2129.1-0240_daily_bin232.fits sctable="SC_DATA" expcube=/scratch/kocevski/503704/ltcube_299462401_299721601_4FGL_J2129.1-0240_daily_bin232.fits outfile=/scratch/kocevski/503704/expmap_299462401_299721601_4FGL_J2129.1-0240_daily_bin232.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/503704/ltcube_299462401_299721601_4FGL_J2129.1-0240_daily_bin232.fits
.....................!
real 191.48
user 186.01
sys 5.07

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/503704/ft1_filtered_4FGL_J2129.1-0240_daily_bin232.fits scfile=/scratch/kocevski/503704/ft2_4FGL_J2129.1-0240_daily_bin232.fits outfile=/scratch/kocevski/503704/cmap_299462401_299721601_4FGL_J2129.1-0240_daily_bin232.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/503704/ft1_filtered_4FGL_J2129.1-0240_daily_bin232.fits scfile=/scratch/kocevski/503704/ft2_4FGL_J2129.1-0240_daily_bin232.fits outfile=/scratch/kocevski/503704/cmap_HighResolution_299462401_299721601_4FGL_J2129.1-0240_daily_bin232.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.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/503704/ft1_filtered_4FGL_J2129.1-0240_daily_bin232.fits evtable="EVENTS" scfile=/scratch/kocevski/503704/ft2_4FGL_J2129.1-0240_daily_bin232.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/503704/Model_4FGL_J2129.1-0240_daily_bin232.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/503704/ft1_filtered_4FGL_J2129.1-0240_daily_bin232.fits.....................!
real 62.25
user 60.89
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.034       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.1399       1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.539       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.682       1.0000         .10000E-03   10000.    
    10 'Prefactor '    26.037       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.5076       1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.050       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.677       1.0000         .10000E-03   10000.    
    15 'norm      '    .21986E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11828E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    35.740       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .16479E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    24.696       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.3869       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1224       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .73574       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=   6237.746     FROM MIGRAD    STATUS=CONVERGED    579 CALLS     2929 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.6120       -.32237E-07** at limit **
   2  Prefactor     .10000E-03    6.8679       -.33549E-06** at limit **
   3  Prefactor     16.993        33.606        .16845E-05   -.58226E-05
   4  Prefactor     .10000E-03    28.332       -.10369E-05** at limit **
   5  Prefactor     .10000E-03    11.014        .78706E-06** at limit **
   6  Prefactor     .10000E-03    34.383        .24551E-05** at limit **
   7  Prefactor     7.1443        17.260       -.39373E-07   -.10001E-04
   8  Prefactor     22.545        18.448        .21905E-06   -.19229E-04
   9  Prefactor     12.686        25.300        .84851E-06   -.19951E-05
  10  Prefactor     25.906        49.975        .12006E-04   -.14930E-04
  11  Prefactor     .10000E-03    6.6890        .17615E-06** at limit **
  12  Prefactor     3.5123        3.0506       -.96360E-06   -.21887E-03
  13  Prefactor     13.059        35.445       -.12781E-05   -.20155E-05
  14  Prefactor     16.681        22.980       -.40171E-06   -.52050E-05
  15  norm          .10322E-03    10.694        .30267E-05** at limit **
  16  Prefactor     .10000E-03    40.656       -.16838E-05** at limit **
  17  norm          35.731        26.195        .25345E-06    .47641E-05
  18  Prefactor     .10000E-03    8.3452        .48426E-06** at limit **
  19  Prefactor     24.708        10.798        .17851E-06   -.20179E-03
  20  Prefactor     .10000E-03    9.8052       -.53339E-07** at limit **
  21  Prefactor     .10000E-03    11.947       -.15651E-06** at limit **
  22  Prefactor     .10000E-03    8.8228        .36182E-06** at limit **
  23  Prefactor     1.3819        33.178        .15817E-04    .88566E-04
  24  Normalizat    1.1215        .23982        .91505E-06   -.33177E-04
  25  Prefactor     .73624        .11007       -.14575E-05   -.12972E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.9929
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.14428
  Prefactor  = 22.5454
  Prefactor  = 12.6864
  Prefactor  = 25.9062
  Prefactor  = 0.0001
  Prefactor  = 3.5123
  Prefactor  = 13.0588
  Prefactor  = 16.6811
  norm       = 0.00010322
  Prefactor  = 0.0001
  norm       = 35.731
  Prefactor  = 0.0001
  Prefactor  = 24.7081
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.38194
  Normalizat = 1.12146
  Prefactor  = 0.736238
 **********
 **   18 **HESSE 
 **********

 FCN=   6237.746     FROM HESSE     STATUS=OK           437 CALLS     3366 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.6198        .97912E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.8951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.993        33.670        .97043E-04   -1.4883    
   4  Prefactor     .10000E-03    28.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    34.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.1443        17.198        .15012E-03   -1.5173    
   8  Prefactor     22.545        18.413        .84370E-04   -1.4758    
   9  Prefactor     12.686        25.331        .11248E-03   -1.4995    
  10  Prefactor     25.906        50.167        .78507E-04   -1.4690    
  11  Prefactor     .10000E-03    6.8769        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.5123        3.0369        .10642E-03   -1.5333    
  13  Prefactor     13.059        35.487        .11088E-03   -1.4985    
  14  Prefactor     16.681        22.976        .98074E-04   -1.4891    
  15  norm          .10322E-03    11.464        .79391E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    40.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          35.731        26.241        .67036E-04   -1.4512    
  18  Prefactor     .10000E-03    8.6855        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     24.708        10.957        .80607E-04   -1.4713    
  20  Prefactor     .10000E-03    10.119        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.8510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.3819        33.760        .18461E-02   -1.5473    
  24  Normalizat    1.1215        .29424        .30688E-03   -.89066    
  25  Prefactor     .73624        .13388        .18151E-03   -1.0212    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24374e-09
Minuit parameter uncertainties:
  1  9.28767e-07
  2  4.47365e-06
  3  33.7074
  4  1.46572e-05
  5  2.75312e-06
  6  8.83071e-05
  7  17.2102
  8  18.4173
  9  25.352
  10  50.2488
  11  1.22333e-05
  12  3.03706
  13  35.5444
  14  22.9883
  15  0.0121534
  16  2.524e-05
  17  26.2494
  18  3.91933e-06
  19  10.9581
  20  2.35708e-05
  21  6.89295e-06
  22  7.83871e-06
  23  13.669
  24  0.294674
  25  0.133936
Done.

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

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  2.591e+01  5.025e+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:  7.362e-01  1.339e-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.121e+00  2.947e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/503704/likelihoodResults_299462401_299721601_4FGL_J2129.1-0240_daily_bin232.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) = 6237.62431671
delta logL = 0.121922995913

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6237.6214479
delta logL = 0.124791814045

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.073       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1584       1.0000          .0000       10.000    
     3 'Normalizat'    1.1022       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74223       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=   6237.621     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      286 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.075        41.469        .94213E-04    .13129E-03
   2  Index         3.1581        1.2769        .80684E-02    .75237E-04
   3  Normalizat    1.1023        .27137        .30914E-03    .36483E-03
   4  Prefactor     .74211        .13089        .18084E-03    .48631E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.0751
  Index      = 3.15805
  Normalizat = 1.10235
  Prefactor  = 0.742111
 **********
 **   18 **HESSE 
 **********

 FCN=   6237.621     FROM HESSE     STATUS=OK            25 CALLS      311 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.075        35.979        .37685E-05   -1.4857    
   2  Index         3.1581        1.1097        .32273E-03   -.37728    
   3  Normalizat    1.1023        .27175        .61828E-04   -.89677    
   4  Prefactor     .74211        .13099        .36167E-04   -1.0190    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71667e-10
Minuit parameter uncertainties:
  1  36.0224
  2  1.12053
  3  0.2721
  4  0.131046
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/503704': 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) = 6237.62144734
delta logL = 0.124792373073

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.808e+01  3.602e+01  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  3.158e+00  1.121e+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:  7.421e-01  1.310e-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.102e+00  2.721e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.42
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/503704/cmap_HighResolution_299462401_299721601_4FGL_J2129.1-0240_daily_bin232.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.21e-02', job_status='DONE', photon_flux_upper_limit='1.54e-07', time_completed='2021-09-26 14:38:16.883552', job_id='503704', GAL2='0.74', fit_tolerance='1e-08', EG2='1.10', EG='1.12', time_epoch_completed='1632692296.88', return_code2='0', ts='0.42', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='1.25e-01', ts2='0.69', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='232' AND source_name='4FGL J2129.1-0240' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 14:38:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 503704: <4FGL_J2129.1-0240_daily_bin232> in cluster <slac> Done

Job <4FGL_J2129.1-0240_daily_bin232> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 26 14:25:22 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 14:26:18 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:26:18 2021
Terminated at Sun Sep 26 14:38:17 2021
Results reported at Sun Sep 26 14:38:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.1-0240_daily_bin232 322.296 -2.6829 299462401 299721601 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 :                                   701.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             345.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   719 sec.
    Turnaround time :                            775 sec.

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

