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


Performing analysis on: 4FGL_J2231.0-4416_daily_bin1417
RA = 337.758, Dec = -44.2791
tmin = 606614401, tmax = 606873601
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='339690', job_status='RUN', time_executed='2021-09-28 13:37:06.593084', time_epoch_executed='1632861426.59' WHERE source_name='4FGL J2231.0-4416' and cadence='daily' and bin_id='1417'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/339690

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/339690/ft1_4FGL_J2231.0-4416_daily_bin1417.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/339690/ft2_4FGL_J2231.0-4416_daily_bin1417.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/339690/ft1_4FGL_J2231.0-4416_daily_bin1417.fits outfile=/scratch/kocevski/339690/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin1417.fits ra=337.758 dec=-44.2791 rad=12.0 tmin=606614401.0 tmax=606873601.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.08
user 4.84
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/339690/ft1_filtered_4FGL_J2231.0-4416_daily_bin1417.fits" evtable="EVENTS" scfile=/scratch/kocevski/339690/ft2_4FGL_J2231.0-4416_daily_bin1417.fits sctable="SC_DATA" outfile=/scratch/kocevski/339690/ltcube_606614401_606873601_4FGL_J2231.0-4416_daily_bin1417.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/339690/ft2_4FGL_J2231.0-4416_daily_bin1417.fits
.....................!
real 11.63
user 11.25
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/339690/ft1_filtered_4FGL_J2231.0-4416_daily_bin1417.fits evtable="EVENTS" scfile=/scratch/kocevski/339690/ft2_4FGL_J2231.0-4416_daily_bin1417.fits sctable="SC_DATA" expcube=/scratch/kocevski/339690/ltcube_606614401_606873601_4FGL_J2231.0-4416_daily_bin1417.fits outfile=/scratch/kocevski/339690/expmap_606614401_606873601_4FGL_J2231.0-4416_daily_bin1417.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/339690/ltcube_606614401_606873601_4FGL_J2231.0-4416_daily_bin1417.fits
.....................!
real 192.35
user 186.55
sys 5.42

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/339690/ft1_filtered_4FGL_J2231.0-4416_daily_bin1417.fits scfile=/scratch/kocevski/339690/ft2_4FGL_J2231.0-4416_daily_bin1417.fits outfile=/scratch/kocevski/339690/cmap_606614401_606873601_4FGL_J2231.0-4416_daily_bin1417.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/339690/ft1_filtered_4FGL_J2231.0-4416_daily_bin1417.fits scfile=/scratch/kocevski/339690/ft2_4FGL_J2231.0-4416_daily_bin1417.fits outfile=/scratch/kocevski/339690/cmap_HighResolution_606614401_606873601_4FGL_J2231.0-4416_daily_bin1417.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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/339690/ft1_filtered_4FGL_J2231.0-4416_daily_bin1417.fits evtable="EVENTS" scfile=/scratch/kocevski/339690/ft2_4FGL_J2231.0-4416_daily_bin1417.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/339690/Model_4FGL_J2231.0-4416_daily_bin1417.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/339690/ft1_filtered_4FGL_J2231.0-4416_daily_bin1417.fits.....................!
real 47.20
user 45.91
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.247       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11490E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    7.5993       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.0215       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .20223E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14798E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10261E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    163.09       1.0000         .10000E-03   10000.    
    11 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.0937       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.437       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10181E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    29.090       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10322E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    42.572       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.5996       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11378E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    18.427       1.0000         .10000E-03   10000.    
    25 'norm      '    5.4900       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    14.453       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .66769       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.1434       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=   6385.339     FROM MIGRAD    STATUS=CONVERGED    950 CALLS     4859 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.249        10.972        .63920E-07    .13032E-03
   2  Prefactor     .10006E-03    21.481       -.19883E-05** at limit **
   3  Prefactor     .10000E-03    2.4245        .18568E-07** at limit **
   4  norm          7.5989        4.6051        .45627E-06   -.22076E-03
   5  Prefactor     .10000E-03    3.8754       -.12981E-06** at limit **
   6  Prefactor     8.0228        8.0618        .16624E-05   -.59941E-03
   7  Prefactor     .10000E-03    59.660        .27306E-05** at limit **
   8  Prefactor     .10000E-03    3.9629       -.11933E-06** at limit **
   9  Prefactor     .10000E-03    2.0310       -.15922E-07** at limit **
  10  Prefactor     163.07        89.619       -.26142E-05   -.21037E-03
  11  norm          .10000E-03    1.9557       -.53284E-08** at limit **
  12  Prefactor     .10000E-03    6.5335        .75700E-07** at limit **
  13  Prefactor     5.0939        3.4354        .68041E-07    .45603E-04
  14  Prefactor     .10000E-03    32.576       -.29844E-05** at limit **
  15  Prefactor     .10000E-03    5.0766       -.89855E-07** at limit **
  16  Prefactor     19.437        19.212       -.66071E-07   -.14932E-05
  17  Prefactor     .10000E-03    20.288       -.12641E-05** at limit **
  18  Prefactor     29.076        25.671       -.22440E-06   -.79938E-04
  19  Prefactor     .10000E-03    4.9433        .13598E-07** at limit **
  20  Prefactor     42.572        53.414        .14524E-06    .32124E-05
  21  Prefactor     2.5994        3.4205        .51076E-07   -.21963E-04
  22  Prefactor     .10000E-03    9.8484       -.14519E-06** at limit **
  23  Prefactor     .10000E-03    96.612       -.14242E-05** at limit **
  24  Prefactor     18.427        15.677        .30911E-07   -.11493E-04
  25  norm          5.4899        6.9197        .27684E-06   -.11299E-03
  26  norm          .10000E-03    1.8641        .18035E-08** at limit **
  27  norm          .10000E-03    1.2524        .24101E-08** at limit **
  28  Prefactor     14.451        6.6584        .16191E-08   -.34529E-04
  29  Prefactor     .10000E-03    24.339        .31243E-05** at limit **
  30  norm          .10000E-03    2.1832        .53332E-07** at limit **
  31  Prefactor     .10000E-03    11.375        .20871E-06** at limit **
  32  norm          .10000E-03    .35006        .43558E-08** at limit **
  33  Normalizat    .66779        .16986        .28009E-06    .41241E-04
  34  Prefactor     1.1433        .15920       -.33371E-06    .13705E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.2487
  Prefactor  = 0.000100056
  Prefactor  = 0.0001
  norm       = 7.59889
  Prefactor  = 0.0001
  Prefactor  = 8.02282
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 163.073
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.09389
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 19.4365
  Prefactor  = 0.000100001
  Prefactor  = 29.0759
  Prefactor  = 0.0001
  Prefactor  = 42.5719
  Prefactor  = 2.59941
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 18.4269
  norm       = 5.48993
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 14.4512
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.667794
  Prefactor  = 1.14334
 **********
 **   18 **HESSE 
 **********

 FCN=   6385.339     FROM HESSE     STATUS=OK           724 CALLS     5583 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.249        10.878        .96441E-04   -1.4877    
   2  Prefactor     .10006E-03    132.93        .67598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.4703        .12144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          7.5989        4.5671        .63289E-03   -1.5157    
   5  Prefactor     .10000E-03    3.9259        .15369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.0228        8.5889        .70783E-03   -1.5141    
   7  Prefactor     .10000E-03    61.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.9791        .15515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.0856        .22226E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     163.07        93.254        .15790E-03   -1.3147    
  11  norm          .10000E-03    1.9569        .10914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.6929        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.0939        3.4375        .11573E-03   -1.5257    
  14  Prefactor     .10000E-03    33.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.2616        .35064E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     19.437        19.234        .90847E-04   -1.4826    
  17  Prefactor     .10000E-03    20.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     29.076        25.764        .74282E-04   -1.4629    
  19  Prefactor     .10000E-03    4.9626        .17334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     42.572        53.410        .61440E-04   -1.4402    
  21  Prefactor     2.5994        3.4097        .16487E-03   -1.5386    
  22  Prefactor     .10000E-03    9.8539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    99.552        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     18.427        15.565        .93302E-04   -1.4849    
  25  norm          5.4899        6.9288        .85741E-03   -1.5239    
  26  norm          .10000E-03    1.8651        .10653E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1.2533        .87334E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     14.451        6.6295        .10536E-03   -1.4947    
  29  Prefactor     .10000E-03    25.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    2.2365        .23047E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    11.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          .10000E-03    .48886        .90962E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .66779        .19676        .27739E-03   -1.0518    
  34  Prefactor     1.1433        .18515        .21085E-03   -.88093    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4332e-09
