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


Performing analysis on: 4FGL_J2129.1-0240_daily_bin566
RA = 322.296, Dec = -2.6829
tmin = 386035201, tmax = 386294401
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='506074', job_status='RUN', time_executed='2021-09-26 14:39:44.747566', time_epoch_executed='1632692384.75' WHERE source_name='4FGL J2129.1-0240' and cadence='daily' and bin_id='566'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/506074

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/506074/ft1_4FGL_J2129.1-0240_daily_bin566.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/506074/ft2_4FGL_J2129.1-0240_daily_bin566.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/506074/ft1_4FGL_J2129.1-0240_daily_bin566.fits outfile=/scratch/kocevski/506074/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin566.fits ra=322.296 dec=-2.6829 rad=12.0 tmin=386035201.0 tmax=386294401.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.20
user 4.90
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/506074/ft2_4FGL_J2129.1-0240_daily_bin566.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/506074/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin566.fits evtable="EVENTS" outfile="/scratch/kocevski/506074/ft1_filtered_4FGL_J2129.1-0240_daily_bin566.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.62
user 0.40
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/506074/ft1_filtered_4FGL_J2129.1-0240_daily_bin566.fits" evtable="EVENTS" scfile=/scratch/kocevski/506074/ft2_4FGL_J2129.1-0240_daily_bin566.fits sctable="SC_DATA" outfile=/scratch/kocevski/506074/ltcube_386035201_386294401_4FGL_J2129.1-0240_daily_bin566.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/506074/ft2_4FGL_J2129.1-0240_daily_bin566.fits
.....................!
real 20.49
user 19.88
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/506074/ft1_filtered_4FGL_J2129.1-0240_daily_bin566.fits evtable="EVENTS" scfile=/scratch/kocevski/506074/ft2_4FGL_J2129.1-0240_daily_bin566.fits sctable="SC_DATA" expcube=/scratch/kocevski/506074/ltcube_386035201_386294401_4FGL_J2129.1-0240_daily_bin566.fits outfile=/scratch/kocevski/506074/expmap_386035201_386294401_4FGL_J2129.1-0240_daily_bin566.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/506074/ltcube_386035201_386294401_4FGL_J2129.1-0240_daily_bin566.fits
.....................!
real 199.88
user 193.94
sys 5.52

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/506074/ft1_filtered_4FGL_J2129.1-0240_daily_bin566.fits scfile=/scratch/kocevski/506074/ft2_4FGL_J2129.1-0240_daily_bin566.fits outfile=/scratch/kocevski/506074/cmap_386035201_386294401_4FGL_J2129.1-0240_daily_bin566.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.60
user 0.43
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/506074/ft1_filtered_4FGL_J2129.1-0240_daily_bin566.fits scfile=/scratch/kocevski/506074/ft2_4FGL_J2129.1-0240_daily_bin566.fits outfile=/scratch/kocevski/506074/cmap_HighResolution_386035201_386294401_4FGL_J2129.1-0240_daily_bin566.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.61
user 0.44
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/506074/ft1_filtered_4FGL_J2129.1-0240_daily_bin566.fits evtable="EVENTS" scfile=/scratch/kocevski/506074/ft2_4FGL_J2129.1-0240_daily_bin566.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/506074/Model_4FGL_J2129.1-0240_daily_bin566.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/506074/ft1_filtered_4FGL_J2129.1-0240_daily_bin566.fits.....................!
real 62.28
user 60.73
sys 1.39

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.6231       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.1931       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.8010       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.8981       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.053       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .32026E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    26.012       1.0000         .10000E-03   10000.    
    17 'norm      '    .10102E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11400E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.9828       1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.734       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.6335       1.0000         .10000E-03   10000.    
    22 'Prefactor '    22.894       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .82180       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .91698       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=   5679.246     FROM MIGRAD    STATUS=CONVERGED    554 CALLS     2865 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6220        5.6773        .83809E-07   -.52733E-04
   2  Prefactor     6.1902        16.963        .88745E-06    .62121E-06
   3  Prefactor     .10000E-03    27.198       -.13094E-05** at limit **
   4  Prefactor     8.7086        78.660        .10095E-04   -.30160E-04
   5  Prefactor     5.9545        62.173       -.11838E-04   -.50295E-04
   6  Prefactor     .10000E-03    45.985        .11967E-05** at limit **
   7  Prefactor     .10000E-03    14.020        .10303E-05** at limit **
   8  Prefactor     15.055        16.542        .55764E-06    .15431E-04
   9  Prefactor     .10000E-03    12.701       -.22266E-05** at limit **
  10  Prefactor     .10000E-03    8.0500        .28130E-07** at limit **
  11  Prefactor     .10003E-03    3.4123       -.65714E-06** at limit **
  12  Prefactor     .10000E-03    .59768        .79957E-07** at limit **
  13  Prefactor     .10000E-03    28.118        .26866E-06** at limit **
  14  Prefactor     .10000E-03    36.079        .14660E-05** at limit **
  15  norm          .10000E-03    4.0742        .78763E-08** at limit **
  16  Prefactor     26.088        51.850        .89559E-05    .13593E-04
  17  norm          .10000E-03    21.010        .39141E-05** at limit **
  18  Prefactor     .10000E-03    14.180        .79176E-05** at limit **
  19  Prefactor     8.9824        9.3021        .37285E-06    .24941E-04
  20  Prefactor     12.734        11.346        .56666E-07   -.50213E-04
  21  Prefactor     9.6291        22.697       -.23965E-06   -.40118E-04
  22  Prefactor     22.891        21.373        .20415E-06   -.31121E-04
  23  Prefactor     .10000E-03    9.8858        .27318E-06** at limit **
  24  Normalizat    .82187        .24435       -.11525E-05   -.75925E-04
  25  Prefactor     .91701        .11383       -.67922E-06   -.19012E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.62202
  Prefactor  = 6.19021
  Prefactor  = 0.0001
  Prefactor  = 8.70863
  Prefactor  = 5.95452
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.0545
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100026
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 26.0875
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.98245
  Prefactor  = 12.7339
  Prefactor  = 9.62913
  Prefactor  = 22.8908
  Prefactor  = 0.0001
  Normalizat = 0.821875
  Prefactor  = 0.917015
 **********
 **   18 **HESSE 
 **********

 FCN=   5679.246     FROM HESSE     STATUS=OK           427 CALLS     3292 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6220        5.6723        .15593E-03   -1.5193    
   2  Prefactor     6.1902        16.982        .16131E-03   -1.5210    
   3  Prefactor     .10000E-03    27.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.7086        78.660        .13511E-03   -1.5118    
   5  Prefactor     5.9545        61.632        .16535E-03   -1.5220    
   6  Prefactor     .10000E-03    46.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.055        16.562        .10323E-03   -1.4932    
   9  Prefactor     .10000E-03    12.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.0515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10003E-03    16.173        .26456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .60053        .56885E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    28.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    36.268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.0757        .14856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     26.088        51.258        .78545E-04   -1.4686    
  17  norm          .10000E-03    21.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.751        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.9824        9.3615        .13373E-03   -1.5108    
  20  Prefactor     12.734        11.342        .11225E-03   -1.4994    
  21  Prefactor     9.6291        22.693        .12911E-03   -1.5087    
  22  Prefactor     22.891        21.366        .83715E-04   -1.4751    
  23  Prefactor     .10000E-03    9.9000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .82187        .29025        .33845E-03   -.99262    
  25  Prefactor     .91701        .13693        .16496E-03   -.95549    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72284e-09
