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


Performing analysis on: 4FGL_J2231.0-4416_daily_bin1633
RA = 337.758, Dec = -44.2791
tmin = 662601601, tmax = 662860801
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='693012', job_status='RUN', time_executed='2022-01-03 00:35:46.738901', time_epoch_executed='1641198946.74' WHERE source_name='4FGL J2231.0-4416' and cadence='daily' and bin_id='1633'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/693012

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/693012/ft1_4FGL_J2231.0-4416_daily_bin1633.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/693012/ft2_4FGL_J2231.0-4416_daily_bin1633.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/693012/ft1_4FGL_J2231.0-4416_daily_bin1633.fits outfile=/scratch/kocevski/693012/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin1633.fits ra=337.758 dec=-44.2791 rad=12.0 tmin=662601601.0 tmax=662860801.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 2.94
user 2.72
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/693012/ft1_filtered_4FGL_J2231.0-4416_daily_bin1633.fits" evtable="EVENTS" scfile=/scratch/kocevski/693012/ft2_4FGL_J2231.0-4416_daily_bin1633.fits sctable="SC_DATA" outfile=/scratch/kocevski/693012/ltcube_662601601_662860801_4FGL_J2231.0-4416_daily_bin1633.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/693012/ft2_4FGL_J2231.0-4416_daily_bin1633.fits
.....................!
real 12.58
user 12.22
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/693012/ft1_filtered_4FGL_J2231.0-4416_daily_bin1633.fits evtable="EVENTS" scfile=/scratch/kocevski/693012/ft2_4FGL_J2231.0-4416_daily_bin1633.fits sctable="SC_DATA" expcube=/scratch/kocevski/693012/ltcube_662601601_662860801_4FGL_J2231.0-4416_daily_bin1633.fits outfile=/scratch/kocevski/693012/expmap_662601601_662860801_4FGL_J2231.0-4416_daily_bin1633.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/693012/ltcube_662601601_662860801_4FGL_J2231.0-4416_daily_bin1633.fits
.....................!
real 190.97
user 185.92
sys 4.68

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/693012/ft1_filtered_4FGL_J2231.0-4416_daily_bin1633.fits scfile=/scratch/kocevski/693012/ft2_4FGL_J2231.0-4416_daily_bin1633.fits outfile=/scratch/kocevski/693012/cmap_662601601_662860801_4FGL_J2231.0-4416_daily_bin1633.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/693012/ft1_filtered_4FGL_J2231.0-4416_daily_bin1633.fits scfile=/scratch/kocevski/693012/ft2_4FGL_J2231.0-4416_daily_bin1633.fits outfile=/scratch/kocevski/693012/cmap_HighResolution_662601601_662860801_4FGL_J2231.0-4416_daily_bin1633.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/693012/ft1_filtered_4FGL_J2231.0-4416_daily_bin1633.fits evtable="EVENTS" scfile=/scratch/kocevski/693012/ft2_4FGL_J2231.0-4416_daily_bin1633.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/693012/Model_4FGL_J2231.0-4416_daily_bin1633.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/693012/ft1_filtered_4FGL_J2231.0-4416_daily_bin1633.fits.....................!
real 47.47
user 46.18
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    34.588       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.5085       1.0000         .10000E-03   10000.    
     4 'norm      '    8.6126       1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.634       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.8089       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.4058       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.7119       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.903       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.7698       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.683       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.7191       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.2648       1.0000         .10000E-03   10000.    
    23 'Prefactor '    25.649       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    14.674       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    5.2716       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    24.225       1.0000         .10000E-03   10000.    
    30 'norm      '    .11639E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    7.4937       1.0000         .10000E-03   10000.    
    32 'norm      '    .76271       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .75944       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .97355       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.

 FCN=   6558.861     FROM MIGRAD    STATUS=CONVERGED    926 CALLS     4802 TOTAL
                     EDM=   .22E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.8404       -.17896E-07** at limit **
   2  Prefactor     34.590        40.701        .13315E-05    .28387E-06
   3  Prefactor     3.5090        4.0933       -.57639E-07   -.14312E-04
   4  norm          8.6127        5.8731       -.20493E-06   -.50875E-05
   5  Prefactor     27.633        12.665       -.67266E-07   -.90269E-05
   6  Prefactor     .10000E-03    5.4323        .17591E-08** at limit **
   7  Prefactor     .10000E-03    30.814       -.14571E-06** at limit **
   8  Prefactor     2.8057        2.7246       -.74830E-07   -.34764E-03
   9  Prefactor     4.4047        3.6322        .87774E-07   -.30757E-03
  10  Prefactor     .10000E-03    111.80        .48056E-06** at limit **
  11  norm          .10000E-03    2.1118       -.23818E-08** at limit **
  12  Prefactor     .10000E-03    2.0647       -.51444E-08** at limit **
  13  Prefactor     8.7116        3.9505       -.29467E-07    .27244E-05
  14  Prefactor     12.902        33.433       -.10658E-05   -.11035E-06
  15  Prefactor     .10000E-03    1.4244       -.15861E-08** at limit **
  16  Prefactor     9.7691        13.350       -.38888E-07   -.22963E-04
  17  Prefactor     .10000E-03    6.6671        .30918E-08** at limit **
  18  Prefactor     24.666        24.277       -.11700E-05   -.88235E-05
  19  Prefactor     5.7221        10.533        .10278E-05    .19616E-05
  20  Prefactor     .10000E-03    50.597        .95246E-08** at limit **
  21  Prefactor     .10000E-03    1.3729       -.17244E-08** at limit **
  22  Prefactor     4.2665        31.448        .10864E-05   -.12152E-05
  23  Prefactor     25.647        40.171       -.25672E-05    .48198E-06
  24  Prefactor     .10000E-03    10.832       -.31853E-07** at limit **
  25  norm          14.675        9.8669       -.24942E-06   -.31820E-06
  26  norm          .10000E-03    1.3247       -.46808E-08** at limit **
  27  norm          5.2717        3.6267        .11198E-06   -.16671E-05
  28  Prefactor     .10000E-03    3.1094        .98944E-07** at limit **
  29  Prefactor     24.217        26.040       -.15859E-05   -.46645E-05
  30  norm          .10000E-03    2.3399        .85425E-07** at limit **
  31  Prefactor     7.4960        11.226       -.12072E-05   -.20468E-04
  32  norm          .76253        .99948        .89883E-07    .21575E-03
  33  Normalizat    .75958        .16464        .85852E-06   -.39108E-04
  34  Prefactor     .97339        .15270       -.24864E-06    .28005E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 34.5902
  Prefactor  = 3.509
  norm       = 8.6127
  Prefactor  = 27.6327
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.80565
  Prefactor  = 4.4047
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.71162
  Prefactor  = 12.902
  Prefactor  = 0.0001
  Prefactor  = 9.76914
  Prefactor  = 0.0001
  Prefactor  = 24.6662
  Prefactor  = 5.72208
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.26646
  Prefactor  = 25.6465
  Prefactor  = 0.0001
  norm       = 14.6747
  norm       = 0.0001
  norm       = 5.27172
  Prefactor  = 0.0001
  Prefactor  = 24.2171
  norm       = 0.0001
  Prefactor  = 7.49599
  norm       = 0.76253
  Normalizat = 0.759581
  Prefactor  = 0.973388
 **********
 **   18 **HESSE 
 **********

 FCN=   6558.861     FROM HESSE     STATUS=OK           740 CALLS     5542 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.9439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     34.590        40.665        .68139E-04   -1.4531    
   3  Prefactor     3.5090        4.0889        .17100E-03   -1.5333    
   4  norm          8.6127        5.8705        .13659E-03   -1.5121    
   5  Prefactor     27.633        12.675        .38105E-03   -1.4656    
   6  Prefactor     .10000E-03    5.4624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    31.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.8057        5.1206        .11879E-02   -1.5373    
   9  Prefactor     4.4047        3.9286        .71738E-03   -1.5288    
  10  Prefactor     .10000E-03    112.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.1166        .11494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.0734        .11363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.7116        3.9556        .10186E-03   -1.5118    
  14  Prefactor     12.902        33.419        .11151E-03   -1.4989    
  15  Prefactor     .10000E-03    1.4296        .94353E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.7691        13.459        .64102E-03   -1.5083    
  17  Prefactor     .10000E-03    6.6785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     24.666        24.203        .80628E-04   -1.4714    
  19  Prefactor     5.7221        10.477        .16796E-03   -1.5230    
  20  Prefactor     .10000E-03    50.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.3751        .92664E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.2665        31.442        .19510E-03   -1.5295    
  23  Prefactor     25.647        40.046        .79098E-04   -1.4695    
  24  Prefactor     .10000E-03    10.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          14.675        9.8669        .10456E-03   -1.4942    
  26  norm          .10000E-03    1.3250        .91022E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          5.2717        3.6256        .12272E-03   -1.5249    
  28  Prefactor     .10000E-03    3.1461        .13888E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     24.217        25.985        .81385E-04   -1.4723    
  30  norm          .10000E-03    2.3718        .12055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     7.4960        11.074        .14650E-03   -1.5160    
  32  norm          .76253        .90905        .84121E-03   -1.5533    
  33  Normalizat    .75958        .19090        .25351E-03   -1.0159    
  34  Prefactor     .97339        .17838        .22320E-03   -.93622    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7006e-10
