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


Performing analysis on: 4FGL_J2231.0-4416_daily_bin1405
RA = 337.758, Dec = -44.2791
tmin = 603504001, tmax = 603763201
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='339672', job_status='RUN', time_executed='2021-09-28 13:37:47.043184', time_epoch_executed='1632861467.04' WHERE source_name='4FGL J2231.0-4416' and cadence='daily' and bin_id='1405'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/339672

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/339672/ft1_4FGL_J2231.0-4416_daily_bin1405.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/339672/ft2_4FGL_J2231.0-4416_daily_bin1405.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/339672/ft1_4FGL_J2231.0-4416_daily_bin1405.fits outfile=/scratch/kocevski/339672/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin1405.fits ra=337.758 dec=-44.2791 rad=12.0 tmin=603504001.0 tmax=603763201.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 2.75
user 2.53
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/339672/ft1_filtered_4FGL_J2231.0-4416_daily_bin1405.fits evtable="EVENTS" scfile=/scratch/kocevski/339672/ft2_4FGL_J2231.0-4416_daily_bin1405.fits sctable="SC_DATA" expcube=/scratch/kocevski/339672/ltcube_603504001_603763201_4FGL_J2231.0-4416_daily_bin1405.fits outfile=/scratch/kocevski/339672/expmap_603504001_603763201_4FGL_J2231.0-4416_daily_bin1405.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/339672/ltcube_603504001_603763201_4FGL_J2231.0-4416_daily_bin1405.fits
.....................!
real 190.61
user 185.51
sys 4.72

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.14

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

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

