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


Performing analysis on: 4FGL_J2135.3-5006_daily_bin138
RA = 323.836, Dec = -50.1015
tmin = 275097601, tmax = 275356801
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='601507', job_status='RUN', time_executed='2021-09-26 19:45:51.466619', time_epoch_executed='1632710751.47' WHERE source_name='4FGL J2135.3-5006' and cadence='daily' and bin_id='138'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601507

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601507/ft1_4FGL_J2135.3-5006_daily_bin138.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601507/ft2_4FGL_J2135.3-5006_daily_bin138.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601507/ft1_4FGL_J2135.3-5006_daily_bin138.fits outfile=/scratch/kocevski/601507/ft1_filteredMKT_4FGL_J2135.3-5006_daily_bin138.fits ra=323.836 dec=-50.1015 rad=12.0 tmin=275097601.0 tmax=275356801.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 5.02
user 4.74
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/601507/ft1_filtered_4FGL_J2135.3-5006_daily_bin138.fits" evtable="EVENTS" scfile=/scratch/kocevski/601507/ft2_4FGL_J2135.3-5006_daily_bin138.fits sctable="SC_DATA" outfile=/scratch/kocevski/601507/ltcube_275097601_275356801_4FGL_J2135.3-5006_daily_bin138.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/601507/ft2_4FGL_J2135.3-5006_daily_bin138.fits
.....................!
real 13.35
user 12.88
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601507/ft1_filtered_4FGL_J2135.3-5006_daily_bin138.fits evtable="EVENTS" scfile=/scratch/kocevski/601507/ft2_4FGL_J2135.3-5006_daily_bin138.fits sctable="SC_DATA" expcube=/scratch/kocevski/601507/ltcube_275097601_275356801_4FGL_J2135.3-5006_daily_bin138.fits outfile=/scratch/kocevski/601507/expmap_275097601_275356801_4FGL_J2135.3-5006_daily_bin138.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/601507/ltcube_275097601_275356801_4FGL_J2135.3-5006_daily_bin138.fits
.....................!
real 192.53
user 185.43
sys 5.42

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/601507/ft1_filtered_4FGL_J2135.3-5006_daily_bin138.fits scfile=/scratch/kocevski/601507/ft2_4FGL_J2135.3-5006_daily_bin138.fits outfile=/scratch/kocevski/601507/cmap_275097601_275356801_4FGL_J2135.3-5006_daily_bin138.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.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/601507/ft1_filtered_4FGL_J2135.3-5006_daily_bin138.fits scfile=/scratch/kocevski/601507/ft2_4FGL_J2135.3-5006_daily_bin138.fits outfile=/scratch/kocevski/601507/cmap_HighResolution_275097601_275356801_4FGL_J2135.3-5006_daily_bin138.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=323.836 yref=-50.1015 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/601507/ft1_filtered_4FGL_J2135.3-5006_daily_bin138.fits evtable="EVENTS" scfile=/scratch/kocevski/601507/ft2_4FGL_J2135.3-5006_daily_bin138.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/601507/Model_4FGL_J2135.3-5006_daily_bin138.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/601507/ft1_filtered_4FGL_J2135.3-5006_daily_bin138.fits.....................!
real 45.29
user 43.50
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.349       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    10.889       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10476E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.5573       1.0000         .10000E-03   10000.    
     9 'Prefactor '    65.291       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    15.255       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.854       1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.695       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .48382       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 '    2.6180       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .94637       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5734       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .83330       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=   5438.745     FROM MIGRAD    STATUS=CONVERGED    588 CALLS     2824 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.791        117.70       -.31810E-04   -.19757E-05
   2  Prefactor     .10000E-03    1.0382       -.42548E-07** at limit **
   3  Prefactor     .10000E-03    5.7642       -.68872E-07** at limit **
   4  norm          10.889        3.4314        .21398E-06   -.14339E-02
   5  Prefactor     .10000E-03    27.453       -.25846E-06** at limit **
   6  Prefactor     .10000E-03    86.119        .10226E-05** at limit **
   7  Prefactor     .10000E-03    6.4864        .31056E-06** at limit **
   8  Prefactor     3.5541        164.43       -.40689E-04   -.18117E-04
   9  Prefactor     65.266        41.969        .35311E-04    .47514E-04
  10  Prefactor     .10000E-03    1.3692       -.12126E-06** at limit **
  11  norm          15.254        8.7458        .16192E-05    .17800E-03
  12  Prefactor     11.854        13.371        .32252E-05    .24841E-04
  13  Prefactor     23.691        33.561       -.21947E-05    .81761E-05
  14  Prefactor     .10000E-03    2.6025        .58279E-08** at limit **
  15  Prefactor     .48505        3.7795       -.23130E-05   -.47365E-03
  16  Prefactor     .10000E-03    33.186        .98222E-05** at limit **
  17  norm          .10000E-03    3.2655        .25162E-07** at limit **
  18  Prefactor     2.6178        5.5518       -.14850E-07   -.54741E-03
  19  Prefactor     .10000E-03    7.7304        .11666E-06** at limit **
  20  Prefactor     .10000E-03    33.024       -.10016E-04** at limit **
  21  Prefactor     .87649        12.039       -.20492E-06   -.58609E-04
  22  Prefactor     .10000E-03    129.35       -.32771E-05** at limit **
  23  Normalizat    1.5732        .25957       -.32906E-05    .35870E-03
  24  Prefactor     .83354        .15493       -.89084E-06    .11575E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.7911
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.8891
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.55412
  Prefactor  = 65.2661
  Prefactor  = 0.0001
  norm       = 15.254
  Prefactor  = 11.8535
  Prefactor  = 23.6911
  Prefactor  = 0.0001
  Prefactor  = 0.485052
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.61782
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.87649
  Prefactor  = 0.0001
  Normalizat = 1.57321
  Prefactor  = 0.833544
 **********
 **   18 **HESSE 
 **********

 FCN=   5438.745     FROM HESSE     STATUS=OK           395 CALLS     3219 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.791        117.87        .67404E-04   -1.4528    
   2  Prefactor     .10000E-03    1.0526        .73364E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.7686        .17293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          10.889        3.4316        .36285E-03   -1.5048    
   5  Prefactor     .10000E-03    27.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    86.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.5352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.5541        162.14        .21429E-03   -1.5331    
   9  Prefactor     65.266        41.803        .49667E-04   -1.4090    
  10  Prefactor     .10000E-03    1.3725        .84273E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          15.254        8.6516        .10255E-03   -1.4927    
  12  Prefactor     11.854        13.360        .11635E-03   -1.5019    
  13  Prefactor     23.691        33.622        .82290E-04   -1.4734    
  14  Prefactor     .10000E-03    2.6042        .11618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .48505        7.9963        .26983E-02   -1.5569    
  16  Prefactor     .10000E-03    33.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.2664        .13015E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.6178        5.5596        .24275E-03   -1.5384    
  19  Prefactor     .10000E-03    7.8416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    33.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .87649        49.967        .48715E-02   -1.5521    
  22  Prefactor     .10000E-03    129.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.5732        .30197        .28280E-03   -.75741    
  24  Prefactor     .83354        .18044        .23768E-03   -.98503    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.88428e-08
