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


Performing analysis on: 4FGL_J2231.0-4416_daily_bin299
RA = 337.758, Dec = -44.2791
tmin = 316828801, tmax = 317088001
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='332300', job_status='RUN', time_executed='2021-09-28 13:12:01.077525', time_epoch_executed='1632859921.08' WHERE source_name='4FGL J2231.0-4416' and cadence='daily' and bin_id='299'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/332300

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/332300/ft1_4FGL_J2231.0-4416_daily_bin299.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/332300/ft2_4FGL_J2231.0-4416_daily_bin299.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/332300/ft1_4FGL_J2231.0-4416_daily_bin299.fits outfile=/scratch/kocevski/332300/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin299.fits ra=337.758 dec=-44.2791 rad=12.0 tmin=316828801.0 tmax=317088001.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.47
user 3.20
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/332300/ft1_filtered_4FGL_J2231.0-4416_daily_bin299.fits" evtable="EVENTS" scfile=/scratch/kocevski/332300/ft2_4FGL_J2231.0-4416_daily_bin299.fits sctable="SC_DATA" outfile=/scratch/kocevski/332300/ltcube_316828801_317088001_4FGL_J2231.0-4416_daily_bin299.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/332300/ft2_4FGL_J2231.0-4416_daily_bin299.fits
.....................!
real 11.82
user 11.45
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/332300/ft1_filtered_4FGL_J2231.0-4416_daily_bin299.fits evtable="EVENTS" scfile=/scratch/kocevski/332300/ft2_4FGL_J2231.0-4416_daily_bin299.fits sctable="SC_DATA" expcube=/scratch/kocevski/332300/ltcube_316828801_317088001_4FGL_J2231.0-4416_daily_bin299.fits outfile=/scratch/kocevski/332300/expmap_316828801_317088001_4FGL_J2231.0-4416_daily_bin299.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/332300/ltcube_316828801_317088001_4FGL_J2231.0-4416_daily_bin299.fits
.....................!
real 191.46
user 186.14
sys 4.97

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/332300/ft1_filtered_4FGL_J2231.0-4416_daily_bin299.fits scfile=/scratch/kocevski/332300/ft2_4FGL_J2231.0-4416_daily_bin299.fits outfile=/scratch/kocevski/332300/cmap_316828801_317088001_4FGL_J2231.0-4416_daily_bin299.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.38
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/332300/ft1_filtered_4FGL_J2231.0-4416_daily_bin299.fits evtable="EVENTS" scfile=/scratch/kocevski/332300/ft2_4FGL_J2231.0-4416_daily_bin299.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/332300/Model_4FGL_J2231.0-4416_daily_bin299.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/332300/ft1_filtered_4FGL_J2231.0-4416_daily_bin299.fits.....................!
real 41.54
user 40.24
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    65.588       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.8070       1.0000         .10000E-03   10000.    
     4 'norm      '    5.0361       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.137       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .98288       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .32484E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .29813       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.7999       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.4084       1.0000         .10000E-03   10000.    
    12 'Prefactor '    45.148       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.0868       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.650       1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.471       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.0911       1.0000         .10000E-03   10000.    
    18 'Prefactor '    38.606       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.236       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .95688E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.9158       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.4438       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .19521E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    1.2092       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    7.9761       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .93993       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.1045       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=   5042.963     FROM MIGRAD    STATUS=CONVERGED    916 CALLS     4846 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.860        .14446E-05** at limit **
   2  Prefactor     65.596        42.287       -.10895E-05    .53219E-04
   3  Prefactor     4.8071        5.8201        .52120E-06    .54210E-04
   4  norm          5.0371        6.4429        .40177E-05   -.64479E-03
   5  Prefactor     16.138        14.341       -.45437E-07   -.23668E-05
   6  Prefactor     .98392        12.564       -.16422E-06   -.11189E-03
   7  Prefactor     .10000E-03    167.20       -.34701E-05** at limit **
   8  Prefactor     .36741        9.8254        .10078E-06    .77891E-04
   9  Prefactor     4.7984        4.1287       -.59948E-08   -.91366E-06
  10  Prefactor     .10000E-03    95.963       -.24815E-05** at limit **
  11  norm          7.4080        7.4953       -.35212E-07    .75560E-05
  12  Prefactor     45.150        16.678        .12705E-06   -.41078E-04
  13  Prefactor     3.0876        5.5958       -.55023E-07   -.24405E-03
  14  Prefactor     .10000E-03    49.995       -.46337E-06** at limit **
  15  Prefactor     12.648        8.9077       -.10499E-06    .50622E-06
  16  Prefactor     21.474        24.898        .36562E-06    .77894E-05
  17  Prefactor     2.0924        25.371        .10190E-05   -.17590E-04
  18  Prefactor     38.626        46.780        .19606E-05    .15030E-03
  19  Prefactor     10.228        16.486       -.11712E-05    .99631E-04
  20  Prefactor     .10016E-03    416.33       -.36102E-04** at limit **
  21  Prefactor     2.9173        10.270        .10018E-05   -.23109E-04
  22  Prefactor     .10000E-03    24.948        .23327E-05** at limit **
  23  Prefactor     .10000E-03    30.997       -.29065E-05** at limit **
  24  Prefactor     .10000E-03    6.9272        .90164E-07** at limit **
  25  norm          2.4444        20.042        .11066E-05   -.13088E-04
  26  norm          .10000E-03    4.0253        .18111E-07** at limit **
  27  norm          .10001E-03    6.5466       -.14143E-05** at limit **
  28  Prefactor     .10000E-03    6.6463        .20435E-07** at limit **
  29  Prefactor     .10000E-03    63.881        .40402E-05** at limit **
  30  norm          1.2040        3.8990        .15101E-05    .41383E-03
  31  Prefactor     .10000E-03    14.733       -.12228E-05** at limit **
  32  norm          7.9762        2.3213        .27804E-07    .45876E-04
  33  Normalizat    .93990        .23434       -.12147E-05    .44874E-04
  34  Prefactor     1.1045        .20259       -.12502E-05    .99079E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 65.5964
  Prefactor  = 4.80715
  norm       = 5.0371
  Prefactor  = 16.1383
  Prefactor  = 0.98392
  Prefactor  = 0.0001
  Prefactor  = 0.367408
  Prefactor  = 4.79837
  Prefactor  = 0.000100001
  norm       = 7.40802
  Prefactor  = 45.1497
  Prefactor  = 3.0876
  Prefactor  = 0.0001
  Prefactor  = 12.6483
  Prefactor  = 21.4743
  Prefactor  = 2.09238
  Prefactor  = 38.6259
  Prefactor  = 10.228
  Prefactor  = 0.000100157
  Prefactor  = 2.91727
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 2.44444
  norm       = 0.0001
  norm       = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 1.20401
  Prefactor  = 0.0001
  norm       = 7.97624
  Normalizat = 0.939905
  Prefactor  = 1.10446
 **********
 **   18 **HESSE 
 **********

 FCN=   5042.963     FROM HESSE     STATUS=OK           738 CALLS     5584 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.398        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     65.596        42.419        .49555E-04   -1.4086    
   3  Prefactor     4.8071        5.7986        .17875E-03   -1.5269    
   4  norm          5.0371        6.5878        .89592E-03   -1.5259    
   5  Prefactor     16.138        13.970        .99704E-04   -1.4904    
   6  Prefactor     .98392        32.092        .44375E-02   -1.5510    
   7  Prefactor     .10000E-03    173.90        .42712E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .36741        66.526        .40612E-02   -1.5587    
   9  Prefactor     4.7984        4.1199        .12788E-03   -1.5270    
  10  Prefactor     .10000E-03    96.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.4080        7.4971        .14735E-03   -1.5164    
  12  Prefactor     45.150        16.724        .59669E-04   -1.4363    
  13  Prefactor     3.0876        5.6265        .20966E-03   -1.5357    
  14  Prefactor     .10000E-03    50.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.648        8.9028        .11263E-03   -1.4997    
  16  Prefactor     21.474        24.893        .86441E-04   -1.4781    
  17  Prefactor     2.0924        25.332        .28547E-03   -1.5419    
  18  Prefactor     38.626        46.911        .64507E-04   -1.4464    
  19  Prefactor     10.228        16.389        .12524E-03   -1.5068    
  20  Prefactor     .10016E-03    444.70        .20791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.9173        10.255        .23792E-03   -1.5366    
  22  Prefactor     .10000E-03    25.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    31.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    6.9337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.4444        20.012        .26170E-03   -1.5395    
  26  norm          .10000E-03    4.0348        .13914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10001E-03    27.926        .30776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    6.7117        .17865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    64.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          1.2040        3.4306        .21662E-03   -1.5489    
  31  Prefactor     .10000E-03    14.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          7.9762        2.3243        .56043E-04   -1.5143    
  33  Normalizat    .93990        .27818        .29538E-03   -.95072    
  34  Prefactor     1.1045        .24159        .25253E-03   -.89324    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.12452e-08
