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


Performing analysis on: 4FGL_J2135.3-5006_daily_bin1323
RA = 323.836, Dec = -50.1015
tmin = 582249601, tmax = 582508801
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='607552', job_status='RUN', time_executed='2021-09-26 20:03:11.215342', time_epoch_executed='1632711791.22' WHERE source_name='4FGL J2135.3-5006' and cadence='daily' and bin_id='1323'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/607552

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/607552/ft1_4FGL_J2135.3-5006_daily_bin1323.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/607552/ft2_4FGL_J2135.3-5006_daily_bin1323.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/607552/ft1_4FGL_J2135.3-5006_daily_bin1323.fits outfile=/scratch/kocevski/607552/ft1_filteredMKT_4FGL_J2135.3-5006_daily_bin1323.fits ra=323.836 dec=-50.1015 rad=12.0 tmin=582249601.0 tmax=582508801.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.40
user 5.12
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/607552/ft1_filtered_4FGL_J2135.3-5006_daily_bin1323.fits" evtable="EVENTS" scfile=/scratch/kocevski/607552/ft2_4FGL_J2135.3-5006_daily_bin1323.fits sctable="SC_DATA" outfile=/scratch/kocevski/607552/ltcube_582249601_582508801_4FGL_J2135.3-5006_daily_bin1323.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/607552/ft2_4FGL_J2135.3-5006_daily_bin1323.fits
.....................!
real 14.22
user 13.84
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/607552/ft1_filtered_4FGL_J2135.3-5006_daily_bin1323.fits evtable="EVENTS" scfile=/scratch/kocevski/607552/ft2_4FGL_J2135.3-5006_daily_bin1323.fits sctable="SC_DATA" expcube=/scratch/kocevski/607552/ltcube_582249601_582508801_4FGL_J2135.3-5006_daily_bin1323.fits outfile=/scratch/kocevski/607552/expmap_582249601_582508801_4FGL_J2135.3-5006_daily_bin1323.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/607552/ltcube_582249601_582508801_4FGL_J2135.3-5006_daily_bin1323.fits
.....................!
real 191.23
user 185.83
sys 4.91

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/607552/ft1_filtered_4FGL_J2135.3-5006_daily_bin1323.fits scfile=/scratch/kocevski/607552/ft2_4FGL_J2135.3-5006_daily_bin1323.fits outfile=/scratch/kocevski/607552/cmap_582249601_582508801_4FGL_J2135.3-5006_daily_bin1323.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/607552/ft1_filtered_4FGL_J2135.3-5006_daily_bin1323.fits scfile=/scratch/kocevski/607552/ft2_4FGL_J2135.3-5006_daily_bin1323.fits outfile=/scratch/kocevski/607552/cmap_HighResolution_582249601_582508801_4FGL_J2135.3-5006_daily_bin1323.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.41
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/607552/ft1_filtered_4FGL_J2135.3-5006_daily_bin1323.fits evtable="EVENTS" scfile=/scratch/kocevski/607552/ft2_4FGL_J2135.3-5006_daily_bin1323.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/607552/Model_4FGL_J2135.3-5006_daily_bin1323.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/607552/ft1_filtered_4FGL_J2135.3-5006_daily_bin1323.fits.....................!
real 51.63
user 50.33
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    86.874       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.3159       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.0371       1.0000         .10000E-03   10000.    
     4 'norm      '    25.424       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    76.404       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.133       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    15.295       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.790       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.7413       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10356E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.0180       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.0229       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.6692       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    89.598       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0618       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .97957       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=   6417.668     FROM MIGRAD    STATUS=CONVERGED    537 CALLS     2750 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     86.872        78.772        .21107E-06   -.30146E-05
   2  Prefactor     5.3157        3.3602        .86769E-07   -.90776E-04
   3  Prefactor     8.0365        24.265        .24255E-06   -.56330E-05
   4  norm          25.425        4.2026        .18502E-07   -.78922E-04
   5  Prefactor     .10000E-03    22.714        .56277E-07** at limit **
   6  Prefactor     76.402        120.93        .13983E-06    .26034E-05
   7  Prefactor     .10000E-03    7.4368       -.67927E-08** at limit **
   8  Prefactor     15.134        16.221       -.12053E-07   -.62175E-06
   9  Prefactor     .10000E-03    10.238        .23497E-06** at limit **
  10  Prefactor     .10000E-03    2.7426       -.44288E-07** at limit **
  11  norm          15.295        6.4831        .82063E-08    .58840E-05
  12  Prefactor     .10000E-03    4.6005        .95175E-07** at limit **
  13  Prefactor     11.709        46.535       -.17968E-05   -.10702E-03
  14  Prefactor     9.7424        11.395       -.64257E-06    .58133E-05
  15  Prefactor     .10000E-03    1.5533        .18318E-06** at limit **
  16  Prefactor     .10000E-03    91.423        .55675E-06** at limit **
  17  norm          1.0171        4.5888        .21171E-05   -.22375E-04
  18  Prefactor     6.0232        4.3133       -.21131E-06   -.54009E-04
  19  Prefactor     6.6689        7.1784        .31551E-05   -.17269E-03
  20  Prefactor     .10000E-03    18.276       -.89032E-07** at limit **
  21  Prefactor     .10000E-03    9.7546       -.10014E-06** at limit **
  22  Prefactor     89.594        83.718       -.59018E-06   -.40324E-05
  23  Normalizat    1.0618        .23633        .19025E-05   -.95947E-04
  24  Prefactor     .97964        .14750       -.19152E-05    .10741E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 86.872
  Prefactor  = 5.31568
  Prefactor  = 8.03646
  norm       = 25.4245
  Prefactor  = 0.0001
  Prefactor  = 76.4021
  Prefactor  = 0.0001
  Prefactor  = 15.1341
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.2953
  Prefactor  = 0.0001
  Prefactor  = 11.7088
  Prefactor  = 9.74244
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.01711
  Prefactor  = 6.02324
  Prefactor  = 6.66887
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 89.5943
  Normalizat = 1.06178
  Prefactor  = 0.979637
 **********
 **   18 **HESSE 
 **********

 FCN=   6417.668     FROM HESSE     STATUS=OK           395 CALLS     3145 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     86.872        78.780        .43104E-04   -1.3841    
   2  Prefactor     5.3157        3.3546        .11021E-03   -1.5247    
   3  Prefactor     8.0365        24.241        .14143E-03   -1.5141    
   4  norm          25.425        4.2042        .62902E-04   -1.4699    
   5  Prefactor     .10000E-03    22.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     76.402        121.17        .45938E-04   -1.3958    
   7  Prefactor     .10000E-03    7.4972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.134        16.222        .10296E-03   -1.4930    
   9  Prefactor     .10000E-03    10.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.8076        .12948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          15.295        6.4852        .10241E-03   -1.4926    
  12  Prefactor     .10000E-03    4.6205        .16781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.709        46.573        .11667E-03   -1.5023    
  14  Prefactor     9.7424        11.399        .12839E-03   -1.5084    
  15  Prefactor     .10000E-03    1.5603        .97438E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    91.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.0171        4.4535        .33625E-03   -1.5506    
  18  Prefactor     6.0232        4.3160        .13621E-03   -1.5217    
  19  Prefactor     6.6689        7.3194        .77691E-03   -1.5191    
  20  Prefactor     .10000E-03    18.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.9018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     89.594        83.718        .42449E-04   -1.3812    
  23  Normalizat    1.0618        .27640        .32090E-03   -.90989    
  24  Prefactor     .97964        .17076        .21939E-03   -.93411    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.77605e-10
