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


Performing analysis on: 4FGL_J2231.0-4416_daily_bin1161
RA = 337.758, Dec = -44.2791
tmin = 540259201, tmax = 540518401
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='339284', job_status='RUN', time_executed='2021-09-28 13:36:30.848417', time_epoch_executed='1632861390.85' WHERE source_name='4FGL J2231.0-4416' and cadence='daily' and bin_id='1161'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/339284

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/339284/ft1_4FGL_J2231.0-4416_daily_bin1161.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/339284/ft2_4FGL_J2231.0-4416_daily_bin1161.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/339284/ft1_4FGL_J2231.0-4416_daily_bin1161.fits outfile=/scratch/kocevski/339284/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin1161.fits ra=337.758 dec=-44.2791 rad=12.0 tmin=540259201.0 tmax=540518401.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.55
user 3.34
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/339284/ft2_4FGL_J2231.0-4416_daily_bin1161.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/339284/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin1161.fits evtable="EVENTS" outfile="/scratch/kocevski/339284/ft1_filtered_4FGL_J2231.0-4416_daily_bin1161.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/339284/ft1_filtered_4FGL_J2231.0-4416_daily_bin1161.fits" evtable="EVENTS" scfile=/scratch/kocevski/339284/ft2_4FGL_J2231.0-4416_daily_bin1161.fits sctable="SC_DATA" outfile=/scratch/kocevski/339284/ltcube_540259201_540518401_4FGL_J2231.0-4416_daily_bin1161.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/339284/ft2_4FGL_J2231.0-4416_daily_bin1161.fits
.....................!
real 12.12
user 11.69
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/339284/ft1_filtered_4FGL_J2231.0-4416_daily_bin1161.fits evtable="EVENTS" scfile=/scratch/kocevski/339284/ft2_4FGL_J2231.0-4416_daily_bin1161.fits sctable="SC_DATA" expcube=/scratch/kocevski/339284/ltcube_540259201_540518401_4FGL_J2231.0-4416_daily_bin1161.fits outfile=/scratch/kocevski/339284/expmap_540259201_540518401_4FGL_J2231.0-4416_daily_bin1161.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/339284/ltcube_540259201_540518401_4FGL_J2231.0-4416_daily_bin1161.fits
.....................!
real 192.54
user 187.24
sys 4.65

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/339284/ft1_filtered_4FGL_J2231.0-4416_daily_bin1161.fits scfile=/scratch/kocevski/339284/ft2_4FGL_J2231.0-4416_daily_bin1161.fits outfile=/scratch/kocevski/339284/cmap_540259201_540518401_4FGL_J2231.0-4416_daily_bin1161.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.86
user 0.38
sys 0.18

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/339284/ft1_filtered_4FGL_J2231.0-4416_daily_bin1161.fits evtable="EVENTS" scfile=/scratch/kocevski/339284/ft2_4FGL_J2231.0-4416_daily_bin1161.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/339284/Model_4FGL_J2231.0-4416_daily_bin1161.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/339284/ft1_filtered_4FGL_J2231.0-4416_daily_bin1161.fits.....................!
real 44.65
user 43.19
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .56618       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.7392       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    15.303       1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.138       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    44.277       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.0096       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10505E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.2866       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .18189E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12783       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10886E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .11996E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    12.447       1.0000         .10000E-03   10000.    
    29 'Prefactor '    35.047       1.0000         .10000E-03   10000.    
    30 'norm      '    .10179E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    12.508       1.0000         .10000E-03   10000.    
    32 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.0914       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .93552       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=   5566.016     FROM MIGRAD    STATUS=CONVERGED    955 CALLS     4880 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .56110        6.9829        .53934E-06   -.73026E-04
   2  Prefactor     9.7380        17.843       -.82383E-07   -.17920E-04
   3  Prefactor     .10000E-03    3.2719        .94120E-07** at limit **
   4  norm          15.302        5.5268       -.23947E-08   -.34356E-04
   5  Prefactor     27.130        12.763       -.60066E-07   -.50737E-04
   6  Prefactor     .10000E-03    4.5769        .52651E-07** at limit **
   7  Prefactor     44.272        43.269       -.11681E-05   -.10878E-03
   8  Prefactor     .10000E-03    3.6780       -.86654E-07** at limit **
   9  Prefactor     7.0080        4.4200       -.22313E-07   -.30238E-04
  10  Prefactor     .10000E-03    27.446        .10588E-05** at limit **
  11  norm          .10000E-03    2.3860        .28101E-07** at limit **
  12  Prefactor     .10000E-03    5.2169        .67047E-06** at limit **
  13  Prefactor     .10000E-03    2.1793        .22408E-06** at limit **
  14  Prefactor     .10000E-03    38.397       -.17379E-05** at limit **
  15  Prefactor     9.2911        6.2699       -.72051E-07   -.79442E-04
  16  Prefactor     .10000E-03    4.8105        .25838E-07** at limit **
  17  Prefactor     .10000E-03    10.508       -.45672E-06** at limit **
  18  Prefactor     .10000E-03    11.902        .36163E-06** at limit **
  19  Prefactor     .10002E-03    8.0539       -.85239E-06** at limit **
  20  Prefactor     .10003E-03    131.16        .89622E-05** at limit **
  21  Prefactor     .12221        7.0402        .69961E-06   -.19256E-03
  22  Prefactor     .10003E-03    130.08        .94437E-05** at limit **
  23  Prefactor     .10000E-03    22.216        .12016E-05** at limit **
  24  Prefactor     .10000E-03    18.695       -.14638E-05** at limit **
  25  norm          .10000E-03    5.5850       -.30931E-07** at limit **
  26  norm          .10000E-03    2.0604        .92611E-09** at limit **
  27  norm          .10002E-03    7.1583       -.31206E-05** at limit **
  28  Prefactor     12.446        8.1434       -.10305E-06   -.57963E-04
  29  Prefactor     34.912        32.154        .11824E-05    .33280E-03
  30  norm          .10000E-03    2.1299       -.10843E-05** at limit **
  31  Prefactor     12.507        18.715       -.32330E-07   -.95192E-06
  32  norm          .10000E-03    .49557        .81998E-07** at limit **
  33  Normalizat    1.0916        .19586        .86091E-06   -.47532E-04
  34  Prefactor     .93554        .17368       -.79558E-06   -.26787E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.561102
  Prefactor  = 9.73796
  Prefactor  = 0.0001
  norm       = 15.3021
  Prefactor  = 27.1302
  Prefactor  = 0.0001
  Prefactor  = 44.2716
  Prefactor  = 0.0001
  Prefactor  = 7.00795
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 9.29113
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  Prefactor  = 0.000100029
  Prefactor  = 0.122213
  Prefactor  = 0.000100027
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100021
  Prefactor  = 12.4465
  Prefactor  = 34.9123
  norm       = 0.0001
  Prefactor  = 12.5069
  norm       = 0.0001
  Normalizat = 1.09159
  Prefactor  = 0.935542
 **********
 **   18 **HESSE 
 **********

 FCN=   5566.016     FROM HESSE     STATUS=OK           740 CALLS     5620 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .56110        20.853        .37094E-02   -1.5558    
   2  Prefactor     9.7380        17.819        .12841E-03   -1.5084    
   3  Prefactor     .10000E-03    3.3569        .26340E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          15.302        5.5225        .10079E-03   -1.4925    
   5  Prefactor     27.130        12.756        .76902E-04   -1.4666    
   6  Prefactor     .10000E-03    4.5957        .15580E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     44.272        43.411        .60251E-04   -1.4376    
   8  Prefactor     .10000E-03    3.6970        .13961E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.0080        4.4170        .11919E-03   -1.5178    
  10  Prefactor     .10000E-03    27.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.3887        .11255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    20.678        .32287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.6807        .20802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    38.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.2911        6.2730        .13151E-03   -1.5098    
  16  Prefactor     .10000E-03    4.8112        .15981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10002E-03    47.650        .39947E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10003E-03    135.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .12221        8.2343        .57025E-01   -1.5638    
  22  Prefactor     .10003E-03    136.34        .41411E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    22.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    19.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    5.5925        .17220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    2.0608        .10459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10002E-03    11.872        .28984E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     12.446        8.1233        .11354E-03   -1.5002    
  29  Prefactor     34.912        33.196        .67693E-04   -1.4526    
  30  norm          .10000E-03    2.1884        .10735E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     12.507        18.645        .11326E-03   -1.5001    
  32  norm          .10000E-03    .69030        .10134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    1.0916        .22739        .24749E-03   -.90022    
  34  Prefactor     .93554        .20405        .24480E-03   -.94910    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.01745e-08
