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


Performing analysis on: 4FGL_J2129.1-0240_daily_bin559
RA = 322.296, Dec = -2.6829
tmin = 384220801, tmax = 384480001
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='506063', job_status='RUN', time_executed='2021-09-26 14:39:26.519481', time_epoch_executed='1632692366.52' WHERE source_name='4FGL J2129.1-0240' and cadence='daily' and bin_id='559'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/506063

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/506063/ft1_4FGL_J2129.1-0240_daily_bin559.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/506063/ft2_4FGL_J2129.1-0240_daily_bin559.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/506063/ft1_4FGL_J2129.1-0240_daily_bin559.fits outfile=/scratch/kocevski/506063/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin559.fits ra=322.296 dec=-2.6829 rad=12.0 tmin=384220801.0 tmax=384480001.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 13.80
user 13.35
sys 0.37

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/506063/ft1_filtered_4FGL_J2129.1-0240_daily_bin559.fits" evtable="EVENTS" scfile=/scratch/kocevski/506063/ft2_4FGL_J2129.1-0240_daily_bin559.fits sctable="SC_DATA" outfile=/scratch/kocevski/506063/ltcube_384220801_384480001_4FGL_J2129.1-0240_daily_bin559.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/506063/ft2_4FGL_J2129.1-0240_daily_bin559.fits
.....................!
real 12.96
user 12.58
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/506063/ft1_filtered_4FGL_J2129.1-0240_daily_bin559.fits evtable="EVENTS" scfile=/scratch/kocevski/506063/ft2_4FGL_J2129.1-0240_daily_bin559.fits sctable="SC_DATA" expcube=/scratch/kocevski/506063/ltcube_384220801_384480001_4FGL_J2129.1-0240_daily_bin559.fits outfile=/scratch/kocevski/506063/expmap_384220801_384480001_4FGL_J2129.1-0240_daily_bin559.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/506063/ltcube_384220801_384480001_4FGL_J2129.1-0240_daily_bin559.fits
.....................!
real 190.45
user 185.99
sys 3.92

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/506063/ft1_filtered_4FGL_J2129.1-0240_daily_bin559.fits scfile=/scratch/kocevski/506063/ft2_4FGL_J2129.1-0240_daily_bin559.fits outfile=/scratch/kocevski/506063/cmap_384220801_384480001_4FGL_J2129.1-0240_daily_bin559.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/506063/ft1_filtered_4FGL_J2129.1-0240_daily_bin559.fits scfile=/scratch/kocevski/506063/ft2_4FGL_J2129.1-0240_daily_bin559.fits outfile=/scratch/kocevski/506063/cmap_HighResolution_384220801_384480001_4FGL_J2129.1-0240_daily_bin559.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/506063/ft1_filtered_4FGL_J2129.1-0240_daily_bin559.fits evtable="EVENTS" scfile=/scratch/kocevski/506063/ft2_4FGL_J2129.1-0240_daily_bin559.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/506063/Model_4FGL_J2129.1-0240_daily_bin559.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/506063/ft1_filtered_4FGL_J2129.1-0240_daily_bin559.fits............................!
real 19.00
user 17.75
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.504       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10718E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    45.377       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    194.07       1.0000         .10000E-03   10000.    
     7 'Prefactor '    67.666       1.0000         .10000E-03   10000.    
     8 'Prefactor '    46.892       1.0000         .10000E-03   10000.    
     9 'Prefactor '    49.039       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .38016E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10479E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    45.084       1.0000         .10000E-03   10000.    
    15 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    71.749       1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.983       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    38.960       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .46116       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .55519       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=   635.0193     FROM MIGRAD    STATUS=CONVERGED    539 CALLS     3346 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.506        20.930       -.68008E-06    .16287E-03
   2  Prefactor     .10000E-03    153.42       -.60817E-04** at limit **
   3  Prefactor     .10000E-03    98.732        .70675E-04** at limit **
   4  Prefactor     45.363        86.438       -.17636E-04    .60052E-05
   5  Prefactor     .10000E-03    42.281       -.10992E-04** at limit **
   6  Prefactor     194.14        336.23        .45583E-04    .78934E-04
   7  Prefactor     67.711        76.019        .43373E-04    .13980E-04
   8  Prefactor     46.865        66.083       -.30258E-04    .66034E-05
   9  Prefactor     49.065        68.557        .27289E-04    .16346E-04
  10  Prefactor     .10004E-03    676.40       -.17453E-03** at limit **
  11  Prefactor     .10000E-03    18.035        .85135E-06** at limit **
  12  Prefactor     .10000E-03    5.5891       -.35921E-06** at limit **
  13  Prefactor     .10000E-03    135.90        .17975E-06** at limit **
  14  Prefactor     45.074        165.74       -.14542E-04    .23335E-04
  15  norm          .10000E-03    38.188        .84836E-05** at limit **
  16  Prefactor     .10000E-03    54.521       -.24723E-04** at limit **
  17  norm          71.699        69.030       -.42732E-04    .38326E-05
  18  Prefactor     18.980        25.226       -.87669E-06    .10550E-04
  19  Prefactor     .10000E-03    16.135       -.23289E-06** at limit **
  20  Prefactor     .10000E-03    39.567        .88385E-06** at limit **
  21  Prefactor     39.000        92.333        .55909E-04    .68184E-05
  22  Prefactor     .10000E-03    31.847        .20487E-04** at limit **
  23  Prefactor     .10000E-03    28.519       -.13853E-04** at limit **
  24  Normalizat    .45977        .74531       -.45023E-05    .84557E-04
  25  Prefactor     .55578        .30399       -.43000E-05    .22870E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.5056
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 45.363
  Prefactor  = 0.0001
  Prefactor  = 194.135
  Prefactor  = 67.7115
  Prefactor  = 46.8647
  Prefactor  = 49.0651
  Prefactor  = 0.000100041
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 45.0742
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 71.6993
  Prefactor  = 18.9797
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.459775
  Prefactor  = 0.555782
 **********
 **   18 **HESSE 
 **********

 FCN=   635.0193     FROM HESSE     STATUS=OK           415 CALLS     3761 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.506        20.894        .10517E-03   -1.4946    
   2  Prefactor     .10000E-03    154.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    98.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     45.363        86.502        .59519E-04   -1.4360    
   5  Prefactor     .10000E-03    42.271        .16015E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     194.14        336.16        .14498E-03   -1.2912    
   7  Prefactor     67.711        76.009        .24397E-03   -1.4060    
   8  Prefactor     46.865        66.047        .29277E-03   -1.4338    
   9  Prefactor     49.065        68.418        .57264E-04   -1.4306    
  10  Prefactor     .10004E-03    680.07        .21287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    18.049        .10457E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.5943        .58162E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    135.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     45.074        165.91        .59711E-04   -1.4364    
  15  norm          .10000E-03    38.187        .15223E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    54.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          71.699        68.954        .23697E-03   -1.4012    
  18  Prefactor     18.980        25.199        .91927E-04   -1.4836    
  19  Prefactor     .10000E-03    16.137        .98913E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    39.654        .15491E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     39.000        92.129        .64214E-04   -1.4458    
  22  Prefactor     .10000E-03    31.858        .13895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    28.545        .13156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .45977        .81020        .38098E-03   -1.1432    
  25  Prefactor     .55578        .34536        .16318E-03   -1.0948    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.82113e-10
