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


Performing analysis on: 4FGL_J2235.8-3627_daily_bin1707
RA = 338.971, Dec = -36.4605
tmin = 681782401, tmax = 682041601
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='551512', job_status='RUN', time_executed='2022-08-13 00:37:55.503179', time_epoch_executed='1660376275.5' WHERE source_name='4FGL J2235.8-3627' and cadence='daily' and bin_id='1707'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/551512

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/551512/ft1_4FGL_J2235.8-3627_daily_bin1707.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/551512/ft2_4FGL_J2235.8-3627_daily_bin1707.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/551512/ft1_4FGL_J2235.8-3627_daily_bin1707.fits outfile=/scratch/kocevski/551512/ft1_filteredMKT_4FGL_J2235.8-3627_daily_bin1707.fits ra=338.971 dec=-36.4605 rad=12.0 tmin=681782401.0 tmax=682041601.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 5.46
user 5.16
sys 0.25

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

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

Number of photons that the gtmktime cut: 487

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/551512/ft1_filtered_4FGL_J2235.8-3627_daily_bin1707.fits" evtable="EVENTS" scfile=/scratch/kocevski/551512/ft2_4FGL_J2235.8-3627_daily_bin1707.fits sctable="SC_DATA" outfile=/scratch/kocevski/551512/ltcube_681782401_682041601_4FGL_J2235.8-3627_daily_bin1707.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/551512/ft2_4FGL_J2235.8-3627_daily_bin1707.fits
.....................!
real 12.14
user 11.75
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/551512/ft1_filtered_4FGL_J2235.8-3627_daily_bin1707.fits evtable="EVENTS" scfile=/scratch/kocevski/551512/ft2_4FGL_J2235.8-3627_daily_bin1707.fits sctable="SC_DATA" expcube=/scratch/kocevski/551512/ltcube_681782401_682041601_4FGL_J2235.8-3627_daily_bin1707.fits outfile=/scratch/kocevski/551512/expmap_681782401_682041601_4FGL_J2235.8-3627_daily_bin1707.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/551512/ltcube_681782401_682041601_4FGL_J2235.8-3627_daily_bin1707.fits
.....................!
real 190.69
user 185.17
sys 5.16

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/551512/ft1_filtered_4FGL_J2235.8-3627_daily_bin1707.fits scfile=/scratch/kocevski/551512/ft2_4FGL_J2235.8-3627_daily_bin1707.fits outfile=/scratch/kocevski/551512/cmap_681782401_682041601_4FGL_J2235.8-3627_daily_bin1707.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/551512/ft1_filtered_4FGL_J2235.8-3627_daily_bin1707.fits scfile=/scratch/kocevski/551512/ft2_4FGL_J2235.8-3627_daily_bin1707.fits outfile=/scratch/kocevski/551512/cmap_HighResolution_681782401_682041601_4FGL_J2235.8-3627_daily_bin1707.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/551512/ft1_filtered_4FGL_J2235.8-3627_daily_bin1707.fits evtable="EVENTS" scfile=/scratch/kocevski/551512/ft2_4FGL_J2235.8-3627_daily_bin1707.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/551512/Model_4FGL_J2235.8-3627_daily_bin1707.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/551512/ft1_filtered_4FGL_J2235.8-3627_daily_bin1707.fits.....................!
real 43.42
user 42.13
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    16.253       1.0000         .10000E-03   10000.    
     5 'norm      '    .67080       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .56270       1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.8371       1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.8032       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11146E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.6175       1.0000         .10000E-03   10000.    
    19 'norm      '    .73481       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.6611       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    14.470       1.0000         .10000E-03   10000.    
    25 'Prefactor '    36.371       1.0000         .10000E-03   10000.    
    26 'Prefactor '    36.749       1.0000         .10000E-03   10000.    
    27 'norm      '    .10107E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2145       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .76796       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=   5278.548     FROM MIGRAD    STATUS=CONVERGED    686 CALLS     3624 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.7841       -.14837E-07** at limit **
   2  Prefactor     .10000E-03    9.4848        .62866E-08** at limit **
   3  norm          .10000E-03    2.6672        .50736E-07** at limit **
   4  norm          16.253        6.2420        .10052E-06   -.51821E-04
   5  norm          .67083        .35729        .49832E-08    .14372E-04
   6  Prefactor     .10000E-03    3.9838       -.54979E-07** at limit **
   7  Prefactor     .55107        3.2243        .16972E-05   -.60557E-03
   8  norm          .10000E-03    10.384       -.23606E-06** at limit **
   9  Prefactor     .10000E-03    11.912       -.38383E-06** at limit **
  10  Prefactor     .10000E-03    6.8524        .95652E-07** at limit **
  11  Prefactor     3.8369        8.5139        .54949E-05   -.29458E-03
  12  norm          .10000E-03    .89307        .51321E-07** at limit **
  13  Prefactor     .10000E-03    22.056        .55735E-06** at limit **
  14  Prefactor     .10000E-03    9.1645        .30778E-06** at limit **
  15  Prefactor     .10000E-03    6.4226       -.40505E-06** at limit **
  16  norm          2.8028        5.2243        .29479E-06   -.11695E-03
  17  Prefactor     .10000E-03    14.419        .15133E-05** at limit **
  18  Prefactor     6.6483        15.746        .58772E-05    .11969E-03
  19  norm          .73268        1.1164       -.10732E-05    .11781E-03
  20  Prefactor     .10000E-03    13.690        .38051E-07** at limit **
  21  Prefactor     9.6582        11.977       -.52576E-06   -.17866E-03
  22  norm          .10000E-03    7.2507        .45076E-06** at limit **
  23  norm          .10000E-03    2.5122        .17051E-06** at limit **
  24  norm          14.471        9.4857        .13635E-06   -.94779E-05
  25  Prefactor     36.378        31.188        .80451E-06    .18324E-03
  26  Prefactor     36.726        55.991       -.17893E-05   -.25140E-03
  27  norm          .10000E-03    3.8899        .73302E-06** at limit **
  28  Normalizat    1.2145        .19505       -.22814E-05   -.77706E-04
  29  Prefactor     .76788        .17719        .11291E-05   -.21933E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 16.2529
  norm       = 0.670834
  Prefactor  = 0.0001
  Prefactor  = 0.551072
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.83693
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.8028
  Prefactor  = 0.0001
  Prefactor  = 6.64828
  norm       = 0.732685
  Prefactor  = 0.0001
  Prefactor  = 9.6582
  norm       = 0.0001
  norm       = 0.0001
  norm       = 14.4706
  Prefactor  = 36.3782
  Prefactor  = 36.7255
  norm       = 0.0001
  Normalizat = 1.21452
  Prefactor  = 0.767875
 **********
 **   18 **HESSE 
 **********

 FCN=   5278.548     FROM HESSE     STATUS=OK           547 CALLS     4171 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.7968        .11838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.6887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.6755        .11588E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          16.253        6.2380        .99347E-04   -1.4901    
   5  norm          .67083        .35818        .29637E-04   -1.5544    
   6  Prefactor     .10000E-03    4.0209        .14159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .55107        5.6827        .23464E-02   -1.5560    
   8  norm          .10000E-03    10.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.8631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.8369        8.8263        .10302E-02   -1.5316    
  12  norm          .10000E-03    .90220        .67035E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    22.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.2545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.5188        .18012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.8028        5.1559        .20426E-03   -1.5373    
  17  Prefactor     .10000E-03    14.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.6483        16.417        .15600E-03   -1.5192    
  19  norm          .73268        1.1200        .59413E-03   -1.5537    
  20  Prefactor     .10000E-03    13.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.6582        11.913        .12893E-03   -1.5086    
  22  norm          .10000E-03    7.2918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.5173        .11240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          14.471        9.4851        .10529E-03   -1.4947    
  25  Prefactor     36.378        31.160        .66453E-04   -1.4501    
  26  Prefactor     36.726        57.654        .66112E-04   -1.4495    
  27  norm          .10000E-03    4.0001        .27843E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2145        .22917        .22488E-03   -.86155    
  29  Prefactor     .76788        .20993        .26160E-03   -1.0092    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84972e-09
