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


Performing analysis on: 4FGL_J2135.3-5006_daily_bin1145
RA = 323.836, Dec = -50.1015
tmin = 536112001, tmax = 536371201
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='606128', job_status='RUN', time_executed='2021-09-26 20:00:05.646338', time_epoch_executed='1632711605.65' WHERE source_name='4FGL J2135.3-5006' and cadence='daily' and bin_id='1145'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/606128

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/606128/ft1_4FGL_J2135.3-5006_daily_bin1145.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/606128/ft2_4FGL_J2135.3-5006_daily_bin1145.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/606128/ft1_4FGL_J2135.3-5006_daily_bin1145.fits outfile=/scratch/kocevski/606128/ft1_filteredMKT_4FGL_J2135.3-5006_daily_bin1145.fits ra=323.836 dec=-50.1015 rad=12.0 tmin=536112001.0 tmax=536371201.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.58
user 3.34
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/606128/ft1_filtered_4FGL_J2135.3-5006_daily_bin1145.fits" evtable="EVENTS" scfile=/scratch/kocevski/606128/ft2_4FGL_J2135.3-5006_daily_bin1145.fits sctable="SC_DATA" outfile=/scratch/kocevski/606128/ltcube_536112001_536371201_4FGL_J2135.3-5006_daily_bin1145.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/606128/ft2_4FGL_J2135.3-5006_daily_bin1145.fits
.....................!
real 14.29
user 13.94
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/606128/ft1_filtered_4FGL_J2135.3-5006_daily_bin1145.fits evtable="EVENTS" scfile=/scratch/kocevski/606128/ft2_4FGL_J2135.3-5006_daily_bin1145.fits sctable="SC_DATA" expcube=/scratch/kocevski/606128/ltcube_536112001_536371201_4FGL_J2135.3-5006_daily_bin1145.fits outfile=/scratch/kocevski/606128/expmap_536112001_536371201_4FGL_J2135.3-5006_daily_bin1145.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/606128/ltcube_536112001_536371201_4FGL_J2135.3-5006_daily_bin1145.fits
.....................!
real 191.59
user 186.65
sys 4.58

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/606128/ft1_filtered_4FGL_J2135.3-5006_daily_bin1145.fits scfile=/scratch/kocevski/606128/ft2_4FGL_J2135.3-5006_daily_bin1145.fits outfile=/scratch/kocevski/606128/cmap_536112001_536371201_4FGL_J2135.3-5006_daily_bin1145.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/606128/ft1_filtered_4FGL_J2135.3-5006_daily_bin1145.fits scfile=/scratch/kocevski/606128/ft2_4FGL_J2135.3-5006_daily_bin1145.fits outfile=/scratch/kocevski/606128/cmap_HighResolution_536112001_536371201_4FGL_J2135.3-5006_daily_bin1145.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/606128/ft1_filtered_4FGL_J2135.3-5006_daily_bin1145.fits evtable="EVENTS" scfile=/scratch/kocevski/606128/ft2_4FGL_J2135.3-5006_daily_bin1145.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/606128/Model_4FGL_J2135.3-5006_daily_bin1145.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/606128/ft1_filtered_4FGL_J2135.3-5006_daily_bin1145.fits.....................!
real 54.12
user 52.84
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.559       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.1151       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.1194       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.4827       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.684       1.0000         .10000E-03   10000.    
     8 'Prefactor '    50.493       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.879       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.3298       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.7426       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.0004       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.5178       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.767       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .97814       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    30.585       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3693       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .85910       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=   6837.891     FROM MIGRAD    STATUS=CONVERGED    551 CALLS     2717 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.516        48.634       -.56028E-05   -.27187E-03
   2  Prefactor     1.1150        2.3322        .61411E-06   -.10077E-03
   3  Prefactor     .10000E-03    8.4486        .29721E-07** at limit **
   4  norm          2.1189        1.8320        .21853E-06   -.65895E-04
   5  Prefactor     2.2630        145.58        .15663E-05   -.23255E-05
   6  Prefactor     .10000E-03    29.412       -.19324E-05** at limit **
   7  Prefactor     18.687        11.636        .43697E-06   -.63185E-04
   8  Prefactor     50.484        43.799       -.62409E-06   -.16818E-03
   9  Prefactor     13.892        28.912        .62284E-05    .38932E-03
  10  Prefactor     .10000E-03    2.5433        .14919E-06** at limit **
  11  norm          4.3305        6.0368        .45270E-07   -.27826E-03
  12  Prefactor     3.7453        11.073        .85486E-06   -.46640E-04
  13  Prefactor     .10000E-03    27.685        .11484E-05** at limit **
  14  Prefactor     .10000E-03    2.4362       -.48609E-07** at limit **
  15  Prefactor     5.0024        4.5635        .32675E-05   -.14365E-02
  16  Prefactor     .10000E-03    32.279        .74221E-06** at limit **
  17  norm          1.5176        5.0424       -.19790E-06   -.39456E-03
  18  Prefactor     13.768        5.7174       -.13570E-06   -.45711E-03
  19  Prefactor     .97903        3.8575        .15906E-05   -.13561E-03
  20  Prefactor     .10000E-03    10.763       -.11362E-06** at limit **
  21  Prefactor     .10000E-03    3.7328       -.83127E-07** at limit **
  22  Prefactor     30.563        56.802       -.35885E-05   -.13155E-03
  23  Normalizat    1.3687        .22243       -.35783E-05    .56768E-04
  24  Prefactor     .85949        .13569        .84284E-06   -.27555E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.5163
  Prefactor  = 1.11497
  Prefactor  = 0.0001
  norm       = 2.11892
  Prefactor  = 2.26297
  Prefactor  = 0.000100001
  Prefactor  = 18.6869
  Prefactor  = 50.4844
  Prefactor  = 13.8919
  Prefactor  = 0.0001
  norm       = 4.33046
  Prefactor  = 3.74532
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 5.00237
  Prefactor  = 0.0001
  norm       = 1.51757
  Prefactor  = 13.7683
  Prefactor  = 0.979033
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.5627
  Normalizat = 1.36872
  Prefactor  = 0.859486
 **********
 **   18 **HESSE 
 **********

 FCN=   6837.891     FROM HESSE     STATUS=OK           395 CALLS     3112 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.516        49.773        .74968E-04   -1.4639    
   2  Prefactor     1.1150        2.2912        .17341E-03   -1.5497    
   3  Prefactor     .10000E-03    8.4653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.1189        1.8212        .98877E-04   -1.5417    
   5  Prefactor     2.2630        146.23        .25945E-03   -1.5407    
   6  Prefactor     .10000E-03    29.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.687        11.650        .92660E-04   -1.4843    
   8  Prefactor     50.484        43.821        .56437E-04   -1.4286    
   9  Prefactor     13.892        29.881        .10752E-03   -1.4962    
  10  Prefactor     .10000E-03    2.6075        .25741E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.3305        6.0122        .19359E-03   -1.5292    
  12  Prefactor     3.7453        11.067        .20871E-03   -1.5321    
  13  Prefactor     .10000E-03    27.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.4395        .12604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.0024        4.7171        .81502E-03   -1.5261    
  16  Prefactor     .10000E-03    32.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.5176        5.0338        .33162E-03   -1.5462    
  18  Prefactor     13.768        5.7449        .10795E-03   -1.4966    
  19  Prefactor     .97903        3.8017        .31173E-03   -1.5510    
  20  Prefactor     .10000E-03    10.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.7397        .15602E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     30.563        57.182        .72449E-04   -1.4602    
  23  Normalizat    1.3687        .26359        .27676E-03   -.81538    
  24  Prefactor     .85949        .16161        .21954E-03   -.97571    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.63592e-09
