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


Performing analysis on: 4FGL_J2231.0-4416_daily_bin1092
RA = 337.758, Dec = -44.2791
tmin = 522374401, tmax = 522633601
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='338123', job_status='RUN', time_executed='2021-09-28 13:31:55.964820', time_epoch_executed='1632861115.96' WHERE source_name='4FGL J2231.0-4416' and cadence='daily' and bin_id='1092'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/338123

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/338123/ft1_4FGL_J2231.0-4416_daily_bin1092.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/338123/ft2_4FGL_J2231.0-4416_daily_bin1092.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/338123/ft1_4FGL_J2231.0-4416_daily_bin1092.fits outfile=/scratch/kocevski/338123/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin1092.fits ra=337.758 dec=-44.2791 rad=12.0 tmin=522374401.0 tmax=522633601.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.68
user 3.44
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/338123/ft2_4FGL_J2231.0-4416_daily_bin1092.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/338123/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin1092.fits evtable="EVENTS" outfile="/scratch/kocevski/338123/ft1_filtered_4FGL_J2231.0-4416_daily_bin1092.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/338123/ft1_filtered_4FGL_J2231.0-4416_daily_bin1092.fits" evtable="EVENTS" scfile=/scratch/kocevski/338123/ft2_4FGL_J2231.0-4416_daily_bin1092.fits sctable="SC_DATA" outfile=/scratch/kocevski/338123/ltcube_522374401_522633601_4FGL_J2231.0-4416_daily_bin1092.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/338123/ft2_4FGL_J2231.0-4416_daily_bin1092.fits
.....................!
real 11.65
user 11.29
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/338123/ft1_filtered_4FGL_J2231.0-4416_daily_bin1092.fits evtable="EVENTS" scfile=/scratch/kocevski/338123/ft2_4FGL_J2231.0-4416_daily_bin1092.fits sctable="SC_DATA" expcube=/scratch/kocevski/338123/ltcube_522374401_522633601_4FGL_J2231.0-4416_daily_bin1092.fits outfile=/scratch/kocevski/338123/expmap_522374401_522633601_4FGL_J2231.0-4416_daily_bin1092.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/338123/ltcube_522374401_522633601_4FGL_J2231.0-4416_daily_bin1092.fits
.....................!
real 190.66
user 185.01
sys 5.31

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/338123/ft1_filtered_4FGL_J2231.0-4416_daily_bin1092.fits scfile=/scratch/kocevski/338123/ft2_4FGL_J2231.0-4416_daily_bin1092.fits outfile=/scratch/kocevski/338123/cmap_522374401_522633601_4FGL_J2231.0-4416_daily_bin1092.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.56
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/338123/ft1_filtered_4FGL_J2231.0-4416_daily_bin1092.fits scfile=/scratch/kocevski/338123/ft2_4FGL_J2231.0-4416_daily_bin1092.fits outfile=/scratch/kocevski/338123/cmap_HighResolution_522374401_522633601_4FGL_J2231.0-4416_daily_bin1092.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=337.758 yref=-44.2791 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/338123/ft1_filtered_4FGL_J2231.0-4416_daily_bin1092.fits evtable="EVENTS" scfile=/scratch/kocevski/338123/ft2_4FGL_J2231.0-4416_daily_bin1092.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/338123/Model_4FGL_J2231.0-4416_daily_bin1092.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/338123/ft1_filtered_4FGL_J2231.0-4416_daily_bin1092.fits.....................!
real 42.46
user 40.50
sys 1.39

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21237E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.132       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.1611       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.9205       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    56.430       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.068       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    8.9130       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.0114       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.5250       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.104       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    27.167       1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.785       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.9475       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .14102E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.3472       1.0000         .10000E-03   10000.    
    29 'Prefactor '    47.729       1.0000         .10000E-03   10000.    
    30 'norm      '    .10541E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    .60004       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .78274       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.0766       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=   5028.990     FROM MIGRAD    STATUS=CONVERGED    950 CALLS     4867 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10295E-03    6.8470       -.30201E-06** at limit **
   2  Prefactor     15.136        24.367       -.11830E-05   -.10855E-03
   3  Prefactor     1.1608        3.0724        .40970E-06   -.12217E-03
   4  norm          .10000E-03    2.6671       -.11747E-07** at limit **
   5  Prefactor     4.9178        8.0501        .31712E-05   -.68534E-03
   6  Prefactor     .10000E-03    4.3320       -.13267E-06** at limit **
   7  Prefactor     56.430        34.034        .92232E-06    .20951E-03
   8  Prefactor     .10000E-03    2.4505        .12175E-07** at limit **
   9  Prefactor     14.067        5.4343       -.18282E-06   -.35667E-03
  10  Prefactor     .10000E-03    23.617        .44489E-06** at limit **
  11  norm          8.9104        7.7720       -.70871E-07   -.52307E-04
  12  Prefactor     2.0104        6.3418        .46596E-06   -.13715E-03
  13  Prefactor     5.5252        4.4981       -.27356E-07   -.20399E-04
  14  Prefactor     .10000E-03    29.243       -.27392E-05** at limit **
  15  Prefactor     10.105        7.8468       -.13050E-06   -.35858E-04
  16  Prefactor     .10000E-03    8.6125        .13440E-06** at limit **
  17  Prefactor     .10000E-03    25.395        .28778E-05** at limit **
  18  Prefactor     27.166        44.467        .71661E-06    .71852E-04
  19  Prefactor     15.784        18.012       -.42385E-07    .46266E-04
  20  Prefactor     .10000E-03    49.626        .60293E-06** at limit **
  21  Prefactor     2.9462        7.5098        .22506E-06   -.11639E-03
  22  Prefactor     .10000E-03    12.561       -.14348E-05** at limit **
  23  Prefactor     .10000E-03    16.102        .26353E-05** at limit **
  24  Prefactor     .10000E-03    7.8892       -.82760E-07** at limit **
  25  norm          .10000E-03    4.6273       -.36882E-07** at limit **
  26  norm          .10005E-03    6.5489       -.25496E-05** at limit **
  27  norm          .10000E-03    4.5256       -.77577E-07** at limit **
  28  Prefactor     6.3477        5.9280       -.26412E-06    .11731E-03
  29  Prefactor     47.761        44.096       -.45678E-05   -.45748E-03
  30  norm          .10000E-03    6.0361       -.34926E-06** at limit **
  31  Prefactor     .10000E-03    12.707        .12559E-05** at limit **
  32  norm          .60029        1.2959        .27857E-06    .84180E-03
  33  Normalizat    .78236        .21390        .10288E-05    .30722E-04
  34  Prefactor     1.0771        .18618       -.86959E-06    .15958E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102945
  Prefactor  = 15.1362
  Prefactor  = 1.1608
  norm       = 0.0001
  Prefactor  = 4.91782
  Prefactor  = 0.0001
  Prefactor  = 56.4297
  Prefactor  = 0.0001
  Prefactor  = 14.0674
  Prefactor  = 0.0001
  norm       = 8.91041
  Prefactor  = 2.01038
  Prefactor  = 5.52515
  Prefactor  = 0.000100003
  Prefactor  = 10.1046
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 27.166
  Prefactor  = 15.7835
  Prefactor  = 0.0001
  Prefactor  = 2.9462
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100049
  norm       = 0.0001
  Prefactor  = 6.3477
  Prefactor  = 47.7614
  norm       = 0.000100001
  Prefactor  = 0.000100001
  norm       = 0.600286
  Normalizat = 0.782356
  Prefactor  = 1.07706
 **********
 **   18 **HESSE 
 **********

 FCN=   5028.990     FROM HESSE     STATUS=OK           740 CALLS     5607 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10295E-03    8.8639        .54103E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.136        24.474        .10296E-03   -1.4930    
   3  Prefactor     1.1608        3.0395        .19561E-03   -1.5492    
   4  norm          .10000E-03    2.7016        .11296E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.9178        9.1176        .90660E-03   -1.5264    
   6  Prefactor     .10000E-03    4.3469        .14416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     56.430        34.143        .53401E-04   -1.4204    
   8  Prefactor     .10000E-03    2.4573        .10840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.067        5.4524        .98601E-04   -1.4958    
  10  Prefactor     .10000E-03    23.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.9104        7.7770        .13426E-03   -1.5111    
  12  Prefactor     2.0104        6.3523        .29190E-03   -1.5424    
  13  Prefactor     5.5252        4.5108        .12766E-03   -1.5238    
  14  Prefactor     .10000E-03    29.617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.105        7.8603        .12606E-03   -1.5072    
  16  Prefactor     .10000E-03    8.6204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    25.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     27.166        44.474        .76860E-04   -1.4665    
  19  Prefactor     15.784        17.937        .10081E-03   -1.4913    
  20  Prefactor     .10000E-03    49.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.9462        7.5189        .23656E-03   -1.5365    
  22  Prefactor     .10000E-03    12.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    16.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    7.9086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    4.6308        .14899E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10005E-03    17.578        .31752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    4.5533        .14727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     6.3477        5.8694        .15658E-03   -1.5204    
  29  Prefactor     47.761        46.832        .58041E-04   -1.4325    
  30  norm          .10000E-03    6.0963        .16934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    12.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          .60029        1.2061        .10853E-02   -1.5553    
  33  Normalizat    .78236        .25347        .27917E-03   -1.0073    
  34  Prefactor     1.0771        .22105        .22293E-03   -.90203    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.85169e-09
