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


Performing analysis on: 4FGL_J2135.3-5006_daily_bin1623
RA = 323.836, Dec = -50.1015
tmin = 660009601, tmax = 660268801
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='473553', job_status='RUN', time_executed='2021-12-08 07:52:39.835780', time_epoch_executed='1638978759.84' WHERE source_name='4FGL J2135.3-5006' and cadence='daily' and bin_id='1623'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/473553

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/473553/ft1_4FGL_J2135.3-5006_daily_bin1623.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/473553/ft2_4FGL_J2135.3-5006_daily_bin1623.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/473553/ft1_4FGL_J2135.3-5006_daily_bin1623.fits outfile=/scratch/kocevski/473553/ft1_filteredMKT_4FGL_J2135.3-5006_daily_bin1623.fits ra=323.836 dec=-50.1015 rad=12.0 tmin=660009601.0 tmax=660268801.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 4.86
user 4.61
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/473553/ft2_4FGL_J2135.3-5006_daily_bin1623.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/473553/ft1_filteredMKT_4FGL_J2135.3-5006_daily_bin1623.fits evtable="EVENTS" outfile="/scratch/kocevski/473553/ft1_filtered_4FGL_J2135.3-5006_daily_bin1623.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.51
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/473553/ft1_filtered_4FGL_J2135.3-5006_daily_bin1623.fits" evtable="EVENTS" scfile=/scratch/kocevski/473553/ft2_4FGL_J2135.3-5006_daily_bin1623.fits sctable="SC_DATA" outfile=/scratch/kocevski/473553/ltcube_660009601_660268801_4FGL_J2135.3-5006_daily_bin1623.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/473553/ft2_4FGL_J2135.3-5006_daily_bin1623.fits
.....................!
real 13.58
user 13.17
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/473553/ft1_filtered_4FGL_J2135.3-5006_daily_bin1623.fits evtable="EVENTS" scfile=/scratch/kocevski/473553/ft2_4FGL_J2135.3-5006_daily_bin1623.fits sctable="SC_DATA" expcube=/scratch/kocevski/473553/ltcube_660009601_660268801_4FGL_J2135.3-5006_daily_bin1623.fits outfile=/scratch/kocevski/473553/expmap_660009601_660268801_4FGL_J2135.3-5006_daily_bin1623.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/473553/ltcube_660009601_660268801_4FGL_J2135.3-5006_daily_bin1623.fits
.....................!
real 191.41
user 185.30
sys 5.39

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/473553/ft1_filtered_4FGL_J2135.3-5006_daily_bin1623.fits scfile=/scratch/kocevski/473553/ft2_4FGL_J2135.3-5006_daily_bin1623.fits outfile=/scratch/kocevski/473553/cmap_660009601_660268801_4FGL_J2135.3-5006_daily_bin1623.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/473553/ft1_filtered_4FGL_J2135.3-5006_daily_bin1623.fits scfile=/scratch/kocevski/473553/ft2_4FGL_J2135.3-5006_daily_bin1623.fits outfile=/scratch/kocevski/473553/cmap_HighResolution_660009601_660268801_4FGL_J2135.3-5006_daily_bin1623.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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/473553/ft1_filtered_4FGL_J2135.3-5006_daily_bin1623.fits evtable="EVENTS" scfile=/scratch/kocevski/473553/ft2_4FGL_J2135.3-5006_daily_bin1623.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/473553/Model_4FGL_J2135.3-5006_daily_bin1623.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/473553/ft1_filtered_4FGL_J2135.3-5006_daily_bin1623.fits.....................!
real 45.40
user 43.93
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .53258E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    139.52       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.5369       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.2757       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.822       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    10.716       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.5976       1.0000         .10000E-03   10000.    
    13 'Prefactor '    91.672       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.0632       1.0000         .10000E-03   10000.    
    16 'Prefactor '    36.171       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.1598       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    40.046       1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.206       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .60418       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3489       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=   5541.096     FROM MIGRAD    STATUS=CONVERGED    566 CALLS     3173 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    55.069       -.62922E-06** at limit **
   2  Prefactor     .37158E-01    1.5438        .30458E-06   -.35395E-03
   3  Prefactor     .10000E-03    6.6320       -.10399E-06** at limit **
   4  norm          .10000E-03    1.2719       -.60852E-06** at limit **
   5  Prefactor     .10000E-03    70.114        .15620E-05** at limit **
   6  Prefactor     139.53        120.00       -.38266E-06    .33550E-05
   7  Prefactor     3.5423        12.753        .38968E-05    .17216E-03
   8  Prefactor     3.3074        167.44       -.19876E-04   -.21087E-04
   9  Prefactor     12.837        26.331       -.11365E-05    .20700E-04
  10  Prefactor     .10000E-03    3.2072       -.35938E-06** at limit **
  11  norm          10.717        7.3836        .61522E-06    .27414E-03
  12  Prefactor     2.6015        13.505        .65192E-05   -.36545E-04
  13  Prefactor     91.683        54.284       -.10821E-05    .55202E-04
  14  Prefactor     .10000E-03    3.5396        .52092E-06** at limit **
  15  Prefactor     2.0646        4.0231        .31581E-05   -.22189E-03
  16  Prefactor     36.224        83.101       -.85912E-05    .43177E-04
  17  norm          .10000E-03    3.4558        .62216E-07** at limit **
  18  Prefactor     9.1610        5.8186        .16743E-06   -.23301E-04
  19  Prefactor     .10000E-03    3.2440        .26909E-06** at limit **
  20  Prefactor     40.053        44.695       -.12547E-05    .27825E-04
  21  Prefactor     16.209        18.302        .65932E-06    .15036E-04
  22  Prefactor     .10000E-03    105.46       -.31407E-05** at limit **
  23  Normalizat    .60414        .26719       -.14624E-05    .18453E-03
  24  Prefactor     1.3487        .16409        .89427E-06    .49296E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0371582
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 139.527
  Prefactor  = 3.54234
  Prefactor  = 3.30744
  Prefactor  = 12.8366
  Prefactor  = 0.0001
  norm       = 10.7166
  Prefactor  = 2.60154
  Prefactor  = 91.683
  Prefactor  = 0.0001
  Prefactor  = 2.06457
  Prefactor  = 36.2241
  norm       = 0.0001
  Prefactor  = 9.16098
  Prefactor  = 0.0001
  Prefactor  = 40.0527
  Prefactor  = 16.2094
  Prefactor  = 0.0001
  Normalizat = 0.604145
  Prefactor  = 1.34866
 **********
 **   18 **HESSE 
 **********

 FCN=   5541.096     FROM HESSE     STATUS=OK           399 CALLS     3572 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    55.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .37158E-01    71.110        .17340E-02   -1.5669    
   3  Prefactor     .10000E-03    6.6369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.0572        .16143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    70.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     139.53        120.02        .34103E-04   -1.3340    
   7  Prefactor     3.5423        12.679        .21494E-03   -1.5332    
   8  Prefactor     3.3074        165.15        .22374E-03   -1.5344    
   9  Prefactor     12.837        26.313        .11187E-03   -1.4991    
  10  Prefactor     .10000E-03    3.2513        .13016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          10.717        7.3271        .12239E-03   -1.5053    
  12  Prefactor     2.6015        13.525        .12657E-02   -1.5385    
  13  Prefactor     91.683        54.315        .41971E-04   -1.3790    
  14  Prefactor     .10000E-03    3.5513        .13685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.0646        4.0267        .99136E-03   -1.5421    
  16  Prefactor     36.224        82.396        .66636E-04   -1.4504    
  17  norm          .10000E-03    3.4682        .13514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.1610        5.8197        .13242E-03   -1.5103    
  19  Prefactor     .10000E-03    3.2578        .13088E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     40.053        44.702        .63341E-04   -1.4441    
  21  Prefactor     16.209        18.266        .49746E-03   -1.4903    
  22  Prefactor     .10000E-03    105.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .60414        .28620        .39523E-03   -1.0781    
  24  Prefactor     1.3487        .18201        .18629E-03   -.81871    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.14911e-09
