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


Performing analysis on: 4FGL_J2231.0-4416_daily_bin1005
RA = 337.758, Dec = -44.2791
tmin = 499824001, tmax = 500083201
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='337995', job_status='RUN', time_executed='2021-09-28 13:32:20.953235', time_epoch_executed='1632861140.95' WHERE source_name='4FGL J2231.0-4416' and cadence='daily' and bin_id='1005'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/337995

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/337995/ft1_4FGL_J2231.0-4416_daily_bin1005.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/337995/ft2_4FGL_J2231.0-4416_daily_bin1005.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/337995/ft1_4FGL_J2231.0-4416_daily_bin1005.fits outfile=/scratch/kocevski/337995/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin1005.fits ra=337.758 dec=-44.2791 rad=12.0 tmin=499824001.0 tmax=500083201.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 5.27
user 4.90
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/337995/ft1_filtered_4FGL_J2231.0-4416_daily_bin1005.fits" evtable="EVENTS" scfile=/scratch/kocevski/337995/ft2_4FGL_J2231.0-4416_daily_bin1005.fits sctable="SC_DATA" outfile=/scratch/kocevski/337995/ltcube_499824001_500083201_4FGL_J2231.0-4416_daily_bin1005.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/337995/ft2_4FGL_J2231.0-4416_daily_bin1005.fits
.....................!
real 11.88
user 11.52
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/337995/ft1_filtered_4FGL_J2231.0-4416_daily_bin1005.fits evtable="EVENTS" scfile=/scratch/kocevski/337995/ft2_4FGL_J2231.0-4416_daily_bin1005.fits sctable="SC_DATA" expcube=/scratch/kocevski/337995/ltcube_499824001_500083201_4FGL_J2231.0-4416_daily_bin1005.fits outfile=/scratch/kocevski/337995/expmap_499824001_500083201_4FGL_J2231.0-4416_daily_bin1005.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/337995/ltcube_499824001_500083201_4FGL_J2231.0-4416_daily_bin1005.fits
.....................!
real 190.58
user 185.48
sys 4.73

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/337995/ft1_filtered_4FGL_J2231.0-4416_daily_bin1005.fits scfile=/scratch/kocevski/337995/ft2_4FGL_J2231.0-4416_daily_bin1005.fits outfile=/scratch/kocevski/337995/cmap_499824001_500083201_4FGL_J2231.0-4416_daily_bin1005.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/337995/ft1_filtered_4FGL_J2231.0-4416_daily_bin1005.fits scfile=/scratch/kocevski/337995/ft2_4FGL_J2231.0-4416_daily_bin1005.fits outfile=/scratch/kocevski/337995/cmap_HighResolution_499824001_500083201_4FGL_J2231.0-4416_daily_bin1005.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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/337995/ft1_filtered_4FGL_J2231.0-4416_daily_bin1005.fits evtable="EVENTS" scfile=/scratch/kocevski/337995/ft2_4FGL_J2231.0-4416_daily_bin1005.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/337995/Model_4FGL_J2231.0-4416_daily_bin1005.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/337995/ft1_filtered_4FGL_J2231.0-4416_daily_bin1005.fits.....................!
real 33.82
user 32.48
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .27499       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.668       1.0000         .10000E-03   10000.    
     4 'norm      '    3.7200       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.9039       1.0000         .10000E-03   10000.    
     6 'Prefactor '    31.179       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .23143E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12692E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .33206E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    9.4613       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10507E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.8669       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.5639       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10575E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.327       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10348E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    88.920       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    13.375       1.0000         .10000E-03   10000.    
    25 'norm      '    20.326       1.0000         .10000E-03   10000.    
    26 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    2.2630       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    12.893       1.0000         .10000E-03   10000.    
    30 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.2409       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .91388       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=   3397.081     FROM MIGRAD    STATUS=CONVERGED   1739 CALLS     6355 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.3070        .13086E-02** at limit **
   2  Prefactor     .31995E-01    51.856        .90999E-01   -.91450E-04
   3  Prefactor     11.666        7.9276        .11728E-03   -.64997E-04
   4  norm          3.7242        3.5099        .10147E-03   -.19562E-03
   5  Prefactor     6.9035        9.1634        .15269E-03   -.55171E-04
   6  Prefactor     31.184        15.109        .71757E-04   -.11597E-03
   7  Prefactor     .10000E-03    275.70        .18142E-02** at limit **
   8  Prefactor     .10000E-03    28.710        .36285E-03** at limit **
   9  Prefactor     .10000E-03    9.8085        .35194E-03** at limit **
  10  Prefactor     .10023E-03    157.91        .22356    ** at limit **
  11  norm          9.4550        15.692        .13029E-03   -.23734E-04
  12  Prefactor     .10000E-03    23.551        .36285E-03** at limit **
  13  Prefactor     3.8673        3.8710        .11104E-03    .57847E-05
  14  Prefactor     .10000E-03    22.925        .18142E-02** at limit **
  15  Prefactor     3.5539        12.800        .21408E-03   -.39244E-04
  16  Prefactor     .10000E-03    37.328        .18142E-02** at limit **
  17  Prefactor     16.325        33.928        .99123E-04    .31082E-04
  18  Prefactor     .10000E-03    31.887        .18142E-02** at limit **
  19  Prefactor     .10000E-03    10.698        .18142E-02** at limit **
  20  Prefactor     .10000E-03    69.285        .18142E-02** at limit **
  21  Prefactor     .10000E-03    8.1978        .16268E-02** at limit **
  22  Prefactor     88.954        96.855        .42610E-04   -.87514E-05
  23  Prefactor     .10000E-03    47.047        .18142E-02** at limit **
  24  Prefactor     13.373        19.072        .10952E-03   -.26469E-05
  25  norm          20.325        22.029        .88841E-04    .54386E-05
  26  norm          .10000E-03    5.1544        .12924E-02** at limit **
  27  norm          2.2642        9.9806        .27305E-03    .29707E-04
  28  Prefactor     .10000E-03    6.7845        .14797E-02** at limit **
  29  Prefactor     12.853        123.19        .11156E-03    .53503E-05
  30  norm          .10000E-03    12.336        .18142E-02** at limit **
  31  Prefactor     .10000E-03    13.469        .18142E-02** at limit **
  32  norm          .10000E-03    .71480        .48116E-03** at limit **
  33  Normalizat    1.2411        .32600        .27094E-03   -.12359E-03
  34  Prefactor     .91408        .26753        .25664E-03   -.10047E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0319946
  Prefactor  = 11.6657
  norm       = 3.72425
  Prefactor  = 6.90354
  Prefactor  = 31.1835
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010023
  norm       = 9.45499
  Prefactor  = 0.0001
  Prefactor  = 3.86728
  Prefactor  = 0.0001
  Prefactor  = 3.55385
  Prefactor  = 0.0001
  Prefactor  = 16.325
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 88.9538
  Prefactor  = 0.0001
  Prefactor  = 13.3729
  norm       = 20.3248
  norm       = 0.0001
  norm       = 2.26425
  Prefactor  = 0.0001
  Prefactor  = 12.8534
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.24114
  Prefactor  = 0.914083
 **********
 **   18 **HESSE 
 **********

 FCN=   3397.081     FROM HESSE     STATUS=OK           718 CALLS     7073 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.3073        .26172E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .31995E-01    44.281        .10004       -1.5672    
   3  Prefactor     11.666        7.9275        .46911E-05   -1.5025    
   4  norm          3.7242        3.5087        .40588E-05   -1.5322    
   5  Prefactor     6.9035        9.1630        .61077E-05   -1.5182    
   6  Prefactor     31.184        15.109        .28703E-05   -1.4591    
   7  Prefactor     .10000E-03    275.85        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    28.711        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.8088        .70389E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10023E-03    160.60        .22063       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          9.4550        15.691        .52115E-05   -1.5093    
  12  Prefactor     .10000E-03    23.552        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.8673        3.8709        .44416E-05   -1.5315    
  14  Prefactor     .10000E-03    22.925        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.5539        12.796        .85634E-05   -1.5331    
  16  Prefactor     .10000E-03    37.333        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     16.325        33.931        .39649E-05   -1.4900    
  18  Prefactor     .10000E-03    31.888        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.699        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    69.285        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.1987        .32537E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     88.954        96.845        .85219E-05   -1.3819    
  23  Prefactor     .10000E-03    47.047        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     13.373        19.072        .43809E-05   -1.4976    
  25  norm          20.325        22.029        .35536E-05   -1.4806    
  26  norm          .10000E-03    5.1544        .25848E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          2.2642        9.9776        .10922E-04   -1.5407    
  28  Prefactor     .10000E-03    6.7852        .29595E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     12.853        123.43        .44623E-05   -1.4991    
  30  norm          .10000E-03    12.336        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    13.469        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          .10000E-03    .71480        .96233E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    1.2411        .32627        .54189E-04   -.85341    
  34  Prefactor     .91408        .26773        .10266E-04   -.95651    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97388e-10