Minuit parameter uncertainties:
  1  2.93959e-06
  2  5.08167e-06
  3  6.97236e-06
  4  6.23828
  5  0.358177
  6  1.00658e-05
  7  3.53935
  8  9.00221e-05
  9  0.000134494
  10  2.56628e-05
  11  8.82928
  12  1.62438e-06
  13  0.000133722
  14  3.2979e-05
  15  9.72197e-05
  16  5.15671
  17  4.97941e-05
  18  16.4285
  19  1.12
  20  1.66294e-05
  21  11.9155
  22  0.000117855
  23  4.39512e-06
  24  9.48606
  25  31.1739
  26  57.7414
  27  2.18403e-07
  28  0.229363
  29  0.210148
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  7.679e-01  2.101e-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.215e+00  2.294e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 338.971 -36.461
Photon Flux Upper Limit: 4.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.53e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/551512/likelihoodResults_681782401_682041601_4FGL_J2235.8-3627_daily_bin1707.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) = 5278.54899286
delta logL = -0.000690372496138

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5278.54830256
delta logL = -7.46777004679e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2140       1.0000          .0000       10.000    
     3 'Normalizat'    1.2146       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76779       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=   5278.548     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      253 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.601        .18142E-01** at limit **
   2  Index         1.8396        8.6958        .50000       -.34753E-06
   3  Normalizat    1.2145        .75059E-02    .22488E-03   -.10723E-03
   4  Prefactor     .76788        .71461E-02    .26160E-03   -.91349E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.83962
  Normalizat = 1.21452
  Prefactor  = 0.767878
 **********
 **   18 **HESSE 
 **********

 FCN=   5278.548     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      280 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    216.63        .19813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8396        5.0033        .50000       -.68423    
   3  Normalizat    1.2145        .25062E-01    .44976E-04   -.86155    
   4  Prefactor     .76788        .23861E-01    .10464E-04   -1.0092    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.58372e-09
Minuit parameter uncertainties:
  1  2.22131e-06
  2  834.574
  3  0.0250626
  4  0.0238612
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/551512': 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): 102
logL (Free Index) = 5278.5483016
delta logL = 8.89071998245e-07

Extracting fit parameters...

4FGL J2235.8-3627
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  2.221e-06  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  1.840e+00  8.346e+02  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.679e-01  2.386e-02  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.215e+00  2.506e-02  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/551512/cmap_HighResolution_681782401_682041601_4FGL_J2235.8-3627_daily_bin1707.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.53e-03', job_status='DONE', photon_flux_upper_limit='4.62e-08', time_completed='2022-08-13 00:49:54.613923', job_id='551512', GAL2='0.77', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1660376994.61', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='8.89e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1707' AND source_name='4FGL J2235.8-3627' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 13 00:49:54 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 551512: <4FGL_J2235.8-3627_daily_bin1707> in cluster <slac> Done

Job <4FGL_J2235.8-3627_daily_bin1707> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Aug 13 00:35:21 2022
Job was executed on host(s) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 13 00:35:22 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 13 00:35:22 2022
Terminated at Sat Aug 13 00:49:55 2022
Results reported at Sat Aug 13 00:49:55 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2235.8-3627_daily_bin1707 338.971 -36.4605 681782401 682041601 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 :                                   721.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             285.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            874 sec.

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

