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


Performing analysis on: 4FGL_J2129.1-0240_daily_bin316
RA = 322.296, Dec = -2.6829
tmin = 321235201, tmax = 321494401
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='504647', job_status='RUN', time_executed='2021-09-26 14:31:04.551263', time_epoch_executed='1632691864.55' WHERE source_name='4FGL J2129.1-0240' and cadence='daily' and bin_id='316'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/504647

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/504647/ft1_4FGL_J2129.1-0240_daily_bin316.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/504647/ft2_4FGL_J2129.1-0240_daily_bin316.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/504647/ft1_4FGL_J2129.1-0240_daily_bin316.fits outfile=/scratch/kocevski/504647/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin316.fits ra=322.296 dec=-2.6829 rad=12.0 tmin=321235201.0 tmax=321494401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.54
user 3.32
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/504647/ft1_filtered_4FGL_J2129.1-0240_daily_bin316.fits" evtable="EVENTS" scfile=/scratch/kocevski/504647/ft2_4FGL_J2129.1-0240_daily_bin316.fits sctable="SC_DATA" outfile=/scratch/kocevski/504647/ltcube_321235201_321494401_4FGL_J2129.1-0240_daily_bin316.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/504647/ft2_4FGL_J2129.1-0240_daily_bin316.fits
.....................!
real 13.54
user 13.17
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/504647/ft1_filtered_4FGL_J2129.1-0240_daily_bin316.fits evtable="EVENTS" scfile=/scratch/kocevski/504647/ft2_4FGL_J2129.1-0240_daily_bin316.fits sctable="SC_DATA" expcube=/scratch/kocevski/504647/ltcube_321235201_321494401_4FGL_J2129.1-0240_daily_bin316.fits outfile=/scratch/kocevski/504647/expmap_321235201_321494401_4FGL_J2129.1-0240_daily_bin316.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/504647/ltcube_321235201_321494401_4FGL_J2129.1-0240_daily_bin316.fits
.....................!
real 189.82
user 184.99
sys 4.47

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/504647/ft1_filtered_4FGL_J2129.1-0240_daily_bin316.fits scfile=/scratch/kocevski/504647/ft2_4FGL_J2129.1-0240_daily_bin316.fits outfile=/scratch/kocevski/504647/cmap_321235201_321494401_4FGL_J2129.1-0240_daily_bin316.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/504647/ft1_filtered_4FGL_J2129.1-0240_daily_bin316.fits scfile=/scratch/kocevski/504647/ft2_4FGL_J2129.1-0240_daily_bin316.fits outfile=/scratch/kocevski/504647/cmap_HighResolution_321235201_321494401_4FGL_J2129.1-0240_daily_bin316.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8583       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.2412       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.7247       1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.632       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .37035E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.5272       1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.852       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.239       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    27.866       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    20.120       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10540E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.0020       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .92499       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .59503       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0724       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=   4676.952     FROM MIGRAD    STATUS=CONVERGED   1011 CALLS     3351 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8608        6.1244        .23389E-03    .96729E-05
   2  Prefactor     1.2460        59.781        .20121E-02    .50004E-04
   3  Prefactor     .10000E-03    12.408        .18142E-02** at limit **
   4  Prefactor     2.6445        603.11        .24670E-03    .25806E-04
   5  Prefactor     19.661        75.598        .90395E-04   -.84264E-05
   6  Prefactor     .10000E-03    41.798        .18142E-02** at limit **
   7  Prefactor     .10036E-03    109.52        .51375E-02** at limit **
   8  Prefactor     6.5322        15.348        .78541E-03   -.11421E-04
   9  Prefactor     21.843        24.094        .85685E-04    .30517E-05
  10  Prefactor     .10000E-03    15.008        .18142E-02** at limit **
  11  Prefactor     13.243        9.3709        .11008E-03   -.29226E-04
  12  Prefactor     .10000E-03    .95459        .64657E-03** at limit **
  13  Prefactor     27.952        34.927        .75892E-04    .60819E-04
  14  Prefactor     .10000E-03    25.210        .18142E-02** at limit **
  15  norm          .10000E-03    3.9093        .13206E-02** at limit **
  16  Prefactor     .10000E-03    58.655        .18142E-02** at limit **
  17  norm          20.126        21.877        .89294E-04    .27373E-04
  18  Prefactor     .10000E-03    12.039        .18142E-02** at limit **
  19  Prefactor     .10000E-03    5.3979        .15452E-02** at limit **
  20  Prefactor     .10000E-03    6.9175        .17541E-02** at limit **
  21  Prefactor     .10000E-03    18.742        .18142E-02** at limit **
  22  Prefactor     1.9958        66.031        .29269E-03   -.19421E-05
  23  Prefactor     .97080        84.721        .44128E-02    .97163E-04
  24  Normalizat    .59472        .31231        .39651E-03    .58175E-04
  25  Prefactor     1.0725        .15595        .15847E-03    .12397E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.86085
  Prefactor  = 1.24597
  Prefactor  = 0.0001
  Prefactor  = 2.64447
  Prefactor  = 19.6606
  Prefactor  = 0.0001
  Prefactor  = 0.000100359
  Prefactor  = 6.5322
  Prefactor  = 21.8431
  Prefactor  = 0.0001
  Prefactor  = 13.2433
  Prefactor  = 0.0001
  Prefactor  = 27.9524
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 20.1258
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.99583
  Prefactor  = 0.970801
  Normalizat = 0.594719
  Prefactor  = 1.07254
 **********
 **   18 **HESSE 
 **********

 FCN=   4676.952     FROM HESSE     STATUS=OK           407 CALLS     3758 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8608        6.1224        .93555E-05   -1.5370    
   2  Prefactor     1.2460        59.488        .80484E-04   -1.5485    
   3  Prefactor     .10000E-03    12.408        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.6445        585.04        .98682E-05   -1.5383    
   5  Prefactor     19.661        74.471        .36158E-05   -1.4821    
   6  Prefactor     .10000E-03    41.799        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10036E-03    111.87        .10275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.5322        15.339        .31416E-04   -1.5197    
   9  Prefactor     21.843        24.084        .34274E-05   -1.4773    
  10  Prefactor     .10000E-03    15.008        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.243        9.3676        .44034E-05   -1.4980    
  12  Prefactor     .10000E-03    .95467        .12931E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     27.952        34.911        .30357E-05   -1.4650    
  14  Prefactor     .10000E-03    25.214        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.9093        .26412E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    58.663        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          20.126        21.875        .35718E-05   -1.4810    
  18  Prefactor     .10000E-03    12.049        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.3991        .30904E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.9181        .35082E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    18.744        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.9958        63.326        .11707E-04   -1.5425    
  23  Prefactor     .97080        81.120        .17651E-03   -1.5511    
  24  Normalizat    .59472        .31145        .15860E-04   -1.0821    
  25  Prefactor     1.0725        .15591        .31694E-04   -.90349    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.63159e-09
