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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1694
RA = 338.971, Dec = -36.4605
tmin = 678412801, tmax = 678672001
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='697453', job_status='RUN', time_executed='2022-07-05 04:01:04.898657', time_epoch_executed='1657018864.9' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1694'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/697453

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/697453/ft1_4FGL_J2235.8-3627_daily_bin1694.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/697453/ft2_4FGL_J2235.8-3627_daily_bin1694.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/697453/ft1_4FGL_J2235.8-3627_daily_bin1694.fits outfile=/scratch/kocevski/697453/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1694.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=678412801.0 tmax=678672001.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.71
user 3.43
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/697453/ft2_4FGL_J2235.8-3627_daily_bin1694.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/697453/ft2_4FGL_J2235.8-3627_daily_bin1694.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/697453/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1694.fits evtable="EVENTS" outfile="/scratch/kocevski/697453/ft1_filtered_4FGL_J2235.8-3627_daily_bin1694.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.54
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 407

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/697453/ft1_filtered_4FGL_J2235.8-3627_daily_bin1694.fits" evtable="EVENTS" scfile=/scratch/kocevski/697453/ft2_4FGL_J2235.8-3627_daily_bin1694.fits sctable="SC_DATA" outfile=/scratch/kocevski/697453/ltcube_678412801_678672001_4FGL_J2235.8-3627_daily_bin1694.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/697453/ft2_4FGL_J2235.8-3627_daily_bin1694.fits
.....................!
real 14.08
user 13.70
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/697453/ft1_filtered_4FGL_J2235.8-3627_daily_bin1694.fits evtable="EVENTS" scfile=/scratch/kocevski/697453/ft2_4FGL_J2235.8-3627_daily_bin1694.fits sctable="SC_DATA" expcube=/scratch/kocevski/697453/ltcube_678412801_678672001_4FGL_J2235.8-3627_daily_bin1694.fits outfile=/scratch/kocevski/697453/expmap_678412801_678672001_4FGL_J2235.8-3627_daily_bin1694.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/697453/ltcube_678412801_678672001_4FGL_J2235.8-3627_daily_bin1694.fits
.....................!
real 191.50
user 185.77
sys 5.34

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

