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


Performing analysis on: 4FGL_J2135.3-5006_daily_bin1015
RA = 323.836, Dec = -50.1015
tmin = 502416001, tmax = 502675201
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='605939', job_status='RUN', time_executed='2021-09-26 19:57:03.636685', time_epoch_executed='1632711423.64' WHERE source_name='4FGL J2135.3-5006' and cadence='daily' and bin_id='1015'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/605939

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/605939/ft1_4FGL_J2135.3-5006_daily_bin1015.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/605939/ft2_4FGL_J2135.3-5006_daily_bin1015.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/605939/ft1_4FGL_J2135.3-5006_daily_bin1015.fits outfile=/scratch/kocevski/605939/ft1_filteredMKT_4FGL_J2135.3-5006_daily_bin1015.fits ra=323.836 dec=-50.1015 rad=12.0 tmin=502416001.0 tmax=502675201.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.61
user 3.32
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/605939/ft2_4FGL_J2135.3-5006_daily_bin1015.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/605939/ft1_filteredMKT_4FGL_J2135.3-5006_daily_bin1015.fits evtable="EVENTS" outfile="/scratch/kocevski/605939/ft1_filtered_4FGL_J2135.3-5006_daily_bin1015.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/605939/ft1_filtered_4FGL_J2135.3-5006_daily_bin1015.fits" evtable="EVENTS" scfile=/scratch/kocevski/605939/ft2_4FGL_J2135.3-5006_daily_bin1015.fits sctable="SC_DATA" outfile=/scratch/kocevski/605939/ltcube_502416001_502675201_4FGL_J2135.3-5006_daily_bin1015.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/605939/ft2_4FGL_J2135.3-5006_daily_bin1015.fits
.....................!
real 14.94
user 14.56
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/605939/ft1_filtered_4FGL_J2135.3-5006_daily_bin1015.fits evtable="EVENTS" scfile=/scratch/kocevski/605939/ft2_4FGL_J2135.3-5006_daily_bin1015.fits sctable="SC_DATA" expcube=/scratch/kocevski/605939/ltcube_502416001_502675201_4FGL_J2135.3-5006_daily_bin1015.fits outfile=/scratch/kocevski/605939/expmap_502416001_502675201_4FGL_J2135.3-5006_daily_bin1015.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/605939/ltcube_502416001_502675201_4FGL_J2135.3-5006_daily_bin1015.fits
.....................!
real 191.81
user 186.16
sys 5.14

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/605939/ft1_filtered_4FGL_J2135.3-5006_daily_bin1015.fits scfile=/scratch/kocevski/605939/ft2_4FGL_J2135.3-5006_daily_bin1015.fits outfile=/scratch/kocevski/605939/cmap_502416001_502675201_4FGL_J2135.3-5006_daily_bin1015.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/605939/ft1_filtered_4FGL_J2135.3-5006_daily_bin1015.fits scfile=/scratch/kocevski/605939/ft2_4FGL_J2135.3-5006_daily_bin1015.fits outfile=/scratch/kocevski/605939/cmap_HighResolution_502416001_502675201_4FGL_J2135.3-5006_daily_bin1015.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/605939/ft1_filtered_4FGL_J2135.3-5006_daily_bin1015.fits evtable="EVENTS" scfile=/scratch/kocevski/605939/ft2_4FGL_J2135.3-5006_daily_bin1015.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/605939/Model_4FGL_J2135.3-5006_daily_bin1015.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/605939/ft1_filtered_4FGL_J2135.3-5006_daily_bin1015.fits.....................!
real 65.08
user 63.63
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/605939/ft1_filtered_4FGL_J2135.3-5006_daily_bin1015.fits', '/scratch/kocevski/605939/ft2_4FGL_J2135.3-5006_daily_bin1015.fits', expMap='/scratch/kocevski/605939/expmap_502416001_502675201_4FGL_J2135.3-5006_daily_bin1015.fits', expCube='/scratch/kocevski/605939/ltcube_502416001_502675201_4FGL_J2135.3-5006_daily_bin1015.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/605939/Model_4FGL_J2135.3-5006_daily_bin1015.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/605939/ft1_filtered_4FGL_J2135.3-5006_daily_bin1015.fits
Spacecraft file(s): /scratch/kocevski/605939/ft2_4FGL_J2135.3-5006_daily_bin1015.fits
Exposure map: /scratch/kocevski/605939/expmap_502416001_502675201_4FGL_J2135.3-5006_daily_bin1015.fits
Exposure cube: /scratch/kocevski/605939/ltcube_502416001_502675201_4FGL_J2135.3-5006_daily_bin1015.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/605939/Model_4FGL_J2135.3-5006_daily_bin1015.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) = 9236.30639881

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.281       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10863E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .29756E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.7453       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    30.309       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10455E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.1142       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .98493       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13158E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.6148       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .89418       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.794       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.6011       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10245E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10266E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .61501       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2420       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=   9236.240     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     2801 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.281        58.569       -.86523E-06   -.31950E-05
   2  Prefactor     .10000E-03    1.2905        .60462E-07** at limit **
   3  Prefactor     .10000E-03    5.7893       -.35012E-07** at limit **
   4  norm          .10000E-03    .55059        .38064E-07** at limit **
   5  Prefactor     .10000E-03    16.342       -.39258E-06** at limit **
   6  Prefactor     .10000E-03    421.39       -.12351E-03** at limit **
   7  Prefactor     .10000E-03    1.6239       -.27816E-08** at limit **
   8  Prefactor     .10000E-03    5.5678        .45374E-07** at limit **
   9  Prefactor     1.7102        40.235        .46012E-05   -.40492E-05
  10  Prefactor     .10000E-03    1.8477       -.11794E-06** at limit **
  11  norm          30.308        5.6950        .29265E-07    .73995E-05
  12  Prefactor     .10000E-03    2.1241        .15632E-07** at limit **
  13  Prefactor     .10000E-03    20.829        .74153E-06** at limit **
  14  Prefactor     2.1146        2.4670        .98285E-06   -.31329E-02
  15  Prefactor     .98604        2.6024       -.14991E-06   -.28735E-03
  16  Prefactor     .10000E-03    66.962        .16533E-05** at limit **
  17  norm          7.6181        6.0506       -.17670E-06   -.77018E-05
  18  Prefactor     .89371        2.1640        .54236E-07   -.21304E-03
  19  Prefactor     10.795        5.0232       -.13730E-06   -.39882E-04
  20  Prefactor     8.6073        16.312       -.45601E-06   -.97858E-05
  21  Prefactor     .10000E-03    7.8898        .63590E-07** at limit **
  22  Prefactor     .10000E-03    33.378       -.18878E-05** at limit **
  23  Normalizat    .61502        .16979       -.23627E-06    .13576E-03
  24  Prefactor     1.2421        .11558       -.50386E-07    .30096E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.2806
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.71021
  Prefactor  = 0.0001
  norm       = 30.3084
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.1146
  Prefactor  = 0.986036
  Prefactor  = 0.0001
  norm       = 7.61808
  Prefactor  = 0.893713
  Prefactor  = 10.7947
  Prefactor  = 8.60725
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.615018
  Prefactor  = 1.24207
 **********
 **   18 **HESSE 
 **********

 FCN=   9236.240     FROM HESSE     STATUS=OK           399 CALLS     3200 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.281        58.645        .93674E-04   -1.4853    
   2  Prefactor     .10000E-03    3.1982        .21038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.8008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.7760        .13653E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    423.72        .42786E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.6309        .11957E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.5741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.7102        40.271        .31748E-03   -1.5446    
  10  Prefactor     .10000E-03    3.7201        .25074E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          30.308        5.6909        .72777E-04   -1.4606    
  12  Prefactor     .10000E-03    2.1374        .13678E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    20.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.1146        5.7756        .14185E-02   -1.5417    
  15  Prefactor     .98604        2.5378        .23718E-03   -1.5509    
  16  Prefactor     .10000E-03    67.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.6181        6.0450        .14533E-03   -1.5156    
  18  Prefactor     .89371        2.1201        .20923E-03   -1.5519    
  19  Prefactor     10.795        5.0172        .12195E-03   -1.5051    
  20  Prefactor     8.6073        16.287        .13668E-03   -1.5121    
  21  Prefactor     .10000E-03    8.0813        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    33.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .61502        .18986        .34415E-03   -1.0735    
  24  Prefactor     1.2421        .13109        .17812E-03   -.85046    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55294e-08
