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


Performing analysis on: 4FGL_J2231.0-4416_daily_bin1476
RA = 337.758, Dec = -44.2791
tmin = 621907201, tmax = 622166401
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='340759', job_status='RUN', time_executed='2021-09-28 13:40:32.695046', time_epoch_executed='1632861632.7' WHERE source_name='4FGL J2231.0-4416' and cadence='daily' and bin_id='1476'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/340759

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/340759/ft1_4FGL_J2231.0-4416_daily_bin1476.fits


Retrieving the FT1 file...

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

Retrieving 42 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/340759/ft2_4FGL_J2231.0-4416_daily_bin1476.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/340759/ft1_4FGL_J2231.0-4416_daily_bin1476.fits outfile=/scratch/kocevski/340759/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin1476.fits ra=337.758 dec=-44.2791 rad=12.0 tmin=621907201.0 tmax=622166401.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.48
user 3.25
sys 0.20

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/340759/ft1_filtered_4FGL_J2231.0-4416_daily_bin1476.fits" evtable="EVENTS" scfile=/scratch/kocevski/340759/ft2_4FGL_J2231.0-4416_daily_bin1476.fits sctable="SC_DATA" outfile=/scratch/kocevski/340759/ltcube_621907201_622166401_4FGL_J2231.0-4416_daily_bin1476.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/340759/ft2_4FGL_J2231.0-4416_daily_bin1476.fits
.....................!
real 10.80
user 10.40
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/340759/ft1_filtered_4FGL_J2231.0-4416_daily_bin1476.fits evtable="EVENTS" scfile=/scratch/kocevski/340759/ft2_4FGL_J2231.0-4416_daily_bin1476.fits sctable="SC_DATA" expcube=/scratch/kocevski/340759/ltcube_621907201_622166401_4FGL_J2231.0-4416_daily_bin1476.fits outfile=/scratch/kocevski/340759/expmap_621907201_622166401_4FGL_J2231.0-4416_daily_bin1476.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/340759/ltcube_621907201_622166401_4FGL_J2231.0-4416_daily_bin1476.fits
.....................!
real 190.17
user 185.04
sys 4.43

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/340759/ft1_filtered_4FGL_J2231.0-4416_daily_bin1476.fits scfile=/scratch/kocevski/340759/ft2_4FGL_J2231.0-4416_daily_bin1476.fits outfile=/scratch/kocevski/340759/cmap_621907201_622166401_4FGL_J2231.0-4416_daily_bin1476.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/340759/ft1_filtered_4FGL_J2231.0-4416_daily_bin1476.fits scfile=/scratch/kocevski/340759/ft2_4FGL_J2231.0-4416_daily_bin1476.fits outfile=/scratch/kocevski/340759/cmap_HighResolution_621907201_622166401_4FGL_J2231.0-4416_daily_bin1476.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.140       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10846E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    6.0071       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .62189       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.3733       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .23076E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.4983       1.0000         .10000E-03   10000.    
    10 'Prefactor '    35.189       1.0000         .10000E-03   10000.    
    11 'norm      '    2.8356       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.7337       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    25.497       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.6730       1.0000         .10000E-03   10000.    
    16 'Prefactor '    34.049       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.008       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.2317       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    27.597       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.4654       1.0000         .10000E-03   10000.    
    25 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .15505E-02   1.0000         .10000E-03   10000.    
    27 'norm      '    8.2152       1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.0592       1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.3971       1.0000         .10000E-03   10000.    
    30 'norm      '    .10263E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .12464E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    1.0596       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .73092       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.0898       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=   5143.120     FROM MIGRAD    STATUS=CONVERGED    915 CALLS     5919 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.7931        .51901E-06** at limit **
   2  Prefactor     16.139        22.586        .72547E-07   -.19990E-04
   3  Prefactor     .10000E-03    2.4852       -.42644E-06** at limit **
   4  norm          6.0069        4.2562       -.56887E-08   -.13022E-03
   5  Prefactor     .10000E-03    6.2952        .24927E-06** at limit **
   6  Prefactor     .61654        4.6367       -.44416E-06    .53240E-04
   7  Prefactor     5.3700        94.802        .90120E-06    .29756E-04
   8  Prefactor     .10002E-03    13.021       -.63677E-05** at limit **
   9  Prefactor     3.4978        4.0241        .13841E-06   -.83230E-03
  10  Prefactor     35.149        85.473        .13810E-05    .14960E-04
  11  norm          2.8352        5.0571        .12841E-06   -.54714E-03
  12  Prefactor     2.7330        6.6435        .77264E-06   -.10832E-02
  13  Prefactor     .10000E-03    .81774        .29456E-07** at limit **
  14  Prefactor     25.496        33.541        .42320E-07   -.11675E-04
  15  Prefactor     7.6725        5.9783       -.32864E-07   -.14536E-04
  16  Prefactor     34.048        20.306       -.12208E-06   -.38326E-04
  17  Prefactor     .10000E-03    7.9185        .10997E-06** at limit **
  18  Prefactor     11.000        26.162       -.45266E-06   -.17058E-04
  19  Prefactor     1.2286        7.4018        .17336E-05   -.13014E-02
  20  Prefactor     .10000E-03    37.327       -.11483E-07** at limit **
  21  Prefactor     .10000E-03    1.8239        .43945E-07** at limit **
  22  Prefactor     .10000E-03    20.370        .16207E-07** at limit **
  23  Prefactor     27.588        63.711       -.18080E-06   -.27580E-04
  24  Prefactor     2.4633        20.192        .44090E-07   -.25693E-04
  25  norm          .10000E-03    8.2475        .63191E-07** at limit **
  26  norm          .10000E-03    6.6371       -.88500E-07** at limit **
  27  norm          8.2153        5.9746       -.80285E-07   -.54219E-04
  28  Prefactor     1.0522        11.449       -.10306E-06   -.14367E-03
  29  Prefactor     2.3887        72.382        .79290E-06   -.60922E-05
  30  norm          .10000E-03    3.1886       -.54250E-06** at limit **
  31  Prefactor     .10000E-03    39.340       -.57188E-06** at limit **
  32  norm          1.0581        1.3843       -.10425E-06   -.36723E-03
  33  Normalizat    .73101        .19159        .53325E-06    .38424E-04
  34  Prefactor     1.0897        .17452       -.91394E-06   -.63619E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 16.1389
  Prefactor  = 0.000100001
  norm       = 6.00687
  Prefactor  = 0.0001
  Prefactor  = 0.616544
  Prefactor  = 5.37003
  Prefactor  = 0.000100018
  Prefactor  = 3.49785
  Prefactor  = 35.1488
  norm       = 2.83522
  Prefactor  = 2.73304
  Prefactor  = 0.0001
  Prefactor  = 25.496
  Prefactor  = 7.67251
  Prefactor  = 34.0477
  Prefactor  = 0.0001
  Prefactor  = 11.0004
  Prefactor  = 1.22859
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.5885
  Prefactor  = 2.46332
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 8.21531
  Prefactor  = 1.0522
  Prefactor  = 2.38868
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.05814
  Normalizat = 0.731007
  Prefactor  = 1.08973
 **********
 **   18 **HESSE 
 **********

 FCN=   5143.120     FROM HESSE     STATUS=OK           744 CALLS     6663 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.217        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.139        22.588        .99693E-04   -1.4904    
   3  Prefactor     .10000E-03    9.1031        .21299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.0069        4.2512        .11675E-03   -1.5218    
   5  Prefactor     .10000E-03    6.4048        .17552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .61654        19.641        .28997E-02   -1.5551    
   7  Prefactor     5.3700        94.018        .17337E-03   -1.5244    
   8  Prefactor     .10002E-03    13.967        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.4978        4.0555        .74007E-03   -1.5334    
  10  Prefactor     35.149        85.479        .67556E-04   -1.4522    
  11  norm          2.8352        5.0642        .10532E-02   -1.5371    
  12  Prefactor     2.7330        7.0314        .12313E-02   -1.5377    
  13  Prefactor     .10000E-03    .81897        .63322E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     25.496        33.544        .79333E-04   -1.4698    
  15  Prefactor     7.6725        5.9860        .14477E-03   -1.5154    
  16  Prefactor     34.048        20.294        .68675E-04   -1.4540    
  17  Prefactor     .10000E-03    7.9367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.000        27.433        .12075E-03   -1.5045    
  19  Prefactor     1.2286        20.853        .20254E-02   -1.5486    
  20  Prefactor     .10000E-03    37.328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.8263        .94583E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    20.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     27.588        63.868        .76260E-04   -1.4657    
  24  Prefactor     2.4633        19.924        .26044E-03   -1.5394    
  25  norm          .10000E-03    8.2725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    24.907        .34357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          8.2153        5.9473        .13988E-03   -1.5135    
  28  Prefactor     1.0522        10.642        .41360E-03   -1.5503    
  29  Prefactor     2.3887        71.671        .26449E-03   -1.5399    
  30  norm          .10000E-03    3.2151        .12446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    39.383        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          1.0581        1.3203        .47648E-04   -1.5502    
  33  Normalizat    .73101        .22152        .25926E-03   -1.0268    
  34  Prefactor     1.0897        .20246        .20876E-03   -.89796    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82908e-08
