/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 4 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 = 6842
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2129.1-0240_daily_bin391
RA = 322.296, Dec = -2.6829
tmin = 340675201, tmax = 340934401
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='504754', job_status='RUN', time_executed='2021-09-26 14:32:17.813983', time_epoch_executed='1632691937.81' WHERE source_name='4FGL J2129.1-0240' and cadence='daily' and bin_id='391'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/504754

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/504754/ft1_4FGL_J2129.1-0240_daily_bin391.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/504754/ft2_4FGL_J2129.1-0240_daily_bin391.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/504754/ft1_4FGL_J2129.1-0240_daily_bin391.fits outfile=/scratch/kocevski/504754/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin391.fits ra=322.296 dec=-2.6829 rad=12.0 tmin=340675201.0 tmax=340934401.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 6.28
user 5.94
sys 0.32

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/504754/ft1_filtered_4FGL_J2129.1-0240_daily_bin391.fits" evtable="EVENTS" scfile=/scratch/kocevski/504754/ft2_4FGL_J2129.1-0240_daily_bin391.fits sctable="SC_DATA" outfile=/scratch/kocevski/504754/ltcube_340675201_340934401_4FGL_J2129.1-0240_daily_bin391.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/504754/ft2_4FGL_J2129.1-0240_daily_bin391.fits
.....................!
real 15.64
user 15.20
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/504754/ft1_filtered_4FGL_J2129.1-0240_daily_bin391.fits evtable="EVENTS" scfile=/scratch/kocevski/504754/ft2_4FGL_J2129.1-0240_daily_bin391.fits sctable="SC_DATA" expcube=/scratch/kocevski/504754/ltcube_340675201_340934401_4FGL_J2129.1-0240_daily_bin391.fits outfile=/scratch/kocevski/504754/expmap_340675201_340934401_4FGL_J2129.1-0240_daily_bin391.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/504754/ltcube_340675201_340934401_4FGL_J2129.1-0240_daily_bin391.fits
.....................!
real 194.44
user 187.95
sys 6.07

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

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/504754/ft1_filtered_4FGL_J2129.1-0240_daily_bin391.fits scfile=/scratch/kocevski/504754/ft2_4FGL_J2129.1-0240_daily_bin391.fits outfile=/scratch/kocevski/504754/cmap_HighResolution_340675201_340934401_4FGL_J2129.1-0240_daily_bin391.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/504754/ft1_filtered_4FGL_J2129.1-0240_daily_bin391.fits evtable="EVENTS" scfile=/scratch/kocevski/504754/ft2_4FGL_J2129.1-0240_daily_bin391.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/504754/Model_4FGL_J2129.1-0240_daily_bin391.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/504754/ft1_filtered_4FGL_J2129.1-0240_daily_bin391.fits.....................!
real 53.42
user 52.04
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0270       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.130       1.0000         .10000E-03   10000.    
     3 'Prefactor '    55.090       1.0000         .10000E-03   10000.    
     4 'Prefactor '    51.319       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .93912       1.0000         .10000E-03   10000.    
     9 'Prefactor '    79.485       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .23307E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.8351       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    61.730       1.0000         .10000E-03   10000.    
    14 'Prefactor '    53.297       1.0000         .10000E-03   10000.    
    15 'norm      '    1.0297       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10451E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10899       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .64927       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .97496       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=   5092.744     FROM MIGRAD    STATUS=CONVERGED   1033 CALLS     3848 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0289        3.5264        .24466E-03   -.28670E-04
   2  Prefactor     12.133        19.716        .11502E-03    .34595E-05
   3  Prefactor     55.103        48.203        .54043E-04   -.32396E-05
   4  Prefactor     51.332        38.784        .55983E-04    .36553E-05
   5  Prefactor     .10000E-03    28.238        .18142E-02** at limit **
   6  Prefactor     .10000E-03    27.268        .18142E-02** at limit **
   7  Prefactor     .10000E-03    9.1880        .18142E-02** at limit **
   8  Prefactor     .95435        95.794        .46993E-02    .83676E-04
   9  Prefactor     79.496        38.237        .45046E-04    .25238E-06
  10  Prefactor     .10000E-03    54.328        .13482    ** at limit **
  11  Prefactor     3.8387        7.4572        .10304E-02    .19043E-04
  12  Prefactor     .10000E-03    .92342        .66742E-03** at limit **
  13  Prefactor     61.670        48.508        .51071E-04    .10463E-04
  14  Prefactor     53.304        43.241        .54940E-04   -.18210E-04
  15  norm          1.0323        19.598        .25052E-02    .69315E-03
  16  Prefactor     .10000E-03    124.35        .18142E-02** at limit **
  17  norm          .10000E-03    7.0375        .18142E-02** at limit **
  18  Prefactor     .20628        112.19        .34638E-02    .15618E-03
  19  Prefactor     .10000E-03    14.278        .36285E-03** at limit **
  20  Prefactor     .10000E-03    12.976        .18142E-02** at limit **
  21  Prefactor     .10000E-03    46.951        .18142E-02** at limit **
  22  Prefactor     .10000E-03    11.686        .18142E-02** at limit **
  23  Prefactor     .10000E-03    10.853        .18142E-02** at limit **
  24  Normalizat    .64910        .30542        .38536E-03    .45138E-04
  25  Prefactor     .97480        .15022        .16369E-03    .82233E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.02894
  Prefactor  = 12.1334
  Prefactor  = 55.103
  Prefactor  = 51.3324
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.954354
  Prefactor  = 79.4956
  Prefactor  = 0.0001
  Prefactor  = 3.83867
  Prefactor  = 0.0001
  Prefactor  = 61.6696
  Prefactor  = 53.304
  norm       = 1.03228
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.20628
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.649099
  Prefactor  = 0.974804
 **********
 **   18 **HESSE 
 **********

 FCN=   5092.744     FROM HESSE     STATUS=OK           419 CALLS     4267 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0289        3.5251        .97865E-05   -1.5505    
   2  Prefactor     12.133        19.694        .46007E-05   -1.5011    
   3  Prefactor     55.103        48.184        .10809E-04   -1.4222    
   4  Prefactor     51.332        38.763        .22393E-05   -1.4274    
   5  Prefactor     .10000E-03    28.238        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    27.270        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.1883        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .95435        94.983        .18797E-03   -1.5513    
   9  Prefactor     79.496        38.198        .18018E-05   -1.3922    
  10  Prefactor     .10000E-03    55.390        .13299       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.8387        7.4491        .41217E-04   -1.5316    
  12  Prefactor     .10000E-03    .92343        .13348E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     61.670        48.446        .20428E-05   -1.4136    
  14  Prefactor     53.304        43.230        .10988E-04   -1.4246    
  15  norm          1.0323        19.602        .50104E-03   -1.5505    
  16  Prefactor     .10000E-03    124.38        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    7.0377        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .20628        112.51        .13855E-03   -1.5617    
  19  Prefactor     .10000E-03    14.278        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.982        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    46.971        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.689        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    10.854        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .64910        .30439        .15414E-04   -1.0594    
  25  Prefactor     .97480        .15022        .32738E-04   -.93574    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.01731e-10