Minuit parameter uncertainties:
  1  0.0102204
  2  24.4906
  3  3.03992
  4  1.95497e-06
  5  9.12014
  6  1.26368e-05
  7  34.1546
  8  2.59777e-06
  9  5.45255
  10  8.78178e-05
  11  7.77793
  12  6.35445
  13  4.51112
  14  0.00064255
  15  7.86107
  16  1.23191e-05
  17  0.000588122
  18  44.5285
  19  17.9435
  20  0.000169338
  21  7.52131
  22  0.000219475
  23  0.000454376
  24  1.19592e-05
  25  1.84359e-06
  26  0.00186531
  27  4.04304e-05
  28  5.86989
  29  46.8685
  30  0.000113838
  31  0.000214274
  32  1.20619
  33  0.253851
  34  0.221242
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  1.077e+00  2.212e-01  0.000e+00  1.000e+01 ( 1.000e+00)
586        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
587        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  7.824e-01  2.539e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.77
Ra Dec: 337.758 -44.279
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 5.07e-08 +/- 4.14e-08
Energy Flux (Fixed Index): 1.61e-05 +/- 1.31e-05

TS (Fixed Index): 3.77
Ra Dec: 337.758 -44.279
Photon Flux Upper Limit: 1.43e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.11e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/338123/likelihoodResults_522374401_522633601_4FGL_J2231.0-4416_daily_bin1092.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5028.70288694
delta logL = 0.286838828638

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5028.70193547
delta logL = 0.287790299848

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5028.702     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      263 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9914        44.433        .50460E-02    .23763E-03
   2  Index         3.0707        3.5552        .16103        .93322E-04
   3  Normalizat    .72507        .77534E-01    .65315E-01    .18708E-04
   4  Prefactor     1.1101        .60194E-01    .37232E-01   -.31215E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.99137
  Index      = 3.07069
  Normalizat = 0.725073
  Prefactor  = 1.11006
 **********
 **   18 **HESSE 
 **********

 FCN=   5028.702     FROM HESSE     STATUS=OK            33 CALLS      296 TOTAL
                     EDM=   .98E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9914        4.7185        .84475E-04   -1.5308    
   2  Index         3.0707        .95216        .55437E-02   -.39614    
   3  Normalizat    .72507        .24411        .28897E-03   -1.0291    
   4  Prefactor     1.1101        .21753        .21998E-03   -.89146    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.80549e-12
