/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 78 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 = 7679
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2231.0-4416_daily_bin224
RA = 337.758, Dec = -44.2791
tmin = 297388801, tmax = 297648001
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='332174', job_status='RUN', time_executed='2021-09-28 13:12:00.713045', time_epoch_executed='1632859920.71' WHERE source_name='4FGL J2231.0-4416' and cadence='daily' and bin_id='224'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/332174

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/332174/ft1_4FGL_J2231.0-4416_daily_bin224.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/332174/ft2_4FGL_J2231.0-4416_daily_bin224.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/332174/ft1_4FGL_J2231.0-4416_daily_bin224.fits outfile=/scratch/kocevski/332174/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin224.fits ra=337.758 dec=-44.2791 rad=12.0 tmin=297388801.0 tmax=297648001.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.68
user 3.44
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/332174/ft1_filtered_4FGL_J2231.0-4416_daily_bin224.fits" evtable="EVENTS" scfile=/scratch/kocevski/332174/ft2_4FGL_J2231.0-4416_daily_bin224.fits sctable="SC_DATA" outfile=/scratch/kocevski/332174/ltcube_297388801_297648001_4FGL_J2231.0-4416_daily_bin224.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/332174/ft2_4FGL_J2231.0-4416_daily_bin224.fits
.....................!
real 11.65
user 11.31
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/332174/ft1_filtered_4FGL_J2231.0-4416_daily_bin224.fits evtable="EVENTS" scfile=/scratch/kocevski/332174/ft2_4FGL_J2231.0-4416_daily_bin224.fits sctable="SC_DATA" expcube=/scratch/kocevski/332174/ltcube_297388801_297648001_4FGL_J2231.0-4416_daily_bin224.fits outfile=/scratch/kocevski/332174/expmap_297388801_297648001_4FGL_J2231.0-4416_daily_bin224.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/332174/ltcube_297388801_297648001_4FGL_J2231.0-4416_daily_bin224.fits
.....................!
real 193.00
user 187.55
sys 5.13

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/332174/ft1_filtered_4FGL_J2231.0-4416_daily_bin224.fits scfile=/scratch/kocevski/332174/ft2_4FGL_J2231.0-4416_daily_bin224.fits outfile=/scratch/kocevski/332174/cmap_297388801_297648001_4FGL_J2231.0-4416_daily_bin224.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.52
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/332174/ft1_filtered_4FGL_J2231.0-4416_daily_bin224.fits scfile=/scratch/kocevski/332174/ft2_4FGL_J2231.0-4416_daily_bin224.fits outfile=/scratch/kocevski/332174/cmap_HighResolution_297388801_297648001_4FGL_J2231.0-4416_daily_bin224.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/332174/ft1_filtered_4FGL_J2231.0-4416_daily_bin224.fits evtable="EVENTS" scfile=/scratch/kocevski/332174/ft2_4FGL_J2231.0-4416_daily_bin224.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/332174/Model_4FGL_J2231.0-4416_daily_bin224.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/332174/ft1_filtered_4FGL_J2231.0-4416_daily_bin224.fits.....................!
real 41.86
user 40.55
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.3416       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.5462       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    7.9581       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.4788       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.5008       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    10.368       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.986       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.1788       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9087       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10336E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.1591       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .73382E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.1161       1.0000         .10000E-03   10000.    
    22 'Prefactor '    104.54       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .22985E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.1928       1.0000         .10000E-03   10000.    
    25 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    6.0845       1.0000         .10000E-03   10000.    
    27 'norm      '    4.1463       1.0000         .10000E-03   10000.    
    28 'Prefactor '    7.6024       1.0000         .10000E-03   10000.    
    29 'Prefactor '    60.788       1.0000         .10000E-03   10000.    
    30 'norm      '    .10181E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    4.4973       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.3916       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .73608       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=   5160.035     FROM MIGRAD    STATUS=CONVERGED    941 CALLS     4820 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.3383        9.7957        .30050E-06    .16918E-04
   2  Prefactor     2.5202        192.41        .42776E-05    .27837E-05
   3  Prefactor     .10000E-03    1.1491       -.42239E-07** at limit **
   4  norm          7.9578        6.3843       -.29087E-06   -.27648E-04
   5  Prefactor     .10000E-03    3.0935        .14162E-06** at limit **
   6  Prefactor     2.4735        8.8466        .28424E-05    .78437E-04
   7  Prefactor     .10000E-03    22.143       -.11902E-05** at limit **
   8  Prefactor     .10000E-03    5.9901       -.24890E-06** at limit **
   9  Prefactor     8.4993        5.0260        .20517E-06   -.19400E-03
  10  Prefactor     .10000E-03    33.823       -.12585E-06** at limit **
  11  norm          10.367        7.6740       -.16081E-07   -.80439E-04
  12  Prefactor     14.985        8.8671        .50974E-07   -.36982E-04
  13  Prefactor     6.1776        4.8384        .33423E-06   -.95990E-04
  14  Prefactor     .10000E-03    16.665       -.51974E-06** at limit **
  15  Prefactor     1.9069        5.7080        .82932E-06   -.64666E-04
  16  Prefactor     .10000E-03    19.400        .10164E-05** at limit **
  17  Prefactor     .10000E-03    70.594       -.83117E-07** at limit **
  18  Prefactor     3.1879        84.759       -.77462E-05   -.18229E-03
  19  Prefactor     .11005E-03    10.908        .40812E-05** at limit **
  20  Prefactor     .10000E-03    34.308        .37765E-06** at limit **
  21  Prefactor     5.1165        6.0017        .11321E-06   -.63178E-04
  22  Prefactor     104.53        60.589        .93207E-06   -.75522E-04
  23  Prefactor     .10003E-03    532.30        .15943E-04** at limit **
  24  Prefactor     3.1890        16.877        .65532E-06   -.24533E-04
  25  norm          .10000E-03    6.4229       -.42926E-08** at limit **
  26  norm          6.0844        6.0753       -.27766E-07   -.73430E-05
  27  norm          4.1495        4.3355       -.89075E-07   -.90296E-03
  28  Prefactor     7.6011        6.8392        .13783E-06   -.41796E-04
  29  Prefactor     60.891        54.222       -.54368E-05   -.48147E-03
  30  norm          .10001E-03    5.1617        .45554E-05** at limit **
  31  Prefactor     .10000E-03    8.5237       -.12589E-06** at limit **
  32  norm          4.4969        2.0434        .55465E-07   -.12031E-03
  33  Normalizat    1.3918        .22895       -.30895E-05   -.65559E-03
  34  Prefactor     .73631        .18747        .29010E-05   -.35200E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.33827
  Prefactor  = 2.52019
  Prefactor  = 0.0001
  norm       = 7.9578
  Prefactor  = 0.0001
  Prefactor  = 2.47345
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.49926
  Prefactor  = 0.0001
  norm       = 10.3673
  Prefactor  = 14.9851
  Prefactor  = 6.17762
  Prefactor  = 0.0001
  Prefactor  = 1.90686
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 3.18794
  Prefactor  = 0.000110046
  Prefactor  = 0.0001
  Prefactor  = 5.11645
  Prefactor  = 104.53
  Prefactor  = 0.000100033
  Prefactor  = 3.18902
  norm       = 0.0001
  norm       = 6.08438
  norm       = 4.14954
  Prefactor  = 7.60112
  Prefactor  = 60.8912
  norm       = 0.000100007
  Prefactor  = 0.0001
  norm       = 4.49694
  Normalizat = 1.39177
  Prefactor  = 0.736312
 **********
 **   18 **HESSE 
 **********

 FCN=   5160.035     FROM HESSE     STATUS=OK           738 CALLS     5558 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.3383        9.7898        .74014E-03   -1.5166    
   2  Prefactor     2.5202        184.05        .25591E-03   -1.5390    
   3  Prefactor     .10000E-03    1.1517        .75194E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          7.9578        6.2582        .13839E-03   -1.5144    
   5  Prefactor     .10000E-03    3.0980        .12339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.4735        9.2634        .12984E-02   -1.5393    
   7  Prefactor     .10000E-03    22.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.0647        .17162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.4993        5.0230        .11790E-03   -1.5125    
  10  Prefactor     .10000E-03    33.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          10.367        7.6748        .12444E-03   -1.5064    
  12  Prefactor     14.985        8.8729        .10346E-03   -1.4934    
  13  Prefactor     6.1776        4.8477        .13240E-03   -1.5211    
  14  Prefactor     .10000E-03    16.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.9069        5.6436        .27703E-03   -1.5432    
  16  Prefactor     .10000E-03    19.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    71.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.1879        86.148        .22804E-03   -1.5351    
  19  Prefactor     .11005E-03    14.682        .63113E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    34.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.1165        6.0021        .17775E-03   -1.5256    
  22  Prefactor     104.53        60.513        .19664E-03   -1.3660    
  23  Prefactor     .10003E-03    526.52        .20100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.1890        16.779        .22677E-03   -1.5351    
  25  norm          .10000E-03    6.4279        .17781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          6.0844        6.0806        .16277E-03   -1.5215    
  27  norm          4.1495        4.3106        .14665E-03   -1.5301    
  28  Prefactor     7.6011        6.8395        .14544E-03   -1.5156    
  29  Prefactor     60.891        55.969        .25731E-03   -1.4146    
  30  norm          .10001E-03    8.7677        .26089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    8.5344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          4.4969        2.0403        .64878E-04   -1.5284    
  33  Normalizat    1.3918        .26315        .24252E-03   -.80867    
  34  Prefactor     .73631        .21714        .28221E-03   -1.0212    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.32734e-09
