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


Performing analysis on: 4FGL_J2129.1-0240_daily_bin905
RA = 322.296, Dec = -2.6829
tmin = 473904001, tmax = 474163201
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='508935', job_status='RUN', time_executed='2021-09-26 14:48:54.907243', time_epoch_executed='1632692934.91' WHERE source_name='4FGL J2129.1-0240' and cadence='daily' and bin_id='905'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/508935

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/508935/ft1_4FGL_J2129.1-0240_daily_bin905.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/508935/ft2_4FGL_J2129.1-0240_daily_bin905.fits


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

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

Done.
real 5.31
user 4.99
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/508935/ft1_filtered_4FGL_J2129.1-0240_daily_bin905.fits" evtable="EVENTS" scfile=/scratch/kocevski/508935/ft2_4FGL_J2129.1-0240_daily_bin905.fits sctable="SC_DATA" outfile=/scratch/kocevski/508935/ltcube_473904001_474163201_4FGL_J2129.1-0240_daily_bin905.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/508935/ft2_4FGL_J2129.1-0240_daily_bin905.fits
.....................!
real 20.19
user 19.75
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/508935/ft1_filtered_4FGL_J2129.1-0240_daily_bin905.fits evtable="EVENTS" scfile=/scratch/kocevski/508935/ft2_4FGL_J2129.1-0240_daily_bin905.fits sctable="SC_DATA" expcube=/scratch/kocevski/508935/ltcube_473904001_474163201_4FGL_J2129.1-0240_daily_bin905.fits outfile=/scratch/kocevski/508935/expmap_473904001_474163201_4FGL_J2129.1-0240_daily_bin905.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/508935/ltcube_473904001_474163201_4FGL_J2129.1-0240_daily_bin905.fits
.....................!
real 196.36
user 191.11
sys 4.80

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

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

