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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1778
RA = 338.971, Dec = -36.4605
tmin = 700185601, tmax = 700444801
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='982416', job_status='RUN', time_executed='2023-03-14 02:21:03.932529', time_epoch_executed='1678785663.93' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1778'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/982416

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/982416/ft1_4FGL_J2235.8-3627_daily_bin1778.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/982416/ft2_4FGL_J2235.8-3627_daily_bin1778.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/982416/ft1_4FGL_J2235.8-3627_daily_bin1778.fits outfile=/scratch/kocevski/982416/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1778.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=700185601.0 tmax=700444801.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.98
user 3.72
sys 0.20

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

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

Number of photons that the gtmktime cut: 451

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/982416/ft1_filtered_4FGL_J2235.8-3627_daily_bin1778.fits" evtable="EVENTS" scfile=/scratch/kocevski/982416/ft2_4FGL_J2235.8-3627_daily_bin1778.fits sctable="SC_DATA" outfile=/scratch/kocevski/982416/ltcube_700185601_700444801_4FGL_J2235.8-3627_daily_bin1778.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/982416/ft2_4FGL_J2235.8-3627_daily_bin1778.fits
.....................!
real 13.28
user 12.86
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/982416/ft1_filtered_4FGL_J2235.8-3627_daily_bin1778.fits evtable="EVENTS" scfile=/scratch/kocevski/982416/ft2_4FGL_J2235.8-3627_daily_bin1778.fits sctable="SC_DATA" expcube=/scratch/kocevski/982416/ltcube_700185601_700444801_4FGL_J2235.8-3627_daily_bin1778.fits outfile=/scratch/kocevski/982416/expmap_700185601_700444801_4FGL_J2235.8-3627_daily_bin1778.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/982416/ltcube_700185601_700444801_4FGL_J2235.8-3627_daily_bin1778.fits
.....................!
real 191.22
user 186.36
sys 3.91

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/982416/ft1_filtered_4FGL_J2235.8-3627_daily_bin1778.fits scfile=/scratch/kocevski/982416/ft2_4FGL_J2235.8-3627_daily_bin1778.fits outfile=/scratch/kocevski/982416/cmap_700185601_700444801_4FGL_J2235.8-3627_daily_bin1778.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.40
sys 0.11

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/982416/ft1_filtered_4FGL_J2235.8-3627_daily_bin1778.fits scfile=/scratch/kocevski/982416/ft2_4FGL_J2235.8-3627_daily_bin1778.fits outfile=/scratch/kocevski/982416/cmap_HighResolution_700185601_700444801_4FGL_J2235.8-3627_daily_bin1778.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.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/982416/ft1_filtered_4FGL_J2235.8-3627_daily_bin1778.fits evtable="EVENTS" scfile=/scratch/kocevski/982416/ft2_4FGL_J2235.8-3627_daily_bin1778.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/982416/Model_4FGL_J2235.8-3627_daily_bin1778.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/982416/ft1_filtered_4FGL_J2235.8-3627_daily_bin1778.fits.....................!
real 42.39
user 40.01
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/982416/ft1_filtered_4FGL_J2235.8-3627_daily_bin1778.fits', '/scratch/kocevski/982416/ft2_4FGL_J2235.8-3627_daily_bin1778.fits', expMap='/scratch/kocevski/982416/expmap_700185601_700444801_4FGL_J2235.8-3627_daily_bin1778.fits', expCube='/scratch/kocevski/982416/ltcube_700185601_700444801_4FGL_J2235.8-3627_daily_bin1778.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/982416/Model_4FGL_J2235.8-3627_daily_bin1778.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/982416/ft1_filtered_4FGL_J2235.8-3627_daily_bin1778.fits
Spacecraft file(s): /scratch/kocevski/982416/ft2_4FGL_J2235.8-3627_daily_bin1778.fits
Exposure map: /scratch/kocevski/982416/expmap_700185601_700444801_4FGL_J2235.8-3627_daily_bin1778.fits
Exposure cube: /scratch/kocevski/982416/ltcube_700185601_700444801_4FGL_J2235.8-3627_daily_bin1778.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/982416/Model_4FGL_J2235.8-3627_daily_bin1778.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) = 4872.412478

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5366       1.0000          .0000       .10000E+07
     2 'Prefactor '    .14103E-01   1.0000          .0000       .10000E+07
     3 'norm      '    6.7750       1.0000          .0000       .10000E+07
     4 'norm      '    .47493E-05   1.0000          .0000       .10000E+07
     5 'norm      '    .72779       1.0000          .0000       .10000E+07
     6 'Prefactor '    .25688E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .85143       1.0000          .0000       .10000E+07
     8 'norm      '    .53775E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    63.024       1.0000          .0000       .10000E+07
    10 'Prefactor '    21.580       1.0000          .0000       .10000E+07
    11 'Prefactor '    11.027       1.0000          .0000       .10000E+07
    12 'norm      '    1.7942       1.0000          .0000       .10000E+07
    13 'Prefactor '    21.157       1.0000          .0000       .10000E+07
    14 'Prefactor '    1.5522       1.0000          .0000       .10000E+07
    15 'Prefactor '    .11903E-05   1.0000          .0000       .10000E+07
    16 'norm      '    .57598E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .68490E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    16.851       1.0000          .0000       .10000E+07
    19 'norm      '    2.2791       1.0000          .0000       .10000E+07
    20 'Prefactor '    7.0620       1.0000          .0000       .10000E+07
    21 'norm      '    .42164E-04   1.0000          .0000       .10000E+07
    22 'norm      '    .83671E-04   1.0000          .0000       .10000E+07
    23 'norm      '    .30402E-03   1.0000          .0000       .10000E+07
    24 'Prefactor '    .81182E-04   1.0000          .0000       .10000E+07
    25 'Prefactor '    .13378       1.0000          .0000       .10000E+07
    26 'norm      '    1.0984       1.0000          .0000       .10000E+07
    27 'Normalizat'    1.2853       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .77103       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=   4872.400     FROM MIGRAD    STATUS=CONVERGED    241 CALLS     3590 TOTAL
                     EDM=   .32E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4885        9.3037       -.54238E-08   -.57703E-04
   2  Prefactor      .0000        9.6485        .87866E-07** at limit **
   3  norm          6.7981        9.7163        .21766E-07   -.10408E-03
   4  norm           .0000        1.8750        .14154E-07** at limit **
   5  norm          .72792        .34492        .31369E-08    .53697E-03
   6  Prefactor      .0000        4.7267       -.33289E-07** at limit **
   7  Prefactor     .85322        1.8903        .44526E-09    .10321E-03
   8  norm          .49960E-09    15.714        .43058E-06** at limit **
   9  Prefactor     63.129        4.8169        .62158E-07   -.10157E-01
  10  Prefactor     21.609        2.9230        .51661E-07   -.86055E-02
  11  Prefactor     10.962        1.7412        .11660E-07   -.21346E-02
  12  norm          1.6818        4.0701        .14669E-07   -.11396E-02
  13  Prefactor     24.800        85.751        .41469E-06   -.58064E-04
  14  Prefactor     1.5672        34.281       -.68571E-07   -.95071E-05
  15  Prefactor      .0000        2.6615       -.32723E-07** at limit **
  16  norm          .14488E-07    162.74       -.24051E-05** at limit **
  17  Prefactor     .55511E-10    29.269        .45987E-06** at limit **
  18  Prefactor     16.688        19.895        .25223E-07   -.17493E-02
  19  norm          2.2845        1.3564       -.37445E-07   -.80026E-02
  20  Prefactor     7.0733        16.275       -.13172E-06   -.69452E-03
  21  norm          .38858E-09    15.195       -.53117E-06** at limit **
  22  norm           .0000        2.5993       -.36352E-07** at limit **
  23  norm           .0000        4.6585        .49685E-07** at limit **
  24  Prefactor      .0000        36.936       -.37717E-06** at limit **
  25  Prefactor      .0000        32.849        .11132E-06** at limit **
  26  norm          1.1025        4.8024       -.22359E-06    .17610E-03
  27  Normalizat    1.2845        .26063        .15054E-05   -.31717E-04
  28  Prefactor     .77151        .23784       -.19616E-05   -.29733E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.48846
  Prefactor  = 0
  norm       = 6.79811
  norm       = 0
  norm       = 0.727919
  Prefactor  = 0
  Prefactor  = 0.853216
  norm       = 4.996e-10
  Prefactor  = 63.1291
  Prefactor  = 21.6087
  Prefactor  = 10.9622
  norm       = 1.68182
  Prefactor  = 24.7997
  Prefactor  = 1.56724
  Prefactor  = 0
  norm       = 1.44884e-08
  Prefactor  = 5.55112e-11
  Prefactor  = 16.6878
  norm       = 2.28451
  Prefactor  = 7.07329
  norm       = 3.88578e-10
  norm       = 0
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 1.10254
  Normalizat = 1.28451
  Prefactor  = 0.771508
 **********
 **   18 **HESSE 
 **********

 FCN=   4872.400     FROM HESSE     STATUS=OK           585 CALLS     4175 TOTAL
                     EDM=   .36E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4885        9.3527        .47241E-03   -1.5666    
   2  Prefactor      .0000        9.6362        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.7981        9.7558        .38525E-03   -1.5656    
   4  norm           .0000        1.8772        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .72792        .34479        .58480E-03   -1.5691    
   6  Prefactor      .0000        4.7237        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .85322        1.9109        .49177E-03   -1.5689    
   8  norm          .49960E-09    15.853        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     63.129        51.929        .12597E-03   -1.5549    
  10  Prefactor     21.609        20.576        .21532E-03   -1.5615    
  11  Prefactor     10.962        26.824        .30145E-03   -1.5642    
  12  norm          1.6818        4.2132        .78040E-03   -1.5682    
  13  Prefactor     24.800        87.575        .21747E-03   -1.5608    
  14  Prefactor     1.5672        34.599        .85445E-03   -1.5683    
  15  Prefactor      .0000        2.6595        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .14488E-07    5.1702        .52335E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .55511E-10    29.327        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.688        19.850        .24371E-03   -1.5626    
  19  norm          2.2845        1.2917        .67985E-03   -1.5678    
  20  Prefactor     7.0733        16.476        .37726E-03   -1.5655    
  21  norm          .38858E-09    15.288        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm           .0000        2.5984        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm           .0000        4.6633        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor      .0000        36.882        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor      .0000        32.966        .13098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.1025        4.8154        .11349E-02   -1.5687    
  27  Normalizat    1.2845        .21922        .52309E-01   -.84030    
  28  Prefactor     .77151        .19786        .43339E-01   -1.0079    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.61218e-07
