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


Performing analysis on: 4FGL_J2231.0-4416_daily_bin1632
RA = 337.758, Dec = -44.2791
tmin = 662342401, tmax = 662601601
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='628570', job_status='RUN', time_executed='2021-12-31 00:37:39.175573', time_epoch_executed='1640939859.18' WHERE source_name='4FGL J2231.0-4416' and cadence='daily' and bin_id='1632'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/628570

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/628570/ft1_4FGL_J2231.0-4416_daily_bin1632.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/628570/ft2_4FGL_J2231.0-4416_daily_bin1632.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/628570/ft1_4FGL_J2231.0-4416_daily_bin1632.fits outfile=/scratch/kocevski/628570/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin1632.fits ra=337.758 dec=-44.2791 rad=12.0 tmin=662342401.0 tmax=662601601.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 2.90
user 2.70
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/628570/ft1_filtered_4FGL_J2231.0-4416_daily_bin1632.fits" evtable="EVENTS" scfile=/scratch/kocevski/628570/ft2_4FGL_J2231.0-4416_daily_bin1632.fits sctable="SC_DATA" outfile=/scratch/kocevski/628570/ltcube_662342401_662601601_4FGL_J2231.0-4416_daily_bin1632.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/628570/ft2_4FGL_J2231.0-4416_daily_bin1632.fits
.....................!
real 13.62
user 13.26
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/628570/ft1_filtered_4FGL_J2231.0-4416_daily_bin1632.fits evtable="EVENTS" scfile=/scratch/kocevski/628570/ft2_4FGL_J2231.0-4416_daily_bin1632.fits sctable="SC_DATA" expcube=/scratch/kocevski/628570/ltcube_662342401_662601601_4FGL_J2231.0-4416_daily_bin1632.fits outfile=/scratch/kocevski/628570/expmap_662342401_662601601_4FGL_J2231.0-4416_daily_bin1632.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/628570/ltcube_662342401_662601601_4FGL_J2231.0-4416_daily_bin1632.fits
.....................!
real 191.79
user 187.05
sys 4.43

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/628570/ft1_filtered_4FGL_J2231.0-4416_daily_bin1632.fits scfile=/scratch/kocevski/628570/ft2_4FGL_J2231.0-4416_daily_bin1632.fits outfile=/scratch/kocevski/628570/cmap_662342401_662601601_4FGL_J2231.0-4416_daily_bin1632.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/628570/ft1_filtered_4FGL_J2231.0-4416_daily_bin1632.fits scfile=/scratch/kocevski/628570/ft2_4FGL_J2231.0-4416_daily_bin1632.fits outfile=/scratch/kocevski/628570/cmap_HighResolution_662342401_662601601_4FGL_J2231.0-4416_daily_bin1632.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.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/628570/ft1_filtered_4FGL_J2231.0-4416_daily_bin1632.fits evtable="EVENTS" scfile=/scratch/kocevski/628570/ft2_4FGL_J2231.0-4416_daily_bin1632.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/628570/Model_4FGL_J2231.0-4416_daily_bin1632.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/628570/ft1_filtered_4FGL_J2231.0-4416_daily_bin1632.fits.....................!
real 37.60
user 36.40
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.994       1.0000         .10000E-03   10000.    
     2 'Prefactor '    54.282       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.9277       1.0000         .10000E-03   10000.    
     4 'norm      '    16.189       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10472E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.5061       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.5821       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.4669       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .15730       1.0000         .10000E-03   10000.    
    11 'norm      '    4.4699       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.2655       1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.748       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.6129       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10829E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .24719E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.133       1.0000         .10000E-03   10000.    
    25 'norm      '    5.3927       1.0000         .10000E-03   10000.    
    26 'norm      '    .12897E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.3587       1.0000         .10000E-03   10000.    
    29 'Prefactor '    20.276       1.0000         .10000E-03   10000.    
    30 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    6.7192       1.0000         .10000E-03   10000.    
    32 'norm      '    .13498E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .88794       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .75885       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=   4551.183     FROM MIGRAD    STATUS=CONVERGED   1678 CALLS     6353 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.019        23.650        .65023E-04   -.39094E-04
   2  Prefactor     54.183        75.704        .27221E-03    .93135E-04
   3  Prefactor     1.9281        10.965        .14959E-02    .30799E-03
   4  norm          16.191        9.5699        .99543E-04   -.52079E-04
   5  Prefactor     .10000E-03    11.096        .18142E-02** at limit **
   6  Prefactor     3.5030        11.198        .21592E-03    .38015E-04
   7  Prefactor     .10000E-03    78.004        .18142E-02** at limit **
   8  Prefactor     5.5773        14.315        .17004E-03   -.30829E-03
   9  Prefactor     6.4671        5.9211        .14913E-03   -.12403E-03
  10  Prefactor     .10007E-03    310.15        .21940    ** at limit **
  11  norm          4.4700        5.7029        .17724E-03   -.37357E-04
  12  Prefactor     .10000E-03    3.0770        .11536E-02** at limit **
  13  Prefactor     .10000E-03    2.6258        .21078E-03** at limit **
  14  Prefactor     .10000E-03    10.329        .18142E-02** at limit **
  15  Prefactor     4.2650        5.0133        .15623E-03   -.64690E-04
  16  Prefactor     17.754        17.427        .95071E-04    .88490E-05
  17  Prefactor     5.6129        11.137        .16956E-03    .75762E-05
  18  Prefactor     .10000E-03    13.482        .18142E-02** at limit **
  19  Prefactor     .10000E-03    4.2032        .13484E-02** at limit **
  20  Prefactor     .10000E-03    45.634        .18142E-02** at limit **
  21  Prefactor     .10000E-03    2.2679        .99037E-03** at limit **
  22  Prefactor     .10000E-03    9.1238        .18142E-02** at limit **
  23  Prefactor     .10000E-03    86.114        .18142E-02** at limit **
  24  Prefactor     11.138        13.406        .12007E-03   -.10747E-03
  25  norm          5.3927        8.6311        .17305E-03    .36133E-05
  26  norm          .10000E-03    14.026        .27565E-02** at limit **
  27  norm          .10000E-03    1.9881        .92431E-03** at limit **
  28  Prefactor     6.3599        5.9715        .12736E-03   -.13452E-03
  29  Prefactor     20.298        22.613        .88949E-04    .97137E-05
  30  norm          .10000E-03    1.4501        .78675E-03** at limit **
  31  Prefactor     6.7166        13.477        .15480E-03   -.51189E-04
  32  norm          .10001E-03    4.9984        .99173E-03** at limit **
  33  Normalizat    .88786        .20803        .22053E-03   -.18334E-03
  34  Prefactor     .75892        .20517        .23603E-03   -.16598E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.0192
  Prefactor  = 54.183
  Prefactor  = 1.92813
  norm       = 16.1905
  Prefactor  = 0.0001
  Prefactor  = 3.50301
  Prefactor  = 0.0001
  Prefactor  = 5.57731
  Prefactor  = 6.46706
  Prefactor  = 0.00010007
  norm       = 4.46999
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.26505
  Prefactor  = 17.7545
  Prefactor  = 5.61289
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.1378
  norm       = 5.39269
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.35994
  Prefactor  = 20.2976
  norm       = 0.0001
  Prefactor  = 6.71663
  norm       = 0.000100006
  Normalizat = 0.88786
  Prefactor  = 0.758918
 **********
 **   18 **HESSE 
 **********

 FCN=   4551.183     FROM HESSE     STATUS=OK           708 CALLS     7061 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.019        23.634        .13005E-04   -1.4474    
   2  Prefactor     54.183        75.699        .10888E-04   -1.4234    
   3  Prefactor     1.9281        10.940        .59838E-04   -1.5430    
   4  norm          16.191        9.5697        .39817E-05   -1.4903    
   5  Prefactor     .10000E-03    11.098        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.5030        11.197        .86367E-05   -1.5334    
   7  Prefactor     .10000E-03    78.034        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.5773        14.395        .68016E-05   -1.5236    
   9  Prefactor     6.4671        5.9208        .59652E-05   -1.5199    
  10  Prefactor     .10007E-03    322.02        .21578       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.4700        5.7029        .35448E-04   -1.5285    
  12  Prefactor     .10000E-03    3.0772        .23071E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.6258        .42156E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.329        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.2650        5.0131        .62494E-05   -1.5295    
  16  Prefactor     17.754        17.427        .38029E-05   -1.4865    
  17  Prefactor     5.6129        11.137        .67826E-05   -1.5234    
  18  Prefactor     .10000E-03    13.484        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.2036        .26967E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    45.635        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.2680        .19807E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.1239        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    86.142        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     11.138        13.392        .48028E-05   -1.5040    
  25  norm          5.3927        8.6313        .69219E-05   -1.5243    
  26  norm          .10000E-03    14.168        .55130E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1.9883        .18486E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     6.3599        5.9694        .50946E-05   -1.5204    
  29  Prefactor     20.298        22.614        .35579E-05   -1.4807    
  30  norm          .10000E-03    1.4502        .15735E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     6.7166        13.472        .61919E-05   -1.5190    
  32  norm          .10001E-03    5.0258        .19835E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .88786        .20820        .44106E-04   -.96888    
  34  Prefactor     .75892        .20536        .94413E-05   -1.0126    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15904e-09
