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


Performing analysis on: 4FGL_J2135.3-5006_daily_bin1403
RA = 323.836, Dec = -50.1015
tmin = 602985601, tmax = 603244801
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='607679', job_status='RUN', time_executed='2021-09-26 20:06:06.153372', time_epoch_executed='1632711966.15' WHERE source_name='4FGL J2135.3-5006' and cadence='daily' and bin_id='1403'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/607679

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/607679/ft1_4FGL_J2135.3-5006_daily_bin1403.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/607679/ft2_4FGL_J2135.3-5006_daily_bin1403.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/607679/ft1_4FGL_J2135.3-5006_daily_bin1403.fits outfile=/scratch/kocevski/607679/ft1_filteredMKT_4FGL_J2135.3-5006_daily_bin1403.fits ra=323.836 dec=-50.1015 rad=12.0 tmin=602985601.0 tmax=603244801.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.05
user 2.83
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/607679/ft2_4FGL_J2135.3-5006_daily_bin1403.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/607679/ft1_filteredMKT_4FGL_J2135.3-5006_daily_bin1403.fits evtable="EVENTS" outfile="/scratch/kocevski/607679/ft1_filtered_4FGL_J2135.3-5006_daily_bin1403.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/607679/ft1_filtered_4FGL_J2135.3-5006_daily_bin1403.fits" evtable="EVENTS" scfile=/scratch/kocevski/607679/ft2_4FGL_J2135.3-5006_daily_bin1403.fits sctable="SC_DATA" outfile=/scratch/kocevski/607679/ltcube_602985601_603244801_4FGL_J2135.3-5006_daily_bin1403.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/607679/ft2_4FGL_J2135.3-5006_daily_bin1403.fits
.....................!
real 14.47
user 14.09
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/607679/ft1_filtered_4FGL_J2135.3-5006_daily_bin1403.fits evtable="EVENTS" scfile=/scratch/kocevski/607679/ft2_4FGL_J2135.3-5006_daily_bin1403.fits sctable="SC_DATA" expcube=/scratch/kocevski/607679/ltcube_602985601_603244801_4FGL_J2135.3-5006_daily_bin1403.fits outfile=/scratch/kocevski/607679/expmap_602985601_603244801_4FGL_J2135.3-5006_daily_bin1403.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/607679/ltcube_602985601_603244801_4FGL_J2135.3-5006_daily_bin1403.fits
.....................!
real 190.97
user 185.33
sys 5.05

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/607679/ft1_filtered_4FGL_J2135.3-5006_daily_bin1403.fits scfile=/scratch/kocevski/607679/ft2_4FGL_J2135.3-5006_daily_bin1403.fits outfile=/scratch/kocevski/607679/cmap_602985601_603244801_4FGL_J2135.3-5006_daily_bin1403.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/607679/ft1_filtered_4FGL_J2135.3-5006_daily_bin1403.fits scfile=/scratch/kocevski/607679/ft2_4FGL_J2135.3-5006_daily_bin1403.fits outfile=/scratch/kocevski/607679/cmap_HighResolution_602985601_603244801_4FGL_J2135.3-5006_daily_bin1403.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/607679/ft1_filtered_4FGL_J2135.3-5006_daily_bin1403.fits evtable="EVENTS" scfile=/scratch/kocevski/607679/ft2_4FGL_J2135.3-5006_daily_bin1403.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/607679/Model_4FGL_J2135.3-5006_daily_bin1403.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/607679/ft1_filtered_4FGL_J2135.3-5006_daily_bin1403.fits.....................!
real 20.91
user 19.68
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.7774       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    71.832       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.2818       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    43.146       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .23201E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .17024E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    752.75       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1439.3       1.0000         .10000E-03   10000.    
    17 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11809E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.0994       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10425E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.4603       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=   1306.587     FROM MIGRAD    STATUS=CONVERGED    515 CALLS     3136 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    85.071        .98243E-07** at limit **
   2  Prefactor     .10000E-03    1.6422       -.54102E-07** at limit **
   3  Prefactor     .10000E-03    63.267       -.47861E-06** at limit **
   4  norm          3.7774        4.0658        .73836E-07    .42941E-03
   5  Prefactor     .10000E-03    76.285       -.16925E-06** at limit **
   6  Prefactor     71.762        126.15        .81622E-06    .46551E-04
   7  Prefactor     2.2870        164.81       -.11394E-05    .17230E-04
   8  Prefactor     .10000E-03    133.23        .10843E-06** at limit **
   9  Prefactor     43.196        79.278        .76360E-07    .67265E-04
  10  Prefactor     .10000E-03    23.524       -.95417E-06** at limit **
  11  norm          .10000E-03    164.23       -.22519E-06** at limit **
  12  Prefactor    10000.0        1184.7        .30004E-05** at limit **
  13  Prefactor     .10012E-03    9636.8       -.33430E-04** at limit **
  14  Prefactor     751.84        634.43        .57009E-05    .91496E-04
  15  Prefactor     .10000E-03    26.787       -.23894E-06** at limit **
  16  Prefactor     1444.2        2390.2        .23463E-05    .19871E-04
  17  norm          .10000E-03    19.343        .49042E-07** at limit **
  18  Prefactor     .10000E-03    25.910       -.18607E-05** at limit **
  19  Prefactor     .10001E-03    21.603       -.22472E-05** at limit **
  20  Prefactor     1.0860        77.383       -.37746E-05    .17138E-03
  21  Prefactor     .10000E-03    48.741        .15912E-07** at limit **
  22  Prefactor     .10000E-03    82.486        .35786E-07** at limit **
  23  Normalizat    .10000E-01    .30571       -.37173E-04** at limit **
  24  Prefactor     1.4602        .16498        .50268E-05    .61803E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.77744
  Prefactor  = 0.0001
  Prefactor  = 71.762
  Prefactor  = 2.287
  Prefactor  = 0.0001
  Prefactor  = 43.1963
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.000100125
  Prefactor  = 751.836
  Prefactor  = 0.0001
  Prefactor  = 1444.22
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.000100007
  Prefactor  = 1.08596
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.46022
 **********
 **   18 **HESSE 
 **********

 FCN=   1306.587     FROM HESSE     STATUS=OK           385 CALLS     3521 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    85.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.6476        .45233E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    63.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.7774        4.0661        .72412E-04   -1.5319    
   5  Prefactor     .10000E-03    76.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     71.762        126.43        .23684E-03   -1.4012    
   7  Prefactor     2.2870        165.67        .27180E-03   -1.5406    
   8  Prefactor     .10000E-03    133.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     43.196        79.350        .61032E-04   -1.4393    
  10  Prefactor     .10000E-03    23.559        .17113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    164.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor    10000.0        1184.8        .19702E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10012E-03    9639.3        .18216E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     751.84        652.70        .75805E-04   -1.0153    
  15  Prefactor     .10000E-03    26.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1444.2        2390.6        .56976E-04   -.79114    
  17  norm          .10000E-03    19.344        .15532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    26.297        .17918E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    21.611        .16324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.0860        897.37        .55775E-02   -1.5500    
  21  Prefactor     .10000E-03    49.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    82.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .10000E-01    .47036        .11617E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.4602        .17721        .16437E-03   -.78660    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15015e-08
