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


Performing analysis on: 4FGL_J2135.3-5006_daily_bin635
RA = 323.836, Dec = -50.1015
tmin = 403920001, tmax = 404179201
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='603305', job_status='RUN', time_executed='2021-09-26 19:51:36.828627', time_epoch_executed='1632711096.83' WHERE source_name='4FGL J2135.3-5006' and cadence='daily' and bin_id='635'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603305

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

Retrieving the FT1 file...

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

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

Retrieving 39 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603305/ft1_4FGL_J2135.3-5006_daily_bin635.fits


Retrieving the FT1 file...

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

Retrieving 39 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603305/ft2_4FGL_J2135.3-5006_daily_bin635.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603305/ft1_4FGL_J2135.3-5006_daily_bin635.fits outfile=/scratch/kocevski/603305/ft1_filteredMKT_4FGL_J2135.3-5006_daily_bin635.fits ra=323.836 dec=-50.1015 rad=12.0 tmin=403920001.0 tmax=404179201.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 10.20
user 9.85
sys 0.31

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/603305/ft1_filtered_4FGL_J2135.3-5006_daily_bin635.fits" evtable="EVENTS" scfile=/scratch/kocevski/603305/ft2_4FGL_J2135.3-5006_daily_bin635.fits sctable="SC_DATA" outfile=/scratch/kocevski/603305/ltcube_403920001_404179201_4FGL_J2135.3-5006_daily_bin635.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/603305/ft2_4FGL_J2135.3-5006_daily_bin635.fits
.....................!
real 10.18
user 9.81
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603305/ft1_filtered_4FGL_J2135.3-5006_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/603305/ft2_4FGL_J2135.3-5006_daily_bin635.fits sctable="SC_DATA" expcube=/scratch/kocevski/603305/ltcube_403920001_404179201_4FGL_J2135.3-5006_daily_bin635.fits outfile=/scratch/kocevski/603305/expmap_403920001_404179201_4FGL_J2135.3-5006_daily_bin635.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/603305/ltcube_403920001_404179201_4FGL_J2135.3-5006_daily_bin635.fits
.....................!
real 190.62
user 185.21
sys 4.79

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/603305/ft1_filtered_4FGL_J2135.3-5006_daily_bin635.fits scfile=/scratch/kocevski/603305/ft2_4FGL_J2135.3-5006_daily_bin635.fits outfile=/scratch/kocevski/603305/cmap_403920001_404179201_4FGL_J2135.3-5006_daily_bin635.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.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/603305/ft1_filtered_4FGL_J2135.3-5006_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/603305/ft2_4FGL_J2135.3-5006_daily_bin635.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/603305/Model_4FGL_J2135.3-5006_daily_bin635.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/603305/ft1_filtered_4FGL_J2135.3-5006_daily_bin635.fits.............................!
real 15.55
user 14.34
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10803E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.158       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10097E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14357E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10367E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11653E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    33.472       1.0000         .10000E-03   10000.    
    11 'norm      '    47.787       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10260E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.226       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .23230E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13644E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13926E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    91.605       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .13163E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .64754       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .78714       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=   321.8035     FROM MIGRAD    STATUS=CONVERGED    530 CALLS     2752 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    381.48        .57549E-07** at limit **
   2  Prefactor     11.157        13.157        .94995E-07    .74261E-05
   3  Prefactor     .10000E-03    42.530        .15520E-06** at limit **
   4  norm          .10002E-03    21.431        .40912E-05** at limit **
   5  Prefactor     .10000E-03    122.21        .98238E-06** at limit **
   6  Prefactor     .10000E-03    237.71       -.18249E-05** at limit **
   7  Prefactor     .10000E-03    56.100        .44560E-06** at limit **
   8  Prefactor     .10000E-03    290.35       -.15120E-05** at limit **
   9  Prefactor     .10000E-03    65.706       -.44684E-06** at limit **
  10  Prefactor     33.466        34.950        .40837E-06   -.11831E-03
  11  norm          47.781        39.457       -.11174E-06    .58087E-04
  12  Prefactor     .10000E-03    36.090       -.24641E-06** at limit **
  13  Prefactor     .10000E-03    126.87        .11425E-05** at limit **
  14  Prefactor     18.228        61.308       -.77174E-05   -.26369E-03
  15  Prefactor     .10042E-03    144.48        .24525E-04** at limit **
  16  Prefactor     .10001E-03    743.26        .95603E-05** at limit **
  17  norm          .10000E-03    35.575        .40214E-09** at limit **
  18  Prefactor     .10000E-03    33.821        .72131E-06** at limit **
  19  Prefactor     .10002E-03    83.146        .14285E-05** at limit **
  20  Prefactor     91.477        169.20       -.51205E-05   -.97291E-04
  21  Prefactor     .10001E-03    84.683        .68493E-06** at limit **
  22  Prefactor     .10000E-03    451.94        .18286E-05** at limit **
  23  Normalizat    .64725        .92005        .16953E-04   -.65258E-04
  24  Prefactor     .78714        .58036       -.96114E-05   -.19668E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 11.1574
  Prefactor  = 0.0001
  norm       = 0.000100022
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.4661
  norm       = 47.7813
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.228
  Prefactor  = 0.000100418
  Prefactor  = 0.000100009
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100022
  Prefactor  = 91.4766
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Normalizat = 0.647251
  Prefactor  = 0.787143
 **********
 **   18 **HESSE 
 **********

 FCN=   321.8035     FROM HESSE     STATUS=OK           377 CALLS     3129 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    381.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.157        13.162        .68264E-04   -1.5040    
   3  Prefactor     .10000E-03    42.531        .11442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10002E-03    32.316        .15339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    122.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    237.69        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    56.283        .13143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    290.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    65.699        .14226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     33.466        34.999        .69262E-04   -1.4550    
  11  norm          47.781        39.443        .58006E-04   -1.4324    
  12  Prefactor     .10000E-03    36.087        .10537E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    126.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.228        63.354        .93815E-04   -1.4854    
  15  Prefactor     .10042E-03    189.86        .22023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    743.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    35.592        .10465E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    34.000        .10198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10002E-03    83.956        .16010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     91.477        173.03        .20993E-03   -1.3792    
  21  Prefactor     .10001E-03    84.927        .16155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    451.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .64725        1.0198        .31258E-03   -1.0601    
  24  Prefactor     .78714        .66242        .18828E-03   -1.0020    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.38795e-09