Minuit parameter uncertainties:
  1  5.67279
  2  16.9951
  3  6.80798e-05
  4  52.4375
  5  38.3646
  6  0.000149719
  7  5.89496e-05
  8  16.567
  9  9.37679e-05
  10  1.9298e-06
  11  0.00130956
  12  8.43799e-07
  13  4.53835e-05
  14  0.000143508
  15  6.87949e-07
  16  51.3446
  17  3.6277e-05
  18  0.000124421
  19  9.36303
  20  11.3434
  21  22.7137
  22  21.373
  23  8.62323e-06
  24  0.2908
  25  0.136983
Done.

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

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  1.930e-06  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:  9.170e-01  1.370e-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:  8.219e-01  2.908e-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: 5.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.48e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/506074/likelihoodResults_386035201_386294401_4FGL_J2129.1-0240_daily_bin566.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) = 5679.2461765
delta logL = -0.000589710385611

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5679.24558668
delta logL = 1.1022984836e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6164       1.0000          .0000       10.000    
     3 'Normalizat'    .82188       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91701       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=   5679.246     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      265 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    50.697        .18142E-01** at limit **
   2  Index         1.8668        5.5677        .50000       -.18417E-07
   3  Normalizat    .82187        .11667E-01    .33845E-03    .19889E-03
   4  Prefactor     .91702        .60229E-02    .16496E-03    .50261E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.86678
  Normalizat = 0.821874
  Prefactor  = 0.917016
 **********
 **   18 **HESSE 
 **********

 FCN=   5679.246     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      294 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    347.98        .25269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8668        6.1061        .50000       -.67724    
   3  Normalizat    .82187        .31587E-01    .13538E-04   -.99262    
   4  Prefactor     .91702        .16307E-01    .32993E-04   -.95549    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.95237e-10
Minuit parameter uncertainties:
  1  0.00019498
  2  1110.6
  3  0.0315879
  4  0.0163068
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/506074': 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) = 5679.24558482
delta logL = 1.96751443582e-06

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  1.950e-04  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  1.867e+00  1.111e+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:  9.170e-01  1.631e-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:  8.219e-01  3.159e-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/506074/cmap_HighResolution_386035201_386294401_4FGL_J2129.1-0240_daily_bin566.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.48e-03', job_status='DONE', photon_flux_upper_limit='5.71e-08', time_completed='2021-09-26 14:51:39.881504', job_id='506074', GAL2='0.92', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1632693099.88', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.97e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='566' AND source_name='4FGL J2129.1-0240' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 14:51:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0159>
Subject: Job 506074: <4FGL_J2129.1-0240_daily_bin566> in cluster <slac> Done

Job <4FGL_J2129.1-0240_daily_bin566> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 26 14:35:23 2021
Job was executed on host(s) <bullet0159>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 14:36:03 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:36:03 2021
Terminated at Sun Sep 26 14:51:40 2021
Results reported at Sun Sep 26 14:51:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.1-0240_daily_bin566 322.296 -2.6829 386035201 386294401 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 :                                   714.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            977 sec.

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

