/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 9 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 = 7482
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2135.3-5006_daily_bin350
RA = 323.836, Dec = -50.1015
tmin = 330048001, tmax = 330307201
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='602854', job_status='RUN', time_executed='2021-09-26 19:46:10.287676', time_epoch_executed='1632710770.29' WHERE source_name='4FGL J2135.3-5006' and cadence='daily' and bin_id='350'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/602854

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/602854/ft1_4FGL_J2135.3-5006_daily_bin350.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/602854/ft2_4FGL_J2135.3-5006_daily_bin350.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/602854/ft1_4FGL_J2135.3-5006_daily_bin350.fits outfile=/scratch/kocevski/602854/ft1_filteredMKT_4FGL_J2135.3-5006_daily_bin350.fits ra=323.836 dec=-50.1015 rad=12.0 tmin=330048001.0 tmax=330307201.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.56
user 3.31
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/602854/ft2_4FGL_J2135.3-5006_daily_bin350.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/602854/ft1_filteredMKT_4FGL_J2135.3-5006_daily_bin350.fits evtable="EVENTS" outfile="/scratch/kocevski/602854/ft1_filtered_4FGL_J2135.3-5006_daily_bin350.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.55
user 0.34
sys 0.20

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/602854/ft1_filtered_4FGL_J2135.3-5006_daily_bin350.fits" evtable="EVENTS" scfile=/scratch/kocevski/602854/ft2_4FGL_J2135.3-5006_daily_bin350.fits sctable="SC_DATA" outfile=/scratch/kocevski/602854/ltcube_330048001_330307201_4FGL_J2135.3-5006_daily_bin350.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/602854/ft2_4FGL_J2135.3-5006_daily_bin350.fits
.....................!
real 17.42
user 17.01
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/602854/ft1_filtered_4FGL_J2135.3-5006_daily_bin350.fits evtable="EVENTS" scfile=/scratch/kocevski/602854/ft2_4FGL_J2135.3-5006_daily_bin350.fits sctable="SC_DATA" expcube=/scratch/kocevski/602854/ltcube_330048001_330307201_4FGL_J2135.3-5006_daily_bin350.fits outfile=/scratch/kocevski/602854/expmap_330048001_330307201_4FGL_J2135.3-5006_daily_bin350.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/602854/ltcube_330048001_330307201_4FGL_J2135.3-5006_daily_bin350.fits
.....................!
real 197.15
user 191.28
sys 5.30

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/602854/ft1_filtered_4FGL_J2135.3-5006_daily_bin350.fits scfile=/scratch/kocevski/602854/ft2_4FGL_J2135.3-5006_daily_bin350.fits outfile=/scratch/kocevski/602854/cmap_330048001_330307201_4FGL_J2135.3-5006_daily_bin350.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.58
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/602854/ft1_filtered_4FGL_J2135.3-5006_daily_bin350.fits scfile=/scratch/kocevski/602854/ft2_4FGL_J2135.3-5006_daily_bin350.fits outfile=/scratch/kocevski/602854/cmap_HighResolution_330048001_330307201_4FGL_J2135.3-5006_daily_bin350.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.57
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/602854/ft1_filtered_4FGL_J2135.3-5006_daily_bin350.fits evtable="EVENTS" scfile=/scratch/kocevski/602854/ft2_4FGL_J2135.3-5006_daily_bin350.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/602854/Model_4FGL_J2135.3-5006_daily_bin350.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/602854/ft1_filtered_4FGL_J2135.3-5006_daily_bin350.fits.....................!
real 52.21
user 50.76
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12634E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.688       1.0000         .10000E-03   10000.    
     4 'norm      '    7.8859       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.243       1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.437       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.2451       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    64.891       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.6242       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.190       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.4196       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    48.024       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .73786       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2300       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=   6403.814     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     2761 TOTAL
                     EDM=   .67E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    144.74        .65119E-06** at limit **
   2  Prefactor     .10000E-03    1.5949        .37774E-06** at limit **
   3  Prefactor     15.688        25.694        .87800E-06   -.15379E-04
   4  norm          7.8856        2.6497        .97556E-07    .10885E-04
   5  Prefactor     .10000E-03    24.498        .73866E-08** at limit **
   6  Prefactor     22.182        60.226        .27235E-05   -.23363E-04
   7  Prefactor     15.435        9.6267        .25776E-06   -.36387E-04
   8  Prefactor     .10000E-03    15.619        .23330E-06** at limit **
   9  Prefactor     5.2458        18.428        .49839E-06   -.59610E-05
  10  Prefactor     .10000E-03    3.4667        .13691E-06** at limit **
  11  norm          .10000E-03    2.7909        .22350E-06** at limit **
  12  Prefactor     .10000E-03    2.8219        .76386E-07** at limit **
  13  Prefactor     64.885        56.866        .64721E-07   -.30922E-04
  14  Prefactor     6.6237        11.337        .62696E-06   -.11934E-03
  15  Prefactor     12.190        5.3937        .17709E-06   -.14893E-03
  16  Prefactor     .10000E-03    42.354        .63970E-07** at limit **
  17  norm          .10000E-03    2.7929        .36688E-07** at limit **
  18  Prefactor     .10000E-03    2.2321        .16985E-06** at limit **
  19  Prefactor     1.4177        6.0489        .10969E-04   -.11340E-04
  20  Prefactor     .10000E-03    21.160        .37123E-06** at limit **
  21  Prefactor     .10000E-03    5.1217        .11664E-06** at limit **
  22  Prefactor     48.023        63.176       -.34630E-06   -.10793E-04
  23  Normalizat    .73811        .23238       -.56888E-05   -.34251E-04
  24  Prefactor     1.2298        .14642        .15804E-05   -.45081E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 15.6883
  norm       = 7.88562
  Prefactor  = 0.0001
  Prefactor  = 22.1822
  Prefactor  = 15.4353
  Prefactor  = 0.0001
  Prefactor  = 5.24576
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 64.8848
  Prefactor  = 6.62367
  Prefactor  = 12.19
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.41767
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.0233
  Normalizat = 0.738106
  Prefactor  = 1.22979
 **********
 **   18 **HESSE 
 **********

 FCN=   6403.814     FROM HESSE     STATUS=OK           395 CALLS     3156 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    145.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.8960        .18967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.688        25.395        .10112E-03   -1.4916    
   4  norm          7.8856        2.6477        .71799E-04   -1.5146    
   5  Prefactor     .10000E-03    24.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     22.182        60.257        .84930E-04   -1.4766    
   7  Prefactor     15.435        9.6225        .10194E-03   -1.4922    
   8  Prefactor     .10000E-03    15.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.2458        18.417        .17551E-03   -1.5250    
  10  Prefactor     .10000E-03    3.5421        .14540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.8506        .13056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.8272        .13129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     64.885        56.839        .49819E-04   -1.4095    
  14  Prefactor     6.6237        11.280        .77958E-03   -1.5193    
  15  Prefactor     12.190        5.3990        .57366E-03   -1.5010    
  16  Prefactor     .10000E-03    42.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.7964        .13061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.2520        .11674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.4177        6.0747        .18157E-02   -1.5470    
  20  Prefactor     .10000E-03    21.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.1445        .17687E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     48.023        63.174        .57863E-04   -1.4321    
  23  Normalizat    .73811        .25825        .35570E-03   -1.0241    
  24  Prefactor     1.2298        .16423        .19174E-03   -.85420    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.72066e-09