Minuit parameter uncertainties:
  1  6.90658e-05
  2  42.4387
  3  5.79928
  4  6.58878
  5  13.9724
  6  11.2445
  7  0.000311788
  8  9.89766
  9  4.12011
  10  0.000607248
  11  7.49805
  12  16.7257
  13  5.62744
  14  1.68329e-05
  15  8.90375
  16  24.9054
  17  14.5681
  18  46.9557
  19  16.3966
  20  0.0168151
  21  10.2616
  22  0.000305732
  23  0.000415014
  24  7.53877e-06
  25  13.9943
  26  2.10977e-06
  27  0.000788344
  28  1.0421e-05
  29  0.000762085
  30  3.43117
  31  0.000110632
  32  2.3243
  33  0.278606
  34  0.241835
Done.

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

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  3.088e+00  5.627e+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.104e+00  2.418e-01  0.000e+00  1.000e+01 ( 1.000e+00)
586        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
587        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  9.399e-01  2.786e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/332300/likelihoodResults_316828801_317088001_4FGL_J2231.0-4416_daily_bin299.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) = 5042.11916995
delta logL = 0.844264132751

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5042.10881175
delta logL = 0.854622335359

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2614       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8584       1.0000          .0000       10.000    
     3 'Normalizat'    .84970       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1531       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=   5042.109     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      256 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2595        15.569        .99264E-02    .74044E-03
   2  Index         3.8595        3.1310        .14162        .11604E-03
   3  Normalizat    .84969        .59476E-01    .69837E-01    .45989E-05
   4  Prefactor     1.1531        .54750E-01    .56040E-01   -.18536E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.25954
  Index      = 3.85947
  Normalizat = 0.849687
  Prefactor  = 1.15314
 **********
 **   18 **HESSE 
 **********

 FCN=   5042.109     FROM HESSE     STATUS=OK            33 CALLS      289 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2595        8.8927        .57845E-04   -1.5484    
   2  Index         3.8595        2.9759        .51180E-02   -.23013    
   3  Normalizat    .84969        .26556        .30901E-03   -.98251    
   4  Prefactor     1.1531        .23934        .24779E-03   -.87786    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32528e-10
