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


Performing analysis on: 4FGL_J2231.0-4416_daily_bin1308
RA = 337.758, Dec = -44.2791
tmin = 578361601, tmax = 578620801
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='339518', job_status='RUN', time_executed='2021-09-28 13:36:47.545093', time_epoch_executed='1632861407.55' WHERE source_name='4FGL J2231.0-4416' and cadence='daily' and bin_id='1308'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/339518

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/339518/ft1_4FGL_J2231.0-4416_daily_bin1308.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/339518/ft2_4FGL_J2231.0-4416_daily_bin1308.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/339518/ft1_4FGL_J2231.0-4416_daily_bin1308.fits outfile=/scratch/kocevski/339518/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin1308.fits ra=337.758 dec=-44.2791 rad=12.0 tmin=578361601.0 tmax=578620801.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.62
user 3.40
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/339518/ft2_4FGL_J2231.0-4416_daily_bin1308.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/339518/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin1308.fits evtable="EVENTS" outfile="/scratch/kocevski/339518/ft1_filtered_4FGL_J2231.0-4416_daily_bin1308.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.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/339518/ft1_filtered_4FGL_J2231.0-4416_daily_bin1308.fits" evtable="EVENTS" scfile=/scratch/kocevski/339518/ft2_4FGL_J2231.0-4416_daily_bin1308.fits sctable="SC_DATA" outfile=/scratch/kocevski/339518/ltcube_578361601_578620801_4FGL_J2231.0-4416_daily_bin1308.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/339518/ft2_4FGL_J2231.0-4416_daily_bin1308.fits
.....................!
real 11.69
user 11.34
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/339518/ft1_filtered_4FGL_J2231.0-4416_daily_bin1308.fits evtable="EVENTS" scfile=/scratch/kocevski/339518/ft2_4FGL_J2231.0-4416_daily_bin1308.fits sctable="SC_DATA" expcube=/scratch/kocevski/339518/ltcube_578361601_578620801_4FGL_J2231.0-4416_daily_bin1308.fits outfile=/scratch/kocevski/339518/expmap_578361601_578620801_4FGL_J2231.0-4416_daily_bin1308.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/339518/ltcube_578361601_578620801_4FGL_J2231.0-4416_daily_bin1308.fits
.....................!
real 189.95
user 184.71
sys 4.93

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/339518/ft1_filtered_4FGL_J2231.0-4416_daily_bin1308.fits scfile=/scratch/kocevski/339518/ft2_4FGL_J2231.0-4416_daily_bin1308.fits outfile=/scratch/kocevski/339518/cmap_578361601_578620801_4FGL_J2231.0-4416_daily_bin1308.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/339518/ft1_filtered_4FGL_J2231.0-4416_daily_bin1308.fits scfile=/scratch/kocevski/339518/ft2_4FGL_J2231.0-4416_daily_bin1308.fits outfile=/scratch/kocevski/339518/cmap_HighResolution_578361601_578620801_4FGL_J2231.0-4416_daily_bin1308.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/339518/ft1_filtered_4FGL_J2231.0-4416_daily_bin1308.fits evtable="EVENTS" scfile=/scratch/kocevski/339518/ft2_4FGL_J2231.0-4416_daily_bin1308.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/339518/Model_4FGL_J2231.0-4416_daily_bin1308.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/339518/ft1_filtered_4FGL_J2231.0-4416_daily_bin1308.fits.....................!
real 43.71
user 42.46
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.3591       1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.207       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    17.915       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.198       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10778E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.1244       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11441E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.902       1.0000         .10000E-03   10000.    
    14 'Prefactor '    36.886       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.2891       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.0333       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.3911       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10372E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .23208E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    72.742       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.5256       1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    4.9017       1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.2227       1.0000         .10000E-03   10000.    
    29 'Prefactor '    36.531       1.0000         .10000E-03   10000.    
    30 'norm      '    6.7819       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.0359       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .94589       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=   5493.606     FROM MIGRAD    STATUS=CONVERGED    923 CALLS     4795 TOTAL
                     EDM=   .54E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.3582        9.6417        .52674E-06   -.98756E-04
   2  Prefactor     23.183        32.561       -.19069E-06   -.13543E-04
   3  Prefactor     .10000E-03    3.1035        .45433E-07** at limit **
   4  norm          17.916        7.3087        .12516E-07   -.11290E-04
   5  Prefactor     14.209        11.432        .23821E-07   -.59773E-05
   6  Prefactor     .10000E-03    2.9864       -.19150E-07** at limit **
   7  Prefactor     .10000E-03    23.159       -.14019E-06** at limit **
   8  Prefactor     .10000E-03    2.7317        .23029E-07** at limit **
   9  Prefactor     5.1239        4.8514        .73988E-07   -.52572E-04
  10  Prefactor     .10000E-03    25.633        .16622E-06** at limit **
  11  norm          .10000E-03    1.9719        .13020E-08** at limit **
  12  Prefactor     .10000E-03    4.3421        .47050E-07** at limit **
  13  Prefactor     13.903        5.8935        .35593E-07   -.19461E-04
  14  Prefactor     36.872        44.959       -.16159E-06   -.17685E-04
  15  Prefactor     3.2891        5.4377        .10570E-06   -.24799E-04
  16  Prefactor     .10000E-03    10.183        .47892E-07** at limit **
  17  Prefactor     .10000E-03    7.1787       -.16789E-07** at limit **
  18  Prefactor     8.0368        27.985       -.25256E-06   -.20940E-04
  19  Prefactor     5.3886        11.175        .20228E-06   -.31653E-04
  20  Prefactor     .10000E-03    174.94        .13988E-05** at limit **
  21  Prefactor     .10000E-03    2.9639        .45214E-07** at limit **
  22  Prefactor     .10000E-03    367.68       -.80872E-05** at limit **
  23  Prefactor     72.673        64.855       -.11725E-05   -.81141E-04
  24  Prefactor     1.5290        21.072        .79177E-06   -.15681E-04
  25  norm          .10000E-03    3.8883        .35953E-07** at limit **
  26  norm          .10000E-03    11.866        .48609E-05** at limit **
  27  norm          4.9019        4.5269       -.36772E-06    .15922E-03
  28  Prefactor     3.2200        5.9533       -.42438E-06   -.11931E-03
  29  Prefactor     36.552        72.812        .79994E-06    .11937E-04
  30  norm          6.7790        9.1636       -.10284E-07   -.86619E-05
  31  Prefactor     .10000E-03    13.454        .13294E-05** at limit **
  32  norm          .10000E-03    .34186        .13315E-06** at limit **
  33  Normalizat    1.0358        .21089       -.39696E-06   -.74459E-04
  34  Prefactor     .94595        .18338        .68452E-08   -.53538E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.35815
  Prefactor  = 23.1831
  Prefactor  = 0.0001
  norm       = 17.9157
  Prefactor  = 14.2094
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.12389
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.9025
  Prefactor  = 36.8717
  Prefactor  = 3.28905
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.03675
  Prefactor  = 5.38864
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 72.6729
  Prefactor  = 1.52902
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.90195
  Prefactor  = 3.22003
  Prefactor  = 36.5524
  norm       = 6.77904
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.0358
  Prefactor  = 0.945952
 **********
 **   18 **HESSE 
 **********

 FCN=   5493.606     FROM HESSE     STATUS=OK           740 CALLS     5535 TOTAL
                     EDM=   .96E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.3582        9.6873        .65500E-03   -1.5096    
   2  Prefactor     23.183        32.563        .83148E-04   -1.4745    
   3  Prefactor     .10000E-03    3.1410        .12742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          17.916        7.3167        .94627E-04   -1.4861    
   5  Prefactor     14.209        11.430        .10630E-03   -1.4954    
   6  Prefactor     .10000E-03    2.9896        .12508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    23.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.7378        .11962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.1239        4.8471        .15031E-03   -1.5255    
  10  Prefactor     .10000E-03    25.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.9720        .10165E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.3647        .15082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.903        5.9200        .10742E-03   -1.4962    
  14  Prefactor     36.872        44.995        .65989E-04   -1.4493    
  15  Prefactor     3.2891        5.3962        .20896E-03   -1.5345    
  16  Prefactor     .10000E-03    10.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.1849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.0368        27.680        .14146E-03   -1.5141    
  19  Prefactor     5.3886        11.059        .17308E-03   -1.5244    
  20  Prefactor     .10000E-03    175.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.9758        .12462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    351.49        .89424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     72.673        66.180        .23536E-03   -1.4001    
  24  Prefactor     1.5290        20.979        .34574E-03   -1.5461    
  25  norm          .10000E-03    3.8899        .14274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    11.833        .31482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          4.9019        4.5462        .72961E-03   -1.5265    
  28  Prefactor     3.2200        5.9961        .22566E-03   -1.5349    
  29  Prefactor     36.552        73.258        .66308E-04   -1.4498    
  30  norm          6.7790        9.1680        .15407E-03   -1.5187    
  31  Prefactor     .10000E-03    13.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          .10000E-03    .34703        .42424E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    1.0358        .24486        .25953E-03   -.91841    
  34  Prefactor     .94595        .21263        .24936E-03   -.94553    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.55827e-11