Minuit parameter uncertainties:
  1  0.000172686
  2  13.1655
  3  3.34086e-05
  4  0.00169245
  5  0.000236864
  6  0.000548983
  7  0.000139639
  8  0.000374304
  9  4.06121e-05
  10  35.0202
  11  39.4642
  12  9.21471e-06
  13  0.00031018
  14  63.589
  15  0.0178824
  16  0.00515066
  17  0.000136593
  18  8.58741e-05
  19  0.0026928
  20  173.993
  21  0.00157546
  22  6.53935e-05
  23  1.05203
  24  0.669285
Done.

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

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  3.347e+01  3.502e+01  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:  7.871e-01  6.693e-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.473e-01  1.052e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.58
Ra Dec: 323.836 -50.102
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 2.92e-07 +/- 3.05e-07
Energy Flux (Fixed Index): 9.20e-05 +/- 9.63e-05

TS (Fixed Index): 1.58
Ra Dec: 323.836 -50.102
Photon Flux Upper Limit: 1.07e-06 ph cm-2 s-1
Energy Flux Upper Limit: 8.32e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/603305/likelihoodResults_403920001_404179201_4FGL_J2135.3-5006_daily_bin635.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) = 321.68575531
delta logL = 0.117704806577

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 321.685229951
delta logL = 0.118230165265

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    50.384       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0198       1.0000          .0000       10.000    
     3 'Normalizat'    .76095       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70271       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=   321.6852     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      231 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     50.740        66.933        .14125E-02    .57720E-04
   2  Index         2.0179        .89245        .64130E-01   -.46073E-04
   3  Normalizat    .76154        .79374        .65526E-01    .36562E-05
   4  Prefactor     .70175        .53533        .42437E-01    .81683E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 50.7397
  Index      = 2.01795
  Normalizat = 0.76154
  Prefactor  = 0.701746
 **********
 **   18 **HESSE 
 **********

 FCN=   321.6852     FROM HESSE     STATUS=OK            27 CALLS      258 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     50.740        52.387        .56498E-04   -1.4282    
   2  Index         2.0179        .71349        .27911E-03   -.63902    
   3  Normalizat    .76154        .95709        .28991E-03   -1.0151    
   4  Prefactor     .70175        .64348        .19680E-03   -1.0346    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.243e-10
Minuit parameter uncertainties:
  1  52.4345
  2  0.717303
  3  0.979497
  4  0.650483
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603305': 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) = 321.685206743
delta logL = 0.118253373049

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  5.074e+01  5.243e+01  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  2.018e+00  7.173e-01  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:  7.017e-01  6.505e-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:  7.615e-01  9.795e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.83
Ra Dec: 323.836 -50.102
Photon Index (Free Index): 2.02 +/- 0.72
Photon Flux (Free Index): 2.74e-07 +/- 2.76e-07
Energy Flux (Free Index): 1.81e-04 +/- 3.07e-04

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/603305/cmap_HighResolution_403920001_404179201_4FGL_J2135.3-5006_daily_bin635.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.32e-02', comment='SUCCESS', photon_flux='2.92e-07', energy_flux2='1.81e-04', photon_flux_error='3.05e-07', dlogl='1.18e-01', energy_flux='9.20e-05', photon_flux2='2.74e-07', job_status='DONE', time_completed='2021-09-26 19:57:46.572651', photon_index_error2='0.72', photon_index2='2.02', ts='1.58', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='1.07e-06', energy_flux_error2='3.07e-04', EG='0.65', time_epoch_completed='1632711466.57', return_code='0', job_id='603305', GAL2='0.70', EG2='0.76', return_code2='0', energy_flux_error='9.63e-05', photon_flux_error2='2.76e-07', ts2='1.83', photon_index='2.43' WHERE bin_id='635' AND source_name='4FGL J2135.3-5006' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 19:57:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 603305: <4FGL_J2135.3-5006_daily_bin635> in cluster <slac> Done

Job <4FGL_J2135.3-5006_daily_bin635> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 26 19:45:59 2021
Job was executed on host(s) <bullet0160>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 19:47:35 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:47:35 2021
Terminated at Sun Sep 26 19:57:47 2021
Results reported at Sun Sep 26 19:57:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2135.3-5006_daily_bin635 323.836 -50.1015 403920001 404179201 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 :                                   367.55 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             300.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   611 sec.
    Turnaround time :                            708 sec.

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

