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


Performing analysis on: 4FGL_J2231.0-4416_daily_bin1402
RA = 337.758, Dec = -44.2791
tmin = 602726401, tmax = 602985601
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='339667', job_status='RUN', time_executed='2021-09-28 13:36:49.630374', time_epoch_executed='1632861409.63' WHERE source_name='4FGL J2231.0-4416' and cadence='daily' and bin_id='1402'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/339667

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/339667/ft1_4FGL_J2231.0-4416_daily_bin1402.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/339667/ft2_4FGL_J2231.0-4416_daily_bin1402.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/339667/ft1_4FGL_J2231.0-4416_daily_bin1402.fits outfile=/scratch/kocevski/339667/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin1402.fits ra=337.758 dec=-44.2791 rad=12.0 tmin=602726401.0 tmax=602985601.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.12
user 2.85
sys 0.25

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/339667/ft1_filtered_4FGL_J2231.0-4416_daily_bin1402.fits" evtable="EVENTS" scfile=/scratch/kocevski/339667/ft2_4FGL_J2231.0-4416_daily_bin1402.fits sctable="SC_DATA" outfile=/scratch/kocevski/339667/ltcube_602726401_602985601_4FGL_J2231.0-4416_daily_bin1402.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/339667/ft2_4FGL_J2231.0-4416_daily_bin1402.fits
.....................!
real 13.06
user 12.62
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/339667/ft1_filtered_4FGL_J2231.0-4416_daily_bin1402.fits evtable="EVENTS" scfile=/scratch/kocevski/339667/ft2_4FGL_J2231.0-4416_daily_bin1402.fits sctable="SC_DATA" expcube=/scratch/kocevski/339667/ltcube_602726401_602985601_4FGL_J2231.0-4416_daily_bin1402.fits outfile=/scratch/kocevski/339667/expmap_602726401_602985601_4FGL_J2231.0-4416_daily_bin1402.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/339667/ltcube_602726401_602985601_4FGL_J2231.0-4416_daily_bin1402.fits
.....................!
real 190.93
user 185.20
sys 5.36

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/339667/ft1_filtered_4FGL_J2231.0-4416_daily_bin1402.fits scfile=/scratch/kocevski/339667/ft2_4FGL_J2231.0-4416_daily_bin1402.fits outfile=/scratch/kocevski/339667/cmap_602726401_602985601_4FGL_J2231.0-4416_daily_bin1402.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/339667/ft1_filtered_4FGL_J2231.0-4416_daily_bin1402.fits scfile=/scratch/kocevski/339667/ft2_4FGL_J2231.0-4416_daily_bin1402.fits outfile=/scratch/kocevski/339667/cmap_HighResolution_602726401_602985601_4FGL_J2231.0-4416_daily_bin1402.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.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/339667/ft1_filtered_4FGL_J2231.0-4416_daily_bin1402.fits evtable="EVENTS" scfile=/scratch/kocevski/339667/ft2_4FGL_J2231.0-4416_daily_bin1402.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/339667/Model_4FGL_J2231.0-4416_daily_bin1402.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/339667/ft1_filtered_4FGL_J2231.0-4416_daily_bin1402.fits.........................!
real 16.34
user 14.95
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11137E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9238       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12200       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5089.4       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .63900E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10213E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .38778E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    541.60       1.0000         .10000E-03   10000.    
    14 'Prefactor '    123.81       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10394E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7644.0       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13666E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10339E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    4.2766       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .11415E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    3.6784       1.0000         .10000E-03   10000.    
    31 'Prefactor '    32.642       1.0000         .10000E-03   10000.    
    32 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    34 'Prefactor '    .64644       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=   561.0504     FROM MIGRAD    STATUS=CONVERGED    908 CALLS     5590 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.434        .21042E-06** at limit **
   2  Prefactor     .10000E-03    128.14       -.30107E-06** at limit **
   3  Prefactor     .10000E-03    6.3972        .14593E-05** at limit **
   4  norm          .10000E-03    74.560       -.31253E-06** at limit **
   5  Prefactor     .10512E-03    8571.8        .30828E-04** at limit **
   6  Prefactor     .10008E-03    9106.5       -.13336E-04** at limit **
   7  Prefactor     5094.6        2975.3       -.17113E-03    .62418E-05
   8  Prefactor     .10000E-03    361.99        .79473E-05** at limit **
   9  Prefactor     .10000E-03    85.806        .99022E-05** at limit **
  10  Prefactor     .10001E-03    6531.1        .12539E-05** at limit **
  11  norm          .10000E-03    1585.1        .51788E-05** at limit **
  12  Prefactor     .10000E-03    63.480       -.38328E-06** at limit **
  13  Prefactor     541.63        265.22       -.62615E-05    .20894E-05
  14  Prefactor     123.84        462.12        .37809E-05    .59344E-07
  15  Prefactor     .10000E-03    169.92        .83257E-06** at limit **
  16  Prefactor     .10000E-03    34.228       -.94714E-07** at limit **
  17  Prefactor     .10000E-03    47.805        .67199E-07** at limit **
  18  Prefactor     7645.1        3483.2       -.15039E-04   -.39700E-05
  19  Prefactor     .10000E-03    514.72        .12772E-05** at limit **
  20  Prefactor     .10000E-03    618.92        .15286E-06** at limit **
  21  Prefactor     .10000E-03    13.417        .37163E-06** at limit **
  22  Prefactor     .10000E-03    85.700        .10816E-06** at limit **
  23  Prefactor     .10000E-03    114.96       -.99225E-06** at limit **
  24  Prefactor     .10000E-03    14.437        .58935E-06** at limit **
  25  norm          .10000E-03    10.930        .54196E-08** at limit **
  26  norm          .10000E-03    4.2164        .14643E-07** at limit **
  27  norm          4.2792        7.9602        .19494E-06   -.12962E-04
  28  Prefactor     .10000E-03    4.1716        .66288E-07** at limit **
  29  Prefactor     .10000E-03    69.902        .24300E-06** at limit **
  30  norm          3.6813        6.2439        .12850E-06   -.23998E-04
  31  Prefactor     32.648        20.548        .27248E-06   -.20947E-04
  32  norm          .10000E-03    .51438        .67302E-07** at limit **
  33  Normalizat    .10000E-01    .10422        .22073E-05** at limit **
  34  Prefactor     .64634        .22769       -.23783E-05   -.35286E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.000105123
  Prefactor  = 0.000100082
  Prefactor  = 5094.57
  Prefactor  = 0.000100004
  Prefactor  = 0.000100001
  Prefactor  = 0.000100007
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 541.633
  Prefactor  = 123.841
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7645.11
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.27916
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.68129
  Prefactor  = 32.6485
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.646343
 **********
 **   18 **HESSE 
 **********

 FCN=   561.0504     FROM HESSE     STATUS=OK           706 CALLS     6296 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.434        .90940E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    128.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.4142        .58605E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    74.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10512E-03    8544.5        .14977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10008E-03    9097.0        .19231E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5094.6        2965.2        .40006E-04    .18914E-01
   8  Prefactor     .10000E-03    362.13        .21030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    88.943        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    6530.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1584.3        .21278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    63.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     541.63        265.01        .88365E-04   -1.1010    
  14  Prefactor     123.84        462.01        .18087E-03   -1.3478    
  15  Prefactor     .10000E-03    169.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    34.229        .13547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    47.805        .16013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7645.1        3478.6        .47128E-04    .55745    
  19  Prefactor     .10000E-03    514.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    618.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.450        .84774E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    85.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    115.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    14.493        .87925E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    10.934        .76519E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    4.2164        .47522E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          4.2792        7.9870        .81335E-04   -1.5294    
  28  Prefactor     .10000E-03    4.1744        .47246E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    69.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          3.6813        6.2665        .67671E-04   -1.5324    
  31  Prefactor     32.648        20.541        .70134E-04   -1.4565    
  32  norm          .10000E-03    .51488        .16593E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .10000E-01    .10635        .46662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     .64634        .22606        .19581E-03   -1.0567    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.63062e-10
