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


Performing analysis on: 4FGL_J2129.1-0240_daily_bin1489
RA = 322.296, Dec = -2.6829
tmin = 625276801, tmax = 625536001
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='520080', job_status='RUN', time_executed='2021-09-26 15:17:36.928044', time_epoch_executed='1632694656.93' WHERE source_name='4FGL J2129.1-0240' and cadence='daily' and bin_id='1489'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/520080

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/520080/ft1_4FGL_J2129.1-0240_daily_bin1489.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/520080/ft2_4FGL_J2129.1-0240_daily_bin1489.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/520080/ft1_4FGL_J2129.1-0240_daily_bin1489.fits outfile=/scratch/kocevski/520080/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin1489.fits ra=322.296 dec=-2.6829 rad=12.0 tmin=625276801.0 tmax=625536001.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.54
user 3.33
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/520080/ft1_filtered_4FGL_J2129.1-0240_daily_bin1489.fits" evtable="EVENTS" scfile=/scratch/kocevski/520080/ft2_4FGL_J2129.1-0240_daily_bin1489.fits sctable="SC_DATA" outfile=/scratch/kocevski/520080/ltcube_625276801_625536001_4FGL_J2129.1-0240_daily_bin1489.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/520080/ft2_4FGL_J2129.1-0240_daily_bin1489.fits
.....................!
real 14.80
user 14.27
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/520080/ft1_filtered_4FGL_J2129.1-0240_daily_bin1489.fits evtable="EVENTS" scfile=/scratch/kocevski/520080/ft2_4FGL_J2129.1-0240_daily_bin1489.fits sctable="SC_DATA" expcube=/scratch/kocevski/520080/ltcube_625276801_625536001_4FGL_J2129.1-0240_daily_bin1489.fits outfile=/scratch/kocevski/520080/expmap_625276801_625536001_4FGL_J2129.1-0240_daily_bin1489.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/520080/ltcube_625276801_625536001_4FGL_J2129.1-0240_daily_bin1489.fits
.....................!
real 193.34
user 187.81
sys 4.82

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/520080/ft1_filtered_4FGL_J2129.1-0240_daily_bin1489.fits scfile=/scratch/kocevski/520080/ft2_4FGL_J2129.1-0240_daily_bin1489.fits outfile=/scratch/kocevski/520080/cmap_625276801_625536001_4FGL_J2129.1-0240_daily_bin1489.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.53
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/520080/ft1_filtered_4FGL_J2129.1-0240_daily_bin1489.fits scfile=/scratch/kocevski/520080/ft2_4FGL_J2129.1-0240_daily_bin1489.fits outfile=/scratch/kocevski/520080/cmap_HighResolution_625276801_625536001_4FGL_J2129.1-0240_daily_bin1489.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/520080/ft1_filtered_4FGL_J2129.1-0240_daily_bin1489.fits evtable="EVENTS" scfile=/scratch/kocevski/520080/ft2_4FGL_J2129.1-0240_daily_bin1489.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/520080/Model_4FGL_J2129.1-0240_daily_bin1489.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/520080/ft1_filtered_4FGL_J2129.1-0240_daily_bin1489.fits.....................!
real 77.32
user 75.95
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .28795E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.4413       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    27.526       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.2193       1.0000         .10000E-03   10000.    
     9 'Prefactor '    55.400       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.1287       1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.712       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.4232       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    85.192       1.0000         .10000E-03   10000.    
    17 'norm      '    .12152E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13693E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.477       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.709       1.0000         .10000E-03   10000.    
    23 'Prefactor '    32.025       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .54977       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1067       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=   7859.049     FROM MIGRAD    STATUS=CONVERGED    589 CALLS     2931 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10199E-03    2.5432        .11343E-05** at limit **
   2  Prefactor     .10000E-03    5.9008       -.35114E-07** at limit **
   3  Prefactor     4.4402        46.463       -.44752E-05   -.42966E-04
   4  Prefactor     .10000E-03    16.551       -.31794E-05** at limit **
   5  Prefactor     .10000E-03    11.058       -.34002E-06** at limit **
   6  Prefactor     27.517        46.376       -.73790E-05   -.10528E-04
   7  Prefactor     .10000E-03    5.2233       -.15396E-07** at limit **
   8  Prefactor     2.2020        12.912        .24409E-05   -.24326E-03
   9  Prefactor     55.385        26.504        .50160E-05   -.25468E-04
  10  Prefactor     .10000E-03    37.713       -.25620E-04** at limit **
  11  Prefactor     .10000E-03    1.8410       -.30903E-07** at limit **
  12  Prefactor     5.1310        3.0148        .13558E-07    .20886E-03
  13  Prefactor     23.699        32.261        .53864E-05    .17700E-04
  14  Prefactor     9.3320        36.753       -.74291E-05    .93428E-05
  15  norm          .10000E-03    3.8815       -.17259E-07** at limit **
  16  Prefactor     85.147        49.733       -.17927E-04   -.13333E-03
  17  norm          .10000E-03    30.833        .15810E-04** at limit **
  18  Prefactor     .10000E-03    7.4645        .13568E-05** at limit **
  19  Prefactor     12.474        6.1178       -.25938E-06   -.87050E-04
  20  Prefactor     .10000E-03    4.9623        .47234E-08** at limit **
  21  Prefactor     .10000E-03    14.403        .22984E-05** at limit **
  22  Prefactor     10.706        12.322       -.75398E-06   -.23605E-04
  23  Prefactor     32.017        18.453        .22621E-05   -.28368E-04
  24  Normalizat    .55010        .23732        .24504E-05   -.21036E-03
  25  Prefactor     1.1067        .11566       -.27587E-06   -.42175E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101988
  Prefactor  = 0.0001
  Prefactor  = 4.44018
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.517
  Prefactor  = 0.0001
  Prefactor  = 2.20199
  Prefactor  = 55.3849
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.13096
  Prefactor  = 23.6992
  Prefactor  = 9.33202
  norm       = 0.0001
  Prefactor  = 85.1469
  norm       = 0.000100001
  Prefactor  = 0.000100004
  Prefactor  = 12.4741
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.7055
  Prefactor  = 32.0167
  Normalizat = 0.5501
  Prefactor  = 1.10666
 **********
 **   18 **HESSE 
 **********

 FCN=   7859.049     FROM HESSE     STATUS=OK           427 CALLS     3358 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10199E-03    57.858        .26571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.9146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.4402        46.407        .19108E-03   -1.5287    
   4  Prefactor     .10000E-03    16.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     27.517        46.297        .76358E-04   -1.4658    
   7  Prefactor     .10000E-03    5.2287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.2020        12.769        .27604E-03   -1.5411    
   9  Prefactor     55.385        26.439        .53893E-04   -1.4218    
  10  Prefactor     .10000E-03    37.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.8478        .11744E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.1310        2.9975        .10537E-03   -1.5255    
  13  Prefactor     23.699        32.189        .82261E-04   -1.4734    
  14  Prefactor     9.3320        36.623        .13055E-03   -1.5097    
  15  norm          .10000E-03    3.9161        .17057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     85.147        49.944        .43524E-04   -1.3860    
  17  norm          .10000E-03    31.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.7033        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.474        6.1155        .11341E-03   -1.5001    
  20  Prefactor     .10000E-03    4.9869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    14.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     10.706        12.306        .12243E-03   -1.5053    
  23  Prefactor     32.017        18.413        .70805E-04   -1.4576    
  24  Normalizat    .55010        .25604        .43282E-03   -1.1015    
  25  Prefactor     1.1067        .12825        .16385E-03   -.89254    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.29131e-08
