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 130 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J2235.3-4836_daily_bin1772
RA = 338.841, Dec = -48.6015
tmin = 698630401, tmax = 698889601
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='653610', job_status='RUN', time_executed='2023-02-24 03:03:09.878417', time_epoch_executed='1677236589.88' WHERE source_name='4FGL J2235.3-4836' and cadence='daily' and bin_id='1772'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/653610

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/653610/ft1_4FGL_J2235.3-4836_daily_bin1772.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/653610/ft2_4FGL_J2235.3-4836_daily_bin1772.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/653610/ft1_4FGL_J2235.3-4836_daily_bin1772.fits outfile=/scratch/kocevski/653610/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1772.fits ra=338.841 dec=-48.6015 rad=12.0 tmin=698630401.0 tmax=698889601.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.08
user 2.81
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/653610/ft2_4FGL_J2235.3-4836_daily_bin1772.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/653610/ft1_filteredMKT_4FGL_J2235.3-4836_daily_bin1772.fits evtable="EVENTS" outfile="/scratch/kocevski/653610/ft1_filtered_4FGL_J2235.3-4836_daily_bin1772.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: 69

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/653610/ft1_filtered_4FGL_J2235.3-4836_daily_bin1772.fits" evtable="EVENTS" scfile=/scratch/kocevski/653610/ft2_4FGL_J2235.3-4836_daily_bin1772.fits sctable="SC_DATA" outfile=/scratch/kocevski/653610/ltcube_698630401_698889601_4FGL_J2235.3-4836_daily_bin1772.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/653610/ft2_4FGL_J2235.3-4836_daily_bin1772.fits
.....................!
real 13.14
user 12.71
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/653610/ft1_filtered_4FGL_J2235.3-4836_daily_bin1772.fits evtable="EVENTS" scfile=/scratch/kocevski/653610/ft2_4FGL_J2235.3-4836_daily_bin1772.fits sctable="SC_DATA" expcube=/scratch/kocevski/653610/ltcube_698630401_698889601_4FGL_J2235.3-4836_daily_bin1772.fits outfile=/scratch/kocevski/653610/expmap_698630401_698889601_4FGL_J2235.3-4836_daily_bin1772.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/653610/ltcube_698630401_698889601_4FGL_J2235.3-4836_daily_bin1772.fits
.....................!
real 191.14
user 185.69
sys 5.11

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/653610/ft1_filtered_4FGL_J2235.3-4836_daily_bin1772.fits scfile=/scratch/kocevski/653610/ft2_4FGL_J2235.3-4836_daily_bin1772.fits outfile=/scratch/kocevski/653610/cmap_698630401_698889601_4FGL_J2235.3-4836_daily_bin1772.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/653610/ft1_filtered_4FGL_J2235.3-4836_daily_bin1772.fits scfile=/scratch/kocevski/653610/ft2_4FGL_J2235.3-4836_daily_bin1772.fits outfile=/scratch/kocevski/653610/cmap_HighResolution_698630401_698889601_4FGL_J2235.3-4836_daily_bin1772.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/653610/ft1_filtered_4FGL_J2235.3-4836_daily_bin1772.fits evtable="EVENTS" scfile=/scratch/kocevski/653610/ft2_4FGL_J2235.3-4836_daily_bin1772.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/653610/Model_4FGL_J2235.3-4836_daily_bin1772.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/653610/ft1_filtered_4FGL_J2235.3-4836_daily_bin1772.fits.......................!
real 17.89
user 16.61
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/653610/ft1_filtered_4FGL_J2235.3-4836_daily_bin1772.fits', '/scratch/kocevski/653610/ft2_4FGL_J2235.3-4836_daily_bin1772.fits', expMap='/scratch/kocevski/653610/expmap_698630401_698889601_4FGL_J2235.3-4836_daily_bin1772.fits', expCube='/scratch/kocevski/653610/ltcube_698630401_698889601_4FGL_J2235.3-4836_daily_bin1772.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/653610/Model_4FGL_J2235.3-4836_daily_bin1772.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  0.000e+00  1.000e+06 ( 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/653610/ft1_filtered_4FGL_J2235.3-4836_daily_bin1772.fits
Spacecraft file(s): /scratch/kocevski/653610/ft2_4FGL_J2235.3-4836_daily_bin1772.fits
Exposure map: /scratch/kocevski/653610/expmap_698630401_698889601_4FGL_J2235.3-4836_daily_bin1772.fits
Exposure cube: /scratch/kocevski/653610/ltcube_698630401_698889601_4FGL_J2235.3-4836_daily_bin1772.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/653610/Model_4FGL_J2235.3-4836_daily_bin1772.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) = 676.874520279

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .55511E-10   1.0000          .0000       .10000E+07
     2 'Prefactor '    55.459       1.0000          .0000       .10000E+07
     3 'Prefactor '    6.2000       1.0000          .0000       .10000E+07
     4 'norm      '    14.143       1.0000          .0000       .10000E+07
     5 'Prefactor '     .0000       1.0000          .0000       .10000E+07
     6 'Prefactor '    .86042E-08   1.0000          .0000       .10000E+07
     7 'Prefactor '    .13878E-08   1.0000          .0000       .10000E+07
     8 'Prefactor '    .12768E-08   1.0000          .0000       .10000E+07
     9 'norm      '     .0000       1.0000          .0000       .10000E+07
    10 'Prefactor '    .49960E-09   1.0000          .0000       .10000E+07
    11 'Prefactor '    .15231E+06   1.0000          .0000       .10000E+07
    12 'Prefactor '    .18407E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    .10000E+07   1.0000          .0000       .10000E+07
    14 'Prefactor '    .10647E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    .19817E-07   1.0000          .0000       .10000E+07
    16 'Prefactor '    13170.       1.0000          .0000       .10000E+07
    17 'Prefactor '    .62172E-08   1.0000          .0000       .10000E+07
    18 'norm      '    .55511E-10   1.0000          .0000       .10000E+07
    19 'norm      '    11.309       1.0000          .0000       .10000E+07
    20 'norm      '    .26253E-05   1.0000          .0000       .10000E+07
    21 'Prefactor '    5.8824       1.0000          .0000       .10000E+07
    22 'Prefactor '    24.727       1.0000          .0000       .10000E+07
    23 'Prefactor '    .55511E-10   1.0000          .0000       .10000E+07
    24 'norm      '    .51070E-08   1.0000          .0000       .10000E+07
    25 'Prefactor '    .17819E-07   1.0000          .0000       .10000E+07
    26 'Prefactor '    .55511E-10   1.0000          .0000       .10000E+07
    27 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    28 'Prefactor '    .49546       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   676.3744     FROM MIGRAD    STATUS=CONVERGED    190 CALLS     4328 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        5.5093       -.99441E-07** at limit **
   2  Prefactor     55.458        1.0295        .47931E-08   -.22277E-02
   3  Prefactor     6.1997        6.0870        .25740E-07   -.73444E-04
   4  norm          14.143        12.011        .42839E-08    .92829E-04
   5  Prefactor     .24153E-06    26.982       -.14021E-05** at limit **
   6  Prefactor      .0000        9.0017        .87692E-07** at limit **
   7  Prefactor      .0000        2.5073       -.11827E-06** at limit **
   8  Prefactor     .25468E-04    88.366        .23059E-05** at limit **
   9  norm          .27756E-09    15.777        .16742E-06** at limit **
  10  Prefactor     .57535E-05    75.774       -.11322E-05** at limit **
  11  Prefactor     .15231E+06    1.0000       -.91307E-13   -.17106E-03
  12  Prefactor     .84316E-04    49.130       -.59033E-06** at limit **
  13  Prefactor     .10000E+07    3.5578       -.47420E-06   -.31888E-01
  14  Prefactor     .54236E-03    94.672        .15155E-05** at limit **
  15  Prefactor     .39064E-03    216.25        .40312E-05** at limit **
  16  Prefactor     13170.        1.0000       -.76121E-11   -.12826E-02
  17  Prefactor     .59952E-08    18.930       -.86394E-06** at limit **
  18  norm          .10758E-06    23.364        .24606E-05** at limit **
  19  norm          11.297        4.2338        .16173E-06   -.19513E-01
  20  norm          .66169E-07    35.303        .47393E-06** at limit **
  21  Prefactor     5.8847        9.6284       -.26506E-06    .34711E-02
  22  Prefactor     24.735        5.9942        .10360E-06   -.31937E-02
  23  Prefactor      .0000        7.3443        .10324E-06** at limit **
  24  norm           .0000        1.2558        .36135E-06** at limit **
  25  Prefactor      .0000        2.4462       -.16451E-07** at limit **
  26  Prefactor      .0000        12.397        .33311E-06** at limit **
  27  Normalizat    .10000E-01    .40781E-01   -.41631E-05** at limit **
  28  Prefactor     .49553        .15367       -.68760E-05    .10835E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 55.4583
  Prefactor  = 6.19972
  norm       = 14.1432
  Prefactor  = 2.41529e-07
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 2.5468e-05
  norm       = 2.77556e-10
  Prefactor  = 5.75345e-06
  Prefactor  = 152308
  Prefactor  = 8.43158e-05
  Prefactor  = 999999
  Prefactor  = 0.000542359
  Prefactor  = 0.000390638
  Prefactor  = 13170.2
  Prefactor  = 5.9952e-09
  norm       = 1.07581e-07
  norm       = 11.2967
  norm       = 6.61693e-08
  Prefactor  = 5.88474
  Prefactor  = 24.7345
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0
  Normalizat = 0.01
  Prefactor  = 0.495529
 **********
 **   18 **HESSE 
 **********

 FCN=   676.3744     FROM HESSE     STATUS=OK           561 CALLS     4889 TOTAL
                     EDM=   .64E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        5.5129        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     55.458        38.237        .13429E-03   -1.5559    
   3  Prefactor     6.1997        6.0826        .40293E-03   -1.5658    
   4  norm          14.143        12.032        .26607E-03   -1.5633    
   5  Prefactor     .24153E-06    27.161        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        9.0031        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        2.5079        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .25468E-04    95.969        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .27756E-09    15.777        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .57535E-05    139.79        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .15231E+06    .28755E+06    .36667E-04   -.76895    
  12  Prefactor     .84316E-04    119.09        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E+07    14516.        .42118E-03    1.5689    
  14  Prefactor     .54236E-03    221.14        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .39064E-03    315.24        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     13170.        30663.        .87717E-05   -1.3408    
  17  Prefactor     .59952E-08    18.932        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10758E-06    23.434        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          11.297        25.912        .29765E-03   -1.5641    
  20  norm          .66169E-07    35.682        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.8847        11.339        .41382E-03   -1.5659    
  22  Prefactor     24.735        53.071        .20114E-03   -1.5608    
  23  Prefactor      .0000        7.3462        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm           .0000        1.2553        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor      .0000        2.4461        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor      .0000        12.399        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .10000E-01    .40759E-01    .73488E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .49553        .16235        .39609E-01   -1.1218    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.41646e-05
