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


Performing analysis on: 4FGL_J2129.1-0240_daily_bin633
RA = 322.296, Dec = -2.6829
tmin = 403401601, tmax = 403660801
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='506178', job_status='RUN', time_executed='2021-09-26 14:39:02.029337', time_epoch_executed='1632692342.03' WHERE source_name='4FGL J2129.1-0240' and cadence='daily' and bin_id='633'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/506178

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/506178/ft1_4FGL_J2129.1-0240_daily_bin633.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/506178/ft2_4FGL_J2129.1-0240_daily_bin633.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/506178/ft1_4FGL_J2129.1-0240_daily_bin633.fits outfile=/scratch/kocevski/506178/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin633.fits ra=322.296 dec=-2.6829 rad=12.0 tmin=403401601.0 tmax=403660801.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.02
user 3.78
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/506178/ft1_filtered_4FGL_J2129.1-0240_daily_bin633.fits" evtable="EVENTS" scfile=/scratch/kocevski/506178/ft2_4FGL_J2129.1-0240_daily_bin633.fits sctable="SC_DATA" outfile=/scratch/kocevski/506178/ltcube_403401601_403660801_4FGL_J2129.1-0240_daily_bin633.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/506178/ft2_4FGL_J2129.1-0240_daily_bin633.fits
.....................!
real 14.57
user 14.16
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/506178/ft1_filtered_4FGL_J2129.1-0240_daily_bin633.fits evtable="EVENTS" scfile=/scratch/kocevski/506178/ft2_4FGL_J2129.1-0240_daily_bin633.fits sctable="SC_DATA" expcube=/scratch/kocevski/506178/ltcube_403401601_403660801_4FGL_J2129.1-0240_daily_bin633.fits outfile=/scratch/kocevski/506178/expmap_403401601_403660801_4FGL_J2129.1-0240_daily_bin633.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/506178/ltcube_403401601_403660801_4FGL_J2129.1-0240_daily_bin633.fits
.....................!
real 191.66
user 186.02
sys 5.08

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

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

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/506178/ft1_filtered_4FGL_J2129.1-0240_daily_bin633.fits scfile=/scratch/kocevski/506178/ft2_4FGL_J2129.1-0240_daily_bin633.fits outfile=/scratch/kocevski/506178/cmap_HighResolution_403401601_403660801_4FGL_J2129.1-0240_daily_bin633.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.56
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/506178/ft1_filtered_4FGL_J2129.1-0240_daily_bin633.fits evtable="EVENTS" scfile=/scratch/kocevski/506178/ft2_4FGL_J2129.1-0240_daily_bin633.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/506178/Model_4FGL_J2129.1-0240_daily_bin633.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/506178/ft1_filtered_4FGL_J2129.1-0240_daily_bin633.fits.....................!
real 68.39
user 66.97
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9187       1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.429       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .16431E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.1683       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.6440       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .16080E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10408E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.458       1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.658       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.5847       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.8252       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .74126       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=   6339.371     FROM MIGRAD    STATUS=CONVERGED    541 CALLS     2834 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9186        5.1407        .12331E-05   -.22055E-02
   2  Prefactor     21.432        22.015        .31271E-06    .37016E-04
   3  Prefactor     .10001E-03    37.920        .88218E-05** at limit **
   4  Prefactor     .10000E-03    10.972        .21072E-05** at limit **
   5  Prefactor     .10000E-03    9.3478       -.24157E-05** at limit **
   6  Prefactor     .10001E-03    44.633       -.10236E-04** at limit **
   7  Prefactor     .10000E-03    43.924       -.54045E-05** at limit **
   8  Prefactor     5.1559        18.673       -.33659E-05   -.62899E-04
   9  Prefactor     .10000E-03    18.962       -.41760E-05** at limit **
  10  Prefactor     .10000E-03    15.338        .36490E-05** at limit **
  11  Prefactor     4.6457        7.7408        .16384E-05   -.12302E-02
  12  Prefactor     .10002E-03    1.0945       -.34297E-06** at limit **
  13  Prefactor     .10000E-03    24.871        .17726E-05** at limit **
  14  Prefactor     .10000E-03    18.261       -.33651E-05** at limit **
  15  norm          .10000E-03    7.9993        .34299E-05** at limit **
  16  Prefactor     .10000E-03    24.630        .11807E-05** at limit **
  17  norm          .10000E-03    38.916        .66228E-05** at limit **
  18  Prefactor     10.456        8.7423        .25364E-06   -.42580E-03
  19  Prefactor     16.660        11.294        .12296E-06   -.25854E-03
  20  Prefactor     6.5844        8.0979        .17264E-07    .27620E-05
  21  Prefactor     .10000E-03    7.4100       -.73316E-06** at limit **
  22  Prefactor     .10000E-03    7.4219       -.42114E-06** at limit **
  23  Prefactor     .10000E-03    6.3892        .15688E-06** at limit **
  24  Normalizat    1.8251        .26509       -.82994E-07    .64462E-04
  25  Prefactor     .74132        .12413       -.30323E-06    .92360E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.91859
  Prefactor  = 21.4317
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.000100001
  Prefactor  = 5.15592
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 4.64569
  Prefactor  = 0.000100017
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 10.4562
  Prefactor  = 16.6596
  Prefactor  = 6.58437
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.82509
  Prefactor  = 0.741316
 **********
 **   18 **HESSE 
 **********

 FCN=   6339.371     FROM HESSE     STATUS=OK           419 CALLS     3253 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9186        6.3381        .90676E-03   -1.5264    
   2  Prefactor     21.432        22.035        .86525E-04   -1.4782    
   3  Prefactor     .10001E-03    38.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.3891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    45.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    43.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.1559        18.636        .17683E-03   -1.5254    
   9  Prefactor     .10000E-03    19.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    15.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.6457        8.8293        .93379E-03   -1.5277    
  12  Prefactor     .10002E-03    9.2171        .16032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    24.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    18.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    8.1327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    24.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    39.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.456        8.8284        .61949E-03   -1.5061    
  19  Prefactor     16.660        11.406        .49066E-03   -1.4891    
  20  Prefactor     6.5844        8.0987        .15639E-03   -1.5195    
  21  Prefactor     .10000E-03    7.4166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.4322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.3957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.8251        .31953        .29867E-03   -.69011    
  25  Prefactor     .74132        .14854        .21208E-03   -1.0193    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.76546e-09
