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


Performing analysis on: 4FGL_J2135.3-5006_daily_bin438
RA = 323.836, Dec = -50.1015
tmin = 352857601, tmax = 353116801
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='602987', job_status='RUN', time_executed='2021-09-26 19:50:27.895246', time_epoch_executed='1632711027.9' WHERE source_name='4FGL J2135.3-5006' and cadence='daily' and bin_id='438'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/602987

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/602987/ft1_4FGL_J2135.3-5006_daily_bin438.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/602987/ft2_4FGL_J2135.3-5006_daily_bin438.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/602987/ft1_4FGL_J2135.3-5006_daily_bin438.fits outfile=/scratch/kocevski/602987/ft1_filteredMKT_4FGL_J2135.3-5006_daily_bin438.fits ra=323.836 dec=-50.1015 rad=12.0 tmin=352857601.0 tmax=353116801.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.43
user 3.21
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/602987/ft1_filtered_4FGL_J2135.3-5006_daily_bin438.fits" evtable="EVENTS" scfile=/scratch/kocevski/602987/ft2_4FGL_J2135.3-5006_daily_bin438.fits sctable="SC_DATA" outfile=/scratch/kocevski/602987/ltcube_352857601_353116801_4FGL_J2135.3-5006_daily_bin438.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/602987/ft2_4FGL_J2135.3-5006_daily_bin438.fits
.....................!
real 14.46
user 14.07
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/602987/ft1_filtered_4FGL_J2135.3-5006_daily_bin438.fits evtable="EVENTS" scfile=/scratch/kocevski/602987/ft2_4FGL_J2135.3-5006_daily_bin438.fits sctable="SC_DATA" expcube=/scratch/kocevski/602987/ltcube_352857601_353116801_4FGL_J2135.3-5006_daily_bin438.fits outfile=/scratch/kocevski/602987/expmap_352857601_353116801_4FGL_J2135.3-5006_daily_bin438.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/602987/ltcube_352857601_353116801_4FGL_J2135.3-5006_daily_bin438.fits
.....................!
real 193.16
user 187.71
sys 4.77

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/602987/ft1_filtered_4FGL_J2135.3-5006_daily_bin438.fits scfile=/scratch/kocevski/602987/ft2_4FGL_J2135.3-5006_daily_bin438.fits outfile=/scratch/kocevski/602987/cmap_352857601_353116801_4FGL_J2135.3-5006_daily_bin438.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.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/602987/ft1_filtered_4FGL_J2135.3-5006_daily_bin438.fits scfile=/scratch/kocevski/602987/ft2_4FGL_J2135.3-5006_daily_bin438.fits outfile=/scratch/kocevski/602987/cmap_HighResolution_352857601_353116801_4FGL_J2135.3-5006_daily_bin438.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    143.38       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    56.038       1.0000         .10000E-03   10000.    
     4 'norm      '    3.4269       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    90.996       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.632       1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.028       1.0000         .10000E-03   10000.    
    11 'norm      '    .10385E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10367E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.679       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .27889E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.7071       1.0000         .10000E-03   10000.    
    20 'Prefactor '    44.408       1.0000         .10000E-03   10000.    
    21 'Prefactor '    30.417       1.0000         .10000E-03   10000.    
    22 'Prefactor '    326.61       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .52817       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2935       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=   2085.974     FROM MIGRAD    STATUS=CONVERGED    517 CALLS     2688 TOTAL
                     EDM=   .12E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     143.52        159.66        .67248E-07    .13063E-04
   2  Prefactor     .10000E-03    1.3561        .12578E-06** at limit **
   3  Prefactor     56.112        51.255       -.23451E-06    .24076E-04
   4  norm          3.4273        4.0346        .10254E-06   -.17015E-04
   5  Prefactor     .10000E-03    55.353        .16911E-06** at limit **
   6  Prefactor     .10000E-03    70.838        .79165E-07** at limit **
   7  Prefactor     .10000E-03    21.567        .55476E-07** at limit **
   8  Prefactor     91.035        69.197       -.69744E-07   -.10228E-05
   9  Prefactor     12.640        100.24       -.10028E-05   -.11808E-05
  10  Prefactor     16.030        11.228       -.22724E-06    .61651E-05
  11  norm          .10000E-03    6.7702        .75226E-06** at limit **
  12  Prefactor     .10000E-03    6.1599       -.63580E-07** at limit **
  13  Prefactor     .10000E-03    135.86       -.25108E-05** at limit **
  14  Prefactor     .10000E-03    15.904       -.56532E-06** at limit **
  15  Prefactor     19.676        13.986       -.10004E-05    .17053E-04
  16  Prefactor     .10000E-03    1894.0       -.10758E-04** at limit **
  17  norm          .10000E-03    9.4215        .27260E-07** at limit **
  18  Prefactor     .10000E-03    6.6977       -.10342E-05** at limit **
  19  Prefactor     5.7058        17.175        .57992E-05   -.45692E-05
  20  Prefactor     44.490        82.585       -.38379E-05    .12991E-04
  21  Prefactor     30.410        34.054        .16066E-06   -.26332E-05
  22  Prefactor     326.70        331.66       -.83990E-07    .37600E-05
  23  Normalizat    .52779        .48788        .28400E-05   -.12013E-05
  24  Prefactor     1.2936        .29224       -.19541E-05    .24589E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 143.52
  Prefactor  = 0.0001
  Prefactor  = 56.112
  norm       = 3.42732
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 91.0351
  Prefactor  = 12.6399
  Prefactor  = 16.0298
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.6761
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.70579
  Prefactor  = 44.4898
  Prefactor  = 30.4102
  Prefactor  = 326.698
  Normalizat = 0.527791
  Prefactor  = 1.29358
 **********
 **   18 **HESSE 
 **********

 FCN=   2085.974     FROM HESSE     STATUS=OK           393 CALLS     3081 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     143.52        159.46        .16824E-03   -1.3306    
   2  Prefactor     .10000E-03    1.3575        .51948E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     56.112        51.054        .53586E-04   -1.4208    
   4  norm          3.4273        4.0129        .93673E-04   -1.5338    
   5  Prefactor     .10000E-03    55.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    70.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    21.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     91.035        68.845        .21063E-03   -1.3797    
   9  Prefactor     12.640        99.399        .11270E-03   -1.4997    
  10  Prefactor     16.030        11.209        .10004E-03   -1.4907    
  11  norm          .10000E-03    6.7919        .11597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.1617        .11072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    136.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.920        .17772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     19.676        13.906        .90286E-04   -1.4821    
  16  Prefactor     .10000E-03    1900.4        .19906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    9.4250        .13694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.7892        .11562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.7058        17.177        .84069E-03   -1.5230    
  20  Prefactor     44.490        82.440        .60162E-04   -1.4373    
  21  Prefactor     30.410        34.034        .72647E-04   -1.4604    
  22  Prefactor     326.70        331.57        .11252E-03   -1.2073    
  23  Normalizat    .52779        .49958        .43501E-03   -1.1114    
  24  Prefactor     1.2936        .30758        .19420E-03   -.83498    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.42386e-11
