aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 204 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 = 7480
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2135.3-5006_daily_bin1695
RA = 323.836, Dec = -50.1015
tmin = 678672001, tmax = 678931201
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='731130', job_status='RUN', time_executed='2022-07-08 00:38:48.537981', time_epoch_executed='1657265928.54' WHERE source_name='4FGL J2135.3-5006' and cadence='daily' and bin_id='1695'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/731130

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/731130/ft1_4FGL_J2135.3-5006_daily_bin1695.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/731130/ft2_4FGL_J2135.3-5006_daily_bin1695.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/731130/ft1_4FGL_J2135.3-5006_daily_bin1695.fits outfile=/scratch/kocevski/731130/ft1_filteredMKT_4FGL_J2135.3-5006_daily_bin1695.fits ra=323.836 dec=-50.1015 rad=12.0 tmin=678672001.0 tmax=678931201.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.64
user 3.40
sys 0.20

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

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

Number of photons that the gtmktime cut: 454

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/731130/ft1_filtered_4FGL_J2135.3-5006_daily_bin1695.fits" evtable="EVENTS" scfile=/scratch/kocevski/731130/ft2_4FGL_J2135.3-5006_daily_bin1695.fits sctable="SC_DATA" outfile=/scratch/kocevski/731130/ltcube_678672001_678931201_4FGL_J2135.3-5006_daily_bin1695.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/731130/ft2_4FGL_J2135.3-5006_daily_bin1695.fits
.....................!
real 12.39
user 12.03
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/731130/ft1_filtered_4FGL_J2135.3-5006_daily_bin1695.fits evtable="EVENTS" scfile=/scratch/kocevski/731130/ft2_4FGL_J2135.3-5006_daily_bin1695.fits sctable="SC_DATA" expcube=/scratch/kocevski/731130/ltcube_678672001_678931201_4FGL_J2135.3-5006_daily_bin1695.fits outfile=/scratch/kocevski/731130/expmap_678672001_678931201_4FGL_J2135.3-5006_daily_bin1695.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/731130/ltcube_678672001_678931201_4FGL_J2135.3-5006_daily_bin1695.fits
.....................!
real 191.81
user 185.63
sys 5.83

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/731130/ft1_filtered_4FGL_J2135.3-5006_daily_bin1695.fits scfile=/scratch/kocevski/731130/ft2_4FGL_J2135.3-5006_daily_bin1695.fits outfile=/scratch/kocevski/731130/cmap_678672001_678931201_4FGL_J2135.3-5006_daily_bin1695.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/731130/ft1_filtered_4FGL_J2135.3-5006_daily_bin1695.fits scfile=/scratch/kocevski/731130/ft2_4FGL_J2135.3-5006_daily_bin1695.fits outfile=/scratch/kocevski/731130/cmap_HighResolution_678672001_678931201_4FGL_J2135.3-5006_daily_bin1695.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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/731130/ft1_filtered_4FGL_J2135.3-5006_daily_bin1695.fits evtable="EVENTS" scfile=/scratch/kocevski/731130/ft2_4FGL_J2135.3-5006_daily_bin1695.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/731130/Model_4FGL_J2135.3-5006_daily_bin1695.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/731130/ft1_filtered_4FGL_J2135.3-5006_daily_bin1695.fits.....................!
real 42.11
user 40.83
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .30301E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.767       1.0000         .10000E-03   10000.    
     4 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.7906       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .85794E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.2183       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.3584       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .15024E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.5689       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.3780       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.2751       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .21559E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.1635       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10280E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1785       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .80294       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=   4976.862     FROM MIGRAD    STATUS=CONVERGED    557 CALLS     2760 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    58.541        .36582E-04** at limit **
   2  Prefactor     .10003E-03    1.6848       -.11709E-07** at limit **
   3  Prefactor     23.769        25.495       -.22327E-05    .41533E-04
   4  norm          .10000E-03    .85926        .38075E-07** at limit **
   5  Prefactor     .10000E-03    46.608       -.80766E-05** at limit **
   6  Prefactor     .10000E-03    25.115        .93574E-05** at limit **
   7  Prefactor     .10000E-03    3.0804       -.16155E-06** at limit **
   8  Prefactor     .10000E-03    39.337       -.44375E-04** at limit **
   9  Prefactor     7.7925        20.117       -.11204E-05    .27281E-04
  10  Prefactor     .10005E-03    3.1184       -.10965E-05** at limit **
  11  norm          1.2185        4.1220       -.85860E-06   -.47575E-03
  12  Prefactor     6.3583        6.4073        .79767E-06    .12829E-02
  13  Prefactor     .10000E-03    101.01       -.66826E-04** at limit **
  14  Prefactor     1.5545        15.044        .50095E-05   -.83747E-04
  15  Prefactor     7.3771        4.6422        .28627E-06   -.28014E-04
  16  Prefactor     .10000E-03    52.989        .19663E-04** at limit **
  17  norm          .10000E-03    3.1211       -.11279E-06** at limit **
  18  Prefactor     3.2724        4.3876       -.68346E-06   -.16924E-03
  19  Prefactor     .10000E-03    3.8804        .55005E-07** at limit **
  20  Prefactor     1.0717        108.52        .35632E-05   -.11293E-03
  21  Prefactor     .10000E-03    7.3902       -.44845E-06** at limit **
  22  Prefactor     .10000E-03    56.489        .31346E-04** at limit **
  23  Normalizat    1.1789        .22243        .32166E-06    .55901E-03
  24  Prefactor     .80270        .13576        .25426E-06    .52735E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100032
  Prefactor  = 23.7692
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 7.79255
  Prefactor  = 0.000100049
  norm       = 1.21854
  Prefactor  = 6.35826
  Prefactor  = 0.0001
  Prefactor  = 1.55445
  Prefactor  = 7.37711
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.2724
  Prefactor  = 0.0001
  Prefactor  = 1.07174
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.1789
  Prefactor  = 0.802701
 **********
 **   18 **HESSE 
 **********

 FCN=   4976.862     FROM HESSE     STATUS=OK           397 CALLS     3157 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    58.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10003E-03    37.552        .17150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     23.769        25.348        .82164E-04   -1.4733    
   4  norm          .10000E-03    1.5076        .12619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    46.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    25.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.0866        .12091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    39.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.7925        20.086        .14366E-03   -1.5150    
  10  Prefactor     .10005E-03    17.972        .23382E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.2185        4.0968        .25305E-03   -1.5487    
  12  Prefactor     6.3583        6.4320        .79589E-03   -1.5204    
  13  Prefactor     .10000E-03    101.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.5545        14.888        .33945E-03   -1.5459    
  15  Prefactor     7.3771        4.6387        .11479E-03   -1.5165    
  16  Prefactor     .10000E-03    52.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.1249        .12172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.2724        4.3965        .16382E-03   -1.5346    
  19  Prefactor     .10000E-03    8.4228        .26784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.0717        111.73        .42669E-03   -1.5501    
  21  Prefactor     .10000E-03    7.4301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    56.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1789        .26273        .25493E-03   -.87257    
  24  Prefactor     .80270        .16212        .19926E-03   -.99629    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.55883e-09
