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


Performing analysis on: 4FGL_J2231.0-4416_daily_bin1057
RA = 337.758, Dec = -44.2791
tmin = 513302401, tmax = 513561601
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='338071', job_status='RUN', time_executed='2021-09-28 13:31:44.392804', time_epoch_executed='1632861104.39' WHERE source_name='4FGL J2231.0-4416' and cadence='daily' and bin_id='1057'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/338071

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/338071/ft1_4FGL_J2231.0-4416_daily_bin1057.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/338071/ft2_4FGL_J2231.0-4416_daily_bin1057.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/338071/ft1_4FGL_J2231.0-4416_daily_bin1057.fits outfile=/scratch/kocevski/338071/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin1057.fits ra=337.758 dec=-44.2791 rad=12.0 tmin=513302401.0 tmax=513561601.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 5.38
user 5.12
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/338071/ft2_4FGL_J2231.0-4416_daily_bin1057.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/338071/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin1057.fits evtable="EVENTS" outfile="/scratch/kocevski/338071/ft1_filtered_4FGL_J2231.0-4416_daily_bin1057.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.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/338071/ft1_filtered_4FGL_J2231.0-4416_daily_bin1057.fits" evtable="EVENTS" scfile=/scratch/kocevski/338071/ft2_4FGL_J2231.0-4416_daily_bin1057.fits sctable="SC_DATA" outfile=/scratch/kocevski/338071/ltcube_513302401_513561601_4FGL_J2231.0-4416_daily_bin1057.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/338071/ft2_4FGL_J2231.0-4416_daily_bin1057.fits
.....................!
real 11.84
user 11.49
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/338071/ft1_filtered_4FGL_J2231.0-4416_daily_bin1057.fits evtable="EVENTS" scfile=/scratch/kocevski/338071/ft2_4FGL_J2231.0-4416_daily_bin1057.fits sctable="SC_DATA" expcube=/scratch/kocevski/338071/ltcube_513302401_513561601_4FGL_J2231.0-4416_daily_bin1057.fits outfile=/scratch/kocevski/338071/expmap_513302401_513561601_4FGL_J2231.0-4416_daily_bin1057.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/338071/ltcube_513302401_513561601_4FGL_J2231.0-4416_daily_bin1057.fits
.....................!
real 190.52
user 186.34
sys 3.81

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/338071/ft1_filtered_4FGL_J2231.0-4416_daily_bin1057.fits scfile=/scratch/kocevski/338071/ft2_4FGL_J2231.0-4416_daily_bin1057.fits outfile=/scratch/kocevski/338071/cmap_513302401_513561601_4FGL_J2231.0-4416_daily_bin1057.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/338071/ft1_filtered_4FGL_J2231.0-4416_daily_bin1057.fits scfile=/scratch/kocevski/338071/ft2_4FGL_J2231.0-4416_daily_bin1057.fits outfile=/scratch/kocevski/338071/cmap_HighResolution_513302401_513561601_4FGL_J2231.0-4416_daily_bin1057.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/338071/ft1_filtered_4FGL_J2231.0-4416_daily_bin1057.fits evtable="EVENTS" scfile=/scratch/kocevski/338071/ft2_4FGL_J2231.0-4416_daily_bin1057.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/338071/Model_4FGL_J2231.0-4416_daily_bin1057.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/338071/ft1_filtered_4FGL_J2231.0-4416_daily_bin1057.fits.....................!
real 38.65
user 37.36
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6842       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .15271E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    9.6624       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    97.735       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10844E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.401       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.0937       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .80768       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.839       1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.557       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11310E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.3456       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .17181E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    7.5866       1.0000         .10000E-03   10000.    
    27 'norm      '    .10437E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.0739       1.0000         .10000E-03   10000.    
    29 'Prefactor '    88.624       1.0000         .10000E-03   10000.    
    30 'norm      '    .14666E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    .32745       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .72195       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.2559       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=   4663.671     FROM MIGRAD    STATUS=CONVERGED    933 CALLS     4838 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6825        9.7303        .61510E-07   -.26903E-04
   2  Prefactor     .10000E-03    145.03        .50192E-05** at limit **
   3  Prefactor     .10000E-03    4.5870       -.34351E-07** at limit **
   4  norm          9.6570        6.5656        .25034E-06   -.14878E-03
   5  Prefactor     .10000E-03    25.398       -.21893E-05** at limit **
   6  Prefactor     .10000E-03    3.5911       -.69234E-08** at limit **
   7  Prefactor     97.735        50.697        .11313E-06    .20339E-05
   8  Prefactor     .10000E-03    11.604       -.52813E-07** at limit **
   9  Prefactor     20.401        6.7084       -.53409E-07    .12372E-04
  10  Prefactor     .10000E-03    40.594        .14591E-05** at limit **
  11  norm          .10000E-03    2.6134        .19193E-07** at limit **
  12  Prefactor     4.0977        12.173        .37042E-06    .13555E-04
  13  Prefactor     .80843        4.3695        .51695E-06    .64551E-04
  14  Prefactor     .10000E-03    36.774        .10517E-05** at limit **
  15  Prefactor     .10000E-03    2.0413        .36875E-07** at limit **
  16  Prefactor     19.836        28.635        .22152E-06    .10338E-04
  17  Prefactor     22.561        17.217        .18609E-07    .18358E-04
  18  Prefactor     .10000E-03    113.17       -.10225E-05** at limit **
  19  Prefactor     3.3423        10.633        .35488E-05    .12523E-03
  20  Prefactor     .10000E-03    36.463        .10391E-05** at limit **
  21  Prefactor     .10001E-03    7.8267       -.16930E-05** at limit **
  22  Prefactor     .10000E-03    41.421        .14420E-05** at limit **
  23  Prefactor     .10000E-03    59.704       -.47292E-05** at limit **
  24  Prefactor     .10000E-03    5.1624        .16719E-06** at limit **
  25  norm          .10000E-03    5.3663       -.11905E-06** at limit **
  26  norm          7.5856        7.8841       -.10199E-06   -.79543E-05
  27  norm          .10000E-03    3.1050       -.84929E-07** at limit **
  28  Prefactor     3.0743        6.8408       -.12485E-06   -.89676E-05
  29  Prefactor     88.603        47.967        .13578E-05    .38731E-04
  30  norm          .10000E-03    3.2994       -.27022E-06** at limit **
  31  Prefactor     .10000E-03    12.756        .19335E-06** at limit **
  32  norm          .32735        1.1365        .20461E-06    .84453E-04
  33  Normalizat    .72113        .23646       -.70307E-06    .10648E-03
  34  Prefactor     1.2568        .20481       -.11392E-06    .93472E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.68248
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 9.65702
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 97.735
  Prefactor  = 0.0001
  Prefactor  = 20.4013
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.0977
  Prefactor  = 0.808433
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.8358
  Prefactor  = 22.5612
  Prefactor  = 0.0001
  Prefactor  = 3.34235
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.58564
  norm       = 0.0001
  Prefactor  = 3.07429
  Prefactor  = 88.6028
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.327346
  Normalizat = 0.721127
  Prefactor  = 1.25685
 **********
 **   18 **HESSE 
 **********

 FCN=   4663.671     FROM HESSE     STATUS=OK           726 CALLS     5564 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6825        9.7111        .16848E-03   -1.5231    
   2  Prefactor     .10000E-03    145.36        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.6882        .14273E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          9.6570        6.5169        .12892E-03   -1.5086    
   5  Prefactor     .10000E-03    26.252        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.5966        .12638E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     97.735        50.664        .40661E-04   -1.3728    
   8  Prefactor     .10000E-03    11.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     20.401        6.7109        .88677E-04   -1.4804    
  10  Prefactor     .10000E-03    40.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.6150        .10782E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.0977        12.139        .19925E-03   -1.5303    
  13  Prefactor     .80843        4.4691        .26526E-03   -1.5528    
  14  Prefactor     .10000E-03    36.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.0461        .95268E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     19.836        28.561        .89924E-04   -1.4817    
  17  Prefactor     22.561        17.217        .84336E-04   -1.4758    
  18  Prefactor     .10000E-03    116.12        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.3423        10.792        .11064E-02   -1.5342    
  20  Prefactor     .10000E-03    36.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    19.631        .33693E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    41.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    60.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.1669        .15153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    5.3712        .15452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          7.5856        7.8784        .14560E-03   -1.5157    
  27  norm          .10000E-03    3.1201        .11752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     3.0743        6.7239        .23135E-03   -1.5357    
  29  Prefactor     88.603        48.178        .42680E-04   -1.3823    
  30  norm          .10000E-03    3.3233        .12113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    12.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          .32735        1.0938        .12536E-03   -1.5594    
  33  Normalizat    .72113        .28260        .30258E-03   -1.0306    
  34  Prefactor     1.2568        .25019        .22178E-03   -.84599    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.18033e-10
