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


Performing analysis on: 4FGL_J2231.0-4416_daily_bin1732
RA = 337.758, Dec = -44.2791
tmin = 688262401, tmax = 688521601
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='647640', job_status='RUN', time_executed='2022-10-27 00:37:41.853266', time_epoch_executed='1666856261.85' WHERE source_name='4FGL J2231.0-4416' and cadence='daily' and bin_id='1732'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/647640

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/647640/ft1_4FGL_J2231.0-4416_daily_bin1732.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/647640/ft2_4FGL_J2231.0-4416_daily_bin1732.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/647640/ft1_4FGL_J2231.0-4416_daily_bin1732.fits outfile=/scratch/kocevski/647640/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin1732.fits ra=337.758 dec=-44.2791 rad=12.0 tmin=688262401.0 tmax=688521601.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.50
user 3.26
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/647640/ft2_4FGL_J2231.0-4416_daily_bin1732.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/647640/ft2_4FGL_J2231.0-4416_daily_bin1732.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/647640/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin1732.fits evtable="EVENTS" outfile="/scratch/kocevski/647640/ft1_filtered_4FGL_J2231.0-4416_daily_bin1732.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.33
sys 0.15

Number of photons that the gtmktime cut: 492

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/647640/ft1_filtered_4FGL_J2231.0-4416_daily_bin1732.fits" evtable="EVENTS" scfile=/scratch/kocevski/647640/ft2_4FGL_J2231.0-4416_daily_bin1732.fits sctable="SC_DATA" outfile=/scratch/kocevski/647640/ltcube_688262401_688521601_4FGL_J2231.0-4416_daily_bin1732.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/647640/ft2_4FGL_J2231.0-4416_daily_bin1732.fits
.....................!
real 11.88
user 11.52
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/647640/ft1_filtered_4FGL_J2231.0-4416_daily_bin1732.fits evtable="EVENTS" scfile=/scratch/kocevski/647640/ft2_4FGL_J2231.0-4416_daily_bin1732.fits sctable="SC_DATA" expcube=/scratch/kocevski/647640/ltcube_688262401_688521601_4FGL_J2231.0-4416_daily_bin1732.fits outfile=/scratch/kocevski/647640/expmap_688262401_688521601_4FGL_J2231.0-4416_daily_bin1732.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/647640/ltcube_688262401_688521601_4FGL_J2231.0-4416_daily_bin1732.fits
.....................!
real 191.33
user 185.86
sys 5.12

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 182 point sources and 0 extended sources

