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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1774
RA = 338.971, Dec = -36.4605
tmin = 699148801, tmax = 699408001
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='697917', job_status='RUN', time_executed='2023-03-02 01:43:48.739567', time_epoch_executed='1677750228.74' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1774'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/697917

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/697917/ft1_4FGL_J2235.8-3627_daily_bin1774.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/697917/ft2_4FGL_J2235.8-3627_daily_bin1774.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/697917/ft1_4FGL_J2235.8-3627_daily_bin1774.fits outfile=/scratch/kocevski/697917/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1774.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=699148801.0 tmax=699408001.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 2.83
user 2.63
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/697917/ft2_4FGL_J2235.8-3627_daily_bin1774.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/697917/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1774.fits evtable="EVENTS" outfile="/scratch/kocevski/697917/ft1_filtered_4FGL_J2235.8-3627_daily_bin1774.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.35
sys 0.13

Number of photons that the gtmktime cut: 45

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/697917/ft1_filtered_4FGL_J2235.8-3627_daily_bin1774.fits" evtable="EVENTS" scfile=/scratch/kocevski/697917/ft2_4FGL_J2235.8-3627_daily_bin1774.fits sctable="SC_DATA" outfile=/scratch/kocevski/697917/ltcube_699148801_699408001_4FGL_J2235.8-3627_daily_bin1774.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/697917/ft2_4FGL_J2235.8-3627_daily_bin1774.fits
.....................!
real 12.54
user 12.22
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/697917/ft1_filtered_4FGL_J2235.8-3627_daily_bin1774.fits evtable="EVENTS" scfile=/scratch/kocevski/697917/ft2_4FGL_J2235.8-3627_daily_bin1774.fits sctable="SC_DATA" expcube=/scratch/kocevski/697917/ltcube_699148801_699408001_4FGL_J2235.8-3627_daily_bin1774.fits outfile=/scratch/kocevski/697917/expmap_699148801_699408001_4FGL_J2235.8-3627_daily_bin1774.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/697917/ltcube_699148801_699408001_4FGL_J2235.8-3627_daily_bin1774.fits
.....................!
real 190.01
user 184.92
sys 4.76

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/697917/ft1_filtered_4FGL_J2235.8-3627_daily_bin1774.fits scfile=/scratch/kocevski/697917/ft2_4FGL_J2235.8-3627_daily_bin1774.fits outfile=/scratch/kocevski/697917/cmap_699148801_699408001_4FGL_J2235.8-3627_daily_bin1774.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/697917/ft1_filtered_4FGL_J2235.8-3627_daily_bin1774.fits scfile=/scratch/kocevski/697917/ft2_4FGL_J2235.8-3627_daily_bin1774.fits outfile=/scratch/kocevski/697917/cmap_HighResolution_699148801_699408001_4FGL_J2235.8-3627_daily_bin1774.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/697917/ft1_filtered_4FGL_J2235.8-3627_daily_bin1774.fits evtable="EVENTS" scfile=/scratch/kocevski/697917/ft2_4FGL_J2235.8-3627_daily_bin1774.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/697917/Model_4FGL_J2235.8-3627_daily_bin1774.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/697917/ft1_filtered_4FGL_J2235.8-3627_daily_bin1774.fits.......................!
real 16.04
user 14.87
sys 1.10

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/697917/ft1_filtered_4FGL_J2235.8-3627_daily_bin1774.fits', '/scratch/kocevski/697917/ft2_4FGL_J2235.8-3627_daily_bin1774.fits', expMap='/scratch/kocevski/697917/expmap_699148801_699408001_4FGL_J2235.8-3627_daily_bin1774.fits', expCube='/scratch/kocevski/697917/ltcube_699148801_699408001_4FGL_J2235.8-3627_daily_bin1774.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/697917/Model_4FGL_J2235.8-3627_daily_bin1774.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  0.000e+00  1.000e+06 ( 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/697917/ft1_filtered_4FGL_J2235.8-3627_daily_bin1774.fits
Spacecraft file(s): /scratch/kocevski/697917/ft2_4FGL_J2235.8-3627_daily_bin1774.fits
Exposure map: /scratch/kocevski/697917/expmap_699148801_699408001_4FGL_J2235.8-3627_daily_bin1774.fits
Exposure cube: /scratch/kocevski/697917/ltcube_699148801_699408001_4FGL_J2235.8-3627_daily_bin1774.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/697917/Model_4FGL_J2235.8-3627_daily_bin1774.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) = 445.004623024

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26840E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    .28880E-03   1.0000          .0000       .10000E+07
     3 'norm      '    .39028E-03   1.0000          .0000       .10000E+07
     4 'norm      '    .63120       1.0000          .0000       .10000E+07
     5 'norm      '    61306.       1.0000          .0000       .10000E+07
     6 'Prefactor '    .68750E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .10433E-04   1.0000          .0000       .10000E+07
     8 'norm      '    .18045E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    .37396       1.0000          .0000       .10000E+07
    10 'Prefactor '    .40852E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .14696E-01   1.0000          .0000       .10000E+07
    12 'norm      '    .21850E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .64154E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .25517E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    .10346E-02   1.0000          .0000       .10000E+07
    16 'norm      '    .26236E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    .83798E-01   1.0000          .0000       .10000E+07
    18 'Prefactor '    .11766E-01   1.0000          .0000       .10000E+07
    19 'norm      '    .30259E-05   1.0000          .0000       .10000E+07
    20 'Prefactor '    .44059E-04   1.0000          .0000       .10000E+07
    21 'norm      '    61.416       1.0000          .0000       .10000E+07
    22 'norm      '    .28665       1.0000          .0000       .10000E+07
    23 'norm      '    .20331E-01   1.0000          .0000       .10000E+07
    24 'Prefactor '    .38828E-02   1.0000          .0000       .10000E+07
    25 'Prefactor '    149.99       1.0000          .0000       .10000E+07
    26 'norm      '    7.0868       1.0000          .0000       .10000E+07
    27 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    28 'Prefactor '    .34451       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   444.8934     FROM MIGRAD    STATUS=CONVERGED    231 CALLS     3186 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        215.87        .60084E-07** at limit **
   2  Prefactor     .53743E-03    298.68       -.20091E-05** at limit **
   3  norm          .80775E-03    165.27        .13518E-05** at limit **
   4  norm          .17430E-03    322.49        .17408E-05** at limit **
   5  norm          61306.        4.9429        .14982E-08    .54008    
   6  Prefactor     .11790E-02    185.86       -.20044E-05** at limit **
   7  Prefactor      .0000        7.5417       -.13605E-06** at limit **
   8  norm          .52112E-05    9.9453        .29090E-06** at limit **
   9  Prefactor     .70977E-06    155.98        .73347E-06** at limit **
  10  Prefactor     .54290E-06    86.187       -.91778E-06** at limit **
  11  Prefactor     .12850E-05    30.615        .74560E-06** at limit **
  12  norm          .20627E-05    42.564       -.55739E-06** at limit **
  13  Prefactor     .53565E-01    284.82        .26525E-05** at limit **
  14  Prefactor     .22958E-05    35.163       -.71007E-06** at limit **
  15  Prefactor      .0000        11.287        .13316E-06** at limit **
  16  norm           .0000        22.154        .10545E-06** at limit **
  17  Prefactor      .0000        71.024       -.19685E-06** at limit **
  18  Prefactor     .41090E-05    22.669        .28079E-06** at limit **
  19  norm           .0000        2.4911        .29881E-07** at limit **
  20  Prefactor     .17215E-05    39.051        .45148E-06** at limit **
  21  norm          60.847        5.7121        .58984E-07   -.51596E-02
  22  norm          .28003E-05    85.050        .13729E-05** at limit **
  23  norm          .55511E-09    42.180        .90976E-06** at limit **
  24  Prefactor     .10605E-05    33.914        .15055E-06** at limit **
  25  Prefactor     133.49        135.79        .47025E-06   -.47284E-01
  26  norm          6.9158        9.3067       -.34332E-06   -.22595E-02
  27  Normalizat    .10000E-01    .17956       -.44559E-05** at limit **
  28  Prefactor     .35832        .27966       -.83730E-07   -.24770E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 0.000537434
  norm       = 0.000807755
  norm       = 0.000174296
  norm       = 61306
  Prefactor  = 0.00117896
  Prefactor  = 0
  norm       = 5.21122e-06
  Prefactor  = 7.09766e-07
  Prefactor  = 5.42899e-07
  Prefactor  = 1.28503e-06
  norm       = 2.06274e-06
  Prefactor  = 0.053565
  Prefactor  = 2.29583e-06
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0
  Prefactor  = 4.10905e-06
  norm       = 0
  Prefactor  = 1.72151e-06
  norm       = 60.8475
  norm       = 2.80026e-06
  norm       = 5.55112e-10
  Prefactor  = 1.06054e-06
  Prefactor  = 133.486
  norm       = 6.91583
  Normalizat = 0.01
  Prefactor  = 0.358321
 **********
 **   18 **HESSE 
 **********

 FCN=   444.8934     FROM HESSE     STATUS=OK           567 CALLS     3753 TOTAL
                     EDM=   .77E-03    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        215.93        .16622E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .53743E-03    710.93        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .80775E-03    207.91        .42118E-03   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .17430E-03    334.85        .66479E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          61306.        12049.        .51040E-05   -1.0704    
   6  Prefactor     .11790E-02    252.12        .42118E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        7.5390        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .52112E-05    2233.1        .17169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .70977E-06    156.01        .92567E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .54290E-06    86.252        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .12850E-05    50.817        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .20627E-05    43.792        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .53565E-01    2058.3        .42118E-03   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .22958E-05    35.530        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        11.270        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        22.217        .16656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        71.299        .14387E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .41090E-05    51.061        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm           .0000        2.4965        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .17215E-05    39.417        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          60.847        56.315        .12761E-03   -1.5552    
  22  norm          .28003E-05    21.292        .74078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .55511E-09    24.801        .58264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10605E-05    34.095        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     133.49        141.90        .81658E-04   -1.5477    
  26  norm          6.9158        10.230        .37659E-03   -1.5655    
  27  Normalizat    .10000E-01    .17625        .12516       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .35832        .29293        .62729E-01   -1.1899    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.000772606