Minuit parameter uncertainties:
  1  20.904
  2  0.000690189
  3  0.000224548
  4  86.7422
  5  0.000153556
  6  339.58
  7  76.1179
  8  66.1499
  9  68.5276
  10  0.0107485
  11  3.39284e-05
  12  4.06516e-05
  13  0.00060563
  14  167.65
  15  4.48064e-07
  16  7.72937e-05
  17  69.0308
  18  25.2135
  19  1.5822e-06
  20  0.000136674
  21  92.4679
  22  9.47285e-05
  23  0.000159414
  24  0.832428
  25  0.346684
Done.

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

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  1.075e-02  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:  5.558e-01  3.467e-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.598e-01  8.324e-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: 6.66e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.22e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/506063/likelihoodResults_384220801_384480001_4FGL_J2129.1-0240_daily_bin559.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) = 635.019344495
delta logL = -6.85040163262e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 635.019337651
delta logL = -6.75333922118e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6187       1.0000          .0000       10.000    
     3 'Normalizat'    .45978       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55578       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=   635.0193     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      245 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10009E-03    5704.1        .90712E-02** at limit **
   2  Index         2.7186        5.1632        .50000       -.16104E-05
   3  Normalizat    .45977        .24087        .86004E-01   -.26324E-04
   4  Prefactor     .55578        .11330        .40448E-01   -.89154E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100091
  Index      = 2.71857
  Normalizat = 0.459769
  Prefactor  = 0.555782
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10009E-03    971.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7186        6.3576        .50000       -.47382    
   3  Normalizat    .45977        .64474        .38099E-03   -1.1432    
   4  Prefactor     .55578        .31329        .16318E-03   -1.0948    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3453e-10
Minuit parameter uncertainties:
  1  0.0190765
  2  5.04226
  3  0.655634
  4  0.314278
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/506063': 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) = 635.019337617
delta logL = 2.7953319659e-08

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.001e-04  1.908e-02  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  2.719e+00  5.042e+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:  5.558e-01  3.143e-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.598e-01  6.556e-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/506063/cmap_HighResolution_384220801_384480001_4FGL_J2129.1-0240_daily_bin559.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.22e-02', job_status='DONE', photon_flux_upper_limit='6.66e-07', time_completed='2021-09-26 14:46:22.895908', job_id='506063', GAL2='0.56', fit_tolerance='1e-08', EG2='0.46', EG='0.46', time_epoch_completed='1632692782.9', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.56', dlogl='2.80e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='559' AND source_name='4FGL J2129.1-0240' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 14:46:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 506063: <4FGL_J2129.1-0240_daily_bin559> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.1-0240_daily_bin559 322.296 -2.6829 384220801 384480001 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 :                                   410.47 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             229.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   621 sec.
    Turnaround time :                            661 sec.

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