Minuit parameter uncertainties:
  1  9.79192
  2  43.2113
  3  1.14393e-06
  4  6.2587
  5  2.6099e-06
  6  9.26881
  7  2.45511e-05
  8  1.13246e-05
  9  5.02322
  10  1.29754e-06
  11  7.6755
  12  8.87372
  13  4.84796
  14  9.13308e-06
  15  5.6452
  16  9.52095e-05
  17  0.000440713
  18  33.1968
  19  0.0242959
  20  2.07888e-05
  21  6.00281
  22  60.5489
  23  0.00844899
  24  14.6361
  25  5.84928e-07
  26  6.08125
  27  4.31088
  28  6.84019
  29  56.0171
  30  0.000506089
  31  6.62753e-06
  32  2.04032
  33  0.263409
  34  0.217396
Done.

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

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  6.178e+00  4.848e+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:  7.363e-01  2.174e-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.392e+00  2.634e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.92
Ra Dec: 337.758 -44.279
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 5.67e-08 +/- 4.45e-08
Energy Flux (Fixed Index): 1.80e-05 +/- 1.41e-05

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

Saving results to:
/scratch/kocevski/332174/likelihoodResults_297388801_297648001_4FGL_J2231.0-4416_daily_bin224.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5160.01200264
delta logL = 0.0226836341644

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5160.00402815
delta logL = 0.030658120083

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5803       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6738       1.0000          .0000       10.000    
     3 'Normalizat'    1.3715       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74745       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=   5160.004     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      223 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5760        94.575        .42517E-02    .10126E-03
   2  Index         2.6743        6.1666        .15168        .75817E-04
   3  Normalizat    1.3715        .12461        .55182E-01   -.28608E-05
   4  Prefactor     .74746        .71476E-01    .63378E-01    .12188E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.57599
  Index      = 2.67435
  Normalizat = 1.37151
  Prefactor  = 0.747461
 **********
 **   18 **HESSE 
 **********

 FCN=   5160.004     FROM HESSE     STATUS=OK            33 CALLS      256 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5760        6.0233        .11672E-03   -1.5236    
   2  Index         2.6743        1.1379        .86519E-02   -.48378    
   3  Normalizat    1.3715        .25529        .24400E-03   -.81456    
   4  Prefactor     .74746        .21386        .28035E-03   -1.0170    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.27092e-09
