/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 7 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 = 7418
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2129.1-0240_daily_bin507
RA = 322.296, Dec = -2.6829
tmin = 370742401, tmax = 371001601
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='505978', job_status='RUN', time_executed='2021-09-26 14:35:32.017158', time_epoch_executed='1632692132.02' WHERE source_name='4FGL J2129.1-0240' and cadence='daily' and bin_id='507'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/505978

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/505978/ft1_4FGL_J2129.1-0240_daily_bin507.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/505978/ft2_4FGL_J2129.1-0240_daily_bin507.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/505978/ft1_4FGL_J2129.1-0240_daily_bin507.fits outfile=/scratch/kocevski/505978/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin507.fits ra=322.296 dec=-2.6829 rad=12.0 tmin=370742401.0 tmax=371001601.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 5.41
user 5.14
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/505978/ft2_4FGL_J2129.1-0240_daily_bin507.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/505978/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin507.fits evtable="EVENTS" outfile="/scratch/kocevski/505978/ft1_filtered_4FGL_J2129.1-0240_daily_bin507.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/505978/ft1_filtered_4FGL_J2129.1-0240_daily_bin507.fits" evtable="EVENTS" scfile=/scratch/kocevski/505978/ft2_4FGL_J2129.1-0240_daily_bin507.fits sctable="SC_DATA" outfile=/scratch/kocevski/505978/ltcube_370742401_371001601_4FGL_J2129.1-0240_daily_bin507.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/505978/ft2_4FGL_J2129.1-0240_daily_bin507.fits
.....................!
real 14.00
user 13.55
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/505978/ft1_filtered_4FGL_J2129.1-0240_daily_bin507.fits evtable="EVENTS" scfile=/scratch/kocevski/505978/ft2_4FGL_J2129.1-0240_daily_bin507.fits sctable="SC_DATA" expcube=/scratch/kocevski/505978/ltcube_370742401_371001601_4FGL_J2129.1-0240_daily_bin507.fits outfile=/scratch/kocevski/505978/expmap_370742401_371001601_4FGL_J2129.1-0240_daily_bin507.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/505978/ltcube_370742401_371001601_4FGL_J2129.1-0240_daily_bin507.fits
.....................!
real 191.45
user 185.48
sys 5.24

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/505978/ft1_filtered_4FGL_J2129.1-0240_daily_bin507.fits scfile=/scratch/kocevski/505978/ft2_4FGL_J2129.1-0240_daily_bin507.fits outfile=/scratch/kocevski/505978/cmap_370742401_371001601_4FGL_J2129.1-0240_daily_bin507.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=322.296 yref=-2.6829 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/505978/ft1_filtered_4FGL_J2129.1-0240_daily_bin507.fits scfile=/scratch/kocevski/505978/ft2_4FGL_J2129.1-0240_daily_bin507.fits outfile=/scratch/kocevski/505978/cmap_HighResolution_370742401_371001601_4FGL_J2129.1-0240_daily_bin507.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/505978/ft1_filtered_4FGL_J2129.1-0240_daily_bin507.fits evtable="EVENTS" scfile=/scratch/kocevski/505978/ft2_4FGL_J2129.1-0240_daily_bin507.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/505978/Model_4FGL_J2129.1-0240_daily_bin507.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/505978/ft1_filtered_4FGL_J2129.1-0240_daily_bin507.fits.....................!
real 58.87
user 57.24
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.704       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10025E-03   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 '    16.583       1.0000         .10000E-03   10000.    
     7 'Prefactor '    40.583       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.8662       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.7950       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10509E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.2860       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .77005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.9118       1.0000         .10000E-03   10000.    
    21 'Prefactor '    43.369       1.0000         .10000E-03   10000.    
    22 'Prefactor '    23.474       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.990       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .64410       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87241       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=   6059.538     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     2882 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.2750        .65633E-08** at limit **
   2  Prefactor     10.702        13.595        .46797E-06   -.26624E-03
   3  Prefactor     .10000E-03    38.200        .23345E-05** at limit **
   4  Prefactor     .10000E-03    16.654       -.25761E-05** at limit **
   5  Prefactor     .10000E-03    15.508        .23117E-05** at limit **
   6  Prefactor     16.581        35.296       -.13588E-05   -.41676E-04
   7  Prefactor     40.587        21.785       -.10661E-08    .83046E-04
   8  Prefactor     .10000E-03    12.355       -.28392E-05** at limit **
   9  Prefactor     3.8638        14.528        .30885E-05   -.37061E-03
  10  Prefactor     .10000E-03    16.143        .68997E-06** at limit **
  11  Prefactor     .10000E-03    2.8240        .29391E-07** at limit **
  12  Prefactor     5.7936        2.7719        .12735E-06   -.93904E-03
  13  Prefactor     .10000E-03    16.553       -.13773E-05** at limit **
  14  Prefactor     .10000E-03    89.126       -.11507E-05** at limit **
  15  norm          .10000E-03    8.9692       -.21960E-06** at limit **
  16  Prefactor     .10000E-03    14.250        .28505E-05** at limit **
  17  norm          .10000E-03    10.200        .99621E-06** at limit **
  18  Prefactor     6.2861        5.6637        .74780E-06    .32052E-03
  19  Prefactor     .10019E-03    7.5287       -.15876E-05** at limit **
  20  Prefactor     1.9113        12.294        .32885E-06   -.86410E-04
  21  Prefactor     43.360        29.391       -.21855E-05   -.25372E-03
  22  Prefactor     23.473        16.912        .15811E-06    .30782E-04
  23  Prefactor     10.990        12.077        .32462E-07    .45721E-06
  24  Normalizat    .64420        .21340       -.10624E-06    .18051E-03
  25  Prefactor     .87240        .10336       -.63289E-07    .28552E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.7025
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 16.581
  Prefactor  = 40.5867
  Prefactor  = 0.000100001
  Prefactor  = 3.86377
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.79361
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 6.28613
  Prefactor  = 0.000100194
  Prefactor  = 1.91127
  Prefactor  = 43.3604
  Prefactor  = 23.4726
  Prefactor  = 10.9904
  Normalizat = 0.644202
  Prefactor  = 0.872397
 **********
 **   18 **HESSE 
 **********

 FCN=   6059.538     FROM HESSE     STATUS=OK           423 CALLS     3305 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.2799        .85828E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.702        14.043        .61230E-03   -1.5054    
   3  Prefactor     .10000E-03    38.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.581        35.332        .98353E-04   -1.4893    
   7  Prefactor     40.587        21.788        .62922E-04   -1.4433    
   8  Prefactor     .10000E-03    12.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.8638        24.317        .10261E-02   -1.5315    
  10  Prefactor     .10000E-03    16.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.8461        .12772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.7936        2.8523        .43635E-03   -1.5227    
  13  Prefactor     .10000E-03    16.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    89.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    9.1393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    10.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.2861        5.6803        .16010E-03   -1.5206    
  19  Prefactor     .10019E-03    43.223        .38339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.9113        12.469        .30064E-03   -1.5431    
  21  Prefactor     43.360        29.873        .60876E-04   -1.4390    
  22  Prefactor     23.473        16.873        .82675E-04   -1.4739    
  23  Prefactor     10.990        12.069        .12085E-03   -1.5045    
  24  Normalizat    .64420        .24219        .36230E-03   -1.0614    
  25  Prefactor     .87240        .12020        .15981E-03   -.97112    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.7233e-09
