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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1757
RA = 338.971, Dec = -36.4605
tmin = 694742401, tmax = 695001601
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='228051', job_status='RUN', time_executed='2023-01-10 02:43:12.510014', time_epoch_executed='1673347392.51' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1757'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/228051

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/228051/ft1_4FGL_J2235.8-3627_daily_bin1757.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/228051/ft2_4FGL_J2235.8-3627_daily_bin1757.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/228051/ft1_4FGL_J2235.8-3627_daily_bin1757.fits outfile=/scratch/kocevski/228051/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1757.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=694742401.0 tmax=695001601.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.01
user 2.74
sys 0.20

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

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

Number of photons that the gtmktime cut: 542

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/228051/ft1_filtered_4FGL_J2235.8-3627_daily_bin1757.fits" evtable="EVENTS" scfile=/scratch/kocevski/228051/ft2_4FGL_J2235.8-3627_daily_bin1757.fits sctable="SC_DATA" outfile=/scratch/kocevski/228051/ltcube_694742401_695001601_4FGL_J2235.8-3627_daily_bin1757.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/228051/ft2_4FGL_J2235.8-3627_daily_bin1757.fits
.....................!
real 17.11
user 16.59
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/228051/ft1_filtered_4FGL_J2235.8-3627_daily_bin1757.fits evtable="EVENTS" scfile=/scratch/kocevski/228051/ft2_4FGL_J2235.8-3627_daily_bin1757.fits sctable="SC_DATA" expcube=/scratch/kocevski/228051/ltcube_694742401_695001601_4FGL_J2235.8-3627_daily_bin1757.fits outfile=/scratch/kocevski/228051/expmap_694742401_695001601_4FGL_J2235.8-3627_daily_bin1757.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/228051/ltcube_694742401_695001601_4FGL_J2235.8-3627_daily_bin1757.fits
.....................!
real 192.48
user 186.82
sys 5.07

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/228051/ft1_filtered_4FGL_J2235.8-3627_daily_bin1757.fits scfile=/scratch/kocevski/228051/ft2_4FGL_J2235.8-3627_daily_bin1757.fits outfile=/scratch/kocevski/228051/cmap_694742401_695001601_4FGL_J2235.8-3627_daily_bin1757.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/228051/ft1_filtered_4FGL_J2235.8-3627_daily_bin1757.fits scfile=/scratch/kocevski/228051/ft2_4FGL_J2235.8-3627_daily_bin1757.fits outfile=/scratch/kocevski/228051/cmap_HighResolution_694742401_695001601_4FGL_J2235.8-3627_daily_bin1757.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.56
user 0.38
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/228051/ft1_filtered_4FGL_J2235.8-3627_daily_bin1757.fits evtable="EVENTS" scfile=/scratch/kocevski/228051/ft2_4FGL_J2235.8-3627_daily_bin1757.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/228051/Model_4FGL_J2235.8-3627_daily_bin1757.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/228051/ft1_filtered_4FGL_J2235.8-3627_daily_bin1757.fits.....................!
real 47.66
user 46.15
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/228051/ft1_filtered_4FGL_J2235.8-3627_daily_bin1757.fits', '/scratch/kocevski/228051/ft2_4FGL_J2235.8-3627_daily_bin1757.fits', expMap='/scratch/kocevski/228051/expmap_694742401_695001601_4FGL_J2235.8-3627_daily_bin1757.fits', expCube='/scratch/kocevski/228051/ltcube_694742401_695001601_4FGL_J2235.8-3627_daily_bin1757.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/228051/Model_4FGL_J2235.8-3627_daily_bin1757.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/228051/ft1_filtered_4FGL_J2235.8-3627_daily_bin1757.fits
Spacecraft file(s): /scratch/kocevski/228051/ft2_4FGL_J2235.8-3627_daily_bin1757.fits
Exposure map: /scratch/kocevski/228051/expmap_694742401_695001601_4FGL_J2235.8-3627_daily_bin1757.fits
Exposure cube: /scratch/kocevski/228051/ltcube_694742401_695001601_4FGL_J2235.8-3627_daily_bin1757.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/228051/Model_4FGL_J2235.8-3627_daily_bin1757.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5873.75756774

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .76452E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    18.537       1.0000          .0000       .10000E+07
     3 'norm      '    5.1060       1.0000          .0000       .10000E+07
     4 'norm      '    2.7721       1.0000          .0000       .10000E+07
     5 'norm      '    1.3724       1.0000          .0000       .10000E+07
     6 'Prefactor '    1.3674       1.0000          .0000       .10000E+07
     7 'Prefactor '    .23981E-07   1.0000          .0000       .10000E+07
     8 'norm      '    .12022E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .11190E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    29.014       1.0000          .0000       .10000E+07
    11 'Prefactor '    .73441E-07   1.0000          .0000       .10000E+07
    12 'norm      '    7.9536       1.0000          .0000       .10000E+07
    13 'Prefactor '    3.7789       1.0000          .0000       .10000E+07
    14 'Prefactor '    20.475       1.0000          .0000       .10000E+07
    15 'Prefactor '    .97479E-04   1.0000          .0000       .10000E+07
    16 'norm      '    .44927       1.0000          .0000       .10000E+07
    17 'Prefactor '    3.8271       1.0000          .0000       .10000E+07
    18 'Prefactor '    2.2685       1.0000          .0000       .10000E+07
    19 'norm      '    2.5375       1.0000          .0000       .10000E+07
    20 'Prefactor '    .74362E-03   1.0000          .0000       .10000E+07
    21 'norm      '    .21599E-03   1.0000          .0000       .10000E+07
    22 'norm      '    .78889E-05   1.0000          .0000       .10000E+07
    23 'norm      '    3.5607       1.0000          .0000       .10000E+07
    24 'Prefactor '    .10858E-03   1.0000          .0000       .10000E+07
    25 'Prefactor '    22.174       1.0000          .0000       .10000E+07
    26 'norm      '    9.0177       1.0000          .0000       .10000E+07
    27 'Normalizat'    1.1660       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .75123       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=   5873.677     FROM MIGRAD    STATUS=CONVERGED    189 CALLS     2011 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13338E-05    15.877       -.32000E-06** at limit **
   2  Prefactor     18.648        14.072        .51817E-07   -.91640E-02
   3  norm          5.1079        5.0941        .25107E-07   -.87779E-04
   4  norm          2.7839        6.3039        .36170E-07    .79627E-03
   5  norm          1.3723        .47748       -.12346E-07    .21073E-02
   6  Prefactor     1.3892        10.892       -.34385E-06    .59891E-03
   7  Prefactor      .0000        1.1300       -.11461E-06** at limit **
   8  norm          .10048E-07    13.760       -.11249E-06** at limit **
   9  Prefactor     .41778E-06    8.1526       -.20918E-06** at limit **
  10  Prefactor     28.961        2.8768       -.22706E-07    .16948E-01
  11  Prefactor     .11559E-05    27.125        .13799E-06** at limit **
  12  norm          7.8955        3.7069        .71708E-07    .14813E-03
  13  Prefactor     5.5895        215.76       -.37628E-05   -.22391E-02
  14  Prefactor     20.483        3.5869        .45201E-08    .95099E-01
  15  Prefactor      .0000        2.7338        .20313E-06** at limit **
  16  norm          .56114        10.092       -.58374E-06   -.52993E-03
  17  Prefactor     3.7592        12.840       -.44286E-06   -.18324E-01
  18  Prefactor     2.2396        23.509        .62632E-06    .12496E-01
  19  norm          2.5330        1.0751       -.26872E-08    .28555E-03
  20  Prefactor     .64582E-06    6.7370       -.21519E-06** at limit **
  21  norm          .22204E-09    4.4518       -.10858E-06** at limit **
  22  norm           .0000        1.8032        .10488E-07** at limit **
  23  norm          3.5627        5.5802       -.10599E-06    .86038E-03
  24  Prefactor     .26645E-06    7.6427       -.20500E-06** at limit **
  25  Prefactor     22.703        19.314       -.33634E-06    .10191    
  26  norm          9.0252        4.4723        .12787E-07    .63384E-03
  27  Normalizat    1.1649        .24008        .18397E-05   -.41065E-04
  28  Prefactor     .75127        .22743        .12614E-05   -.37672E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.33382e-06
  Prefactor  = 18.6476
  norm       = 5.1079
  norm       = 2.78393
  norm       = 1.37226
  Prefactor  = 1.38915
  Prefactor  = 0
  norm       = 1.00475e-08
  Prefactor  = 4.17777e-07
  Prefactor  = 28.9608
  Prefactor  = 1.15591e-06
  norm       = 7.89551
  Prefactor  = 5.58953
  Prefactor  = 20.4832
  Prefactor  = 0
  norm       = 0.561142
  Prefactor  = 3.75915
  Prefactor  = 2.23959
  norm       = 2.533
  Prefactor  = 6.45817e-07
  norm       = 2.22045e-10
  norm       = 0
  norm       = 3.56273
  Prefactor  = 2.66454e-07
  Prefactor  = 22.7029
  norm       = 9.02522
  Normalizat = 1.16488
  Prefactor  = 0.751269
 **********
 **   18 **HESSE 
 **********

 FCN=   5873.677     FROM HESSE     STATUS=OK           583 CALLS     2594 TOTAL
                     EDM=   .42E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13338E-05    23.753        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     18.648        14.077        .23235E-03   -1.5622    
   3  norm          5.1079        5.0959        .44471E-03   -1.5663    
   4  norm          2.7839        6.3221        .61099E-03   -1.5675    
   5  norm          1.3723        .47586        .65338E-03   -1.5685    
   6  Prefactor     1.3892        11.028        .93253E-03   -1.5684    
   7  Prefactor      .0000        1.1296        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10048E-07    13.758        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .41778E-06    18.524        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     28.961        21.025        .18568E-03   -1.5600    
  11  Prefactor     .11559E-05    29.105        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.8955        3.7752        .35529E-03   -1.5652    
  13  Prefactor     5.5895        239.98        .51907E-03   -1.5661    
  14  Prefactor     20.483        12.512        .22106E-03   -1.5617    
  15  Prefactor      .0000        2.7257        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .56114        12.008        .83987E-03   -1.5693    
  17  Prefactor     3.7592        13.893        .51567E-03   -1.5669    
  18  Prefactor     2.2396        38.559        .68162E-03   -1.5678    
  19  norm          2.5330        1.1230        .64087E-03   -1.5676    
  20  Prefactor     .64582E-06    20.953        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .22204E-09    4.4524        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm           .0000        1.8022        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.5627        5.5850        .53537E-03   -1.5670    
  24  Prefactor     .26645E-06    18.618        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     22.703        34.189        .21242E-03   -1.5613    
  26  norm          9.0252        4.4745        .33352E-03   -1.5648    
  27  Normalizat    1.1649        .19678        .53251E-01   -.87695    
  28  Prefactor     .75127        .18490        .63286E-01   -1.0155    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.15221e-06