Minuit parameter uncertainties:
  1  58.8303
  2  9.81143e-06
  3  1.16501e-06
  4  9.08338e-06
  5  1.64661e-05
  6  0.000611061
  7  6.07528e-08
  8  1.45533e-07
  9  16.6098
  10  3.42539e-06
  11  5.69097
  12  5.19612e-08
  13  1.21309e-05
  14  5.7771
  15  2.53807
  16  6.0312e-05
  17  6.04544
  18  2.12025
  19  5.01744
  20  16.295
  21  1.1499e-05
  22  3.23467e-05
  23  0.190059
  24  0.13112
Done.

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

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  3.425e-06  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.242e+00  1.311e-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:  6.150e-01  1.901e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 323.836 -50.102
Photon Flux Upper Limit: 6.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/605939/likelihoodResults_502416001_502675201_4FGL_J2135.3-5006_daily_bin1015.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) = 9236.24091737
delta logL = -0.00127897598759

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9236.23963921
delta logL = -8.16424289951e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4285       1.0000          .0000       10.000    
     3 'Normalizat'    .61486       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2422       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.

 FCN=   9236.240     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      226 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .30227        .43102E-01** at limit **
   2  Index         2.4269        5.5274        .50000        .34167E-05
   3  Normalizat    .61502        .16064E-02    .77725E-01    .77109E-04
   4  Prefactor     1.2421        .11508E-02    .33702E-01    .56365E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.42691
  Normalizat = 0.615018
  Prefactor  = 1.24207
 **********
 **   18 **HESSE 
 **********

 FCN=   9236.240     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      261 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.741        .25090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4269        7.7168        .50000       -.54056    
   3  Normalizat    .61502        .10915E-01    .34415E-03   -1.0735    
   4  Prefactor     1.2421        .78388E-02    .17812E-03   -.85046    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.32854e-08