Setting source of interest to:
4FGL J2235.8-3627 @ 338.971 -36.4605

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/697453/ft1_filtered_4FGL_J2235.8-3627_daily_bin1694.fits scfile=/scratch/kocevski/697453/ft2_4FGL_J2235.8-3627_daily_bin1694.fits outfile=/scratch/kocevski/697453/cmap_678412801_678672001_4FGL_J2235.8-3627_daily_bin1694.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.971 yref=-36.4605 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.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/697453/ft1_filtered_4FGL_J2235.8-3627_daily_bin1694.fits scfile=/scratch/kocevski/697453/ft2_4FGL_J2235.8-3627_daily_bin1694.fits outfile=/scratch/kocevski/697453/cmap_HighResolution_678412801_678672001_4FGL_J2235.8-3627_daily_bin1694.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.971 yref=-36.4605 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.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/697453/ft1_filtered_4FGL_J2235.8-3627_daily_bin1694.fits evtable="EVENTS" scfile=/scratch/kocevski/697453/ft2_4FGL_J2235.8-3627_daily_bin1694.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/697453/Model_4FGL_J2235.8-3627_daily_bin1694.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/697453/ft1_filtered_4FGL_J2235.8-3627_daily_bin1694.fits.....................!
real 40.17
user 38.82
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/697453/ft1_filtered_4FGL_J2235.8-3627_daily_bin1694.fits', '/scratch/kocevski/697453/ft2_4FGL_J2235.8-3627_daily_bin1694.fits', expMap='/scratch/kocevski/697453/expmap_678412801_678672001_4FGL_J2235.8-3627_daily_bin1694.fits', expCube='/scratch/kocevski/697453/ltcube_678412801_678672001_4FGL_J2235.8-3627_daily_bin1694.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/697453/Model_4FGL_J2235.8-3627_daily_bin1694.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2235.8-3627'

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  8.910e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.229e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
274        Scale:  1.006e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/697453/ft1_filtered_4FGL_J2235.8-3627_daily_bin1694.fits
Spacecraft file(s): /scratch/kocevski/697453/ft2_4FGL_J2235.8-3627_daily_bin1694.fits
Exposure map: /scratch/kocevski/697453/expmap_678412801_678672001_4FGL_J2235.8-3627_daily_bin1694.fits
Exposure cube: /scratch/kocevski/697453/ltcube_678412801_678672001_4FGL_J2235.8-3627_daily_bin1694.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/697453/Model_4FGL_J2235.8-3627_daily_bin1694.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) = 4602.67063097

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4751       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .19026E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    10.069       1.0000         .10000E-03   10000.    
     5 'norm      '    .34921       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .31126E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.0947       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    31.161       1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.184       1.0000         .10000E-03   10000.    
    12 'norm      '    .59949       1.0000         .10000E-03   10000.    
    13 'Prefactor '    47.222       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.2564       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12619E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10190E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    51.302       1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.776       1.0000         .10000E-03   10000.    
    22 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    57.819       1.0000         .10000E-03   10000.    
    26 'Prefactor '    16.303       1.0000         .10000E-03   10000.    
    27 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2289       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .80025       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4602.598     FROM MIGRAD    STATUS=CONVERGED    725 CALLS     3740 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4790        8.9764       -.10418E-05   -.46295E-04
   2  Prefactor     .10000E-03    44.111        .50970E-05** at limit **
   3  norm          .10000E-03    3.1711       -.34401E-07** at limit **
   4  norm          10.066        8.1326       -.69945E-07    .22513E-04
   5  norm          .34937        .43517        .71734E-08   -.10442E-04
   6  Prefactor     .10002E-03    10.576       -.10537E-05** at limit **
   7  Prefactor     .10000E-03    2.5059        .55088E-07** at limit **
   8  norm          4.0966        60.542       -.16123E-05   -.74451E-05
   9  Prefactor     .10000E-03    54.314       -.61092E-06** at limit **
  10  Prefactor     31.159        22.935       -.89479E-07    .17800E-04
  11  Prefactor     17.179        16.346        .55032E-08    .30345E-05
  12  norm          .59845        1.9619        .12487E-05    .16256E-03
  13  Prefactor     47.230        70.005       -.40054E-05   -.34936E-04
  14  Prefactor     .10000E-03    5.5916        .90211E-07** at limit **
  15  Prefactor     .10000E-03    2.8399        .53453E-07** at limit **
  16  norm          .10000E-03    1.6570        .17464E-07** at limit **
  17  Prefactor     7.2552        10.202       -.25496E-06   -.36172E-04
  18  Prefactor     .10000E-03    17.057        .51815E-06** at limit **
  19  norm          .10000E-03    .27594        .14133E-06** at limit **
  20  Prefactor     51.273        49.021       -.12963E-05    .77054E-04
  21  Prefactor     12.769        13.507       -.63729E-06   -.96587E-04
  22  norm          .10000E-03    6.6185       -.10824E-06** at limit **
  23  norm          .10000E-03    2.2479        .19379E-06** at limit **
  24  norm          .10000E-03    6.8888       -.41481E-06** at limit **
  25  Prefactor     57.770        48.726        .40477E-06   -.15264E-03
  26  Prefactor     16.362        62.552        .46781E-05   -.66643E-04
  27  norm          .10000E-03    9.0095        .26229E-05** at limit **
  28  Normalizat    1.2292        .22259       -.14618E-06   -.14229E-03
  29  Prefactor     .79991        .19840        .44759E-06   -.11591E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.47896
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.0661
  norm       = 0.349369
  Prefactor  = 0.000100025
  Prefactor  = 0.0001
  norm       = 4.09661
  Prefactor  = 0.0001
  Prefactor  = 31.1594
  Prefactor  = 17.1792
  norm       = 0.598449
  Prefactor  = 47.2304
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.25524
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 51.2728
  Prefactor  = 12.7687
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 57.7702
  Prefactor  = 16.3621
  norm       = 0.0001
  Normalizat = 1.22919
  Prefactor  = 0.799911
 **********
 **   18 **HESSE 
 **********

 FCN=   4602.598     FROM HESSE     STATUS=OK           555 CALLS     4295 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4790        8.9545        .78860E-03   -1.5199    
   2  Prefactor     .10000E-03    43.721        .36755E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.1761        .11798E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          10.066        8.0656        .12628E-03   -1.5073    
   5  norm          .34937        .40700        .43592E-03   -1.5590    
   6  Prefactor     .10002E-03    80.374        .39361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.5535        .10481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.0966        60.057        .19923E-03   -1.5303    
   9  Prefactor     .10000E-03    54.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     31.159        22.887        .71778E-04   -1.4591    
  11  Prefactor     17.179        16.360        .96618E-04   -1.4879    
  12  norm          .59845        1.9418        .16359E-02   -1.5553    
  13  Prefactor     47.230        70.369        .58350E-04   -1.4332    
  14  Prefactor     .10000E-03    5.6087        .15666E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.8457        .11165E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.6641        .85247E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.2552        10.171        .14890E-03   -1.5169    
  18  Prefactor     .10000E-03    17.477        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .33107        .67363E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     51.273        48.801        .27996E-03   -1.4275    
  21  Prefactor     12.769        13.221        .11207E-03   -1.4993    
  22  norm          .10000E-03    6.6179        .17046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.2493        .99304E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    6.9477        .17390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     57.770        49.224        .52759E-04   -1.4186    
  26  Prefactor     16.362        62.131        .99194E-04   -1.4899    
  27  norm          .10000E-03    9.0385        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2292        .26761        .23427E-03   -.85705    
  29  Prefactor     .79991        .23757        .26323E-03   -.99732    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38921e-09
