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


Performing analysis on: 4FGL_J2231.0-4416_daily_bin1765
RA = 337.758, Dec = -44.2791
tmin = 696816001, tmax = 697075201
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='648344', job_status='RUN', time_executed='2023-02-03 01:46:58.540191', time_epoch_executed='1675417618.54' WHERE source_name='4FGL J2231.0-4416' and cadence='daily' and bin_id='1765'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/648344

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/648344/ft1_4FGL_J2231.0-4416_daily_bin1765.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/648344/ft2_4FGL_J2231.0-4416_daily_bin1765.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/648344/ft1_4FGL_J2231.0-4416_daily_bin1765.fits outfile=/scratch/kocevski/648344/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin1765.fits ra=337.758 dec=-44.2791 rad=12.0 tmin=696816001.0 tmax=697075201.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.66
user 3.44
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/648344/ft2_4FGL_J2231.0-4416_daily_bin1765.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/648344/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin1765.fits evtable="EVENTS" outfile="/scratch/kocevski/648344/ft1_filtered_4FGL_J2231.0-4416_daily_bin1765.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.51
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 412

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/648344/ft1_filtered_4FGL_J2231.0-4416_daily_bin1765.fits" evtable="EVENTS" scfile=/scratch/kocevski/648344/ft2_4FGL_J2231.0-4416_daily_bin1765.fits sctable="SC_DATA" outfile=/scratch/kocevski/648344/ltcube_696816001_697075201_4FGL_J2231.0-4416_daily_bin1765.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/648344/ft2_4FGL_J2231.0-4416_daily_bin1765.fits
.....................!
real 15.13
user 14.76
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/648344/ft1_filtered_4FGL_J2231.0-4416_daily_bin1765.fits evtable="EVENTS" scfile=/scratch/kocevski/648344/ft2_4FGL_J2231.0-4416_daily_bin1765.fits sctable="SC_DATA" expcube=/scratch/kocevski/648344/ltcube_696816001_697075201_4FGL_J2231.0-4416_daily_bin1765.fits outfile=/scratch/kocevski/648344/expmap_696816001_697075201_4FGL_J2231.0-4416_daily_bin1765.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/648344/ltcube_696816001_697075201_4FGL_J2231.0-4416_daily_bin1765.fits
.....................!
real 192.27
user 187.12
sys 4.54

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/648344/ft1_filtered_4FGL_J2231.0-4416_daily_bin1765.fits scfile=/scratch/kocevski/648344/ft2_4FGL_J2231.0-4416_daily_bin1765.fits outfile=/scratch/kocevski/648344/cmap_696816001_697075201_4FGL_J2231.0-4416_daily_bin1765.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.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/648344/ft1_filtered_4FGL_J2231.0-4416_daily_bin1765.fits scfile=/scratch/kocevski/648344/ft2_4FGL_J2231.0-4416_daily_bin1765.fits outfile=/scratch/kocevski/648344/cmap_HighResolution_696816001_697075201_4FGL_J2231.0-4416_daily_bin1765.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.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/648344/ft1_filtered_4FGL_J2231.0-4416_daily_bin1765.fits evtable="EVENTS" scfile=/scratch/kocevski/648344/ft2_4FGL_J2231.0-4416_daily_bin1765.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/648344/Model_4FGL_J2231.0-4416_daily_bin1765.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/648344/ft1_filtered_4FGL_J2231.0-4416_daily_bin1765.fits.....................!
real 38.84
user 37.51
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/648344/ft1_filtered_4FGL_J2231.0-4416_daily_bin1765.fits', '/scratch/kocevski/648344/ft2_4FGL_J2231.0-4416_daily_bin1765.fits', expMap='/scratch/kocevski/648344/expmap_696816001_697075201_4FGL_J2231.0-4416_daily_bin1765.fits', expCube='/scratch/kocevski/648344/ltcube_696816001_697075201_4FGL_J2231.0-4416_daily_bin1765.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/648344/Model_4FGL_J2231.0-4416_daily_bin1765.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/648344/ft1_filtered_4FGL_J2231.0-4416_daily_bin1765.fits
Spacecraft file(s): /scratch/kocevski/648344/ft2_4FGL_J2231.0-4416_daily_bin1765.fits
Exposure map: /scratch/kocevski/648344/expmap_696816001_697075201_4FGL_J2231.0-4416_daily_bin1765.fits
Exposure cube: /scratch/kocevski/648344/ltcube_696816001_697075201_4FGL_J2231.0-4416_daily_bin1765.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/648344/Model_4FGL_J2231.0-4416_daily_bin1765.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) = 4520.3917673

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .89898E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .42552E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    1.2709       1.0000          .0000       .10000E+07
     4 'norm      '    .67277E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    .83112E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    12.926       1.0000          .0000       .10000E+07
     7 'Prefactor '    86.307       1.0000          .0000       .10000E+07
     8 'Prefactor '    .70242E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    7.9269       1.0000          .0000       .10000E+07
    10 'Prefactor '    .50045       1.0000          .0000       .10000E+07
    11 'norm      '    .33445E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    11.855       1.0000          .0000       .10000E+07
    13 'Prefactor '    .46270E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .14830E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    6.1823       1.0000          .0000       .10000E+07
    16 'Prefactor '    .53075E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .36876E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    .27703E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    1.2854       1.0000          .0000       .10000E+07
    20 'Prefactor '    88.058       1.0000          .0000       .10000E+07
    21 'Prefactor '    6.6676       1.0000          .0000       .10000E+07
    22 'norm      '    .26198E-03   1.0000          .0000       .10000E+07
    23 'norm      '    .57485E-04   1.0000          .0000       .10000E+07
    24 'norm      '    6.0756       1.0000          .0000       .10000E+07
    25 'Prefactor '    .16382E-05   1.0000          .0000       .10000E+07
    26 'Prefactor '    4.5347       1.0000          .0000       .10000E+07
    27 'norm      '    .68798E-04   1.0000          .0000       .10000E+07
    28 'Prefactor '    .30108E-03   1.0000          .0000       .10000E+07
    29 'norm      '    .64580       1.0000          .0000       .10000E+07
    30 'Normalizat'    1.1128       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .94110       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=   4520.289     FROM MIGRAD    STATUS=CONVERGED    219 CALLS     2947 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        3.9722        .19644E-06** at limit **
   2  Prefactor     .70843E-06    13.765       -.77321E-06** at limit **
   3  Prefactor     1.2215        6.1643       -.19727E-06   -.10314E-04
   4  norm          .14877E-07    5.2779        .10550E-06** at limit **
   5  Prefactor     .72442E-07    5.3474        .43619E-07** at limit **
   6  Prefactor     12.994        1.5874       -.78841E-08    .34516E-02
   7  Prefactor     91.247        54.086        .14687E-06   -.10179    
   8  Prefactor     .81435E-07    3.2374        .16572E-06** at limit **
   9  Prefactor     7.9291        4.9914       -.16274E-06   -.76071E-03
  10  Prefactor     .30921E-05    64.742       -.67951E-06** at limit **
  11  norm           .0000        2.5082       -.95146E-07** at limit **
  12  Prefactor     12.029        2.5036        .22833E-07    .34925E-02
  13  Prefactor      .0000        2.4878       -.61181E-07** at limit **
  14  Prefactor     .84488E-07    12.450       -.69982E-06** at limit **
  15  Prefactor     6.1959        5.9917        .75947E-07   -.16032E-03
  16  Prefactor     .31086E-08    6.9069        .12498E-06** at limit **
  17  Prefactor     .55511E-09    9.1461        .17564E-06** at limit **
  18  Prefactor     .14464E-05    29.085       -.56318E-06** at limit **
  19  Prefactor     1.3578        6.3396        .34984E-06    .27798E-03
  20  Prefactor     91.169        32.624        .84139E-07    .18960    
  21  Prefactor     6.7036        1.1023        .18046E-08   -.54461E-04
  22  norm          .55511E-10    4.4658        .82926E-07** at limit **
  23  norm          .34417E-08    4.9213        .59557E-07** at limit **
  24  norm          5.8547        5.8470       -.43233E-07    .51484E-03
  25  Prefactor      .0000        2.5319       -.13729E-06** at limit **
  26  Prefactor     7.9819        53.294        .48925E-06   -.12114E-01
  27  norm           .0000        2.3021       -.11644E-06** at limit **
  28  Prefactor     .13156E-07    5.6755       -.35572E-06** at limit **
  29  norm          .64922        .91496       -.64239E-07   -.87541E-03
  30  Normalizat    1.1040        .26714        .28550E-05    .11283E-04
  31  Prefactor     .94351        .23718       -.22078E-05    .26823E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 7.08433e-07
  Prefactor  = 1.22151
  norm       = 1.4877e-08
  Prefactor  = 7.24421e-08
  Prefactor  = 12.9941
  Prefactor  = 91.2465
  Prefactor  = 8.14349e-08
  Prefactor  = 7.92906
  Prefactor  = 3.09214e-06
  norm       = 0
  Prefactor  = 12.0285
  Prefactor  = 0
  Prefactor  = 8.4488e-08
  Prefactor  = 6.19594
  Prefactor  = 3.10862e-09
  Prefactor  = 5.55112e-10
  Prefactor  = 1.4464e-06
  Prefactor  = 1.3578
  Prefactor  = 91.1694
  Prefactor  = 6.70364
  norm       = 5.55112e-11
  norm       = 3.44169e-09
  norm       = 5.85471
  Prefactor  = 0
  Prefactor  = 7.98194
  norm       = 0
  Prefactor  = 1.31561e-08
  norm       = 0.649223
  Normalizat = 1.10396
  Prefactor  = 0.943513
 **********
 **   18 **HESSE 
 **********

 FCN=   4520.289     FROM HESSE     STATUS=OK           674 CALLS     3621 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        3.9674        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .70843E-06    23.958        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.2215        6.2449        .98646E-03   -1.5686    
   4  norm          .14877E-07    5.3475        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .72442E-07    7.0410        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.994        12.333        .27836E-03   -1.5636    
   7  Prefactor     91.247        60.985        .10765E-03   -1.5517    
   8  Prefactor     .81435E-07    7.3313        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.9291        5.0011        .35589E-03   -1.5652    
  10  Prefactor     .30921E-05    70.659        .78664E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        2.5103        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.029        13.570        .29070E-03   -1.5639    
  13  Prefactor      .0000        2.4804        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .84488E-07    25.415        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.1959        6.0077        .40351E-03   -1.5658    
  16  Prefactor     .31086E-08    8.1070        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .55511E-09    9.2112        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .14464E-05    31.105        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.3578        6.3818        .97755E-03   -1.5685    
  20  Prefactor     91.169        55.947        .10657E-03   -1.5517    
  21  Prefactor     6.7036        11.159        .38837E-03   -1.5656    
  22  norm          .55511E-10    4.4707        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .34417E-08    4.9222        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          5.8547        5.8611        .40709E-03   -1.5660    
  25  Prefactor      .0000        2.5321        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     7.9819        54.579        .47251E-03   -1.5651    
  27  norm           .0000        2.3037        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .13156E-07    5.7887        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .64922        .93590        .65221E-03   -1.5692    
  30  Normalizat    1.1040        .22598        .56871E-01   -.89625    
  31  Prefactor     .94351        .19877        .45527E-01   -.94637    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79827e-06