Minuit parameter uncertainties:
  1  9.68888
  2  32.5883
  3  8.15821e-06
  4  7.31706
  5  11.432
  6  8.49616e-07
  7  4.30593e-05
  8  1.43082e-06
  9  4.8475
  10  2.58917e-05
  11  2.45855e-07
  12  6.97966e-06
  13  5.92025
  14  45.036
  15  5.397
  16  2.16772e-05
  17  8.44346e-06
  18  27.7243
  19  11.0627
  20  0.000399081
  21  5.19248e-06
  22  0.000134516
  23  66.2472
  24  11.3318
  25  6.30654e-07
  26  1.73469e-05
  27  4.54649
  28  5.99717
  29  73.4389
  30  9.16986
  31  2.58002e-06
  32  1.45194e-06
  33  0.245129
  34  0.212819
Done.

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

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  1.390e+01  5.920e+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.460e-01  2.128e-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.036e+00  2.451e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.47
Ra Dec: 337.758 -44.279
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 1.28e-07 +/- 5.43e-08
Energy Flux (Fixed Index): 4.04e-05 +/- 1.72e-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) = 5491.34596721
delta logL = 2.25970235222

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5491.32920127
delta logL = 2.27646828833

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5035       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5441       1.0000          .0000       10.000    
     3 'Normalizat'    .91772       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0215       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=   5491.329     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      246 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5012        19.789        .47430E-02    .11654E-03
   2  Index         3.5444        2.4916        .71511E-01    .12630E-03
   3  Normalizat    .91764        .99955E-01    .45128E-01    .13459E-04
   4  Prefactor     1.0216        .87148E-01    .41996E-01    .63070E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.50123
  Index      = 3.5444
  Normalizat = 0.917642
  Prefactor  = 1.02156
 **********
 **   18 **HESSE 
 **********

 FCN=   5491.329     FROM HESSE     STATUS=OK            31 CALLS      277 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5012        5.3174        .49675E-04   -1.5284    
   2  Index         3.5444        .76938        .30463E-02   -.29540    
   3  Normalizat    .91764        .23522        .27308E-03   -.95843    
   4  Prefactor     1.0216        .21299        .24096E-03   -.92014    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.10429e-09