This is gtbin version HEAD
real 0.56
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/339672/ft1_filtered_4FGL_J2231.0-4416_daily_bin1405.fits evtable="EVENTS" scfile=/scratch/kocevski/339672/ft2_4FGL_J2231.0-4416_daily_bin1405.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/339672/Model_4FGL_J2231.0-4416_daily_bin1405.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/339672/ft1_filtered_4FGL_J2231.0-4416_daily_bin1405.fits....................!
real 21.86
user 20.58
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 1523.18057515

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1380.4       1.0000         .10000E-03   10000.    
     2 'Prefactor '    207.64       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .16314E-01   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1609.4       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .91654E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .20826E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.9371       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16354E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    .10082E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .17710       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.5822       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .20538       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .21694E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    142.84       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15890E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .74203E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10307E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    60.579       1.0000         .10000E-03   10000.    
    23 'Prefactor '    78.134       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10105E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    106.98       1.0000         .10000E-03   10000.    
    30 'norm      '    .10609E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    40.058       1.0000         .10000E-03   10000.    
    32 'norm      '    1.8825       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.1537       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.0622       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1523.145     FROM MIGRAD    STATUS=CONVERGED    335 CALLS     3707 TOTAL
                     EDM=   .92E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1236.7        922.22       -.37592E-04   -.19375E-03
   2  Prefactor     249.84        254.16        .47432E-04    .99320E-03
   3  Prefactor     .10000E-03    40.952       -.51332E-05** at limit **
   4  norm          .10000E-03    28.720       -.17073E-06** at limit **
   5  Prefactor     1990.9        1740.0        .14818E-03   -.35336E-03
   6  Prefactor     .10000E-03    96.085        .37577E-07** at limit **
   7  Prefactor     .10000E-03    46.206       -.23356E-06** at limit **
   8  Prefactor     8.1916        20.024        .17639E-05    .82259E-05
   9  Prefactor     .10000E-03    9.1714        .22796E-06** at limit **
  10  Prefactor     .10000E-03    95.039       -.42321E-06** at limit **
  11  norm          .10000E-03    6.0133       -.36469E-07** at limit **
  12  Prefactor     .10000E-03    131.40        .14541E-06** at limit **
  13  Prefactor     8.5655        11.130       -.17116E-06    .28604E-04
  14  Prefactor     .10001E-03    236.52        .18459E-04** at limit **
  15  Prefactor     .10000E-03    4.1252        .50802E-07** at limit **
  16  Prefactor     .10000E-03    58.564        .11080E-05** at limit **
  17  Prefactor     129.01        123.96        .76164E-05   -.11056E-04
  18  Prefactor     .10000E-03    30.192        .77666E-06** at limit **
  19  Prefactor     .10000E-03    10.399       -.41487E-07** at limit **
  20  Prefactor     .10000E-03    128.69        .71878E-06** at limit **
  21  Prefactor     .10000E-03    17.768       -.81546E-07** at limit **
  22  Prefactor     55.622        71.688       -.11468E-05   -.18755E-05
  23  Prefactor     79.441        221.94       -.99132E-05   -.26547E-05
  24  Prefactor     .10000E-03    9.7027        .65269E-07** at limit **
  25  norm          .10000E-03    18.250        .39895E-07** at limit **
  26  norm          .10000E-03    3.9482       -.33750E-08** at limit **
  27  norm          .10000E-03    5.3521        .15217E-07** at limit **
  28  Prefactor     .10000E-03    9.4782        .20345E-06** at limit **
  29  Prefactor     110.68        94.823        .74770E-06   -.12255E-04
  30  norm          .10000E-03    6.0159        .38569E-06** at limit **
  31  Prefactor     39.735        32.667       -.42777E-06    .16980E-05
  32  norm          1.8944        2.3247       -.16364E-06   -.13572E-04
  33  Normalizat    1.1425        .60969       -.97652E-08   -.53457E-04
  34  Prefactor     1.0747        .54102        .10377E-04   -.38129E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1236.69
  Prefactor  = 249.84
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1990.86
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.19155
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 8.56547
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 129.01
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 55.6217
  Prefactor  = 79.441
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 110.677
  norm       = 0.0001
  Prefactor  = 39.7352
  norm       = 1.89438
  Normalizat = 1.14247
  Prefactor  = 1.07466
 **********
 **   18 **HESSE 
 **********

 FCN=   1523.145     FROM HESSE     STATUS=OK           786 CALLS     4493 TOTAL
                     EDM=   .57E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1236.7        1291.7        .28991E-03   -.85209    
   2  Prefactor     249.84        5608.0        .70130E-03   -1.2533    
   3  Prefactor     .10000E-03    38.779        .91044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    28.600        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1990.9        2355.4        .27212E-03   -.64579    
   6  Prefactor     .10000E-03    94.367        .91177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    46.992        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.1916        20.096        .35580E-02   -1.5135    
   9  Prefactor     .10000E-03    9.3801        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    96.011        .10201E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.0078        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    130.47        .98726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.5655        11.155        .34208E-02   -1.5123    
  14  Prefactor     .10001E-03    233.90        .10002E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.1372        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    57.456        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     129.01        124.12        .84274E-03   -1.3431    
  18  Prefactor     .10000E-03    30.509        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.427        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    129.53        .93021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    17.993        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     55.622        71.524        .12888E-02   -1.4215    
  23  Prefactor     79.441        215.70        .11358E-02   -1.3923    
  24  Prefactor     .10000E-03    9.7227        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    18.247        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    3.9481        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    5.3535        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    9.4938        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     110.68        93.236        .97203E-03   -1.3600    
  30  norm          .10000E-03    6.0107        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     39.735        32.506        .15833E-02   -1.4446    
  32  norm          1.8944        2.3432        .75848E-02   -1.5433    
  33  Normalizat    1.1425        .49370        .68277E-01   -.88400    
  34  Prefactor     1.0747        .43993        .67679E-01   -.90281    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.69524e-05
Minuit parameter uncertainties:
  1  1327.33
  2  11528.5
  3  1.08308e-05
  4  3.16232e-06
  5  2519.17
  6  1.72011e-05
  7  1.40962e-05
  8  20.1124
  9  1.63167e-06
  10  5.59911e-05
  11  1.56043e-06
  12  0.00137185
  13  11.1579
  14  0.00241339
  15  1.18378e-06
  16  4.63416e-05
  17  124.367
  18  1.98338e-05
  19  2.87786e-06
  20  0.000102997
  21  1.92076e-05
  22  71.6351
  23  217.877
  24  4.07022e-06
  25  5.43865e-06
  26  4.81785e-08
  27  1.61295e-06
  28  5.88264e-06
  29  93.3596
  30  8.95553e-06
  31  32.5205
  32  2.34333
  33  0.495722
  34  0.441427