Minuit parameter uncertainties:
  1  1.14877e-05
  2  40.6974
  3  4.08927
  4  5.87085
  5  12.6765
  6  1.93922e-06
  7  1.27164e-05
  8  5.12139
  9  3.92881
  10  2.18774e-05
  11  3.29599e-07
  12  9.48582e-07
  13  3.95575
  14  33.4676
  15  3.34777e-08
  16  13.4633
  17  3.69537e-07
  18  24.2122
  19  10.4807
  20  2.10237e-05
  21  9.82306e-08
  22  23.1812
  23  40.0875
  24  6.3341e-06
  25  9.86796
  26  1.01374e-07
  27  3.62576
  28  1.86305e-05
  29  25.9971
  30  1.3212e-05
  31  11.0769
  32  0.909062
  33  0.19107
  34  0.178486
Done.

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

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  8.712e+00  3.956e+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:  9.734e-01  1.785e-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:  7.596e-01  1.911e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.07
Ra Dec: 337.758 -44.279
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 8.00e-08 +/- 3.63e-08
Energy Flux (Fixed Index): 2.53e-05 +/- 1.15e-05

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) = 6558.82887714
delta logL = 0.0323057273599

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6558.82328733
delta logL = 0.0378955344768

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.4723       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3187       1.0000          .0000       10.000    
     3 'Normalizat'    .76592       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96893       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=   6558.823     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      262 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.4724        5.0539        .10746E-03   -.78965E-03
   2  Index         2.3184        .39321        .54544E-02   -.18268E-03
   3  Normalizat    .76577        .17706        .25258E-03    .58963E-04
   4  Prefactor     .96899        .17372        .22364E-03    .92775E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.47243
  Index      = 2.31838
  Normalizat = 0.765774
  Prefactor  = 0.968988
 **********
 **   18 **HESSE 
 **********

 FCN=   6558.823     FROM HESSE     STATUS=OK            25 CALLS      287 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.4724        4.9506        .42984E-05   -1.5092    
   2  Index         2.3184        .38504        .21817E-03   -.56608    
   3  Normalizat    .76577        .17721        .10103E-04   -1.0135    
   4  Prefactor     .96899        .17384        .89455E-05   -.93771    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69712e-10