Minuit parameter uncertainties:
  1  6.1237
  2  17.2362
  3  4.82374e-06
  4  79.4644
  5  74.8266
  6  0.000178054
  7  0.0126962
  8  15.3481
  9  24.0947
  10  2.10988e-05
  11  9.36863
  12  7.69801e-06
  13  34.9364
  14  6.62618e-05
  15  1.70289e-06
  16  0.000183648
  17  21.8837
  18  3.21219e-06
  19  2.80171e-05
  20  6.91518e-06
  21  8.22452e-05
  22  22.5099
  23  17.7724
  24  0.312372
  25  0.155981
Done.

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

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  2.110e-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.073e+00  1.560e-01  0.000e+00  1.000e+01 ( 1.000e+00)
549        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
550        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
547   Normalization:  5.947e-01  3.124e-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: 8.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/504647/likelihoodResults_321235201_321494401_4FGL_J2129.1-0240_daily_bin316.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) = 4676.95222037
delta logL = -0.000317284131597

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4676.95190619
delta logL = -3.10549330607e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1807       1.0000          .0000       10.000    
     3 'Normalizat'    .59471       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0725       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=   4676.952     FROM MIGRAD    STATUS=CONVERGED    114 CALLS      300 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    79.449        .18142E-01** at limit **
   2  Index         1.9277        5.8924        .50000       -.37562E-07
   3  Normalizat    .59472        .11531E-01    .39651E-03    .82030E-04
   4  Prefactor     1.0725        .60984E-02    .15847E-03    .21442E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.92767
  Normalizat = 0.594719
  Prefactor  = 1.07254
 **********
 **   18 **HESSE 
 **********

 FCN=   4676.952     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      329 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    447.35        .32175E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9277        5.7827        .50000       -.66171    
   3  Normalizat    .59472        .27989E-01    .15861E-04   -1.0821    
   4  Prefactor     1.0725        .14803E-01    .31694E-04   -.90349    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.38398e-10
Minuit parameter uncertainties:
  1  0.000378902
  2  1070.87
  3  0.0279893
  4  0.0148026
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/504647': 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) = 4676.95190191
delta logL = 1.17838499136e-06

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  3.789e-04  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  1.928e+00  1.071e+03  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.073e+00  1.480e-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:  5.947e-01  2.799e-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/504647/cmap_HighResolution_321235201_321494401_4FGL_J2129.1-0240_daily_bin316.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.02e-03', job_status='DONE', photon_flux_upper_limit='8.95e-08', time_completed='2021-09-26 14:41:33.228827', job_id='504647', GAL2='1.07', fit_tolerance='1e-08', EG2='0.59', EG='0.59', time_epoch_completed='1632692493.23', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='1.18e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='316' AND source_name='4FGL J2129.1-0240' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 14:41:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 504647: <4FGL_J2129.1-0240_daily_bin316> in cluster <slac> Done

Job <4FGL_J2129.1-0240_daily_bin316> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep 26 14:30:18 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 14:30:50 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:30:50 2021
Terminated at Sun Sep 26 14:41:34 2021
Results reported at Sun Sep 26 14:41:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.1-0240_daily_bin316 322.296 -2.6829 321235201 321494401 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.12 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             335.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   643 sec.
    Turnaround time :                            676 sec.

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

