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


Performing analysis on: 4FGL_J2231.0-4416_daily_bin1645
RA = 337.758, Dec = -44.2791
tmin = 665712001, tmax = 665971201
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='629220', job_status='RUN', time_executed='2022-02-08 00:37:20.059834', time_epoch_executed='1644309440.06' WHERE source_name='4FGL J2231.0-4416' and cadence='daily' and bin_id='1645'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/629220

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/629220/ft1_4FGL_J2231.0-4416_daily_bin1645.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/629220/ft2_4FGL_J2231.0-4416_daily_bin1645.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/629220/ft1_4FGL_J2231.0-4416_daily_bin1645.fits outfile=/scratch/kocevski/629220/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin1645.fits ra=337.758 dec=-44.2791 rad=12.0 tmin=665712001.0 tmax=665971201.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.61
user 3.35
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/629220/ft1_filtered_4FGL_J2231.0-4416_daily_bin1645.fits" evtable="EVENTS" scfile=/scratch/kocevski/629220/ft2_4FGL_J2231.0-4416_daily_bin1645.fits sctable="SC_DATA" outfile=/scratch/kocevski/629220/ltcube_665712001_665971201_4FGL_J2231.0-4416_daily_bin1645.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/629220/ft2_4FGL_J2231.0-4416_daily_bin1645.fits
.....................!
real 11.80
user 11.46
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/629220/ft1_filtered_4FGL_J2231.0-4416_daily_bin1645.fits evtable="EVENTS" scfile=/scratch/kocevski/629220/ft2_4FGL_J2231.0-4416_daily_bin1645.fits sctable="SC_DATA" expcube=/scratch/kocevski/629220/ltcube_665712001_665971201_4FGL_J2231.0-4416_daily_bin1645.fits outfile=/scratch/kocevski/629220/expmap_665712001_665971201_4FGL_J2231.0-4416_daily_bin1645.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/629220/ltcube_665712001_665971201_4FGL_J2231.0-4416_daily_bin1645.fits
.....................!
real 190.82
user 185.07
sys 5.36

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 182 point sources and 0 extended sources