Minuit parameter uncertainties:
  1  9.71384
  2  0.000779797
  3  1.82401e-06
  4  6.51742
  5  6.32594e-05
  6  2.53719e-07
  7  50.6866
  8  7.24854e-06
  9  6.71111
  10  4.3317e-05
  11  3.57401e-07
  12  12.1464
  13  3.80177
  14  3.29595e-05
  15  7.56315e-07
  16  28.5805
  17  17.2204
  18  4.02459e-05
  19  10.7978
  20  2.71216e-05
  21  0.000887815
  22  3.92515e-05
  23  0.00014326
  24  2.26358e-06
  25  1.17056e-06
  26  7.87943
  27  5.62918e-06
  28  6.72552
  29  48.1994
  30  1.82101e-05
  31  1.72981e-05
  32  1.09387
  33  0.283172
  34  0.250432
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  1.257e+00  2.504e-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:  7.211e-01  2.832e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/338071/likelihoodResults_513302401_513561601_4FGL_J2231.0-4416_daily_bin1057.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4663.51963462
delta logL = 0.151128068866

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4663.51581721
delta logL = 0.154945470621

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .73797       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2860       1.0000          .0000       10.000    
     3 'Normalizat'    .69730       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2695       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=   4663.516     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      214 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .73633        33.981        .12207E-01    .66236E-03
   2  Index         3.2890        6.6207        .21524        .41511E-04
   3  Normalizat    .69784        .42104E-01    .69438E-01   -.46493E-04
   4  Prefactor     1.2692        .39862E-01    .49957E-01   -.42043E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.736326
  Index      = 3.28903
  Normalizat = 0.697837
  Prefactor  = 1.26924
 **********
 **   18 **HESSE 
 **********

 FCN=   4663.516     FROM HESSE     STATUS=OK            31 CALLS      245 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .73633        2.7523        .10310E-03   -1.5536    
   2  Index         3.2890        1.9738        .95757E-02   -.34925    
   3  Normalizat    .69784        .26342        .30729E-03   -1.0398    
   4  Prefactor     1.2692        .24598        .22085E-03   -.84226    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.25011e-11
