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


Performing analysis on: 4FGL_J2231.0-4416_daily_bin1233
RA = 337.758, Dec = -44.2791
tmin = 558921601, tmax = 559180801
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='339400', job_status='RUN', time_executed='2021-09-28 13:38:29.667295', time_epoch_executed='1632861509.67' WHERE source_name='4FGL J2231.0-4416' and cadence='daily' and bin_id='1233'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/339400

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/339400/ft1_4FGL_J2231.0-4416_daily_bin1233.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/339400/ft2_4FGL_J2231.0-4416_daily_bin1233.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/339400/ft1_4FGL_J2231.0-4416_daily_bin1233.fits outfile=/scratch/kocevski/339400/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin1233.fits ra=337.758 dec=-44.2791 rad=12.0 tmin=558921601.0 tmax=559180801.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.53
user 3.31
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/339400/ft1_filtered_4FGL_J2231.0-4416_daily_bin1233.fits" evtable="EVENTS" scfile=/scratch/kocevski/339400/ft2_4FGL_J2231.0-4416_daily_bin1233.fits sctable="SC_DATA" outfile=/scratch/kocevski/339400/ltcube_558921601_559180801_4FGL_J2231.0-4416_daily_bin1233.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/339400/ft2_4FGL_J2231.0-4416_daily_bin1233.fits
.....................!
real 11.58
user 11.20
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/339400/ft1_filtered_4FGL_J2231.0-4416_daily_bin1233.fits evtable="EVENTS" scfile=/scratch/kocevski/339400/ft2_4FGL_J2231.0-4416_daily_bin1233.fits sctable="SC_DATA" expcube=/scratch/kocevski/339400/ltcube_558921601_559180801_4FGL_J2231.0-4416_daily_bin1233.fits outfile=/scratch/kocevski/339400/expmap_558921601_559180801_4FGL_J2231.0-4416_daily_bin1233.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/339400/ltcube_558921601_559180801_4FGL_J2231.0-4416_daily_bin1233.fits
.....................!
real 190.39
user 185.28
sys 4.72

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/339400/ft1_filtered_4FGL_J2231.0-4416_daily_bin1233.fits scfile=/scratch/kocevski/339400/ft2_4FGL_J2231.0-4416_daily_bin1233.fits outfile=/scratch/kocevski/339400/cmap_558921601_559180801_4FGL_J2231.0-4416_daily_bin1233.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/339400/ft1_filtered_4FGL_J2231.0-4416_daily_bin1233.fits scfile=/scratch/kocevski/339400/ft2_4FGL_J2231.0-4416_daily_bin1233.fits outfile=/scratch/kocevski/339400/cmap_HighResolution_558921601_559180801_4FGL_J2231.0-4416_daily_bin1233.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/339400/ft1_filtered_4FGL_J2231.0-4416_daily_bin1233.fits evtable="EVENTS" scfile=/scratch/kocevski/339400/ft2_4FGL_J2231.0-4416_daily_bin1233.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/339400/Model_4FGL_J2231.0-4416_daily_bin1233.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/339400/ft1_filtered_4FGL_J2231.0-4416_daily_bin1233.fits...................................!
real 16.41
user 15.10
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2645       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .35744E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.6391       1.0000         .10000E-03   10000.    
     4 'norm      '    .42034E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    36.105       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .48107E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.6074       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.4327       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.8750       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.2583       1.0000         .10000E-03   10000.    
    11 'norm      '    1.6153       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10933E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    59.872       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .61514E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .45805E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.1474       1.0000         .10000E-03   10000.    
    17 'Prefactor '    267.07       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.1691       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.7212       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.0694       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .31426E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.3796       1.0000         .10000E-03   10000.    
    23 'Prefactor '    464.11       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .42938E-01   1.0000         .10000E-03   10000.    
    25 'norm      '    .13144E-02   1.0000         .10000E-03   10000.    
    26 'norm      '    .29725E-02   1.0000         .10000E-03   10000.    
    27 'norm      '    .10376E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .27361       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .51906E-01   1.0000         .10000E-03   10000.    
    30 'norm      '    10.061       1.0000         .10000E-03   10000.    
    31 'Prefactor '    338.11       1.0000         .10000E-03   10000.    
    32 'norm      '    .15598E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .85876       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .51970       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=   435.0844     FROM MIGRAD    STATUS=CONVERGED    296 CALLS      554 TOTAL
                     EDM=   .74E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19344E-01    1000.9       -.11176E-04   -.12454E-02
   2  Prefactor     .10003E-03    599.69       -.30441E-05** at limit **
   3  Prefactor     2.6391        1.0192         .0000         .0000    
   4  norm          .10000E-03    54.611       -.23855E-07** at limit **
   5  Prefactor     36.728        67.548        .11957E-04   -.15386E-03
   6  Prefactor     .10432E-03    1773.2        .43325E-04** at limit **
   7  Prefactor     .17212E-03    2162.8       -.17977E-04** at limit **
   8  Prefactor     1.4327        1.0795         .0000         .0000    
   9  Prefactor     1.8750        1.0409         .0000         .0000    
  10  Prefactor     7.2583        1.0024         .0000         .0000    
  11  norm          1.6153        1.0584         .0000         .0000    
  12  Prefactor     .10000E-03    20.769        .15694E-07** at limit **
  13  Prefactor     59.984        70.321        .10167E-05    .46316E-03
  14  Prefactor     .10000E-03    215.73       -.74304E-07** at limit **
  15  Prefactor     .10000E-03    266.09        .25555E-07** at limit **
  16  Prefactor     1.3428        1151.9        .12082E-04   -.78567E-04
  17  Prefactor     265.98        164.80       -.51079E-05   -.27157E-02
  18  Prefactor     4.1691        1.0074         .0000         .0000    
  19  Prefactor     2.7212        1.0180         .0000         .0000    
  20  Prefactor     4.0694        1.0077         .0000         .0000    
  21  Prefactor     .10000E-03    93.334        .17863E-06** at limit **
  22  Prefactor     .81658E-03    6199.6       -.13129E-04** at limit **
  23  Prefactor     467.76        105.19        .99078E-06   -.12407E-01
  24  Prefactor     .10004E-03    572.98        .11229E-05** at limit **
  25  norm          .10000E-03    59.508        .39746E-08** at limit **
  26  norm          .10000E-03    142.88       -.72079E-07** at limit **
  27  norm          .10000E-03    16.887       -.12551E-07** at limit **
  28  Prefactor     .10000E-03    119.18       -.78223E-09** at limit **
  29  Prefactor     .10000E-03    122.61       -.86879E-07** at limit **
  30  norm          10.055        14.865        .11052E-06   -.99521E-06
  31  Prefactor     343.50        132.90        .15255E-05   -.66813E-02
  32  norm          .10000E-03    23.203        .38693E-08** at limit **
  33  Normalizat    .85619        .96020       -.90548E-06    .13366E-04
  34  Prefactor     .52019        .81401       -.26235E-05    .12971E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0193443
  Prefactor  = 0.000100026
  Prefactor  = 2.63906
  norm       = 0.0001
  Prefactor  = 36.7279
  Prefactor  = 0.000104315
  Prefactor  = 0.000172116
  Prefactor  = 1.43271
  Prefactor  = 1.87498
  Prefactor  = 7.25831
  norm       = 1.61533
  Prefactor  = 0.0001
  Prefactor  = 59.984
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.34284
  Prefactor  = 265.98
  Prefactor  = 4.16915
  Prefactor  = 2.7212
  Prefactor  = 4.06936
  Prefactor  = 0.0001
  Prefactor  = 0.000816583
  Prefactor  = 467.76
  Prefactor  = 0.000100035
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.0551
  Prefactor  = 343.497
  norm       = 0.0001
  Normalizat = 0.856195
  Prefactor  = 0.520186
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   435.0844     FROM HESSE     STATUS=FAILED        17 CALLS      571 TOTAL
                     EDM=   .74E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19344E-01    7311.6        .48777E-02   -1.5736    
   2  Prefactor     .10003E-03    604.93        .92003E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     559.29        556.55         .0000       -1.5383    
   4  norm          .10000E-03    .23600       -.23855E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     36.728        1.0087        .11957E-04   -1.4495    
   6  Prefactor     .10432E-03    .21441        .43325E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .17212E-03    .44970E-01   -.17977E-04   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.4327        1.0795         .0000       -1.5469    
   9  Prefactor     1.8750        1.0409         .0000       -1.5434    
  10  Prefactor     7.2583        1.0024         .0000       -1.5169    
  11  norm          1.6153        1.0584         .0000       -1.5454    
  12  Prefactor     .10000E-03    .20571        .15694E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     59.984        1.0010        .10167E-05   -1.4157    
  14  Prefactor     .10000E-03    .21744       -.74304E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .21389        .25555E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.3428        .81456        .12082E-04   -1.5940    
  17  Prefactor     265.98        .99801       -.51079E-05   -1.2432    
  18  Prefactor     4.1691        1.0074         .0000       -1.5300    
  19  Prefactor     2.7212        1.0180         .0000       -1.5378    
  20  Prefactor     4.0694        1.0077         .0000       -1.5304    
  21  Prefactor     .10000E-03    .28542        .17863E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .81658E-03    .46907E-01   -.13129E-04   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     467.76        1.0037        .99078E-06   -1.1348    
  24  Prefactor     .10004E-03    .21324        .11229E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    .26449        .39746E-08   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .24597       -.72079E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    .20571       -.12551E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    .26567       -.78223E-09   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    .21527       -.86879E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          10.055        1.0009        .11052E-06   -1.5074    
  31  Prefactor     343.50        1.0077        .15255E-05   -1.1980    
  32  norm          .10000E-03    .20571        .38693E-08   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .85619        1.1942       -.90548E-06   -.98017    
  34  Prefactor     .52019        .86368       -.26235E-05   -1.1106    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.36075e-11