Minuit parameter uncertainties:
  1  4.07138e-05
  2  0.00219587
  3  25.3599
  4  2.68299e-06
  5  4.96562e-05
  6  1.21574e-06
  7  3.54165e-06
  8  0.000330792
  9  20.1031
  10  0.00187921
  11  4.09773
  12  6.43272
  13  0.000238846
  14  9.62412
  15  4.63892
  16  0.000116979
  17  2.68202e-06
  18  4.39689
  19  0.000116516
  20  21.9269
  21  1.91397e-05
  22  2.73651e-05
  23  0.263028
  24  0.162215
Done.

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

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  1.000e-04  1.879e-03  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.027e-01  1.622e-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.179e+00  2.630e-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: 1.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/731130/likelihoodResults_678672001_678931201_4FGL_J2135.3-5006_daily_bin1695.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) = 4976.86188145
delta logL = -0.000264609830992

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4976.86161741
delta logL = -5.69718395127e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .42856E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5574       1.0000          .0000       10.000    
     3 'Normalizat'    1.1793       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80250       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=   4976.803     FROM MIGRAD    STATUS=FAILED       169 CALLS      347 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .42644        50.839        .12481E-03    .24958E-04
   2  Index         3.6418        5.2110        .12222E-01    .19387E-03
   3  Normalizat    1.1537        .24937        .25736E-03    .18907E-04
   4  Prefactor     .81088        .16126        .19835E-03    .22354E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4976.803     FROM SIMPLEX   STATUS=UNCHANGED     84 CALLS      431 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .42644        50.839        .12099E-03   -1.5839    
   2  Index         3.6418        5.2110        .23614E-02   -.27509    
   3  Normalizat    1.1537        .24937        .26841E-03   -.88044    
   4  Prefactor     .81088        .16126        .80440E-04   -.99329    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4976.803     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      466 TOTAL
                     EDM=   .24E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .42644        4.6616        .49924E-05    .33247E-04
   2  Index         3.6418        3.2994        .24444E-02   -.84180E-06
   3  Normalizat    1.1537        .24983        .10294E-04    .14798E-04
   4  Prefactor     .81088        .16022        .79339E-05    .11463E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.42644
  Index      = 3.64184
  Normalizat = 1.15374
  Prefactor  = 0.810876
 **********
 **   18 **HESSE 
 **********

 FCN=   4976.803     FROM HESSE     STATUS=OK            23 CALLS      489 TOTAL
                     EDM=   .20E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .42644        3.7858        .99849E-06   -1.5839    
   2  Index         3.6418        3.0277        .97777E-04   -.27509    
   3  Normalizat    1.1537        .24948        .20589E-05   -.88044    
   4  Prefactor     .81088        .15995        .15868E-05   -.99329    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0025e-12
