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


Performing analysis on: 4FGL_J2231.0-4416_daily_bin1433
RA = 337.758, Dec = -44.2791
tmin = 610761601, tmax = 611020801
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='339716', job_status='RUN', time_executed='2021-09-28 13:36:07.815943', time_epoch_executed='1632861367.82' WHERE source_name='4FGL J2231.0-4416' and cadence='daily' and bin_id='1433'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/339716

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/339716/ft1_4FGL_J2231.0-4416_daily_bin1433.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/339716/ft2_4FGL_J2231.0-4416_daily_bin1433.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/339716/ft1_4FGL_J2231.0-4416_daily_bin1433.fits outfile=/scratch/kocevski/339716/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin1433.fits ra=337.758 dec=-44.2791 rad=12.0 tmin=610761601.0 tmax=611020801.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.51
user 3.32
sys 0.18

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/339716/ft1_filtered_4FGL_J2231.0-4416_daily_bin1433.fits" evtable="EVENTS" scfile=/scratch/kocevski/339716/ft2_4FGL_J2231.0-4416_daily_bin1433.fits sctable="SC_DATA" outfile=/scratch/kocevski/339716/ltcube_610761601_611020801_4FGL_J2231.0-4416_daily_bin1433.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/339716/ft2_4FGL_J2231.0-4416_daily_bin1433.fits
.....................!
real 12.70
user 12.34
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/339716/ft1_filtered_4FGL_J2231.0-4416_daily_bin1433.fits evtable="EVENTS" scfile=/scratch/kocevski/339716/ft2_4FGL_J2231.0-4416_daily_bin1433.fits sctable="SC_DATA" expcube=/scratch/kocevski/339716/ltcube_610761601_611020801_4FGL_J2231.0-4416_daily_bin1433.fits outfile=/scratch/kocevski/339716/expmap_610761601_611020801_4FGL_J2231.0-4416_daily_bin1433.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/339716/ltcube_610761601_611020801_4FGL_J2231.0-4416_daily_bin1433.fits
.....................!
real 191.73
user 186.92
sys 4.49

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/339716/ft1_filtered_4FGL_J2231.0-4416_daily_bin1433.fits scfile=/scratch/kocevski/339716/ft2_4FGL_J2231.0-4416_daily_bin1433.fits outfile=/scratch/kocevski/339716/cmap_610761601_611020801_4FGL_J2231.0-4416_daily_bin1433.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.38
sys 0.14

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/339716/ft1_filtered_4FGL_J2231.0-4416_daily_bin1433.fits evtable="EVENTS" scfile=/scratch/kocevski/339716/ft2_4FGL_J2231.0-4416_daily_bin1433.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/339716/Model_4FGL_J2231.0-4416_daily_bin1433.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/339716/ft1_filtered_4FGL_J2231.0-4416_daily_bin1433.fits.....................!
real 45.00
user 43.81
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8608       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.3575       1.0000         .10000E-03   10000.    
     4 'norm      '    4.6188       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.648       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10365E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .74046       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.181       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.8771       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.231       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .14991E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.907       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.969       1.0000         .10000E-03   10000.    
    23 'Prefactor '    29.977       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .51418       1.0000         .10000E-03   10000.    
    25 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    15.139       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    29.435       1.0000         .10000E-03   10000.    
    32 'norm      '    1.3508       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .65489       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.1746       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=   5847.342     FROM MIGRAD    STATUS=CONVERGED    933 CALLS     4822 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8615        10.486       -.32466E-05    .21833E-04
   2  Prefactor     .10000E-03    44.920       -.20974E-05** at limit **
   3  Prefactor     5.3582        5.1866        .16219E-06    .22061E-03
   4  norm          4.6191        4.0871        .22458E-06    .21155E-03
   5  Prefactor     .10000E-03    23.021       -.15836E-06** at limit **
   6  Prefactor     12.649        10.290        .66397E-07    .11226E-03
   7  Prefactor     .10000E-03    49.003        .16577E-06** at limit **
   8  Prefactor     .10003E-03    10.627        .38255E-05** at limit **
   9  Prefactor     .73990        3.6748       -.77744E-06    .91136E-05
  10  Prefactor     .10000E-03    49.144        .28572E-06** at limit **
  11  norm          .10000E-03    2.5351       -.89207E-07** at limit **
  12  Prefactor     16.178        9.7759       -.84424E-07    .24197E-04
  13  Prefactor     .10000E-03    2.8296       -.80836E-07** at limit **
  14  Prefactor     .10000E-03    18.042       -.29044E-06** at limit **
  15  Prefactor     .10000E-03    4.3297       -.86784E-06** at limit **
  16  Prefactor     8.8858        20.982       -.63513E-06    .40548E-05
  17  Prefactor     .10000E-03    9.1353        .52275E-07** at limit **
  18  Prefactor     22.149        28.605       -.22355E-05   -.34355E-03
  19  Prefactor     .10001E-03    20.649       -.49357E-05** at limit **
  20  Prefactor     12.823        88.178       -.11679E-04   -.56609E-04
  21  Prefactor     .10000E-03    3.1926        .15175E-08** at limit **
  22  Prefactor     13.963        27.248        .13868E-06   -.36585E-04
  23  Prefactor     29.993        34.385       -.12445E-07   -.26426E-05
  24  Prefactor     .42727        28.885        .89471E-05   -.47564E-03
  25  norm          .10000E-03    8.0796        .43290E-07** at limit **
  26  norm          .10000E-03    3.0670        .38213E-07** at limit **
  27  norm          .10000E-03    1.6763        .12457E-08** at limit **
  28  Prefactor     15.140        9.4809       -.14638E-06   -.19553E-03
  29  Prefactor     .10000E-03    18.262        .43288E-08** at limit **
  30  norm          .10000E-03    1.3963        .83152E-08** at limit **
  31  Prefactor     29.445        19.332       -.23406E-06   -.10058E-03
  32  norm          1.3515        1.0564       -.64979E-07   -.50039E-03
  33  Normalizat    .65500        .17726        .86102E-06    .87461E-04
  34  Prefactor     1.1745        .16775        .39150E-06    .92868E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.8615
  Prefactor  = 0.0001
  Prefactor  = 5.35822
  norm       = 4.61913
  Prefactor  = 0.0001
  Prefactor  = 12.6493
  Prefactor  = 0.0001
  Prefactor  = 0.000100033
  Prefactor  = 0.739897
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.1783
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.88582
  Prefactor  = 0.0001
  Prefactor  = 22.1486
  Prefactor  = 0.000100012
  Prefactor  = 12.8232
  Prefactor  = 0.0001
  Prefactor  = 13.9631
  Prefactor  = 29.9931
  Prefactor  = 0.427271
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 15.1399
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 29.4451
  norm       = 1.35149
  Normalizat = 0.655
  Prefactor  = 1.17454
 **********
 **   18 **HESSE 
 **********

 FCN=   5847.342     FROM HESSE     STATUS=OK           732 CALLS     5554 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8615        10.382        .10269E-02   -1.5315    
   2  Prefactor     .10000E-03    45.328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.3582        5.1604        .16214E-03   -1.5245    
   4  norm          4.6191        4.0842        .13979E-03   -1.5278    
   5  Prefactor     .10000E-03    23.699        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.649        10.272        .11263E-03   -1.4996    
   7  Prefactor     .10000E-03    49.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10003E-03    20.848        .34349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .73990        3.7216        .27464E-03   -1.5536    
  10  Prefactor     .10000E-03    49.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.5403        .11890E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.178        9.7841        .99568E-04   -1.4903    
  13  Prefactor     .10000E-03    2.8877        .12540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    18.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.4514        .31054E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.8858        20.959        .13453E-03   -1.5112    
  17  Prefactor     .10000E-03    9.1557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     22.149        27.058        .84953E-04   -1.4766    
  19  Prefactor     .10001E-03    33.643        .39187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.823        88.289        .11149E-03   -1.4992    
  21  Prefactor     .10000E-03    3.2075        .13340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     13.963        27.226        .10717E-03   -1.4960    
  23  Prefactor     29.993        34.409        .73177E-04   -1.4612    
  24  Prefactor     .42727        98.288        .41008E-02   -1.5577    
  25  norm          .10000E-03    8.1451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    3.0801        .13074E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1.6908        .96682E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     15.140        9.4749        .10294E-03   -1.4930    
  29  Prefactor     .10000E-03    18.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    1.4183        .88222E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     29.445        19.345        .73847E-04   -1.4622    
  32  norm          1.3515        1.0415        .65163E-04   -1.5475    
  33  Normalizat    .65500        .20489        .28010E-03   -1.0570    
  34  Prefactor     1.1745        .19438        .20856E-03   -.87118    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.023e-08