Minuit parameter uncertainties:
  1  20.7056
  2  0.00796212
  3  1.01918
  4  3.05262e-08
  5  1.00866
  6  0.00192375
  7  0.00360169
  8  1.07955
  9  1.0409
  10  1.00239
  11  1.05842
  12  7.22137e-08
  13  1.00096
  14  3.26567e-06
  15  7.06834e-06
  16  0.81457
  17  0.998009
  18  1.00738
  19  1.01796
  20  1.00775
  21  2.18626e-06
  22  0.0115952
  23  1.00373
  24  0.000173691
  25  2.41413e-09
  26  1.90834e-06
  27  2.15498e-08
  28  6.42374e-07
  29  9.75382e-07
  30  1.00092
  31  1.00766
  32  5.1042e-09
  33  1.23427
  34  0.88709
Done.

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

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  5.998e+01  1.001e+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

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  5.202e-01  8.871e-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:  8.562e-01  1.234e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.29
Ra Dec: 337.758 -44.279
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 5.51e-07 +/- 9.18e-09
Energy Flux (Fixed Index): 1.74e-04 +/- 2.91e-06

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

Saving results to:
/scratch/kocevski/339400/likelihoodResults_558921601_559180801_4FGL_J2231.0-4416_daily_bin1233.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) = 434.991885994
delta logL = 0.0925076561267

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 434.964652839
delta logL = 0.119740810902

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    44.543       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9294       1.0000          .0000       10.000    
     3 'Normalizat'    .82044       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .53576       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=   434.9647     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      265 TOTAL
                     EDM=   .72E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     44.523        66.227        .60071E-04    .71798E-05
   2  Index         2.9298        1.0876        .34558E-02    .31682E-05
   3  Normalizat    .82109        .92899        .33985E-03    .71127E-05
   4  Prefactor     .53530        .78091        .35056E-03    .29754E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 44.523
  Index      = 2.92981
  Normalizat = 0.821094
  Prefactor  = 0.535302
 **********
 **   18 **HESSE 
 **********

 FCN=   434.9647     FROM HESSE     STATUS=OK            25 CALLS      290 TOTAL
                     EDM=   .72E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     44.523        64.976        .24028E-05   -1.4372    
   2  Index         2.9298        1.0672        .13823E-03   -.42689    
   3  Normalizat    .82109        .92969        .13594E-04   -.99291    
   4  Prefactor     .53530        .78144        .14022E-04   -1.1038    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.23012e-11
