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


Performing analysis on: 4FGL_J2129.1-0240_daily_bin355
RA = 322.296, Dec = -2.6829
tmin = 331344001, tmax = 331603201
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='504703', job_status='RUN', time_executed='2021-09-26 14:33:46.644789', time_epoch_executed='1632692026.64' WHERE source_name='4FGL J2129.1-0240' and cadence='daily' and bin_id='355'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/504703

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/504703/ft1_4FGL_J2129.1-0240_daily_bin355.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/504703/ft2_4FGL_J2129.1-0240_daily_bin355.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/504703/ft1_4FGL_J2129.1-0240_daily_bin355.fits outfile=/scratch/kocevski/504703/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin355.fits ra=322.296 dec=-2.6829 rad=12.0 tmin=331344001.0 tmax=331603201.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.29
user 3.10
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/504703/ft1_filtered_4FGL_J2129.1-0240_daily_bin355.fits" evtable="EVENTS" scfile=/scratch/kocevski/504703/ft2_4FGL_J2129.1-0240_daily_bin355.fits sctable="SC_DATA" outfile=/scratch/kocevski/504703/ltcube_331344001_331603201_4FGL_J2129.1-0240_daily_bin355.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/504703/ft2_4FGL_J2129.1-0240_daily_bin355.fits
.....................!
real 13.46
user 13.11
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/504703/ft1_filtered_4FGL_J2129.1-0240_daily_bin355.fits evtable="EVENTS" scfile=/scratch/kocevski/504703/ft2_4FGL_J2129.1-0240_daily_bin355.fits sctable="SC_DATA" expcube=/scratch/kocevski/504703/ltcube_331344001_331603201_4FGL_J2129.1-0240_daily_bin355.fits outfile=/scratch/kocevski/504703/expmap_331344001_331603201_4FGL_J2129.1-0240_daily_bin355.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/504703/ltcube_331344001_331603201_4FGL_J2129.1-0240_daily_bin355.fits
.....................!
real 190.81
user 185.51
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/504703/ft1_filtered_4FGL_J2129.1-0240_daily_bin355.fits scfile=/scratch/kocevski/504703/ft2_4FGL_J2129.1-0240_daily_bin355.fits outfile=/scratch/kocevski/504703/cmap_331344001_331603201_4FGL_J2129.1-0240_daily_bin355.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/504703/ft1_filtered_4FGL_J2129.1-0240_daily_bin355.fits scfile=/scratch/kocevski/504703/ft2_4FGL_J2129.1-0240_daily_bin355.fits outfile=/scratch/kocevski/504703/cmap_HighResolution_331344001_331603201_4FGL_J2129.1-0240_daily_bin355.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.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/504703/ft1_filtered_4FGL_J2129.1-0240_daily_bin355.fits evtable="EVENTS" scfile=/scratch/kocevski/504703/ft2_4FGL_J2129.1-0240_daily_bin355.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/504703/Model_4FGL_J2129.1-0240_daily_bin355.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/504703/ft1_filtered_4FGL_J2129.1-0240_daily_bin355.fits.....................!
real 68.62
user 67.31
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1368       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.1843       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.5023       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10497E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.1308       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.435       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.4410       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.072       1.0000         .10000E-03   10000.    
    14 'Prefactor '    50.161       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    10.203       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.038       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.2575       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .73742       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0383       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=   6561.047     FROM MIGRAD    STATUS=CONVERGED    562 CALLS     2872 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1372        6.0044       -.57526E-06   -.19242E-03
   2  Prefactor     1.1849        46.000       -.85809E-05   -.22911E-03
   3  Prefactor     .10000E-03    13.134        .16013E-04** at limit **
   4  Prefactor     6.5007        22.047       -.15607E-05   -.81591E-04
   5  Prefactor     .10000E-03    29.936        .74349E-05** at limit **
   6  Prefactor     .10000E-03    19.313       -.15168E-04** at limit **
   7  Prefactor     4.1308        13.695       -.19881E-05   -.66893E-04
   8  Prefactor     .10000E-03    5.4699       -.92740E-06** at limit **
   9  Prefactor     25.436        30.091        .52640E-06    .16053E-04
  10  Prefactor     .10000E-03    29.835        .66166E-05** at limit **
  11  Prefactor     .10000E-03    2.9013       -.81923E-07** at limit **
  12  Prefactor     3.4419        3.3215        .11241E-05   -.94764E-04
  13  Prefactor     11.053        43.641       -.38982E-04   -.44408E-05
  14  Prefactor     50.164        52.890        .24429E-05    .16523E-04
  15  norm          .10000E-03    3.0157       -.33664E-08** at limit **
  16  Prefactor     .10000E-03    61.986       -.66064E-05** at limit **
  17  norm          10.184        22.767       -.91848E-05    .12754E-04
  18  Prefactor     .10000E-03    3.9417        .15559E-07** at limit **
  19  Prefactor     .10000E-03    10.966       -.97951E-05** at limit **
  20  Prefactor     18.038        12.802       -.84694E-07    .22116E-04
  21  Prefactor     1.2388        73.769       -.41418E-05   -.10845E-03
  22  Prefactor     .10000E-03    4.5127        .24228E-06** at limit **
  23  Prefactor     .10000E-03    6.3873        .10699E-05** at limit **
  24  Normalizat    .73727        .24537        .78388E-05    .18362E-03
  25  Prefactor     1.0383        .11684       -.36903E-06    .56561E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.13724
  Prefactor  = 1.18489
  Prefactor  = 0.0001
  Prefactor  = 6.50071
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.13075
  Prefactor  = 0.0001
  Prefactor  = 25.4358
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.44191
  Prefactor  = 11.0531
  Prefactor  = 50.1637
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 10.1845
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.0377
  Prefactor  = 1.23884
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.737266
  Prefactor  = 1.03832
 **********
 **   18 **HESSE 
 **********

 FCN=   6561.047     FROM HESSE     STATUS=OK           423 CALLS     3295 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1372        6.0021        .15015E-03   -1.5174    
   2  Prefactor     1.1849        48.143        .41952E-03   -1.5490    
   3  Prefactor     .10000E-03    13.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.5007        22.039        .15739E-03   -1.5198    
   5  Prefactor     .10000E-03    30.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    19.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.1308        13.690        .19833E-03   -1.5301    
   8  Prefactor     .10000E-03    5.4797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     25.436        30.052        .79430E-04   -1.4699    
  10  Prefactor     .10000E-03    29.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.9277        .13471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.4419        3.2788        .12520E-03   -1.5337    
  13  Prefactor     11.053        43.548        .12040E-03   -1.5043    
  14  Prefactor     50.164        52.790        .56623E-04   -1.4290    
  15  norm          .10000E-03    3.0163        .13738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    62.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          10.184        22.754        .12544E-03   -1.5070    
  18  Prefactor     .10000E-03    3.9667        .15702E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.329        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     18.038        12.796        .94303E-04   -1.4858    
  21  Prefactor     1.2388        76.123        .39807E-03   -1.5485    
  22  Prefactor     .10000E-03    4.5152        .16804E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.3963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .73727        .28031        .38162E-03   -1.0244    
  25  Prefactor     1.0383        .13604        .16733E-03   -.91463    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11055e-09