Minuit parameter uncertainties:
  1  6.84323
  2  17.8289
  3  6.20469e-06
  4  5.5227
  5  12.7574
  6  3.81721e-06
  7  43.4416
  8  2.18343e-06
  9  4.41724
  10  0.000213595
  11  1.83435e-06
  12  0.000625011
  13  0.000178059
  14  0.000428014
  15  6.27342
  16  1.28077e-06
  17  6.10309e-05
  18  4.95736e-05
  19  0.00175037
  20  0.00397859
  21  2.0058
  22  0.00383812
  23  0.000212276
  24  0.000245407
  25  2.5514e-06
  26  1.27224e-08
  27  0.00100941
  28  8.12398
  29  33.214
  30  4.45187e-05
  31  18.6536
  32  4.7569e-07
  33  0.227596
  34  0.204222
Done.

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

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  1.000e-04  1.781e-04  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.355e-01  2.042e-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.092e+00  2.276e-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: 8.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/339284/likelihoodResults_540259201_540518401_4FGL_J2231.0-4416_daily_bin1161.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) = 5566.01637707
delta logL = -0.00054866370192

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5566.01582552
delta logL = 2.87988859782e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19142E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5508       1.0000          .0000       10.000    
     3 'Normalizat'    1.0915       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93561       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=   5565.609     FROM MIGRAD    STATUS=CONVERGED    125 CALLS      306 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20940        4.0603        .85340E-02    .68229E-04
   2  Index         4.5049        3.4977        .13266        .43940E-04
   3  Normalizat    1.0225        .38329E-01    .57621E-01    .10094E-03
   4  Prefactor     .97243        .35571E-01    .45457E-01    .21766E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.2094
  Index      = 4.5049
  Normalizat = 1.02254
  Prefactor  = 0.972431
 **********
 **   18 **HESSE 
 **********

 FCN=   5565.609     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      339 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .20940        13.314        .38764E-03   -1.5616    
   2  Index         4.5049        7.1191        .74987E-02   -.99182E-01
   3  Normalizat    1.0225        .16336        .25482E-03   -.92279    
   4  Prefactor     .97243        .14731        .24069E-03   -.93654    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.76863e-10