Minuit parameter uncertainties:
  1  7.96361e-05
  2  1.2364
  3  0.819632
  4  0.483196
  5  12053.7
  6  1.09043
  7  2.011e-05
  8  0.215832
  9  0.021046
  10  0.0136859
  11  0.0161618
  12  0.0190086
  13  21.0076
  14  0.0180635
  15  1.67988e-05
  16  2.12542e-05
  17  5.82566e-05
  18  0.0289701
  19  2.04197e-06
  20  0.0164752
  21  56.3158
  22  0.0154432
  23  0.000233648
  24  0.0120264
  25  141.904
  26  10.23
  27  2.96885e-07
  28  0.294159
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  5.429e-07  1.369e-02  0.000e+00  1.000e+06 ( 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:  3.583e-01  2.942e-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.000e-02  2.969e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 338.971 -36.461
Photon Flux Upper Limit: 7.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.48e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/697917/likelihoodResults_699148801_699408001_4FGL_J2235.8-3627_daily_bin1774.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) = 444.898896564
delta logL = -0.00549762973719

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 444.893400148
delta logL = -1.2129460174e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .57290E-05   1.0000          .0000       .10000E+07
     2 'Index     '    2.0536       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .35794       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   444.8934     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      243 TOTAL
                     EDM=   .11E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        20.135        .42118E-03** at limit **
   2  Index         .45696        .52653        .11213E-03     .0000    
   3  Normalizat    .10000E-01    .25505       -.85664E-05** at limit **
   4  Prefactor     .35832        .68325       -.54086E-05    .60736E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.456957
  Normalizat = 0.01
  Prefactor  = 0.358322
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   444.8934     FROM HESSE     STATUS=FAILED         9 CALLS      252 TOTAL
                     EDM=   .11E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        20.135        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .15651E-01    .58809        .11213E-03   -1.1399    
   3  Normalizat    .10000E-01    .25505       -.85664E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .35832        .68325       -.54086E-05   -1.1899    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.05627e-12
