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


Performing analysis on: 4FGL_J2231.0-4416_daily_bin1082
RA = 337.758, Dec = -44.2791
tmin = 519782401, tmax = 520041601
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='338108', job_status='RUN', time_executed='2021-09-28 13:31:18.754318', time_epoch_executed='1632861078.75' WHERE source_name='4FGL J2231.0-4416' and cadence='daily' and bin_id='1082'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/338108

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/338108/ft1_4FGL_J2231.0-4416_daily_bin1082.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/338108/ft2_4FGL_J2231.0-4416_daily_bin1082.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/338108/ft1_4FGL_J2231.0-4416_daily_bin1082.fits outfile=/scratch/kocevski/338108/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin1082.fits ra=337.758 dec=-44.2791 rad=12.0 tmin=519782401.0 tmax=520041601.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.49
user 3.24
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/338108/ft1_filtered_4FGL_J2231.0-4416_daily_bin1082.fits" evtable="EVENTS" scfile=/scratch/kocevski/338108/ft2_4FGL_J2231.0-4416_daily_bin1082.fits sctable="SC_DATA" outfile=/scratch/kocevski/338108/ltcube_519782401_520041601_4FGL_J2231.0-4416_daily_bin1082.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/338108/ft2_4FGL_J2231.0-4416_daily_bin1082.fits
.....................!
real 11.63
user 11.23
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/338108/ft1_filtered_4FGL_J2231.0-4416_daily_bin1082.fits evtable="EVENTS" scfile=/scratch/kocevski/338108/ft2_4FGL_J2231.0-4416_daily_bin1082.fits sctable="SC_DATA" expcube=/scratch/kocevski/338108/ltcube_519782401_520041601_4FGL_J2231.0-4416_daily_bin1082.fits outfile=/scratch/kocevski/338108/expmap_519782401_520041601_4FGL_J2231.0-4416_daily_bin1082.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/338108/ltcube_519782401_520041601_4FGL_J2231.0-4416_daily_bin1082.fits
.....................!
real 190.41
user 185.57
sys 4.47

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/338108/ft1_filtered_4FGL_J2231.0-4416_daily_bin1082.fits scfile=/scratch/kocevski/338108/ft2_4FGL_J2231.0-4416_daily_bin1082.fits outfile=/scratch/kocevski/338108/cmap_519782401_520041601_4FGL_J2231.0-4416_daily_bin1082.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.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/338108/ft1_filtered_4FGL_J2231.0-4416_daily_bin1082.fits scfile=/scratch/kocevski/338108/ft2_4FGL_J2231.0-4416_daily_bin1082.fits outfile=/scratch/kocevski/338108/cmap_HighResolution_519782401_520041601_4FGL_J2231.0-4416_daily_bin1082.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.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/338108/ft1_filtered_4FGL_J2231.0-4416_daily_bin1082.fits evtable="EVENTS" scfile=/scratch/kocevski/338108/ft2_4FGL_J2231.0-4416_daily_bin1082.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/338108/Model_4FGL_J2231.0-4416_daily_bin1082.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/338108/ft1_filtered_4FGL_J2231.0-4416_daily_bin1082.fits.....................!
real 46.52
user 44.61
sys 1.35

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.5718       1.0000         .10000E-03   10000.    
     2 'Prefactor '    39.305       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10802E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    11.642       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.729       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.5945       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10798E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.3365       1.0000         .10000E-03   10000.    
    10 'Prefactor '    37.665       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    66.572       1.0000         .10000E-03   10000.    
    15 'Prefactor '    28.415       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.9449       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10991E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.952       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    48.554       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    7.4167       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    5.7615       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    .30197       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .59647       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.0331       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=   5975.045     FROM MIGRAD    STATUS=CONVERGED    893 CALLS     4773 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.5717        7.4582       -.99992E-08    .12759E-03
   2  Prefactor     39.301        28.280       -.31597E-05    .37912E-04
   3  Prefactor     .10021E-03    2.2633       -.12708E-05** at limit **
   4  norm          11.642        5.2551       -.15426E-06   -.86801E-03
   5  Prefactor     13.729        10.301       -.41147E-06    .85819E-05
   6  Prefactor     4.5934        8.9482       -.10325E-05   -.15884E-03
   7  Prefactor     .10000E-03    37.525       -.19156E-04** at limit **
   8  Prefactor     .10000E-03    3.1350       -.17595E-05** at limit **
   9  Prefactor     2.3358        3.3025       -.80200E-06   -.38185E-03
  10  Prefactor     37.635        67.570       -.43406E-04    .55017E-04
  11  norm          .10000E-03    2.7695        .11610E-05** at limit **
  12  Prefactor     .10000E-03    6.6087       -.56915E-06** at limit **
  13  Prefactor     .10000E-03    1.6008        .23986E-06** at limit **
  14  Prefactor     66.550        48.284       -.22186E-04    .75252E-05
  15  Prefactor     28.415        7.7096        .19516E-06    .93479E-04
  16  Prefactor     4.9472        12.274       -.96282E-06   -.48697E-04
  17  Prefactor     .10000E-03    20.707       -.25584E-05** at limit **
  18  Prefactor     .10000E-03    21.815        .45158E-05** at limit **
  19  Prefactor     17.952        10.629       -.36596E-06   -.10444E-03
  20  Prefactor     .10000E-03    28.718        .25075E-04** at limit **
  21  Prefactor     .10000E-03    3.2025        .18067E-05** at limit **
  22  Prefactor     .10000E-03    10.598        .21388E-05** at limit **
  23  Prefactor     48.556        44.722        .22872E-05    .12309E-04
  24  Prefactor     .10000E-03    4.8353       -.65075E-07** at limit **
  25  norm          7.4167        7.9901       -.29197E-06   -.36107E-05
  26  norm          .10000E-03    2.4255        .48200E-07** at limit **
  27  norm          5.7616        4.0941       -.29087E-06    .10817E-03
  28  Prefactor     .10000E-03    2.6174       -.77682E-06** at limit **
  29  Prefactor     .10000E-03    10.836       -.18920E-05** at limit **
  30  norm          .10000E-03    1.0643        .67433E-08** at limit **
  31  Prefactor     .10000E-03    10.481        .84605E-06** at limit **
  32  norm          .30207        .64952       -.36787E-06   -.28922E-02
  33  Normalizat    .59628        .15911        .34250E-05    .29811E-03
  34  Prefactor     1.0333        .15393        .23549E-05    .37261E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.57167
  Prefactor  = 39.3013
  Prefactor  = 0.000100207
  norm       = 11.6415
  Prefactor  = 13.7292
  Prefactor  = 4.59335
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 2.33577
  Prefactor  = 37.6354
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 66.5501
  Prefactor  = 28.4148
  Prefactor  = 4.94724
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 17.9523
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.5564
  Prefactor  = 0.0001
  norm       = 7.41668
  norm       = 0.0001
  norm       = 5.76159
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.302074
  Normalizat = 0.596276
  Prefactor  = 1.03327
 **********
 **   18 **HESSE 
 **********

 FCN=   5975.045     FROM HESSE     STATUS=OK           728 CALLS     5501 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.5717        7.4454        .13692E-03   -1.5122    
   2  Prefactor     39.301        28.265        .63934E-04   -1.4453    
   3  Prefactor     .10021E-03    19.644        .22270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          11.642        5.2620        .55853E-03   -1.5025    
   5  Prefactor     13.729        10.270        .10810E-03   -1.4967    
   6  Prefactor     4.5934        8.9208        .18779E-03   -1.5279    
   7  Prefactor     .10000E-03    37.586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.1404        .13337E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.3358        3.2918        .15997E-03   -1.5402    
  10  Prefactor     37.635        67.251        .65305E-04   -1.4480    
  11  norm          .10000E-03    2.7771        .12563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.8504        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.6275        .95435E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     66.550        48.346        .49190E-04   -1.4075    
  15  Prefactor     28.415        7.7242        .75158E-04   -1.4641    
  16  Prefactor     4.9472        12.258        .18086E-03   -1.5263    
  17  Prefactor     .10000E-03    20.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    21.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     17.952        10.624        .94528E-04   -1.4860    
  20  Prefactor     .10000E-03    28.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.2407        .13510E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    10.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     48.556        44.753        .57548E-04   -1.4313    
  24  Prefactor     .10000E-03    4.8504        .16597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          7.4167        7.9888        .14727E-03   -1.5163    
  26  norm          .10000E-03    2.4391        .11753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          5.7616        4.0942        .12848E-03   -1.5228    
  28  Prefactor     .10000E-03    2.6474        .12210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    10.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    1.0676        .77844E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    10.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          .30207        .51508        .88916E-03   -1.5598    
  33  Normalizat    .59628        .18393        .27532E-03   -1.0814    
  34  Prefactor     1.0333        .17860        .20851E-03   -.91629    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17981e-08
