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


Performing analysis on: 4FGL_J2231.0-4416_daily_bin1038
RA = 337.758, Dec = -44.2791
tmin = 508377601, tmax = 508636801
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='338043', job_status='RUN', time_executed='2021-09-28 13:31:27.181793', time_epoch_executed='1632861087.18' WHERE source_name='4FGL J2231.0-4416' and cadence='daily' and bin_id='1038'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/338043

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/338043/ft1_4FGL_J2231.0-4416_daily_bin1038.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/338043/ft2_4FGL_J2231.0-4416_daily_bin1038.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/338043/ft1_4FGL_J2231.0-4416_daily_bin1038.fits outfile=/scratch/kocevski/338043/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin1038.fits ra=337.758 dec=-44.2791 rad=12.0 tmin=508377601.0 tmax=508636801.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.61
user 3.40
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/338043/ft2_4FGL_J2231.0-4416_daily_bin1038.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/338043/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin1038.fits evtable="EVENTS" outfile="/scratch/kocevski/338043/ft1_filtered_4FGL_J2231.0-4416_daily_bin1038.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/338043/ft1_filtered_4FGL_J2231.0-4416_daily_bin1038.fits" evtable="EVENTS" scfile=/scratch/kocevski/338043/ft2_4FGL_J2231.0-4416_daily_bin1038.fits sctable="SC_DATA" outfile=/scratch/kocevski/338043/ltcube_508377601_508636801_4FGL_J2231.0-4416_daily_bin1038.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/338043/ft2_4FGL_J2231.0-4416_daily_bin1038.fits
.....................!
real 11.71
user 11.36
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/338043/ft1_filtered_4FGL_J2231.0-4416_daily_bin1038.fits evtable="EVENTS" scfile=/scratch/kocevski/338043/ft2_4FGL_J2231.0-4416_daily_bin1038.fits sctable="SC_DATA" expcube=/scratch/kocevski/338043/ltcube_508377601_508636801_4FGL_J2231.0-4416_daily_bin1038.fits outfile=/scratch/kocevski/338043/expmap_508377601_508636801_4FGL_J2231.0-4416_daily_bin1038.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/338043/ltcube_508377601_508636801_4FGL_J2231.0-4416_daily_bin1038.fits
.....................!
real 189.53
user 185.07
sys 4.14

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/338043/ft1_filtered_4FGL_J2231.0-4416_daily_bin1038.fits scfile=/scratch/kocevski/338043/ft2_4FGL_J2231.0-4416_daily_bin1038.fits outfile=/scratch/kocevski/338043/cmap_508377601_508636801_4FGL_J2231.0-4416_daily_bin1038.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.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/338043/ft1_filtered_4FGL_J2231.0-4416_daily_bin1038.fits scfile=/scratch/kocevski/338043/ft2_4FGL_J2231.0-4416_daily_bin1038.fits outfile=/scratch/kocevski/338043/cmap_HighResolution_508377601_508636801_4FGL_J2231.0-4416_daily_bin1038.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    12.885       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.7672       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11256E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10461E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.0545       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8362       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.592       1.0000         .10000E-03   10000.    
    16 'Prefactor '    42.411       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    24.442       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    3.4452       1.0000         .10000E-03   10000.    
    27 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    15.487       1.0000         .10000E-03   10000.    
    29 'Prefactor '    9.3545       1.0000         .10000E-03   10000.    
    30 'norm      '    .10762E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .98116       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.4044       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=   5946.203     FROM MIGRAD    STATUS=CONVERGED    956 CALLS     4811 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.0056        .10805E-07** at limit **
   2  Prefactor     .10000E-03    23.075        .49954E-05** at limit **
   3  Prefactor     .10000E-03    2.3452        .26623E-07** at limit **
   4  norm          12.885        5.5653       -.44271E-07   -.30919E-04
   5  Prefactor     .10000E-03    7.3162       -.14663E-07** at limit **
   6  Prefactor     6.7665        9.1932       -.18741E-06   -.95655E-04
   7  Prefactor     .10000E-03    67.827        .59006E-06** at limit **
   8  Prefactor     .10000E-03    4.5136        .11268E-06** at limit **
   9  Prefactor     .10000E-03    1.1287        .23063E-07** at limit **
  10  Prefactor     2.7022        576.10       -.16941E-04   -.19793E-05
  11  norm          .10000E-03    2.9163        .12298E-07** at limit **
  12  Prefactor     .10000E-03    5.2834        .53522E-07** at limit **
  13  Prefactor     2.8359        3.6050       -.49819E-08   -.35340E-03
  14  Prefactor     .10000E-03    23.677       -.13330E-05** at limit **
  15  Prefactor     14.593        7.4715       -.32265E-06   -.14616E-02
  16  Prefactor     42.405        32.665       -.12301E-05   -.21402E-04
  17  Prefactor     .10000E-03    11.526        .35225E-05** at limit **
  18  Prefactor     .10000E-03    23.958       -.46877E-05** at limit **
  19  Prefactor     .10000E-03    3.9902        .71108E-07** at limit **
  20  Prefactor     24.453        76.958       -.86273E-05    .29293E-05
  21  Prefactor     .10000E-03    7.8207        .10945E-06** at limit **
  22  Prefactor     .10000E-03    13.548        .26278E-05** at limit **
  23  Prefactor     .10000E-03    32.766        .47668E-05** at limit **
  24  Prefactor     .10000E-03    10.444       -.10703E-05** at limit **
  25  norm          .10000E-03    34.854       -.38478E-05** at limit **
  26  norm          3.4453        4.1841        .30893E-06    .82522E-04
  27  norm          .10000E-03    1.8824       -.92956E-07** at limit **
  28  Prefactor     15.488        7.8711       -.53562E-08    .12977E-03
  29  Prefactor     9.3412        36.891        .31588E-04    .12102E-04
  30  norm          .10000E-03    3.4622       -.84449E-06** at limit **
  31  Prefactor     .10000E-03    12.633       -.50462E-05** at limit **
  32  norm          .10000E-03    .36236        .22014E-08** at limit **
  33  Normalizat    .98128        .21362       -.23179E-05    .10931E-03
  34  Prefactor     1.4043        .19610        .10945E-05   -.76020E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.8849
  Prefactor  = 0.0001
  Prefactor  = 6.76646
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.70217
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.83586
  Prefactor  = 0.0001
  Prefactor  = 14.593
  Prefactor  = 42.4054
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.453
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.4453
  norm       = 0.0001
  Prefactor  = 15.4882
  Prefactor  = 9.34116
  norm       = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.981278
  Prefactor  = 1.40431
 **********
 **   18 **HESSE 
 **********

 FCN=   5946.203     FROM HESSE     STATUS=OK           720 CALLS     5531 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.0127        .13055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    23.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.3766        .11529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          12.885        5.5688        .11159E-03   -1.4990    
   5  Prefactor     .10000E-03    7.3669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.7665        9.1894        .15424E-03   -1.5188    
   7  Prefactor     .10000E-03    68.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.5299        .15971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.1372        .79995E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.7022        576.57        .23213E-03   -1.5379    
  11  norm          .10000E-03    2.9195        .12861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.3338        .17306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.8359        3.5961        .15822E-03   -1.5371    
  14  Prefactor     .10000E-03    23.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.593        7.5627        .52426E-03   -1.4944    
  16  Prefactor     42.405        32.741        .61556E-04   -1.4405    
  17  Prefactor     .10000E-03    11.555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    24.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.9991        .15041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     24.453        76.889        .81025E-04   -1.4719    
  21  Prefactor     .10000E-03    7.9294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    13.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    32.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    10.477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    35.835        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          3.4453        4.1829        .16965E-03   -1.5337    
  27  norm          .10000E-03    1.8834        .10333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     15.488        7.8751        .10177E-03   -1.4921    
  29  Prefactor     9.3412        36.574        .13103E-03   -1.5097    
  30  norm          .10000E-03    3.5428        .14069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    12.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          .10000E-03    .36416        .45312E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .98128        .25956        .29201E-03   -.93660    
  34  Prefactor     1.4043        .23934        .23642E-03   -.80256    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76012e-09
