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


Performing analysis on: 4FGL_J2135.3-5006_daily_bin847
RA = 323.836, Dec = -50.1015
tmin = 458870401, tmax = 459129601
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='604635', job_status='RUN', time_executed='2021-09-26 19:56:23.560925', time_epoch_executed='1632711383.56' WHERE source_name='4FGL J2135.3-5006' and cadence='daily' and bin_id='847'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/604635

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/604635/ft1_4FGL_J2135.3-5006_daily_bin847.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/604635/ft2_4FGL_J2135.3-5006_daily_bin847.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/604635/ft1_4FGL_J2135.3-5006_daily_bin847.fits outfile=/scratch/kocevski/604635/ft1_filteredMKT_4FGL_J2135.3-5006_daily_bin847.fits ra=323.836 dec=-50.1015 rad=12.0 tmin=458870401.0 tmax=459129601.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.00
user 2.74
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/604635/ft2_4FGL_J2135.3-5006_daily_bin847.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/604635/ft1_filteredMKT_4FGL_J2135.3-5006_daily_bin847.fits evtable="EVENTS" outfile="/scratch/kocevski/604635/ft1_filtered_4FGL_J2135.3-5006_daily_bin847.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.45
user 0.30
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/604635/ft1_filtered_4FGL_J2135.3-5006_daily_bin847.fits" evtable="EVENTS" scfile=/scratch/kocevski/604635/ft2_4FGL_J2135.3-5006_daily_bin847.fits sctable="SC_DATA" outfile=/scratch/kocevski/604635/ltcube_458870401_459129601_4FGL_J2135.3-5006_daily_bin847.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/604635/ft2_4FGL_J2135.3-5006_daily_bin847.fits
.....................!
real 12.86
user 12.50
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/604635/ft1_filtered_4FGL_J2135.3-5006_daily_bin847.fits evtable="EVENTS" scfile=/scratch/kocevski/604635/ft2_4FGL_J2135.3-5006_daily_bin847.fits sctable="SC_DATA" expcube=/scratch/kocevski/604635/ltcube_458870401_459129601_4FGL_J2135.3-5006_daily_bin847.fits outfile=/scratch/kocevski/604635/expmap_458870401_459129601_4FGL_J2135.3-5006_daily_bin847.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/604635/ltcube_458870401_459129601_4FGL_J2135.3-5006_daily_bin847.fits
.....................!
real 156.66
user 151.84
sys 4.23

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/604635/ft1_filtered_4FGL_J2135.3-5006_daily_bin847.fits scfile=/scratch/kocevski/604635/ft2_4FGL_J2135.3-5006_daily_bin847.fits outfile=/scratch/kocevski/604635/cmap_458870401_459129601_4FGL_J2135.3-5006_daily_bin847.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.49
user 0.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/604635/ft1_filtered_4FGL_J2135.3-5006_daily_bin847.fits scfile=/scratch/kocevski/604635/ft2_4FGL_J2135.3-5006_daily_bin847.fits outfile=/scratch/kocevski/604635/cmap_HighResolution_458870401_459129601_4FGL_J2135.3-5006_daily_bin847.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.49
user 0.33
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/604635/ft1_filtered_4FGL_J2135.3-5006_daily_bin847.fits evtable="EVENTS" scfile=/scratch/kocevski/604635/ft2_4FGL_J2135.3-5006_daily_bin847.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/604635/Model_4FGL_J2135.3-5006_daily_bin847.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/604635/ft1_filtered_4FGL_J2135.3-5006_daily_bin847.fits.....................!
real 38.39
user 37.20
sys 1.03

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    76.408       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.0736       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    9.8721       1.0000         .10000E-03   10000.    
     5 'Prefactor '    30.005       1.0000         .10000E-03   10000.    
     6 'Prefactor '    61.401       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.249       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.2235       1.0000         .10000E-03   10000.    
    11 'norm      '    2.7212       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.5947       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    86.463       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.6061       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    97.754       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1202       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .97121       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=   5774.323     FROM MIGRAD    STATUS=CONVERGED    520 CALLS     3077 TOTAL
                     EDM=   .67E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     76.407        103.41       -.45245E-06    .31347E-05
   2  Prefactor     3.0737        2.5650        .30109E-07    .79110E-04
   3  Prefactor     .10000E-03    6.3982       -.10144E-06** at limit **
   4  norm          9.8722        2.9664        .18153E-07    .11227E-03
   5  Prefactor     30.007        33.708       -.28957E-07    .72882E-05
   6  Prefactor     61.462        110.20        .90668E-06    .25805E-04
   7  Prefactor     .10000E-03    4.3944       -.70395E-07** at limit **
   8  Prefactor     .10000E-03    8.2899       -.88710E-07** at limit **
   9  Prefactor     10.249        18.919        .99606E-07    .12037E-04
  10  Prefactor     3.2236        3.2304        .18240E-06    .70786E-04
  11  norm          2.7212        3.2668        .84054E-07    .44694E-04
  12  Prefactor     .10000E-03    3.9314       -.10054E-06** at limit **
  13  Prefactor     2.6359        228.33        .27596E-06    .17003E-05
  14  Prefactor     .10000E-03    6.3255        .19612E-05** at limit **
  15  Prefactor     .10000E-03    1.3639       -.55352E-07** at limit **
  16  Prefactor     86.460        85.388        .18992E-05    .23637E-04
  17  norm          .10000E-03    3.0480       -.33289E-07** at limit **
  18  Prefactor     5.6069        6.7262        .70909E-06    .10389E-03
  19  Prefactor     .10000E-03    3.0906       -.69487E-07** at limit **
  20  Prefactor     .10000E-03    15.244       -.14416E-06** at limit **
  21  Prefactor     .10000E-03    20.576       -.69744E-06** at limit **
  22  Prefactor     97.754        103.63        .22916E-06    .32149E-05
  23  Normalizat    1.1200        .25354       -.36484E-05    .13770E-03
  24  Prefactor     .97128        .16079        .27816E-05    .24189E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 76.4068
  Prefactor  = 3.07366
  Prefactor  = 0.0001
  norm       = 9.87223
  Prefactor  = 30.0066
  Prefactor  = 61.4622
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.249
  Prefactor  = 3.22356
  norm       = 2.72119
  Prefactor  = 0.0001
  Prefactor  = 2.63587
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 86.4602
  norm       = 0.0001
  Prefactor  = 5.60694
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 97.7545
  Normalizat = 1.12005
  Prefactor  = 0.971277
 **********
 **   18 **HESSE 
 **********

 FCN=   5774.323     FROM HESSE     STATUS=OK           393 CALLS     3470 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     76.407        103.47        .45937E-04   -1.3958    
   2  Prefactor     3.0737        2.5601        .10705E-03   -1.5357    
   3  Prefactor     .10000E-03    6.4050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          9.8722        2.9667        .68291E-04   -1.5079    
   5  Prefactor     30.007        33.709        .73143E-04   -1.4612    
   6  Prefactor     61.462        110.31        .25603E-03   -1.4138    
   7  Prefactor     .10000E-03    4.4246        .15556E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.2945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.249        18.916        .12516E-03   -1.5068    
  10  Prefactor     3.2236        3.2319        .13220E-03   -1.5349    
  11  norm          2.7212        3.2613        .14636E-03   -1.5378    
  12  Prefactor     .10000E-03    3.9385        .14716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.6359        225.67        .25330E-03   -1.5383    
  14  Prefactor     .10000E-03    6.6207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.3685        .86650E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     86.460        85.094        .21603E-03   -1.3846    
  17  norm          .10000E-03    3.0543        .12957E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.6069        6.7255        .16967E-03   -1.5234    
  19  Prefactor     .10000E-03    3.1136        .13045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    15.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    21.145        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     97.754        103.59        .40657E-04   -1.3727    
  23  Normalizat    1.1200        .26357        .29410E-03   -.89111    
  24  Prefactor     .97128        .16649        .20778E-03   -.93693    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56406e-10