This is gtbin version HEAD
real 0.60
user 0.43
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/508935/ft1_filtered_4FGL_J2129.1-0240_daily_bin905.fits scfile=/scratch/kocevski/508935/ft2_4FGL_J2129.1-0240_daily_bin905.fits outfile=/scratch/kocevski/508935/cmap_HighResolution_473904001_474163201_4FGL_J2129.1-0240_daily_bin905.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=322.296 yref=-2.6829 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.61
user 0.42
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/508935/ft1_filtered_4FGL_J2129.1-0240_daily_bin905.fits evtable="EVENTS" scfile=/scratch/kocevski/508935/ft2_4FGL_J2129.1-0240_daily_bin905.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/508935/Model_4FGL_J2129.1-0240_daily_bin905.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/508935/ft1_filtered_4FGL_J2129.1-0240_daily_bin905.fits.....................!
real 64.04
user 62.50
sys 1.35

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17092       1.0000         .10000E-03   10000.    
     2 'Prefactor '    29.520       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.0418       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.1741       1.0000         .10000E-03   10000.    
     6 'Prefactor '    37.803       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10259E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.048       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    38.136       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.3679       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11288E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12471E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    66.064       1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.7127       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.848       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11132E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4465       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .59782       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=   6090.155     FROM MIGRAD    STATUS=CONVERGED    592 CALLS     2931 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .21687        6.0061       -.13709E-05    .47078E-03
   2  Prefactor     29.511        21.673        .28598E-06    .57714E-04
   3  Prefactor     1.9662        192.88        .56265E-05    .20407E-04
   4  Prefactor     .10000E-03    22.119       -.39030E-06** at limit **
   5  Prefactor     6.1808        15.502        .16439E-06    .59420E-05
   6  Prefactor     37.659        59.592       -.44103E-05   -.66907E-04
   7  Prefactor     .10000E-03    21.823       -.96472E-08** at limit **
   8  Prefactor     14.050        12.072       -.64420E-07   -.11370E-04
   9  Prefactor     .10000E-03    36.246        .16228E-06** at limit **
  10  Prefactor     38.114        41.291        .66686E-06    .20844E-05
  11  Prefactor     4.3683        4.6804        .15100E-07   -.59350E-05
  12  Prefactor     .10000E-03    1.0112       -.19759E-07** at limit **
  13  Prefactor     .10000E-03    81.120        .12162E-05** at limit **
  14  Prefactor     .10000E-03    81.123       -.92103E-07** at limit **
  15  norm          .10000E-03    4.1943       -.19324E-08** at limit **
  16  Prefactor     66.072        49.421        .52151E-06   -.22158E-04
  17  norm          .10000E-03    36.001       -.62312E-07** at limit **
  18  Prefactor     5.7126        6.5375       -.63914E-06   -.24141E-03
  19  Prefactor     .10000E-03    2.2290       -.34622E-07** at limit **
  20  Prefactor     13.846        12.503        .96791E-07   -.43164E-04
  21  Prefactor     .10000E-03    10.219       -.11766E-06** at limit **
  22  Prefactor     .10002E-03    71.873       -.25910E-05** at limit **
  23  Prefactor     .10000E-03    26.415       -.53238E-06** at limit **
  24  Normalizat    1.4467        .25590       -.30250E-05    .34223E-04
  25  Prefactor     .59766        .12190        .21602E-05   -.35488E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.216868
  Prefactor  = 29.5106
  Prefactor  = 1.9662
  Prefactor  = 0.0001
  Prefactor  = 6.18076
  Prefactor  = 37.6589
  Prefactor  = 0.0001
  Prefactor  = 14.05
  Prefactor  = 0.0001
  Prefactor  = 38.1144
  Prefactor  = 4.36832
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 66.0718
  norm       = 0.0001
  Prefactor  = 5.71265
  Prefactor  = 0.0001
  Prefactor  = 13.8463
  Prefactor  = 0.0001
  Prefactor  = 0.000100019
  Prefactor  = 0.0001
  Normalizat = 1.44668
  Prefactor  = 0.597664
 **********
 **   18 **HESSE 
 **********

 FCN=   6090.155     FROM HESSE     STATUS=OK           427 CALLS     3358 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .21687        34.239        .25199E-02   -1.5615    
   2  Prefactor     29.511        21.648        .73741E-04   -1.4621    
   3  Prefactor     1.9662        195.23        .28940E-03   -1.5428    
   4  Prefactor     .10000E-03    22.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.1808        15.472        .16157E-03   -1.5211    
   6  Prefactor     37.659        61.216        .65187E-04   -1.4480    
   7  Prefactor     .10000E-03    22.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.050        12.072        .10686E-03   -1.4958    
   9  Prefactor     .10000E-03    36.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     38.114        41.268        .64902E-04   -1.4472    
  11  Prefactor     4.3683        4.6792        .16921E-03   -1.5290    
  12  Prefactor     .10000E-03    1.0257        .76479E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    82.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    81.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.2115        .15609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     66.072        49.455        .49378E-04   -1.4080    
  17  norm          .10000E-03    36.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.7126        6.6480        .84027E-03   -1.5230    
  19  Prefactor     .10000E-03    2.2352        .11376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.846        12.349        .10763E-03   -1.4964    
  21  Prefactor     .10000E-03    10.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10002E-03    75.447        .50817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    27.026        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.4467        .27683        .27478E-03   -.79288    
  25  Prefactor     .59766        .13038        .19647E-03   -1.0768    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.93568e-09
Minuit parameter uncertainties:
  1  5.45178
  2  21.6539
  3  39.3165
  4  5.81965e-05
  5  15.4822
  6  61.3183
  7  8.72209e-06
  8  12.0739
  9  5.34105e-05
  10  41.2985
  11  4.67961
  12  2.28997e-07
  13  0.000336217
  14  4.11971e-05
  15  8.22048e-07
  16  49.4861
  17  2.05606e-07
  18  6.6489
  19  2.16342e-07
  20  12.3509
  21  7.56229e-06
  22  0.00239781
  23  4.774e-05
  24  0.277121
  25  0.130445
