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


Performing analysis on: 4FGL_J2231.0-4416_daily_bin1029
RA = 337.758, Dec = -44.2791
tmin = 506044801, tmax = 506304001
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='338031', job_status='RUN', time_executed='2021-09-28 13:34:34.431408', time_epoch_executed='1632861274.43' WHERE source_name='4FGL J2231.0-4416' and cadence='daily' and bin_id='1029'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/338031

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/338031/ft1_4FGL_J2231.0-4416_daily_bin1029.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/338031/ft2_4FGL_J2231.0-4416_daily_bin1029.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/338031/ft1_4FGL_J2231.0-4416_daily_bin1029.fits outfile=/scratch/kocevski/338031/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin1029.fits ra=337.758 dec=-44.2791 rad=12.0 tmin=506044801.0 tmax=506304001.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.23
user 2.99
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/338031/ft2_4FGL_J2231.0-4416_daily_bin1029.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/338031/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin1029.fits evtable="EVENTS" outfile="/scratch/kocevski/338031/ft1_filtered_4FGL_J2231.0-4416_daily_bin1029.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.40
user 0.24
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/338031/ft1_filtered_4FGL_J2231.0-4416_daily_bin1029.fits" evtable="EVENTS" scfile=/scratch/kocevski/338031/ft2_4FGL_J2231.0-4416_daily_bin1029.fits sctable="SC_DATA" outfile=/scratch/kocevski/338031/ltcube_506044801_506304001_4FGL_J2231.0-4416_daily_bin1029.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/338031/ft2_4FGL_J2231.0-4416_daily_bin1029.fits
.....................!
real 8.78
user 8.48
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/338031/ft1_filtered_4FGL_J2231.0-4416_daily_bin1029.fits evtable="EVENTS" scfile=/scratch/kocevski/338031/ft2_4FGL_J2231.0-4416_daily_bin1029.fits sctable="SC_DATA" expcube=/scratch/kocevski/338031/ltcube_506044801_506304001_4FGL_J2231.0-4416_daily_bin1029.fits outfile=/scratch/kocevski/338031/expmap_506044801_506304001_4FGL_J2231.0-4416_daily_bin1029.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/338031/ltcube_506044801_506304001_4FGL_J2231.0-4416_daily_bin1029.fits
.....................!
real 139.95
user 136.63
sys 3.08

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/338031/ft1_filtered_4FGL_J2231.0-4416_daily_bin1029.fits scfile=/scratch/kocevski/338031/ft2_4FGL_J2231.0-4416_daily_bin1029.fits outfile=/scratch/kocevski/338031/cmap_506044801_506304001_4FGL_J2231.0-4416_daily_bin1029.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.44
user 0.30
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/338031/ft1_filtered_4FGL_J2231.0-4416_daily_bin1029.fits scfile=/scratch/kocevski/338031/ft2_4FGL_J2231.0-4416_daily_bin1029.fits outfile=/scratch/kocevski/338031/cmap_HighResolution_506044801_506304001_4FGL_J2231.0-4416_daily_bin1029.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.44
user 0.28
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/338031/ft1_filtered_4FGL_J2231.0-4416_daily_bin1029.fits evtable="EVENTS" scfile=/scratch/kocevski/338031/ft2_4FGL_J2231.0-4416_daily_bin1029.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/338031/Model_4FGL_J2231.0-4416_daily_bin1029.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/338031/ft1_filtered_4FGL_J2231.0-4416_daily_bin1029.fits.....................!
real 35.48
user 34.38
sys 1.00

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.2239       1.0000         .10000E-03   10000.    
     4 'norm      '    9.0191       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.5700       1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.093       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10638E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    40.869       1.0000         .10000E-03   10000.    
    11 'norm      '    3.4521       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11693E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.9245       1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.127       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.3186       1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.364       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.575       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.777       1.0000         .10000E-03   10000.    
    25 'norm      '    13.534       1.0000         .10000E-03   10000.    
    26 'norm      '    10.080       1.0000         .10000E-03   10000.    
    27 'norm      '    .75752       1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.3276       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    5.8791       1.0000         .10000E-03   10000.    
    31 'Prefactor '    28.936       1.0000         .10000E-03   10000.    
    32 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.0597       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .71694       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=   5897.196     FROM MIGRAD    STATUS=CONVERGED    918 CALLS     4985 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.8696       -.75762E-07** at limit **
   2  Prefactor     .10000E-03    8.2895       -.18341E-07** at limit **
   3  Prefactor     5.2236        4.2761       -.48240E-07   -.41457E-04
   4  norm          9.0195        4.2589       -.80302E-08    .80383E-04
   5  Prefactor     .10000E-03    3.0199       -.89774E-07** at limit **
   6  Prefactor     1.5705        6.6399        .28514E-06   -.41648E-04
   7  Prefactor     28.084        47.273        .77368E-06    .13671E-04
   8  Prefactor     .10001E-03    5.3754        .20728E-05** at limit **
   9  Prefactor     .10000E-03    2.2797        .72682E-06** at limit **
  10  Prefactor     40.903        76.607       -.19720E-05   -.22947E-04
  11  norm          3.4519        4.2421        .66937E-07    .90747E-04
  12  Prefactor     .10000E-03    10.573       -.47466E-06** at limit **
  13  Prefactor     4.9248        3.8304       -.83947E-09    .66268E-04
  14  Prefactor     21.129        39.385        .38570E-06    .49353E-04
  15  Prefactor     6.3186        4.9523        .11291E-07    .19067E-04
  16  Prefactor     23.368        16.759        .28972E-06    .16308E-03
  17  Prefactor     .10000E-03    20.569       -.25091E-06** at limit **
  18  Prefactor     .10000E-03    10.179        .30234E-06** at limit **
  19  Prefactor     12.574        10.038       -.21746E-07   -.51926E-04
  20  Prefactor     .10000E-03    30.158       -.26676E-06** at limit **
  21  Prefactor     .10000E-03    2.3455       -.26633E-07** at limit **
  22  Prefactor     .10000E-03    28.599       -.88981E-07** at limit **
  23  Prefactor     .10000E-03    99.741       -.89664E-06** at limit **
  24  Prefactor     10.777        12.516       -.22594E-06   -.95117E-05
  25  norm          13.535        13.285       -.23918E-06   -.10340E-04
  26  norm          10.080        6.8695       -.59017E-06   -.36526E-05
  27  norm          .75532        16.994       -.33013E-06   -.29740E-03
  28  Prefactor     2.3278        7.7387        .70537E-05   -.37742E-03
  29  Prefactor     .10000E-03    24.895        .19784E-06** at limit **
  30  norm          5.8811        6.3073        .28673E-07   -.93586E-03
  31  Prefactor     28.936        18.084       -.28164E-05   -.46053E-04
  32  norm          .10000E-03    .65705       -.23901E-06** at limit **
  33  Normalizat    1.0597        .17235       -.22185E-07    .47903E-04
  34  Prefactor     .71690        .15851       -.85961E-07    .67390E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.2236
  norm       = 9.01951
  Prefactor  = 0.0001
  Prefactor  = 1.57048
  Prefactor  = 28.0837
  Prefactor  = 0.000100007
  Prefactor  = 0.000100001
  Prefactor  = 40.9032
  norm       = 3.45186
  Prefactor  = 0.0001
  Prefactor  = 4.9248
  Prefactor  = 21.1288
  Prefactor  = 6.31859
  Prefactor  = 23.3681
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.5743
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 10.7771
  norm       = 13.535
  norm       = 10.0801
  norm       = 0.755322
  Prefactor  = 2.32776
  Prefactor  = 0.0001
  norm       = 5.88107
  Prefactor  = 28.9362
  norm       = 0.0001
  Normalizat = 1.05966
  Prefactor  = 0.716895
 **********
 **   18 **HESSE 
 **********

 FCN=   5897.196     FROM HESSE     STATUS=OK           740 CALLS     5725 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.8792        .12705E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.2951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.2236        4.2741        .13780E-03   -1.5251    
   4  norm          9.0195        4.2597        .10542E-03   -1.5107    
   5  Prefactor     .10000E-03    3.0276        .13031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.5705        6.5909        .33930E-03   -1.5457    
   7  Prefactor     28.084        47.241        .75586E-04   -1.4648    
   8  Prefactor     .10001E-03    5.7790        .17877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.4048        .22810E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     40.903        76.672        .62702E-04   -1.4428    
  11  norm          3.4519        4.2394        .17097E-03   -1.5336    
  12  Prefactor     .10000E-03    11.021        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.9248        3.8289        .12454E-03   -1.5264    
  14  Prefactor     21.129        39.368        .87142E-04   -1.4788    
  15  Prefactor     6.3186        4.9549        .14461E-03   -1.5205    
  16  Prefactor     23.368        16.779        .82870E-04   -1.4741    
  17  Prefactor     .10000E-03    20.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.574        10.039        .11296E-03   -1.4999    
  20  Prefactor     .10000E-03    30.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.3525        .11484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    28.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    100.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     10.777        12.410        .12204E-03   -1.5051    
  25  norm          13.535        13.283        .10888E-03   -1.4972    
  26  norm          10.080        6.8634        .12621E-03   -1.5073    
  27  norm          .75532        13.747        .39963E-03   -1.5534    
  28  Prefactor     2.3278        7.8661        .13441E-02   -1.5403    
  29  Prefactor     .10000E-03    24.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          5.8811        5.5499        .62671E-03   -1.5223    
  31  Prefactor     28.936        18.210        .74480E-04   -1.4632    
  32  norm          .10000E-03    3.3577        .11860E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    1.0597        .19854        .22466E-03   -.91058    
  34  Prefactor     .71690        .18162        .24977E-03   -1.0287    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22032e-09
