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


Performing analysis on: 4FGL_J2231.0-4416_daily_bin1276
RA = 337.758, Dec = -44.2791
tmin = 570067201, tmax = 570326401
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='339469', job_status='RUN', time_executed='2021-09-28 13:35:44.321620', time_epoch_executed='1632861344.32' WHERE source_name='4FGL J2231.0-4416' and cadence='daily' and bin_id='1276'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/339469

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/339469/ft1_4FGL_J2231.0-4416_daily_bin1276.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/339469/ft2_4FGL_J2231.0-4416_daily_bin1276.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/339469/ft1_4FGL_J2231.0-4416_daily_bin1276.fits outfile=/scratch/kocevski/339469/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin1276.fits ra=337.758 dec=-44.2791 rad=12.0 tmin=570067201.0 tmax=570326401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.58
user 3.35
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/339469/ft2_4FGL_J2231.0-4416_daily_bin1276.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/339469/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin1276.fits evtable="EVENTS" outfile="/scratch/kocevski/339469/ft1_filtered_4FGL_J2231.0-4416_daily_bin1276.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/339469/ft1_filtered_4FGL_J2231.0-4416_daily_bin1276.fits" evtable="EVENTS" scfile=/scratch/kocevski/339469/ft2_4FGL_J2231.0-4416_daily_bin1276.fits sctable="SC_DATA" outfile=/scratch/kocevski/339469/ltcube_570067201_570326401_4FGL_J2231.0-4416_daily_bin1276.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/339469/ft2_4FGL_J2231.0-4416_daily_bin1276.fits
.....................!
real 11.77
user 11.35
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/339469/ft1_filtered_4FGL_J2231.0-4416_daily_bin1276.fits evtable="EVENTS" scfile=/scratch/kocevski/339469/ft2_4FGL_J2231.0-4416_daily_bin1276.fits sctable="SC_DATA" expcube=/scratch/kocevski/339469/ltcube_570067201_570326401_4FGL_J2231.0-4416_daily_bin1276.fits outfile=/scratch/kocevski/339469/expmap_570067201_570326401_4FGL_J2231.0-4416_daily_bin1276.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/339469/ltcube_570067201_570326401_4FGL_J2231.0-4416_daily_bin1276.fits
.....................!
real 190.11
user 185.03
sys 4.70

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/339469/ft1_filtered_4FGL_J2231.0-4416_daily_bin1276.fits scfile=/scratch/kocevski/339469/ft2_4FGL_J2231.0-4416_daily_bin1276.fits outfile=/scratch/kocevski/339469/cmap_570067201_570326401_4FGL_J2231.0-4416_daily_bin1276.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/339469/ft1_filtered_4FGL_J2231.0-4416_daily_bin1276.fits scfile=/scratch/kocevski/339469/ft2_4FGL_J2231.0-4416_daily_bin1276.fits outfile=/scratch/kocevski/339469/cmap_HighResolution_570067201_570326401_4FGL_J2231.0-4416_daily_bin1276.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.56
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/339469/ft1_filtered_4FGL_J2231.0-4416_daily_bin1276.fits evtable="EVENTS" scfile=/scratch/kocevski/339469/ft2_4FGL_J2231.0-4416_daily_bin1276.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/339469/Model_4FGL_J2231.0-4416_daily_bin1276.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/339469/ft1_filtered_4FGL_J2231.0-4416_daily_bin1276.fits.....................!
real 32.27
user 30.98
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.7463       1.0000         .10000E-03   10000.    
     4 'norm      '    9.2767       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10857E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.3625       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.9456       1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.951       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.186       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    28.977       1.0000         .10000E-03   10000.    
    23 'Prefactor '    87.337       1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.9270       1.0000         .10000E-03   10000.    
    25 'norm      '    27.250       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    3.8985       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .24194E-01   1.0000         .10000E-03   10000.    
    30 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .24725E-01   1.0000         .10000E-03   10000.    
    32 'norm      '    .71965       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .90605       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .84194       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=   3640.102     FROM MIGRAD    STATUS=CONVERGED    977 CALLS     4940 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.9611        .90050E-07** at limit **
   2  Prefactor     .10000E-03    21.349       -.87671E-06** at limit **
   3  Prefactor     1.7452        5.0753        .55092E-05   -.37531E-04
   4  norm          9.2768        5.6529        .22782E-06   -.29577E-04
   5  Prefactor     .10000E-03    17.328        .91652E-06** at limit **
   6  Prefactor     .10000E-03    10.485       -.44763E-07** at limit **
   7  Prefactor     .10000E-03    67.452        .24955E-05** at limit **
   8  Prefactor     .10000E-03    11.110        .30855E-06** at limit **
   9  Prefactor     2.3619        4.8899        .32749E-05   -.57859E-04
  10  Prefactor     .10000E-03    32.677       -.91038E-07** at limit **
  11  norm          .10000E-03    2.7755        .99648E-08** at limit **
  12  Prefactor     .10000E-03    5.4841        .96615E-07** at limit **
  13  Prefactor     .10000E-03    2.2367        .10777E-06** at limit **
  14  Prefactor     .10000E-03    16.602       -.70187E-06** at limit **
  15  Prefactor     6.9477        7.1194        .14357E-06   -.13806E-03
  16  Prefactor     23.952        21.775        .21081E-06   -.12861E-04
  17  Prefactor     .10000E-03    7.4578       -.12231E-06** at limit **
  18  Prefactor     .10000E-03    24.936        .49095E-06** at limit **
  19  Prefactor     18.189        13.650        .13313E-06   -.94139E-04
  20  Prefactor     .10000E-03    66.254       -.22433E-05** at limit **
  21  Prefactor     .10000E-03    6.7166        .63796E-07** at limit **
  22  Prefactor     28.957        47.176        .48509E-06   -.11746E-04
  23  Prefactor     87.249        79.990        .37230E-05   -.90693E-04
  24  Prefactor     9.9335        15.028        .54193E-06   -.62952E-04
  25  norm          27.250        17.213        .10565E-06   -.16784E-04
  26  norm          .10000E-03    2.6608       -.22021E-07** at limit **
  27  norm          3.8985        3.9608        .18170E-07   -.65452E-04
  28  Prefactor     .10000E-03    7.5084        .54293E-07** at limit **
  29  Prefactor     .10012E-03    27.443        .30881E-05** at limit **
  30  norm          .10000E-03    1.6766        .10100E-07** at limit **
  31  Prefactor     .10010E-03    15.310        .17212E-06** at limit **
  32  norm          .72005        1.0682        .29640E-07   -.18955E-03
  33  Normalizat    .90569        .20904       -.27756E-06   -.31423E-03
  34  Prefactor     .84244        .19462       -.30347E-05   -.35980E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.74518
  norm       = 9.27684
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.36185
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.9477
  Prefactor  = 23.9516
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.1893
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 28.957
  Prefactor  = 87.2494
  Prefactor  = 9.93349
  norm       = 27.2501
  norm       = 0.0001
  norm       = 3.89848
  Prefactor  = 0.0001
  Prefactor  = 0.000100121
  norm       = 0.0001
  Prefactor  = 0.0001001
  norm       = 0.720046
  Normalizat = 0.905687
  Prefactor  = 0.842437
 **********
 **   18 **HESSE 
 **********

 FCN=   3640.102     FROM HESSE     STATUS=OK           734 CALLS     5674 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.0019        .13124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    21.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.7452        5.0712        .11098E-02   -1.5444    
   4  norm          9.2768        5.6556        .10825E-03   -1.5099    
   5  Prefactor     .10000E-03    17.751        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    67.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.3619        4.8784        .91188E-03   -1.5401    
  10  Prefactor     .10000E-03    32.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.7759        .98169E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.5199        .13796E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.2617        .88077E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.9477        7.1219        .15223E-03   -1.5181    
  16  Prefactor     23.952        21.800        .81849E-04   -1.4729    
  17  Prefactor     .10000E-03    7.4618        .16093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    24.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     18.189        13.642        .93918E-04   -1.4855    
  20  Prefactor     .10000E-03    66.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.8958        .30533E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     28.957        47.164        .74426E-04   -1.4631    
  23  Prefactor     87.249        80.335        .21495E-03   -1.3837    
  24  Prefactor     9.9335        15.030        .12718E-03   -1.5078    
  25  norm          27.250        17.213        .76744E-04   -1.4663    
  26  norm          .10000E-03    2.6612        .96112E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          3.8985        3.9563        .11779E-03   -1.5313    
  28  Prefactor     .10000E-03    7.5847        .16073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10012E-03    269.89        .59941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    1.6806        .76222E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10010E-03    26.240        .65240E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          .72005        1.0687        .48548E-04   -1.5538    
  33  Normalizat    .90569        .24686        .22944E-03   -.96261    
  34  Prefactor     .84244        .22880        .22646E-03   -.98183    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1164e-09
