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


Performing analysis on: 4FGL_J2231.0-4416_daily_bin1020
RA = 337.758, Dec = -44.2791
tmin = 503712001, tmax = 503971201
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='338017', job_status='RUN', time_executed='2021-09-28 13:32:09.305060', time_epoch_executed='1632861129.31' WHERE source_name='4FGL J2231.0-4416' and cadence='daily' and bin_id='1020'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/338017

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/338017/ft1_4FGL_J2231.0-4416_daily_bin1020.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/338017/ft2_4FGL_J2231.0-4416_daily_bin1020.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/338017/ft1_4FGL_J2231.0-4416_daily_bin1020.fits outfile=/scratch/kocevski/338017/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin1020.fits ra=337.758 dec=-44.2791 rad=12.0 tmin=503712001.0 tmax=503971201.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.56
user 5.31
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/338017/ft1_filtered_4FGL_J2231.0-4416_daily_bin1020.fits" evtable="EVENTS" scfile=/scratch/kocevski/338017/ft2_4FGL_J2231.0-4416_daily_bin1020.fits sctable="SC_DATA" outfile=/scratch/kocevski/338017/ltcube_503712001_503971201_4FGL_J2231.0-4416_daily_bin1020.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/338017/ft2_4FGL_J2231.0-4416_daily_bin1020.fits
.....................!
real 11.69
user 11.29
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/338017/ft1_filtered_4FGL_J2231.0-4416_daily_bin1020.fits evtable="EVENTS" scfile=/scratch/kocevski/338017/ft2_4FGL_J2231.0-4416_daily_bin1020.fits sctable="SC_DATA" expcube=/scratch/kocevski/338017/ltcube_503712001_503971201_4FGL_J2231.0-4416_daily_bin1020.fits outfile=/scratch/kocevski/338017/expmap_503712001_503971201_4FGL_J2231.0-4416_daily_bin1020.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/338017/ltcube_503712001_503971201_4FGL_J2231.0-4416_daily_bin1020.fits
.....................!
real 190.23
user 184.31
sys 5.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/338017/ft1_filtered_4FGL_J2231.0-4416_daily_bin1020.fits scfile=/scratch/kocevski/338017/ft2_4FGL_J2231.0-4416_daily_bin1020.fits outfile=/scratch/kocevski/338017/cmap_503712001_503971201_4FGL_J2231.0-4416_daily_bin1020.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/338017/ft1_filtered_4FGL_J2231.0-4416_daily_bin1020.fits scfile=/scratch/kocevski/338017/ft2_4FGL_J2231.0-4416_daily_bin1020.fits outfile=/scratch/kocevski/338017/cmap_HighResolution_503712001_503971201_4FGL_J2231.0-4416_daily_bin1020.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=337.758 yref=-44.2791 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/338017/ft1_filtered_4FGL_J2231.0-4416_daily_bin1020.fits evtable="EVENTS" scfile=/scratch/kocevski/338017/ft2_4FGL_J2231.0-4416_daily_bin1020.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/338017/Model_4FGL_J2231.0-4416_daily_bin1020.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/338017/ft1_filtered_4FGL_J2231.0-4416_daily_bin1020.fits.....................!
real 36.56
user 35.18
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.317       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.4705       1.0000         .10000E-03   10000.    
     4 'norm      '    10.478       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.8667       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .96507E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    101.83       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    90.034       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.2898       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.2376       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.4041       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.579       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13087E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    67.991       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    6.8111       1.0000         .10000E-03   10000.    
    30 'norm      '    .31081       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .12705E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    .96091       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.0096       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .74610       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=   3960.357     FROM MIGRAD    STATUS=CONVERGED    916 CALLS     4888 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.750        .28678E-06** at limit **
   2  Prefactor     13.324        38.029        .11111E-05    .99372E-06
   3  Prefactor     6.4705        6.6224        .75988E-07   -.15744E-04
   4  norm          10.479        6.0046        .76656E-08   -.12128E-03
   5  Prefactor     6.8718        14.266        .56921E-06   -.15620E-03
   6  Prefactor     .10009E-03    17.513        .72551E-06** at limit **
   7  Prefactor     101.83        64.981       -.62460E-06   -.97264E-05
   8  Prefactor     .10000E-03    16.304       -.49708E-06** at limit **
   9  Prefactor     .10000E-03    2.6844        .32481E-07** at limit **
  10  Prefactor     90.075        135.48        .32646E-05    .72185E-04
  11  norm          .10000E-03    8.6812       -.11700E-07** at limit **
  12  Prefactor     6.2898        8.9537        .50029E-06   -.50770E-04
  13  Prefactor     1.2375        8.7922        .18704E-05   -.74006E-04
  14  Prefactor     .10000E-03    30.067       -.45486E-06** at limit **
  15  Prefactor     7.4047        8.8174        .23899E-05   -.16974E-03
  16  Prefactor     .10000E-03    71.213        .15697E-05** at limit **
  17  Prefactor     .10000E-03    7.1203        .39881E-06** at limit **
  18  Prefactor     22.553        41.911       -.27596E-05   -.91201E-04
  19  Prefactor     .10000E-03    66.347       -.50388E-05** at limit **
  20  Prefactor     67.953        148.88       -.33297E-05   -.44843E-04
  21  Prefactor     .10000E-03    5.1466       -.30162E-08** at limit **
  22  Prefactor     .10000E-03    20.019        .60326E-08** at limit **
  23  Prefactor     .10000E-03    15.234        .61310E-06** at limit **
  24  Prefactor     .10000E-03    20.545        .42881E-06** at limit **
  25  norm          .10000E-03    6.7557       -.31447E-06** at limit **
  26  norm          .10000E-03    6.4373        .46371E-07** at limit **
  27  norm          .10000E-03    4.0682        .89780E-08** at limit **
  28  Prefactor     .10000E-03    7.7245       -.26374E-06** at limit **
  29  Prefactor     6.8108        45.213       -.12845E-06   -.62443E-06
  30  norm          .30638        5.0125        .49934E-07    .48270E-04
  31  Prefactor     .10000E-03    107.76       -.95037E-06** at limit **
  32  norm          .96095        2.3454        .40396E-06    .14700E-04
  33  Normalizat    1.0097        .21581       -.60229E-06   -.12964E-03
  34  Prefactor     .74596        .17915       -.10278E-05   -.12064E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 13.3237
  Prefactor  = 6.47046
  norm       = 10.4785
  Prefactor  = 6.87181
  Prefactor  = 0.00010009
  Prefactor  = 101.825
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 90.0752
  norm       = 0.0001
  Prefactor  = 6.28978
  Prefactor  = 1.23746
  Prefactor  = 0.0001
  Prefactor  = 7.40472
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 22.5526
  Prefactor  = 0.000100001
  Prefactor  = 67.9526
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.81081
  norm       = 0.306378
  Prefactor  = 0.0001
  norm       = 0.960951
  Normalizat = 1.00972
  Prefactor  = 0.745961
 **********
 **   18 **HESSE 
 **********

 FCN=   3960.357     FROM HESSE     STATUS=OK           728 CALLS     5616 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.324        37.940        .10976E-03   -1.4978    
   3  Prefactor     6.4705        6.6179        .15778E-03   -1.5199    
   4  norm          10.479        5.9815        .10481E-03   -1.5060    
   5  Prefactor     6.8718        12.243        .15311E-03   -1.5184    
   6  Prefactor     .10009E-03    110.33        .41524E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     101.83        64.957        .39843E-04   -1.3686    
   8  Prefactor     .10000E-03    16.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.6895        .10069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     90.075        138.44        .21174E-03   -1.3807    
  11  norm          .10000E-03    8.7192        .18110E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.2898        9.0061        .16005E-03   -1.5206    
  13  Prefactor     1.2375        8.7022        .33149E-03   -1.5485    
  14  Prefactor     .10000E-03    30.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.4047        8.8882        .73698E-03   -1.5164    
  16  Prefactor     .10000E-03    72.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.1447        .16424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     22.553        42.024        .84296E-04   -1.4758    
  19  Prefactor     .10000E-03    66.692        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     67.953        150.06        .24339E-03   -1.4057    
  21  Prefactor     .10000E-03    5.1960        .13938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    20.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    15.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    20.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    6.7734        .15991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    6.4422        .15587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    4.0942        .12369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    7.7641        .17064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     6.8108        95.107        .15374E-03   -1.5186    
  30  norm          .30638        70.306        .22789E-02   -1.5597    
  31  Prefactor     .10000E-03    110.49        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          .96095        2.2929        .14400E-03   -1.5512    
  33  Normalizat    1.0097        .24842        .23421E-03   -.92705    
  34  Prefactor     .74596        .20664        .23734E-03   -1.0175    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37445e-09