Minuit parameter uncertainties:
  1  4.71895
  2  0.95905
  3  0.244481
  4  0.217705
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/338123': 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) = 5028.70193211
delta logL = 0.287793659654

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  1.110e+00  2.177e-01  0.000e+00  1.000e+01 ( 1.000e+00)
586        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
587        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  7.251e-01  2.445e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.46
Ra Dec: 337.758 -44.279
Photon Index (Free Index): 3.07 +/- 0.96
Photon Flux (Free Index): 9.21e-08 +/- 7.34e-08
Energy Flux (Free Index): 1.78e-05 +/- 1.15e-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/338123/cmap_HighResolution_522374401_522633601_4FGL_J2231.0-4416_daily_bin1092.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.11e-02', comment='SUCCESS', photon_flux='5.07e-08', energy_flux2='1.78e-05', photon_flux_error='4.14e-08', dlogl='2.88e-01', energy_flux='1.61e-05', photon_flux2='9.21e-08', job_status='DONE', time_completed='2021-09-28 13:45:56.611046', photon_index_error2='0.96', photon_index2='3.07', ts='3.77', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='1.43e-07', energy_flux_error2='1.15e-05', EG='0.78', time_epoch_completed='1632861956.61', return_code='0', job_id='338123', GAL2='1.11', EG2='0.73', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='7.34e-08', ts2='4.46', photon_index='2.43' WHERE bin_id='1092' AND source_name='4FGL J2231.0-4416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 13:45:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0292>
Subject: Job 338123: <4FGL_J2231.0-4416_daily_bin1092> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2231.0-4416_daily_bin1092 337.758 -44.2791 522374401 522633601 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 :                                   838.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             336.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            924 sec.

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