Minuit parameter uncertainties:
  1  5.31794
  2  0.772733
  3  0.235481
  4  0.21317
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/339518': 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) = 5491.32920106
delta logL = 2.27646849992

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  4.501e+00  5.318e+00  1.000e-04  1.000e+04 ( 1.000e-12)
306        Index:  3.544e+00  7.727e-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:  1.022e+00  2.132e-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:  9.176e-01  2.355e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.62
Ra Dec: 337.758 -44.279
Photon Index (Free Index): 3.54 +/- 0.77
Photon Flux (Free Index): 2.19e-07 +/- 7.88e-08
Energy Flux (Free Index): 3.60e-05 +/- 1.26e-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/339518/cmap_HighResolution_578361601_578620801_4FGL_J2231.0-4416_daily_bin1308.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.28e-07', energy_flux2='3.60e-05', photon_flux_error='5.43e-08', dlogl='2.28e+00', energy_flux='4.04e-05', photon_flux2='2.19e-07', job_status='DONE', time_completed='2021-09-28 13:49:34.304708', photon_index_error2='0.77', photon_index2='3.54', ts='11.47', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='1.26e-05', EG='1.04', time_epoch_completed='1632862174.3', return_code='0', job_id='339518', GAL2='1.02', EG2='0.92', return_code2='0', energy_flux_error='1.72e-05', photon_flux_error2='7.88e-08', ts2='16.62', photon_index='2.43' WHERE bin_id='1308' AND source_name='4FGL J2231.0-4416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 13:49:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 339518: <4FGL_J2231.0-4416_daily_bin1308> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2231.0-4416_daily_bin1308 337.758 -44.2791 578361601 578620801 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 :                                   764.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             345.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            842 sec.

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