Minuit parameter uncertainties:
  1  9.35272
  2  8.36988e-06
  3  9.75582
  4  2.1482e-06
  5  0.34479
  6  6.75068e-06
  7  1.91092
  8  0.000176633
  9  51.929
  10  20.5756
  11  26.8242
  12  4.21323
  13  87.5793
  14  14.7276
  15  9.0004e-07
  16  0.000547481
  17  7.62408e-05
  18  19.8496
  19  1.29171
  20  16.4763
  21  0.000150362
  22  3.39086e-06
  23  4.65351e-06
  24  5.34546e-05
  25  5.28388e-05
  26  4.60834
  27  0.219378
  28  0.19804
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  2.161e+01  2.058e+01  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:  7.715e-01  1.980e-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.285e+00  2.194e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.20
Ra Dec: 338.971 -36.461
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 3.02e-08 +/- 2.88e-08
Energy Flux (Fixed Index): 1.29e-05 +/- 1.23e-05

TS (Fixed Index): 2.20
Ra Dec: 338.971 -36.461
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/982416/likelihoodResults_700185601_700444801_4FGL_J2235.8-3627_daily_bin1778.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) = 4872.18747367
delta logL = 0.212918753391

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4872.1754154
delta logL = 0.22497703007

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.753       1.0000          .0000       .10000E+07
     2 'Index     '    1.8229       1.0000          .0000       10.000    
     3 'Normalizat'    1.2968       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76252       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=   4872.175     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      235 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.753        1254.8        .18985E-03    .66331E-03
   2  Index         1.8227        5.0460        .22098        .30775E-06
   3  Normalizat    1.2968        .21357        .52090E-01    .24149E-05
   4  Prefactor     .76252        .18428        .62003E-01    .15180E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.7534
  Index      = 1.82275
  Normalizat = 1.29684
  Prefactor  = 0.762518
 **********
 **   18 **HESSE 
 **********

 FCN=   4872.175     FROM HESSE     STATUS=OK            31 CALLS      266 TOTAL
                     EDM=   .99E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.753        25.460        .75941E-05   -1.5603    
   2  Index         1.8227        .55591        .82157E-02   -.68859    
   3  Normalizat    1.2968        .24485        .23031E-03   -.83661    
   4  Prefactor     .76252        .23077        .27425E-03   -1.0113    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.87772e-12
