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


Performing analysis on: 4FGL_J2129.1-0240_daily_bin195
RA = 322.296, Dec = -2.6829
tmin = 289872001, tmax = 290131201
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='503644', job_status='RUN', time_executed='2021-09-26 14:28:38.849741', time_epoch_executed='1632691718.85' WHERE source_name='4FGL J2129.1-0240' and cadence='daily' and bin_id='195'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/503644

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/503644/ft1_4FGL_J2129.1-0240_daily_bin195.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/503644/ft2_4FGL_J2129.1-0240_daily_bin195.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/503644/ft1_4FGL_J2129.1-0240_daily_bin195.fits outfile=/scratch/kocevski/503644/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin195.fits ra=322.296 dec=-2.6829 rad=12.0 tmin=289872001.0 tmax=290131201.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.56
user 3.29
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/503644/ft2_4FGL_J2129.1-0240_daily_bin195.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/503644/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin195.fits evtable="EVENTS" outfile="/scratch/kocevski/503644/ft1_filtered_4FGL_J2129.1-0240_daily_bin195.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.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/503644/ft1_filtered_4FGL_J2129.1-0240_daily_bin195.fits" evtable="EVENTS" scfile=/scratch/kocevski/503644/ft2_4FGL_J2129.1-0240_daily_bin195.fits sctable="SC_DATA" outfile=/scratch/kocevski/503644/ltcube_289872001_290131201_4FGL_J2129.1-0240_daily_bin195.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/503644/ft2_4FGL_J2129.1-0240_daily_bin195.fits
.....................!
real 13.90
user 13.55
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/503644/ft1_filtered_4FGL_J2129.1-0240_daily_bin195.fits evtable="EVENTS" scfile=/scratch/kocevski/503644/ft2_4FGL_J2129.1-0240_daily_bin195.fits sctable="SC_DATA" expcube=/scratch/kocevski/503644/ltcube_289872001_290131201_4FGL_J2129.1-0240_daily_bin195.fits outfile=/scratch/kocevski/503644/expmap_289872001_290131201_4FGL_J2129.1-0240_daily_bin195.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/503644/ltcube_289872001_290131201_4FGL_J2129.1-0240_daily_bin195.fits
.....................!
real 190.88
user 185.49
sys 4.91

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/503644/ft1_filtered_4FGL_J2129.1-0240_daily_bin195.fits scfile=/scratch/kocevski/503644/ft2_4FGL_J2129.1-0240_daily_bin195.fits outfile=/scratch/kocevski/503644/cmap_289872001_290131201_4FGL_J2129.1-0240_daily_bin195.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/503644/ft1_filtered_4FGL_J2129.1-0240_daily_bin195.fits scfile=/scratch/kocevski/503644/ft2_4FGL_J2129.1-0240_daily_bin195.fits outfile=/scratch/kocevski/503644/cmap_HighResolution_289872001_290131201_4FGL_J2129.1-0240_daily_bin195.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.59
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/503644/ft1_filtered_4FGL_J2129.1-0240_daily_bin195.fits evtable="EVENTS" scfile=/scratch/kocevski/503644/ft2_4FGL_J2129.1-0240_daily_bin195.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/503644/Model_4FGL_J2129.1-0240_daily_bin195.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/503644/ft1_filtered_4FGL_J2129.1-0240_daily_bin195.fits.....................!
real 67.14
user 65.76
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10547E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    49.749       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.008       1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.551       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.6001       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.3794       1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.5196       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.1393       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.8116       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0455       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0509       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=   6682.359     FROM MIGRAD    STATUS=CONVERGED    590 CALLS     2876 TOTAL
                     EDM=   .31E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.4164        .48991E-07** at limit **
   2  Prefactor     .10000E-03    10.648        .42585E-06** at limit **
   3  Prefactor     .10000E-03    287.84       -.36468E-06** at limit **
   4  Prefactor     .10000E-03    15.569       -.49114E-06** at limit **
   5  Prefactor     .10000E-03    10.405       -.26888E-06** at limit **
   6  Prefactor     49.742        63.408        .91578E-06   -.11219E-04
   7  Prefactor     .10000E-03    7.7521        .36519E-07** at limit **
   8  Prefactor     19.008        18.315        .19858E-06   -.93396E-05
   9  Prefactor     28.555        25.474        .10532E-06   -.27159E-04
  10  Prefactor     .10000E-03    36.270        .24390E-05** at limit **
  11  Prefactor     7.5996        6.5209        .75878E-06    .60164E-04
  12  Prefactor     .10000E-03    1.8204        .10961E-07** at limit **
  13  Prefactor     .10000E-03    42.509       -.22714E-05** at limit **
  14  Prefactor     .10000E-03    24.316       -.16467E-05** at limit **
  15  norm          .10000E-03    4.5106        .15058E-07** at limit **
  16  Prefactor     3.3164        323.86        .17244E-04   -.68498E-05
  17  norm          .10000E-03    15.914       -.66614E-06** at limit **
  18  Prefactor     3.5244        9.3166        .29644E-05   -.58449E-04
  19  Prefactor     .10000E-03    2.2758        .39335E-07** at limit **
  20  Prefactor     .10000E-03    19.608        .11461E-05** at limit **
  21  Prefactor     4.1381        56.166       -.41651E-05   -.26176E-04
  22  Prefactor     8.8104        18.182        .12601E-05   -.22519E-05
  23  Prefactor     .10000E-03    6.8087        .11226E-07** at limit **
  24  Normalizat    1.0457        .25309       -.24083E-06   -.67704E-04
  25  Prefactor     1.0508        .12315       -.85031E-06   -.15569E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 49.7425
  Prefactor  = 0.0001
  Prefactor  = 19.0081
  Prefactor  = 28.5545
  Prefactor  = 0.0001
  Prefactor  = 7.59958
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.3164
  norm       = 0.0001
  Prefactor  = 3.52439
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.13814
  Prefactor  = 8.81041
  Prefactor  = 0.0001
  Normalizat = 1.04573
  Prefactor  = 1.05083
 **********
 **   18 **HESSE 
 **********

 FCN=   6682.359     FROM HESSE     STATUS=OK           417 CALLS     3293 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.4305        .12408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    297.45        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     49.742        63.457        .56856E-04   -1.4296    
   7  Prefactor     .10000E-03    7.7565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     19.008        18.341        .91866E-04   -1.4836    
   9  Prefactor     28.555        25.475        .74979E-04   -1.4639    
  10  Prefactor     .10000E-03    36.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.5996        6.5216        .72733E-03   -1.5157    
  12  Prefactor     .10000E-03    1.8776        .21512E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    42.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    24.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.5185        .16956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.3164        327.40        .22011E-03   -1.5344    
  17  norm          .10000E-03    15.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.5244        9.3646        .10774E-02   -1.5332    
  19  Prefactor     .10000E-03    2.2809        .12043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    19.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.1381        56.517        .19812E-03   -1.5301    
  22  Prefactor     8.8104        18.165        .67515E-03   -1.5114    
  23  Prefactor     .10000E-03    6.8124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0457        .29962        .35524E-03   -.91514    
  25  Prefactor     1.0508        .14574        .17976E-03   -.91054    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.01287e-11
