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


Performing analysis on: 4FGL_J2231.0-4416_daily_bin1463
RA = 337.758, Dec = -44.2791
tmin = 618537601, tmax = 618796801
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='340740', job_status='RUN', time_executed='2021-09-28 13:40:35.305695', time_epoch_executed='1632861635.31' WHERE source_name='4FGL J2231.0-4416' and cadence='daily' and bin_id='1463'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/340740

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/340740/ft1_4FGL_J2231.0-4416_daily_bin1463.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/340740/ft2_4FGL_J2231.0-4416_daily_bin1463.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/340740/ft1_4FGL_J2231.0-4416_daily_bin1463.fits outfile=/scratch/kocevski/340740/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin1463.fits ra=337.758 dec=-44.2791 rad=12.0 tmin=618537601.0 tmax=618796801.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.73
user 3.51
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/340740/ft1_filtered_4FGL_J2231.0-4416_daily_bin1463.fits" evtable="EVENTS" scfile=/scratch/kocevski/340740/ft2_4FGL_J2231.0-4416_daily_bin1463.fits sctable="SC_DATA" outfile=/scratch/kocevski/340740/ltcube_618537601_618796801_4FGL_J2231.0-4416_daily_bin1463.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/340740/ft2_4FGL_J2231.0-4416_daily_bin1463.fits
.....................!
real 11.98
user 11.59
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/340740/ft1_filtered_4FGL_J2231.0-4416_daily_bin1463.fits evtable="EVENTS" scfile=/scratch/kocevski/340740/ft2_4FGL_J2231.0-4416_daily_bin1463.fits sctable="SC_DATA" expcube=/scratch/kocevski/340740/ltcube_618537601_618796801_4FGL_J2231.0-4416_daily_bin1463.fits outfile=/scratch/kocevski/340740/expmap_618537601_618796801_4FGL_J2231.0-4416_daily_bin1463.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/340740/ltcube_618537601_618796801_4FGL_J2231.0-4416_daily_bin1463.fits
.....................!
real 193.18
user 187.36
sys 5.37

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/340740/ft1_filtered_4FGL_J2231.0-4416_daily_bin1463.fits scfile=/scratch/kocevski/340740/ft2_4FGL_J2231.0-4416_daily_bin1463.fits outfile=/scratch/kocevski/340740/cmap_618537601_618796801_4FGL_J2231.0-4416_daily_bin1463.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/340740/ft1_filtered_4FGL_J2231.0-4416_daily_bin1463.fits scfile=/scratch/kocevski/340740/ft2_4FGL_J2231.0-4416_daily_bin1463.fits outfile=/scratch/kocevski/340740/cmap_HighResolution_618537601_618796801_4FGL_J2231.0-4416_daily_bin1463.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/340740/ft1_filtered_4FGL_J2231.0-4416_daily_bin1463.fits evtable="EVENTS" scfile=/scratch/kocevski/340740/ft2_4FGL_J2231.0-4416_daily_bin1463.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/340740/Model_4FGL_J2231.0-4416_daily_bin1463.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/340740/ft1_filtered_4FGL_J2231.0-4416_daily_bin1463.fits.....................!
real 38.34
user 37.03
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    29.635       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.808       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.8489       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10300E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    8.6429       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.8277       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.693       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .57807       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .18691E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    88.409       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .16633E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.8588       1.0000         .10000E-03   10000.    
    25 'norm      '    10.401       1.0000         .10000E-03   10000.    
    26 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10113E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    15.351       1.0000         .10000E-03   10000.    
    29 'Prefactor '    103.16       1.0000         .10000E-03   10000.    
    30 'norm      '    .10072E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.1431       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .89697       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.

 FCN=   4459.014     FROM MIGRAD    STATUS=CONVERGED    970 CALLS     4896 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.3026        .90712E-02** at limit **
   2  Prefactor     .10000E-03    11.284        .90712E-02** at limit **
   3  Prefactor     .10000E-03    5.1002        .45657E-01** at limit **
   4  norm          .10000E-03    1.8291        .90712E-02** at limit **
   5  Prefactor     .10000E-03    3.6907        .90712E-02** at limit **
   6  Prefactor     .10000E-03    2.9191        .90712E-02** at limit **
   7  Prefactor     29.611        46.309        .18399E-02   -.35816E-03
   8  Prefactor     10.806        10.537        .30467E-02    .77594E-03
   9  Prefactor     9.8483        5.6731        .31922E-02   -.31620E-02
  10  Prefactor     .10000E-03    77.764        .90712E-02** at limit **
  11  norm          8.6427        7.2066        .34087E-02   -.25109E-03
  12  Prefactor     .10000E-03    10.296        .90712E-02** at limit **
  13  Prefactor     3.8276        5.6964        .51573E-02   -.15485E-02
  14  Prefactor     14.687        41.127        .26123E-02   -.33344E-03
  15  Prefactor     .10000E-03    3.2458        .90712E-02** at limit **
  16  Prefactor     .10000E-03    13.786        .90712E-02** at limit **
  17  Prefactor     .58350        27.715        .11585       -.14486E-04
  18  Prefactor     .10001E-03    30.049        .11373    ** at limit **
  19  Prefactor     .10000E-03    3.6026        .90712E-02** at limit **
  20  Prefactor     88.408        103.38        .10683E-02   -.79751E-04
  21  Prefactor     .10000E-03    5.9568        .90712E-02** at limit **
  22  Prefactor     .10007E-03    55.755        .13995    ** at limit **
  23  Prefactor     .10000E-03    38.371        .90712E-02** at limit **
  24  Prefactor     3.8614        14.982        .51357E-02    .49716E-03
  25  norm          10.401        11.567        .31060E-02    .48121E-03
  26  norm          .10000E-03    3.0933        .90712E-02** at limit **
  27  norm          .10000E-03    6.4505        .90712E-02** at limit **
  28  Prefactor     15.353        8.7042        .25557E-02    .24022E-02
  29  Prefactor     103.19        54.836        .98971E-03   -.23711E-03
  30  norm          .10000E-03    4.6797        .90712E-02** at limit **
  31  Prefactor     .10000E-03    13.710        .90712E-02** at limit **
  32  norm          .10000E-03    .44259        .90712E-02** at limit **
  33  Normalizat    1.1431        .22950        .55737E-01    .26862E-04
  34  Prefactor     .89693        .19308        .44966E-01   -.24864E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.6112
  Prefactor  = 10.8065
  Prefactor  = 9.84828
  Prefactor  = 0.0001
  norm       = 8.64272
  Prefactor  = 0.0001
  Prefactor  = 3.82762
  Prefactor  = 14.6866
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.583497
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 88.4083
  Prefactor  = 0.0001
  Prefactor  = 0.000100074
  Prefactor  = 0.0001
  Prefactor  = 3.86137
  norm       = 10.4008
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 15.3526
  Prefactor  = 103.193
  norm       = 0.0001
  Prefactor  = 0.000100005
  norm       = 0.0001
  Normalizat = 1.14311
  Prefactor  = 0.896925
 **********
 **   18 **HESSE 
 **********

 FCN=   4459.014     FROM HESSE     STATUS=OK           730 CALLS     5626 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.3423        .16369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.529        .28821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.8403        .88184E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.6981        .12528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.9221        .11142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     29.611        46.236        .73597E-04   -1.4619    
   8  Prefactor     10.806        10.510        .12187E-03   -1.5050    
   9  Prefactor     9.8483        5.6671        .11476E-03   -1.5080    
  10  Prefactor     .10000E-03    77.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.6427        7.2003        .13635E-03   -1.5120    
  12  Prefactor     .10000E-03    10.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.8276        5.7188        .17905E-03   -1.5317    
  14  Prefactor     14.687        41.203        .10449E-03   -1.4941    
  15  Prefactor     .10000E-03    3.2701        .11743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .58350        284.79        .65350E-02   -1.5555    
  18  Prefactor     .10001E-03    222.61        .68318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.6050        .12376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     88.408        102.74        .42731E-04   -1.3825    
  21  Prefactor     .10000E-03    5.9956        .15913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10007E-03    54.181        .14213       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    38.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.8614        14.955        .20543E-03   -1.5315    
  25  norm          10.401        11.565        .12424E-03   -1.5063    
  26  norm          .10000E-03    3.1023        .11469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    6.5780        .33013E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     15.353        8.7072        .10223E-03   -1.4924    
  29  Prefactor     103.19        54.576        .39588E-04   -1.3673    
  30  norm          .10000E-03    4.7007        .14047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    13.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          .10000E-03    .44481        .43336E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    1.1431        .27476        .24647E-03   -.88380    
  34  Prefactor     .89693        .23129        .24654E-03   -.96249    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5815e-08