Minuit parameter uncertainties:
  1  7.44621
  2  28.275
  3  0.00403006
  4  5.26223
  5  10.2713
  6  8.92341
  7  0.000326506
  8  7.99471e-05
  9  3.29206
  10  67.3869
  11  4.45317e-06
  12  5.32486e-05
  13  3.02689e-05
  14  48.375
  15  7.72447
  16  12.2645
  17  0.000232468
  18  1.54534e-05
  19  10.6248
  20  9.61229e-06
  21  2.64231e-05
  22  8.42062e-06
  23  44.7842
  24  1.21385e-05
  25  7.98991
  26  1.03106e-06
  27  4.09443
  28  1.20459e-05
  29  2.74152e-05
  30  3.2418e-06
  31  6.72889e-05
  32  0.515085
  33  0.184119
  34  0.178703
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
584   Normalization:  5.963e-01  1.841e-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: 5.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/338108/likelihoodResults_519782401_520041601_4FGL_J2231.0-4416_daily_bin1082.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) = 5975.04784103
delta logL = -0.00292097423608

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5975.04492003
delta logL = 2.20470610657e-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.4145       1.0000          .0000       10.000    
     3 'Normalizat'    .59630       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0333       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=   5975.045     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      250 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.2836        .96004E-02** at limit **
   2  Index         2.1264        5.5859        .50000       -.62300E-07
   3  Normalizat    .59628        .83844E-02    .27532E-03    .19114E-03
   4  Prefactor     1.0333        .82444E-02    .20851E-03    .28537E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.12644
  Normalizat = 0.596276
  Prefactor  = 1.03327
 **********
 **   18 **HESSE 
 **********

 FCN=   5975.045     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      279 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    112.44        .99461E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1264        6.2282        .50000       -.61225    
   3  Normalizat    .59628        .33023E-01    .11013E-04   -1.0814    
   4  Prefactor     1.0333        .32471E-01    .41702E-04   -.91629    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.01992e-10