Minuit parameter uncertainties:
  1  103.71
  2  2.56018
  3  3.09043e-06
  4  2.96671
  5  33.7304
  6  110.683
  7  6.80988e-06
  8  8.53508e-06
  9  18.9272
  10  3.23208
  11  3.26153
  12  6.26445e-07
  13  48.9695
  14  9.04479e-05
  15  7.24111e-07
  16  85.2141
  17  4.13502e-07
  18  6.72642
  19  4.17633e-06
  20  6.91801e-07
  21  3.84084e-05
  22  103.781
  23  0.263882
  24  0.166582
Done.

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

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  3.224e+00  3.232e+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:  9.713e-01  1.666e-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.120e+00  2.639e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.52
Ra Dec: 323.836 -50.102
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 2.81e-08 +/- 2.82e-08
Energy Flux (Fixed Index): 8.87e-06 +/- 8.89e-06

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

Saving results to:
/scratch/kocevski/604635/likelihoodResults_458870401_459129601_4FGL_J2135.3-5006_daily_bin847.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) = 5773.63774596
delta logL = 0.685207994869

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5773.63161683
delta logL = 0.691337120154

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9164       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5295       1.0000          .0000       10.000    
     3 'Normalizat'    1.1401       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96390       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=   5773.632     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      209 TOTAL
                     EDM=   .81E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9189        2.9532        .59475E-02   -.10003E-03
   2  Index         1.5292        .44868        .25646       -.70276E-04
   3  Normalizat    1.1402        .20767        .65956E-01   -.11427E-04
   4  Prefactor     .96387        .13834        .45814E-01   -.30465E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.91885
  Index      = 1.52919
  Normalizat = 1.14021
  Prefactor  = 0.963872
 **********
 **   18 **HESSE 
 **********

 FCN=   5773.632     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9189        3.4511        .12816E-03   -1.5366    
   2  Index         1.5292        .63926        .92649E-02   -.76725    
   3  Normalizat    1.1402        .24184        .29178E-03   -.88471    
   4  Prefactor     .96387        .16128        .20845E-03   -.93944    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92094e-11
