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


Performing analysis on: 4FGL_J2129.1-0240_daily_bin974
RA = 322.296, Dec = -2.6829
tmin = 491788801, tmax = 492048001
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='509038', job_status='RUN', time_executed='2021-09-26 14:51:40.888150', time_epoch_executed='1632693100.89' WHERE source_name='4FGL J2129.1-0240' and cadence='daily' and bin_id='974'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/509038

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/509038/ft1_4FGL_J2129.1-0240_daily_bin974.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/509038/ft2_4FGL_J2129.1-0240_daily_bin974.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/509038/ft1_4FGL_J2129.1-0240_daily_bin974.fits outfile=/scratch/kocevski/509038/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin974.fits ra=322.296 dec=-2.6829 rad=12.0 tmin=491788801.0 tmax=492048001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.32
user 4.02
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/509038/ft1_filtered_4FGL_J2129.1-0240_daily_bin974.fits" evtable="EVENTS" scfile=/scratch/kocevski/509038/ft2_4FGL_J2129.1-0240_daily_bin974.fits sctable="SC_DATA" outfile=/scratch/kocevski/509038/ltcube_491788801_492048001_4FGL_J2129.1-0240_daily_bin974.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/509038/ft2_4FGL_J2129.1-0240_daily_bin974.fits
.....................!
real 14.64
user 14.26
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/509038/ft1_filtered_4FGL_J2129.1-0240_daily_bin974.fits evtable="EVENTS" scfile=/scratch/kocevski/509038/ft2_4FGL_J2129.1-0240_daily_bin974.fits sctable="SC_DATA" expcube=/scratch/kocevski/509038/ltcube_491788801_492048001_4FGL_J2129.1-0240_daily_bin974.fits outfile=/scratch/kocevski/509038/expmap_491788801_492048001_4FGL_J2129.1-0240_daily_bin974.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/509038/ltcube_491788801_492048001_4FGL_J2129.1-0240_daily_bin974.fits
.....................!
real 193.24
user 188.24
sys 4.25

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/509038/ft1_filtered_4FGL_J2129.1-0240_daily_bin974.fits scfile=/scratch/kocevski/509038/ft2_4FGL_J2129.1-0240_daily_bin974.fits outfile=/scratch/kocevski/509038/cmap_491788801_492048001_4FGL_J2129.1-0240_daily_bin974.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.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/509038/ft1_filtered_4FGL_J2129.1-0240_daily_bin974.fits scfile=/scratch/kocevski/509038/ft2_4FGL_J2129.1-0240_daily_bin974.fits outfile=/scratch/kocevski/509038/cmap_HighResolution_491788801_492048001_4FGL_J2129.1-0240_daily_bin974.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.58
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/509038/ft1_filtered_4FGL_J2129.1-0240_daily_bin974.fits evtable="EVENTS" scfile=/scratch/kocevski/509038/ft2_4FGL_J2129.1-0240_daily_bin974.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/509038/Model_4FGL_J2129.1-0240_daily_bin974.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/509038/ft1_filtered_4FGL_J2129.1-0240_daily_bin974.fits.....................!
real 31.60
user 30.29
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.260       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.3860       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14025E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .21111E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    86.496       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .17357E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .73547E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.515       1.0000         .10000E-03   10000.    
     9 'Prefactor '    39.920       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .22359E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.6261       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10224E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    43.736       1.0000         .10000E-03   10000.    
    14 'Prefactor '    32.761       1.0000         .10000E-03   10000.    
    15 'norm      '    .10687E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    143.96       1.0000         .10000E-03   10000.    
    17 'norm      '    .13109E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .68535E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.426       1.0000         .10000E-03   10000.    
    20 'Prefactor '    55.745       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .51936E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    20.635       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .18033E-02   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2572       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=   2229.394     FROM MIGRAD    STATUS=CONVERGED    256 CALLS     2171 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.206        18.555        .79993E-06    .38029E-04
   2  Prefactor     11.412        35.410        .10454E-04    .18150E-03
   3  Prefactor     .10000E-03    142.86       -.17140E-04** at limit **
   4  Prefactor     .31956E-03    484.22       -.72134E-06** at limit **
   5  Prefactor     107.55        278.60       -.73282E-05   -.45850E-02
   6  Prefactor     .10000E-03    63.293       -.55078E-05** at limit **
   7  Prefactor     .10000E-03    28.610        .49664E-05** at limit **
   8  Prefactor     20.028        22.420        .26906E-05    .16285E-03
   9  Prefactor     37.959        82.343        .18598E-06    .20059E-01
  10  Prefactor     .10000E-03    33.988       -.42989E-08** at limit **
  11  Prefactor     4.7621        7.9468       -.12833E-05    .10154E-04
  12  Prefactor     .10000E-03    2.5000        .62771E-06** at limit **
  13  Prefactor     50.848        84.793       -.99367E-07    .18995E-03
  14  Prefactor     35.459        63.506        .10589E-04   -.16840E-02
  15  norm          .10000E-03    3.8259       -.43137E-05** at limit **
  16  Prefactor     149.84        116.04       -.89284E-06    .32236E-01
  17  norm          .10000E-03    42.858       -.58371E-05** at limit **
  18  Prefactor     .10000E-03    47.194       -.14950E-05** at limit **
  19  Prefactor     22.954        12.615        .22068E-05    .11227E-03
  20  Prefactor     54.867        38.962        .31027E-05   -.29038E-04
  21  Prefactor     .19785E-03    23.934       -.74437E-05** at limit **
  22  Prefactor     24.004        49.078       -.12855E-05    .11692E-03
  23  Prefactor     .10000E-03    34.749        .27583E-05** at limit **
  24  Normalizat    .10000E-01    .82699        .31419E-04** at limit **
  25  Prefactor     1.2473        .15219       -.60137E-05   -.63840E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.206
  Prefactor  = 11.4121
  Prefactor  = 0.0001
  Prefactor  = 0.000319556
  Prefactor  = 107.549
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.0276
  Prefactor  = 37.9594
  Prefactor  = 0.0001
  Prefactor  = 4.76212
  Prefactor  = 0.0001
  Prefactor  = 50.8479
  Prefactor  = 35.459
  norm       = 0.0001
  Prefactor  = 149.845
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.9541
  Prefactor  = 54.8672
  Prefactor  = 0.000197854
  Prefactor  = 24.0038
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.2473
 **********
 **   18 **HESSE 
 **********

 FCN=   2229.394     FROM HESSE     STATUS=OK           471 CALLS     2642 TOTAL
                     EDM=   .41E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.206        18.606        .28601E-02   -1.5009    
   2  Prefactor     11.412        35.270        .32703E-02   -1.5032    
   3  Prefactor     .10000E-03    142.41        .90930E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .31956E-03    488.29        .91281E-02   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     107.55        288.93        .10799E-02   -1.3630    
   6  Prefactor     .10000E-03    63.248        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    28.656        .93095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.028        22.435        .22667E-02   -1.4813    
   9  Prefactor     37.959        93.415        .15860E-02   -1.4475    
  10  Prefactor     .10000E-03    33.987        .10063E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.7621        7.9501        .46782E-02   -1.5271    
  12  Prefactor     .10000E-03    2.4999        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     50.848        85.498        .15155E-02   -1.4281    
  14  Prefactor     35.459        63.799        .17502E-02   -1.4516    
  15  norm          .10000E-03    3.8211        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     149.84        204.54        .83953E-03   -1.3254    
  17  norm          .10000E-03    42.683        .10287E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    46.675        .10496E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     22.954        12.985        .21145E-02   -1.4749    
  20  Prefactor     54.867        39.082        .13432E-02   -1.4225    
  21  Prefactor     .19785E-03    811.09        .92795E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     24.004        48.972        .22043E-02   -1.4728    
  23  Prefactor     .10000E-03    34.809        .10160E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .10000E-01    .38000        .32094       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.2473        .18024        .33400E-01   -.84888    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.09085e-05
