/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 149 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 = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2129.1-0240_daily_bin208
RA = 322.296, Dec = -2.6829
tmin = 293241601, tmax = 293500801
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='503665', job_status='RUN', time_executed='2021-09-26 14:28:36.093515', time_epoch_executed='1632691716.09' WHERE source_name='4FGL J2129.1-0240' and cadence='daily' and bin_id='208'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/503665

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/503665/ft1_4FGL_J2129.1-0240_daily_bin208.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/503665/ft2_4FGL_J2129.1-0240_daily_bin208.fits


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

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

Done.
real 3.61
user 3.38
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/503665/ft1_filtered_4FGL_J2129.1-0240_daily_bin208.fits" evtable="EVENTS" scfile=/scratch/kocevski/503665/ft2_4FGL_J2129.1-0240_daily_bin208.fits sctable="SC_DATA" outfile=/scratch/kocevski/503665/ltcube_293241601_293500801_4FGL_J2129.1-0240_daily_bin208.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/503665/ft2_4FGL_J2129.1-0240_daily_bin208.fits
.....................!
real 14.41
user 14.00
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/503665/ft1_filtered_4FGL_J2129.1-0240_daily_bin208.fits evtable="EVENTS" scfile=/scratch/kocevski/503665/ft2_4FGL_J2129.1-0240_daily_bin208.fits sctable="SC_DATA" expcube=/scratch/kocevski/503665/ltcube_293241601_293500801_4FGL_J2129.1-0240_daily_bin208.fits outfile=/scratch/kocevski/503665/expmap_293241601_293500801_4FGL_J2129.1-0240_daily_bin208.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/503665/ltcube_293241601_293500801_4FGL_J2129.1-0240_daily_bin208.fits
.....................!
real 191.59
user 186.11
sys 4.76

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/503665/ft1_filtered_4FGL_J2129.1-0240_daily_bin208.fits scfile=/scratch/kocevski/503665/ft2_4FGL_J2129.1-0240_daily_bin208.fits outfile=/scratch/kocevski/503665/cmap_293241601_293500801_4FGL_J2129.1-0240_daily_bin208.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/503665/ft1_filtered_4FGL_J2129.1-0240_daily_bin208.fits scfile=/scratch/kocevski/503665/ft2_4FGL_J2129.1-0240_daily_bin208.fits outfile=/scratch/kocevski/503665/cmap_HighResolution_293241601_293500801_4FGL_J2129.1-0240_daily_bin208.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/503665/ft1_filtered_4FGL_J2129.1-0240_daily_bin208.fits evtable="EVENTS" scfile=/scratch/kocevski/503665/ft2_4FGL_J2129.1-0240_daily_bin208.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/503665/Model_4FGL_J2129.1-0240_daily_bin208.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/503665/ft1_filtered_4FGL_J2129.1-0240_daily_bin208.fits.....................!
real 55.25
user 53.81
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24049E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    38.500       1.0000         .10000E-03   10000.    
     5 'Prefactor '    31.798       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.285       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.745       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .59010E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.7190       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10832E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.5906       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .34041E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    2.1365       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.4335       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.7715       1.0000         .10000E-03   10000.    
    22 'Prefactor '    44.584       1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.680       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2854       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .69850       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=   5288.789     FROM MIGRAD    STATUS=CONVERGED   1072 CALLS     3848 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    10.778        .28568E-02** at limit **
   2  Prefactor     .10000E-03    12.993        .18142E-02** at limit **
   3  Prefactor     .10000E-03    22.410        .18142E-02** at limit **
   4  Prefactor     38.506        31.829        .64596E-04    .72158E-05
   5  Prefactor     31.796        29.014        .71057E-04   -.20767E-04
   6  Prefactor     12.287        69.854        .11429E-03    .20691E-04
   7  Prefactor     11.695        29.905        .11689E-03   -.81405E-04
   8  Prefactor     .10082E-03    39.382        .82458E-01** at limit **
   9  Prefactor     .10000E-03    19.693        .18142E-02** at limit **
  10  Prefactor     .10000E-03    24.523        .18142E-02** at limit **
  11  Prefactor     5.7180        5.8251        .16796E-03   -.31136E-05
  12  Prefactor     .10000E-03    20.878        .15072E-02** at limit **
  13  Prefactor     .10000E-03    31.773        .18142E-02** at limit **
  14  Prefactor     .10000E-03    16.587        .18142E-02** at limit **
  15  norm          5.5900        6.2176        .16991E-03   -.60220E-05
  16  Prefactor     .10008E-03    54.031        .13452    ** at limit **
  17  norm          2.1438        26.892        .28201E-03    .11892E-04
  18  Prefactor     .10000E-03    8.0806        .18142E-02** at limit **
  19  Prefactor     5.4306        6.7983        .17239E-03    .44581E-04
  20  Prefactor     .10000E-03    11.025        .18142E-02** at limit **
  21  Prefactor     3.7699        28.781        .20788E-03    .93518E-05
  22  Prefactor     44.578        27.796        .60044E-04    .11928E-04
  23  Prefactor     16.677        19.392        .98066E-04    .47183E-04
  24  Normalizat    1.2861        .29542        .28380E-03    .30595E-03
  25  Prefactor     .69830        .13980        .18430E-03    .21282E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.5058
  Prefactor  = 31.796
  Prefactor  = 12.2873
  Prefactor  = 11.695
  Prefactor  = 0.000100815
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.71797
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.59002
  Prefactor  = 0.00010008
  norm       = 2.14381
  Prefactor  = 0.0001
  Prefactor  = 5.43062
  Prefactor  = 0.0001
  Prefactor  = 3.76994
  Prefactor  = 44.5777
  Prefactor  = 16.6768
  Normalizat = 1.28613
  Prefactor  = 0.698297
 **********
 **   18 **HESSE 
 **********

 FCN=   5288.789     FROM HESSE     STATUS=OK           421 CALLS     4269 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    10.860        .57137E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.997        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    22.411        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     38.506        31.824        .25838E-05   -1.4466    
   5  Prefactor     31.796        29.013        .14211E-04   -1.4580    
   6  Prefactor     12.287        69.932        .45715E-05   -1.5007    
   7  Prefactor     11.695        29.730        .46757E-05   -1.5024    
   8  Prefactor     .10082E-03    33.008        .91067E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    19.697        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    24.525        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.7180        5.8250        .67184E-05   -1.5230    
  12  Prefactor     .10000E-03    21.469        .60287E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    31.777        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.588        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.5900        6.2177        .67963E-05   -1.5235    
  16  Prefactor     .10008E-03    54.349        .13398       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.1438        26.880        .11281E-04   -1.5415    
  18  Prefactor     .10000E-03    8.0840        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.4306        6.7982        .68955E-05   -1.5242    
  20  Prefactor     .10000E-03    11.031        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.7699        28.777        .83152E-05   -1.5320    
  22  Prefactor     44.578        27.795        .24018E-05   -1.4372    
  23  Prefactor     16.677        19.395        .39227E-05   -1.4891    
  24  Normalizat    1.2861        .29561        .56761E-04   -.83981    
  25  Prefactor     .69830        .13993        .36861E-04   -1.0359    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26821e-09