Minuit parameter uncertainties:
  1  1.00754e-05
  2  38.2371
  3  6.08258
  4  12.0323
  5  0.00512247
  6  9.88057e-06
  7  5.46028e-06
  8  0.0988779
  9  0.000133004
  10  0.0567209
  11  333351
  12  0.200419
  13  224.719
  14  0.692663
  15  0.70188
  16  31045.4
  17  0.000673737
  18  0.00317558
  19  25.9121
  20  0.00307263
  21  11.3393
  22  53.0724
  23  6.56277e-06
  24  1.14358e-06
  25  4.11798e-06
  26  8.66574e-06
  27  1.89378e-08
  28  0.162503
Done.

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

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  8.432e-05  2.004e-01  0.000e+00  1.000e+06 ( 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:  4.955e-01  1.625e-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.000e-02  1.894e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 338.841 -48.602
Photon Flux Upper Limit: 4.32e-06 ph cm-2 s-1
Energy Flux Upper Limit: 3.36e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/653610/likelihoodResults_698630401_698889601_4FGL_J2235.3-4836_daily_bin1772.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): 0
logL (Free Index) = 676.378380737
delta logL = -0.00400264850248

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 676.374377875
delta logL = 2.13076305045e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .93484E-05   1.0000          .0000       .10000E+07
     2 'Index     '    2.0344       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .49560       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.

 FCN=   676.3744     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      208 TOTAL
                     EDM=   .43E-14    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    2.1035        .42118E-03** at limit **
   2  Index         2.1767        5.9515        .50000       -.45475E-12
   3  Normalizat    .10000E-01    .12991E-05    .73488E-01** at limit **
   4  Prefactor     .49553        .84923E-03    .39611E-01    .61536E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Index      = 2.17667
  Normalizat = 0.01
  Prefactor  = 0.495529
 **********
 **   18 **HESSE 
 **********

 FCN=   676.3744     FROM HESSE     STATUS=NOT POSDEF    23 CALLS      231 TOTAL
                     EDM=   .22E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    10.520        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1767        7.1050        .50000       -.60003    
   3  Normalizat    .10000E-01    .65290E-05    .16207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .49553        .18988E-02    .17587E-03   -1.1218    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.16058e-14
