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


Performing analysis on: 4FGL_J2135.3-5006_daily_bin1044
RA = 323.836, Dec = -50.1015
tmin = 509932801, tmax = 510192001
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='605981', job_status='RUN', time_executed='2021-09-26 19:59:40.385912', time_epoch_executed='1632711580.39' WHERE source_name='4FGL J2135.3-5006' and cadence='daily' and bin_id='1044'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/605981

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/605981/ft1_4FGL_J2135.3-5006_daily_bin1044.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/605981/ft2_4FGL_J2135.3-5006_daily_bin1044.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/605981/ft1_4FGL_J2135.3-5006_daily_bin1044.fits outfile=/scratch/kocevski/605981/ft1_filteredMKT_4FGL_J2135.3-5006_daily_bin1044.fits ra=323.836 dec=-50.1015 rad=12.0 tmin=509932801.0 tmax=510192001.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.55
user 3.31
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/605981/ft2_4FGL_J2135.3-5006_daily_bin1044.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/605981/ft2_4FGL_J2135.3-5006_daily_bin1044.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/605981/ft1_filteredMKT_4FGL_J2135.3-5006_daily_bin1044.fits evtable="EVENTS" outfile="/scratch/kocevski/605981/ft1_filtered_4FGL_J2135.3-5006_daily_bin1044.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.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/605981/ft1_filtered_4FGL_J2135.3-5006_daily_bin1044.fits" evtable="EVENTS" scfile=/scratch/kocevski/605981/ft2_4FGL_J2135.3-5006_daily_bin1044.fits sctable="SC_DATA" outfile=/scratch/kocevski/605981/ltcube_509932801_510192001_4FGL_J2135.3-5006_daily_bin1044.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/605981/ft2_4FGL_J2135.3-5006_daily_bin1044.fits
.....................!
real 15.02
user 14.62
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/605981/ft1_filtered_4FGL_J2135.3-5006_daily_bin1044.fits evtable="EVENTS" scfile=/scratch/kocevski/605981/ft2_4FGL_J2135.3-5006_daily_bin1044.fits sctable="SC_DATA" expcube=/scratch/kocevski/605981/ltcube_509932801_510192001_4FGL_J2135.3-5006_daily_bin1044.fits outfile=/scratch/kocevski/605981/expmap_509932801_510192001_4FGL_J2135.3-5006_daily_bin1044.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/605981/ltcube_509932801_510192001_4FGL_J2135.3-5006_daily_bin1044.fits
.....................!
real 193.50
user 186.79
sys 5.56

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 174 point sources and 0 extended sources

