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


Performing analysis on: 4FGL_J2231.0-4416_daily_bin1077
RA = 337.758, Dec = -44.2791
tmin = 518486401, tmax = 518745601
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='338100', job_status='RUN', time_executed='2021-09-28 13:31:14.885981', time_epoch_executed='1632861074.89' WHERE source_name='4FGL J2231.0-4416' and cadence='daily' and bin_id='1077'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/338100

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/338100/ft1_4FGL_J2231.0-4416_daily_bin1077.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/338100/ft2_4FGL_J2231.0-4416_daily_bin1077.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/338100/ft1_4FGL_J2231.0-4416_daily_bin1077.fits outfile=/scratch/kocevski/338100/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin1077.fits ra=337.758 dec=-44.2791 rad=12.0 tmin=518486401.0 tmax=518745601.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 6.85
user 6.53
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/338100/ft2_4FGL_J2231.0-4416_daily_bin1077.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/338100/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin1077.fits evtable="EVENTS" outfile="/scratch/kocevski/338100/ft1_filtered_4FGL_J2231.0-4416_daily_bin1077.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/338100/ft1_filtered_4FGL_J2231.0-4416_daily_bin1077.fits" evtable="EVENTS" scfile=/scratch/kocevski/338100/ft2_4FGL_J2231.0-4416_daily_bin1077.fits sctable="SC_DATA" outfile=/scratch/kocevski/338100/ltcube_518486401_518745601_4FGL_J2231.0-4416_daily_bin1077.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/338100/ft2_4FGL_J2231.0-4416_daily_bin1077.fits
.....................!
real 11.36
user 11.03
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/338100/ft1_filtered_4FGL_J2231.0-4416_daily_bin1077.fits evtable="EVENTS" scfile=/scratch/kocevski/338100/ft2_4FGL_J2231.0-4416_daily_bin1077.fits sctable="SC_DATA" expcube=/scratch/kocevski/338100/ltcube_518486401_518745601_4FGL_J2231.0-4416_daily_bin1077.fits outfile=/scratch/kocevski/338100/expmap_518486401_518745601_4FGL_J2231.0-4416_daily_bin1077.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/338100/ltcube_518486401_518745601_4FGL_J2231.0-4416_daily_bin1077.fits
.....................!
real 192.44
user 186.85
sys 5.23

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/338100/ft1_filtered_4FGL_J2231.0-4416_daily_bin1077.fits scfile=/scratch/kocevski/338100/ft2_4FGL_J2231.0-4416_daily_bin1077.fits outfile=/scratch/kocevski/338100/cmap_518486401_518745601_4FGL_J2231.0-4416_daily_bin1077.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.55
user 0.34
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/338100/ft1_filtered_4FGL_J2231.0-4416_daily_bin1077.fits scfile=/scratch/kocevski/338100/ft2_4FGL_J2231.0-4416_daily_bin1077.fits outfile=/scratch/kocevski/338100/cmap_HighResolution_518486401_518745601_4FGL_J2231.0-4416_daily_bin1077.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.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/338100/ft1_filtered_4FGL_J2231.0-4416_daily_bin1077.fits evtable="EVENTS" scfile=/scratch/kocevski/338100/ft2_4FGL_J2231.0-4416_daily_bin1077.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/338100/Model_4FGL_J2231.0-4416_daily_bin1077.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/338100/ft1_filtered_4FGL_J2231.0-4416_daily_bin1077.fits.....................!
real 30.21
user 28.28
sys 1.70

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13118       1.0000         .10000E-03   10000.    
     2 'Prefactor '    38.115       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.8905       1.0000         .10000E-03   10000.    
     4 'norm      '    .23055E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.4218       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.0606       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.2162       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13600E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.465       1.0000         .10000E-03   10000.    
    10 'Prefactor '    71.935       1.0000         .10000E-03   10000.    
    11 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.3921       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    28.587       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10297E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11309E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.5619       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12139E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.2879       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10278E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10156E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10227E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    5.5304       1.0000         .10000E-03   10000.    
    29 'Prefactor '    62.958       1.0000         .10000E-03   10000.    
    30 'norm      '    .42038E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .11978E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    2.8357       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .57336       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.3486       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=   3013.847     FROM MIGRAD    STATUS=CONVERGED    990 CALLS     4929 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .42741E-02    10.093       -.49390E-06    .10202E-03
   2  Prefactor     38.115        41.729       -.27274E-06   -.88674E-04
   3  Prefactor     2.8953        7.1764        .34863E-06    .76998E-06
   4  norm          .10107E-03    4.8112        .15156E-05** at limit **
   5  Prefactor     8.4237        12.150       -.67110E-06   -.47085E-04
   6  Prefactor     2.0603        21.850        .93292E-05   -.11934E-03
   7  Prefactor     6.2253        57.970        .99695E-06   -.15567E-04
   8  Prefactor     .10000E-03    17.952       -.44578E-05** at limit **
   9  Prefactor     12.463        7.6890       -.61585E-07    .98251E-04
  10  Prefactor     71.826        165.94        .11872E-04   -.49573E-04
  11  norm          .10000E-03    4.3555       -.15348E-07** at limit **
  12  Prefactor     .10000E-03    17.209        .38102E-06** at limit **
  13  Prefactor     1.3916        12.483        .12050E-05   -.37589E-04
  14  Prefactor     .10000E-03    54.355       -.18877E-05** at limit **
  15  Prefactor     28.585        13.843        .10715E-06   -.13223E-04
  16  Prefactor     .10000E-03    10.520        .19827E-08** at limit **
  17  Prefactor     .10000E-03    79.084        .80188E-06** at limit **
  18  Prefactor     4.5324        98.922       -.24894E-05    .11785E-04
  19  Prefactor     .10000E-03    7.3427        .28727E-06** at limit **
  20  Prefactor     .10000E-03    80.033        .91108E-06** at limit **
  21  Prefactor     5.2830        11.394        .31343E-06   -.49047E-04
  22  Prefactor     .10000E-03    16.321       -.66244E-07** at limit **
  23  Prefactor     .10000E-03    25.141        .11554E-06** at limit **
  24  Prefactor     .10000E-03    33.783       -.30702E-07** at limit **
  25  norm          .10000E-03    47.758        .17568E-05** at limit **
  26  norm          .10000E-03    4.3594        .28381E-07** at limit **
  27  norm          .10000E-03    3.4302        .27130E-07** at limit **
  28  Prefactor     5.5369        10.269       -.72147E-06   -.96156E-03
  29  Prefactor     62.791        72.088       -.27992E-05   -.27584E-03
  30  norm          .10000E-03    8.2227        .14430E-05** at limit **
  31  Prefactor     .10003E-03    35.358        .39345E-05** at limit **
  32  norm          2.8362        1.9369       -.56475E-07   -.90437E-03
  33  Normalizat    .57419        .29744       -.12317E-05   -.29921E-03
  34  Prefactor     1.3481        .25830       -.11490E-05   -.32579E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00427414
  Prefactor  = 38.1151
  Prefactor  = 2.89535
  norm       = 0.000101073
  Prefactor  = 8.42368
  Prefactor  = 2.06027
  Prefactor  = 6.22532
  Prefactor  = 0.000100004
  Prefactor  = 12.4631
  Prefactor  = 71.8259
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.3916
  Prefactor  = 0.000100001
  Prefactor  = 28.5853
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.5324
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.283
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 5.53694
  Prefactor  = 62.7909
  norm       = 0.000100001
  Prefactor  = 0.000100032
  norm       = 2.83623
  Normalizat = 0.574192
  Prefactor  = 1.34812
 **********
 **   18 **HESSE 
 **********

 FCN=   3013.847     FROM HESSE     STATUS=OK           740 CALLS     5669 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .42741E-02    25.126        .53829E-01   -1.5695    
   2  Prefactor     38.115        40.786        .64920E-04   -1.4472    
   3  Prefactor     2.8953        7.1774        .21940E-03   -1.5368    
   4  norm          .10107E-03    79.737        .21401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.4237        12.143        .13814E-03   -1.5127    
   6  Prefactor     2.0603        21.908        .14394E-02   -1.5421    
   7  Prefactor     6.2253        57.827        .16101E-03   -1.5209    
   8  Prefactor     .10000E-03    18.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.463        7.6706        .11245E-03   -1.5002    
  10  Prefactor     71.826        162.78        .23667E-03   -1.4011    
  11  norm          .10000E-03    4.3563        .11190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    17.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.3916        12.098        .33481E-03   -1.5472    
  14  Prefactor     .10000E-03    54.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     28.585        13.725        .74932E-04   -1.4638    
  16  Prefactor     .10000E-03    10.526        .17393E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    79.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.5324        96.379        .18847E-03   -1.5282    
  19  Prefactor     .10000E-03    7.3505        .14519E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    80.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.2830        11.376        .17479E-03   -1.5248    
  22  Prefactor     .10000E-03    16.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    25.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    34.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    48.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    4.3608        .11195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    3.4311        .99292E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     5.5369        9.2571        .85423E-03   -1.5237    
  29  Prefactor     62.791        62.370        .50573E-04   -1.4121    
  30  norm          .10000E-03    29.796        .25600E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10003E-03    142.31        .53110E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          2.8362        1.9320        .59837E-04   -1.5371    
  33  Normalizat    .57419        .34073        .33271E-03   -1.0909    
  34  Prefactor     1.3481        .30598        .21397E-03   -.81887    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49882e-08
