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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1695
RA = 338.971, Dec = -36.4605
tmin = 678672001, tmax = 678931201
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='731235', job_status='RUN', time_executed='2022-07-08 00:37:51.965109', time_epoch_executed='1657265871.97' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1695'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/731235

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/731235/ft1_4FGL_J2235.8-3627_daily_bin1695.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/731235/ft2_4FGL_J2235.8-3627_daily_bin1695.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/731235/ft1_4FGL_J2235.8-3627_daily_bin1695.fits outfile=/scratch/kocevski/731235/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1695.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=678672001.0 tmax=678931201.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.63
user 3.39
sys 0.22

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

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

Number of photons that the gtmktime cut: 413

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/731235/ft1_filtered_4FGL_J2235.8-3627_daily_bin1695.fits" evtable="EVENTS" scfile=/scratch/kocevski/731235/ft2_4FGL_J2235.8-3627_daily_bin1695.fits sctable="SC_DATA" outfile=/scratch/kocevski/731235/ltcube_678672001_678931201_4FGL_J2235.8-3627_daily_bin1695.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/731235/ft2_4FGL_J2235.8-3627_daily_bin1695.fits
.....................!
real 11.77
user 11.42
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/731235/ft1_filtered_4FGL_J2235.8-3627_daily_bin1695.fits evtable="EVENTS" scfile=/scratch/kocevski/731235/ft2_4FGL_J2235.8-3627_daily_bin1695.fits sctable="SC_DATA" expcube=/scratch/kocevski/731235/ltcube_678672001_678931201_4FGL_J2235.8-3627_daily_bin1695.fits outfile=/scratch/kocevski/731235/expmap_678672001_678931201_4FGL_J2235.8-3627_daily_bin1695.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/731235/ltcube_678672001_678931201_4FGL_J2235.8-3627_daily_bin1695.fits
.....................!
real 190.42
user 185.13
sys 4.94

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/731235/ft1_filtered_4FGL_J2235.8-3627_daily_bin1695.fits scfile=/scratch/kocevski/731235/ft2_4FGL_J2235.8-3627_daily_bin1695.fits outfile=/scratch/kocevski/731235/cmap_678672001_678931201_4FGL_J2235.8-3627_daily_bin1695.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.54
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/731235/ft1_filtered_4FGL_J2235.8-3627_daily_bin1695.fits scfile=/scratch/kocevski/731235/ft2_4FGL_J2235.8-3627_daily_bin1695.fits outfile=/scratch/kocevski/731235/cmap_HighResolution_678672001_678931201_4FGL_J2235.8-3627_daily_bin1695.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/731235/ft1_filtered_4FGL_J2235.8-3627_daily_bin1695.fits evtable="EVENTS" scfile=/scratch/kocevski/731235/ft2_4FGL_J2235.8-3627_daily_bin1695.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/731235/Model_4FGL_J2235.8-3627_daily_bin1695.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/731235/ft1_filtered_4FGL_J2235.8-3627_daily_bin1695.fits.....................!
real 39.73
user 38.37
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.7659       1.0000         .10000E-03   10000.    
     3 'norm      '    9.1693       1.0000         .10000E-03   10000.    
     4 'norm      '    .67508       1.0000         .10000E-03   10000.    
     5 'norm      '    .65207       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.5326       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.8185       1.0000         .10000E-03   10000.    
     8 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.996       1.0000         .10000E-03   10000.    
    10 'Prefactor '    28.363       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.233       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10231E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.8275       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .26249E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .36406       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.5295       1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    24.655       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .55871E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .19492E-02   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.4975       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .52610       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=   4615.915     FROM MIGRAD    STATUS=CONVERGED    723 CALLS     4379 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.0641        .10018E-06** at limit **
   2  Prefactor     6.7661        6.7175       -.46966E-06    .28670E-03
   3  norm          9.1732        8.7271        .60319E-06   -.25603E-03
   4  norm          .63303        4.6236       -.43098E-06    .11884E-03
   5  norm          .65306        .41170       -.15342E-07    .81719E-03
   6  Prefactor     7.5313        12.530        .21973E-05   -.43800E-03
   7  Prefactor     3.8171        4.6633        .84198E-07   -.12327E-04
   8  norm          .10000E-03    6.0415       -.74530E-07** at limit **
   9  Prefactor     28.974        48.230       -.38705E-05   -.55946E-04
  10  Prefactor     28.360        22.628       -.47040E-06    .10629E-05
  11  Prefactor     .10000E-03    13.885        .48000E-06** at limit **
  12  norm          .10000E-03    .65828        .59472E-08** at limit **
  13  Prefactor     .10000E-03    13.820        .62035E-06** at limit **
  14  Prefactor     11.229        17.650       -.54852E-06   -.32905E-05
  15  Prefactor     .10000E-03    8.1415        .35214E-06** at limit **
  16  norm          5.8299        5.0028       -.56481E-07   -.37875E-03
  17  Prefactor     .10000E-03    10.317       -.25725E-06** at limit **
  18  Prefactor     .10033E-03    7.6241        .68646E-06** at limit **
  19  norm          .36301        .61191        .60285E-07   -.11289E-02
  20  Prefactor     .10000E-03    17.514       -.12267E-05** at limit **
  21  Prefactor     .10000E-03    9.2426       -.54052E-06** at limit **
  22  norm          .10000E-03    22.859        .19508E-06** at limit **
  23  norm          4.5290        4.5493        .39912E-06    .10269E-03
  24  norm          .10000E-03    4.7362       -.24003E-07** at limit **
  25  Prefactor     24.634        54.054        .11231E-04    .15166E-04
  26  Prefactor     .10001E-03    279.67       -.28604E-04** at limit **
  27  norm          .10031E-03    4.6534       -.23710E-05** at limit **
  28  Normalizat    1.4976        .22702        .13960E-05    .11341E-03
  29  Prefactor     .52608        .19145       -.18678E-05    .18234E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.76609
  norm       = 9.17324
  norm       = 0.633025
  norm       = 0.65306
  Prefactor  = 7.5313
  Prefactor  = 3.81706
  norm       = 0.0001
  Prefactor  = 28.9736
  Prefactor  = 28.3596
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.229
  Prefactor  = 0.0001
  norm       = 5.82993
  Prefactor  = 0.0001
  Prefactor  = 0.000100331
  norm       = 0.36301
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.52898
  norm       = 0.0001
  Prefactor  = 24.6344
  Prefactor  = 0.000100009
  norm       = 0.000100308
  Normalizat = 1.49763
  Prefactor  = 0.526081
 **********
 **   18 **HESSE 
 **********

 FCN=   4615.915     FROM HESSE     STATUS=OK           559 CALLS     4938 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.0985        .14928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.7661        6.7156        .77128E-03   -1.5188    
   3  norm          9.1732        8.7054        .66178E-03   -1.5102    
   4  norm          .63303        20.110        .25011E-02   -1.5549    
   5  norm          .65306        .42650        .30564E-04   -1.5546    
   6  Prefactor     7.5313        12.544        .73061E-03   -1.5159    
   7  Prefactor     3.8171        4.6744        .15214E-03   -1.5317    
   8  norm          .10000E-03    6.0430        .16311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     28.974        48.500        .74403E-04   -1.4631    
  10  Prefactor     28.360        22.610        .75226E-04   -1.4642    
  11  Prefactor     .10000E-03    13.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .65957        .53828E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.229        17.794        .11954E-03   -1.5038    
  15  Prefactor     .10000E-03    8.2045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.8299        4.7518        .12363E-03   -1.5225    
  17  Prefactor     .10000E-03    10.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10033E-03    59.731        .30129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .36301        .50915        .57244E-03   -1.5587    
  20  Prefactor     .10000E-03    17.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.3024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    22.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.5290        4.5518        .13964E-03   -1.5282    
  24  norm          .10000E-03    4.7546        .14439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     24.634        54.140        .80675E-04   -1.4715    
  26  Prefactor     .10001E-03    285.90        .42203E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10031E-03    72.430        .24619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.4976        .27226        .21549E-03   -.77845    
  29  Prefactor     .52608        .22419        .31214E-03   -1.1079    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06051e-08