Minuit parameter uncertainties:
  1  5.73894e-05
  2  0.000342289
  3  0.000244685
  4  1.07293e-05
  5  2.76289e-06
  6  1.02729e-06
  7  46.2922
  8  10.5116
  9  5.6674
  10  4.93971e-05
  11  7.20102
  12  5.21483e-05
  13  5.71959
  14  41.2827
  15  5.3634e-06
  16  0.000482823
  17  25.904
  18  0.00247453
  19  8.41203e-06
  20  102.945
  21  1.06584e-05
  22  0.00401965
  23  7.90272e-05
  24  14.9696
  25  11.5673
  26  3.58962e-06
  27  6.30322e-05
  28  8.7079
  29  54.6027
  30  2.69746e-06
  31  0.00051391
  32  1.4071e-06
  33  0.275103
  34  0.231546
Done.

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

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  3.828e+00  5.720e+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:  8.969e-01  2.315e-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.143e+00  2.751e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.59
Ra Dec: 337.758 -44.279
Photon Flux Upper Limit: 1.48e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.14e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/340740/likelihoodResults_618537601_618796801_4FGL_J2231.0-4416_daily_bin1463.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) = 4457.69483484
delta logL = 1.31924267712

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4457.66238819
delta logL = 1.35168933554

Fit tolerance = 1e-08

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

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

 FCN=   4457.662     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      256 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .46914        5.4882        .65104E-02    .23610E-02
   2  Index         4.4567        3.1631        .10828        .21004E-03
   3  Normalizat    1.0451        .65340E-01    .40887E-01   -.10953E-03
   4  Prefactor     .95901        .59016E-01    .45752E-01   -.13157E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.469136
  Index      = 4.45675
  Normalizat = 1.04513
  Prefactor  = 0.959012
 **********
 **   18 **HESSE 
 **********

 FCN=   4457.662     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      287 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .46914        10.355        .29358E-04   -1.5571    
   2  Index         4.4567        7.0396        .43214E-02   -.10887    
   3  Normalizat    1.0451        .24801        .25574E-03   -.91533    
   4  Prefactor     .95901        .21865        .23928E-03   -.94109    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.21742e-10