Minuit parameter uncertainties:
  1  3.52578
  2  19.7047
  3  48.2183
  4  38.7821
  5  7.63439e-05
  6  2.86974e-07
  7  2.13724e-06
  8  19.072
  9  38.2095
  10  0.000243915
  11  7.45088
  12  4.21855e-07
  13  48.4772
  14  43.2553
  15  8.99955
  16  2.49734e-05
  17  2.01042e-06
  18  9.65104
  19  2.34951e-05
  20  8.12539e-06
  21  2.51784e-05
  22  5.43178e-07
  23  5.15293e-06
  24  0.305181
  25  0.150283
Done.

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

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  2.439e-04  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.748e-01  1.503e-01  0.000e+00  1.000e+01 ( 1.000e+00)
549        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
550        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
547   Normalization:  6.491e-01  3.052e-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.40e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.10e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/504754/likelihoodResults_340675201_340934401_4FGL_J2129.1-0240_daily_bin391.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) = 5092.74389318
delta logL = -4.98485587741e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5092.74389318
delta logL = -4.98368717672e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96365E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6372       1.0000          .0000       10.000    
     3 'Normalizat'    .64909       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97481       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.

 FCN=   5091.706     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      282 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .59072E-01    .72717        .28905E-02    .41470E-02
   2  Index         6.9546        2.9111        .13688        .13594E-03
   3  Normalizat    .49577        .61158E-01    .98545E-01    .68297E-04
   4  Prefactor     1.0268        .31511E-01    .45951E-01   -.11206E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0590721
  Index      = 6.95463
  Normalizat = 0.495769
  Prefactor  = 1.02682
 **********
 **   18 **HESSE 
 **********

 FCN=   5091.706     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      317 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .59072E-01    1.7130        .13098E-03   -1.5659    
   2  Index         6.9546        7.8471        .52583E-02    .40164    
   3  Normalizat    .49577        .22517        .43669E-03   -1.1261    
   4  Prefactor     1.0268        .11375        .15973E-03   -.91841    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.29095e-11
Minuit parameter uncertainties:
  1  0.63569
  2  5.73677
  3  0.225584
  4  0.113774
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/504754': 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) = 5091.70563592
delta logL = 1.03825227999

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  5.907e-02  6.357e-01  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  6.955e+00  5.737e+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:  1.027e+00  1.138e-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:  4.958e-01  2.256e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.35
Ra Dec: 322.296 -2.683
Photon Index (Free Index): 6.95 +/- 5.74
Photon Flux (Free Index): 1.30e-07 +/- 9.72e-08
Energy Flux (Free Index): 1.56e-05 +/- 1.24e-05

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/504754/cmap_HighResolution_340675201_340934401_4FGL_J2129.1-0240_daily_bin391.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', comment='SUCCESS', energy_flux2='1.56e-05', dlogl='1.04e+00', photon_flux2='1.30e-07', job_status='DONE', time_completed='2021-09-26 14:44:12.874681', photon_index_error2='5.74', photon_index2='6.95', ts='-0.00', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.40e-07', energy_flux_error2='1.24e-05', EG='0.65', time_epoch_completed='1632692652.87', return_code='0', job_id='504754', GAL2='1.03', EG2='0.50', return_code2='102', photon_flux_error2='9.72e-08', ts2='2.35', photon_index='2.64' WHERE bin_id='391' AND source_name='4FGL J2129.1-0240' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 14:44:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 504754: <4FGL_J2129.1-0240_daily_bin391> in cluster <slac> Done

Job <4FGL_J2129.1-0240_daily_bin391> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep 26 14:30:26 2021
Job was executed on host(s) <bullet0149>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 14:32: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:32:03 2021
Terminated at Sun Sep 26 14:44:13 2021
Results reported at Sun Sep 26 14:44:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.1-0240_daily_bin391 322.296 -2.6829 340675201 340934401 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 :                                   713.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             291.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   730 sec.
    Turnaround time :                            827 sec.

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