Minuit parameter uncertainties:
  1  4.95082
  2  0.385573
  3  0.17734
  4  0.173944
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/693012': 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) = 6558.82328603
delta logL = 0.0378968335381

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  9.472e+00  4.951e+00  1.000e-04  1.000e+04 ( 1.000e-12)
306        Index:  2.318e+00  3.856e-01  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.690e-01  1.739e-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:  7.658e-01  1.773e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.05
Ra Dec: 337.758 -44.279
Photon Index (Free Index): 2.32 +/- 0.39
Photon Flux (Free Index): 7.57e-08 +/- 3.80e-08
Energy Flux (Free Index): 2.79e-05 +/- 1.62e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.355e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.614e-03 [aplpy.core]
Saving /scratch/kocevski/693012/cmap_HighResolution_662601601_662860801_4FGL_J2231.0-4416_daily_bin1633.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.00e-08', energy_flux2='2.79e-05', photon_flux_error='3.63e-08', dlogl='3.79e-02', energy_flux='2.53e-05', photon_flux2='7.57e-08', job_status='DONE', time_completed='2022-01-03 00:49:56.575333', photon_index_error2='0.39', photon_index2='2.32', ts='10.07', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='1.62e-05', EG='0.76', time_epoch_completed='1641199796.58', return_code='0', job_id='693012', GAL2='0.97', EG2='0.77', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='3.80e-08', ts2='10.05', photon_index='2.43' WHERE bin_id='1633' AND source_name='4FGL J2231.0-4416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jan  3 00:49:56 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 693012: <4FGL_J2231.0-4416_daily_bin1633> in cluster <slac> Done

Job <4FGL_J2231.0-4416_daily_bin1633> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Mon Jan  3 00:35:32 2022
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jan  3 00:35:35 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jan  3 00:35:35 2022
Terminated at Mon Jan  3 00:49:57 2022
Results reported at Mon Jan  3 00:49:57 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2231.0-4416_daily_bin1633 337.758 -44.2791 662601601 662860801 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 :                                   852.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             344.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   861 sec.
    Turnaround time :                            865 sec.

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