Minuit parameter uncertainties:
  1  4.54018e-05
  2  327147
  3  6.27744e-11
  4  0.0018988
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/653610': 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) = 676.374377734
delta logL = 3.53963059752e-07

Extracting fit parameters...

4FGL J2235.3-4836
   Spectrum: PowerLaw
351    Prefactor:  5.551e-11  4.540e-05  0.000e+00  1.000e+06 ( 1.000e-12)
352        Index:  2.177e+00  3.271e+05  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:  4.955e-01  1.899e-03  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.000e-02  6.277e-11  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/653610/cmap_HighResolution_698630401_698889601_4FGL_J2235.3-4836_daily_bin1772.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.36e-01', job_status='DONE', photon_flux_upper_limit='4.32e-06', time_completed='2023-02-24 03:09:30.654377', job_id='653610', GAL2='0.50', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1677236970.65', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.50', dlogl='3.54e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1772' AND source_name='4FGL J2235.3-4836' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb 24 03:09:30 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 653610: <4FGL_J2235.3-4836_daily_bin1772> in cluster <slac> Done

Job <4FGL_J2235.3-4836_daily_bin1772> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Feb 24 03:00:30 2023
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb 24 03:00:30 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb 24 03:00:30 2023
Terminated at Fri Feb 24 03:09:31 2023
Results reported at Fri Feb 24 03:09:31 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.3-4836_daily_bin1772 338.841 -48.6015 698630401 698889601 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 :                                   383.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             265.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   540 sec.
    Turnaround time :                            541 sec.

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

