/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 90 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 = 7378
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2231.0-4416_daily_bin262
RA = 337.758, Dec = -44.2791
tmin = 307238401, tmax = 307497601
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='332238', job_status='RUN', time_executed='2021-09-28 13:12:20.520400', time_epoch_executed='1632859940.52' WHERE source_name='4FGL J2231.0-4416' and cadence='daily' and bin_id='262'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/332238

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/332238/ft1_4FGL_J2231.0-4416_daily_bin262.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/332238/ft2_4FGL_J2231.0-4416_daily_bin262.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/332238/ft1_4FGL_J2231.0-4416_daily_bin262.fits outfile=/scratch/kocevski/332238/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin262.fits ra=337.758 dec=-44.2791 rad=12.0 tmin=307238401.0 tmax=307497601.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.43
user 6.15
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/332238/ft1_filtered_4FGL_J2231.0-4416_daily_bin262.fits" evtable="EVENTS" scfile=/scratch/kocevski/332238/ft2_4FGL_J2231.0-4416_daily_bin262.fits sctable="SC_DATA" outfile=/scratch/kocevski/332238/ltcube_307238401_307497601_4FGL_J2231.0-4416_daily_bin262.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/332238/ft2_4FGL_J2231.0-4416_daily_bin262.fits
.....................!
real 11.57
user 11.20
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/332238/ft1_filtered_4FGL_J2231.0-4416_daily_bin262.fits evtable="EVENTS" scfile=/scratch/kocevski/332238/ft2_4FGL_J2231.0-4416_daily_bin262.fits sctable="SC_DATA" expcube=/scratch/kocevski/332238/ltcube_307238401_307497601_4FGL_J2231.0-4416_daily_bin262.fits outfile=/scratch/kocevski/332238/expmap_307238401_307497601_4FGL_J2231.0-4416_daily_bin262.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/332238/ltcube_307238401_307497601_4FGL_J2231.0-4416_daily_bin262.fits
.....................!
real 191.72
user 186.47
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/332238/ft1_filtered_4FGL_J2231.0-4416_daily_bin262.fits scfile=/scratch/kocevski/332238/ft2_4FGL_J2231.0-4416_daily_bin262.fits outfile=/scratch/kocevski/332238/cmap_307238401_307497601_4FGL_J2231.0-4416_daily_bin262.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/332238/ft1_filtered_4FGL_J2231.0-4416_daily_bin262.fits scfile=/scratch/kocevski/332238/ft2_4FGL_J2231.0-4416_daily_bin262.fits outfile=/scratch/kocevski/332238/cmap_HighResolution_307238401_307497601_4FGL_J2231.0-4416_daily_bin262.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.55
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/332238/ft1_filtered_4FGL_J2231.0-4416_daily_bin262.fits evtable="EVENTS" scfile=/scratch/kocevski/332238/ft2_4FGL_J2231.0-4416_daily_bin262.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/332238/Model_4FGL_J2231.0-4416_daily_bin262.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/332238/ft1_filtered_4FGL_J2231.0-4416_daily_bin262.fits.....................!
real 34.53
user 33.24
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.239       1.0000         .10000E-03   10000.    
     2 'Prefactor '    34.635       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.7990       1.0000         .10000E-03   10000.    
     4 'norm      '    4.5105       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.597       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    28.389       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.811       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    9.6650       1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.468       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.2925       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.1977       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10615E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.897       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .14204E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .35516E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    28.898       1.0000         .10000E-03   10000.    
    26 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10979E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    12.378       1.0000         .10000E-03   10000.    
    29 'Prefactor '    116.16       1.0000         .10000E-03   10000.    
    30 'norm      '    8.4488       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    28.657       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .65934       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.0850       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=   3795.019     FROM MIGRAD    STATUS=CONVERGED    946 CALLS     4845 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.240        12.810       -.14974E-06    .12591E-04
   2  Prefactor     34.636        31.389        .20750E-06    .21947E-05
   3  Prefactor     1.7977        5.6402        .68722E-05    .15406E-04
   4  norm          4.5105        4.2565        .70617E-07    .91494E-05
   5  Prefactor     10.597        15.263        .37505E-06   -.18078E-06
   6  Prefactor     .10000E-03    6.0132        .52927E-07** at limit **
   7  Prefactor     .10000E-03    53.827       -.55428E-05** at limit **
   8  Prefactor     28.401        17.302       -.20275E-06    .85523E-04
   9  Prefactor     12.812        8.4163        .21113E-06   -.51658E-04
  10  Prefactor     .10000E-03    136.03       -.37952E-05** at limit **
  11  norm          9.6654        9.4768        .10324E-06   -.27702E-04
  12  Prefactor     18.472        12.430        .63543E-07    .46437E-05
  13  Prefactor     1.2938        6.1828        .95657E-06    .60353E-04
  14  Prefactor     .10000E-03    30.295       -.32510E-07** at limit **
  15  Prefactor     .10000E-03    2.2469        .26903E-08** at limit **
  16  Prefactor     .10000E-03    10.762       -.25945E-06** at limit **
  17  Prefactor     4.1901        83.900        .58829E-06    .15567E-04
  18  Prefactor     .10000E-03    67.402        .54929E-05** at limit **
  19  Prefactor     10.907        14.360       -.56771E-06   -.19657E-03
  20  Prefactor     .10000E-03    44.033        .21186E-05** at limit **
  21  Prefactor     .10608E-03    8.4526       -.12514E-05** at limit **
  22  Prefactor     .10000E-03    12.547        .10155E-06** at limit **
  23  Prefactor     .10000E-03    215.54       -.23471E-05** at limit **
  24  Prefactor     .10000E-03    8.1868        .31524E-07** at limit **
  25  norm          28.899        21.791       -.28355E-07    .28977E-05
  26  norm          .10000E-03    9.5362        .32547E-06** at limit **
  27  norm          .10000E-03    10.736       -.15378E-05** at limit **
  28  Prefactor     12.378        9.8586        .43519E-06   -.25885E-04
  29  Prefactor     116.08        100.30        .58404E-05   -.41106E-05
  30  norm          8.4542        11.154       -.78925E-06    .28361E-04
  31  Prefactor     .10000E-03    9.2150       -.48030E-06** at limit **
  32  norm          28.657        4.6845       -.28245E-07   -.75145E-04
  33  Normalizat    .65889        .28173       -.16781E-06    .44380E-04
  34  Prefactor     1.0854        .22785       -.20841E-05    .56952E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.2398
  Prefactor  = 34.6355
  Prefactor  = 1.79771
  norm       = 4.51048
  Prefactor  = 10.5974
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.4015
  Prefactor  = 12.8118
  Prefactor  = 0.0001
  norm       = 9.66536
  Prefactor  = 18.4718
  Prefactor  = 1.29381
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.1901
  Prefactor  = 0.0001
  Prefactor  = 10.907
  Prefactor  = 0.0001
  Prefactor  = 0.000106075
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 28.899
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 12.3783
  Prefactor  = 116.081
  norm       = 8.45423
  Prefactor  = 0.0001
  norm       = 28.6575
  Normalizat = 0.658891
  Prefactor  = 1.08541
 **********
 **   18 **HESSE 
 **********

 FCN=   3795.019     FROM HESSE     STATUS=OK           742 CALLS     5587 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.240        12.811        .11008E-03   -1.4980    
   2  Prefactor     34.636        31.385        .68093E-04   -1.4530    
   3  Prefactor     1.7977        5.6509        .12400E-02   -1.5440    
   4  norm          4.5105        4.2620        .11977E-03   -1.5283    
   5  Prefactor     10.597        15.269        .12308E-03   -1.5057    
   6  Prefactor     .10000E-03    6.0201        .14750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    53.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     28.401        17.337        .75192E-04   -1.4642    
   9  Prefactor     12.812        8.4068        .11191E-03   -1.4992    
  10  Prefactor     .10000E-03    136.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          9.6654        9.4781        .12890E-03   -1.5086    
  12  Prefactor     18.472        12.480        .93199E-04   -1.4848    
  13  Prefactor     1.2938        6.1690        .27775E-03   -1.5480    
  14  Prefactor     .10000E-03    30.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.2512        .90174E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.1901        84.412        .19670E-03   -1.5299    
  18  Prefactor     .10000E-03    68.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.907        14.378        .12137E-03   -1.5047    
  20  Prefactor     .10000E-03    44.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10608E-03    16.723        .55388E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    12.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    216.19        .21317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    8.1913        .17216E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          28.899        21.789        .74528E-04   -1.4632    
  26  norm          .10000E-03    9.6059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    10.887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     12.378        9.8560        .11386E-03   -1.5004    
  29  Prefactor     116.08        100.58        .18666E-03   -1.3549    
  30  norm          8.4542        11.141        .13792E-03   -1.5126    
  31  Prefactor     .10000E-03    9.2263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          28.657        4.6876        .51593E-04   -1.4637    
  33  Normalizat    .65889        .33440        .33689E-03   -1.0554    
  34  Prefactor     1.0854        .27150        .24410E-03   -.89934    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.703e-10