Minuit parameter uncertainties:
  1  7.60118e-06
  2  0.00823945
  3  5.52383
  4  0.000564212
  5  0.00142821
  6  12.3329
  7  60.9856
  8  0.0015455
  9  5.00112
  10  0.0295631
  11  6.04837e-07
  12  13.5702
  13  1.03372e-06
  14  0.00293055
  15  6.00771
  16  0.000316864
  17  0.000141508
  18  0.0134149
  19  5.88734
  20  55.947
  21  11.1587
  22  3.76615e-05
  23  0.000260353
  24  5.86113
  25  7.62304e-06
  26  41.745
  27  3.24739e-06
  28  0.000551755
  29  0.9359
  30  0.226174
  31  0.198921
Done.

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

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  0.000e+00  1.034e-06  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:  9.435e-01  1.989e-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.104e+00  2.262e-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: 8.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/648344/likelihoodResults_696816001_697075201_4FGL_J2231.0-4416_daily_bin1765.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) = 4520.2902904
delta logL = -0.00120523269197

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4520.28908554
delta logL = -3.75320269086e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11730E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .89526       1.0000          .0000       10.000    
     3 'Normalizat'    1.1041       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94345       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=   4520.289     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      260 TOTAL
                     EDM=   .30E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .69168        .42118E-03** at limit **
   2  Index         3.9053        2.1196        .14994E-04     .0000    
   3  Normalizat    1.1040        1.1524       -.43099E-05   -.36329E-05
   4  Prefactor     .94351        1.2861        .26521E-05   -.78984E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.90529
  Normalizat = 1.10396
  Prefactor  = 0.943513
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   4520.289     FROM HESSE     STATUS=FAILED         9 CALLS      269 TOTAL
                     EDM=   .30E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .69168        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6629        2.3511        .14994E-04   -.22073    
   3  Normalizat    1.1040        1.1524       -.43099E-05   -.89625    
   4  Prefactor     .94351        1.2861        .26521E-05   -.94637    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.95838e-13