Setting source of interest to:
4FGL J2231.0-4416 @ 337.758 -44.2791

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/647640/ft1_filtered_4FGL_J2231.0-4416_daily_bin1732.fits scfile=/scratch/kocevski/647640/ft2_4FGL_J2231.0-4416_daily_bin1732.fits outfile=/scratch/kocevski/647640/cmap_688262401_688521601_4FGL_J2231.0-4416_daily_bin1732.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=337.758 yref=-44.2791 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/647640/ft1_filtered_4FGL_J2231.0-4416_daily_bin1732.fits scfile=/scratch/kocevski/647640/ft2_4FGL_J2231.0-4416_daily_bin1732.fits outfile=/scratch/kocevski/647640/cmap_HighResolution_688262401_688521601_4FGL_J2231.0-4416_daily_bin1732.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=337.758 yref=-44.2791 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/647640/ft1_filtered_4FGL_J2231.0-4416_daily_bin1732.fits evtable="EVENTS" scfile=/scratch/kocevski/647640/ft2_4FGL_J2231.0-4416_daily_bin1732.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/647640/Model_4FGL_J2231.0-4416_daily_bin1732.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/647640/ft1_filtered_4FGL_J2231.0-4416_daily_bin1732.fits.....................!
real 42.43
user 41.18
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/647640/ft1_filtered_4FGL_J2231.0-4416_daily_bin1732.fits', '/scratch/kocevski/647640/ft2_4FGL_J2231.0-4416_daily_bin1732.fits', expMap='/scratch/kocevski/647640/expmap_688262401_688521601_4FGL_J2231.0-4416_daily_bin1732.fits', expCube='/scratch/kocevski/647640/ltcube_688262401_688521601_4FGL_J2231.0-4416_daily_bin1732.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/647640/Model_4FGL_J2231.0-4416_daily_bin1732.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2231.0-4416'

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  1.304e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
306        Index:  2.427e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
307        Scale:  7.453e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/647640/ft1_filtered_4FGL_J2231.0-4416_daily_bin1732.fits
Spacecraft file(s): /scratch/kocevski/647640/ft2_4FGL_J2231.0-4416_daily_bin1732.fits
Exposure map: /scratch/kocevski/647640/expmap_688262401_688521601_4FGL_J2231.0-4416_daily_bin1732.fits
Exposure cube: /scratch/kocevski/647640/ltcube_688262401_688521601_4FGL_J2231.0-4416_daily_bin1732.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/647640/Model_4FGL_J2231.0-4416_daily_bin1732.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) = 5347.48248828

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30813E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    28.094       1.0000          .0000       .10000E+07
     3 'Prefactor '    .42595E-01   1.0000          .0000       .10000E+07
     4 'norm      '    13.975       1.0000          .0000       .10000E+07
     5 'Prefactor '    12.612       1.0000          .0000       .10000E+07
     6 'Prefactor '    .62993E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .26645E-08   1.0000          .0000       .10000E+07
     8 'Prefactor '    .25201       1.0000          .0000       .10000E+07
     9 'Prefactor '    9.2481       1.0000          .0000       .10000E+07
    10 'Prefactor '    115.85       1.0000          .0000       .10000E+07
    11 'norm      '    7.3191       1.0000          .0000       .10000E+07
    12 'Prefactor '    .35932E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .39359E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .57765E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .26767E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .10991E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    .30087E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .23955E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .80629E-05   1.0000          .0000       .10000E+07
    20 'Prefactor '    16.749       1.0000          .0000       .10000E+07
    21 'Prefactor '    36.131       1.0000          .0000       .10000E+07
    22 'norm      '    15.604       1.0000          .0000       .10000E+07
    23 'norm      '    10.415       1.0000          .0000       .10000E+07
    24 'norm      '    .80753E-04   1.0000          .0000       .10000E+07
    25 'Prefactor '    .18075E-04   1.0000          .0000       .10000E+07
    26 'Prefactor '    .68807E-02   1.0000          .0000       .10000E+07
    27 'norm      '    .24797E-04   1.0000          .0000       .10000E+07
    28 'Prefactor '    .71770E-05   1.0000          .0000       .10000E+07
    29 'norm      '    1.1347       1.0000          .0000       .10000E+07
    30 'Normalizat'    1.1602       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .75157       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5347.420     FROM MIGRAD    STATUS=CONVERGED    220 CALLS     2942 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .63116E-07    36.598       -.47182E-06** at limit **
   2  Prefactor     29.248        13.100       -.19166E-06    .60720E-01
   3  Prefactor     .48985E-01    64.233        .18238E-05** at limit **
   4  norm          13.841        6.0583        .66585E-07    .19259E-02
   5  Prefactor     12.629        2.0863       -.55945E-07    .60428E-02
   6  Prefactor     .89373E-08    5.9954        .84938E-07** at limit **
   7  Prefactor     .47740E-08    11.710        .26131E-06** at limit **
   8  Prefactor     .12895E-03    49.412       -.18489E-05** at limit **
   9  Prefactor     9.2326        4.6018       -.86082E-07    .29362E-02
  10  Prefactor     123.18        91.754        .87012E-06   -.31581E-01
  11  norm          7.3027        6.2707        .37952E-07    .14274E-02
  12  Prefactor      .0000        4.7912       -.69577E-07** at limit **
  13  Prefactor     .16653E-09    2.1415        .15230E-07** at limit **
  14  Prefactor     .29809E-07    16.202        .31105E-06** at limit **
  15  Prefactor     .55511E-10    4.9952        .14873E-06** at limit **
  16  Prefactor     .18857E-06    41.130        .10027E-05** at limit **
  17  Prefactor     .11785E-06    6.1473       -.12323E-06** at limit **
  18  Prefactor     .25852E-06    7.2774       -.94260E-07** at limit **
  19  Prefactor      .0000        1.7943        .72760E-07** at limit **
  20  Prefactor     16.530        1.9266        .15982E-07    .15963E-01
  21  Prefactor     36.136        1.7902       -.87563E-08    .18461E-01
  22  norm          15.659        5.1689       -.10946E-06    .14978    
  23  norm          10.418        6.7619        .72901E-07    .90295E-01
  24  norm           .0000        2.4173       -.39050E-08** at limit **
  25  Prefactor     .27756E-09    2.2361       -.14050E-07** at limit **
  26  Prefactor     .39635E-07    19.324       -.43420E-06** at limit **
  27  norm           .0000        1.9074       -.28461E-07** at limit **
  28  Prefactor     .99920E-08    6.1099       -.23894E-06** at limit **
  29  norm          1.1345        .96683        .63128E-08    .21545E-03
  30  Normalizat    1.1605        .20116       -.26075E-06    .13438E-03
  31  Prefactor     .75071        .18712        .12389E-05    .13256E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.31162e-08
  Prefactor  = 29.2482
  Prefactor  = 0.0489854
  norm       = 13.8408
  Prefactor  = 12.6286
  Prefactor  = 8.9373e-09
  Prefactor  = 4.77396e-09
  Prefactor  = 0.00012895
  Prefactor  = 9.23261
  Prefactor  = 123.181
  norm       = 7.30272
  Prefactor  = 0
  Prefactor  = 1.66533e-10
  Prefactor  = 2.98095e-08
  Prefactor  = 5.55112e-11
  Prefactor  = 1.88571e-07
  Prefactor  = 1.1785e-07
  Prefactor  = 2.58515e-07
  Prefactor  = 0
  Prefactor  = 16.5298
  Prefactor  = 36.1358
  norm       = 15.6592
  norm       = 10.4181
  norm       = 0
  Prefactor  = 2.77556e-10
  Prefactor  = 3.9635e-08
  norm       = 0
  Prefactor  = 9.99201e-09
  norm       = 1.13452
  Normalizat = 1.16046
  Prefactor  = 0.750706
 **********
 **   18 **HESSE 
 **********

 FCN=   5347.420     FROM HESSE     STATUS=OK           690 CALLS     3632 TOTAL
                     EDM=   .57E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .63116E-07    37.689        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     29.248        33.793        .18870E-03   -1.5600    
   3  Prefactor     .48985E-01    2.0954        .72752E-02   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          13.841        6.2614        .26767E-03   -1.5634    
   5  Prefactor     12.629        10.885        .28181E-03   -1.5637    
   6  Prefactor     .89373E-08    6.0355        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .47740E-08    11.918        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .12895E-03    5.7514        .88674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.2326        4.6237        .32932E-03   -1.5647    
  10  Prefactor     123.18        109.27        .92915E-04   -1.5486    
  11  norm          7.3027        6.2674        .37050E-03   -1.5654    
  12  Prefactor      .0000        4.8039        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .16653E-09    2.1366        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .29809E-07    16.777        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .55511E-10    4.9749        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .18857E-06    47.655        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .11785E-06    12.996        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .25852E-06    13.263        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        1.7944        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.530        30.167        .24445E-03   -1.5627    
  21  Prefactor     36.136        19.348        .16638E-03   -1.5588    
  22  norm          15.659        13.217        .25328E-03   -1.5629    
  23  norm          10.418        7.0869        .31022E-03   -1.5643    
  24  norm           .0000        2.4118        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .27756E-09    2.2352        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .39635E-07    19.644        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm           .0000        1.9060        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .99920E-08    6.1525        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          1.1345        .99448        .10941E-02   -1.5687    
  30  Normalizat    1.1605        .17726        .51617E-01   -.87834    
  31  Prefactor     .75071        .16260        .43084E-01   -1.0157    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.69393e-07