Minuit parameter uncertainties:
  1  1.08088e-05
  2  0.000124693
  3  5.07244
  4  5.65588
  5  0.000157859
  6  1.72773e-05
  7  0.000362293
  8  2.1176e-05
  9  4.87921
  10  2.23014e-05
  11  1.17909e-07
  12  1.55185e-05
  13  1.038e-05
  14  7.42431e-05
  15  7.12278
  16  21.8071
  17  3.2665e-06
  18  0.000112954
  19  13.644
  20  0.000370522
  21  1.20179e-05
  22  47.2247
  23  80.4354
  24  15.0355
  25  17.2162
  26  2.50218e-06
  27  3.95652
  28  3.49423e-06
  29  0.0114635
  30  5.94012e-07
  31  0.00324426
  32  1.06871
  33  0.247165
  34  0.229056
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  8.424e-01  2.291e-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:  9.057e-01  2.472e-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.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.07e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/339469/likelihoodResults_570067201_570326401_4FGL_J2231.0-4416_daily_bin1276.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) = 3640.10361281
delta logL = -0.00210167757314

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3640.10151121
delta logL = -8.39186213852e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4293       1.0000          .0000       10.000    
     3 'Normalizat'    .90570       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84247       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=   3640.102     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      232 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10017E-03    210.41        .88096E-03** at limit **
   2  Index         2.4687        5.7467        .50000       -.87799E-05
   3  Normalizat    .90569        .54302E-01    .22944E-03   -.48187E-04
   4  Prefactor     .84244        .52108E-01    .22646E-03   -.17470E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100169
  Index      = 2.46869
  Normalizat = 0.905686
  Prefactor  = 0.842439
 **********
 **   18 **HESSE 
 **********

 FCN=   3640.102     FROM HESSE     STATUS=OK            29 CALLS      261 TOTAL
                     EDM=   .83E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10017E-03    5.7568        .17619E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4687        8.0147        .50000       -.53084    
   3  Normalizat    .90569        .23431        .91776E-05   -.96261    
   4  Prefactor     .84244        .22504        .90583E-05   -.98182    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.29701e-08
Minuit parameter uncertainties:
  1  0.00197568
  2  211.11
  3  0.234578
  4  0.225289
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/339469': 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) = 3640.10151107
delta logL = 5.98743099545e-08

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  8.424e-01  2.253e-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:  9.057e-01  2.346e-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/339469/cmap_HighResolution_570067201_570326401_4FGL_J2231.0-4416_daily_bin1276.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.07e-03', job_status='DONE', photon_flux_upper_limit='7.85e-08', time_completed='2021-09-28 13:47:29.377286', job_id='339469', GAL2='0.84', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1632862049.38', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='5.99e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1276' AND source_name='4FGL J2231.0-4416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 13:47:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 339469: <4FGL_J2231.0-4416_daily_bin1276> in cluster <slac> Done

Job <4FGL_J2231.0-4416_daily_bin1276> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Tue Sep 28 13:35:28 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 13:35:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 13:35:30 2021
Terminated at Tue Sep 28 13:47:30 2021
Results reported at Tue Sep 28 13:47:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2231.0-4416_daily_bin1276 337.758 -44.2791 570067201 570326401 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 :                                   702.15 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             319.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   719 sec.
    Turnaround time :                            722 sec.

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