Minuit parameter uncertainties:
  1  6.02392
  2  1.15077
  3  0.255531
  4  0.214099
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/332174': 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) = 5160.00402779
delta logL = 0.0306584840428

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  5.576e+00  6.024e+00  1.000e-04  1.000e+04 ( 1.000e-12)
306        Index:  2.674e+00  1.151e+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:  7.475e-01  2.141e-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.372e+00  2.555e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.98
Ra Dec: 337.758 -44.279
Photon Index (Free Index): 2.67 +/- 1.15
Photon Flux (Free Index): 7.17e-08 +/- 7.91e-08
Energy Flux (Free Index): 1.76e-05 +/- 1.30e-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/332174/cmap_HighResolution_297388801_297648001_4FGL_J2231.0-4416_daily_bin224.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-02', comment='SUCCESS', photon_flux='5.67e-08', energy_flux2='1.76e-05', photon_flux_error='4.45e-08', dlogl='3.07e-02', energy_flux='1.80e-05', photon_flux2='7.17e-08', job_status='DONE', time_completed='2021-09-28 13:26:10.703402', photon_index_error2='1.15', photon_index2='2.67', ts='2.92', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', photon_flux_upper_limit='1.54e-07', energy_flux_error2='1.30e-05', EG='1.39', time_epoch_completed='1632860770.7', return_code='0', job_id='332174', GAL2='0.75', EG2='1.37', return_code2='0', energy_flux_error='1.41e-05', photon_flux_error2='7.91e-08', ts2='2.98', photon_index='2.43' WHERE bin_id='224' AND source_name='4FGL J2231.0-4416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 13:26:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 332174: <4FGL_J2231.0-4416_daily_bin224> in cluster <slac> Done

Job <4FGL_J2231.0-4416_daily_bin224> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 13:10:25 2021
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 13:10:27 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:10:27 2021
Terminated at Tue Sep 28 13:26:11 2021
Results reported at Tue Sep 28 13:26:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2231.0-4416_daily_bin224 337.758 -44.2791 297388801 297648001 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 :                                   849.15 sec.
    Max Memory :                                 1218 MB
    Average Memory :                             311.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            946 sec.

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