Minuit parameter uncertainties:
  1  6.69466
  2  3.20174
  3  0.26597
  4  0.239565
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/332300': 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) = 5042.1088114
delta logL = 0.854622680148

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  1.260e+00  6.695e+00  1.000e-04  1.000e+04 ( 1.000e-12)
306        Index:  3.859e+00  3.202e+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.153e+00  2.396e-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:  8.497e-01  2.660e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.23
Ra Dec: 337.758 -44.279
Photon Index (Free Index): 3.86 +/- 3.20
Photon Flux (Free Index): 1.03e-07 +/- 8.05e-08
Energy Flux (Free Index): 1.58e-05 +/- 1.51e-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/332300/cmap_HighResolution_316828801_317088001_4FGL_J2231.0-4416_daily_bin299.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', comment='SUCCESS', energy_flux2='1.58e-05', dlogl='8.55e-01', photon_flux2='1.03e-07', job_status='DONE', time_completed='2021-09-28 13:25:54.247563', photon_index_error2='3.20', photon_index2='3.86', ts='0.37', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='1.42e-07', energy_flux_error2='1.51e-05', EG='0.94', time_epoch_completed='1632860754.25', return_code='0', job_id='332300', GAL2='1.15', EG2='0.85', return_code2='0', photon_flux_error2='8.05e-08', ts2='2.23', photon_index='2.43' WHERE bin_id='299' AND source_name='4FGL J2231.0-4416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 13:25:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 332300: <4FGL_J2231.0-4416_daily_bin299> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2231.0-4416_daily_bin299 337.758 -44.2791 316828801 317088001 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 :                                   832.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             330.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            915 sec.

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

