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


Performing analysis on: 4FGL_J2231.0-4416_daily_bin1277
RA = 337.758, Dec = -44.2791
tmin = 570326401, tmax = 570585601
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='339470', job_status='RUN', time_executed='2021-09-28 13:38:21.841499', time_epoch_executed='1632861501.84' WHERE source_name='4FGL J2231.0-4416' and cadence='daily' and bin_id='1277'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/339470

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/339470/ft1_4FGL_J2231.0-4416_daily_bin1277.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/339470/ft2_4FGL_J2231.0-4416_daily_bin1277.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/339470/ft1_4FGL_J2231.0-4416_daily_bin1277.fits outfile=/scratch/kocevski/339470/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin1277.fits ra=337.758 dec=-44.2791 rad=12.0 tmin=570326401.0 tmax=570585601.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.47
user 3.27
sys 0.19

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/339470/ft1_filtered_4FGL_J2231.0-4416_daily_bin1277.fits" evtable="EVENTS" scfile=/scratch/kocevski/339470/ft2_4FGL_J2231.0-4416_daily_bin1277.fits sctable="SC_DATA" outfile=/scratch/kocevski/339470/ltcube_570326401_570585601_4FGL_J2231.0-4416_daily_bin1277.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/339470/ft2_4FGL_J2231.0-4416_daily_bin1277.fits
.....................!
real 12.38
user 12.01
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/339470/ft1_filtered_4FGL_J2231.0-4416_daily_bin1277.fits evtable="EVENTS" scfile=/scratch/kocevski/339470/ft2_4FGL_J2231.0-4416_daily_bin1277.fits sctable="SC_DATA" expcube=/scratch/kocevski/339470/ltcube_570326401_570585601_4FGL_J2231.0-4416_daily_bin1277.fits outfile=/scratch/kocevski/339470/expmap_570326401_570585601_4FGL_J2231.0-4416_daily_bin1277.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/339470/ltcube_570326401_570585601_4FGL_J2231.0-4416_daily_bin1277.fits
.....................!
real 190.82
user 186.59
sys 3.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/339470/ft1_filtered_4FGL_J2231.0-4416_daily_bin1277.fits scfile=/scratch/kocevski/339470/ft2_4FGL_J2231.0-4416_daily_bin1277.fits outfile=/scratch/kocevski/339470/cmap_570326401_570585601_4FGL_J2231.0-4416_daily_bin1277.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.40
sys 0.11

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/339470/ft1_filtered_4FGL_J2231.0-4416_daily_bin1277.fits scfile=/scratch/kocevski/339470/ft2_4FGL_J2231.0-4416_daily_bin1277.fits outfile=/scratch/kocevski/339470/cmap_HighResolution_570326401_570585601_4FGL_J2231.0-4416_daily_bin1277.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/339470/ft1_filtered_4FGL_J2231.0-4416_daily_bin1277.fits evtable="EVENTS" scfile=/scratch/kocevski/339470/ft2_4FGL_J2231.0-4416_daily_bin1277.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/339470/Model_4FGL_J2231.0-4416_daily_bin1277.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/339470/ft1_filtered_4FGL_J2231.0-4416_daily_bin1277.fits....!
real 13.62
user 12.44
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    89.551       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    31.252       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    331.92       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    15 'Prefactor '    324.77       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    10000.       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    34 'Prefactor '    .12262E-11   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=   39.91830     FROM MIGRAD    STATUS=CONVERGED    852 CALLS     7251 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     89.551        91.516       -.11733E-06    .12385E-04
   2  Prefactor     .10000E-03    195.49       -.74958E-04** at limit **
   3  Prefactor     31.252        41.692       -.16772E-05    .10133E-03
   4  norm          .10000E-03    40.664        .38242E-08** at limit **
   5  Prefactor     .10000E-03    262.10       -.12396E-03** at limit **
   6  Prefactor     .10000E-03    161.35        .58953E-04** at limit **
   7  Prefactor     331.98        614.83        .30366E-04    .68247E-04
   8  Prefactor     .10000E-03    257.10       -.13086E-03** at limit **
   9  Prefactor     .10000E-03    18.688       -.27716E-07** at limit **
  10  Prefactor     .10000E-03    2088.5       -.59644E-03** at limit **
  11  norm          .10000E-03    95.229        .29675E-04** at limit **
  12  Prefactor    10000.0        5550.3        .19216E-02** at limit **
  13  Prefactor     .10000E-03    1247.5       -.45556E-04** at limit **
  14  Prefactor    10000.0        5588.2        .19028E-02** at limit **
  15  Prefactor     324.79        441.90        .13169E-04    .36398E-04
  16  Prefactor    10000.0        6574.8        .19430E-02** at limit **
  17  Prefactor    10000.0        5077.9        .19170E-02** at limit **
  18  Prefactor     .10000E-03    471.99        .29695E-03** at limit **
  19  Prefactor     .10000E-03    150.60        .92463E-04** at limit **
  20  Prefactor     .10000E-03    6163.5       -.70780E-03** at limit **
  21  Prefactor    10000.0        9967.8        .18082E-02** at limit **
  22  Prefactor     .10000E-03    8080.1       -.14933E-02** at limit **
  23  Prefactor     .10000E-03    7243.8       -.12847E-02** at limit **
  24  Prefactor    10000.0        9342.9        .18479E-02** at limit **
  25  norm          .10000E-03    7081.8       -.12290E-02** at limit **
  26  norm         10000.0        6369.3        .19254E-02** at limit **
  27  norm          .10000E-03    107.19       -.68935E-04** at limit **
  28  Prefactor     .10000E-03    6601.3       -.10131E-02** at limit **
  29  Prefactor     .10000E-03    439.31        .25139E-03** at limit **
  30  norm          .10000E-03    50.194       -.10782E-06** at limit **
  31  Prefactor     .10000E-03    1461.7       -.21096E-03** at limit **
  32  norm          .10000E-03    1078.4        .94720E-04** at limit **
  33  Normalizat    .10000E-01    .46651       -.72991E-06** at limit **
  34  Prefactor     .77049E-12    .42902       -.46608E-06** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 89.551
  Prefactor  = 0.0001
  Prefactor  = 31.2521
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 331.979
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 324.793
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  norm       = 0.0001
  norm       = 10000
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 7.70495e-13
 **********
 **   18 **HESSE 
 **********

 FCN=   39.91830     FROM HESSE     STATUS=OK           698 CALLS     7949 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     89.551        91.518        .42461E-04   -1.3813    
   2  Prefactor     .10000E-03    195.49        .87091E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     31.252        41.714        .44203E-04   -1.4589    
   4  norm          .10000E-03    40.663        .39618E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    262.09        .10096E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    161.35        .79076E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     331.98        614.90        .11165E-03   -1.2043    
   8  Prefactor     .10000E-03    257.13        .99901E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    18.687        .26847E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2088.4        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    95.224        .60681E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor    10000.0        5550.7        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1247.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor    10000.0        5587.9        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     324.79        441.83        .11283E-03   -1.2084    
  16  Prefactor    10000.0        6573.9        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor    10000.0        5078.1        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    471.91        .13595E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    150.59        .76380E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6163.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor    10000.0        9967.8        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8079.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7243.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor    10000.0        9342.8        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    7081.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm         10000.0        6369.9        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    107.19        .64394E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    6601.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    439.29        .13110E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    50.194        .44023E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    1461.7        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          .10000E-03    1078.4        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .10000E-01    .46636        .13520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     .77049E-12    .42890        .12947E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.56684e-10