Minuit parameter uncertainties:
  1  1.63546e-06
  2  1.25601e-06
  3  3.90855e-06
  4  5.56905
  5  1.07199e-05
  6  9.19134
  7  0.000170971
  8  2.72262e-05
  9  2.04536e-06
  10  79.7314
  11  2.15725e-06
  12  1.12063e-05
  13  3.59638
  14  6.36546e-06
  15  7.56322
  16  32.7544
  17  6.38168e-06
  18  0.000105241
  19  1.26888e-05
  20  77.2033
  21  1.42644e-07
  22  7.29909e-06
  23  1.74765e-06
  24  1.13866e-05
  25  3.33376e-05
  26  4.18329
  27  1.29263e-05
  28  7.87565
  29  36.6616
  30  0.000158306
  31  5.51463e-06
  32  1.81354e-07
  33  0.259895
  34  0.239532
Done.

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

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  2.836e+00  3.596e+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.404e+00  2.395e-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.813e-01  2.599e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.95
Ra Dec: 337.758 -44.279
Photon Flux Upper Limit: 1.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/338043/likelihoodResults_508377601_508636801_4FGL_J2231.0-4416_daily_bin1038.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) = 5946.15035027
delta logL = 0.0531100554736

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5946.12645189
delta logL = 0.0770084353107

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9994       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9184       1.0000          .0000       10.000    
     3 'Normalizat'    .96429       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4155       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=   5946.126     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      214 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9933        53.779        .73226E-02    .13703E-03
   2  Index         2.9214        6.4607        .22301        .20663E-04
   3  Normalizat    .96434        .57597E-01    .66538E-01   -.76175E-04
   4  Prefactor     1.4153        .50370E-01    .53298E-01   -.47774E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.99326
  Index      = 2.92137
  Normalizat = 0.964339
  Prefactor  = 1.41533
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9933        4.3832        .12045E-03   -1.5426    
   2  Index         2.9214        1.6472        .93707E-02   -.42874    
   3  Normalizat    .96434        .25594        .29432E-03   -.94235    
   4  Prefactor     1.4153        .23905        .23564E-03   -.79939    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.63965e-11
