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


Performing analysis on: 4FGL_J2129.1-0240_daily_bin622
RA = 322.296, Dec = -2.6829
tmin = 400550401, tmax = 400809601
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='506161', job_status='RUN', time_executed='2021-09-26 14:38:23.110056', time_epoch_executed='1632692303.11' WHERE source_name='4FGL J2129.1-0240' and cadence='daily' and bin_id='622'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/506161

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/506161/ft1_4FGL_J2129.1-0240_daily_bin622.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/506161/ft2_4FGL_J2129.1-0240_daily_bin622.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/506161/ft1_4FGL_J2129.1-0240_daily_bin622.fits outfile=/scratch/kocevski/506161/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin622.fits ra=322.296 dec=-2.6829 rad=12.0 tmin=400550401.0 tmax=400809601.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.41
user 4.16
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/506161/ft2_4FGL_J2129.1-0240_daily_bin622.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/506161/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin622.fits evtable="EVENTS" outfile="/scratch/kocevski/506161/ft1_filtered_4FGL_J2129.1-0240_daily_bin622.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.50
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/506161/ft1_filtered_4FGL_J2129.1-0240_daily_bin622.fits" evtable="EVENTS" scfile=/scratch/kocevski/506161/ft2_4FGL_J2129.1-0240_daily_bin622.fits sctable="SC_DATA" outfile=/scratch/kocevski/506161/ltcube_400550401_400809601_4FGL_J2129.1-0240_daily_bin622.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/506161/ft2_4FGL_J2129.1-0240_daily_bin622.fits
.....................!
real 14.54
user 14.15
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/506161/ft1_filtered_4FGL_J2129.1-0240_daily_bin622.fits evtable="EVENTS" scfile=/scratch/kocevski/506161/ft2_4FGL_J2129.1-0240_daily_bin622.fits sctable="SC_DATA" expcube=/scratch/kocevski/506161/ltcube_400550401_400809601_4FGL_J2129.1-0240_daily_bin622.fits outfile=/scratch/kocevski/506161/expmap_400550401_400809601_4FGL_J2129.1-0240_daily_bin622.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/506161/ltcube_400550401_400809601_4FGL_J2129.1-0240_daily_bin622.fits
.....................!
real 191.78
user 186.27
sys 4.65

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/506161/ft1_filtered_4FGL_J2129.1-0240_daily_bin622.fits scfile=/scratch/kocevski/506161/ft2_4FGL_J2129.1-0240_daily_bin622.fits outfile=/scratch/kocevski/506161/cmap_400550401_400809601_4FGL_J2129.1-0240_daily_bin622.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/506161/ft1_filtered_4FGL_J2129.1-0240_daily_bin622.fits scfile=/scratch/kocevski/506161/ft2_4FGL_J2129.1-0240_daily_bin622.fits outfile=/scratch/kocevski/506161/cmap_HighResolution_400550401_400809601_4FGL_J2129.1-0240_daily_bin622.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14874E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.655       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.288       1.0000         .10000E-03   10000.    
     9 'Prefactor '    30.868       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.640       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.0624       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    10.986       1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.843       1.0000         .10000E-03   10000.    
    17 'norm      '    .14418E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.3602       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.5330       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.5782       1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.341       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .88729       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .78389       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=   5497.193     FROM MIGRAD    STATUS=CONVERGED    576 CALLS     2884 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.5983       -.52585E-06** at limit **
   2  Prefactor     .10000E-03    14.190        .88751E-05** at limit **
   3  Prefactor     25.602        50.048       -.61787E-04    .20021E-04
   4  Prefactor     .10000E-03    15.258       -.13118E-04** at limit **
   5  Prefactor     .10000E-03    49.210        .88873E-05** at limit **
   6  Prefactor     .10000E-03    36.732       -.44513E-05** at limit **
   7  Prefactor     .10000E-03    7.6428        .24449E-05** at limit **
   8  Prefactor     10.288        14.269       -.16906E-05   -.44359E-04
   9  Prefactor     30.870        23.592       -.18272E-06    .71075E-05
  10  Prefactor     .10000E-03    39.355       -.75245E-05** at limit **
  11  Prefactor     11.640        6.7817       -.52403E-06    .16747E-04
  12  Prefactor     7.0631        3.2415       -.18804E-06    .12675E-03
  13  Prefactor     .10000E-03    22.113        .63650E-05** at limit **
  14  Prefactor     .10000E-03    46.889        .69824E-07** at limit **
  15  norm          10.986        9.5196       -.12845E-06    .16721E-04
  16  Prefactor     24.804        39.854       -.31613E-04   -.92968E-04
  17  norm          .10019E-03    14.973        .40763E-05** at limit **
  18  Prefactor     4.3607        5.2022        .19028E-05   -.31752E-04
  19  Prefactor     2.5328        6.4685       -.23449E-05   -.51687E-03
  20  Prefactor     1.5768        27.207       -.65025E-05   -.23215E-03
  21  Prefactor     18.335        20.049        .88839E-06   -.50384E-04
  22  Prefactor     .10000E-03    7.2155       -.29024E-05** at limit **
  23  Prefactor     .10000E-03    7.0508        .17190E-05** at limit **
  24  Normalizat    .88740        .23144        .58055E-05   -.11265E-03
  25  Prefactor     .78382        .10969        .22128E-05   -.25636E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.6021
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.2884
  Prefactor  = 30.8699
  Prefactor  = 0.0001
  Prefactor  = 11.6404
  Prefactor  = 7.06307
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.9859
  Prefactor  = 24.8039
  norm       = 0.000100193
  Prefactor  = 4.36069
  Prefactor  = 2.53277
  Prefactor  = 1.5768
  Prefactor  = 18.3346
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.887398
  Prefactor  = 0.783816
 **********
 **   18 **HESSE 
 **********

 FCN=   5497.193     FROM HESSE     STATUS=OK           427 CALLS     3311 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.9798        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     25.602        50.005        .79088E-04   -1.4696    
   4  Prefactor     .10000E-03    15.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    50.758        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    36.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.6490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.288        14.272        .12492E-03   -1.5066    
   9  Prefactor     30.870        23.595        .72116E-04   -1.4596    
  10  Prefactor     .10000E-03    39.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.640        6.7830        .11742E-03   -1.5025    
  12  Prefactor     7.0631        3.2532        .85391E-04   -1.5176    
  13  Prefactor     .10000E-03    22.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    47.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.986        9.5197        .12088E-03   -1.5045    
  16  Prefactor     24.804        39.700        .80369E-04   -1.4711    
  17  norm          .10019E-03    101.19        .54926E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.3607        5.1922        .17723E-03   -1.5290    
  19  Prefactor     2.5328        6.4799        .25663E-03   -1.5390    
  20  Prefactor     1.5768        27.401        .33815E-03   -1.5457    
  21  Prefactor     18.335        20.047        .93520E-04   -1.4851    
  22  Prefactor     .10000E-03    7.2243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.0583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .88740        .27569        .32043E-03   -.96904    
  25  Prefactor     .78382        .13169        .16843E-03   -1.0033    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.92702e-09