Minuit parameter uncertainties:
  1  0.000566424
  2  1.96423e-05
  3  1.00189e-05
  4  31.8377
  5  29.0263
  6  58.7314
  7  29.7681
  8  0.0103807
  9  6.5357e-05
  10  3.66749e-05
  11  5.82553
  12  0.000507627
  13  2.72062e-05
  14  2.34687e-06
  15  6.21842
  16  0.00417004
  17  15.1904
  18  1.39969e-05
  19  6.79915
  20  2.58713e-05
  21  20.845
  22  27.8027
  23  19.4027
  24  0.295998
  25  0.139998
Done.

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

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  3.667e-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:  6.983e-01  1.400e-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.286e+00  2.960e-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.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/503665/likelihoodResults_293241601_293500801_4FGL_J2129.1-0240_daily_bin208.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) = 5288.78946387
delta logL = -0.000194280306459

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5288.78927113
delta logL = -1.54310873768e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0378       1.0000          .0000       10.000    
     3 'Normalizat'    1.2861       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69830       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=   5288.789     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      278 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10967E-03    14.353        .18142E-01** at limit **
   2  Index         2.8802        5.9905        .50000        .20485E-04
   3  Normalizat    1.2861        .53682E-02    .28380E-03    .54439E-04
   4  Prefactor     .69830        .26656E-02    .18430E-03   -.12337E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000109668
  Index      = 2.88018
  Normalizat = 1.28612
  Prefactor  = 0.698298
 **********
 **   18 **HESSE 
 **********

 FCN=   5288.789     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      307 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10967E-03    103.23        .29841E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8802        6.4339        .50000       -.43782    
   3  Normalizat    1.2861        .14424E-01    .11352E-04   -.83982    
   4  Prefactor     .69830        .71619E-02    .73722E-05   -1.0359    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.20905e-08
Minuit parameter uncertainties:
  1  0.0632938
  2  375.335
  3  0.0144236
  4  0.00716193
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/503665': 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) = 5288.78927062
delta logL = -1.0388193914e-06

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.097e-04  6.329e-02  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  2.880e+00  3.753e+02  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:  6.983e-01  7.162e-03  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.286e+00  1.442e-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/503665/cmap_HighResolution_293241601_293500801_4FGL_J2129.1-0240_daily_bin208.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.88e-03', job_status='DONE', photon_flux_upper_limit='1.00e-07', time_completed='2021-09-26 14:40:28.390168', job_id='503665', GAL2='0.70', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1632692428.39', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='-1.04e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='208' AND source_name='4FGL J2129.1-0240' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 14:40:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 503665: <4FGL_J2129.1-0240_daily_bin208> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.1-0240_daily_bin208 322.296 -2.6829 293241601 293500801 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 :                                   710.09 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             282.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            911 sec.

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