Minuit parameter uncertainties:
  1  159.938
  2  3.88698e-07
  3  51.0938
  4  4.01324
  5  8.4451e-05
  6  0.000196888
  7  3.04861e-05
  8  68.9051
  9  71.0542
  10  11.2109
  11  3.31542e-06
  12  4.30166e-07
  13  8.38539e-05
  14  2.90561e-05
  15  13.9082
  16  0.00453512
  17  5.68862e-06
  18  1.44232e-05
  19  17.192
  20  82.6525
  21  34.0552
  22  333.523
  23  0.503918
  24  0.308009
Done.

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

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  1.603e+01  1.121e+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:  1.294e+00  3.080e-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:  5.278e-01  5.039e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.81
Ra Dec: 323.836 -50.102
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 1.40e-07 +/- 9.77e-08
Energy Flux (Fixed Index): 4.41e-05 +/- 3.08e-05

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) = 2085.63332458
delta logL = 0.340512335732

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2085.61855376
delta logL = 0.355283150185

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.030       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8128       1.0000          .0000       10.000    
     3 'Normalizat'    .61499       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2617       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=   2085.618     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      198 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.843        13.396        .25009E-02    .59137E-04
   2  Index         1.8078        .56783        .16426        .32873E-06
   3  Normalizat    .61558        .41203        .91437E-01    .25641E-04
   4  Prefactor     1.2618        .27496        .33314E-01    .12042E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.8432
  Index      = 1.80785
  Normalizat = 0.615578
  Prefactor  = 1.26176
 **********
 **   18 **HESSE 
 **********

 FCN=   2085.618     FROM HESSE     STATUS=OK            31 CALLS      229 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.843        15.880        .10004E-03   -1.4912    
   2  Index         1.8078        .75376        .64187E-02   -.69246    
   3  Normalizat    .61558        .45082        .40510E-03   -1.0733    
   4  Prefactor     1.2618        .29969        .19647E-03   -.84451    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07388e-11
Minuit parameter uncertainties:
  1  15.8842
  2  0.758661
  3  0.453552
  4  0.300102
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/602987': 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) = 2085.61848642
delta logL = 0.355350493276

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  1.584e+01  1.588e+01  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  1.808e+00  7.587e-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:  1.262e+00  3.001e-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.156e-01  4.536e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.46
Ra Dec: 323.836 -50.102
Photon Index (Free Index): 1.81 +/- 0.76
Photon Flux (Free Index): 7.08e-08 +/- 9.98e-08
Energy Flux (Free Index): 8.28e-05 +/- 1.17e-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/602987/cmap_HighResolution_352857601_353116801_4FGL_J2135.3-5006_daily_bin438.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.40e-07', energy_flux2='8.28e-05', photon_flux_error='9.77e-08', dlogl='3.55e-01', energy_flux='4.41e-05', photon_flux2='7.08e-08', job_status='DONE', time_completed='2021-09-26 19:57:30.792915', photon_index_error2='0.76', photon_index2='1.81', ts='5.81', fit_tolerance='1e-08', GAL='1.29', photon_index_error='0.00', energy_flux_error2='1.17e-04', EG='0.53', time_epoch_completed='1632711450.79', return_code='0', job_id='602987', GAL2='1.26', EG2='0.62', return_code2='0', energy_flux_error='3.08e-05', photon_flux_error2='9.98e-08', ts2='6.46', photon_index='2.43' WHERE bin_id='438' AND source_name='4FGL J2135.3-5006' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 19:57:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 602987: <4FGL_J2135.3-5006_daily_bin438> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2135.3-5006_daily_bin438 323.836 -50.1015 352857601 353116801 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 :                                   421.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             243.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   666 sec.
    Turnaround time :                            715 sec.

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