Minuit parameter uncertainties:
  1  9.82762e-06
  2  2.44718e-06
  3  4.27432
  4  4.25981
  5  1.24881e-05
  6  6.43558
  7  47.3042
  8  0.000389826
  9  8.76883e-05
  10  76.8572
  11  4.23973
  12  0.000104058
  13  3.82914
  14  39.4168
  15  4.95522
  16  16.7827
  17  3.70445e-05
  18  5.14856e-05
  19  10.0404
  20  1.62661e-05
  21  3.15762e-06
  22  4.79895e-05
  23  0.000769071
  24  12.413
  25  13.286
  26  6.86389
  27  6.44585
  28  7.86957
  29  7.52362e-05
  30  5.55038
  31  18.2137
  32  1.74019e-05
  33  0.198679
  34  0.181768
Done.

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

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  4.925e+00  3.829e+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.169e-01  1.818e-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.060e+00  1.987e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.59
Ra Dec: 337.758 -44.279
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 4.52e-08 +/- 3.51e-08
Energy Flux (Fixed Index): 1.43e-05 +/- 1.11e-05

TS (Fixed Index): 2.59
Ra Dec: 337.758 -44.279
Photon Flux Upper Limit: 1.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.25e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/338031/likelihoodResults_506044801_506304001_4FGL_J2231.0-4416_daily_bin1029.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) = 5897.05825024
delta logL = 0.13745929039

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5897.05263207
delta logL = 0.143077462124

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7209       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7840       1.0000          .0000       10.000    
     3 'Normalizat'    1.0455       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72556       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=   5897.053     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      251 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7209        55.529        .52335E-02    .71503E-03
   2  Index         2.7839        3.6020        .17933        .80310E-04
   3  Normalizat    1.0453        .58938E-01    .40865E-01    .71632E-05
   4  Prefactor     .72581        .51659E-01    .42740E-01    .15906E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.72089
  Index      = 2.78388
  Normalizat = 1.04526
  Prefactor  = 0.725812
 **********
 **   18 **HESSE 
 **********

 FCN=   5897.053     FROM HESSE     STATUS=OK            33 CALLS      284 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7209        4.2309        .10142E-03   -1.5322    
   2  Index         2.7839        .76990        .63330E-02   -.45919    
   3  Normalizat    1.0453        .19378        .22600E-03   -.91529    
   4  Prefactor     .72581        .17848        .24839E-03   -1.0252    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46647e-09