Minuit parameter uncertainties:
  1  10.8794
  2  0.00547919
  3  2.18312e-06
  4  4.56735
  5  1.13233e-05
  6  8.5902
  7  0.000946028
  8  1.55976e-05
  9  5.99316e-06
  10  93.3387
  11  1.444e-06
  12  5.68629e-08
  13  3.43765
  14  0.000664667
  15  8.46903e-06
  16  19.24
  17  0.000228023
  18  25.7734
  19  8.90066e-06
  20  53.4697
  21  3.40994
  22  1.70351e-05
  23  0.00053485
  24  15.5686
  25  6.9298
  26  1.12293e-07
  27  4.24805e-07
  28  6.62986
  29  0.000581621
  30  2.40241e-06
  31  2.28571e-05
  32  2.76042e-07
  33  0.196968
  34  0.185252
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  1.143e+00  1.853e-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:  6.678e-01  1.970e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.06
Ra Dec: 337.758 -44.279
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 4.67e-08 +/- 3.15e-08
Energy Flux (Fixed Index): 1.48e-05 +/- 9.99e-06

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) = 6385.2377139
delta logL = 0.101084157457

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6385.23275676
delta logL = 0.106041295624

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1707       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7012       1.0000          .0000       10.000    
     3 'Normalizat'    .65536       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1509       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=   6385.233     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      289 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1704        3.8213        .99233E-04    .73505E-03
   2  Index         2.7010        .65021        .62788E-02    .10637E-03
   3  Normalizat    .65552        .18957        .27980E-03   -.20746E-03
   4  Prefactor     1.1507        .18253        .21026E-03   -.26494E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.17041
  Index      = 2.70099
  Normalizat = 0.655517
  Prefactor  = 1.15072
 **********
 **   18 **HESSE 
 **********

 FCN=   6385.233     FROM HESSE     STATUS=OK            25 CALLS      314 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1704        3.6164        .39693E-05   -1.5300    
   2  Index         2.7010        .61506        .25115E-03   -.47777    
   3  Normalizat    .65552        .18965        .11192E-04   -1.0568    
   4  Prefactor     1.1507        .18260        .42053E-04   -.87862    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07618e-10
