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


Performing analysis on: 4FGL_J2231.0-4416_daily_bin1273
RA = 337.758, Dec = -44.2791
tmin = 569289601, tmax = 569548801
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='339464', job_status='RUN', time_executed='2021-09-28 13:37:51.467333', time_epoch_executed='1632861471.47' WHERE source_name='4FGL J2231.0-4416' and cadence='daily' and bin_id='1273'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/339464

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/339464/ft1_4FGL_J2231.0-4416_daily_bin1273.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/339464/ft2_4FGL_J2231.0-4416_daily_bin1273.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/339464/ft1_4FGL_J2231.0-4416_daily_bin1273.fits outfile=/scratch/kocevski/339464/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin1273.fits ra=337.758 dec=-44.2791 rad=12.0 tmin=569289601.0 tmax=569548801.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.41
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/339464/ft2_4FGL_J2231.0-4416_daily_bin1273.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/339464/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin1273.fits evtable="EVENTS" outfile="/scratch/kocevski/339464/ft1_filtered_4FGL_J2231.0-4416_daily_bin1273.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/339464/ft1_filtered_4FGL_J2231.0-4416_daily_bin1273.fits" evtable="EVENTS" scfile=/scratch/kocevski/339464/ft2_4FGL_J2231.0-4416_daily_bin1273.fits sctable="SC_DATA" outfile=/scratch/kocevski/339464/ltcube_569289601_569548801_4FGL_J2231.0-4416_daily_bin1273.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/339464/ft2_4FGL_J2231.0-4416_daily_bin1273.fits
.....................!
real 14.66
user 14.33
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/339464/ft1_filtered_4FGL_J2231.0-4416_daily_bin1273.fits evtable="EVENTS" scfile=/scratch/kocevski/339464/ft2_4FGL_J2231.0-4416_daily_bin1273.fits sctable="SC_DATA" expcube=/scratch/kocevski/339464/ltcube_569289601_569548801_4FGL_J2231.0-4416_daily_bin1273.fits outfile=/scratch/kocevski/339464/expmap_569289601_569548801_4FGL_J2231.0-4416_daily_bin1273.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/339464/ltcube_569289601_569548801_4FGL_J2231.0-4416_daily_bin1273.fits
.....................!
real 191.29
user 187.03
sys 3.95

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/339464/ft1_filtered_4FGL_J2231.0-4416_daily_bin1273.fits scfile=/scratch/kocevski/339464/ft2_4FGL_J2231.0-4416_daily_bin1273.fits outfile=/scratch/kocevski/339464/cmap_569289601_569548801_4FGL_J2231.0-4416_daily_bin1273.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=337.758 yref=-44.2791 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/339464/ft1_filtered_4FGL_J2231.0-4416_daily_bin1273.fits scfile=/scratch/kocevski/339464/ft2_4FGL_J2231.0-4416_daily_bin1273.fits outfile=/scratch/kocevski/339464/cmap_HighResolution_569289601_569548801_4FGL_J2231.0-4416_daily_bin1273.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/339464/ft1_filtered_4FGL_J2231.0-4416_daily_bin1273.fits evtable="EVENTS" scfile=/scratch/kocevski/339464/ft2_4FGL_J2231.0-4416_daily_bin1273.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/339464/Model_4FGL_J2231.0-4416_daily_bin1273.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/339464/ft1_filtered_4FGL_J2231.0-4416_daily_bin1273.fits.....................!
real 41.73
user 40.50
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.8392       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.5837       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.9899       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.7818       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.950       1.0000         .10000E-03   10000.    
    18 'Prefactor '    39.474       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10291E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    57.109       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    13.252       1.0000         .10000E-03   10000.    
    25 'norm      '    5.3160       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    40.689       1.0000         .10000E-03   10000.    
    30 'norm      '    .10699E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    2.1067       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .98068       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.1170       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=   5018.857     FROM MIGRAD    STATUS=CONVERGED    887 CALLS     4726 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.8368        9.2789        .40633E-05   -.92562E-03
   2  Prefactor     .10000E-03    9.9592        .20866E-05** at limit **
   3  Prefactor     .10000E-03    3.5514        .24975E-06** at limit **
   4  norm          .10000E-03    1.4286       -.28929E-07** at limit **
   5  Prefactor     .10000E-03    4.8870       -.13216E-06** at limit **
   6  Prefactor     .10000E-03    7.5119       -.77495E-06** at limit **
   7  Prefactor     .10000E-03    14.324       -.48342E-06** at limit **
   8  Prefactor     .10000E-03    4.6666       -.93900E-06** at limit **
   9  Prefactor     2.5851        4.8034        .43581E-06   -.12694E-03
  10  Prefactor     .10001E-03    37.029       -.44464E-05** at limit **
  11  norm          5.9898        6.4001       -.26258E-07    .12234E-04
  12  Prefactor     .10000E-03    7.4993       -.73566E-06** at limit **
  13  Prefactor     .10000E-03    3.1448       -.47775E-07** at limit **
  14  Prefactor     .10000E-03    16.908       -.22803E-05** at limit **
  15  Prefactor     7.7860        8.3545        .19709E-05   -.86680E-03
  16  Prefactor     .10000E-03    27.904        .31602E-05** at limit **
  17  Prefactor     13.957        22.837        .21879E-05    .16942E-03
  18  Prefactor     39.479        37.003        .62210E-06    .93568E-04
  19  Prefactor     .10000E-03    6.6532       -.48327E-07** at limit **
  20  Prefactor     .10000E-03    34.112        .26524E-06** at limit **
  21  Prefactor     .10000E-03    3.2192       -.12349E-06** at limit **
  22  Prefactor     57.093        57.587       -.55727E-05   -.33471E-03
  23  Prefactor     .10000E-03    28.514        .30614E-05** at limit **
  24  Prefactor     13.260        18.367        .14735E-05    .11803E-03
  25  norm          5.3158        8.4147        .95793E-06   -.33663E-03
  26  norm          .10000E-03    1.9557       -.54173E-08** at limit **
  27  norm          .10000E-03    2.0807        .22263E-07** at limit **
  28  Prefactor     .10000E-03    2.4018       -.20452E-07** at limit **
  29  Prefactor     40.697        40.623        .31211E-05    .23707E-03
  30  norm          .10000E-03    2.5670        .15777E-06** at limit **
  31  Prefactor     .10000E-03    5.3675        .14513E-05** at limit **
  32  norm          2.1070        1.3720        .10512E-07   -.10377E-03
  33  Normalizat    .98005        .21613       -.24302E-05    .36852E-04
  34  Prefactor     1.1176        .18677        .34260E-06   -.79737E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.83675
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.5851
  Prefactor  = 0.000100008
  norm       = 5.98981
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 7.786
  Prefactor  = 0.000100004
  Prefactor  = 13.9566
  Prefactor  = 39.4786
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 57.0935
  Prefactor  = 0.000100004
  Prefactor  = 13.2599
  norm       = 5.31575
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.6971
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.10697
  Normalizat = 0.980054
  Prefactor  = 1.11756
 **********
 **   18 **HESSE 
 **********

 FCN=   5018.857     FROM HESSE     STATUS=OK           716 CALLS     5442 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.8368        10.030        .91434E-03   -1.5268    
   2  Prefactor     .10000E-03    10.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.6160        .13038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.4329        .82688E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.8952        .15295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.5901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.7281        .14978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.5851        4.7926        .19999E-03   -1.5386    
  10  Prefactor     .10001E-03    37.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.9898        6.4001        .16406E-03   -1.5218    
  12  Prefactor     .10000E-03    7.5552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.2488        .24510E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    17.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.7860        8.5725        .71873E-03   -1.5150    
  16  Prefactor     .10000E-03    28.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.957        22.912        .10724E-03   -1.4961    
  18  Prefactor     39.479        37.443        .63797E-04   -1.4450    
  19  Prefactor     .10000E-03    6.7001        .17836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    34.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.2339        .12414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     57.093        59.076        .53084E-04   -1.4195    
  23  Prefactor     .10000E-03    28.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     13.260        18.388        .11003E-03   -1.4980    
  25  norm          5.3158        8.4647        .87157E-03   -1.5247    
  26  norm          .10000E-03    1.9560        .96756E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    2.0825        .99788E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    2.4104        .10721E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     40.697        40.994        .62841E-04   -1.4431    
  30  norm          .10000E-03    2.5735        .11059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    5.4405        .16122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          2.1070        1.3671        .63388E-04   -1.5418    
  33  Normalizat    .98005        .24780        .26304E-03   -.93702    
  34  Prefactor     1.1176        .21467        .23035E-03   -.88907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.68344e-09