Minuit parameter uncertainties:
  1  6.33894
  2  22.0429
  3  0.00094023
  4  0.000121364
  5  0.000129915
  6  0.00120822
  7  0.000329342
  8  18.6572
  9  0.00031929
  10  0.00025265
  11  8.83176
  12  0.000801791
  13  0.000154947
  14  0.000251398
  15  0.000160047
  16  9.53694e-05
  17  0.000637348
  18  8.8295
  19  11.407
  20  8.10007
  21  3.60748e-05
  22  2.10492e-05
  23  5.99527e-06
  24  0.319901
  25  0.148623
Done.

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

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  2.527e-04  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:  7.413e-01  1.486e-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.825e+00  3.199e-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: 9.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/506178/likelihoodResults_403401601_403660801_4FGL_J2129.1-0240_daily_bin633.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) = 6339.37154437
delta logL = -0.000308583025799

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6339.35894684
delta logL = 0.0122889425438

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .61446E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    6.9722       1.0000          .0000       10.000    
     3 'Normalizat'    1.8082       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74653       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=   6339.359     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      292 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .58906E-02    .17012        .41294E-02    .95830E-02
   2  Index         6.9949        1.7433        .50000        .14930E-04
   3  Normalizat    1.8083        .16562E-01    .67779E-01    .93196E-05
   4  Prefactor     .74668        .79972E-02    .43017E-01    .19054E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00589061
  Index      = 6.99486
  Normalizat = 1.80827
  Prefactor  = 0.746682
 **********
 **   18 **HESSE 
 **********

 FCN=   6339.359     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      327 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .58906E-02    9.8067        .25778E-03   -1.5693    
   2  Index         6.9949        7.8368        .12189E-01    .41040    
   3  Normalizat    1.8083        .14454        .29980E-03   -.69448    
   4  Prefactor     .74668        .67130E-01    .21141E-03   -1.0172    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.74156e-09
Minuit parameter uncertainties:
  1  0.476678
  2  41.3019
  3  0.14457
  4  0.067137
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/506178': 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): 102
logL (Free Index) = 6339.35894186
delta logL = 0.0122939297889

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  5.891e-03  4.767e-01  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  6.995e+00  4.130e+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:  7.467e-01  6.714e-02  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.808e+00  1.446e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 322.296 -2.683

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/506178/cmap_HighResolution_403401601_403660801_4FGL_J2129.1-0240_daily_bin633.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.26e-03', job_status='DONE', photon_flux_upper_limit='9.26e-08', time_completed='2021-09-26 14:51:01.442883', job_id='506178', GAL2='0.75', fit_tolerance='1e-08', EG2='1.81', EG='1.83', time_epoch_completed='1632693061.44', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='1.23e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='633' AND source_name='4FGL J2129.1-0240' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 14:51:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 506178: <4FGL_J2129.1-0240_daily_bin633> in cluster <slac> Done

Job <4FGL_J2129.1-0240_daily_bin633> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 26 14:35:31 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 14:37:03 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:37:03 2021
Terminated at Sun Sep 26 14:51:02 2021
Results reported at Sun Sep 26 14:51:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.1-0240_daily_bin633 322.296 -2.6829 403401601 403660801 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 :                                   717.02 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             334.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            931 sec.

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

