/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 7 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7393
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2231.0-4416_daily_bin1255
RA = 337.758, Dec = -44.2791
tmin = 564624001, tmax = 564883201
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='339436', job_status='RUN', time_executed='2021-09-28 13:35:42.660202', time_epoch_executed='1632861342.66' WHERE source_name='4FGL J2231.0-4416' and cadence='daily' and bin_id='1255'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/339436

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/339436/ft1_4FGL_J2231.0-4416_daily_bin1255.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/339436/ft2_4FGL_J2231.0-4416_daily_bin1255.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/339436/ft1_4FGL_J2231.0-4416_daily_bin1255.fits outfile=/scratch/kocevski/339436/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin1255.fits ra=337.758 dec=-44.2791 rad=12.0 tmin=564624001.0 tmax=564883201.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.59
user 3.37
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/339436/ft1_filtered_4FGL_J2231.0-4416_daily_bin1255.fits" evtable="EVENTS" scfile=/scratch/kocevski/339436/ft2_4FGL_J2231.0-4416_daily_bin1255.fits sctable="SC_DATA" outfile=/scratch/kocevski/339436/ltcube_564624001_564883201_4FGL_J2231.0-4416_daily_bin1255.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/339436/ft2_4FGL_J2231.0-4416_daily_bin1255.fits
.....................!
real 11.70
user 11.31
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/339436/ft1_filtered_4FGL_J2231.0-4416_daily_bin1255.fits evtable="EVENTS" scfile=/scratch/kocevski/339436/ft2_4FGL_J2231.0-4416_daily_bin1255.fits sctable="SC_DATA" expcube=/scratch/kocevski/339436/ltcube_564624001_564883201_4FGL_J2231.0-4416_daily_bin1255.fits outfile=/scratch/kocevski/339436/expmap_564624001_564883201_4FGL_J2231.0-4416_daily_bin1255.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/339436/ltcube_564624001_564883201_4FGL_J2231.0-4416_daily_bin1255.fits
.....................!
real 189.71
user 185.00
sys 4.33

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/339436/ft1_filtered_4FGL_J2231.0-4416_daily_bin1255.fits scfile=/scratch/kocevski/339436/ft2_4FGL_J2231.0-4416_daily_bin1255.fits outfile=/scratch/kocevski/339436/cmap_564624001_564883201_4FGL_J2231.0-4416_daily_bin1255.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/339436/ft1_filtered_4FGL_J2231.0-4416_daily_bin1255.fits scfile=/scratch/kocevski/339436/ft2_4FGL_J2231.0-4416_daily_bin1255.fits outfile=/scratch/kocevski/339436/cmap_HighResolution_564624001_564883201_4FGL_J2231.0-4416_daily_bin1255.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/339436/ft1_filtered_4FGL_J2231.0-4416_daily_bin1255.fits evtable="EVENTS" scfile=/scratch/kocevski/339436/ft2_4FGL_J2231.0-4416_daily_bin1255.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/339436/Model_4FGL_J2231.0-4416_daily_bin1255.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/339436/ft1_filtered_4FGL_J2231.0-4416_daily_bin1255.fits.....................!
real 16.67
user 15.43
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/339436/ft1_filtered_4FGL_J2231.0-4416_daily_bin1255.fits', '/scratch/kocevski/339436/ft2_4FGL_J2231.0-4416_daily_bin1255.fits', expMap='/scratch/kocevski/339436/expmap_564624001_564883201_4FGL_J2231.0-4416_daily_bin1255.fits', expCube='/scratch/kocevski/339436/ltcube_564624001_564883201_4FGL_J2231.0-4416_daily_bin1255.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/339436/Model_4FGL_J2231.0-4416_daily_bin1255.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/339436/ft1_filtered_4FGL_J2231.0-4416_daily_bin1255.fits
Spacecraft file(s): /scratch/kocevski/339436/ft2_4FGL_J2231.0-4416_daily_bin1255.fits
Exposure map: /scratch/kocevski/339436/expmap_564624001_564883201_4FGL_J2231.0-4416_daily_bin1255.fits
Exposure cube: /scratch/kocevski/339436/ltcube_564624001_564883201_4FGL_J2231.0-4416_daily_bin1255.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/339436/Model_4FGL_J2231.0-4416_daily_bin1255.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 535.551241573

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 529.505020673

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.930       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12077       1.0000         .10000E-03   10000.    
     3 'Prefactor '    37.003       1.0000         .10000E-03   10000.    
     4 'norm      '    14.058       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.565       1.0000         .10000E-03   10000.    
     6 'Prefactor '    43.433       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.9350       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .16484E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.8750       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.9028       1.0000         .10000E-03   10000.    
    11 'norm      '    1.6153       1.0000         .10000E-03   10000.    
    12 'Prefactor '    38.020       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .15306E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .19840E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.340       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .47042       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.753       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.1069       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.5390       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.0694       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .46060E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.175       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .99299E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.5499       1.0000         .10000E-03   10000.    
    25 'norm      '    390.30       1.0000         .10000E-03   10000.    
    26 'norm      '    .82936       1.0000         .10000E-03   10000.    
    27 'norm      '    .86288E-02   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .65460E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    22.364       1.0000         .10000E-03   10000.    
    30 'norm      '    .36498E-01   1.0000         .10000E-03   10000.    
    31 'Prefactor '    1.2536       1.0000         .10000E-03   10000.    
    32 'norm      '    7.2906       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.1209       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   529.1674     FROM MIGRAD    STATUS=CONVERGED    441 CALLS      770 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     48.577        71.392        .14790E-02   -.91495E-04
   2  Prefactor     .10000E-03    59.023        .96098E-02** at limit **
   3  Prefactor     39.434        149.90        .16471E-02    .17702E-02
   4  norm          14.252        16.644        .26707E-02   -.23442E-03
   5  Prefactor     15.206        22.202        .26237E-02    .39662E-02
   6  Prefactor     44.635        34.829        .15208E-02    .55735E-03
   7  Prefactor     .59344E-02    1437.5        .45262E-02    .25256E-02
   8  Prefactor     .10000E-03    108.45        .10197E-01** at limit **
   9  Prefactor     1.8750        1.0409         .0000         .0000    
  10  Prefactor     .10263E-03    .42687E-01   -.16904E-04** at limit **
  11  norm          1.6153        1.0584         .0000         .0000    
  12  Prefactor     39.070        1.0137        .12816E-06    .64487E-04
  13  Prefactor     .10000E-03    .20699        .80197E-05** at limit **
  14  Prefactor     .10000E-03    .20802        .68584E-05** at limit **
  15  Prefactor     .10035E-03    .98946E-02    .16987E-05** at limit **
  16  Prefactor     .10000E-03    .31077       -.93704E-07** at limit **
  17  Prefactor     19.952        1.2049        .53540E-05    .15161E-03
  18  Prefactor     .25073        .24896       -.27911E-05    .44507E-03
  19  Prefactor     .50597        .45572        .72506E-05   -.18506E-02
  20  Prefactor     4.0694        1.0077         .0000         .0000    
  21  Prefactor     .10000E-03    .28083        .12355E-05** at limit **
  22  Prefactor     2198.2        13.005        .47267E-04   -.20060E-03
  23  Prefactor     .10000E-03    .22600        .44675E-06** at limit **
  24  Prefactor     3.5499        1.0103         .0000         .0000    
  25  norm          355.17        .95568       -.33177E-05   -.46043E-02
  26  norm          .87766E-03    .39368       -.22387E-05** at limit **
  27  norm          .10000E-03    .21032        .27600E-06** at limit **
  28  Prefactor     .10000E-03    .27607        .12753E-04** at limit **
  29  Prefactor     94.528        2.0490        .47603E-04    .10167E-02
  30  norm          .10000E-03    .21178       -.27136E-04** at limit **
  31  Prefactor     .10065E-03    .24888        .17416E-04** at limit **
  32  norm          7.2906        1.0024         .0000         .0000    
  33  Normalizat    .10000E-01    .25505        .11986E-04** at limit **
  34  Prefactor     1.0679        1.1123        .73518E-07    .34449E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 48.5773
  Prefactor  = 0.0001
  Prefactor  = 39.4343
  norm       = 14.2519
  Prefactor  = 15.2059
  Prefactor  = 44.6354
  Prefactor  = 0.00593444
  Prefactor  = 0.000100002
  Prefactor  = 1.87498
  Prefactor  = 0.000102626
  norm       = 1.61533
  Prefactor  = 39.0699
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100349
  Prefactor  = 0.0001
  Prefactor  = 19.9517
  Prefactor  = 0.250726
  Prefactor  = 0.505973
  Prefactor  = 4.06936
  Prefactor  = 0.0001
  Prefactor  = 2198.22
  Prefactor  = 0.000100001
  Prefactor  = 3.54989
  norm       = 355.169
  norm       = 0.000877656
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 94.5284
  norm       = 0.0001
  Prefactor  = 0.000100655
  norm       = 7.2906
  Normalizat = 0.01
  Prefactor  = 1.06789
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   529.1674     FROM HESSE     STATUS=FAILED        25 CALLS      795 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     48.577        71.392        .14790E-02   -1.4313    
   2  Prefactor     .10000E-03    59.023        .96098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     39.434        149.90        .16471E-02   -1.4451    
   4  norm          14.252        16.644        .26707E-02   -1.4953    
   5  Prefactor     15.206        22.202        .26237E-02   -1.4928    
   6  Prefactor     44.635        34.829        .15208E-02   -1.4371    
   7  Prefactor     .59344E-02    1437.5        .45262E-02   -1.5693    
   8  Prefactor     .10000E-03    108.45        .10197E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     571.08        569.06         .0000       -1.5434    
  10  Prefactor     .10263E-03    .42687E-01   -.16904E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.6153        1.0584         .0000       -1.5454    
  12  Prefactor     39.070        1.0137        .12816E-06   -1.4457    
  13  Prefactor     .10000E-03    .20699        .80197E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .20802        .68584E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10035E-03    .98946E-02    .16987E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .31077       -.93704E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     19.952        1.2049        .53540E-05   -1.4814    
  18  Prefactor     .25073        .24896       -.27911E-05   -1.5608    
  19  Prefactor     .50597        .45572        .72506E-05   -1.5850    
  20  Prefactor     4.0694        1.0077         .0000       -1.5304    
  21  Prefactor     .10000E-03    .28083        .12355E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2198.2        13.005        .47267E-04   -.59482    
  23  Prefactor     .10000E-03    .22600        .44675E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.5499        1.0103         .0000       -1.5331    
  25  norm          355.17        .95568       -.33177E-05   -1.1916    
  26  norm          .87766E-03    .39368       -.22387E-05   -1.5714    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    .21032        .27600E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    .27607        .12753E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     94.528        2.0490        .47603E-04   -1.3760    
  30  norm          .10000E-03    .21178       -.27136E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10065E-03    .24888        .17416E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          7.2906        1.0024         .0000       -1.5168    
  33  Normalizat    .10000E-01    .25505        .11986E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     1.0679        1.1123        .73518E-07   -.90500    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.66222e-10