Minuit parameter uncertainties:
  1  2.75278
  2  2.03701
  3  0.263899
  4  0.246208
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/338071': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4663.51581067
delta logL = 0.154952010362

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  1.269e+00  2.462e-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:  6.978e-01  2.639e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
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/338071/cmap_HighResolution_513302401_513561601_4FGL_J2231.0-4416_daily_bin1057.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.38e-03', job_status='DONE', photon_flux_upper_limit='9.53e-08', time_completed='2021-09-28 13:45:00.421296', job_id='338071', GAL2='1.27', fit_tolerance='1e-08', EG2='0.70', EG='0.72', time_epoch_completed='1632861900.42', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='1.26', dlogl='1.55e-01', ts2='0.37', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1057' AND source_name='4FGL J2231.0-4416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 13:45:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 338071: <4FGL_J2231.0-4416_daily_bin1057> in cluster <slac> Done

Job <4FGL_J2231.0-4416_daily_bin1057> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 13:30:29 2021
Job was executed on host(s) <bullet0115>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 13:30:31 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:31 2021
Terminated at Tue Sep 28 13:45:01 2021
Results reported at Tue Sep 28 13:45:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2231.0-4416_daily_bin1057 337.758 -44.2791 513302401 513561601 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 :                                   794.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            872 sec.

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

