/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 188 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 = 7474
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2129.1-0240_daily_bin54
RA = 322.296, Dec = -2.6829
tmin = 253324801, tmax = 253584001
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='502409', job_status='RUN', time_executed='2021-09-26 14:24:52.455174', time_epoch_executed='1632691492.46' WHERE source_name='4FGL J2129.1-0240' and cadence='daily' and bin_id='54'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/502409

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/502409/ft1_4FGL_J2129.1-0240_daily_bin54.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/502409/ft2_4FGL_J2129.1-0240_daily_bin54.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/502409/ft1_4FGL_J2129.1-0240_daily_bin54.fits outfile=/scratch/kocevski/502409/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin54.fits ra=322.296 dec=-2.6829 rad=12.0 tmin=253324801.0 tmax=253584001.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 1.23
user 1.03
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/502409/ft2_4FGL_J2129.1-0240_daily_bin54.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/502409/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin54.fits evtable="EVENTS" outfile="/scratch/kocevski/502409/ft1_filtered_4FGL_J2129.1-0240_daily_bin54.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.45
user 0.29
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/502409/ft1_filtered_4FGL_J2129.1-0240_daily_bin54.fits" evtable="EVENTS" scfile=/scratch/kocevski/502409/ft2_4FGL_J2129.1-0240_daily_bin54.fits sctable="SC_DATA" outfile=/scratch/kocevski/502409/ltcube_253324801_253584001_4FGL_J2129.1-0240_daily_bin54.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/502409/ft2_4FGL_J2129.1-0240_daily_bin54.fits
.....................!
real 14.06
user 13.66
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/502409/ft1_filtered_4FGL_J2129.1-0240_daily_bin54.fits evtable="EVENTS" scfile=/scratch/kocevski/502409/ft2_4FGL_J2129.1-0240_daily_bin54.fits sctable="SC_DATA" expcube=/scratch/kocevski/502409/ltcube_253324801_253584001_4FGL_J2129.1-0240_daily_bin54.fits outfile=/scratch/kocevski/502409/expmap_253324801_253584001_4FGL_J2129.1-0240_daily_bin54.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/502409/ltcube_253324801_253584001_4FGL_J2129.1-0240_daily_bin54.fits
.....................!
real 156.60
user 151.62
sys 3.93

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/502409/ft1_filtered_4FGL_J2129.1-0240_daily_bin54.fits scfile=/scratch/kocevski/502409/ft2_4FGL_J2129.1-0240_daily_bin54.fits outfile=/scratch/kocevski/502409/cmap_253324801_253584001_4FGL_J2129.1-0240_daily_bin54.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.49
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/502409/ft1_filtered_4FGL_J2129.1-0240_daily_bin54.fits scfile=/scratch/kocevski/502409/ft2_4FGL_J2129.1-0240_daily_bin54.fits outfile=/scratch/kocevski/502409/cmap_HighResolution_253324801_253584001_4FGL_J2129.1-0240_daily_bin54.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.49
user 0.32
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/502409/ft1_filtered_4FGL_J2129.1-0240_daily_bin54.fits evtable="EVENTS" scfile=/scratch/kocevski/502409/ft2_4FGL_J2129.1-0240_daily_bin54.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/502409/Model_4FGL_J2129.1-0240_daily_bin54.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/502409/ft1_filtered_4FGL_J2129.1-0240_daily_bin54.fits.....................!
real 73.13
user 71.79
sys 1.01

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.6028       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10783E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    30.503       1.0000         .10000E-03   10000.    
     6 'Prefactor '    81.134       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.0537       1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.888       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    69.285       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.8238       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.5081       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.4066       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.4366       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    24.830       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.1006       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .84047       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .88631       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=   9470.092     FROM MIGRAD    STATUS=CONVERGED    551 CALLS     2878 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.0165       -.17569E-07** at limit **
   2  Prefactor     4.6027        10.125        .48845E-05   -.85934E-03
   3  Prefactor     .10000E-03    10.379       -.48366E-06** at limit **
   4  Prefactor     .10001E-03    22.570        .55447E-05** at limit **
   5  Prefactor     30.501        19.871        .52453E-07   -.96070E-04
   6  Prefactor     81.132        53.380       -.46230E-06   -.32004E-04
   7  Prefactor     6.0545        10.801        .46111E-07   -.49925E-04
   8  Prefactor     15.889        10.667        .64886E-07   -.49143E-04
   9  Prefactor     .10000E-03    20.135       -.34139E-05** at limit **
  10  Prefactor     69.296        37.044        .33449E-05    .48996E-03
  11  Prefactor     2.8239        4.9385       -.94188E-06   -.73347E-03
  12  Prefactor     .10000E-03    .70604        .88706E-07** at limit **
  13  Prefactor     5.4973        17.367       -.11759E-05   -.73784E-04
  14  Prefactor     .10000E-03    13.636       -.25520E-05** at limit **
  15  norm          4.4066        4.3293       -.19559E-06   -.33069E-04
  16  Prefactor     .10000E-03    48.295       -.17590E-05** at limit **
  17  norm          .10000E-03    11.886        .28449E-05** at limit **
  18  Prefactor     7.4328        5.6380        .10687E-05    .70285E-03
  19  Prefactor     .10000E-03    2.9803        .83190E-07** at limit **
  20  Prefactor     .10000E-03    3.8817       -.17337E-07** at limit **
  21  Prefactor     24.831        17.986        .20620E-06    .27058E-04
  22  Prefactor     6.0994        11.017        .27051E-05   -.55805E-03
  23  Prefactor     .10000E-03    7.2352       -.24441E-06** at limit **
  24  Normalizat    .84019        .17843       -.19249E-05   -.41580E-06
  25  Prefactor     .88646        .87353E-01   -.52936E-08   -.14026E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.60274
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 30.501
  Prefactor  = 81.1316
  Prefactor  = 6.05447
  Prefactor  = 15.889
  Prefactor  = 0.000100003
  Prefactor  = 69.2963
  Prefactor  = 2.8239
  Prefactor  = 0.0001
  Prefactor  = 5.49726
  Prefactor  = 0.000100002
  norm       = 4.40658
  Prefactor  = 0.000100002
  norm       = 0.000100002
  Prefactor  = 7.43281
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.8307
  Prefactor  = 6.09945
  Prefactor  = 0.0001
  Normalizat = 0.84019
  Prefactor  = 0.886456
 **********
 **   18 **HESSE 
 **********

 FCN=   9470.092     FROM HESSE     STATUS=OK           421 CALLS     3299 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.0233        .95793E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.6027        11.158        .93807E-03   -1.5279    
   3  Prefactor     .10000E-03    10.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    23.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     30.501        19.875        .72546E-04   -1.4603    
   6  Prefactor     81.132        53.511        .44590E-04   -1.3904    
   7  Prefactor     6.0545        10.774        .16318E-03   -1.5216    
   8  Prefactor     15.889        10.655        .10048E-03   -1.4911    
   9  Prefactor     .10000E-03    20.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     69.296        37.757        .48224E-04   -1.4041    
  11  Prefactor     2.8239        5.0478        .24203E-03   -1.5372    
  12  Prefactor     .10000E-03    .71134        .79542E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.4973        17.428        .17120E-03   -1.5239    
  14  Prefactor     .10000E-03    13.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.4066        4.3361        .19185E-03   -1.5288    
  16  Prefactor     .10000E-03    48.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    12.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.4328        5.6731        .14707E-03   -1.5163    
  19  Prefactor     .10000E-03    3.0587        .32799E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.9153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     24.831        17.998        .80390E-04   -1.4711    
  22  Prefactor     6.0994        11.394        .81274E-03   -1.5214    
  23  Prefactor     .10000E-03    7.2803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .84019        .21191        .32940E-03   -.98595    
  25  Prefactor     .88646        .10477        .16575E-03   -.96616    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.84638e-09
