/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 1 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 = 7490
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2231.0-4416_daily_bin192
RA = 337.758, Dec = -44.2791
tmin = 289094401, tmax = 289353601
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='332124', job_status='RUN', time_executed='2021-09-28 13:10:32.274984', time_epoch_executed='1632859832.28' WHERE source_name='4FGL J2231.0-4416' and cadence='daily' and bin_id='192'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/332124

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/332124/ft1_4FGL_J2231.0-4416_daily_bin192.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/332124/ft2_4FGL_J2231.0-4416_daily_bin192.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/332124/ft1_4FGL_J2231.0-4416_daily_bin192.fits outfile=/scratch/kocevski/332124/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin192.fits ra=337.758 dec=-44.2791 rad=12.0 tmin=289094401.0 tmax=289353601.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.54
user 3.32
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/332124/ft2_4FGL_J2231.0-4416_daily_bin192.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/332124/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin192.fits evtable="EVENTS" outfile="/scratch/kocevski/332124/ft1_filtered_4FGL_J2231.0-4416_daily_bin192.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.59
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/332124/ft1_filtered_4FGL_J2231.0-4416_daily_bin192.fits" evtable="EVENTS" scfile=/scratch/kocevski/332124/ft2_4FGL_J2231.0-4416_daily_bin192.fits sctable="SC_DATA" outfile=/scratch/kocevski/332124/ltcube_289094401_289353601_4FGL_J2231.0-4416_daily_bin192.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/332124/ft2_4FGL_J2231.0-4416_daily_bin192.fits
.....................!
real 12.03
user 11.66
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/332124/ft1_filtered_4FGL_J2231.0-4416_daily_bin192.fits evtable="EVENTS" scfile=/scratch/kocevski/332124/ft2_4FGL_J2231.0-4416_daily_bin192.fits sctable="SC_DATA" expcube=/scratch/kocevski/332124/ltcube_289094401_289353601_4FGL_J2231.0-4416_daily_bin192.fits outfile=/scratch/kocevski/332124/expmap_289094401_289353601_4FGL_J2231.0-4416_daily_bin192.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/332124/ltcube_289094401_289353601_4FGL_J2231.0-4416_daily_bin192.fits
.....................!
real 190.47
user 185.13
sys 4.92

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/332124/ft1_filtered_4FGL_J2231.0-4416_daily_bin192.fits scfile=/scratch/kocevski/332124/ft2_4FGL_J2231.0-4416_daily_bin192.fits outfile=/scratch/kocevski/332124/cmap_289094401_289353601_4FGL_J2231.0-4416_daily_bin192.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=337.758 yref=-44.2791 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.080       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.430       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    35.805       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .17622E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10469E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.1177       1.0000         .10000E-03   10000.    
    10 'Prefactor '    67.584       1.0000         .10000E-03   10000.    
    11 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.2780       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.8061       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.8286       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.8940       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    105.71       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.6451       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    62.178       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10376E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    4.2041       1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.9806       1.0000         .10000E-03   10000.    
    29 'Prefactor '    69.914       1.0000         .10000E-03   10000.    
    30 'norm      '    .27604E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    4.1194       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.4604       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .73461       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=   4757.750     FROM MIGRAD    STATUS=CONVERGED    924 CALLS     4808 TOTAL
                     EDM=   .55E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.078        13.421        .84205E-07    .49457E-05
   2  Prefactor     .10000E-03    8.7645        .34031E-07** at limit **
   3  Prefactor     11.429        6.7658        .55137E-07    .27858E-04
   4  norm          .10000E-03    1.5607       -.79740E-08** at limit **
   5  Prefactor     35.809        17.343        .46223E-07   -.50311E-05
   6  Prefactor     .10000E-03    5.0075       -.79108E-08** at limit **
   7  Prefactor     .10000E-03    153.70       -.13601E-05** at limit **
   8  Prefactor     .10000E-03    19.001       -.24306E-05** at limit **
   9  Prefactor     7.1180        5.2003        .87689E-07    .26796E-04
  10  Prefactor     67.632        95.539        .15024E-05    .10374E-04
  11  norm          .10000E-03    9.2059       -.19222E-06** at limit **
  12  Prefactor     1.2777        15.726        .21363E-05   -.15379E-04
  13  Prefactor     .10000E-03    2.8648       -.61026E-08** at limit **
  14  Prefactor     .10000E-03    45.447        .39351E-06** at limit **
  15  Prefactor     .10000E-03    4.6918       -.55308E-07** at limit **
  16  Prefactor     7.8079        21.917       -.62667E-07   -.10467E-05
  17  Prefactor     9.8324        24.320        .19116E-06   -.29914E-05
  18  Prefactor     3.8847        54.030        .61799E-06    .27891E-05
  19  Prefactor     .10000E-03    5.4928        .58350E-08** at limit **
  20  Prefactor     105.73        91.157       -.18625E-06   -.68444E-05
  21  Prefactor     8.6480        8.9827        .88516E-07   -.10787E-04
  22  Prefactor     .10000E-03    18.266       -.13243E-06** at limit **
  23  Prefactor     62.187        66.796       -.66101E-07   -.84186E-05
  24  Prefactor     .10000E-03    60.840       -.47931E-06** at limit **
  25  norm          .10000E-03    4.5621        .38824E-07** at limit **
  26  norm          .10000E-03    2.4358        .29578E-08** at limit **
  27  norm          4.1993        6.2953       -.79552E-06   -.18345E-03
  28  Prefactor     6.9825        6.4552       -.75119E-07   -.53173E-05
  29  Prefactor     69.834        55.777       -.23265E-06   -.29001E-04
  30  norm          .10000E-03    7.3804        .19762E-05** at limit **
  31  Prefactor     .10000E-03    23.842        .13470E-06** at limit **
  32  norm          4.1197        1.9365       -.36375E-07    .10736E-04
  33  Normalizat    1.4601        .24586       -.12122E-05    .83222E-04
  34  Prefactor     .73486        .20729        .10652E-05   -.37336E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.0784
  Prefactor  = 0.0001
  Prefactor  = 11.429
  norm       = 0.0001
  Prefactor  = 35.8091
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.11797
  Prefactor  = 67.6323
  norm       = 0.0001
  Prefactor  = 1.27773
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.80791
  Prefactor  = 9.83242
  Prefactor  = 3.88468
  Prefactor  = 0.0001
  Prefactor  = 105.727
  Prefactor  = 8.648
  Prefactor  = 0.0001
  Prefactor  = 62.187
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.19928
  Prefactor  = 6.98253
  Prefactor  = 69.8341
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.11966
  Normalizat = 1.46006
  Prefactor  = 0.734856
 **********
 **   18 **HESSE 
 **********

 FCN=   4757.750     FROM HESSE     STATUS=OK           730 CALLS     5538 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.078        13.419        .11526E-03   -1.5013    
   2  Prefactor     .10000E-03    8.7660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.429        6.7695        .11849E-03   -1.5032    
   4  norm          .10000E-03    1.5665        .84151E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     35.809        17.357        .66974E-04   -1.4510    
   6  Prefactor     .10000E-03    5.0152        .15070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    155.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    19.517        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.1180        5.1980        .12837E-03   -1.5174    
  10  Prefactor     67.632        95.924        .24411E-03   -1.4061    
  11  norm          .10000E-03    9.5399        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.2777        15.757        .19644E-02   -1.5482    
  13  Prefactor     .10000E-03    2.9174        .11394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    45.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.7475        .14579E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.8079        21.911        .14352E-03   -1.5149    
  17  Prefactor     9.8324        24.326        .12782E-03   -1.5081    
  18  Prefactor     3.8847        54.486        .20447E-03   -1.5314    
  19  Prefactor     .10000E-03    5.5134        .15779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     105.73        91.027        .19556E-03   -1.3648    
  21  Prefactor     8.6480        8.9908        .13633E-03   -1.5120    
  22  Prefactor     .10000E-03    18.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     62.187        66.911        .50887E-04   -1.4129    
  24  Prefactor     .10000E-03    61.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    4.5628        .14389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    2.4360        .10514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          4.1993        6.3695        .19654E-03   -1.5298    
  28  Prefactor     6.9825        6.4639        .15184E-03   -1.5179    
  29  Prefactor     69.834        56.160        .24004E-03   -1.4035    
  30  norm          .10000E-03    7.8510        .36990E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    24.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          4.1197        1.9379        .62918E-04   -1.5302    
  33  Normalizat    1.4601        .28389        .24762E-03   -.78907    
  34  Prefactor     .73486        .23681        .29543E-03   -1.0218    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5996e-09