Minuit parameter uncertainties:
  1  2.5411
  2  3.27469
  3  0.24974
  4  0.160041
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/731130': 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) = 4976.80336303
delta logL = 0.0582538172303

Extracting fit parameters...

4FGL J2135.3-5006
   Spectrum: PowerLaw
291    Prefactor:  4.264e-01  2.541e+00  1.000e-04  1.000e+04 ( 1.000e-12)
292        Index:  3.642e+00  3.275e+00  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.109e-01  1.600e-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.154e+00  2.497e-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/731130/cmap_HighResolution_678672001_678931201_4FGL_J2135.3-5006_daily_bin1695.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.78e-03', job_status='DONE', photon_flux_upper_limit='1.13e-07', time_completed='2022-07-08 00:48:59.636568', job_id='731130', GAL2='0.81', fit_tolerance='1e-08', EG2='1.15', EG='1.18', time_epoch_completed='1657266539.64', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='5.83e-02', ts2='0.12', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1695' AND source_name='4FGL J2135.3-5006' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul  8 00:48:59 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0226>
Subject: Job 731130: <4FGL_J2135.3-5006_daily_bin1695> in cluster <slac> Done

Job <4FGL_J2135.3-5006_daily_bin1695> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Jul  8 00:35:14 2022
Job was executed on host(s) <bullet0226>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jul  8 00:35:14 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jul  8 00:35:14 2022
Terminated at Fri Jul  8 00:49:00 2022
Results reported at Fri Jul  8 00:49:00 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2135.3-5006_daily_bin1695 323.836 -50.1015 678672001 678931201 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 :                                   613.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             279.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            826 sec.

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