Minuit parameter uncertainties:
  1  0.0112576
  2  14.0771
  3  5.09588
  4  6.32208
  5  0.475862
  6  7.8281
  7  5.1408e-06
  8  0.000743205
  9  0.00556367
  10  21.0254
  11  0.0116006
  12  3.77522
  13  73.2522
  14  12.5125
  15  2.50377e-06
  16  5.19164
  17  13.8932
  18  18.5857
  19  1.123
  20  0.00735705
  21  6.54085e-05
  22  2.36008e-06
  23  5.58503
  24  0.00445448
  25  34.1894
  26  4.47453
  27  0.196906
  28  0.185052
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  2.896e+01  2.103e+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.513e-01  1.851e-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.165e+00  1.969e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.10
Ra Dec: 338.971 -36.461
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 4.05e-08 +/- 2.94e-08
Energy Flux (Fixed Index): 1.73e-05 +/- 1.25e-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) = 5873.60757121
delta logL = 0.0697563410667

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5873.60514495
delta logL = 0.0721825958362

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5873.605     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      307 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.720        22.792        .80454E-05    .10584E-02
   2  Index         2.4598        .63958        .68374E-02    .38857E-03
   3  Normalizat    1.1533        .22709        .23645E-03    .37407E-04
   4  Prefactor     .75800        .21993        .27880E-03    .10096E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.7197
  Index      = 2.45983
  Normalizat = 1.15335
  Prefactor  = 0.758005
 **********
 **   18 **HESSE 
 **********

 FCN=   5873.605     FROM HESSE     STATUS=OK            25 CALLS      332 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.720        21.927        .32181E-06   -1.5609    
   2  Index         2.4598        .61505        .13675E-02   -.53290    
   3  Normalizat    1.1533        .22724        .94581E-05   -.88057    
   4  Prefactor     .75800        .22011        .11152E-04   -1.0130    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.84336e-11
