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


Performing analysis on: 4FGL_J2129.1-0240_daily_bin751
RA = 322.296, Dec = -2.6829
tmin = 433987201, tmax = 434246401
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='507456', job_status='RUN', time_executed='2021-09-26 14:41:49.147443', time_epoch_executed='1632692509.15' WHERE source_name='4FGL J2129.1-0240' and cadence='daily' and bin_id='751'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/507456

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/507456/ft1_4FGL_J2129.1-0240_daily_bin751.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/507456/ft2_4FGL_J2129.1-0240_daily_bin751.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/507456/ft1_4FGL_J2129.1-0240_daily_bin751.fits outfile=/scratch/kocevski/507456/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin751.fits ra=322.296 dec=-2.6829 rad=12.0 tmin=433987201.0 tmax=434246401.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 6.41
user 6.10
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/507456/ft1_filtered_4FGL_J2129.1-0240_daily_bin751.fits" evtable="EVENTS" scfile=/scratch/kocevski/507456/ft2_4FGL_J2129.1-0240_daily_bin751.fits sctable="SC_DATA" outfile=/scratch/kocevski/507456/ltcube_433987201_434246401_4FGL_J2129.1-0240_daily_bin751.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/507456/ft2_4FGL_J2129.1-0240_daily_bin751.fits
.....................!
real 17.65
user 17.18
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/507456/ft1_filtered_4FGL_J2129.1-0240_daily_bin751.fits evtable="EVENTS" scfile=/scratch/kocevski/507456/ft2_4FGL_J2129.1-0240_daily_bin751.fits sctable="SC_DATA" expcube=/scratch/kocevski/507456/ltcube_433987201_434246401_4FGL_J2129.1-0240_daily_bin751.fits outfile=/scratch/kocevski/507456/expmap_433987201_434246401_4FGL_J2129.1-0240_daily_bin751.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/507456/ltcube_433987201_434246401_4FGL_J2129.1-0240_daily_bin751.fits
.....................!
real 196.72
user 191.26
sys 4.95

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/507456/ft1_filtered_4FGL_J2129.1-0240_daily_bin751.fits scfile=/scratch/kocevski/507456/ft2_4FGL_J2129.1-0240_daily_bin751.fits outfile=/scratch/kocevski/507456/cmap_433987201_434246401_4FGL_J2129.1-0240_daily_bin751.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.59
user 0.41
sys 0.16

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

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

This is gtbin version HEAD
real 0.61
user 0.44
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/507456/ft1_filtered_4FGL_J2129.1-0240_daily_bin751.fits evtable="EVENTS" scfile=/scratch/kocevski/507456/ft2_4FGL_J2129.1-0240_daily_bin751.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/507456/Model_4FGL_J2129.1-0240_daily_bin751.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/507456/ft1_filtered_4FGL_J2129.1-0240_daily_bin751.fits.....................!
real 50.71
user 49.20
sys 1.32

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .88337       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.198       1.0000         .10000E-03   10000.    
     3 'Prefactor '    64.141       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    90.577       1.0000         .10000E-03   10000.    
     7 'Prefactor '    71.927       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.668       1.0000         .10000E-03   10000.    
     9 'Prefactor '    35.447       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.9651       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.947       1.0000         .10000E-03   10000.    
    14 'Prefactor '    30.475       1.0000         .10000E-03   10000.    
    15 'norm      '    8.1804       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .26054E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    28.490       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10718E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13751E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    46.408       1.0000         .10000E-03   10000.    
    22 'Prefactor '    51.957       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .41018       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1429       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=   4465.271     FROM MIGRAD    STATUS=CONVERGED    554 CALLS     2910 TOTAL
                     EDM=   .54E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .88004        5.3560        .92408E-06   -.12261E-03
   2  Prefactor     11.192        19.494        .77096E-06    .16938E-04
   3  Prefactor     64.137        55.707       -.10300E-07   -.39767E-06
   4  Prefactor     .10000E-03    29.262        .86614E-08** at limit **
   5  Prefactor     .10000E-03    21.696        .47128E-07** at limit **
   6  Prefactor     90.568        98.727        .12528E-05    .56424E-06
   7  Prefactor     71.920        44.896        .79306E-06    .23722E-04
   8  Prefactor     11.665        26.891        .57074E-06    .16486E-04
   9  Prefactor     35.440        43.360        .96470E-06    .10042E-04
  10  Prefactor     .10000E-03    28.948       -.26259E-06** at limit **
  11  Prefactor     5.9644        7.8410        .42363E-06    .35222E-04
  12  Prefactor     .10000E-03    1.2304       -.25407E-06** at limit **
  13  Prefactor     22.918        50.785        .14496E-05   -.34223E-04
  14  Prefactor     30.462        52.205        .12549E-05   -.12827E-04
  15  norm          8.1792        12.822        .19049E-05   -.82014E-04
  16  Prefactor     .10000E-03    174.24       -.47234E-05** at limit **
  17  norm          28.463        38.444        .17913E-06   -.30501E-04
  18  Prefactor     .10000E-03    19.220       -.70193E-06** at limit **
  19  Prefactor     .10000E-03    2.7189        .16749E-06** at limit **
  20  Prefactor     .10000E-03    60.868        .34817E-05** at limit **
  21  Prefactor     46.405        34.906        .38696E-06    .95097E-05
  22  Prefactor     51.974        30.972        .86047E-06    .68481E-04
  23  Prefactor     .10000E-03    19.025        .65755E-06** at limit **
  24  Normalizat    .41009        .34854       -.11786E-04   -.36784E-04
  25  Prefactor     1.1430        .16913        .23703E-05   -.71480E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.880039
  Prefactor  = 11.1924
  Prefactor  = 64.1372
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 90.5684
  Prefactor  = 71.9198
  Prefactor  = 11.6647
  Prefactor  = 35.4403
  Prefactor  = 0.0001
  Prefactor  = 5.9644
  Prefactor  = 0.0001
  Prefactor  = 22.918
  Prefactor  = 30.462
  norm       = 8.17916
  Prefactor  = 0.0001
  norm       = 28.4631
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 46.4052
  Prefactor  = 51.974
  Prefactor  = 0.0001
  Normalizat = 0.410094
  Prefactor  = 1.143
 **********
 **   18 **HESSE 
 **********

 FCN=   4465.271     FROM HESSE     STATUS=OK           429 CALLS     3339 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .88004        9.6303        .28297E-02   -1.5520    
   2  Prefactor     11.192        19.532        .11972E-03   -1.5039    
   3  Prefactor     64.137        55.687        .50107E-04   -1.4105    
   4  Prefactor     .10000E-03    29.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    21.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     90.568        98.673        .42222E-04   -1.3802    
   7  Prefactor     71.920        44.687        .47336E-04   -1.4010    
   8  Prefactor     11.665        26.791        .11728E-03   -1.5025    
   9  Prefactor     35.440        43.462        .67311E-04   -1.4517    
  10  Prefactor     .10000E-03    28.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.9644        7.8357        .16441E-03   -1.5219    
  12  Prefactor     .10000E-03    1.2296        .72185E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     22.918        50.640        .83618E-04   -1.4750    
  14  Prefactor     30.462        52.168        .72579E-04   -1.4604    
  15  norm          8.1792        12.748        .70087E-03   -1.5136    
  16  Prefactor     .10000E-03    173.27        .21448E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          28.463        38.283        .75058E-04   -1.4640    
  18  Prefactor     .10000E-03    19.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.7261        .10765E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    62.271        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     46.405        34.902        .58857E-04   -1.4344    
  22  Prefactor     51.974        30.813        .55640E-04   -1.4265    
  23  Prefactor     .10000E-03    19.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .41009        .35189        .52489E-03   -1.1678    
  25  Prefactor     1.1430        .17436        .16678E-03   -.88104    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70975e-08
