/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 151 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 = 7410
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2129.1-0240_daily_bin390
RA = 322.296, Dec = -2.6829
tmin = 340416001, tmax = 340675201
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='504753', job_status='RUN', time_executed='2021-09-26 14:34:44.252761', time_epoch_executed='1632692084.25' WHERE source_name='4FGL J2129.1-0240' and cadence='daily' and bin_id='390'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/504753

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

Retrieving the FT1 file...

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

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

Retrieving 53 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/504753/ft1_4FGL_J2129.1-0240_daily_bin390.fits


Retrieving the FT1 file...

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

Retrieving 53 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/504753/ft2_4FGL_J2129.1-0240_daily_bin390.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/504753/ft1_4FGL_J2129.1-0240_daily_bin390.fits outfile=/scratch/kocevski/504753/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin390.fits ra=322.296 dec=-2.6829 rad=12.0 tmin=340416001.0 tmax=340675201.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.82
user 6.55
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/504753/ft1_filtered_4FGL_J2129.1-0240_daily_bin390.fits" evtable="EVENTS" scfile=/scratch/kocevski/504753/ft2_4FGL_J2129.1-0240_daily_bin390.fits sctable="SC_DATA" outfile=/scratch/kocevski/504753/ltcube_340416001_340675201_4FGL_J2129.1-0240_daily_bin390.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/504753/ft2_4FGL_J2129.1-0240_daily_bin390.fits
.....................!
real 13.90
user 13.54
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/504753/ft1_filtered_4FGL_J2129.1-0240_daily_bin390.fits evtable="EVENTS" scfile=/scratch/kocevski/504753/ft2_4FGL_J2129.1-0240_daily_bin390.fits sctable="SC_DATA" expcube=/scratch/kocevski/504753/ltcube_340416001_340675201_4FGL_J2129.1-0240_daily_bin390.fits outfile=/scratch/kocevski/504753/expmap_340416001_340675201_4FGL_J2129.1-0240_daily_bin390.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/504753/ltcube_340416001_340675201_4FGL_J2129.1-0240_daily_bin390.fits
.....................!
real 191.64
user 185.91
sys 5.20

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/504753/ft1_filtered_4FGL_J2129.1-0240_daily_bin390.fits scfile=/scratch/kocevski/504753/ft2_4FGL_J2129.1-0240_daily_bin390.fits outfile=/scratch/kocevski/504753/cmap_340416001_340675201_4FGL_J2129.1-0240_daily_bin390.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/504753/ft1_filtered_4FGL_J2129.1-0240_daily_bin390.fits scfile=/scratch/kocevski/504753/ft2_4FGL_J2129.1-0240_daily_bin390.fits outfile=/scratch/kocevski/504753/cmap_HighResolution_340416001_340675201_4FGL_J2129.1-0240_daily_bin390.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/504753/ft1_filtered_4FGL_J2129.1-0240_daily_bin390.fits evtable="EVENTS" scfile=/scratch/kocevski/504753/ft2_4FGL_J2129.1-0240_daily_bin390.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/504753/Model_4FGL_J2129.1-0240_daily_bin390.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/504753/ft1_filtered_4FGL_J2129.1-0240_daily_bin390.fits.....................!
real 61.03
user 59.67
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0527       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.1191       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.398       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10181E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .16528E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    40.680       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.6919       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.4947       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.594       1.0000         .10000E-03   10000.    
    14 'Prefactor '    53.414       1.0000         .10000E-03   10000.    
    15 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.5608       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .14076E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.809       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .41936E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .16253E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1212       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .89872       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=   5751.031     FROM MIGRAD    STATUS=CONVERGED   1055 CALLS     3430 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0502        7.4294        .23220E-03   -.87100E-04
   2  Prefactor     1.1098        54.283        .44432E-02    .85104E-03
   3  Prefactor     .10000E-03    46.093        .18142E-02** at limit **
   4  Prefactor     15.372        28.177        .10207E-03    .50902E-04
   5  Prefactor     .10000E-03    10.961        .18142E-02** at limit **
   6  Prefactor     .10000E-03    320.16        .18142E-02** at limit **
   7  Prefactor     .10000E-03    4.8717        .16343E-02** at limit **
   8  Prefactor     .10000E-03    3.3275        .13508E-02** at limit **
   9  Prefactor     40.677        35.031        .62847E-04   -.45223E-04
  10  Prefactor     9.7017        46.042        .12872E-03    .17631E-03
  11  Prefactor     7.4941        5.1800        .13934E-03    .57846E-04
  12  Prefactor     .10000E-03    2.7734        .18857E-02** at limit **
  13  Prefactor     25.531        41.432        .79183E-04    .19457E-03
  14  Prefactor     53.404        49.954        .54880E-04    .14530E-03
  15  norm          .10000E-03    14.511        .18142E-02** at limit **
  16  Prefactor     .10000E-03    40.834        .18142E-02** at limit **
  17  norm          1.5571        34.761        .17030E-02    .14595E-03
  18  Prefactor     .10000E-03    2.3259        .11288E-02** at limit **
  19  Prefactor     .10000E-03    8.8312        .28791E-02** at limit **
  20  Prefactor     14.809        15.955        .10408E-03    .25931E-03
  21  Prefactor     .10000E-03    20.456        .97362E-01** at limit **
  22  Prefactor     .10000E-03    77.625        .36285E-03** at limit **
  23  Prefactor     .10000E-03    10.665        .18142E-02** at limit **
  24  Normalizat    1.1215        .31440        .32603E-03    .23841E-03
  25  Prefactor     .89879        .14832        .18010E-03    .29310E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.05017
  Prefactor  = 1.10981
  Prefactor  = 0.0001
  Prefactor  = 15.3721
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.6771
  Prefactor  = 9.70169
  Prefactor  = 7.49413
  Prefactor  = 0.000100001
  Prefactor  = 25.5309
  Prefactor  = 53.4042
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.55712
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 14.8091
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.12147
  Prefactor  = 0.898789
 **********
 **   18 **HESSE 
 **********

 FCN=   5751.031     FROM HESSE     STATUS=OK           415 CALLS     3845 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0502        7.4270        .92881E-05   -1.5359    
   2  Prefactor     1.1098        54.217        .88865E-03   -1.5497    
   3  Prefactor     .10000E-03    46.096        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.372        28.183        .40827E-05   -1.4924    
   5  Prefactor     .10000E-03    10.961        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    320.44        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.8718        .32686E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.3275        .27015E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     40.677        35.026        .25139E-05   -1.4432    
  10  Prefactor     9.7017        46.006        .25744E-04   -1.5085    
  11  Prefactor     7.4941        5.1799        .55737E-05   -1.5160    
  12  Prefactor     .10000E-03    2.7769        .37714E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     25.531        41.423        .15837E-04   -1.4697    
  14  Prefactor     53.404        49.951        .10976E-04   -1.4245    
  15  norm          .10000E-03    14.518        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    40.839        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.5571        34.732        .34059E-03   -1.5458    
  18  Prefactor     .10000E-03    2.3260        .22576E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.8806        .57581E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     14.809        15.952        .41632E-05   -1.4938    
  21  Prefactor     .10000E-03    19.590        .10052       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    77.630        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    10.666        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1215        .31445        .13041E-04   -.89066    
  25  Prefactor     .89879        .14843        .36020E-04   -.96183    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43804e-09