Minuit parameter uncertainties:
  1  6.00261
  2  15.118
  3  6.07825e-06
  4  22.0665
  5  5.89268e-06
  6  3.17626e-05
  7  13.7006
  8  8.4004e-06
  9  30.0702
  10  4.70087e-05
  11  1.35311e-05
  12  3.27901
  13  43.6736
  14  52.8393
  15  1.12071e-06
  16  0.000677056
  17  22.7738
  18  2.98647e-05
  19  4.51701e-05
  20  12.7978
  21  19.4473
  22  5.13792e-06
  23  7.24266e-06
  24  0.28086
  25  0.136086
Done.

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

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  4.701e-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.038e+00  1.361e-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:  7.373e-01  2.809e-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.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/504703/likelihoodResults_331344001_331603201_4FGL_J2129.1-0240_daily_bin355.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) = 6561.04752175
delta logL = -0.000159493391038

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6561.04736235
delta logL = -9.39107849263e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5583       1.0000          .0000       10.000    
     3 'Normalizat'    .73727       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0383       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=   6561.047     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      234 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6605.2        .90712E-02** at limit **
   2  Index         2.5728        7.8876        .50000       -.47232E-05
   3  Normalizat    .73727        .76773E-01    .86164E-01    .38244E-04
   4  Prefactor     1.0383        .39527E-01    .40648E-01    .10558E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.57282
  Normalizat = 0.737267
  Prefactor  = 1.03832
 **********
 **   18 **HESSE 
 **********

 FCN=   6561.047     FROM HESSE     STATUS=OK            33 CALLS      267 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    52.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5728        6.1789        .50000       -.50686    
   3  Normalizat    .73727        .25824        .38161E-03   -1.0244    
   4  Prefactor     1.0383        .13372        .16733E-03   -.91463    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.50336e-11
Minuit parameter uncertainties:
  1  4.55718e-05
  2  5.93743
  3  0.258664
  4  0.133763
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/504703': 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) = 6561.04736233
delta logL = -7.25467543816e-08

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  4.557e-05  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  2.573e+00  5.937e+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:  1.038e+00  1.338e-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:  7.373e-01  2.587e-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/504703/cmap_HighResolution_331344001_331603201_4FGL_J2129.1-0240_daily_bin355.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.92e-03', job_status='DONE', photon_flux_upper_limit='1.14e-07', time_completed='2021-09-26 14:45:45.055975', job_id='504703', GAL2='1.04', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1632692745.06', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='-7.25e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='355' AND source_name='4FGL J2129.1-0240' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 14:45:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 504703: <4FGL_J2129.1-0240_daily_bin355> in cluster <slac> Done

Job <4FGL_J2129.1-0240_daily_bin355> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep 26 14:30:22 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 14:31:28 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:31:28 2021
Terminated at Sun Sep 26 14:45:45 2021
Results reported at Sun Sep 26 14:45:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.1-0240_daily_bin355 322.296 -2.6829 331344001 331603201 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 :                                   714.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   857 sec.
    Turnaround time :                            923 sec.

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