Minuit parameter uncertainties:
  1  9.71071e-08
  2  14.0477
  3  0.00033977
  4  0.000254864
  5  0.000217505
  6  35.3764
  7  21.7926
  8  0.000234612
  9  19.3976
  10  6.64811e-05
  11  1.70688e-06
  12  2.85234
  13  0.000136243
  14  0.0002745
  15  8.66995e-06
  16  0.000258107
  17  7.57012e-05
  18  5.68078
  19  0.0057961
  20  9.7662
  21  29.8832
  22  16.8763
  23  12.0718
  24  0.242592
  25  0.120234
Done.

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

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  6.648e-05  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.724e-01  1.202e-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:  6.442e-01  2.426e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 322.296 -2.683
Photon Flux Upper Limit: 9.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/505978/likelihoodResults_370742401_371001601_4FGL_J2129.1-0240_daily_bin507.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6059.53828177
delta logL = -0.000294915730592

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6059.53798685
delta logL = 7.73525243858e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6210       1.0000          .0000       10.000    
     3 'Normalizat'    .64416       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87241       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=   6059.538     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      259 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    62.268        .18142E-01** at limit **
   2  Index         2.0893        7.9010        .50000        .33492E-07
   3  Normalizat    .64420        .92543E-02    .36230E-03   -.48073E-04
   4  Prefactor     .87240        .47399E-02    .15981E-03   -.10667E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.08933
  Normalizat = 0.6442
  Prefactor  = 0.872397
 **********
 **   18 **HESSE 
 **********

 FCN=   6059.538     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      288 TOTAL
                     EDM=   .87E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    352.39        .33676E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0893        5.8582        .50000       -.62135    
   3  Normalizat    .64420        .22461E-01    .14492E-04   -1.0614    
   4  Prefactor     .87240        .11504E-01    .31961E-04   -.97112    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.72012e-11
Minuit parameter uncertainties:
  1  6.4631e-05
  2  1330.57
  3  0.022461
  4  0.0115043
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/505978': 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): 102
logL (Free Index) = 6059.53798631
delta logL = 5.478877938e-07

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  6.463e-05  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  2.089e+00  1.331e+03  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.724e-01  1.150e-02  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:  6.442e-01  2.246e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.10e-03', job_status='DONE', photon_flux_upper_limit='9.05e-08', time_completed='2021-09-26 14:46:57.059062', job_id='505978', GAL2='0.87', fit_tolerance='1e-08', EG2='0.64', EG='0.64', time_epoch_completed='1632692817.06', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='5.48e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='507' AND source_name='4FGL J2129.1-0240' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 14:46:57 PDT 2021


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

Job <4FGL_J2129.1-0240_daily_bin507> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 26 14:35:14 2021
Job was executed on host(s) <bullet0273>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 14:35:16 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:35:16 2021
Terminated at Sun Sep 26 14:46:57 2021
Results reported at Sun Sep 26 14:46:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.1-0240_daily_bin507 322.296 -2.6829 370742401 371001601 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 :                                   681.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             343.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   701 sec.
    Turnaround time :                            703 sec.

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