Minuit parameter uncertainties:
  1  4.2312
  2  0.773737
  3  0.193907
  4  0.178626
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/338031': 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) = 5897.05263091
delta logL = 0.1430786213

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  3.721e+00  4.231e+00  1.000e-04  1.000e+04 ( 1.000e-12)
306        Index:  2.784e+00  7.737e-01  0.000e+00  1.000e+01 (-1.000e+00)
307        Scale:  7.453e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  7.258e-01  1.786e-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.045e+00  1.939e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.88
Ra Dec: 337.758 -44.279
Photon Index (Free Index): 2.78 +/- 0.77
Photon Flux (Free Index): 5.60e-08 +/- 4.27e-08
Energy Flux (Free Index): 1.27e-05 +/- 9.86e-06

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/338031/cmap_HighResolution_506044801_506304001_4FGL_J2231.0-4416_daily_bin1029.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.25e-03', comment='SUCCESS', photon_flux='4.52e-08', energy_flux2='1.27e-05', photon_flux_error='3.51e-08', dlogl='1.43e-01', energy_flux='1.43e-05', photon_flux2='5.60e-08', job_status='DONE', time_completed='2021-09-28 13:46:57.717869', photon_index_error2='0.77', photon_index2='2.78', ts='2.59', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', photon_flux_upper_limit='1.20e-07', energy_flux_error2='9.86e-06', EG='1.06', time_epoch_completed='1632862017.72', return_code='0', job_id='338031', GAL2='0.73', EG2='1.05', return_code2='0', energy_flux_error='1.11e-05', photon_flux_error2='4.27e-08', ts2='2.88', photon_index='2.43' WHERE bin_id='1029' AND source_name='4FGL J2231.0-4416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 13:46:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 338031: <4FGL_J2231.0-4416_daily_bin1029> in cluster <slac> Done

Job <4FGL_J2231.0-4416_daily_bin1029> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 13:30:26 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 13:30:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 13:30:28 2021
Terminated at Tue Sep 28 13:46:58 2021
Results reported at Tue Sep 28 13:46:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2231.0-4416_daily_bin1029 337.758 -44.2791 506044801 506304001 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 :                                   742.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             268.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            992 sec.

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