Done.

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

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  8.565e+00  1.116e+01  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.075e+00  4.414e-01  0.000e+00  1.000e+01 ( 1.000e+00)
586        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
587        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  1.142e+00  4.957e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.08
Ra Dec: 337.758 -44.279
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 7.86e-08 +/- 1.02e-07
Energy Flux (Fixed Index): 2.49e-05 +/- 3.24e-05

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

Saving results to:
/scratch/kocevski/339672/likelihoodResults_603504001_603763201_4FGL_J2231.0-4416_daily_bin1405.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) = 1522.87348402
delta logL = 0.271460706763

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1522.84455892
delta logL = 0.300385812423

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.464       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7827       1.0000          .0000       10.000    
     3 'Normalizat'    1.1808       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0420       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=   1522.845     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      209 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.464        13.944        .29579E-02    .15194E-02
   2  Index         1.7827        .68368        .15958       -.55415E-04
   3  Normalizat    1.1808        .44599        .67297E-01   -.84388E-06
   4  Prefactor     1.0421        .43189        .68487E-01    .84109E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.4644
  Index      = 1.78271
  Normalizat = 1.18079
  Prefactor  = 1.04205
 **********
 **   18 **HESSE 
 **********

 FCN=   1522.845     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.464        13.488        .11832E-03   -1.5031    
   2  Index         1.7827        .71885        .64884E-02   -.69901    
   3  Normalizat    1.1808        .53707        .29773E-03   -.87199    
   4  Prefactor     1.0421        .52003        .30297E-03   -.91341    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.52856e-09
Minuit parameter uncertainties:
  1  13.492
  2  0.723147
  3  0.539605
  4  0.522578
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/339672': 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) = 1522.84455891
delta logL = 0.30038581824

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  1.146e+01  1.349e+01  1.000e-04  1.000e+04 ( 1.000e-12)
306        Index:  1.783e+00  7.231e-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.042e+00  5.226e-01  0.000e+00  1.000e+01 ( 1.000e+00)
586        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
587        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
584   Normalization:  1.181e+00  5.396e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.69
Ra Dec: 337.758 -44.279
Photon Index (Free Index): 1.78 +/- 0.72
Photon Flux (Free Index): 5.24e-08 +/- 7.25e-08
Energy Flux (Free Index): 6.60e-05 +/- 1.22e-04

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/339672/cmap_HighResolution_603504001_603763201_4FGL_J2231.0-4416_daily_bin1405.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.83e-02', comment='SUCCESS', photon_flux='7.86e-08', energy_flux2='6.60e-05', photon_flux_error='1.02e-07', dlogl='3.00e-01', energy_flux='2.49e-05', photon_flux2='5.24e-08', job_status='DONE', time_completed='2021-09-28 13:45:27.098132', photon_index_error2='0.72', photon_index2='1.78', ts='1.08', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='3.65e-07', energy_flux_error2='1.22e-04', EG='1.14', time_epoch_completed='1632861927.1', return_code='0', job_id='339672', GAL2='1.04', EG2='1.18', return_code2='0', energy_flux_error='3.24e-05', photon_flux_error2='7.25e-08', ts2='1.69', photon_index='2.43' WHERE bin_id='1405' AND source_name='4FGL J2231.0-4416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 13:45:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 339672: <4FGL_J2231.0-4416_daily_bin1405> in cluster <slac> Done

Job <4FGL_J2231.0-4416_daily_bin1405> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Tue Sep 28 13:35:47 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 13:35:48 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:48 2021
Terminated at Tue Sep 28 13:45:27 2021
Results reported at Tue Sep 28 13:45:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2231.0-4416_daily_bin1405 337.758 -44.2791 603504001 603763201 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 :                                   457.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   579 sec.
    Turnaround time :                            580 sec.

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