Minuit parameter uncertainties:
  1  2.24073e-06
  2  6.71635
  3  8.70662
  4  7.13793
  5  0.426503
  6  12.5484
  7  4.67489
  8  4.18545e-06
  9  48.5658
  10  22.6166
  11  3.63683e-05
  12  5.44934e-07
  13  2.24899e-05
  14  17.8027
  15  1.5004e-05
  16  4.75213
  17  2.77764e-05
  18  0.00890202
  19  0.509153
  20  6.58452e-05
  21  4.18089e-05
  22  7.55318e-06
  23  4.55219
  24  3.14626e-06
  25  54.2482
  26  0.00324425
  27  0.0094577
  28  0.272525
  29  0.224565
Done.

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

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  2.836e+01  2.262e+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:  5.261e-01  2.246e-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.498e+00  2.725e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.90
Ra Dec: 338.971 -36.461
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 3.97e-08 +/- 3.16e-08
Energy Flux (Fixed Index): 1.69e-05 +/- 1.35e-05

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

Saving results to:
/scratch/kocevski/731235/likelihoodResults_678672001_678931201_4FGL_J2235.8-3627_daily_bin1695.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) = 4615.53019265
delta logL = 0.385274153226

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4615.51514524
delta logL = 0.400321571823

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.690       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7567       1.0000          .0000       10.000    
     3 'Normalizat'    1.5117       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .51916       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=   4615.515     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      243 TOTAL
                     EDM=   .89E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.694        26.617        .35042E-03   -.40223E-04
   2  Index         1.7569        .50458        .76313E-02   -.10835E-04
   3  Normalizat    1.5119        .24103        .21466E-03   -.28864E-03
   4  Prefactor     .51905        .21829        .31408E-03   -.17523E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.6944
  Index      = 1.75693
  Normalizat = 1.51188
  Prefactor  = 0.519054
 **********
 **   18 **HESSE 
 **********

 FCN=   4615.515     FROM HESSE     STATUS=OK            25 CALLS      268 TOTAL
                     EDM=   .89E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.694        26.739        .70084E-04   -1.4564    
   2  Index         1.7569        .50693        .30525E-03   -.70576    
   3  Normalizat    1.5119        .24118        .42931E-04   -.77445    
   4  Prefactor     .51905        .21843        .12563E-04   -1.1111    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.87137e-11
