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 136 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_J2235.3-4836_daily_bin1695
RA = 338.841, Dec = -48.6015
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='731233', job_status='RUN', time_executed='2022-07-08 00:37:46.532395', time_epoch_executed='1657265866.53' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1695'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/731233

Creating custom pfile directory:
/scratch/kocevski/731233/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/731233/ft1_4FGL_J2235.3-4836_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/731233/ft2_4FGL_J2235.3-4836_daily_bin1695.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/731233/ft1_4FGL_J2235.3-4836_daily_bin1695.fits outfile=/scratch/kocevski/731233/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1695.fits ra=338.841 dec=-48.6015 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.60
user 3.37
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/731233/ft2_4FGL_J2235.3-4836_daily_bin1695.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/731233/ft2_4FGL_J2235.3-4836_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/731233/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1695.fits evtable="EVENTS" outfile="/scratch/kocevski/731233/ft1_filtered_4FGL_J2235.3-4836_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.33
sys 0.15

Number of photons that the gtmktime cut: 423

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/731233/ft1_filtered_4FGL_J2235.3-4836_daily_bin1695.fits" evtable="EVENTS" scfile=/scratch/kocevski/731233/ft2_4FGL_J2235.3-4836_daily_bin1695.fits sctable="SC_DATA" outfile=/scratch/kocevski/731233/ltcube_678672001_678931201_4FGL_J2235.3-4836_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/731233/ft2_4FGL_J2235.3-4836_daily_bin1695.fits
.....................!
real 11.87
user 11.53
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/731233/ft1_filtered_4FGL_J2235.3-4836_daily_bin1695.fits evtable="EVENTS" scfile=/scratch/kocevski/731233/ft2_4FGL_J2235.3-4836_daily_bin1695.fits sctable="SC_DATA" expcube=/scratch/kocevski/731233/ltcube_678672001_678931201_4FGL_J2235.3-4836_daily_bin1695.fits outfile=/scratch/kocevski/731233/expmap_678672001_678931201_4FGL_J2235.3-4836_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/731233/ltcube_678672001_678931201_4FGL_J2235.3-4836_daily_bin1695.fits
.....................!
real 191.16
user 185.35
sys 5.50

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 184 point sources and 0 extended sources