Minuit parameter uncertainties:
  1  3.45135
  2  0.642667
  3  0.242079
  4  0.161364
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/604635': 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) = 5773.63161612
delta logL = 0.691337827226

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  2.919e+00  3.451e+00  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  1.529e+00  6.427e-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:  9.639e-01  1.614e-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.140e+00  2.421e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.91
Ra Dec: 323.836 -50.102
Photon Index (Free Index): 1.53 +/- 0.64
Photon Flux (Free Index): 1.12e-08 +/- 1.44e-08
Energy Flux (Free Index): 3.21e-05 +/- 5.47e-05

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/604635/cmap_HighResolution_458870401_459129601_4FGL_J2135.3-5006_daily_bin847.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.57e-03', comment='SUCCESS', photon_flux='2.81e-08', energy_flux2='3.21e-05', photon_flux_error='2.82e-08', dlogl='6.91e-01', energy_flux='8.87e-06', photon_flux2='1.12e-08', job_status='DONE', time_completed='2021-09-26 20:05:42.314007', photon_index_error2='0.64', photon_index2='1.53', ts='3.52', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.11e-07', energy_flux_error2='5.47e-05', EG='1.12', time_epoch_completed='1632711942.31', return_code='0', job_id='604635', GAL2='0.96', EG2='1.14', return_code2='0', energy_flux_error='8.89e-06', photon_flux_error2='1.44e-08', ts2='4.91', photon_index='2.43' WHERE bin_id='847' AND source_name='4FGL J2135.3-5006' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 20:05:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 604635: <4FGL_J2135.3-5006_daily_bin847> in cluster <slac> Done

Job <4FGL_J2135.3-5006_daily_bin847> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep 26 19:50:32 2021
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 19:53:16 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:53:16 2021
Terminated at Sun Sep 26 20:05:43 2021
Results reported at Sun Sep 26 20:05:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2135.3-5006_daily_bin847 323.836 -50.1015 458870401 459129601 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 :                                   557.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             273.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   746 sec.
    Turnaround time :                            911 sec.

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