Minuit parameter uncertainties:
  1  25.4596
  2  0.557845
  3  0.245064
  4  0.231064
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/982416': 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) = 4872.17541537
delta logL = 0.224977056285

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  2.775e+01  2.546e+01  0.000e+00  1.000e+06 ( 1.000e-13)
273        Index:  1.823e+00  5.578e-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.625e-01  2.311e-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.297e+00  2.451e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.65
Ra Dec: 338.971 -36.461
Photon Index (Free Index): 1.82 +/- 0.56
Photon Flux (Free Index): 2.26e-08 +/- 2.42e-08
Energy Flux (Free Index): 2.53e-05 +/- 3.60e-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/982416/cmap_HighResolution_700185601_700444801_4FGL_J2235.8-3627_daily_bin1778.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.01e-03', comment='SUCCESS', photon_flux='3.02e-08', energy_flux2='2.53e-05', photon_flux_error='2.88e-08', dlogl='2.25e-01', energy_flux='1.29e-05', photon_flux2='2.26e-08', job_status='DONE', time_completed='2023-03-14 02:32:10.480039', photon_index_error2='0.56', photon_index2='1.82', ts='2.20', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='3.60e-05', EG='1.28', time_epoch_completed='1678786330.48', return_code='0', job_id='982416', GAL2='0.76', EG2='1.30', return_code2='0', energy_flux_error='1.23e-05', photon_flux_error2='2.42e-08', ts2='2.65', photon_index='2.23' WHERE bin_id='1778' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Mar 14 02:32:10 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0177>
Subject: Job 982416: <4FGL_J2235.8-3627_daily_bin1778> in cluster <slac> Done

Job <4FGL_J2235.8-3627_daily_bin1778> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Mar 14 02:20:21 2023
Job was executed on host(s) <bullet0177>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar 14 02:20:22 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar 14 02:20:22 2023
Terminated at Tue Mar 14 02:32:10 2023
Results reported at Tue Mar 14 02:32:10 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1778 338.971 -36.4605 700185601 700444801 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 :                                   665.41 sec.
    Max Memory :                                 634 MB
    Average Memory :                             291.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2929 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   708 sec.
    Turnaround time :                            709 sec.

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