Minuit parameter uncertainties:
  1  1.10594e-06
  2  3.25052
  3  1.12924e-05
  4  1.05826e-05
  5  0.000264336
  6  120.227
  7  12.6885
  8  46.8791
  9  26.3368
  10  9.12658e-06
  11  7.32775
  12  11.8674
  13  54.3445
  14  3.79657e-05
  15  4.02719
  16  82.6562
  17  7.10105e-06
  18  5.82004
  19  2.17385e-07
  20  44.7391
  21  18.2723
  22  0.000345788
  23  0.286901
  24  0.182094
Done.

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

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  9.127e-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:  1.349e+00  1.821e-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.041e-01  2.869e-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: 9.31e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/473553/likelihoodResults_660009601_660268801_4FGL_J2135.3-5006_daily_bin1623.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) = 5541.09732859
delta logL = -0.0014630990554

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5541.09586556
delta logL = -6.52789822198e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4314       1.0000          .0000       10.000    
     3 'Normalizat'    .60415       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3487       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=   5541.096     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      202 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.5055        .90712E-02** at limit **
   2  Index         2.4325        6.2091        .50000       -.30207E-05
   3  Normalizat    .60414        .99159E-02    .89215E-01   -.14580E-04
   4  Prefactor     1.3487        .67567E-02    .31811E-01   -.85243E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.43255
  Normalizat = 0.604145
  Prefactor  = 1.34866
 **********
 **   18 **HESSE 
 **********

 FCN=   5541.096     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      235 TOTAL
                     EDM=   .27E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    134.34        .13016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4325        8.4111        .50000       -.53925    
   3  Normalizat    .60414        .38611E-01    .39524E-03   -1.0781    
   4  Prefactor     1.3487        .26388E-01    .18629E-03   -.81871    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.65662e-07
Minuit parameter uncertainties:
  1  5.00037e-05
  2  721.182
  3  0.0386131
  4  0.0263886
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/473553': 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) = 5541.09586549
delta logL = 1.81807990884e-09

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  5.000e-05  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  2.433e+00  7.212e+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:  1.349e+00  2.639e-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:  6.041e-01  3.861e-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/473553/cmap_HighResolution_660009601_660268801_4FGL_J2135.3-5006_daily_bin1623.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.21e-03', job_status='DONE', photon_flux_upper_limit='9.31e-08', time_completed='2021-12-08 08:03:42.641244', job_id='473553', GAL2='1.35', fit_tolerance='1e-08', EG2='0.60', EG='0.60', time_epoch_completed='1638979422.64', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.35', dlogl='1.82e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1623' AND source_name='4FGL J2135.3-5006' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 08:03:42 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 473553: <4FGL_J2135.3-5006_daily_bin1623> in cluster <slac> Done

Job <4FGL_J2135.3-5006_daily_bin1623> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Wed Dec  8 07:50:17 2021
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 07:50:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 07:50:27 2021
Terminated at Wed Dec  8 08:03:43 2021
Results reported at Wed Dec  8 08:03:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2135.3-5006_daily_bin1623 323.836 -50.1015 660009601 660268801 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 :                                   661.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             256.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   795 sec.
    Turnaround time :                            806 sec.

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