Minuit parameter uncertainties:
  1  9.24278e-05
  2  22.5996
  3  0.000211259
  4  4.25145
  5  3.25209e-05
  6  6.96175
  7  45.0216
  8  0.00101228
  9  4.05584
  10  85.7795
  11  5.06497
  12  7.03356
  13  1.19286e-06
  14  33.5687
  15  5.98648
  16  20.2977
  17  2.07853e-05
  18  27.464
  19  10.1269
  20  7.40275e-05
  21  2.61048e-06
  22  2.97987e-06
  23  64.0269
  24  14.0175
  25  2.07126e-06
  26  0.000294383
  27  5.94776
  28  6.69369
  29  26.2026
  30  4.13959e-05
  31  0.000157022
  32  1.32038
  33  0.22179
  34  0.202602
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  1.090e+00  2.026e-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:  7.310e-01  2.218e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 337.758 -44.279
Photon Flux Upper Limit: 4.23e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.27e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/340759/likelihoodResults_621907201_622166401_4FGL_J2231.0-4416_daily_bin1476.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5143.12006167
delta logL = -0.000117281488201

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5143.11994301
delta logL = 1.38389259519e-06

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 'Index     '    2.3933       1.0000          .0000       10.000    
     3 'Normalizat'    .73101       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0897       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=   5143.120     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      247 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    94.496        .70732E-03** at limit **
   2  Index         1.8668        9.0080        .50000        .29688E-06
   3  Normalizat    .73101        .46571E-01    .25926E-03   -.18325E-03
   4  Prefactor     1.0897        .45222E-01    .20876E-03   -.22849E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.86684
  Normalizat = 0.731007
  Prefactor  = 1.08973
 **********
 **   18 **HESSE 
 **********

 FCN=   5143.120     FROM HESSE     STATUS=OK            29 CALLS      276 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.4638        .14146E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8668        5.9158        .50000       -.67722    
   3  Normalizat    .73101        .20177        .10370E-04   -1.0268    
   4  Prefactor     1.0897        .19599        .41752E-04   -.89796    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2073e-10
Minuit parameter uncertainties:
  1  3.16944e-05
  2  125.433
  3  0.201975
  4  0.196123
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/340759': 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) = 5143.11993234
delta logL = 1.20543081721e-05

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  1.000e-04  3.169e-05  1.000e-04  1.000e+04 ( 1.000e-12)
306        Index:  1.867e+00  1.254e+02  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.090e+00  1.961e-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:  7.310e-01  2.020e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 337.758 -44.279

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.27e-03', job_status='DONE', photon_flux_upper_limit='4.23e-08', time_completed='2021-09-28 13:56:00.846172', job_id='340759', GAL2='1.09', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1632862560.85', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='1.21e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1476' AND source_name='4FGL J2231.0-4416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 13:56:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 340759: <4FGL_J2231.0-4416_daily_bin1476> in cluster <slac> Done

Job <4FGL_J2231.0-4416_daily_bin1476> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep 28 13:40:14 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 13:40:16 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:40:16 2021
Terminated at Tue Sep 28 13:56:01 2021
Results reported at Tue Sep 28 13:56:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2231.0-4416_daily_bin1476 337.758 -44.2791 621907201 622166401 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 :                                   923.06 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             332.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   945 sec.
    Turnaround time :                            947 sec.

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

