/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 98 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 = 7571
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2231.0-4416_daily_bin1348
RA = 337.758, Dec = -44.2791
tmin = 588729601, tmax = 588988801
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='339582', job_status='RUN', time_executed='2021-09-28 13:37:25.836259', time_epoch_executed='1632861445.84' WHERE source_name='4FGL J2231.0-4416' and cadence='daily' and bin_id='1348'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/339582

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/339582/ft1_4FGL_J2231.0-4416_daily_bin1348.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/339582/ft2_4FGL_J2231.0-4416_daily_bin1348.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/339582/ft1_4FGL_J2231.0-4416_daily_bin1348.fits outfile=/scratch/kocevski/339582/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin1348.fits ra=337.758 dec=-44.2791 rad=12.0 tmin=588729601.0 tmax=588988801.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.14
user 2.92
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/339582/ft1_filtered_4FGL_J2231.0-4416_daily_bin1348.fits" evtable="EVENTS" scfile=/scratch/kocevski/339582/ft2_4FGL_J2231.0-4416_daily_bin1348.fits sctable="SC_DATA" outfile=/scratch/kocevski/339582/ltcube_588729601_588988801_4FGL_J2231.0-4416_daily_bin1348.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/339582/ft2_4FGL_J2231.0-4416_daily_bin1348.fits
.....................!
real 12.72
user 12.38
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/339582/ft1_filtered_4FGL_J2231.0-4416_daily_bin1348.fits evtable="EVENTS" scfile=/scratch/kocevski/339582/ft2_4FGL_J2231.0-4416_daily_bin1348.fits sctable="SC_DATA" expcube=/scratch/kocevski/339582/ltcube_588729601_588988801_4FGL_J2231.0-4416_daily_bin1348.fits outfile=/scratch/kocevski/339582/expmap_588729601_588988801_4FGL_J2231.0-4416_daily_bin1348.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/339582/ltcube_588729601_588988801_4FGL_J2231.0-4416_daily_bin1348.fits
.....................!
real 189.29
user 184.26
sys 4.64

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/339582/ft1_filtered_4FGL_J2231.0-4416_daily_bin1348.fits scfile=/scratch/kocevski/339582/ft2_4FGL_J2231.0-4416_daily_bin1348.fits outfile=/scratch/kocevski/339582/cmap_588729601_588988801_4FGL_J2231.0-4416_daily_bin1348.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/339582/ft1_filtered_4FGL_J2231.0-4416_daily_bin1348.fits scfile=/scratch/kocevski/339582/ft2_4FGL_J2231.0-4416_daily_bin1348.fits outfile=/scratch/kocevski/339582/cmap_HighResolution_588729601_588988801_4FGL_J2231.0-4416_daily_bin1348.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/339582/ft1_filtered_4FGL_J2231.0-4416_daily_bin1348.fits evtable="EVENTS" scfile=/scratch/kocevski/339582/ft2_4FGL_J2231.0-4416_daily_bin1348.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/339582/Model_4FGL_J2231.0-4416_daily_bin1348.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/339582/ft1_filtered_4FGL_J2231.0-4416_daily_bin1348.fits.............!
real 14.83
user 13.55
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/339582/ft1_filtered_4FGL_J2231.0-4416_daily_bin1348.fits', '/scratch/kocevski/339582/ft2_4FGL_J2231.0-4416_daily_bin1348.fits', expMap='/scratch/kocevski/339582/expmap_588729601_588988801_4FGL_J2231.0-4416_daily_bin1348.fits', expCube='/scratch/kocevski/339582/ltcube_588729601_588988801_4FGL_J2231.0-4416_daily_bin1348.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/339582/Model_4FGL_J2231.0-4416_daily_bin1348.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  1.000e-04  1.000e+04 ( 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/339582/ft1_filtered_4FGL_J2231.0-4416_daily_bin1348.fits
Spacecraft file(s): /scratch/kocevski/339582/ft2_4FGL_J2231.0-4416_daily_bin1348.fits
Exposure map: /scratch/kocevski/339582/expmap_588729601_588988801_4FGL_J2231.0-4416_daily_bin1348.fits
Exposure cube: /scratch/kocevski/339582/ltcube_588729601_588988801_4FGL_J2231.0-4416_daily_bin1348.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/339582/Model_4FGL_J2231.0-4416_daily_bin1348.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 161.33940205

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 146.959902294

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10800E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10399E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    32.779       1.0000         .10000E-03   10000.    
     4 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    49.941       1.0000         .10000E-03   10000.    
     6 'Prefactor '    76.178       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .28853E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10858E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.5439       1.0000         .10000E-03   10000.    
    11 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.1427       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    35.838       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10183E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.9440       1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.948       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .34379       1.0000         .10000E-03   10000.    
    19 'Prefactor '    87.110       1.0000         .10000E-03   10000.    
    20 'Prefactor '    35.820       1.0000         .10000E-03   10000.    
    21 'Prefactor '    216.77       1.0000         .10000E-03   10000.    
    22 'Prefactor '    51.991       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.8139       1.0000         .10000E-03   10000.    
    24 'Prefactor '    141.90       1.0000         .10000E-03   10000.    
    25 'norm      '    8.7758       1.0000         .10000E-03   10000.    
    26 'norm      '    60.586       1.0000         .10000E-03   10000.    
    27 'norm      '    1.4017       1.0000         .10000E-03   10000.    
    28 'Prefactor '    268.02       1.0000         .10000E-03   10000.    
    29 'Prefactor '    7.1392       1.0000         .10000E-03   10000.    
    30 'norm      '    5.0342       1.0000         .10000E-03   10000.    
    31 'Prefactor '    34.907       1.0000         .10000E-03   10000.    
    32 'norm      '    9997.9       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    34 'Prefactor '    .45805E-07   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=   146.2242     FROM MIGRAD    STATUS=CONVERGED    558 CALLS     1520 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.990       -.33549E-07** at limit **
   2  Prefactor     .10000E-03    47.949        .23969E-05** at limit **
   3  Prefactor     31.621        17.748        .32879E-05   -.11112E-03
   4  norm          .10000E-03    9.1277       -.30921E-07** at limit **
   5  Prefactor     27.847        1644.6        .18088E-04   -.13467E-03
   6  Prefactor     88.737        286.75       -.10496E-04    .13920E-03
   7  Prefactor     .10000E-03    100.12       -.62327E-06** at limit **
   8  Prefactor     .10000E-03    47.948        .19894E-05** at limit **
   9  Prefactor     .10000E-03    6.0794       -.50989E-07** at limit **
  10  Prefactor     .10000E-03    233.90       -.18693E-05** at limit **
  11  norm          .10000E-03    21.490        .22507E-06** at limit **
  12  Prefactor     .17596E-02    9855.4        .11867E-03** at limit **
  13  Prefactor     .10000E-03    53.776       -.22865E-06** at limit **
  14  Prefactor     .10375E-03    1779.9        .16013E-04** at limit **
  15  Prefactor     .10000E-03    47.907       -.13525E-05** at limit **
  16  Prefactor     23.118        18.264       -.15167E-05   -.66506E-04
  17  Prefactor     193.96        465.59        .22211E-05    .17115E-02
  18  Prefactor     .10000E-03    195.55       -.69966E-06** at limit **
  19  Prefactor     85.583        96.349       -.97006E-06   -.13256E-04
  20  Prefactor     .10000E-03    1102.1        .48277E-04** at limit **
  21  Prefactor     742.43        481.82       -.82570E-05   -.12802E-02
  22  Prefactor     .10000E-03    651.84       -.44945E-05** at limit **
  23  Prefactor     6.8139        1.0027         .0000         .0000    
  24  Prefactor     .13045E-03    8219.6        .14298E-03** at limit **
  25  norm          9936.0        6608.4        .22471E-03   -.39853E-02
  26  norm          20.388        35.292        .24109E-05    .89415E-03
  27  norm          33.286        82.165       -.48467E-05   -.50579E-04
  28  Prefactor     9999.2        8767.1       -.52776E-04   -.39148E-02
  29  Prefactor     10.652        3.8991       -.47196E-06   -.13807E-04
  30  norm          43.161        72.917       -.40642E-05   -.13976E-03
  31  Prefactor     9969.8        9576.3        .94301E-04    .72329E-02
  32  norm         10000.0        1108.8        .17660E-04** at limit **
  33  Normalizat    .10000E-01    .18875        .26925E-05** at limit **
  34  Prefactor     .62728E-13    .16907       -.66027E-05** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.6209
  norm       = 0.0001
  Prefactor  = 27.8475
  Prefactor  = 88.7365
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.00175956
  Prefactor  = 0.0001
  Prefactor  = 0.000103746
  Prefactor  = 0.0001
  Prefactor  = 23.1178
  Prefactor  = 193.962
  Prefactor  = 0.0001
  Prefactor  = 85.583
  Prefactor  = 0.0001
  Prefactor  = 742.433
  Prefactor  = 0.000100001
  Prefactor  = 6.81391
  Prefactor  = 0.000130446
  norm       = 9936.01
  norm       = 20.3879
  norm       = 33.2861
  Prefactor  = 9999.21
  Prefactor  = 10.6517
  norm       = 43.1608
  Prefactor  = 9969.83
  norm       = 10000
  Normalizat = 0.01
  Prefactor  = 6.27276e-14
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   146.2242     FROM HESSE     STATUS=FAILED        99 CALLS     1619 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.830        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    46.600        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     31.621        17.907        .17497E-02   -1.4583    
   4  norm          .10000E-03    8.9548        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     27.847        128.78        .14187E-02   -1.4652    
   6  Prefactor     88.737        80.042        .11502E-02   -1.3821    
   7  Prefactor     .10000E-03    98.574        .91664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    46.161        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.0266        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    231.48        .34285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    21.386        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .17596E-02    9860.9        .37523E-02   -1.5716    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    53.307        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10375E-03    1887.7        .16736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    47.356        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     23.118        2287.9        .33505E-02   -1.4746    
  17  Prefactor     193.96        5143.5        .23003E-02   -1.2913    
  18  Prefactor     .10000E-03    189.33        .10615E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     85.583        96.744        .10761E-02   -1.3855    
  20  Prefactor     .10000E-03    1109.0        .16740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     742.43        9591.3        .68668E-03   -1.0189    
  22  Prefactor     .10000E-03    647.59        .13905E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     514.84        507.99         .0000       -1.5186    
  24  Prefactor     .13045E-03    .17872E-02    .14298E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          9936.0        2.6973        .22471E-03    1.4106    
  26  norm          20.388        .58129        .24109E-05   -1.4805    
  27  norm          33.286        5.2762       -.48467E-05   -1.4553    
  28  Prefactor     9999.2        .54931E-01   -.52776E-04    1.5531    
  29  Prefactor     10.652        1.2243       -.47196E-06   -1.5055    
  30  norm          43.161        2.9371       -.40642E-05   -1.4393    
  31  Prefactor     9969.8        .92995        .94301E-04    1.6807    
  32  norm         10000.0        .13024        .17660E-04    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .10000E-01    .25505        .26925E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     .62728E-13    .25504       -.66027E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.79365e-10
Minuit parameter uncertainties:
  1  1.30239e-07
  2  2.70551e-05
  3  17.9102
  4  1.01106e-07
  5  120.2
  6  80.1399
  7  5.40458e-06
  8  2.12882e-05
  9  1.26516e-07
  10  2.25455e-05
  11  2.67078e-06
  12  11.4296
  13  2.46504e-06
  14  0.173991
  15  1.26489e-05
  16  480.253
  17  17106.1
  18  3.54241e-05
  19  96.9232
  20  0.000314533
  21  59554.9
  22  0.00177635
  23  1.00272
  24  0.000466535
  25  2.69728
  26  0.58129
  27  5.27627
  28  0.0549314
  29  1.22428
  30  2.93715
  31  0.929955
  32  4.4792e-05
  33  5.53611e-08
  34  2.53631e-07
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 146.224160918

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  1.000e-04  2.465e-06  1.000e-04  1.000e+04 ( 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:  6.273e-14  2.536e-07  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.000e-02  5.536e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 337.758 -44.279
Photon Flux Upper Limit: 2.92e-06 ph cm-2 s-1
Energy Flux Upper Limit: 2.26e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/339582/likelihoodResults_588729601_588988801_4FGL_J2231.0-4416_daily_bin1348.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) = 146.224249841
delta logL = -8.89233148769e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 146.224161975
delta logL = -1.05729458255e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10618E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.2165       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .17745E-07   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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   146.2242     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      281 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    923.82        .63369E-02** at limit **
   2  Index         1.8560        6.9935        .50000        .16463E-07
   3  Normalizat    .10000E-01    .56785E-02    .16063E-02** at limit **
   4  Prefactor     .88263E-13    .51990E-02    .15264E-02** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 1.85597
  Normalizat = 0.01
  Prefactor  = 8.82627e-14
 **********
 **   18 **HESSE 
 **********

 FCN=   146.2242     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      310 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7266.9        .94585E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8560        5.9222        .50000       -.68002    
   3  Normalizat    .10000E-01    .37954E-01    .32126E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .88263E-13    .34752E-01    .30529E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.61321e-10
Minuit parameter uncertainties:
  1  0.00499559
  2  5426.18
  3  1.52123e-07
  4  1.1093e-07
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/339582': 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) = 146.224160764
delta logL = 1.54254507834e-07

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  1.000e-04  4.996e-03  1.000e-04  1.000e+04 ( 1.000e-12)
306        Index:  1.856e+00  5.426e+03  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:  8.826e-14  1.109e-07  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.000e-02  1.521e-07  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/339582/cmap_HighResolution_588729601_588988801_4FGL_J2231.0-4416_daily_bin1348.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.26e-01', job_status='DONE', photon_flux_upper_limit='2.92e-06', time_completed='2021-09-28 13:42:52.080564', job_id='339582', GAL2='0.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632861772.08', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.00', dlogl='1.54e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1348' AND source_name='4FGL J2231.0-4416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 13:42:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 339582: <4FGL_J2231.0-4416_daily_bin1348> in cluster <slac> Done

Job <4FGL_J2231.0-4416_daily_bin1348> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Tue Sep 28 13:35:39 2021
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 13:35:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 13:35:40 2021
Terminated at Tue Sep 28 13:42:52 2021
Results reported at Tue Sep 28 13:42:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2231.0-4416_daily_bin1348 337.758 -44.2791 588729601 588988801 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 :                                   324.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             468.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   432 sec.
    Turnaround time :                            433 sec.

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

