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


Performing analysis on: 4FGL_J2129.1-0240_daily_bin894
RA = 322.296, Dec = -2.6829
tmin = 471052801, tmax = 471312001
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='508919', job_status='RUN', time_executed='2021-09-26 14:47:21.316041', time_epoch_executed='1632692841.32' WHERE source_name='4FGL J2129.1-0240' and cadence='daily' and bin_id='894'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/508919

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/508919/ft1_4FGL_J2129.1-0240_daily_bin894.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/508919/ft2_4FGL_J2129.1-0240_daily_bin894.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/508919/ft1_4FGL_J2129.1-0240_daily_bin894.fits outfile=/scratch/kocevski/508919/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin894.fits ra=322.296 dec=-2.6829 rad=12.0 tmin=471052801.0 tmax=471312001.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 4.12
user 3.76
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/508919/ft1_filtered_4FGL_J2129.1-0240_daily_bin894.fits" evtable="EVENTS" scfile=/scratch/kocevski/508919/ft2_4FGL_J2129.1-0240_daily_bin894.fits sctable="SC_DATA" outfile=/scratch/kocevski/508919/ltcube_471052801_471312001_4FGL_J2129.1-0240_daily_bin894.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/508919/ft2_4FGL_J2129.1-0240_daily_bin894.fits
.....................!
real 13.89
user 13.31
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/508919/ft1_filtered_4FGL_J2129.1-0240_daily_bin894.fits evtable="EVENTS" scfile=/scratch/kocevski/508919/ft2_4FGL_J2129.1-0240_daily_bin894.fits sctable="SC_DATA" expcube=/scratch/kocevski/508919/ltcube_471052801_471312001_4FGL_J2129.1-0240_daily_bin894.fits outfile=/scratch/kocevski/508919/expmap_471052801_471312001_4FGL_J2129.1-0240_daily_bin894.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/508919/ltcube_471052801_471312001_4FGL_J2129.1-0240_daily_bin894.fits
.....................!
real 191.24
user 185.71
sys 4.70

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/508919/ft1_filtered_4FGL_J2129.1-0240_daily_bin894.fits scfile=/scratch/kocevski/508919/ft2_4FGL_J2129.1-0240_daily_bin894.fits outfile=/scratch/kocevski/508919/cmap_471052801_471312001_4FGL_J2129.1-0240_daily_bin894.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.67
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/508919/ft1_filtered_4FGL_J2129.1-0240_daily_bin894.fits scfile=/scratch/kocevski/508919/ft2_4FGL_J2129.1-0240_daily_bin894.fits outfile=/scratch/kocevski/508919/cmap_HighResolution_471052801_471312001_4FGL_J2129.1-0240_daily_bin894.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.68
user 0.38
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/508919/ft1_filtered_4FGL_J2129.1-0240_daily_bin894.fits evtable="EVENTS" scfile=/scratch/kocevski/508919/ft2_4FGL_J2129.1-0240_daily_bin894.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/508919/Model_4FGL_J2129.1-0240_daily_bin894.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/508919/ft1_filtered_4FGL_J2129.1-0240_daily_bin894.fits.....................!
real 75.54
user 73.17
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .83977       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.3169       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10553E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.010       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.993       1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.806       1.0000         .10000E-03   10000.    
    10 'Prefactor '    44.165       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .38914E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.169       1.0000         .10000E-03   10000.    
    14 'Prefactor '    42.490       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .28572E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    27.434       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    19.154       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .68248       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0390       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=   8047.769     FROM MIGRAD    STATUS=CONVERGED    591 CALLS     2977 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .84117        3.2696       -.15357E-05   -.44292E-03
   2  Prefactor     7.3160        11.492       -.49156E-06   -.16951E-04
   3  Prefactor     .10000E-03    20.917       -.41626E-05** at limit **
   4  Prefactor     .10000E-03    36.862        .80650E-06** at limit **
   5  Prefactor     14.002        23.219        .36723E-05   -.11160E-04
   6  Prefactor     .10000E-03    28.413       -.55276E-05** at limit **
   7  Prefactor     .10000E-03    5.8510       -.20993E-07** at limit **
   8  Prefactor     11.991        9.6025       -.35745E-06   -.36478E-04
   9  Prefactor     27.805        22.325        .12571E-06    .64581E-05
  10  Prefactor     44.163        37.077       -.14534E-05    .14389E-04
  11  Prefactor     .10000E-03    1.7685       -.78335E-07** at limit **
  12  Prefactor     .10000E-03    1.1792        .20075E-07** at limit **
  13  Prefactor     14.182        30.780        .78801E-06   -.46657E-05
  14  Prefactor     42.488        43.040       -.78755E-06   -.50456E-05
  15  norm          .10000E-03    2.0009       -.25268E-08** at limit **
  16  Prefactor     .10001E-03    285.87       -.95120E-05** at limit **
  17  norm          27.445        19.571       -.43058E-05    .97781E-05
  18  Prefactor     .10000E-03    7.8172        .85661E-07** at limit **
  19  Prefactor     .10000E-03    3.5945       -.54840E-07** at limit **
  20  Prefactor     .10004E-03    11.121        .71453E-06** at limit **
  21  Prefactor     .10000E-03    23.429        .81229E-05** at limit **
  22  Prefactor     19.162        18.675       -.31876E-05   -.10352E-03
  23  Prefactor     .10000E-03    14.458        .39936E-06** at limit **
  24  Normalizat    .68248        .21302        .19384E-05    .71068E-04
  25  Prefactor     1.0391        .10365        .36072E-07    .28971E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.841169
  Prefactor  = 7.316
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.0024
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.9912
  Prefactor  = 27.8048
  Prefactor  = 44.1625
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.1822
  Prefactor  = 42.4881
  norm       = 0.0001
  Prefactor  = 0.000100009
  norm       = 27.4447
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100044
  Prefactor  = 0.0001
  Prefactor  = 19.162
  Prefactor  = 0.0001
  Normalizat = 0.682476
  Prefactor  = 1.0391
 **********
 **   18 **HESSE 
 **********

 FCN=   8047.769     FROM HESSE     STATUS=OK           437 CALLS     3414 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .84117        6.3742        .29765E-02   -1.5525    
   2  Prefactor     7.3160        11.480        .14828E-03   -1.5167    
   3  Prefactor     .10000E-03    20.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    37.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.002        23.110        .10701E-03   -1.4959    
   6  Prefactor     .10000E-03    28.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.8744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.991        9.6039        .11567E-03   -1.5015    
   9  Prefactor     27.805        22.315        .75974E-04   -1.4653    
  10  Prefactor     44.163        36.958        .60327E-04   -1.4378    
  11  Prefactor     .10000E-03    10.107        .23104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.1996        .18917E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.182        30.735        .10641E-03   -1.4955    
  14  Prefactor     42.488        43.042        .61499E-04   -1.4403    
  15  norm          .10000E-03    2.0010        .12393E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    291.11        .42820E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          27.445        19.493        .76487E-04   -1.4660    
  18  Prefactor     .10000E-03    7.9205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.6631        .16598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10004E-03    14.791        .75815E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    23.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     19.162        18.866        .91515E-04   -1.4832    
  23  Prefactor     .10000E-03    14.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .68248        .24315        .37394E-03   -1.0459    
  25  Prefactor     1.0391        .12113        .16244E-03   -.91437    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.0882e-10