Minuit parameter uncertainties:
  1  1.23998e-09
  2  11.1627
  3  4.76176e-05
  4  0.000870476
  5  19.8795
  6  53.5431
  7  10.7775
  8  10.6567
  9  0.000468753
  10  37.77
  11  5.04858
  12  9.0505e-06
  13  17.4437
  14  0.000331931
  15  4.33641
  16  0.000658657
  17  0.00030132
  18  5.67354
  19  1.19318e-05
  20  2.91415e-06
  21  18.0016
  22  11.3977
  23  2.27829e-05
  24  0.212118
  25  0.104798
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
547   Normalization:  8.402e-01  2.121e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.81
Ra Dec: 322.296 -2.683
Photon Index (Fixed Index): 2.64 +/- 0.00
Photon Flux (Fixed Index): 8.80e-08 +/- 4.79e-08
Energy Flux (Fixed Index): 2.23e-05 +/- 1.22e-05

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) = 9469.6174965
delta logL = 0.474919465414

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9469.5954163
delta logL = 0.496999663321

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.553       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1982       1.0000          .0000       10.000    
     3 'Normalizat'    .80004       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90103       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=   9469.595     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      252 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.553        279.69        .15933E-02    .73588E-03
   2  Index         3.1982        2.7430        .13590        .18899E-03
   3  Normalizat    .80005        .69394E-01    .76073E-01    .37761E-04
   4  Prefactor     .90102        .33453E-01    .45018E-01    .77392E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.5529
  Index      = 3.19815
  Normalizat = 0.800049
  Prefactor  = 0.901024
 **********
 **   18 **HESSE 
 **********

 FCN=   9469.595     FROM HESSE     STATUS=OK            31 CALLS      283 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.553        45.682        .63733E-04   -1.4449    
   2  Index         3.1982        .74840        .50937E-02   -.36866    
   3  Normalizat    .80005        .20981        .33672E-03   -1.0007    
   4  Prefactor     .90102        .10605        .16452E-03   -.96105    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.95103e-09