Setting source of interest to:
4FGL J2235.3-4836 @ 338.841 -48.6015

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/731233/ft1_filtered_4FGL_J2235.3-4836_daily_bin1695.fits scfile=/scratch/kocevski/731233/ft2_4FGL_J2235.3-4836_daily_bin1695.fits outfile=/scratch/kocevski/731233/cmap_678672001_678931201_4FGL_J2235.3-4836_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=338.841 yref=-48.6015 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/731233/ft1_filtered_4FGL_J2235.3-4836_daily_bin1695.fits scfile=/scratch/kocevski/731233/ft2_4FGL_J2235.3-4836_daily_bin1695.fits outfile=/scratch/kocevski/731233/cmap_HighResolution_678672001_678931201_4FGL_J2235.3-4836_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=338.841 yref=-48.6015 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/731233/ft1_filtered_4FGL_J2235.3-4836_daily_bin1695.fits evtable="EVENTS" scfile=/scratch/kocevski/731233/ft2_4FGL_J2235.3-4836_daily_bin1695.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/731233/Model_4FGL_J2235.3-4836_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/731233/ft1_filtered_4FGL_J2235.3-4836_daily_bin1695.fits.....................!
real 38.56
user 37.25
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/731233/ft1_filtered_4FGL_J2235.3-4836_daily_bin1695.fits', '/scratch/kocevski/731233/ft2_4FGL_J2235.3-4836_daily_bin1695.fits', expMap='/scratch/kocevski/731233/expmap_678672001_678931201_4FGL_J2235.3-4836_daily_bin1695.fits', expCube='/scratch/kocevski/731233/ltcube_678672001_678931201_4FGL_J2235.3-4836_daily_bin1695.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/731233/Model_4FGL_J2235.3-4836_daily_bin1695.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2235.3-4836'

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  3.864e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  2.511e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
353        Scale:  6.132e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/731233/ft1_filtered_4FGL_J2235.3-4836_daily_bin1695.fits
Spacecraft file(s): /scratch/kocevski/731233/ft2_4FGL_J2235.3-4836_daily_bin1695.fits
Exposure map: /scratch/kocevski/731233/expmap_678672001_678931201_4FGL_J2235.3-4836_daily_bin1695.fits
Exposure cube: /scratch/kocevski/731233/ltcube_678672001_678931201_4FGL_J2235.3-4836_daily_bin1695.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/731233/Model_4FGL_J2235.3-4836_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) = 4654.89740238

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.0874       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11291E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.3618       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13027E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.4242       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.9794       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.1465       1.0000         .10000E-03   10000.    
    11 'Prefactor '    30.823       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .32728E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10334E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.443       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.5840       1.0000         .10000E-03   10000.    
    20 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.1302       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.0548       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .93021E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0459       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .95988       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4654.895     FROM MIGRAD    STATUS=CONVERGED    774 CALLS     3938 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.1666       -.22098E-06** at limit **
   2  Prefactor     7.0877        21.199       -.39376E-06    .18169E-04
   3  Prefactor     .10000E-03    4.1940        .37113E-06** at limit **
   4  norm          1.3617        3.8707        .14629E-05    .80353E-03
   5  Prefactor     .10000E-03    98.875        .21190E-05** at limit **
   6  Prefactor     1.4217        15.559        .32951E-05    .34940E-03
   7  Prefactor     6.9786        4.5871       -.41662E-07    .41976E-03
   8  Prefactor     .10000E-03    51.640       -.62612E-06** at limit **
   9  norm          .10000E-03    3.0245        .35409E-07** at limit **
  10  Prefactor     5.1462        5.2696        .23224E-06    .76974E-03
  11  Prefactor     30.822        51.223        .12601E-06    .67246E-04
  12  Prefactor     .10001E-03    6.3013       -.23622E-05** at limit **
  13  Prefactor     .10000E-03    18.962        .61938E-06** at limit **
  14  Prefactor     .10012E-03    33.622       -.57054E-05** at limit **
  15  Prefactor     .10000E-03    6.9395        .17069E-06** at limit **
  16  Prefactor     .10000E-03    80.435       -.20592E-05** at limit **
  17  Prefactor     .10000E-03    12.314        .55124E-06** at limit **
  18  Prefactor     22.466        54.869        .20340E-05    .16032E-03
  19  Prefactor     4.5827        13.693       -.58341E-06    .81783E-04
  20  norm          .10000E-03    5.6524        .78471E-07** at limit **
  21  norm          .10000E-03    2.1518        .16893E-07** at limit **
  22  norm          5.1308        5.1584       -.53468E-07   -.17747E-04
  23  Prefactor     2.0543        3.3726       -.69250E-07    .65554E-04
  24  Prefactor     .10000E-03    16.422       -.31422E-06** at limit **
  25  Prefactor     .10000E-03    4.3304       -.60885E-08** at limit **
  26  norm          .10000E-03    .28867        .69228E-08** at limit **
  27  Prefactor     .10057E-03    8.4267       -.36775E-05** at limit **
  28  Prefactor     .10000E-03    11.531        .22794E-06** at limit **
  29  Normalizat    1.0461        .21167        .25084E-05    .12199E-02
  30  Prefactor     .95975        .18826       -.74659E-06    .11745E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 7.0877
  Prefactor  = 0.0001
  norm       = 1.36174
  Prefactor  = 0.000100002
  Prefactor  = 1.42174
  Prefactor  = 6.97859
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 5.14616
  Prefactor  = 30.8225
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.00010012
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 22.4664
  Prefactor  = 4.58271
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.1308
  Prefactor  = 2.05431
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100569
  Prefactor  = 0.0001
  Normalizat = 1.04613
  Prefactor  = 0.959746
 **********
 **   18 **HESSE 
 **********

 FCN=   4654.895     FROM HESSE     STATUS=OK           584 CALLS     4522 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.1908        .16557E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.0877        21.195        .15068E-03   -1.5175    
   3  Prefactor     .10000E-03    15.085        .23965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.3617        4.4926        .12723E-02   -1.5475    
   5  Prefactor     .10000E-03    98.879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.4217        15.458        .36230E-03   -1.5469    
   7  Prefactor     6.9786        4.5772        .11287E-03   -1.5180    
   8  Prefactor     .10000E-03    51.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.0275        .11588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.1462        5.2825        .14656E-03   -1.5254    
  11  Prefactor     30.822        51.145        .72169E-04   -1.4597    
  12  Prefactor     .10001E-03    8.4184        .26289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    19.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10012E-03    176.27        .60149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.9822        .17550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    80.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     22.466        54.992        .84550E-04   -1.4760    
  19  Prefactor     4.5827        13.684        .18801E-03   -1.5280    
  20  norm          .10000E-03    5.6594        .15842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.1521        .97732E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.1308        5.1619        .15171E-03   -1.5255    
  23  Prefactor     2.0543        3.3464        .15604E-03   -1.5421    
  24  Prefactor     .10000E-03    16.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.3335        .13862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .29139        .35743E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10057E-03    40.337        .21692E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    11.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0461        .24946        .23789E-03   -.91501    
  30  Prefactor     .95975        .22277        .22826E-03   -.94084    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79011e-08