Minuit parameter uncertainties:
  1  0.647968
  2  40.8157
  3  7.17957
  4  0.0185217
  5  12.1466
  6  13.4427
  7  37.9953
  8  0.000565813
  9  7.67122
  10  163.809
  11  8.45323e-07
  12  3.3769e-05
  13  8.20808
  14  0.000467016
  15  13.7268
  16  3.00773e-06
  17  0.000158145
  18  41.8775
  19  2.94457e-05
  20  0.000178561
  21  11.3804
  22  1.4617e-05
  23  1.37638e-05
  24  0.000160799
  25  0.000420828
  26  3.6365e-06
  27  3.53868e-06
  28  9.25945
  29  62.4354
  30  0.000298558
  31  0.00430946
  32  1.93202
  33  0.341986
  34  0.306395
Done.

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

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  1.392e+00  8.208e+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:  1.348e+00  3.064e-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:  5.742e-01  3.420e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/338100/likelihoodResults_518486401_518745601_4FGL_J2231.0-4416_daily_bin1077.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3013.36310653
delta logL = 0.483444657224

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3013.20135899
delta logL = 0.645192195997

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .45577       1.0000         .10000E-03   10000.    
     2 'Index     '    4.5307       1.0000          .0000       10.000    
     3 'Normalizat'    .44465       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4221       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=   3013.201     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      233 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .45498        7.7829        .72101E-02    .63588E-03
   2  Index         4.5331        3.5159        .12195        .71508E-04
   3  Normalizat    .44508        .66436E-01    .84748E-01    .19334E-04
   4  Prefactor     1.4218        .63225E-01    .47288E-01   -.83815E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.454981
  Index      = 4.53315
  Normalizat = 0.445078
  Prefactor  = 1.42182
 **********
 **   18 **HESSE 
 **********

 FCN=   3013.201     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      266 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .45498        17.439        .32480E-04   -1.5573    
   2  Index         4.5331        7.2619        .45639E-02   -.93506E-01
   3  Normalizat    .44508        .28263        .37539E-03   -1.1503    
   4  Prefactor     1.4218        .26291        .20902E-03   -.79753    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.66767e-07