Minuit parameter uncertainties:
  1  26.7487
  2  0.508438
  3  0.241361
  4  0.218784
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/731235': 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) = 4615.51514493
delta logL = 0.400321874906

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  3.269e+01  2.675e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  1.757e+00  5.084e-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:  5.191e-01  2.188e-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.512e+00  2.414e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.71
Ra Dec: 338.971 -36.461
Photon Index (Free Index): 1.76 +/- 0.51
Photon Flux (Free Index): 2.48e-08 +/- 2.61e-08
Energy Flux (Free Index): 3.39e-05 +/- 4.07e-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/731235/cmap_HighResolution_678672001_678931201_4FGL_J2235.8-3627_daily_bin1695.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.00e-03', comment='SUCCESS', photon_flux='3.97e-08', energy_flux2='3.39e-05', photon_flux_error='3.16e-08', dlogl='4.00e-01', energy_flux='1.69e-05', photon_flux2='2.48e-08', job_status='DONE', time_completed='2022-07-08 00:49:26.315236', photon_index_error2='0.51', photon_index2='1.76', ts='3.90', fit_tolerance='1e-08', GAL='0.53', photon_index_error='0.00', photon_flux_upper_limit='1.18e-07', energy_flux_error2='4.07e-05', EG='1.50', time_epoch_completed='1657266566.32', return_code='0', job_id='731235', GAL2='0.52', EG2='1.51', return_code2='0', energy_flux_error='1.35e-05', photon_flux_error2='2.61e-08', ts2='4.71', photon_index='2.23' WHERE bin_id='1695' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul  8 00:49:26 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 731235: <4FGL_J2235.8-3627_daily_bin1695> in cluster <slac> Done

Job <4FGL_J2235.8-3627_daily_bin1695> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Jul  8 00:35:21 2022
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jul  8 00:35:22 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jul  8 00:35:22 2022
Terminated at Fri Jul  8 00:49:27 2022
Results reported at Fri Jul  8 00:49:27 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1695 338.971 -36.4605 678672001 678931201 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 :                                   695.28 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             253.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   844 sec.
    Turnaround time :                            846 sec.

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