Minuit parameter uncertainties:
  1  4.40853
  2  5.3225
  3  0.24829
  4  0.218856
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/340740': 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) = 4457.66238761
delta logL = 1.3516899153

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  4.691e-01  4.409e+00  1.000e-04  1.000e+04 ( 1.000e-12)
306        Index:  4.457e+00  5.323e+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.590e-01  2.189e-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.045e+00  2.483e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.50
Ra Dec: 337.758 -44.279
Photon Index (Free Index): 4.46 +/- 5.32
Photon Flux (Free Index): 1.05e-07 +/- 7.38e-08
Energy Flux (Free Index): 1.48e-05 +/- 1.59e-05

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/340740/cmap_HighResolution_618537601_618796801_4FGL_J2231.0-4416_daily_bin1463.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', comment='SUCCESS', energy_flux2='1.48e-05', dlogl='1.35e+00', photon_flux2='1.05e-07', job_status='DONE', time_completed='2021-09-28 13:53:48.491151', photon_index_error2='5.32', photon_index2='4.46', ts='0.59', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.48e-07', energy_flux_error2='1.59e-05', EG='1.14', time_epoch_completed='1632862428.49', return_code='0', job_id='340740', GAL2='0.96', EG2='1.05', return_code2='102', photon_flux_error2='7.38e-08', ts2='3.50', photon_index='2.43' WHERE bin_id='1463' AND source_name='4FGL J2231.0-4416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 13:53:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 340740: <4FGL_J2231.0-4416_daily_bin1463> in cluster <slac> Done

Job <4FGL_J2231.0-4416_daily_bin1463> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep 28 13:40:13 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 13:40:14 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:40:14 2021
Terminated at Tue Sep 28 13:53:49 2021
Results reported at Tue Sep 28 13:53:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2231.0-4416_daily_bin1463 337.758 -44.2791 618537601 618796801 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 :                                   788.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             285.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            816 sec.

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