Minuit parameter uncertainties:
  1  91.6626
  2  6.01702e-06
  3  41.7534
  4  3.58383e-06
  5  4.80956e-06
  6  3.01443e-06
  7  627.666
  8  0.00192747
  9  9.42001e-06
  10  0.00379637
  11  5.97221e-05
  12  0.0588451
  13  0.000868522
  14  0.0337704
  15  446.538
  16  0.133867
  17  0.0512316
  18  0.000298892
  19  4.93231e-05
  20  0.000168031
  21  0.00272228
  22  0.00178784
  23  7.00974e-05
  24  0.00597821
  25  0.000113637
  26  0.0663006
  27  5.35662e-07
  28  0.000158295
  29  3.28799e-06
  30  4.49727e-08
  31  1.591e-05
  32  0.000100548
  33  1.19949e-06
  34  1.15808e-06
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  7.705e-13  1.158e-06  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.199e-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: 5.13e-05 ph cm-2 s-1
Energy Flux Upper Limit: 3.97e+00 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/339470/likelihoodResults_570326401_570585601_4FGL_J2231.0-4416_daily_bin1277.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) = 39.9183004443
delta logL = -3.69487975149e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 39.9183004423
delta logL = -3.69284502e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96262E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4265       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .14329E-07   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=   39.91830     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      218 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10015E-03    875.12        .18144E-01** at limit **
   2  Index         2.9927        6.4046        .50000        .31852E-06
   3  Normalizat    .10000E-01    .10460E-02    .13520E-02** at limit **
   4  Prefactor     .91338E-11    .96069E-03    .12947E-02** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100149
  Index      = 2.99268
  Normalizat = 0.01
  Prefactor  = 9.1338e-12
 **********
 **   18 **HESSE 
 **********

 FCN=   39.91830     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      247 TOTAL
                     EDM=   .65E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10015E-03    8294.3        .17753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9927        8.4718        .50000       -.41311    
   3  Normalizat    .10000E-01    .10606E-01    .27040E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .91338E-11    .97423E-02    .25893E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.49215e-08
Minuit parameter uncertainties:
  1  0.0732302
  2  4306.14
  3  8.04234e-07
  4  5.96706e-07
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/339470': 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) = 39.9182967723
delta logL = -2.28758381127e-08

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  1.001e-04  7.323e-02  1.000e-04  1.000e+04 ( 1.000e-12)
306        Index:  2.993e+00  4.306e+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:  9.134e-12  5.967e-07  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  8.042e-07  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/339470/cmap_HighResolution_570326401_570585601_4FGL_J2231.0-4416_daily_bin1277.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.97e+00', job_status='DONE', photon_flux_upper_limit='5.13e-05', time_completed='2021-09-28 13:44:01.932780', job_id='339470', GAL2='0.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632861841.93', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.00', dlogl='-2.29e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1277' AND source_name='4FGL J2231.0-4416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 13:44:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 339470: <4FGL_J2231.0-4416_daily_bin1277> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2231.0-4416_daily_bin1277 337.758 -44.2791 570326401 570585601 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 :                                   338.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   512 sec.
    Turnaround time :                            514 sec.

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