Minuit parameter uncertainties:
  1  71.5184
  2  6.09821e-05
  3  151.363
  4  16.6499
  5  22.2139
  6  34.8446
  7  5.94076
  8  0.000836699
  9  1.0409
  10  0.000669663
  11  1.05842
  12  1.01375
  13  1.45923e-05
  14  1.56191e-06
  15  0.000117607
  16  7.06063e-06
  17  1.20487
  18  0.248963
  19  0.455725
  20  1.00775
  21  4.42879e-06
  22  13.005
  23  3.20845e-05
  24  1.01028
  25  0.955681
  26  0.0349944
  27  4.52062e-07
  28  3.53755e-06
  29  2.04898
  30  2.03049e-05
  31  0.000807485
  32  1.00237
  33  2.47517e-06
  34  1.13782
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 529.167445979

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  1.068e+00  1.138e+00  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.000e-02  2.475e-06  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.71e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.74e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/339436/likelihoodResults_564624001_564883201_4FGL_J2231.0-4416_daily_bin1255.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) = 529.167632261
delta logL = -0.000186282004393

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 529.16744781
delta logL = -1.83046984148e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11059E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8824       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0679       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=   529.1674     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      294 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    146.21        .89504E-02** at limit **
   2  Index         2.0493        8.2358        .50000        .75465E-07
   3  Normalizat    .10000E-01    .27724E-02    .70346E-02** at limit **
   4  Prefactor     1.0679        .27707E-01    .20280E-03    .20219E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Index      = 2.04933
  Normalizat = 0.01
  Prefactor  = 1.06789
 **********
 **   18 **HESSE 
 **********

 FCN=   529.1674     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      323 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    974.36        .12304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0493        5.6667        .50000       -.63122    
   3  Normalizat    .10000E-01    .20151E-01    .14069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0679        .74703E-01    .40560E-04   -.90499    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.42569e-09
Minuit parameter uncertainties:
  1  0.00488268
  2  1495.15
  3  1.31081e-05
  4  0.0747104
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/339436': 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) = 529.16744568
delta logL = 2.98990016745e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  1.068e+00  7.471e-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.000e-02  1.311e-05  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/339436/cmap_HighResolution_564624001_564883201_4FGL_J2231.0-4416_daily_bin1255.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.74e-02', job_status='DONE', photon_flux_upper_limit='8.71e-07', time_completed='2021-09-28 13:41:13.781138', job_id='339436', GAL2='1.07', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632861673.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='1.07', dlogl='2.99e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1255' AND source_name='4FGL J2231.0-4416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 13:41:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 339436: <4FGL_J2231.0-4416_daily_bin1255> in cluster <slac> Done

Job <4FGL_J2231.0-4416_daily_bin1255> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Tue Sep 28 13:35:26 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 13:35: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:35:27 2021
Terminated at Tue Sep 28 13:41:14 2021
Results reported at Tue Sep 28 13:41:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2231.0-4416_daily_bin1255 337.758 -44.2791 564624001 564883201 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 :                                   329.27 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             440.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   347 sec.
    Turnaround time :                            348 sec.

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