Minuit parameter uncertainties:
  1  2.48551e-05
  2  2.25694e-08
  3  1.51284e-05
  4  4.06639
  5  3.71938e-05
  6  126.906
  7  39.0423
  8  0.000181159
  9  79.545
  10  0.00022897
  11  6.28616e-05
  12  0.00935034
  13  0.0917606
  14  659.557
  15  0.00011795
  16  2628.87
  17  1.56877e-05
  18  0.000688315
  19  0.000753592
  20  63.4088
  21  0.000129175
  22  5.5958e-05
  23  2.63239e-05
  24  0.177281
Done.

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

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  2.290e-04  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.460e+00  1.773e-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.000e-02  2.632e-05  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.74e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.22e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/607679/likelihoodResults_602985601_603244801_4FGL_J2135.3-5006_daily_bin1403.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) = 1306.58750935
delta logL = -0.00020756847448

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1306.58730724
delta logL = -5.45715624867e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12187E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9339       1.0000          .0000       10.000    
     3 'Normalizat'    .10004E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4602       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=   1306.587     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      281 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10246E-03    20.340        .15076E-01** at limit **
   2  Index         2.8509        6.6700        .50000        .91704E-05
   3  Normalizat    .10000E-01    .10267E-02    .11624E-01** at limit **
   4  Prefactor     1.4602        .76271E-02    .16437E-03    .17292E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102465
  Index      = 2.85087
  Normalizat = 0.01
  Prefactor  = 1.46022
 **********
 **   18 **HESSE 
 **********

 FCN=   1306.587     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      310 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10246E-03    221.52        .15360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8509        6.4243        .50000       -.44430    
   3  Normalizat    .10000E-01    .11272E-01    .23247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4602        .25248E-01    .65746E-05   -.78660    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.09571e-09
Minuit parameter uncertainties:
  1  0.0469065
  2  600.907
  3  2.46003e-08
  4  0.0252479
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/607679': 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) = 1306.58730231
delta logL = -5.2692121244e-07

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  1.025e-04  4.691e-02  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  2.851e+00  6.009e+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.460e+00  2.525e-02  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.000e-02  2.460e-08  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/607679/cmap_HighResolution_602985601_603244801_4FGL_J2135.3-5006_daily_bin1403.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.22e-02', job_status='DONE', photon_flux_upper_limit='6.74e-07', time_completed='2021-09-26 20:14:07.165419', job_id='607679', GAL2='1.46', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632712447.17', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.46', dlogl='-5.27e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1403' AND source_name='4FGL J2135.3-5006' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 20:14:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 607679: <4FGL_J2135.3-5006_daily_bin1403> in cluster <slac> Done

Job <4FGL_J2135.3-5006_daily_bin1403> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep 26 20:00:55 2021
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 20:03:12 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 20:03:12 2021
Terminated at Sun Sep 26 20:14:07 2021
Results reported at Sun Sep 26 20:14:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2135.3-5006_daily_bin1403 323.836 -50.1015 602985601 603244801 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 :                                   400.13 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             251.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   655 sec.
    Turnaround time :                            792 sec.

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