Minuit parameter uncertainties:
  1  18.6143
  2  35.3349
  3  0.000262336
  4  0.660298
  5  292.849
  6  3.96993e-05
  7  2.73678e-06
  8  22.4441
  9  93.7782
  10  4.98168e-08
  11  7.95188
  12  4.33917e-07
  13  85.7057
  14  63.9219
  15  4.15664e-06
  16  205.516
  17  1.53932e-05
  18  3.02891e-05
  19  12.987
  20  39.1003
  21  0.571358
  22  49.0539
  23  1.12841e-05
  24  1.74578e-06
  25  0.180334
Done.

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

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  4.982e-08  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:  1.247e+00  1.803e-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.000e-02  1.746e-06  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/509038/likelihoodResults_491788801_492048001_4FGL_J2129.1-0240_daily_bin974.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) = 2229.39364789
delta logL = -0.000145174739373

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2229.39350876
delta logL = -6.04889919487e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1719       1.0000          .0000       10.000    
     3 'Normalizat'    .10008E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2473       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=   2229.394     FROM MIGRAD    STATUS=CONVERGED    114 CALLS      302 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    150.66        .18142E-01** at limit **
   2  Index         2.0080        5.3462        .50000       -.11300E-07
   3  Normalizat    .10000E-01    .54598E-02    .11876E-01** at limit **
   4  Prefactor     1.2473        .94498E-02    .16398E-03   -.31804E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.00803
  Normalizat = 0.01
  Prefactor  = 1.2473
 **********
 **   18 **HESSE 
 **********

 FCN=   2229.394     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      331 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    824.87        .31629E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0080        5.9819        .50000       -.64150    
   3  Normalizat    .10000E-01    .31683E-01    .23753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2473        .22707E-01    .32795E-04   -.84888    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.00741e-10
Minuit parameter uncertainties:
  1  0.000506665
  2  1564.83
  3  8.01372e-08
  4  0.0227072
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/509038': 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) = 2229.39350231
delta logL = 4.06718299928e-07

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  5.067e-04  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  2.008e+00  1.565e+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:  1.247e+00  2.271e-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:  1.000e-02  8.014e-08  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/509038/cmap_HighResolution_491788801_492048001_4FGL_J2129.1-0240_daily_bin974.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.69e-02', job_status='DONE', photon_flux_upper_limit='2.15e-07', time_completed='2021-09-26 14:59:07.594734', job_id='509038', GAL2='1.25', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632693547.59', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.25', dlogl='4.07e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='974' AND source_name='4FGL J2129.1-0240' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 14:59:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0138>
Subject: Job 509038: <4FGL_J2129.1-0240_daily_bin974> in cluster <slac> Done

Job <4FGL_J2129.1-0240_daily_bin974> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep 26 14:45:23 2021
Job was executed on host(s) <bullet0138>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 14:49: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:49:16 2021
Terminated at Sun Sep 26 14:59:08 2021
Results reported at Sun Sep 26 14:59:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.1-0240_daily_bin974 322.296 -2.6829 491788801 492048001 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 :                                   443.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   591 sec.
    Turnaround time :                            825 sec.

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