Minuit parameter uncertainties:
  1  45.7225
  2  0.751647
  3  0.210018
  4  0.106076
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/502409': 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) = 9469.59541628
delta logL = 0.496999676932

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  3.955e+01  4.572e+01  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  3.198e+00  7.516e-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:  9.010e-01  1.061e-01  0.000e+00  1.000e+01 ( 1.000e+00)
549        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
550        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
547   Normalization:  8.000e-01  2.100e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.99
Ra Dec: 322.296 -2.683
Photon Index (Free Index): 3.20 +/- 0.75
Photon Flux (Free Index): 1.17e-07 +/- 5.85e-08
Energy Flux (Free Index): 2.13e-05 +/- 1.09e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/502409/cmap_HighResolution_253324801_253584001_4FGL_J2129.1-0240_daily_bin54.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.80e-08', energy_flux2='2.13e-05', photon_flux_error='4.79e-08', dlogl='4.97e-01', energy_flux='2.23e-05', photon_flux2='1.17e-07', job_status='DONE', time_completed='2021-09-26 14:35:45.281180', photon_index_error2='0.75', photon_index2='3.20', ts='4.81', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='1.09e-05', EG='0.84', time_epoch_completed='1632692145.28', return_code='0', job_id='502409', GAL2='0.90', EG2='0.80', return_code2='0', energy_flux_error='1.22e-05', photon_flux_error2='5.85e-08', ts2='5.99', photon_index='2.64' WHERE bin_id='54' AND source_name='4FGL J2129.1-0240' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 14:35:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 502409: <4FGL_J2129.1-0240_daily_bin54> in cluster <slac> Done

Job <4FGL_J2129.1-0240_daily_bin54> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 26 14:20:29 2021
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 14:21:33 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:21:33 2021
Terminated at Sun Sep 26 14:35:46 2021
Results reported at Sun Sep 26 14:35:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.1-0240_daily_bin54 322.296 -2.6829 253324801 253584001 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 :                                   651.23 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             295.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            917 sec.

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