Minuit parameter uncertainties:
  1  78.8754
  2  3.35475
  3  24.2706
  4  4.2043
  5  6.88373e-06
  6  121.569
  7  1.02105e-05
  8  16.2268
  9  2.51513e-05
  10  3.52877e-06
  11  6.48546
  12  1.34117e-07
  13  46.7177
  14  11.4014
  15  2.28792e-06
  16  0.000174396
  17  4.25695
  18  4.31625
  19  7.32041
  20  5.89898e-05
  21  4.37674e-05
  22  83.8289
  23  0.276774
  24  0.170853
Done.

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

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  3.529e-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:  9.796e-01  1.709e-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.062e+00  2.768e-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.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/607552/likelihoodResults_582249601_582508801_4FGL_J2135.3-5006_daily_bin1323.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) = 6417.66942619
delta logL = -0.00169738787918

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6417.66772902
delta logL = -2.10463440453e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4349       1.0000          .0000       10.000    
     3 'Normalizat'    1.0617       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97969       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6417.668     FROM MIGRAD    STATUS=FAILED        89 CALLS      242 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10019E-03    329.35        .25910E-03** at limit **
   2  Index         2.4638        6.4144        .50000       -.12133E-04
   3  Normalizat    1.0618        .72274E-01    .32089E-03    .42124E-04
   4  Prefactor     .97963        .47944E-01    .21939E-03    .61407E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6417.668     FROM SIMPLEX   STATUS=UNCHANGED    148 CALLS      390 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10019E-03    329.35        .27135E-03** at limit **
   2  Index         2.4638        6.4144        .11640E-04   -.12133E-04
   3  Normalizat    1.0618        .72274E-01    .57660E-06    .42124E-04
   4  Prefactor     .97963        .47944E-01    .28981E-06    .61407E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6417.668     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      430 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.150        .51820E-04** at limit **
   2  Index         2.6003        5.0799        .50000        .72919E-07
   3  Normalizat    1.0618        .25086        .12836E-04   -.25260E-03
   4  Prefactor     .97963        .16655        .87755E-05   -.37233E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.60027
  Normalizat = 1.06178
  Prefactor  = 0.979634
 **********
 **   18 **HESSE 
 **********

 FCN=   6417.668     FROM HESSE     STATUS=OK            29 CALLS      459 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.9543        .10364E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6003        6.0112        .50000       -.50059    
   3  Normalizat    1.0618        .25048        .25671E-05   -.90989    
   4  Prefactor     .97963        .16632        .17551E-05   -.93411    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18143e-10
Minuit parameter uncertainties:
  1  5.82534e-06
  2  85.248
  3  0.250764
  4  0.166406
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/607552': 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) = 6417.66772851
delta logL = 3.01610270981e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  9.796e-01  1.664e-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.062e+00  2.508e-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/607552/cmap_HighResolution_582249601_582508801_4FGL_J2135.3-5006_daily_bin1323.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.78e-03', job_status='DONE', photon_flux_upper_limit='7.47e-08', time_completed='2021-09-26 20:15:20.717743', job_id='607552', GAL2='0.98', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1632712520.72', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='3.02e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1323' AND source_name='4FGL J2135.3-5006' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 20:15:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 607552: <4FGL_J2135.3-5006_daily_bin1323> in cluster <slac> Done

Job <4FGL_J2135.3-5006_daily_bin1323> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep 26 20:00:45 2021
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 20:02:03 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 20:02:03 2021
Terminated at Sun Sep 26 20:15:21 2021
Results reported at Sun Sep 26 20:15:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2135.3-5006_daily_bin1323 323.836 -50.1015 582249601 582508801 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 :                                   719.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             298.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   797 sec.
    Turnaround time :                            876 sec.

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

