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


Performing analysis on: 4FGL_J2231.0-4416_daily_bin1639
RA = 337.758, Dec = -44.2791
tmin = 664156801, tmax = 664416001
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='201001', job_status='RUN', time_executed='2022-01-21 00:36:21.438811', time_epoch_executed='1642754181.44' WHERE source_name='4FGL J2231.0-4416' and cadence='daily' and bin_id='1639'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/201001

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/201001/ft1_4FGL_J2231.0-4416_daily_bin1639.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/201001/ft2_4FGL_J2231.0-4416_daily_bin1639.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/201001/ft1_4FGL_J2231.0-4416_daily_bin1639.fits outfile=/scratch/kocevski/201001/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin1639.fits ra=337.758 dec=-44.2791 rad=12.0 tmin=664156801.0 tmax=664416001.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 4.02
user 3.79
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/201001/ft1_filtered_4FGL_J2231.0-4416_daily_bin1639.fits" evtable="EVENTS" scfile=/scratch/kocevski/201001/ft2_4FGL_J2231.0-4416_daily_bin1639.fits sctable="SC_DATA" outfile=/scratch/kocevski/201001/ltcube_664156801_664416001_4FGL_J2231.0-4416_daily_bin1639.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/201001/ft2_4FGL_J2231.0-4416_daily_bin1639.fits
.....................!
real 11.93
user 11.55
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/201001/ft1_filtered_4FGL_J2231.0-4416_daily_bin1639.fits evtable="EVENTS" scfile=/scratch/kocevski/201001/ft2_4FGL_J2231.0-4416_daily_bin1639.fits sctable="SC_DATA" expcube=/scratch/kocevski/201001/ltcube_664156801_664416001_4FGL_J2231.0-4416_daily_bin1639.fits outfile=/scratch/kocevski/201001/expmap_664156801_664416001_4FGL_J2231.0-4416_daily_bin1639.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/201001/ltcube_664156801_664416001_4FGL_J2231.0-4416_daily_bin1639.fits
.....................!
real 193.52
user 187.68
sys 5.32

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/201001/ft1_filtered_4FGL_J2231.0-4416_daily_bin1639.fits scfile=/scratch/kocevski/201001/ft2_4FGL_J2231.0-4416_daily_bin1639.fits outfile=/scratch/kocevski/201001/cmap_664156801_664416001_4FGL_J2231.0-4416_daily_bin1639.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.38
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/201001/ft1_filtered_4FGL_J2231.0-4416_daily_bin1639.fits evtable="EVENTS" scfile=/scratch/kocevski/201001/ft2_4FGL_J2231.0-4416_daily_bin1639.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/201001/Model_4FGL_J2231.0-4416_daily_bin1639.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/201001/ft1_filtered_4FGL_J2231.0-4416_daily_bin1639.fits.....................!
real 39.06
user 37.81
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    38.030       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.9019       1.0000         .10000E-03   10000.    
     4 'norm      '    8.8887       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.505       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.5223       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    28.098       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.1110       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10534E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .32213E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.0052       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.716       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .18841E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.7432       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.3281       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    33.378       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.8007       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .84886       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    1.6329       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.4749       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .54843       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=   4599.153     FROM MIGRAD    STATUS=CONVERGED    920 CALLS     4787 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.1828       -.40928E-07** at limit **
   2  Prefactor     38.016        38.682       -.31947E-05   -.23666E-03
   3  Prefactor     7.9004        5.8989        .11343E-05   -.13356E-02
   4  norm          8.8887        6.1727        .40046E-06   -.29034E-03
   5  Prefactor     10.505        10.341       -.34882E-06   -.11824E-04
   6  Prefactor     5.5220        10.374        .27936E-05   -.69902E-03
   7  Prefactor     .10000E-03    49.298       -.39407E-05** at limit **
   8  Prefactor     28.099        13.960        .43443E-07   -.10570E-03
   9  Prefactor     6.1108        5.4026        .41071E-07   -.57299E-04
  10  Prefactor     .10003E-03    66.431        .10341E-04** at limit **
  11  norm          .10000E-03    3.8266        .18971E-07** at limit **
  12  Prefactor     .10000E-03    7.4918       -.17788E-06** at limit **
  13  Prefactor     .10000E-03    2.8934       -.45739E-07** at limit **
  14  Prefactor     .10000E-03    18.036       -.11993E-05** at limit **
  15  Prefactor     9.0077        9.1506        .32897E-07    .64018E-04
  16  Prefactor     .10000E-03    7.8067        .34493E-06** at limit **
  17  Prefactor     12.715        22.952        .13225E-06   -.31915E-05
  18  Prefactor     .10001E-03    113.28       -.70711E-05** at limit **
  19  Prefactor     1.7471        20.789        .91799E-06   -.23329E-04
  20  Prefactor     .10001E-03    42.127       -.50012E-05** at limit **
  21  Prefactor     2.3299        11.941        .78828E-06   -.59264E-04
  22  Prefactor     .10000E-03    19.466       -.10714E-06** at limit **
  23  Prefactor     33.369        57.737       -.32390E-05   -.11011E-03
  24  Prefactor     .10000E-03    5.4271        .18433E-08** at limit **
  25  norm          .10000E-03    9.5773        .30061E-07** at limit **
  26  norm          .10000E-03    3.3748       -.55766E-07** at limit **
  27  norm          .10000E-03    1.9859       -.23438E-07** at limit **
  28  Prefactor     4.8004        5.8333       -.19824E-07   -.54517E-04
  29  Prefactor     .10000E-03    32.700        .38801E-05** at limit **
  30  norm          .84859        3.2945        .63283E-06   -.26718E-03
  31  Prefactor     .10000E-03    16.432        .12886E-05** at limit **
  32  norm          1.6328        1.5368        .47199E-07   -.12236E-03
  33  Normalizat    1.4751        .22697       -.18217E-06    .31841E-04
  34  Prefactor     .54843        .19084       -.88921E-06    .19232E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 38.0163
  Prefactor  = 7.90044
  norm       = 8.88872
  Prefactor  = 10.5053
  Prefactor  = 5.52197
  Prefactor  = 0.000100004
  Prefactor  = 28.0992
  Prefactor  = 6.11078
  Prefactor  = 0.000100028
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.00771
  Prefactor  = 0.0001
  Prefactor  = 12.7149
  Prefactor  = 0.000100011
  Prefactor  = 1.7471
  Prefactor  = 0.000100006
  Prefactor  = 2.32986
  Prefactor  = 0.0001
  Prefactor  = 33.3688
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.8004
  Prefactor  = 0.000100004
  norm       = 0.848593
  Prefactor  = 0.0001
  norm       = 1.63277
  Normalizat = 1.47506
  Prefactor  = 0.548427
 **********
 **   18 **HESSE 
 **********

 FCN=   4599.153     FROM HESSE     STATUS=OK           728 CALLS     5515 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.2198        .16464E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     38.016        39.042        .64992E-04   -1.4474    
   3  Prefactor     7.9004        6.3158        .71320E-03   -1.5146    
   4  norm          8.8887        6.1658        .63985E-03   -1.5112    
   5  Prefactor     10.505        10.354        .12362E-03   -1.5060    
   6  Prefactor     5.5220        11.208        .85486E-03   -1.5238    
   7  Prefactor     .10000E-03    49.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     28.099        13.968        .37789E-03   -1.4647    
   9  Prefactor     6.1108        5.3974        .13938E-03   -1.5214    
  10  Prefactor     .10003E-03    69.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.8480        .12956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.5665        .18127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.589        .21821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    18.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.0077        9.1630        .13356E-03   -1.5108    
  16  Prefactor     .10000E-03    7.8124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.715        22.971        .11233E-03   -1.4995    
  18  Prefactor     .10001E-03    115.59        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.7471        20.976        .31770E-03   -1.5444    
  20  Prefactor     .10001E-03    42.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.3299        12.006        .26879E-03   -1.5403    
  22  Prefactor     .10000E-03    19.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     33.369        58.435        .69360E-04   -1.4552    
  24  Prefactor     .10000E-03    5.4293        .15429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    9.6047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    3.3806        .12164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1.9862        .93302E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     4.8004        5.8312        .17254E-03   -1.5270    
  29  Prefactor     .10000E-03    33.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .84859        3.2460        .23702E-03   -1.5524    
  31  Prefactor     .10000E-03    16.553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          1.6328        1.5225        .77480E-04   -1.5452    
  33  Normalizat    1.4751        .26294        .22657E-03   -.78481    
  34  Prefactor     .54843        .21922        .30775E-03   -1.0980    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.52788e-09