Minuit parameter uncertainties:
  1  21.9268
  2  0.617165
  3  0.227434
  4  0.220368
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/228051': 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) = 5873.60514351
delta logL = 0.0721840390952

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  2.472e+01  2.193e+01  0.000e+00  1.000e+06 ( 1.000e-13)
273        Index:  2.460e+00  6.172e-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.580e-01  2.204e-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.153e+00  2.274e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.23
Ra Dec: 338.971 -36.461
Photon Index (Free Index): 2.46 +/- 0.62
Photon Flux (Free Index): 4.96e-08 +/- 4.06e-08
Energy Flux (Free Index): 1.51e-05 +/- 1.13e-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/228051/cmap_HighResolution_694742401_695001601_4FGL_J2235.8-3627_daily_bin1757.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.05e-08', energy_flux2='1.51e-05', photon_flux_error='2.94e-08', dlogl='7.22e-02', energy_flux='1.73e-05', photon_flux2='4.96e-08', job_status='DONE', time_completed='2023-01-10 02:52:47.933990', photon_index_error2='0.62', photon_index2='2.46', ts='4.10', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', energy_flux_error2='1.13e-05', EG='1.16', time_epoch_completed='1673347967.93', return_code='0', job_id='228051', GAL2='0.76', EG2='1.15', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='4.06e-08', ts2='4.23', photon_index='2.23' WHERE bin_id='1757' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jan 10 02:52:47 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 228051: <4FGL_J2235.8-3627_daily_bin1757> in cluster <slac> Done

Job <4FGL_J2235.8-3627_daily_bin1757> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Jan 10 02:40:13 2023
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 10 02:42:12 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan 10 02:42:12 2023
Terminated at Tue Jan 10 02:52:48 2023
Results reported at Tue Jan 10 02:52:48 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1757 338.971 -36.4605 694742401 695001601 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 :                                   577.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             313.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   637 sec.
    Turnaround time :                            755 sec.

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