Minuit parameter uncertainties:
  1  13.4225
  2  1.96083e-06
  3  6.76996
  4  4.75197e-07
  5  17.3596
  6  7.10024e-07
  7  3.63675e-05
  8  5.8658e-05
  9  5.19836
  10  96.1441
  11  6.17584e-06
  12  8.97668
  13  2.03073e-06
  14  4.81851e-05
  15  2.06627e-06
  16  21.9335
  17  24.3508
  18  29.1289
  19  8.59968e-07
  20  91.1473
  21  8.99218
  22  8.66149e-06
  23  66.9923
  24  7.50921e-05
  25  9.18515e-08
  26  3.81433e-07
  27  6.37051
  28  6.46454
  29  56.2029
  30  1.82683e-05
  31  1.02313e-05
  32  1.93791
  33  0.284203
  34  0.237141
Done.

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

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  1.000e-04  2.031e-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:  7.349e-01  2.371e-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.460e+00  2.842e-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.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/332124/likelihoodResults_289094401_289353601_4FGL_J2231.0-4416_daily_bin192.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) = 4757.75187766
delta logL = -0.00162629221904

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4757.75025142
delta logL = -5.13064151164e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4353       1.0000          .0000       10.000    
     3 'Normalizat'    1.4601       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73487       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=   4757.750     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      261 TOTAL
                     EDM=   .36E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .11234        .33639E-01** at limit **
   2  Index         3.0012        6.2452        .50000       -.17319E-06
   3  Normalizat    1.4601        .14866E-02    .24762E-03    .54396E-03
   4  Prefactor     .73486        .13137E-02    .29543E-03    .42861E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.00121
  Normalizat = 1.46006
  Prefactor  = 0.734859
 **********
 **   18 **HESSE 
 **********

 FCN=   4757.750     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      292 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    53.544        .17547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.0012        7.1861        .50000       -.41125    
   3  Normalizat    1.4601        .23889E-01    .49524E-04   -.78907    
   4  Prefactor     .73486        .21108E-01    .59087E-04   -1.0218    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.34003e-11