Minuit parameter uncertainties:
  1  8.8474e-06
  2  39.0679
  3  6.31633
  4  6.1662
  5  10.3554
  6  11.212
  7  0.000887071
  8  13.9697
  9  5.39778
  10  0.00279044
  11  7.1262e-07
  12  1.9792e-05
  13  0.000142903
  14  0.000164226
  15  9.16443
  16  3.13794e-05
  17  22.987
  18  0.0023078
  19  12.1122
  20  0.00105636
  21  10.5808
  22  1.53347e-05
  23  58.5352
  24  5.23738e-07
  25  3.84752e-08
  26  3.3283e-06
  27  1.18664e-06
  28  5.83191
  29  0.000701252
  30  3.24668
  31  0.000161568
  32  1.52253
  33  0.263181
  34  0.21956
Done.

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

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  1.000e-04  1.429e-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:  5.484e-01  2.196e-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.475e+00  2.632e-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: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/201001/likelihoodResults_664156801_664416001_4FGL_J2231.0-4416_daily_bin1639.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) = 4599.1535013
delta logL = -0.000410760370869

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4599.15309337
delta logL = -2.83308872895e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10658E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5469       1.0000          .0000       10.000    
     3 'Normalizat'    1.4757       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .54785       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4598.441     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      284 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17099        .67183       -.24430E-06    .26306E-03
   2  Index         4.8858        2.1308        .21731E-04    .19889E-04
   3  Normalizat    1.3733        .25555       -.60764E-05    .46077E-04
   4  Prefactor     .60360        .21704        .50038E-05   -.11568E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.170992
  Index      = 4.88577
  Normalizat = 1.37335
  Prefactor  = 0.603596
 **********
 **   18 **HESSE 
 **********

 FCN=   4598.441     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      323 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .17099        2.5617        .55886E-02   -1.5625    
   2  Index         4.8858        3.1017        .15103       -.22849E-01
   3  Normalizat    1.3733        .49103E-01    .52762E-01   -.81403    
   4  Prefactor     .60360        .42984E-01    .66533E-01   -1.0744    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.26289e-10