Done.

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

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  3.811e+01  4.130e+01  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:  5.977e-01  1.304e-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.447e+00  2.771e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.18
Ra Dec: 322.296 -2.683
Photon Index (Fixed Index): 2.64 +/- 0.00
Photon Flux (Fixed Index): 4.84e-08 +/- 5.24e-08
Energy Flux (Fixed Index): 1.23e-05 +/- 1.33e-05

TS (Fixed Index): 1.18
Ra Dec: 322.296 -2.683
Photon Flux Upper Limit: 1.63e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.28e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/508935/likelihoodResults_473904001_474163201_4FGL_J2129.1-0240_daily_bin905.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): 0
logL (Free Index) = 6089.92525995
delta logL = 0.229888719513

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6089.92489494
delta logL = 0.230253727674

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    54.993       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1946       1.0000          .0000       10.000    
     3 'Normalizat'    1.4608       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59181       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=   6089.925     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      264 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     54.859        1927.1        .13523E-02    .16747E-04
   2  Index         2.1925        5.8406        .24777        .39457E-04
   3  Normalizat    1.4609        .10822        .61866E-01    .21790E-04
   4  Prefactor     .59188        .51586E-01    .40942E-01    .46712E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 54.8591
  Index      = 2.19246
  Normalizat = 1.46089
  Prefactor  = 0.591875
 **********
 **   18 **HESSE 
 **********

 FCN=   6089.925     FROM HESSE     STATUS=OK            31 CALLS      295 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     54.859        54.259        .54091E-04   -1.4225    
   2  Index         2.1925        .60900        .85197E-02   -.59621    
   3  Normalizat    1.4609        .26551        .27362E-03   -.78883    
   4  Prefactor     .59188        .12767        .19727E-03   -1.0793    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22504e-11
Minuit parameter uncertainties:
  1  54.3081
  2  0.611224
  3  0.265759
  4  0.127731
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/508935': 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) = 6089.924884
delta logL = 0.230264671626

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  5.486e+01  5.431e+01  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  2.192e+00  6.112e-01  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:  5.919e-01  1.277e-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.461e+00  2.658e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.64
Ra Dec: 322.296 -2.683
Photon Index (Free Index): 2.19 +/- 0.61
Photon Flux (Free Index): 3.89e-08 +/- 4.43e-08
Energy Flux (Free Index): 1.77e-05 +/- 2.00e-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/508935/cmap_HighResolution_473904001_474163201_4FGL_J2129.1-0240_daily_bin905.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.28e-02', comment='SUCCESS', photon_flux='4.84e-08', energy_flux2='1.77e-05', photon_flux_error='5.24e-08', dlogl='2.30e-01', energy_flux='1.23e-05', photon_flux2='3.89e-08', job_status='DONE', time_completed='2021-09-26 15:01:22.767170', photon_index_error2='0.61', photon_index2='2.19', ts='1.18', fit_tolerance='1e-08', GAL='0.60', photon_index_error='0.00', photon_flux_upper_limit='1.63e-07', energy_flux_error2='2.00e-05', EG='1.45', time_epoch_completed='1632693682.77', return_code='0', job_id='508935', GAL2='0.59', EG2='1.46', return_code2='0', energy_flux_error='1.33e-05', photon_flux_error2='4.43e-08', ts2='1.64', photon_index='2.64' WHERE bin_id='905' AND source_name='4FGL J2129.1-0240' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 15:01:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 508935: <4FGL_J2129.1-0240_daily_bin905> in cluster <slac> Done

Job <4FGL_J2129.1-0240_daily_bin905> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep 26 14:45:13 2021
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 14:47:06 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:47:06 2021
Terminated at Sun Sep 26 15:01:23 2021
Results reported at Sun Sep 26 15:01:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.1-0240_daily_bin905 322.296 -2.6829 473904001 474163201 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 :                                   745.01 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             323.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   857 sec.
    Turnaround time :                            970 sec.

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

