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


Performing analysis on: 4FGL_J2231.0-4416_daily_bin153
RA = 337.758, Dec = -44.2791
tmin = 278985601, tmax = 279244801
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='332064', job_status='RUN', time_executed='2021-09-28 13:10:33.991947', time_epoch_executed='1632859833.99' WHERE source_name='4FGL J2231.0-4416' and cadence='daily' and bin_id='153'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/332064

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/332064/ft1_4FGL_J2231.0-4416_daily_bin153.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/332064/ft2_4FGL_J2231.0-4416_daily_bin153.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/332064/ft1_4FGL_J2231.0-4416_daily_bin153.fits outfile=/scratch/kocevski/332064/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin153.fits ra=337.758 dec=-44.2791 rad=12.0 tmin=278985601.0 tmax=279244801.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.84
user 3.62
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/332064/ft1_filtered_4FGL_J2231.0-4416_daily_bin153.fits" evtable="EVENTS" scfile=/scratch/kocevski/332064/ft2_4FGL_J2231.0-4416_daily_bin153.fits sctable="SC_DATA" outfile=/scratch/kocevski/332064/ltcube_278985601_279244801_4FGL_J2231.0-4416_daily_bin153.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/332064/ft2_4FGL_J2231.0-4416_daily_bin153.fits
.....................!
real 12.79
user 12.31
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/332064/ft1_filtered_4FGL_J2231.0-4416_daily_bin153.fits evtable="EVENTS" scfile=/scratch/kocevski/332064/ft2_4FGL_J2231.0-4416_daily_bin153.fits sctable="SC_DATA" expcube=/scratch/kocevski/332064/ltcube_278985601_279244801_4FGL_J2231.0-4416_daily_bin153.fits outfile=/scratch/kocevski/332064/expmap_278985601_279244801_4FGL_J2231.0-4416_daily_bin153.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/332064/ltcube_278985601_279244801_4FGL_J2231.0-4416_daily_bin153.fits
.....................!
real 189.89
user 185.14
sys 4.36

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/332064/ft1_filtered_4FGL_J2231.0-4416_daily_bin153.fits scfile=/scratch/kocevski/332064/ft2_4FGL_J2231.0-4416_daily_bin153.fits outfile=/scratch/kocevski/332064/cmap_278985601_279244801_4FGL_J2231.0-4416_daily_bin153.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.54
user 0.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/332064/ft1_filtered_4FGL_J2231.0-4416_daily_bin153.fits evtable="EVENTS" scfile=/scratch/kocevski/332064/ft2_4FGL_J2231.0-4416_daily_bin153.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/332064/Model_4FGL_J2231.0-4416_daily_bin153.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/332064/ft1_filtered_4FGL_J2231.0-4416_daily_bin153.fits.....................!
real 45.01
user 43.63
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.4822       1.0000         .10000E-03   10000.    
     4 'norm      '    .18363E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.798       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .16229E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .27025E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10865E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    93.833       1.0000         .10000E-03   10000.    
    11 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.8684       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    38.202       1.0000         .10000E-03   10000.    
    18 'Prefactor '    34.550       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10334E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.6576       1.0000         .10000E-03   10000.    
    26 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    1.5137       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    8.6441       1.0000         .10000E-03   10000.    
    30 'norm      '    .10144E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    4.4532       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.3960       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .99920       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=   5608.214     FROM MIGRAD    STATUS=CONVERGED    953 CALLS     4887 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.0301        .12627E-06** at limit **
   2  Prefactor     .10000E-03    15.049       -.36160E-06** at limit **
   3  Prefactor     1.4793        4.1729       -.66438E-07    .24198E-03
   4  norm          .10012E-03    2.5736        .15643E-05** at limit **
   5  Prefactor     11.792        13.725        .14056E-06   -.50568E-03
   6  Prefactor     .10344E-03    9.3731        .36231E-05** at limit **
   7  Prefactor     .10000E-03    16.152        .35146E-06** at limit **
   8  Prefactor     .10000E-03    17.196       -.13832E-04** at limit **
   9  Prefactor     .14005E-03    2.2893       -.23861E-06** at limit **
  10  Prefactor     93.642        108.77        .63802E-05    .34818E-03
  11  norm          .10000E-03    3.1228        .36102E-07** at limit **
  12  Prefactor     .10000E-03    5.4835        .18470E-06** at limit **
  13  Prefactor     .10000E-03    1.7167        .31191E-06** at limit **
  14  Prefactor     .10000E-03    16.969        .82778E-06** at limit **
  15  Prefactor     4.8686        8.6601       -.98550E-06    .56203E-03
  16  Prefactor     .10000E-03    13.786       -.60181E-06** at limit **
  17  Prefactor     38.168        38.030        .14722E-05   -.16448E-04
  18  Prefactor     34.519        37.642        .57758E-06    .10714E-03
  19  Prefactor     .10000E-03    12.746        .68822E-06** at limit **
  20  Prefactor     .10000E-03    33.954        .47091E-06** at limit **
  21  Prefactor     .10000E-03    5.2268        .28045E-06** at limit **
  22  Prefactor     .10000E-03    22.287        .42110E-07** at limit **
  23  Prefactor     .10000E-03    53.873        .36914E-06** at limit **
  24  Prefactor     .10000E-03    8.0062        .16678E-06** at limit **
  25  norm          1.6579        22.794        .93995E-06    .42173E-04
  26  norm          .10000E-03    2.1199        .17044E-07** at limit **
  27  norm          1.5136        3.6770        .12092E-06    .54171E-04
  28  Prefactor     .10000E-03    2.2200        .77105E-07** at limit **
  29  Prefactor     8.6938        50.248       -.11948E-05   -.17436E-04
  30  norm          .10000E-03    2.6226        .25447E-06** at limit **
  31  Prefactor     .10000E-03    6.6181        .12577E-06** at limit **
  32  norm          4.4537        1.8390        .51222E-07   -.49142E-04
  33  Normalizat    1.3956        .22948       -.81993E-06   -.60840E-04
  34  Prefactor     .99944        .19547       -.19483E-05   -.24149E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.47931
  norm       = 0.000100124
  Prefactor  = 11.7923
  Prefactor  = 0.000103441
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000140048
  Prefactor  = 93.6416
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.86858
  Prefactor  = 0.0001
  Prefactor  = 38.168
  Prefactor  = 34.5189
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.65794
  norm       = 0.0001
  norm       = 1.51356
  Prefactor  = 0.0001
  Prefactor  = 8.69379
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.45368
  Normalizat = 1.39557
  Prefactor  = 0.999438
 **********
 **   18 **HESSE 
 **********

 FCN=   5608.214     FROM HESSE     STATUS=OK           742 CALLS     5629 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.0381        .12732E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.4793        4.1653        .24475E-03   -1.5465    
   4  norm          .10012E-03    34.769        .22236E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.792        13.684        .11663E-03   -1.5021    
   6  Prefactor     .10344E-03    13.852        .62963E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    17.275        .36747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .14005E-03    5.3937        .37481E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     93.642        114.41        .20745E-03   -1.3770    
  11  norm          .10000E-03    3.1348        .12925E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.5094        .17126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.7342        .95924E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.8686        8.7675        .91153E-03   -1.5267    
  16  Prefactor     .10000E-03    13.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     38.168        38.462        .64846E-04   -1.4472    
  18  Prefactor     34.519        37.753        .68176E-04   -1.4532    
  19  Prefactor     .10000E-03    12.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    33.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.2541        .16724E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    22.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    53.957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    8.0232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.6579        22.988        .32775E-03   -1.5450    
  26  norm          .10000E-03    2.1200        .10649E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.5136        3.6195        .21590E-03   -1.5462    
  28  Prefactor     .10000E-03    2.2234        .10897E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     8.6938        50.662        .13634E-03   -1.5118    
  30  norm          .10000E-03    2.6275        .11813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    6.6305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          4.4537        1.8423        .63182E-04   -1.5286    
  33  Normalizat    1.3956        .28168        .25242E-03   -.80757    
  34  Prefactor     .99944        .23769        .26210E-03   -.92748    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.29052e-09