Minuit parameter uncertainties:
  1  0.000926375
  2  4.4749e-05
  3  25.4126
  4  2.6477
  5  2.94984e-05
  6  60.4232
  7  9.62348
  8  7.5883e-05
  9  18.4371
  10  2.1105e-05
  11  3.05774e-05
  12  1.03937e-05
  13  56.8869
  14  11.2838
  15  5.39926
  16  2.94482e-06
  17  4.80079e-06
  18  2.02432e-05
  19  5.87004
  20  0.000111854
  21  2.09511e-05
  22  63.262
  23  0.258679
  24  0.164303
Done.

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

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  2.110e-05  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.230e+00  1.643e-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.381e-01  2.587e-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: 8.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/602854/likelihoodResults_330048001_330307201_4FGL_J2135.3-5006_daily_bin350.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) = 6403.81581853
delta logL = -0.00134536872247

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6403.81447337
delta logL = -2.05725882552e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4287       1.0000          .0000       10.000    
     3 'Normalizat'    .73807       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2298       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=   6403.814     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      239 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    228.22        .14542E-02** at limit **
   2  Index         2.4189        8.2894        .50000        .23052E-05
   3  Normalizat    .73811        .45866E-01    .35570E-03    .49540E-05
   4  Prefactor     1.2298        .31341E-01    .19174E-03    .11859E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100017
  Index      = 2.41887
  Normalizat = 0.738107
  Prefactor  = 1.22978
 **********
 **   18 **HESSE 
 **********

 FCN=   6403.814     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      268 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    790.67        .29085E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4189        8.4472        .50000       -.54244    
   3  Normalizat    .73811        .15913        .14228E-04   -1.0241    
   4  Prefactor     1.2298        .10819        .76695E-05   -.85420    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.39275e-09
Minuit parameter uncertainties:
  1  0.00740339
  2  1899.02
  3  0.159226
  4  0.108206
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/602854': 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) = 6403.81447316
delta logL = 5.37511368748e-09

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  7.403e-03  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  2.419e+00  1.899e+03  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.230e+00  1.082e-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.381e-01  1.592e-01  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/602854/cmap_HighResolution_330048001_330307201_4FGL_J2135.3-5006_daily_bin350.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.50e-03', job_status='DONE', photon_flux_upper_limit='8.39e-08', time_completed='2021-09-26 19:58:04.655906', job_id='602854', GAL2='1.23', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1632711484.66', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='5.38e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='350' AND source_name='4FGL J2135.3-5006' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 19:58:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 602854: <4FGL_J2135.3-5006_daily_bin350> in cluster <slac> Done

Job <4FGL_J2135.3-5006_daily_bin350> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 26 19:45:25 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 19:45:53 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:45:53 2021
Terminated at Sun Sep 26 19:58:05 2021
Results reported at Sun Sep 26 19:58:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2135.3-5006_daily_bin350 323.836 -50.1015 330048001 330307201 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 :                                   709.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             323.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   731 sec.
    Turnaround time :                            760 sec.

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