Minuit parameter uncertainties:
  1  6.91816e-07
  2  2.19271
  3  1.18034
  4  1.33169
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/648344': 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) = 4520.28908517
delta logL = 0.0

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  0.000e+00  6.918e-07  0.000e+00  1.000e+06 ( 1.000e-12)
306        Index:  3.905e+00  2.193e+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:  9.435e-01  1.332e+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.104e+00  1.180e+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/648344/cmap_HighResolution_696816001_697075201_4FGL_J2231.0-4416_daily_bin1765.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.68e-03', job_status='DONE', photon_flux_upper_limit='8.63e-08', time_completed='2023-02-03 01:58:10.368939', job_id='648344', GAL2='0.94', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1675418290.37', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1765' AND source_name='4FGL J2231.0-4416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb  3 01:58:10 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 648344: <4FGL_J2231.0-4416_daily_bin1765> in cluster <slac> Done

Job <4FGL_J2231.0-4416_daily_bin1765> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Feb  3 01:45:15 2023
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb  3 01:46:21 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb  3 01:46:21 2023
Terminated at Fri Feb  3 01:58:11 2023
Results reported at Fri Feb  3 01:58:11 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2231.0-4416_daily_bin1765 337.758 -44.2791 696816001 697075201 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 :                                   673.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   709 sec.
    Turnaround time :                            776 sec.

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