Minuit parameter uncertainties:
  1  10.3865
  2  0.00012352
  3  5.16084
  4  4.08443
  5  1.1398e-05
  6  10.2738
  7  5.38407e-05
  8  0.00166533
  9  3.31891
  10  8.72624e-06
  11  4.28804e-06
  12  9.78509
  13  9.72076e-06
  14  6.09123e-06
  15  5.99741e-05
  16  20.9759
  17  5.99206e-07
  18  27.0733
  19  0.00128666
  20  67.4376
  21  2.93802e-06
  22  27.2504
  23  34.4316
  24  12.9809
  25  7.52111e-07
  26  3.97596e-07
  27  6.5076e-07
  28  9.47587
  29  5.41855e-06
  30  9.13635e-07
  31  19.3487
  32  1.04154
  33  0.20513
  34  0.194497
Done.

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

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  1.000e-04  9.721e-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:  1.175e+00  1.945e-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:  6.550e-01  2.051e-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: 7.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/339716/likelihoodResults_610761601_611020801_4FGL_J2231.0-4416_daily_bin1433.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) = 5847.34387422
delta logL = -0.00165019702672

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5847.34222429
delta logL = -2.75465026789e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4702       1.0000          .0000       10.000    
     3 'Normalizat'    .65470       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1749       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=   5847.053     FROM MIGRAD    STATUS=CONVERGED    167 CALLS      321 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .29551        15.179        .27416E-02   -.13254E-02
   2  Index         4.2206        7.0575        .14815        .95398E-04
   3  Normalizat    .59328        .67722E-01    .28010E-02    .10507E-03
   4  Prefactor     1.2077        .60266E-01    .20856E-03    .69685E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.295506
  Index      = 4.22061
  Normalizat = 0.593276
  Prefactor  = 1.20766
 **********
 **   18 **HESSE 
 **********

 FCN=   5847.053     FROM HESSE     STATUS=OK            31 CALLS      352 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .29551        4.1231        .50641E-04   -1.5817    
   2  Index         4.2206        3.6067        .78158E-02   -.15652    
   3  Normalizat    .59328        .20748        .56020E-03   -1.0827    
   4  Prefactor     1.2077        .19212        .41713E-04   -.86096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5467e-07
Minuit parameter uncertainties:
  1  2.20745
  2  4.04354
  3  0.207752
  4  0.192234
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/339716': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5847.0529097
delta logL = 0.289314314447

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  1.208e+00  1.922e-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:  5.933e-01  2.078e-01  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/339716/cmap_HighResolution_610761601_611020801_4FGL_J2231.0-4416_daily_bin1433.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.74e-03', job_status='DONE', photon_flux_upper_limit='7.41e-08', time_completed='2021-09-28 13:51:27.830859', job_id='339716', GAL2='1.21', fit_tolerance='1e-08', EG2='0.59', EG='0.65', time_epoch_completed='1632862287.83', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='2.89e-01', ts2='0.66', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1433' AND source_name='4FGL J2231.0-4416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 13:51:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 339716: <4FGL_J2231.0-4416_daily_bin1433> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2231.0-4416_daily_bin1433 337.758 -44.2791 610761601 611020801 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 :                                   918.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            937 sec.

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