Minuit parameter uncertainties:
  1  3.33944
  2  8.95454
  3  0.163439
  4  0.147375
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/339284': 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) = 5565.6094575
delta logL = 0.406370902835

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  9.724e-01  1.474e-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.023e+00  1.634e-01  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/339284/cmap_HighResolution_540259201_540518401_4FGL_J2231.0-4416_daily_bin1161.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.47e-03', job_status='DONE', photon_flux_upper_limit='8.36e-08', time_completed='2021-09-28 13:51:41.927186', job_id='339284', GAL2='0.97', fit_tolerance='1e-08', EG2='1.02', EG='1.09', time_epoch_completed='1632862301.93', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='4.06e-01', ts2='0.88', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1161' AND source_name='4FGL J2231.0-4416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 13:51:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 339284: <4FGL_J2231.0-4416_daily_bin1161> in cluster <slac> Done

Job <4FGL_J2231.0-4416_daily_bin1161> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Tue Sep 28 13:35:13 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 13:35:15 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:35:15 2021
Terminated at Tue Sep 28 13:51:42 2021
Results reported at Tue Sep 28 13:51:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2231.0-4416_daily_bin1161 337.758 -44.2791 540259201 540518401 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 :                                   909.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   987 sec.
    Turnaround time :                            989 sec.

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