Minuit parameter uncertainties:
  1  1.61162e-05
  2  2.4222e-05
  3  4.16612
  4  0.0041635
  5  13.6873
  6  0.013811
  7  4.95082e-05
  8  6.9296e-06
  9  0.0293968
  10  114.682
  11  3.78936e-07
  12  3.38167e-05
  13  2.44421e-05
  14  4.6934e-05
  15  8.76979
  16  6.94299e-06
  17  38.4871
  18  37.7795
  19  6.91683e-05
  20  4.93292e-05
  21  4.42778e-05
  22  0.000102668
  23  0.000158408
  24  3.55276e-05
  25  12.3524
  26  1.23034e-06
  27  3.62007
  28  7.39893e-06
  29  42.0273
  30  3.44656e-05
  31  2.27465e-05
  32  1.84234
  33  0.28199
  34  0.237941
Done.

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

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  1.000e-04  2.444e-05  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:  9.994e-01  2.379e-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.396e+00  2.820e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 337.758 -44.279
Photon Flux Upper Limit: 7.01e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/332064/likelihoodResults_278985601_279244801_4FGL_J2231.0-4416_daily_bin153.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) = 5608.21706
delta logL = -0.00271889261967

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5608.21434108
delta logL = 3.06717993226e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4169       1.0000          .0000       10.000    
     3 'Normalizat'    1.3956       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99947       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5608.214     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      251 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.897        .96292E-02** at limit **
   2  Index         2.1071        6.1931        .50000       -.38160E-06
   3  Normalizat    1.3956        .15248E-01    .25241E-03    .49724E-04
   4  Prefactor     .99944        .13755E-01    .26210E-03    .59901E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.1071
  Normalizat = 1.39557
  Prefactor  = 0.999441
 **********
 **   18 **HESSE 
 **********

 FCN=   5608.214     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      280 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    260.76        .99345E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1071        7.6497        .50000       -.61699    
   3  Normalizat    1.3956        .79715E-01    .10097E-04   -.80757    
   4  Prefactor     .99944        .71897E-01    .10484E-04   -.92748    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.78155e-07
Minuit parameter uncertainties:
  1  0.00118133
  2  1114.16
  3  0.0797225
  4  0.0719042
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/332064': 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) = 5608.21433919
delta logL = 1.91645904124e-06

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  1.000e-04  1.181e-03  1.000e-04  1.000e+04 ( 1.000e-12)
306        Index:  2.107e+00  1.114e+03  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:  9.994e-01  7.190e-02  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.396e+00  7.972e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 337.758 -44.279

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/332064/cmap_HighResolution_278985601_279244801_4FGL_J2231.0-4416_daily_bin153.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.42e-03', job_status='DONE', photon_flux_upper_limit='7.01e-08', time_completed='2021-09-28 13:25:32.189165', job_id='332064', GAL2='1.00', fit_tolerance='1e-08', EG2='1.40', EG='1.40', time_epoch_completed='1632860732.19', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.92e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='153' AND source_name='4FGL J2231.0-4416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 13:25:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 332064: <4FGL_J2231.0-4416_daily_bin153> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2231.0-4416_daily_bin153 337.758 -44.2791 278985601 279244801 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 :                                   897.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            917 sec.

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