Minuit parameter uncertainties:
  1  4.61211e-05
  2  589.152
  3  0.033024
  4  0.0324713
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/338108': 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) = 5975.04491774
delta logL = 2.31616922974e-06

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  1.000e-04  4.612e-05  1.000e-04  1.000e+04 ( 1.000e-12)
306        Index:  2.126e+00  5.892e+02  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.033e+00  3.247e-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:  5.963e-01  3.302e-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/338108/cmap_HighResolution_519782401_520041601_4FGL_J2231.0-4416_daily_bin1082.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.29e-03', job_status='DONE', photon_flux_upper_limit='5.54e-08', time_completed='2021-09-28 13:46:36.794629', job_id='338108', GAL2='1.03', fit_tolerance='1e-08', EG2='0.60', EG='0.60', time_epoch_completed='1632861996.79', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='2.32e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1082' AND source_name='4FGL J2231.0-4416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 13:46:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0110>
Subject: Job 338108: <4FGL_J2231.0-4416_daily_bin1082> in cluster <slac> Done

Job <4FGL_J2231.0-4416_daily_bin1082> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 13:30:32 2021
Job was executed on host(s) <bullet0110>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 13:30:33 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:33 2021
Terminated at Tue Sep 28 13:46:37 2021
Results reported at Tue Sep 28 13:46:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2231.0-4416_daily_bin1082 337.758 -44.2791 519782401 520041601 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 :                                   917.33 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             323.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   964 sec.
    Turnaround time :                            965 sec.

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