Setting source of interest to:
4FGL J2135.3-5006 @ 323.836 -50.1015

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/605981/ft1_filtered_4FGL_J2135.3-5006_daily_bin1044.fits scfile=/scratch/kocevski/605981/ft2_4FGL_J2135.3-5006_daily_bin1044.fits outfile=/scratch/kocevski/605981/cmap_509932801_510192001_4FGL_J2135.3-5006_daily_bin1044.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=323.836 yref=-50.1015 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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/605981/ft1_filtered_4FGL_J2135.3-5006_daily_bin1044.fits scfile=/scratch/kocevski/605981/ft2_4FGL_J2135.3-5006_daily_bin1044.fits outfile=/scratch/kocevski/605981/cmap_HighResolution_509932801_510192001_4FGL_J2135.3-5006_daily_bin1044.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=323.836 yref=-50.1015 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.59
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/605981/ft1_filtered_4FGL_J2135.3-5006_daily_bin1044.fits evtable="EVENTS" scfile=/scratch/kocevski/605981/ft2_4FGL_J2135.3-5006_daily_bin1044.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/605981/Model_4FGL_J2135.3-5006_daily_bin1044.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/605981/ft1_filtered_4FGL_J2135.3-5006_daily_bin1044.fits.....................!
real 46.75
user 45.44
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/605981/ft1_filtered_4FGL_J2135.3-5006_daily_bin1044.fits', '/scratch/kocevski/605981/ft2_4FGL_J2135.3-5006_daily_bin1044.fits', expMap='/scratch/kocevski/605981/expmap_509932801_510192001_4FGL_J2135.3-5006_daily_bin1044.fits', expCube='/scratch/kocevski/605981/ltcube_509932801_510192001_4FGL_J2135.3-5006_daily_bin1044.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/605981/Model_4FGL_J2135.3-5006_daily_bin1044.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2135.3-5006'

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  2.639e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  2.430e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
293        Scale:  7.285e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/605981/ft1_filtered_4FGL_J2135.3-5006_daily_bin1044.fits
Spacecraft file(s): /scratch/kocevski/605981/ft2_4FGL_J2135.3-5006_daily_bin1044.fits
Exposure map: /scratch/kocevski/605981/expmap_509932801_510192001_4FGL_J2135.3-5006_daily_bin1044.fits
Exposure cube: /scratch/kocevski/605981/ltcube_509932801_510192001_4FGL_J2135.3-5006_daily_bin1044.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/605981/Model_4FGL_J2135.3-5006_daily_bin1044.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) = 5891.4656111

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    3.7409       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.6039       1.0000         .10000E-03   10000.    
     4 'norm      '    .11266E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    126.37       1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.132       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.3672       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .15332       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.1405       1.0000         .10000E-03   10000.    
    11 'norm      '    3.0200       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .53567       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.2039       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.0973       1.0000         .10000E-03   10000.    
    20 'Prefactor '    24.971       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .63970E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0349       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0362       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5780E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5891.426     FROM MIGRAD    STATUS=CONVERGED    609 CALLS     2823 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.397        .10932E-06** at limit **
   2  Prefactor     3.7406        2.8378        .10356E-06    .24322E-03
   3  Prefactor     3.5888        48.124       -.14781E-05    .37245E-04
   4  norm          .10000E-03    .81613       -.50260E-06** at limit **
   5  Prefactor     .10000E-03    21.315       -.21519E-06** at limit **
   6  Prefactor     126.53        133.34       -.12710E-04    .85935E-04
   7  Prefactor     15.131        9.4892        .82662E-07    .21482E-03
   8  Prefactor     4.2798        70.689       -.86072E-05    .13605E-04
   9  Prefactor     .58524E-01    16.483       -.53535E-05    .45949E-03
  10  Prefactor     2.1397        4.7111        .57262E-05    .22214E-03
  11  norm          3.0227        4.7356        .66871E-06    .18427E-03
  12  Prefactor     .10000E-03    5.0500       -.90281E-07** at limit **
  13  Prefactor     .10000E-03    16.076       -.17472E-06** at limit **
  14  Prefactor     .10000E-03    4.1567       -.17661E-06** at limit **
  15  Prefactor     .52689        2.8579        .93049E-06   -.40044E-03
  16  Prefactor     .10000E-03    96.904        .21760E-05** at limit **
  17  norm          1.2036        5.2930        .53139E-06   -.34081E-04
  18  Prefactor     .10000E-03    3.1252       -.37399E-06** at limit **
  19  Prefactor     4.0944        5.5453        .20513E-05   -.28437E-04
  20  Prefactor     24.899        29.596       -.51312E-05   -.39522E-03
  21  Prefactor     .10001E-03    7.7219        .17768E-05** at limit **
  22  Prefactor     .10000E-03    57.923       -.77251E-06** at limit **
  23  Normalizat    1.0360        .22966       -.29065E-05    .13616E-03
  24  Prefactor     1.0356        .14035        .23249E-05    .40306E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.7406
  Prefactor  = 3.58882
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 126.53
  Prefactor  = 15.131
  Prefactor  = 4.27979
  Prefactor  = 0.0585241
  Prefactor  = 2.13972
  norm       = 3.02272
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.526891
  Prefactor  = 0.0001
  norm       = 1.20361
  Prefactor  = 0.0001
  Prefactor  = 4.09444
  Prefactor  = 24.899
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Normalizat = 1.036
  Prefactor  = 1.03564
 **********
 **   18 **HESSE 
 **********

 FCN=   5891.426     FROM HESSE     STATUS=OK           409 CALLS     3232 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.7406        2.8250        .10649E-03   -1.5321    
   3  Prefactor     3.5888        47.553        .21284E-03   -1.5329    
   4  norm          .10000E-03    1.3732        .13357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    21.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     126.53        132.30        .17905E-03   -1.3453    
   7  Prefactor     15.131        9.4880        .10296E-03   -1.4930    
   8  Prefactor     4.2798        69.461        .19274E-03   -1.5294    
   9  Prefactor     .58524E-01    15.174        .95289E-01   -1.5660    
  10  Prefactor     2.1397        4.7141        .11705E-02   -1.5415    
  11  norm          3.0227        4.6909        .19334E-03   -1.5360    
  12  Prefactor     .10000E-03    5.0671        .16844E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    16.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.1752        .15279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .52689        11.256        .23133E-02   -1.5563    
  16  Prefactor     .10000E-03    97.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.2036        5.1716        .34302E-03   -1.5489    
  18  Prefactor     .10000E-03    3.2145        .26497E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.0944        5.5406        .99020E-03   -1.5303    
  20  Prefactor     24.899        27.987        .80163E-04   -1.4710    
  21  Prefactor     .10001E-03    46.350        .37596E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    57.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0360        .26603        .29313E-03   -.91834    
  24  Prefactor     1.0356        .16488        .19832E-03   -.91551    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.23371e-09