Minuit parameter uncertainties:
  1  5.82325
  2  19.5434
  3  55.7325
  4  1.26278e-05
  5  1.81197e-05
  6  98.8527
  7  44.7074
  8  26.8182
  9  43.5012
  10  1.72819e-05
  11  7.83701
  12  4.78561e-06
  13  50.7348
  14  52.246
  15  12.7524
  16  4.30863e-05
  17  38.3161
  18  0.000120585
  19  2.86106e-06
  20  1.62126e-05
  21  34.9171
  22  30.8229
  23  4.51624e-05
  24  0.353806
  25  0.17445
Done.

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

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  1.728e-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.143e+00  1.745e-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:  4.101e-01  3.538e-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.35e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.06e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/507456/likelihoodResults_433987201_434246401_4FGL_J2129.1-0240_daily_bin751.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): 102
logL (Free Index) = 4465.2707748
delta logL = -0.000164407097145

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4465.27061198
delta logL = -1.58994680532e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10385E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.3573       1.0000          .0000       10.000    
     3 'Normalizat'    .41009       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1430       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=   4465.271     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      277 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11015E-03    10.529        .18142E-01** at limit **
   2  Index         3.1311        6.1503        .50000        .12340E-04
   3  Normalizat    .41010        .51771E-02    .52486E-03   -.54801E-05
   4  Prefactor     1.1430        .26799E-02    .16678E-03   -.18337E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000110155
  Index      = 3.13111
  Normalizat = 0.410095
  Prefactor  = 1.143
 **********
 **   18 **HESSE 
 **********

 FCN=   4465.271     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      306 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11015E-03    179.87        .28728E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.1311        6.4967        .50000       -.38308    
   3  Normalizat    .41010        .21513E-01    .20994E-04   -1.1678    
   4  Prefactor     1.1430        .11136E-01    .66711E-05   -.88104    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.68823e-08
Minuit parameter uncertainties:
  1  0.0857333
  2  851.626
  3  0.0215133
  4  0.0111362
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/507456': 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) = 4465.27061148
delta logL = -1.08080894279e-06

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.102e-04  8.573e-02  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  3.131e+00  8.516e+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.143e+00  1.114e-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:  4.101e-01  2.151e-02  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/507456/cmap_HighResolution_433987201_434246401_4FGL_J2129.1-0240_daily_bin751.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', job_status='DONE', photon_flux_upper_limit='1.35e-07', time_completed='2021-09-26 14:52:19.895584', job_id='507456', GAL2='1.14', fit_tolerance='1e-08', EG2='0.41', EG='0.41', time_epoch_completed='1632693139.9', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='-1.08e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='751' AND source_name='4FGL J2129.1-0240' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 14:52:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0187>
Subject: Job 507456: <4FGL_J2129.1-0240_daily_bin751> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.1-0240_daily_bin751 322.296 -2.6829 433987201 434246401 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 :                                   626.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             287.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   647 sec.
    Turnaround time :                            709 sec.

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