Minuit parameter uncertainties:
  1  1.32337
  2  3.34603
  3  0.0491051
  4  0.0429863
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/201001': 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) = 4598.44069748
delta logL = 0.71239305206

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  1.710e-01  1.323e+00  1.000e-04  1.000e+04 ( 1.000e-12)
306        Index:  4.886e+00  3.346e+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:  6.036e-01  4.299e-02  0.000e+00  1.000e+01 ( 1.000e+00)
586        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
587        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  1.373e+00  4.911e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.52
Ra Dec: 337.758 -44.279
Photon Index (Free Index): 4.89 +/- 3.35
Photon Flux (Free Index): 8.09e-08 +/- 1.53e-07
Energy Flux (Free Index): 1.09e-05 +/- 2.38e-05

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/201001/cmap_HighResolution_664156801_664416001_4FGL_J2231.0-4416_daily_bin1639.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.21e-03', comment='SUCCESS', energy_flux2='1.09e-05', dlogl='7.12e-01', photon_flux2='8.09e-08', job_status='DONE', time_completed='2022-01-21 00:49:35.296424', photon_index_error2='3.35', photon_index2='4.89', ts='-0.00', fit_tolerance='1e-08', GAL='0.55', photon_index_error='0.00', photon_flux_upper_limit='1.06e-07', energy_flux_error2='2.38e-05', EG='1.48', time_epoch_completed='1642754975.3', return_code='0', job_id='201001', GAL2='0.60', EG2='1.37', return_code2='102', photon_flux_error2='1.53e-07', ts2='1.52', photon_index='2.43' WHERE bin_id='1639' AND source_name='4FGL J2231.0-4416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jan 21 00:49:35 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 201001: <4FGL_J2231.0-4416_daily_bin1639> in cluster <slac> Done

Job <4FGL_J2231.0-4416_daily_bin1639> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Jan 21 00:35:51 2022
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jan 21 00:35:53 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jan 21 00:35:53 2022
Terminated at Fri Jan 21 00:49:36 2022
Results reported at Fri Jan 21 00:49:36 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2231.0-4416_daily_bin1639 337.758 -44.2791 664156801 664416001 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.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             326.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            825 sec.

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