Minuit parameter uncertainties:
  1  1.66242e-06
  2  2.37859
  3  7.92824
  4  3.50888
  5  9.16481
  6  15.1112
  7  0.000438627
  8  1.46514e-05
  9  1.10053e-05
  10  0.0121904
  11  15.6981
  12  4.64938e-06
  13  3.87114
  14  2.21238e-05
  15  12.8056
  16  0.00013034
  17  33.9706
  18  0.000102132
  19  5.09407e-06
  20  8.92202e-07
  21  5.15872e-06
  22  97.0175
  23  3.58748e-05
  24  19.0807
  25  22.0376
  26  2.96989e-07
  27  9.50861
  28  3.96137e-06
  29  79.8774
  30  1.33078e-05
  31  8.47904e-06
  32  2.80508e-07
  33  0.326807
  34  0.268115
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  9.141e-01  2.681e-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.241e+00  3.268e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.18
Ra Dec: 337.758 -44.279
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 3.55e-08 +/- 3.55e-08
Energy Flux (Fixed Index): 1.12e-05 +/- 1.12e-05

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) = 3395.0577079
delta logL = 2.02287993268

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3394.80962528
delta logL = 2.27096255351

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3336       1.0000         .10000E-03   10000.    
     2 'Index     '    .95650       1.0000          .0000       10.000    
     3 'Normalizat'    1.2638       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90621       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=   3394.810     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      212 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3333        1.5166        .95015E-02   -.21886E-03
   2  Index         .95643        .39854        .15562       -.34154E-04
   3  Normalizat    1.2639        .26541        .60744E-01    .42588E-05
   4  Prefactor     .90609        .22068        .45084E-01    .42785E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.33327
  Index      = 0.956425
  Normalizat = 1.26394
  Prefactor  = 0.90609
 **********
 **   18 **HESSE 
 **********

 FCN=   3394.810     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3333        2.2508        .64392E-04   -1.5477    
   2  Index         .95643        .59647        .66634E-02   -.94196    
   3  Normalizat    1.2639        .30893        .26865E-03   -.84649    
   4  Prefactor     .90609        .25695        .25753E-03   -.95929    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.82292e-10