Minuit parameter uncertainties:
  1  0.00011854
  2  0.000137948
  3  50.0866
  4  1.24797e-05
  5  0.000251643
  6  0.000231852
  7  1.57614e-05
  8  14.2767
  9  23.6021
  10  2.00598e-05
  11  6.78346
  12  3.25326
  13  4.36565e-05
  14  0.00013782
  15  9.52106
  16  39.7424
  17  0.00886478
  18  5.19271
  19  6.48171
  20  13.153
  21  20.0543
  22  9.41345e-06
  23  6.71592e-06
  24  0.276131
  25  0.131739
Done.

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

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  2.006e-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:  7.838e-01  1.317e-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.874e-01  2.761e-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: 1.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.27e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/506161/likelihoodResults_400550401_400809601_4FGL_J2129.1-0240_daily_bin622.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) = 5497.19272521
delta logL = -0.00012064184466

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5497.19260456
delta logL = 5.08862285642e-09

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.5685       1.0000          .0000       10.000    
     3 'Normalizat'    .88741       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78382       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=   5497.193     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      269 TOTAL
                     EDM=   .83E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    43.120        .18142E-02** at limit **
   2  Index         2.5662        6.2829        .50000        .49381E-06
   3  Normalizat    .88740        .25826        .32043E-03    .38389E-04
   4  Prefactor     .78382        .12944        .16843E-03    .11079E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.56615
  Normalizat = 0.887398
  Prefactor  = 0.783817
 **********
 **   18 **HESSE 
 **********

 FCN=   5497.193     FROM HESSE     STATUS=OK            29 CALLS      298 TOTAL
                     EDM=   .84E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    39.278        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5662        6.2785        .50000       -.50839    
   3  Normalizat    .88740        .25847        .12817E-04   -.96904    
   4  Prefactor     .78382        .12955        .33686E-04   -1.0033    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.41357e-12
Minuit parameter uncertainties:
  1  3.78656e-05
  2  4.37588
  3  0.258835
  4  0.129601
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/506161': 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) = 5497.19260456
delta logL = 8.79117578734e-09

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  3.787e-05  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  2.566e+00  4.376e+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.838e-01  1.296e-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.874e-01  2.588e-01  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/506161/cmap_HighResolution_400550401_400809601_4FGL_J2129.1-0240_daily_bin622.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.27e-03', job_status='DONE', photon_flux_upper_limit='1.18e-07', time_completed='2021-09-26 14:49:12.681776', job_id='506161', GAL2='0.78', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1632692952.68', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='8.79e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='622' AND source_name='4FGL J2129.1-0240' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 14:49:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0126>
Subject: Job 506161: <4FGL_J2129.1-0240_daily_bin622> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.1-0240_daily_bin622 322.296 -2.6829 400550401 400809601 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 :                                   645.13 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             299.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   742 sec.
    Turnaround time :                            823 sec.

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