Minuit parameter uncertainties:
  1  4.40084e-06
  2  1.20481e-05
  3  0.000768364
  4  1.40627e-05
  5  5.57306e-06
  6  63.5431
  7  2.82828e-06
  8  18.3469
  9  25.4851
  10  4.04769e-05
  11  6.5222
  12  7.78973e-07
  13  9.33456e-05
  14  4.08067e-05
  15  1.81032e-06
  16  66.2782
  17  0.000116867
  18  9.36851
  19  2.32052e-06
  20  5.13918e-05
  21  30.6209
  22  18.1767
  23  9.20361e-08
  24  0.300101
  25  0.1458
Done.

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

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  4.048e-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:  1.051e+00  1.458e-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.046e+00  3.001e-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.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/503644/likelihoodResults_289872001_290131201_4FGL_J2129.1-0240_daily_bin195.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) = 6682.35937213
delta logL = -0.000131055793645

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6682.35924114
delta logL = -6.12235453445e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5653       1.0000          .0000       10.000    
     3 'Normalizat'    1.0457       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0508       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=   6682.359     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      235 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7847.1        .90712E-02** at limit **
   2  Index         2.5785        5.3559        .50000       -.34202E-05
   3  Normalizat    1.0457        .14516        .80247E-01    .23361E-04
   4  Prefactor     1.0508        .73524E-01    .39862E-01    .59524E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.57854
  Normalizat = 1.04573
  Prefactor  = 1.05083
 **********
 **   18 **HESSE 
 **********

 FCN=   6682.359     FROM HESSE     STATUS=OK            31 CALLS      266 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    40.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5785        6.2890        .50000       -.50555    
   3  Normalizat    1.0457        .28037        .35524E-03   -.91514    
   4  Prefactor     1.0508        .14339        .17976E-03   -.91054    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32659e-11
Minuit parameter uncertainties:
  1  1.14049e-05
  2  4.72556
  3  0.280766
  4  0.143441
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/503644': 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) = 6682.35924112
delta logL = -4.5613887778e-08

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  1.140e-05  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  2.579e+00  4.726e+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.051e+00  1.434e-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.046e+00  2.808e-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/503644/cmap_HighResolution_289872001_290131201_4FGL_J2129.1-0240_daily_bin195.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.17e-03', job_status='DONE', photon_flux_upper_limit='1.17e-07', time_completed='2021-09-26 14:40:40.828315', job_id='503644', GAL2='1.05', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1632692440.83', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='-4.56e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='195' AND source_name='4FGL J2129.1-0240' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 14:40:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 503644: <4FGL_J2129.1-0240_daily_bin195> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.1-0240_daily_bin195 322.296 -2.6829 289872001 290131201 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 :                                   719.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             319.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   897 sec.
    Turnaround time :                            925 sec.

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