Minuit parameter uncertainties:
  1  0.0214689
  2  9.32281e-06
  3  28.7374
  4  2.6397e-05
  5  9.73672e-06
  6  46.3573
  7  1.01266e-05
  8  10.6083
  9  26.4443
  10  5.33458e-05
  11  2.35468e-06
  12  2.9976
  13  32.2121
  14  36.7114
  15  6.89269e-07
  16  49.9686
  17  0.000416112
  18  0.000365696
  19  6.11578
  20  1.5535e-07
  21  3.7716e-05
  22  12.3093
  23  18.416
  24  0.256589
  25  0.128284
Done.

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

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  5.335e-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.107e+00  1.283e-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:  5.501e-01  2.566e-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.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.48e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/520080/likelihoodResults_625276801_625536001_4FGL_J2129.1-0240_daily_bin1489.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) = 7859.0492514
delta logL = -0.000126707670461

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7859.04912477
delta logL = -7.13689587428e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6266       1.0000          .0000       10.000    
     3 'Normalizat'    .55016       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1067       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=   7859.049     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      236 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8138.3        .18142E-02** at limit **
   2  Index         2.4261        6.0086        .92454E-01    .22134E-07
   3  Normalizat    .55010        .13161        .43282E-03    .13669E-03
   4  Prefactor     1.1067        .69423E-01    .16385E-03    .30813E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.42614
  Normalizat = 0.550103
  Prefactor  = 1.10666
 **********
 **   18 **HESSE 
 **********

 FCN=   7859.049     FROM HESSE     STATUS=OK            23 CALLS      259 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    38.713        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4261        5.5855        .36982E-02   -.54074    
   3  Normalizat    .55010        .23940        .17313E-04   -1.1015    
   4  Prefactor     1.1067        .12644        .32770E-04   -.89254    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.16356e-11
Minuit parameter uncertainties:
  1  4.18939e-06
  2  734.73
  3  0.239845
  4  0.12647
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/520080': 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) = 7859.04912466
delta logL = 3.83106453228e-08

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  4.189e-06  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  2.426e+00  7.347e+02  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.107e+00  1.265e-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:  5.501e-01  2.398e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/520080/cmap_HighResolution_625276801_625536001_4FGL_J2129.1-0240_daily_bin1489.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.48e-03', job_status='DONE', photon_flux_upper_limit='1.08e-07', time_completed='2021-09-26 15:31:17.043818', job_id='520080', GAL2='1.11', fit_tolerance='1e-08', EG2='0.55', EG='0.55', time_epoch_completed='1632695477.04', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='3.83e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='1489' AND source_name='4FGL J2129.1-0240' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 15:31:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 520080: <4FGL_J2129.1-0240_daily_bin1489> in cluster <slac> Done

Job <4FGL_J2129.1-0240_daily_bin1489> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 26 15:15:12 2021
Job was executed on host(s) <bullet0114>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 15:15:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 15:15:14 2021
Terminated at Sun Sep 26 15:31:17 2021
Results reported at Sun Sep 26 15:31:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.1-0240_daily_bin1489 322.296 -2.6829 625276801 625536001 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 :                                   811.43 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             293.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   963 sec.
    Turnaround time :                            965 sec.

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