Setting source of interest to:
4FGL J2231.0-4416 @ 337.758 -44.2791

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/629220/ft1_filtered_4FGL_J2231.0-4416_daily_bin1645.fits scfile=/scratch/kocevski/629220/ft2_4FGL_J2231.0-4416_daily_bin1645.fits outfile=/scratch/kocevski/629220/cmap_665712001_665971201_4FGL_J2231.0-4416_daily_bin1645.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/629220/ft1_filtered_4FGL_J2231.0-4416_daily_bin1645.fits scfile=/scratch/kocevski/629220/ft2_4FGL_J2231.0-4416_daily_bin1645.fits outfile=/scratch/kocevski/629220/cmap_HighResolution_665712001_665971201_4FGL_J2231.0-4416_daily_bin1645.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/629220/ft1_filtered_4FGL_J2231.0-4416_daily_bin1645.fits evtable="EVENTS" scfile=/scratch/kocevski/629220/ft2_4FGL_J2231.0-4416_daily_bin1645.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/629220/Model_4FGL_J2231.0-4416_daily_bin1645.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/629220/ft1_filtered_4FGL_J2231.0-4416_daily_bin1645.fits.....................!
real 43.17
user 41.90
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.641       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.4320       1.0000         .10000E-03   10000.    
     4 'norm      '    .88262       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.6532       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    37.113       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.5125       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .22366E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .16942E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.0178       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.0996       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .13659E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10327E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.1928       1.0000         .10000E-03   10000.    
    30 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    48.833       1.0000         .10000E-03   10000.    
    32 'norm      '    1.5976       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.0966       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .94858       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=   5758.399     FROM MIGRAD    STATUS=CONVERGED    939 CALLS     4826 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.0707        .15777E-06** at limit **
   2  Prefactor     10.636        24.095       -.47154E-06   -.27845E-04
   3  Prefactor     1.4324        4.0827        .14841E-06   -.13038E-03
   4  norm          .88105        2.9289        .19379E-06   -.23705E-04
   5  Prefactor     1.6513        4.5856        .36814E-05   -.88598E-03
   6  Prefactor     .10000E-03    4.3478       -.14613E-06** at limit **
   7  Prefactor     37.095        37.317        .69223E-06    .82540E-06
   8  Prefactor     8.5107        7.8964       -.12521E-06   -.94387E-04
   9  Prefactor     .10000E-03    1.3200        .31101E-08** at limit **
  10  Prefactor     .10000E-03    162.49        .96384E-06** at limit **
  11  norm          .10000E-03    2.8552        .22456E-07** at limit **
  12  Prefactor     .10000E-03    3.9108       -.44770E-07** at limit **
  13  Prefactor     .10000E-03    2.1379        .96208E-06** at limit **
  14  Prefactor     .10000E-03    26.529        .79233E-07** at limit **
  15  Prefactor     .10000E-03    5.0503        .34848E-05** at limit **
  16  Prefactor     .10000E-03    8.5134        .48558E-06** at limit **
  17  Prefactor     .10000E-03    7.4393       -.42082E-06** at limit **
  18  Prefactor     .10000E-03    42.557       -.13933E-05** at limit **
  19  Prefactor     4.0154        9.1901        .11712E-05    .33752E-03
  20  Prefactor     .10000E-03    35.770        .15374E-05** at limit **
  21  Prefactor     9.1003        7.4042        .54045E-07    .22888E-04
  22  Prefactor     .10000E-03    27.768        .61569E-06** at limit **
  23  Prefactor     .10000E-03    18.851       -.10730E-05** at limit **
  24  Prefactor     .10000E-03    9.6909       -.44165E-06** at limit **
  25  norm          .10000E-03    4.7362        .89805E-07** at limit **
  26  norm          .10000E-03    9.7009       -.71386E-05** at limit **
  27  norm          .10000E-03    1.7902       -.10994E-06** at limit **
  28  Prefactor     .10000E-03    8.0551       -.27661E-06** at limit **
  29  Prefactor     2.1977        62.316        .10470E-05    .10164E-04
  30  norm          .10000E-03    2.5653       -.37504E-06** at limit **
  31  Prefactor     48.840        19.773       -.51525E-06   -.62193E-03
  32  norm          1.5979        1.3723       -.34670E-06   -.16329E-02
  33  Normalizat    1.0966        .19019        .83619E-06    .39163E-04
  34  Prefactor     .94865        .17714       -.88573E-06    .72964E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.6361
  Prefactor  = 1.43241
  norm       = 0.881051
  Prefactor  = 1.65127
  Prefactor  = 0.0001
  Prefactor  = 37.0947
  Prefactor  = 8.51071
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.01542
  Prefactor  = 0.0001
  Prefactor  = 9.10027
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.19772
  norm       = 0.0001
  Prefactor  = 48.8402
  norm       = 1.59791
  Normalizat = 1.09656
  Prefactor  = 0.948652
 **********
 **   18 **HESSE 
 **********

 FCN=   5758.399     FROM HESSE     STATUS=OK           728 CALLS     5554 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.0848        .14946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.636        23.967        .12282E-03   -1.5056    
   3  Prefactor     1.4324        4.0721        .24654E-03   -1.5469    
   4  norm          .88105        2.8646        .22401E-03   -1.5520    
   5  Prefactor     1.6513        8.2528        .16415E-02   -1.5451    
   6  Prefactor     .10000E-03    4.3673        .15448E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     37.095        37.271        .65788E-04   -1.4489    
   8  Prefactor     8.5107        7.8899        .13739E-03   -1.5124    
   9  Prefactor     .10000E-03    1.3291        .85120E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    163.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.8683        .12523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.9462        .14651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.3504        .20437E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    26.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.813        .28985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.5312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.4481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    42.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.0154        9.2353        .20119E-03   -1.5307    
  20  Prefactor     .10000E-03    35.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.1003        7.4008        .13286E-03   -1.5105    
  22  Prefactor     .10000E-03    27.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    18.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    9.7164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    4.7439        .16128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    13.229        .32368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1.7946        .99096E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    8.1044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     2.1977        61.664        .27791E-03   -1.5411    
  30  norm          .10000E-03    2.6168        .23621E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     48.840        19.705        .57384E-04   -1.4309    
  32  norm          1.5979        1.3269        .75366E-04   -1.5455    
  33  Normalizat    1.0966        .22059        .23672E-03   -.89863    
  34  Prefactor     .94865        .20854        .23849E-03   -.94461    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.85967e-09