Minuit parameter uncertainties:
  1  12.8136
  2  31.3998
  3  5.65254
  4  4.26231
  5  15.2743
  6  7.11369e-06
  7  0.000227865
  8  17.3399
  9  8.40756
  10  8.86564e-05
  11  9.47953
  12  12.4822
  13  5.65105
  14  1.73145e-05
  15  2.37033e-07
  16  1.31876e-05
  17  37.6742
  18  0.000180416
  19  14.3828
  20  3.45194e-05
  21  0.020164
  22  1.21056e-06
  23  0.000461653
  24  1.17647e-06
  25  21.7945
  26  1.73751e-05
  27  0.000245385
  28  9.85728
  29  100.725
  30  11.1434
  31  2.10712e-05
  32  4.6877
  33  0.335432
  34  0.271844
Done.

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

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  1.294e+00  5.651e+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.085e+00  2.718e-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:  6.589e-01  3.354e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/332238/likelihoodResults_307238401_307497601_4FGL_J2231.0-4416_daily_bin262.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) = 3794.61168294
delta logL = 0.407414856884

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3794.54851054
delta logL = 0.470587259839

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .62757       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9888       1.0000          .0000       10.000    
     3 'Normalizat'    .58894       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1230       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=   3794.549     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      225 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .62126        14.297        .11781E-01   -.16975E-02
   2  Index         3.9946        3.6006        .17977       -.93931E-04
   3  Normalizat    .58850        .54490E-01    .80295E-01   -.15382E-03
   4  Prefactor     1.1233        .49873E-01    .54401E-01   -.19941E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.621256
  Index      = 3.99458
  Normalizat = 0.588504
  Prefactor  = 1.12331
 **********
 **   18 **HESSE 
 **********

 FCN=   3794.549     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      258 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .62126        40.710        .55986E-03   -1.5550    
   2  Index         3.9946        6.6618        .61127E-02   -.20246    
   3  Normalizat    .58850        .25318        .35562E-03   -1.0847    
   4  Prefactor     1.1233        .22457        .24051E-03   -.88725    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.14195e-10