Minuit parameter uncertainties:
  1  2.34493e-05
  2  0.532276
  3  2.83047e-07
  4  0.699659
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/697917': 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): 101
logL (Free Index) = 444.893398932
delta logL = 3.15225179293e-09

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  0.000e+00  2.345e-05  0.000e+00  1.000e+06 ( 1.000e-13)
273        Index:  4.570e-01  5.323e-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:  3.583e-01  6.997e-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.000e-02  2.830e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 338.971 -36.461

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/697917/cmap_HighResolution_699148801_699408001_4FGL_J2235.8-3627_daily_bin1774.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.48e-02', job_status='DONE', photon_flux_upper_limit='7.17e-07', time_completed='2023-03-02 01:49:36.581340', job_id='697917', GAL2='0.36', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1677750576.58', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.36', dlogl='3.15e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1774' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar  2 01:49:36 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 697917: <4FGL_J2235.8-3627_daily_bin1774> in cluster <slac> Done

Job <4FGL_J2235.8-3627_daily_bin1774> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Mar  2 01:40:21 2023
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar  2 01:40:23 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar  2 01:40:23 2023
Terminated at Thu Mar  2 01:49:37 2023
Results reported at Thu Mar  2 01:49:37 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1774 338.971 -36.4605 699148801 699408001 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 :                                   350.36 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             247.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   553 sec.
    Turnaround time :                            556 sec.

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