Minuit parameter uncertainties:
  1  4.38588e-05
  2  0.000176485
  3  4.83845e-05
  4  0.000417283
  5  0.969091
  6  0.0648769
  7  3174.2
  8  0.00236827
  9  0.000600102
  10  0.0101249
  11  0.00144427
  12  8.20198e-06
  13  265.618
  14  476.629
  15  0.000263157
  16  1.18114e-05
  17  3.5274e-05
  18  4078.03
  19  0.000900264
  20  0.00016488
  21  4.38034e-05
  22  5.11446e-05
  23  0.000116692
  24  1.82428e-05
  25  6.65379e-06
  26  4.46108e-07
  27  7.98894
  28  3.52452e-06
  29  9.87687e-05
  30  6.26764
  31  20.545
  32  5.5258e-07
  33  3.3524e-06
  34  0.226385
Done.

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

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  5.416e+02  2.656e+02  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:  6.463e-01  2.264e-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.000e-02  3.352e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.46
Ra Dec: 337.758 -44.279
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 4.97e-06 +/- 2.44e-06
Energy Flux (Fixed Index): 1.57e-03 +/- 7.72e-04

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) = 559.388346319
delta logL = 1.66204626629

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 559.385163231
delta logL = 1.66522935419

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   559.3852     FROM MIGRAD    STATUS=CONVERGED     72 CALLS      271 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     117.50        164.88        .18562E-03   -.28671E-03
   2  Index         3.7304        .88970        .12305E-03   -.26403E-03
   3  Normalizat    .10000E-01    .92656E-01    .43797E-03** at limit **
   4  Prefactor     .68149        .21315        .19058E-03    .36827E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 117.498
  Index      = 3.73036
  Normalizat = 0.01
  Prefactor  = 0.681494
 **********
 **   18 **HESSE 
 **********

 FCN=   559.3852     FROM HESSE     STATUS=OK            23 CALLS      294 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     117.50        162.63        .37123E-04   -1.3536    
   2  Index         3.7304        .87758        .24610E-04   -.25674    
   3  Normalizat    .10000E-01    .92656E-01    .87594E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .68149        .21307        .38117E-04   -1.0426    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26896e-10