Minuit parameter uncertainties:
  1  4.4002e-05
  2  21.2179
  3  7.37645e-05
  4  4.49367
  5  0.000846543
  6  9.37866
  7  4.57745
  8  0.000334875
  9  1.74007e-06
  10  5.28294
  11  51.2178
  12  0.000537306
  13  0.000120107
  14  0.00920638
  15  4.23327e-05
  16  0.00104485
  17  4.56331e-05
  18  55.1164
  19  13.6938
  20  1.01281e-05
  21  1.10557e-06
  22  5.1623
  23  3.34673
  24  9.7886e-05
  25  1.56189e-06
  26  3.16799e-07
  27  0.00958924
  28  5.58035e-05
  29  0.249742
  30  0.222988
Done.

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

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.000e-04  5.373e-04  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  2.511e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
353        Scale:  6.132e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  9.597e-01  2.230e-01  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  1.046e+00  2.497e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 338.841 -48.602
Photon Flux Upper Limit: 8.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/731233/likelihoodResults_678672001_678931201_4FGL_J2235.3-4836_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) = 4654.89558554
delta logL = -0.000564891613976

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4654.89502069
delta logL = -4.82068571728e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4868       1.0000          .0000       10.000    
     3 'Normalizat'    1.0460       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95986       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5970E+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=   4654.895     FROM MIGRAD    STATUS=FAILED        91 CALLS      257 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10133E-03    70.210        .26727E-02** at limit **
   2  Index         2.4174        5.0737        .50000        .12522E-04
   3  Normalizat    1.0461        .13655E-01    .23789E-03    .22173E-03
   4  Prefactor     .95975        .12669E-01    .22826E-03    .20677E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4654.895     FROM SIMPLEX   STATUS=UNCHANGED    121 CALLS      378 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10133E-03    70.210        .59765E-03** at limit **
   2  Index         2.4174        5.0737        .35630E-03    .12522E-04
   3  Normalizat    1.0461        .13655E-01    .40228E-05    .22173E-03
   4  Prefactor     .95975        .12669E-01    .22436E-05    .20677E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4654.895     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      411 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10075E-03    310.94        .53454E-03** at limit **
   2  Index         2.4260        8.7274        .50000        .13665E-04
   3  Normalizat    1.0461        .29731E-01    .47578E-04    .22194E-03
   4  Prefactor     .95975        .27584E-01    .45651E-04    .20680E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100746
  Index      = 2.42602
  Normalizat = 1.04612
  Prefactor  = 0.959745
 **********
 **   18 **HESSE 
 **********

 FCN=   4654.895     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      440 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10075E-03    1009.4        .10691E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4260        6.1112        .50000       -.54077    
   3  Normalizat    1.0461        .61723E-01    .95156E-05   -.91501    
   4  Prefactor     .95975        .57263E-01    .91302E-05   -.94084    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.47445e-08
Minuit parameter uncertainties:
  1  0.0558517
  2  967.581
  3  0.0617277
  4  0.0572671
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/731233': 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) = 4654.8950203
delta logL = 3.4350068745e-07

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  1.007e-04  5.585e-02  1.000e-04  1.000e+04 ( 1.000e-12)
352        Index:  2.426e+00  9.676e+02  0.000e+00  1.000e+01 (-1.000e+00)
353        Scale:  6.132e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  9.597e-01  5.727e-02  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  1.046e+00  6.173e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 338.841 -48.602

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/731233/cmap_HighResolution_678672001_678931201_4FGL_J2235.3-4836_daily_bin1695.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.60e-03', job_status='DONE', photon_flux_upper_limit='8.48e-08', time_completed='2022-07-08 00:49:52.120087', job_id='731233', GAL2='0.96', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1657266592.12', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='3.44e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1695' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul  8 00:49:52 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 731233: <4FGL_J2235.3-4836_daily_bin1695> in cluster <slac> Done

Job <4FGL_J2235.3-4836_daily_bin1695> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Jul  8 00:35:21 2022
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jul  8 00:35:22 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:22 2022
Terminated at Fri Jul  8 00:49:52 2022
Results reported at Fri Jul  8 00:49:52 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1695 338.841 -48.6015 678672001 678931201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2235.3-4836 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   728.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             259.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            871 sec.

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