Minuit parameter uncertainties:
  1  5.63479
  2  7.04873
  3  0.283545
  4  0.263157
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/338100': 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) = 3013.20135151
delta logL = 0.645199676172

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  4.550e-01  5.635e+00  1.000e-04  1.000e+04 ( 1.000e-12)
306        Index:  4.533e+00  7.049e+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:  1.422e+00  2.632e-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:  4.451e-01  2.835e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.52
Ra Dec: 337.758 -44.279
Photon Index (Free Index): 4.53 +/- 7.05
Photon Flux (Free Index): 1.16e-07 +/- 1.11e-07
Energy Flux (Free Index): 1.62e-05 +/- 2.19e-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/338100/cmap_HighResolution_518486401_518745601_4FGL_J2231.0-4416_daily_bin1077.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.39e-02', comment='SUCCESS', energy_flux2='1.62e-05', dlogl='6.45e-01', photon_flux2='1.16e-07', job_status='DONE', time_completed='2021-09-28 13:42:00.243466', photon_index_error2='7.05', photon_index2='4.53', ts='0.04', fit_tolerance='1e-08', GAL='1.35', photon_index_error='0.00', photon_flux_upper_limit='1.80e-07', energy_flux_error2='2.19e-05', EG='0.57', time_epoch_completed='1632861720.24', return_code='0', job_id='338100', GAL2='1.42', EG2='0.45', return_code2='102', photon_flux_error2='1.11e-07', ts2='1.52', photon_index='2.43' WHERE bin_id='1077' AND source_name='4FGL J2231.0-4416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 13:42:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 338100: <4FGL_J2231.0-4416_daily_bin1077> in cluster <slac> Done

Job <4FGL_J2231.0-4416_daily_bin1077> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 13:30:31 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 13:30:33 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:30:33 2021
Terminated at Tue Sep 28 13:42:01 2021
Results reported at Tue Sep 28 13:42:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2231.0-4416_daily_bin1077 337.758 -44.2791 518486401 518745601 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 :                                   643.19 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             283.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   687 sec.
    Turnaround time :                            690 sec.

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