Minuit parameter uncertainties:
  1  1.30064e-05
  2  2.82515
  3  26.1523
  4  4.70754e-07
  5  2.69074e-06
  6  132.609
  7  9.48899
  8  34.5306
  9  1.88358
  10  4.71495
  11  4.69144
  12  6.84119e-06
  13  3.35613e-05
  14  1.88529e-05
  15  4.87128
  16  0.000396472
  17  4.99036
  18  2.3953e-05
  19  5.54128
  20  28.0021
  21  0.00100198
  22  6.46303e-05
  23  0.266372
  24  0.164959
Done.

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

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  2.140e+00  4.715e+00  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  2.430e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
293        Scale:  7.285e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  1.036e+00  1.650e-01  0.000e+00  1.000e+01 ( 1.000e+00)
576        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
577        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
574   Normalization:  1.036e+00  2.664e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.24
Ra Dec: 323.836 -50.102
Photon Flux Upper Limit: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/605981/likelihoodResults_509932801_510192001_4FGL_J2135.3-5006_daily_bin1044.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) = 5891.42647151
delta logL = 1.00792258309e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5891.42646346
delta logL = 1.81314999281e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1529       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4238       1.0000          .0000       10.000    
     3 'Normalizat'    1.0361       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0356       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5780E+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=   5891.426     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      257 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1510        5.2865        .23476E-03   -.24925E-03
   2  Index         2.4226        1.2692        .14605E-01   -.35434E-04
   3  Normalizat    1.0361        .23738        .29312E-03   -.77028E-04
   4  Prefactor     1.0356        .16067        .19832E-03   -.13456E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.15099
  Index      = 2.42263
  Normalizat = 1.03613
  Prefactor  = 1.03558
 **********
 **   18 **HESSE 
 **********

 FCN=   5891.426     FROM HESSE     STATUS=OK            25 CALLS      282 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1510        5.0452        .93906E-05   -1.5415    
   2  Index         2.4226        1.2132        .58422E-03   -.54156    
   3  Normalizat    1.0361        .23757        .11725E-04   -.91830    
   4  Prefactor     1.0356        .16072        .39665E-04   -.91553    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41088e-10
Minuit parameter uncertainties:
  1  5.04617
  2  1.23001
  3  0.237813
  4  0.160799
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/605981': 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) = 5891.42646266
delta logL = 1.89298571058e-05

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  2.151e+00  5.046e+00  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  2.423e+00  1.230e+00  0.000e+00  1.000e+01 (-1.000e+00)
293        Scale:  7.285e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  1.036e+00  1.608e-01  0.000e+00  1.000e+01 ( 1.000e+00)
576        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
577        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
574   Normalization:  1.036e+00  2.378e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.24
Ra Dec: 323.836 -50.102

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/605981/cmap_HighResolution_509932801_510192001_4FGL_J2135.3-5006_daily_bin1044.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.86e-03', job_status='DONE', photon_flux_upper_limit='1.14e-07', time_completed='2021-09-26 20:11:04.852248', job_id='605981', GAL2='1.04', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1632712264.85', return_code2='0', ts='0.24', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='1.89e-05', ts2='0.24', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1044' AND source_name='4FGL J2135.3-5006' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 20:11:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 605981: <4FGL_J2135.3-5006_daily_bin1044> in cluster <slac> Done

Job <4FGL_J2135.3-5006_daily_bin1044> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 26 19:55:24 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 19:56:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 19:56:41 2021
Terminated at Sun Sep 26 20:11:05 2021
Results reported at Sun Sep 26 20:11:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2135.3-5006_daily_bin1044 323.836 -50.1015 509932801 510192001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2135.3-5006 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   671.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            941 sec.

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