Minuit parameter uncertainties:
  1  3.61656
  2  0.617049
  3  0.189842
  4  0.182702
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/339690': 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) = 6385.23275629
delta logL = 0.106041766669

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  4.170e+00  3.617e+00  1.000e-04  1.000e+04 ( 1.000e-12)
306        Index:  2.701e+00  6.170e-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.151e+00  1.827e-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:  6.555e-01  1.898e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.28
Ra Dec: 337.758 -44.279
Photon Index (Free Index): 2.70 +/- 0.62
Photon Flux (Free Index): 5.57e-08 +/- 3.92e-08
Energy Flux (Free Index): 1.34e-05 +/- 8.96e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/339690/cmap_HighResolution_606614401_606873601_4FGL_J2231.0-4416_daily_bin1417.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.67e-08', energy_flux2='1.34e-05', photon_flux_error='3.15e-08', dlogl='1.06e-01', energy_flux='1.48e-05', photon_flux2='5.57e-08', job_status='DONE', time_completed='2021-09-28 13:51:20.934807', photon_index_error2='0.62', photon_index2='2.70', ts='4.06', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='8.96e-06', EG='0.67', time_epoch_completed='1632862280.93', return_code='0', job_id='339690', GAL2='1.15', EG2='0.66', return_code2='0', energy_flux_error='9.99e-06', photon_flux_error2='3.92e-08', ts2='4.28', photon_index='2.43' WHERE bin_id='1417' AND source_name='4FGL J2231.0-4416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 13:51:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0012>
Subject: Job 339690: <4FGL_J2231.0-4416_daily_bin1417> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2231.0-4416_daily_bin1417 337.758 -44.2791 606614401 606873601 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 :                                   852.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            933 sec.

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