Minuit parameter uncertainties:
  1  7.42921
  2  15.5281
  3  1.85863e-05
  4  28.2071
  5  6.23244e-05
  6  0.000821185
  7  5.31366e-06
  8  2.92719e-06
  9  35.0435
  10  42.3062
  11  5.18016
  12  0.000105389
  13  41.4694
  14  49.9902
  15  3.99575e-05
  16  0.000241011
  17  14.7173
  18  6.32162e-06
  19  0.000286303
  20  15.9561
  21  6.31248e-05
  22  9.797e-05
  23  8.96265e-06
  24  0.314979
  25  0.148495
Done.

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

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  9.702e+00  4.231e+01  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  2.637e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
296        Scale:  7.565e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
548    Prefactor:  8.988e-01  1.485e-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.121e+00  3.150e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/504753/likelihoodResults_340416001_340675201_4FGL_J2129.1-0240_daily_bin390.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) = 5751.02893038
delta logL = 0.00160181141109

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5751.02875394
delta logL = 0.00177825717128

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.0313       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7542       1.0000          .0000       10.000    
     3 'Normalizat'    1.1193       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89939       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=   5751.029     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      252 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.9814        659.53        .33342E-02    .21561E-03
   2  Index         2.7572        2.0703        .50000        .61057E-05
   3  Normalizat    1.1199        .27189E-01    .73717E-01    .13687E-04
   4  Prefactor     .89930        .13653E-01    .44997E-01    .90721E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.98138
  Index      = 2.75715
  Normalizat = 1.11991
  Prefactor  = 0.899301
 **********
 **   18 **HESSE 
 **********

 FCN=   5751.029     FROM HESSE     STATUS=OK            33 CALLS      285 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.9814        51.202        .66684E-03   -1.5108    
   2  Index         2.7572        2.0637        .82820E-02   -.46516    
   3  Normalizat    1.1199        .29489        .32623E-03   -.89115    
   4  Prefactor     .89930        .14673        .18005E-03   -.96166    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34015e-10
Minuit parameter uncertainties:
  1  42.9446
  2  2.14512
  3  0.295328
  4  0.146797
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/504753': 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) = 5751.02874602
delta logL = 0.00178617974234

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  8.981e+00  4.294e+01  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  2.757e+00  2.145e+00  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:  8.993e-01  1.468e-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.120e+00  2.953e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
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/504753/cmap_HighResolution_340416001_340675201_4FGL_J2129.1-0240_daily_bin390.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.15e-02', job_status='DONE', photon_flux_upper_limit='1.47e-07', time_completed='2021-09-26 14:46:55.925946', job_id='504753', GAL2='0.90', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1632692815.93', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.79e-03', ts2='0.06', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='390' AND source_name='4FGL J2129.1-0240' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 14:46:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 504753: <4FGL_J2129.1-0240_daily_bin390> in cluster <slac> Done

Job <4FGL_J2129.1-0240_daily_bin390> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep 26 14:30:26 2021
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 14:32: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:32:02 2021
Terminated at Sun Sep 26 14:46:56 2021
Results reported at Sun Sep 26 14:46:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.1-0240_daily_bin390 322.296 -2.6829 340416001 340675201 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 :                                   728.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   894 sec.
    Turnaround time :                            990 sec.

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