Minuit parameter uncertainties:
  1  3.2408e-05
  2  38.0084
  3  6.61862
  4  5.98188
  5  12.2476
  6  0.00631584
  7  65.0026
  8  0.000186158
  9  8.14867e-07
  10  138.943
  11  1.14122e-05
  12  9.00806
  13  6.56421
  14  0.000103425
  15  8.88981
  16  0.00044056
  17  4.18348e-05
  18  42.0795
  19  0.000595203
  20  150.906
  21  1.01686e-06
  22  1.04141e-05
  23  9.67773e-05
  24  9.36668e-05
  25  3.25043e-05
  26  4.30821e-06
  27  4.3384e-06
  28  2.81019e-05
  29  51.0001
  30  9.29184
  31  0.00034004
  32  2.2931
  33  0.248708
  34  0.206856
Done.

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

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  1.237e+00  6.564e+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:  7.460e-01  2.069e-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.010e+00  2.487e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.04
Ra Dec: 337.758 -44.279
Photon Flux Upper Limit: 1.46e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.13e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/338017/likelihoodResults_503712001_503971201_4FGL_J2231.0-4416_daily_bin1020.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): 0
logL (Free Index) = 3960.31561914
delta logL = 0.0416083647615

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3960.31434297
delta logL = 0.0428845392189

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4144       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9241       1.0000          .0000       10.000    
     3 'Normalizat'    .99664       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75109       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3960.314     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      247 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4144        6.5931        .99099E-03   -.65098E-03
   2  Index         2.9242        2.0420        .12941E-01    .16201E-04
   3  Normalizat    .99666        .23405        .23559E-03   -.24128E-07
   4  Prefactor     .75108        .20212        .23660E-03    .34115E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.41443
  Index      = 2.92419
  Normalizat = 0.996665
  Prefactor  = 0.751079
 **********
 **   18 **HESSE 
 **********

 FCN=   3960.314     FROM HESSE     STATUS=OK            25 CALLS      272 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4144        4.9718        .39639E-04   -1.5470    
   2  Index         2.9242        1.6842        .51763E-03   -.42812    
   3  Normalizat    .99666        .23458        .94235E-05   -.93142    
   4  Prefactor     .75108        .20219        .47321E-04   -1.0156    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.33216e-10
Minuit parameter uncertainties:
  1  4.97322
  2  1.72527
  3  0.23482
  4  0.202389
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/338017': 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) = 3960.31434294
delta logL = 0.042884560849

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  1.414e+00  4.973e+00  1.000e-04  1.000e+04 ( 1.000e-12)
306        Index:  2.924e+00  1.725e+00  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:  7.511e-01  2.024e-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:  9.967e-01  2.348e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
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/338017/cmap_HighResolution_503712001_503971201_4FGL_J2231.0-4416_daily_bin1020.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', job_status='DONE', photon_flux_upper_limit='1.46e-07', time_completed='2021-09-28 13:44:07.850289', job_id='338017', GAL2='0.75', fit_tolerance='1e-08', EG2='1.00', EG='1.01', time_epoch_completed='1632861847.85', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='4.29e-02', ts2='0.13', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1020' AND source_name='4FGL J2231.0-4416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 13:44:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 338017: <4FGL_J2231.0-4416_daily_bin1020> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2231.0-4416_daily_bin1020 337.758 -44.2791 503712001 503971201 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 :                                   716.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             344.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            823 sec.

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