Minuit parameter uncertainties:
  1  0.00308508
  2  33.793
  3  0.640769
  4  6.26138
  5  10.8847
  6  0.000464947
  7  0.000476861
  8  0.0544664
  9  4.62368
  10  109.274
  11  6.26736
  12  1.52549e-05
  13  3.83239e-05
  14  0.00141423
  15  3.77626e-05
  16  0.00599529
  17  0.00247535
  18  0.00370329
  19  3.01391e-07
  20  30.1675
  21  19.3485
  22  13.2172
  23  7.08687
  24  8.95856e-06
  25  4.74036e-05
  26  0.00176534
  27  1.017e-05
  28  0.000495584
  29  0.994485
  30  0.177348
  31  0.1627
Done.

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

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  1.665e-10  3.832e-05  0.000e+00  1.000e+06 ( 1.000e-12)
306        Index:  2.427e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
307        Scale:  7.453e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  7.507e-01  1.627e-01  0.000e+00  1.000e+01 ( 1.000e+00)
586        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
587        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  1.160e+00  1.773e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 337.758 -44.279
Photon Flux Upper Limit: 7.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/647640/likelihoodResults_688262401_688521601_4FGL_J2231.0-4416_daily_bin1732.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) = 5347.42166829
delta logL = -0.00187406786517

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5347.41979466
delta logL = -4.39744326286e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34667E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.2050       1.0000          .0000       10.000    
     3 'Normalizat'    1.1605       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75070       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5347.420     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      257 TOTAL
                     EDM=   .47E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .13691        .17293E-02** at limit **
   2  Index         4.3858        1.6789       -.30927E-05     .0000    
   3  Normalizat    1.1605        1.1216        .11836E-04    .55000E-05
   4  Prefactor     .75071        1.1002       -.11001E-04   -.25027E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 4.38581
  Normalizat = 1.16046
  Prefactor  = 0.750705
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .13691        .17293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0416        2.3805       -.30927E-05   -.12315    
   3  Normalizat    1.1605        1.1216        .11836E-04   -.87833    
   4  Prefactor     .75071        1.1002       -.11001E-04   -1.0157    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.73142e-12