Minuit parameter uncertainties:
  1  0.00018342
  2  175.382
  3  0.0109152
  4  0.00783883
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/605939': 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) = 9236.23963839
delta logL = 2.65754351858e-09

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  1.834e-04  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  2.427e+00  1.754e+02  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.242e+00  7.839e-03  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:  6.150e-01  1.092e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/605939/cmap_HighResolution_502416001_502675201_4FGL_J2135.3-5006_daily_bin1015.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.76e-03', job_status='DONE', photon_flux_upper_limit='6.15e-08', time_completed='2021-09-26 20:11:26.439077', job_id='605939', GAL2='1.24', fit_tolerance='1e-08', EG2='0.62', EG='0.62', time_epoch_completed='1632712286.44', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='2.66e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1015' AND source_name='4FGL J2135.3-5006' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 20:11:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 605939: <4FGL_J2135.3-5006_daily_bin1015> in cluster <slac> Done

Job <4FGL_J2135.3-5006_daily_bin1015> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 26 19:55:22 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 19:56:21 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:21 2021
Terminated at Sun Sep 26 20:11:26 2021
Results reported at Sun Sep 26 20:11:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2135.3-5006_daily_bin1015 323.836 -50.1015 502416001 502675201 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 :                                   859.34 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             319.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            964 sec.

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