Minuit parameter uncertainties:
  1  163.255
  2  0.882473
  3  1.0153e-07
  4  0.21332
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/339667': 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) = 559.38515628
delta logL = 1.66523630498

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  1.175e+02  1.633e+02  1.000e-04  1.000e+04 ( 1.000e-12)
306        Index:  3.730e+00  8.825e-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:  6.815e-01  2.133e-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.000e-02  1.015e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.67
Ra Dec: 337.758 -44.279
Photon Index (Free Index): 3.73 +/- 0.88
Photon Flux (Free Index): 7.75e-06 +/- 3.30e-06
Energy Flux (Free Index): 1.22e-03 +/- 5.05e-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/339667/cmap_HighResolution_602726401_602985601_4FGL_J2231.0-4416_daily_bin1402.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.97e-06', energy_flux2='1.22e-03', photon_flux_error='2.44e-06', dlogl='1.67e+00', energy_flux='1.57e-03', photon_flux2='7.75e-06', job_status='DONE', time_completed='2021-09-28 13:43:07.270203', photon_index_error2='0.88', photon_index2='3.73', ts='11.46', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', energy_flux_error2='5.05e-04', EG='0.01', time_epoch_completed='1632861787.27', return_code='0', job_id='339667', GAL2='0.68', EG2='0.01', return_code2='0', energy_flux_error='7.72e-04', photon_flux_error2='3.30e-06', ts2='16.67', photon_index='2.43' WHERE bin_id='1402' AND source_name='4FGL J2231.0-4416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 13:43:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 339667: <4FGL_J2231.0-4416_daily_bin1402> in cluster <slac> Done

Job <4FGL_J2231.0-4416_daily_bin1402> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Tue Sep 28 13:35:46 2021
Job was executed on host(s) <bullet0269>, 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:43:07 2021
Results reported at Tue Sep 28 13:43:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2231.0-4416_daily_bin1402 337.758 -44.2791 602726401 602985601 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 :                                   376.34 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   439 sec.
    Turnaround time :                            441 sec.

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