Minuit parameter uncertainties:
  1  118.67
  2  3.94087e-06
  3  8.61935e-06
  4  3.43167
  5  0.000321888
  6  1.25113e-05
  7  6.94383e-05
  8  48.1502
  9  41.8214
  10  1.3357e-05
  11  8.65226
  12  13.3634
  13  33.6484
  14  3.10829e-08
  15  3.93905
  16  9.93473e-06
  17  3.62198e-06
  18  5.56066
  19  5.04412e-05
  20  0.000115264
  21  13.2465
  22  0.000121241
  23  0.302324
  24  0.180567
Done.

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

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  1.336e-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:  8.335e-01  1.806e-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.573e+00  3.023e-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: 6.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/601507/likelihoodResults_275097601_275356801_4FGL_J2135.3-5006_daily_bin138.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) = 5438.74830523
delta logL = -0.00326504758323

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5438.74503988
delta logL = 3.04499735648e-07

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 'Index     '    2.4160       1.0000          .0000       10.000    
     3 'Normalizat'    1.5732       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83355       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=   5438.745     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      248 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.039        .85042E-02** at limit **
   2  Index         1.9711        5.8094        .50000        .21696E-06
   3  Normalizat    1.5732        .17576E-01    .28280E-03   -.27285E-03
   4  Prefactor     .83355        .11253E-01    .23768E-03   -.31717E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.97107
  Normalizat = 1.5732
  Prefactor  = 0.833547
 **********
 **   18 **HESSE 
 **********

 FCN=   5438.745     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      277 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    103.24        .91173E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9711        8.8515        .50000       -.65075    
   3  Normalizat    1.5732        .55230E-01    .56560E-04   -.75742    
   4  Prefactor     .83355        .35360E-01    .47536E-04   -.98503    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.76114e-10
Minuit parameter uncertainties:
  1  5.3436e-05
  2  592.496
  3  0.0552325
  4  0.0353614
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601507': 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) = 5438.74503492
delta logL = 5.25824179931e-06

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  5.344e-05  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  1.971e+00  5.925e+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.335e-01  3.536e-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.573e+00  5.523e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/601507/cmap_HighResolution_275097601_275356801_4FGL_J2135.3-5006_daily_bin138.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.95e-03', job_status='DONE', photon_flux_upper_limit='6.40e-08', time_completed='2021-09-26 19:56:50.721271', job_id='601507', GAL2='0.83', fit_tolerance='1e-08', EG2='1.57', EG='1.57', time_epoch_completed='1632711410.72', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='5.26e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='138' AND source_name='4FGL J2135.3-5006' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 19:56:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 601507: <4FGL_J2135.3-5006_daily_bin138> in cluster <slac> Done

Job <4FGL_J2135.3-5006_daily_bin138> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep 26 19:40:49 2021
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 19:42: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:42:25 2021
Terminated at Sun Sep 26 19:56:51 2021
Results reported at Sun Sep 26 19:56:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2135.3-5006_daily_bin138 323.836 -50.1015 275097601 275356801 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 :                                   649.40 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             243.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   867 sec.
    Turnaround time :                            962 sec.

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