Minuit parameter uncertainties:
  1  0.000123063
  2  571.778
  3  0.0238888
  4  0.0211078
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/332124': 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) = 4757.75024958
delta logL = 1.78340724233e-06

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  1.000e-04  1.231e-04  1.000e-04  1.000e+04 ( 1.000e-12)
306        Index:  3.001e+00  5.718e+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:  7.349e-01  2.111e-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.460e+00  2.389e-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/332124/cmap_HighResolution_289094401_289353601_4FGL_J2231.0-4416_daily_bin192.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.93e-03', job_status='DONE', photon_flux_upper_limit='8.96e-08', time_completed='2021-09-28 13:24:00.100748', job_id='332124', GAL2='0.73', fit_tolerance='1e-08', EG2='1.46', EG='1.46', time_epoch_completed='1632860640.1', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='1.78e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='192' AND source_name='4FGL J2231.0-4416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 13:24:00 PDT 2021


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

Job <4FGL_J2231.0-4416_daily_bin192> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 13:10:21 2021
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 13:10:22 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:10:22 2021
Terminated at Tue Sep 28 13:24:00 2021
Results reported at Tue Sep 28 13:24:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2231.0-4416_daily_bin192 337.758 -44.2791 289094401 289353601 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 :                                   806.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             287.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            819 sec.

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