Minuit parameter uncertainties:
  1  65.0797
  2  1.07721
  3  0.948684
  4  0.798052
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/339400': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 434.964652512
delta logL = 0.119741138844

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  4.452e+01  6.508e+01  1.000e-04  1.000e+04 ( 1.000e-12)
306        Index:  2.930e+00  1.077e+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:  5.353e-01  7.981e-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:  8.211e-01  9.487e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.51
Ra Dec: 337.758 -44.279
Photon Index (Free Index): 2.93 +/- 1.08
Photon Flux (Free Index): 8.31e-07 +/- 1.05e-06
Energy Flux (Free Index): 1.72e-04 +/- 1.88e-04

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/339400/cmap_HighResolution_558921601_559180801_4FGL_J2231.0-4416_daily_bin1233.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.81e-01', comment='SUCCESS', photon_flux='5.51e-07', energy_flux2='1.72e-04', photon_flux_error='9.18e-09', dlogl='1.20e-01', energy_flux='1.74e-04', photon_flux2='8.31e-07', job_status='DONE', time_completed='2021-09-28 13:43:57.769950', photon_index_error2='1.08', photon_index2='2.93', ts='1.29', fit_tolerance='1e-08', GAL='0.52', photon_index_error='0.00', photon_flux_upper_limit='2.33e-06', energy_flux_error2='1.88e-04', EG='0.86', time_epoch_completed='1632861837.77', return_code='101', job_id='339400', GAL2='0.54', EG2='0.82', return_code2='0', energy_flux_error='2.91e-06', photon_flux_error2='1.05e-06', ts2='1.51', photon_index='2.43' WHERE bin_id='1233' AND source_name='4FGL J2231.0-4416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 13:43:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 339400: <4FGL_J2231.0-4416_daily_bin1233> in cluster <slac> Done

Job <4FGL_J2231.0-4416_daily_bin1233> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Tue Sep 28 13:35:23 2021
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 13:35:24 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:24 2021
Terminated at Tue Sep 28 13:43:58 2021
Results reported at Tue Sep 28 13:43:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2231.0-4416_daily_bin1233 337.758 -44.2791 558921601 559180801 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 :                                   328.14 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             171.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   522 sec.
    Turnaround time :                            515 sec.

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