Minuit parameter uncertainties:
  1  7.17838e-06
  2  23.989
  3  4.07291
  4  2.86501
  5  7.3845
  6  6.28796e-06
  7  37.294
  8  7.89083
  9  3.11374e-07
  10  8.12067e-05
  11  2.08854e-06
  12  5.51479e-06
  13  0.000226315
  14  7.36251e-06
  15  0.000170315
  16  1.70698e-05
  17  1.09645e-05
  18  3.39198e-05
  19  9.23856
  20  0.000105281
  21  7.40152
  22  1.52505e-05
  23  4.79256e-05
  24  2.68284e-06
  25  1.25263e-06
  26  0.000434864
  27  1.03415e-05
  28  9.66441e-05
  29  23.3086
  30  4.23973e-05
  31  19.7075
  32  1.32692
  33  0.220771
  34  0.208715
Done.

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

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  1.000e-04  2.263e-04  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.487e-01  2.087e-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.097e+00  2.208e-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: 8.02e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/629220/likelihoodResults_665712001_665971201_4FGL_J2231.0-4416_daily_bin1645.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) = 5758.39971298
delta logL = -0.000509469296048

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5758.39920427
delta logL = -7.68819518271e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11828E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4764       1.0000          .0000       10.000    
     3 'Normalizat'    1.0967       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94852       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=   5758.399     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      232 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.5708        .60233E-01** at limit **
   2  Index         2.5311        6.2262        .50000       -.44925E-04
   3  Normalizat    1.0966        .54759E-02    .38134E-01   -.47591E-04
   4  Prefactor     .94865        .51975E-02    .45620E-01   -.26023E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 2.53109
  Normalizat = 1.09655
  Prefactor  = 0.948651
 **********
 **   18 **HESSE 
 **********

 FCN=   5758.399     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      267 TOTAL
                     EDM=   .50E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1420.9        .19297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5311        8.0312        .50000       -.51643    
   3  Normalizat    1.0966        .61034E-01    .23672E-03   -.89863    
   4  Prefactor     .94865        .57616E-01    .23849E-03   -.94461    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.02022e-07
Minuit parameter uncertainties:
  1  0.00487663
  2  48.9055
  3  0.0610383
  4  0.0576199
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/629220': 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): 102
logL (Free Index) = 5758.39920237
delta logL = 1.13605801744e-06

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  1.000e-04  4.877e-03  1.000e-04  1.000e+04 ( 1.000e-12)
306        Index:  2.531e+00  4.891e+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.487e-01  5.762e-02  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.097e+00  6.104e-02  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/629220/cmap_HighResolution_665712001_665971201_4FGL_J2231.0-4416_daily_bin1645.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.21e-03', job_status='DONE', photon_flux_upper_limit='8.02e-08', time_completed='2022-02-08 00:52:35.524650', job_id='629220', GAL2='0.95', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1644310355.52', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='1.14e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1645' AND source_name='4FGL J2231.0-4416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Feb  8 00:52:35 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 629220: <4FGL_J2231.0-4416_daily_bin1645> in cluster <slac> Done

Job <4FGL_J2231.0-4416_daily_bin1645> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Feb  8 00:36:04 2022
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb  8 00:36:09 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb  8 00:36:09 2022
Terminated at Tue Feb  8 00:52:36 2022
Results reported at Tue Feb  8 00:52:36 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2231.0-4416_daily_bin1645 337.758 -44.2791 665712001 665971201 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 :                                   916.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             311.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   986 sec.
    Turnaround time :                            992 sec.

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