Minuit parameter uncertainties:
  1  4.63152
  2  11.4834
  3  4.19547e-06
  4  0.000250843
  5  23.1252
  6  1.75928e-06
  7  2.4451e-06
  8  9.60517
  9  22.3215
  10  36.9773
  11  5.65262e-05
  12  3.08348e-06
  13  30.7688
  14  43.0735
  15  3.05598e-07
  16  0.00318292
  17  19.4972
  18  2.83091e-05
  19  9.68548e-06
  20  0.00161465
  21  2.30379e-06
  22  18.8721
  23  7.9923e-05
  24  0.243535
  25  0.121165
Done.

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

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  4.416e+01  3.698e+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:  1.039e+00  1.212e-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.825e-01  2.435e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.03
Ra Dec: 322.296 -2.683
Photon Index (Fixed Index): 2.64 +/- 0.00
Photon Flux (Fixed Index): 5.61e-08 +/- 4.69e-08
Energy Flux (Fixed Index): 1.42e-05 +/- 1.19e-05

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

Saving results to:
/scratch/kocevski/508919/likelihoodResults_471052801_471312001_4FGL_J2129.1-0240_daily_bin894.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) = 8047.72192302
delta logL = 0.0470355817251

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8047.71867221
delta logL = 0.050286388795

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    53.250       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4494       1.0000          .0000       10.000    
     3 'Normalizat'    .68922       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0362       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=   8047.719     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      308 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     53.251        50.733        .54964E-04   -.76406E-04
   2  Index         2.4494        .58586        .84087E-02   -.14542E-04
   3  Normalizat    .68896        .22881        .37228E-03   -.19208E-04
   4  Prefactor     1.0363        .12037        .16262E-03   -.43134E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 53.251
  Index      = 2.4494
  Normalizat = 0.688965
  Prefactor  = 1.03631
 **********
 **   18 **HESSE 
 **********

 FCN=   8047.719     FROM HESSE     STATUS=OK            25 CALLS      333 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     53.251        49.096        .10993E-04   -1.4247    
   2  Index         2.4494        .56676        .33635E-03   -.53532    
   3  Normalizat    .68896        .22895        .14891E-04   -1.0433    
   4  Prefactor     1.0363        .12043        .65048E-05   -.91529    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12918e-11
Minuit parameter uncertainties:
  1  49.1331
  2  0.568411
  3  0.22927
  4  0.120458
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/508919': 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) = 8047.71867159
delta logL = 0.0502870119826

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  5.325e+01  4.913e+01  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  2.449e+00  5.684e-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:  1.036e+00  1.205e-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.890e-01  2.293e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.12
Ra Dec: 322.296 -2.683
Photon Index (Free Index): 2.45 +/- 0.57
Photon Flux (Free Index): 5.22e-08 +/- 4.54e-08
Energy Flux (Free Index): 1.61e-05 +/- 1.43e-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/508919/cmap_HighResolution_471052801_471312001_4FGL_J2129.1-0240_daily_bin894.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.18e-02', comment='SUCCESS', photon_flux='5.61e-08', energy_flux2='1.61e-05', photon_flux_error='4.69e-08', dlogl='5.03e-02', energy_flux='1.42e-05', photon_flux2='5.22e-08', job_status='DONE', time_completed='2021-09-26 15:01:25.590953', photon_index_error2='0.57', photon_index2='2.45', ts='2.03', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='1.50e-07', energy_flux_error2='1.43e-05', EG='0.68', time_epoch_completed='1632693685.59', return_code='0', job_id='508919', GAL2='1.04', EG2='0.69', return_code2='0', energy_flux_error='1.19e-05', photon_flux_error2='4.54e-08', ts2='2.12', photon_index='2.64' WHERE bin_id='894' AND source_name='4FGL J2129.1-0240' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 15:01:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 508919: <4FGL_J2129.1-0240_daily_bin894> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.1-0240_daily_bin894 322.296 -2.6829 471052801 471312001 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 :                                   837.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             332.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   863 sec.
    Turnaround time :                            976 sec.

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