Minuit parameter uncertainties:
  1  49.8459
  2  2.29136
  3  6.15477e-07
  4  1.82121
  5  36.4743
  6  0.00041127
  7  11.6513
  8  43.8491
  9  29.9134
  10  7.59696e-06
  11  6.01299
  12  11.0729
  13  0.000249776
  14  4.87304e-06
  15  4.7175
  16  0.000165999
  17  5.03516
  18  5.74516
  19  3.80264
  20  2.85499e-06
  21  1.86471e-06
  22  57.2847
  23  0.263852
  24  0.1617
Done.

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

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  7.597e-06  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  2.430e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
293        Scale:  7.285e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  8.595e-01  1.617e-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.369e+00  2.639e-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: 7.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.46e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/606128/likelihoodResults_536112001_536371201_4FGL_J2135.3-5006_daily_bin1145.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) = 6837.89272755
delta logL = -0.00182806775501

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6837.89089922
delta logL = 2.56517523667e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4090       1.0000          .0000       10.000    
     3 'Normalizat'    1.3687       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85952       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=   6837.891     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      258 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    68.942        .26189E-02** at limit **
   2  Index         2.0663        5.8624        .50000        .11737E-06
   3  Normalizat    1.3687        .25304E-01    .27677E-03    .99160E-04
   4  Prefactor     .85949        .16434E-01    .21954E-03    .14287E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.06627
  Normalizat = 1.36871
  Prefactor  = 0.859489
 **********
 **   18 **HESSE 
 **********

 FCN=   6837.891     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      287 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    295.40        .52378E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0663        7.8377        .50000       -.62703    
   3  Normalizat    1.3687        .58304E-01    .11071E-04   -.81538    
   4  Prefactor     .85949        .37867E-01    .87816E-05   -.97571    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.42943e-09
Minuit parameter uncertainties:
  1  0.000671382
  2  750.283
  3  0.0583067
  4  0.0378677
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/606128': 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) = 6837.89089637
delta logL = 3.10699124384e-06

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  6.714e-04  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  2.066e+00  7.503e+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:  8.595e-01  3.787e-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.369e+00  5.831e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.46e-03', job_status='DONE', photon_flux_upper_limit='7.05e-08', time_completed='2021-09-26 20:12:11.183776', job_id='606128', GAL2='0.86', fit_tolerance='1e-08', EG2='1.37', EG='1.37', time_epoch_completed='1632712331.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='3.11e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1145' AND source_name='4FGL J2135.3-5006' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 20:12:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0008>
Subject: Job 606128: <4FGL_J2135.3-5006_daily_bin1145> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2135.3-5006_daily_bin1145 323.836 -50.1015 536112001 536371201 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 :                                   720.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   857 sec.
    Turnaround time :                            995 sec.

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