Minuit parameter uncertainties:
  1  8.95636
  2  1.06285e-06
  3  3.30258e-06
  4  8.06646
  5  0.406999
  6  0.00283466
  7  2.03264e-06
  8  31.4084
  9  0.000152612
  10  22.893
  11  16.3644
  12  1.94199
  13  70.4929
  14  4.56378e-06
  15  1.22247e-06
  16  4.91836e-07
  17  10.173
  18  7.67548e-05
  19  7.12252e-07
  20  48.8387
  21  13.2238
  22  9.99613e-06
  23  8.19371e-07
  24  1.36918e-05
  25  49.2584
  26  62.3781
  27  6.18666e-05
  28  0.267907
  29  0.237878
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  3.116e+01  2.289e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.229e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
274        Scale:  1.006e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  7.999e-01  2.379e-01  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  1.229e+00  2.679e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.62
Ra Dec: 338.971 -36.461
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 4.36e-08 +/- 3.20e-08
Energy Flux (Fixed Index): 1.86e-05 +/- 1.36e-05

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) = 4601.78089661
delta logL = 0.817223492812

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4601.75061103
delta logL = 0.847509075544

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.103       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6116       1.0000          .0000       10.000    
     3 'Normalizat'    1.2486       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78932       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4601.751     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      208 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.103        30.008        .16449E-02   -.46881E-03
   2  Index         1.6116        .40023        .17229        .68426E-04
   3  Normalizat    1.2486        .20741        .52629E-01    .26543E-04
   4  Prefactor     .78931        .19337        .43578E-01   -.41584E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.103
  Index      = 1.61159
  Normalizat = 1.24865
  Prefactor  = 0.789315
 **********
 **   18 **HESSE 
 **********

 FCN=   4601.751     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.103        30.506        .65796E-04   -1.4489    
   2  Index         1.6116        .44642        .69403E-02   -.74461    
   3  Normalizat    1.2486        .24626        .23270E-03   -.85113    
   4  Prefactor     .78931        .22965        .26486E-03   -1.0012    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.1401e-10
Minuit parameter uncertainties:
  1  30.5189
  2  0.447519
  3  0.24649
  4  0.22993
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/697453': 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) = 4601.75061103
delta logL = 0.847509076958

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  3.710e+01  3.052e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  1.612e+00  4.475e-01  0.000e+00  1.000e+01 (-1.000e+00)
274        Scale:  1.006e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  7.893e-01  2.299e-01  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  1.249e+00  2.465e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.32
Ra Dec: 338.971 -36.461
Photon Index (Free Index): 1.61 +/- 0.45
Photon Flux (Free Index): 2.47e-08 +/- 2.44e-08
Energy Flux (Free Index): 5.38e-05 +/- 6.28e-05

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/697453/cmap_HighResolution_678412801_678672001_4FGL_J2235.8-3627_daily_bin1694.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.36e-08', energy_flux2='5.38e-05', photon_flux_error='3.20e-08', dlogl='8.48e-01', energy_flux='1.86e-05', photon_flux2='2.47e-08', job_status='DONE', time_completed='2022-07-05 04:11:03.978330', photon_index_error2='0.45', photon_index2='1.61', ts='8.62', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='6.28e-05', EG='1.23', time_epoch_completed='1657019463.98', return_code='0', job_id='697453', GAL2='0.79', EG2='1.25', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='2.44e-08', ts2='10.32', photon_index='2.23' WHERE bin_id='1694' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul  5 04:11:04 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 697453: <4FGL_J2235.8-3627_daily_bin1694> in cluster <slac> Done

Job <4FGL_J2235.8-3627_daily_bin1694> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Jul  5 03:55:14 2022
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul  5 03:59:26 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul  5 03:59:26 2022
Terminated at Tue Jul  5 04:11:04 2022
Results reported at Tue Jul  5 04:11:04 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1694 338.971 -36.4605 678412801 678672001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2235.8-3627 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   601.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   698 sec.
    Turnaround time :                            950 sec.

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