Minuit parameter uncertainties:
  1  23.6401
  2  75.8335
  3  9.18786
  4  9.57061
  5  7.84925e-05
  6  11.2035
  7  0.000190004
  8  14.4044
  9  5.92134
  10  0.00952557
  11  5.70355
  12  5.33441e-07
  13  1.30238e-06
  14  1.85806e-05
  15  5.01357
  16  17.432
  17  11.141
  18  2.6381e-05
  19  3.04748e-06
  20  7.82098e-06
  21  2.00027e-06
  22  4.73655e-07
  23  0.000155769
  24  13.3957
  25  8.6333
  26  6.61251e-05
  27  4.72667e-06
  28  5.96994
  29  22.6231
  30  6.20512e-06
  31  13.4783
  32  0.000338232
  33  0.20839
  34  0.205564
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  7.589e-01  2.056e-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:  8.879e-01  2.084e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/628570/likelihoodResults_662342401_662601601_4FGL_J2231.0-4416_daily_bin1632.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) = 4551.18442056
delta logL = -0.00181558661734

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4551.18260696
delta logL = -1.99382702704e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4444       1.0000          .0000       10.000    
     3 'Normalizat'    .88751       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75932       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=   4551.183     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      236 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    2.8675        .21337E-03** at limit **
   2  Index         2.4633        6.2316        .50000       -.63583E-04
   3  Normalizat    .88786        .19903        .22053E-03    .36312E-03
   4  Prefactor     .75892        .19942        .23603E-03    .27252E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100011
  Index      = 2.46332
  Normalizat = 0.887862
  Prefactor  = 0.758918
 **********
 **   18 **HESSE 
 **********

 FCN=   4551.183     FROM HESSE     STATUS=OK            29 CALLS      265 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    2.7037        .42674E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4633        6.2299        .50000       -.53209    
   3  Normalizat    .88786        .19921        .44106E-04   -.96888    
   4  Prefactor     .75892        .19960        .47206E-04   -1.0126    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.70914e-09
Minuit parameter uncertainties:
  1  0.000347613
  2  4.31306
  3  0.199371
  4  0.199785
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/628570': 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) = 4551.18260444
delta logL = 5.29261342308e-07

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  1.000e-04  3.476e-04  1.000e-04  1.000e+04 ( 1.000e-12)
306        Index:  2.463e+00  4.313e+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:  7.589e-01  1.998e-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:  8.879e-01  1.994e-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/628570/cmap_HighResolution_662342401_662601601_4FGL_J2231.0-4416_daily_bin1632.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.50e-03', job_status='DONE', photon_flux_upper_limit='7.11e-08', time_completed='2021-12-31 00:52:02.309584', job_id='628570', GAL2='0.76', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1640940722.31', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='5.29e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1632' AND source_name='4FGL J2231.0-4416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 31 00:52:02 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 628570: <4FGL_J2231.0-4416_daily_bin1632> in cluster <slac> Done

Job <4FGL_J2231.0-4416_daily_bin1632> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Dec 31 00:35:34 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 31 00:35:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 31 00:35:35 2021
Terminated at Fri Dec 31 00:52:05 2021
Results reported at Fri Dec 31 00:52:05 2021

Your job looked like:

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

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