Minuit parameter uncertainties:
  1  1.28944e-06
  2  1.71266
  3  1.14614
  4  1.13497
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/647640': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 5347.41979422
delta logL = 4.8203219194e-11

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  0.000e+00  1.289e-06  0.000e+00  1.000e+06 ( 1.000e-12)
306        Index:  4.386e+00  1.713e+00  0.000e+00  1.000e+01 (-1.000e+00)
307        Scale:  7.453e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  7.507e-01  1.135e+00  0.000e+00  1.000e+01 ( 1.000e+00)
586        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
587        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  1.160e+00  1.146e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 337.758 -44.279

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/647640/cmap_HighResolution_688262401_688521601_4FGL_J2231.0-4416_daily_bin1732.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.58e-03', job_status='DONE', photon_flux_upper_limit='7.21e-08', time_completed='2022-10-27 00:49:25.446249', job_id='647640', GAL2='0.75', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1666856965.45', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='4.82e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1732' AND source_name='4FGL J2231.0-4416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Oct 27 00:49:25 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 647640: <4FGL_J2231.0-4416_daily_bin1732> in cluster <slac> Done

Job <4FGL_J2231.0-4416_daily_bin1732> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Oct 27 00:35:42 2022
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Oct 27 00:35:43 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Oct 27 00:35:43 2022
Terminated at Thu Oct 27 00:49:26 2022
Results reported at Thu Oct 27 00:49:26 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2231.0-4416_daily_bin1732 337.758 -44.2791 688262401 688521601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2231.0-4416 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   705.54 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            824 sec.

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