Minuit parameter uncertainties:
  1  10.0644
  2  9.2685
  3  0.253681
  4  0.22476
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/332238': 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) = 3794.5485043
delta logL = 0.470593494289

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  6.213e-01  1.006e+01  1.000e-04  1.000e+04 ( 1.000e-12)
306        Index:  3.995e+00  9.268e+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.123e+00  2.248e-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.885e-01  2.537e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.09
Ra Dec: 337.758 -44.279
Photon Index (Free Index): 3.99 +/- 9.27
Photon Flux (Free Index): 6.35e-08 +/- 8.33e-08
Energy Flux (Free Index): 9.52e-06 +/- 2.35e-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/332238/cmap_HighResolution_307238401_307497601_4FGL_J2231.0-4416_daily_bin262.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.08e-02', comment='SUCCESS', energy_flux2='9.52e-06', dlogl='4.71e-01', photon_flux2='6.35e-08', job_status='DONE', time_completed='2021-09-28 13:24:23.276404', photon_index_error2='9.27', photon_index2='3.99', ts='0.07', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='1.40e-07', energy_flux_error2='2.35e-05', EG='0.66', time_epoch_completed='1632860663.28', return_code='0', job_id='332238', GAL2='1.12', EG2='0.59', return_code2='102', photon_flux_error2='8.33e-08', ts2='1.09', photon_index='2.43' WHERE bin_id='262' AND source_name='4FGL J2231.0-4416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 13:24:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 332238: <4FGL_J2231.0-4416_daily_bin262> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2231.0-4416_daily_bin262 337.758 -44.2791 307238401 307497601 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 :                                   722.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            831 sec.

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