Minuit parameter uncertainties:
  1  4.38395
  2  1.68558
  3  0.256268
  4  0.239239
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/338043': 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) = 5946.12644865
delta logL = 0.0770116777121

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  1.415e+00  2.392e-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.643e-01  2.563e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.11
Ra Dec: 337.758 -44.279
Photon Index (Free Index): 2.92 +/- 1.69
Photon Flux (Free Index): 3.67e-08 +/- 4.85e-08
Energy Flux (Free Index): 7.64e-06 +/- 9.13e-06

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/338043/cmap_HighResolution_508377601_508636801_4FGL_J2231.0-4416_daily_bin1038.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.43e-03', comment='SUCCESS', energy_flux2='7.64e-06', dlogl='7.70e-02', photon_flux2='3.67e-08', job_status='DONE', time_completed='2021-09-28 13:46:55.608145', photon_index_error2='1.69', photon_index2='2.92', ts='0.95', fit_tolerance='1e-08', GAL='1.40', photon_index_error='0.00', photon_flux_upper_limit='1.09e-07', energy_flux_error2='9.13e-06', EG='0.98', time_epoch_completed='1632862015.61', return_code='0', job_id='338043', GAL2='1.42', EG2='0.96', return_code2='0', photon_flux_error2='4.85e-08', ts2='1.11', photon_index='2.43' WHERE bin_id='1038' AND source_name='4FGL J2231.0-4416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 13:46:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 338043: <4FGL_J2231.0-4416_daily_bin1038> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2231.0-4416_daily_bin1038 337.758 -44.2791 508377601 508636801 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 :                                   928.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             279.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   987 sec.
    Turnaround time :                            990 sec.

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