Minuit parameter uncertainties:
  1  10.033
  2  0.000261394
  3  2.16888e-05
  4  1.11207e-06
  5  8.0129e-06
  6  7.81543e-05
  7  6.77527e-05
  8  7.47727e-05
  9  4.79326
  10  0.00106683
  11  6.40079
  12  7.37896e-05
  13  1.17224e-06
  14  0.000371078
  15  8.57384
  16  0.000630336
  17  22.9269
  18  37.4654
  19  1.32501e-05
  20  7.12257e-05
  21  9.62051e-06
  22  59.1372
  23  0.000642596
  24  18.396
  25  8.46661
  26  1.41026e-06
  27  4.09836e-06
  28  2.46399e-06
  29  41.0224
  30  1.57198e-05
  31  0.000129838
  32  1.36717
  33  0.248092
  34  0.214832
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  1.118e+00  2.148e-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.801e-01  2.481e-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.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/339464/likelihoodResults_569289601_569548801_4FGL_J2231.0-4416_daily_bin1273.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) = 5018.85797067
delta logL = -0.00146847294127

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5018.85650374
delta logL = -1.54733425006e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10690E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4503       1.0000          .0000       10.000    
     3 'Normalizat'    .97981       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1178       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=   5018.857     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      206 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.7252        .90712E-02** at limit **
   2  Index         2.4744        6.2053        .50000       -.66655E-04
   3  Normalizat    .98005        .19699        .45913E-01   -.15972E-04
   4  Prefactor     1.1176        .18367        .36945E-01   -.18464E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.47436
  Normalizat = 0.980052
  Prefactor  = 1.11756
 **********
 **   18 **HESSE 
 **********

 FCN=   5018.857     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.9038        .25032E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4744        6.2361        .50000       -.52953    
   3  Normalizat    .98005        .22358        .26304E-03   -.93702    
   4  Prefactor     1.1176        .20872        .23035E-03   -.88907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.80019e-09
Minuit parameter uncertainties:
  1  7.67481e-05
  2  4.62183
  3  0.223796
  4  0.208868
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/339464': 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) = 5018.85650148
delta logL = 7.18126102583e-07

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  1.000e-04  7.675e-05  1.000e-04  1.000e+04 ( 1.000e-12)
306        Index:  2.474e+00  4.622e+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.118e+00  2.089e-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.801e-01  2.238e-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/339464/cmap_HighResolution_569289601_569548801_4FGL_J2231.0-4416_daily_bin1273.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.97e-03', job_status='DONE', photon_flux_upper_limit='7.72e-08', time_completed='2021-09-28 13:51:40.796660', job_id='339464', GAL2='1.12', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1632862300.8', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='7.18e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1273' AND source_name='4FGL J2231.0-4416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 13:51:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 339464: <4FGL_J2231.0-4416_daily_bin1273> in cluster <slac> Done

Job <4FGL_J2231.0-4416_daily_bin1273> 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) <bullet0209>, 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:51:41 2021
Results reported at Tue Sep 28 13:51:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2231.0-4416_daily_bin1273 337.758 -44.2791 569289601 569548801 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 :                                   827.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   971 sec.
    Turnaround time :                            973 sec.

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