Minuit parameter uncertainties:
  1  2.25095
  2  0.600634
  3  0.30938
  4  0.257294
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/337995': 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) = 3394.80962517
delta logL = 2.27096266723

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  1.333e+00  2.251e+00  1.000e-04  1.000e+04 ( 1.000e-12)
306        Index:  9.564e-01  6.006e-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:  9.061e-01  2.573e-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.264e+00  3.094e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.71
Ra Dec: 337.758 -44.279
Photon Index (Free Index): 0.96 +/- 0.60
Photon Flux (Free Index): 7.34e-09 +/- 7.88e-09
Energy Flux (Free Index): 1.18e-04 +/- 1.68e-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/337995/cmap_HighResolution_499824001_500083201_4FGL_J2231.0-4416_daily_bin1005.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.55e-08', energy_flux2='1.18e-04', photon_flux_error='3.55e-08', dlogl='2.27e+00', energy_flux='1.12e-05', photon_flux2='7.34e-09', job_status='DONE', time_completed='2021-09-28 13:43:17.833140', photon_index_error2='0.60', photon_index2='0.96', ts='5.18', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='1.68e-04', EG='1.24', time_epoch_completed='1632861797.83', return_code='0', job_id='337995', GAL2='0.91', EG2='1.26', return_code2='0', energy_flux_error='1.12e-05', photon_flux_error2='7.88e-09', ts2='9.71', photon_index='2.43' WHERE bin_id='1005' AND source_name='4FGL J2231.0-4416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 13:43:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 337995: <4FGL_J2231.0-4416_daily_bin1005> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2231.0-4416_daily_bin1005 337.758 -44.2791 499824001 500083201 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 :                                   656.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             298.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   774 sec.
    Turnaround time :                            775 sec.

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

