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


Performing analysis on: 4FGL_J2231.0-4416_daily_bin694
RA = 337.758, Dec = -44.2791
tmin = 419212801, tmax = 419472001
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='334000', job_status='RUN', time_executed='2021-09-28 13:16:04.689698', time_epoch_executed='1632860164.69' WHERE source_name='4FGL J2231.0-4416' and cadence='daily' and bin_id='694'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/334000

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/334000/ft1_4FGL_J2231.0-4416_daily_bin694.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/334000/ft2_4FGL_J2231.0-4416_daily_bin694.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/334000/ft1_4FGL_J2231.0-4416_daily_bin694.fits outfile=/scratch/kocevski/334000/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin694.fits ra=337.758 dec=-44.2791 rad=12.0 tmin=419212801.0 tmax=419472001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.45
user 5.16
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/334000/ft2_4FGL_J2231.0-4416_daily_bin694.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/334000/ft1_filteredMKT_4FGL_J2231.0-4416_daily_bin694.fits evtable="EVENTS" outfile="/scratch/kocevski/334000/ft1_filtered_4FGL_J2231.0-4416_daily_bin694.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/334000/ft1_filtered_4FGL_J2231.0-4416_daily_bin694.fits" evtable="EVENTS" scfile=/scratch/kocevski/334000/ft2_4FGL_J2231.0-4416_daily_bin694.fits sctable="SC_DATA" outfile=/scratch/kocevski/334000/ltcube_419212801_419472001_4FGL_J2231.0-4416_daily_bin694.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/334000/ft2_4FGL_J2231.0-4416_daily_bin694.fits
.....................!
real 11.76
user 11.38
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/334000/ft1_filtered_4FGL_J2231.0-4416_daily_bin694.fits evtable="EVENTS" scfile=/scratch/kocevski/334000/ft2_4FGL_J2231.0-4416_daily_bin694.fits sctable="SC_DATA" expcube=/scratch/kocevski/334000/ltcube_419212801_419472001_4FGL_J2231.0-4416_daily_bin694.fits outfile=/scratch/kocevski/334000/expmap_419212801_419472001_4FGL_J2231.0-4416_daily_bin694.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/334000/ltcube_419212801_419472001_4FGL_J2231.0-4416_daily_bin694.fits
.....................!
real 189.87
user 185.44
sys 4.09

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

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

This is gtbin version HEAD
real 0.54
user 0.41
sys 0.10

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/334000/ft1_filtered_4FGL_J2231.0-4416_daily_bin694.fits scfile=/scratch/kocevski/334000/ft2_4FGL_J2231.0-4416_daily_bin694.fits outfile=/scratch/kocevski/334000/cmap_HighResolution_419212801_419472001_4FGL_J2231.0-4416_daily_bin694.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/334000/ft1_filtered_4FGL_J2231.0-4416_daily_bin694.fits evtable="EVENTS" scfile=/scratch/kocevski/334000/ft2_4FGL_J2231.0-4416_daily_bin694.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/334000/Model_4FGL_J2231.0-4416_daily_bin694.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/334000/ft1_filtered_4FGL_J2231.0-4416_daily_bin694.fits.....................!
real 42.00
user 40.18
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.535       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.1647       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.8660       1.0000         .10000E-03   10000.    
     4 'norm      '    13.074       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    56.443       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11222E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    195.54       1.0000         .10000E-03   10000.    
    11 'norm      '    3.9270       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.0318       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.5753       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    21.980       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.9861       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11755E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.5388       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    54.393       1.0000         .10000E-03   10000.    
    25 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .22268E-01   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    7.9879       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    7.5176       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .85861       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .81871       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=   4812.938     FROM MIGRAD    STATUS=CONVERGED    931 CALLS     4815 TOTAL
                     EDM=   .31E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.534        10.729        .29968E-07   -.10524E-04
   2  Prefactor     7.1603        24.051        .24981E-06    .46168E-05
   3  Prefactor     8.8652        5.2943       -.98232E-08   -.57558E-04
   4  norm          13.075        6.0874        .44693E-07    .39256E-04
   5  Prefactor     .10000E-03    5.7590       -.37966E-06** at limit **
   6  Prefactor     .10000E-03    16.052       -.10962E-05** at limit **
   7  Prefactor     56.408        49.473       -.47458E-06   -.10487E-04
   8  Prefactor     .10000E-03    7.2774        .37809E-05** at limit **
   9  Prefactor     .10000E-03    1.2489        .33441E-06** at limit **
  10  Prefactor     195.48        140.85       -.41345E-05   -.36101E-04
  11  norm          3.9274        6.1991        .30963E-06   -.68394E-05
  12  Prefactor     .10000E-03    5.2179       -.34654E-06** at limit **
  13  Prefactor     5.0312        4.2040        .21478E-08   -.11782E-04
  14  Prefactor     .10000E-03    20.843        .43999E-08** at limit **
  15  Prefactor     1.5695        8.8945        .39122E-05   -.29010E-05
  16  Prefactor     .10000E-03    6.2418       -.28532E-07** at limit **
  17  Prefactor     .10000E-03    7.7779       -.61698E-08** at limit **
  18  Prefactor     21.973        48.340       -.18636E-05   -.13483E-04
  19  Prefactor     5.9802        13.877        .32866E-06   -.92513E-05
  20  Prefactor     .10000E-03    88.297       -.54271E-07** at limit **
  21  Prefactor     .10000E-03    3.0348       -.93329E-07** at limit **
  22  Prefactor     5.5306        138.64       -.15728E-05    .23121E-05
  23  Prefactor     .10000E-03    25.750       -.29357E-06** at limit **
  24  Prefactor     54.388        32.522        .30158E-06    .48703E-05
  25  norm          .10000E-03    29.273        .30358E-06** at limit **
  26  norm          .10000E-03    7.7019        .65202E-07** at limit **
  27  norm          .10000E-03    3.9589        .53359E-08** at limit **
  28  Prefactor     .10009E-03    6.3256       -.60300E-06** at limit **
  29  Prefactor     .10000E-03    25.470       -.31807E-06** at limit **
  30  norm          7.9899        5.9047       -.50806E-07    .13047E-04
  31  Prefactor     .10000E-03    8.9770       -.12919E-06** at limit **
  32  norm          7.5177        2.9920        .44072E-07    .59116E-04
  33  Normalizat    .85884        .21905       -.68665E-06    .11728E-04
  34  Prefactor     .81861        .18526        .43207E-06   -.52043E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.5342
  Prefactor  = 7.16032
  Prefactor  = 8.86523
  norm       = 13.0746
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 56.408
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 195.481
  norm       = 3.92735
  Prefactor  = 0.0001
  Prefactor  = 5.03124
  Prefactor  = 0.0001
  Prefactor  = 1.56948
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.9735
  Prefactor  = 5.98025
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.53061
  Prefactor  = 0.0001
  Prefactor  = 54.3885
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100093
  Prefactor  = 0.0001
  norm       = 7.98991
  Prefactor  = 0.0001
  norm       = 7.51774
  Normalizat = 0.85884
  Prefactor  = 0.81861
 **********
 **   18 **HESSE 
 **********

 FCN=   4812.938     FROM HESSE     STATUS=OK           740 CALLS     5555 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.534        10.722        .10887E-03   -1.4972    
   2  Prefactor     7.1603        23.988        .74930E-03   -1.5173    
   3  Prefactor     8.8652        5.2919        .11691E-03   -1.5112    
   4  norm          13.075        6.0869        .10577E-03   -1.4985    
   5  Prefactor     .10000E-03    5.7933        .16244E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    16.531        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     56.408        49.431        .53395E-04   -1.4204    
   8  Prefactor     .10000E-03    7.4037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.2536        .75714E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     195.48        143.11        .14444E-03   -1.2902    
  11  norm          3.9274        6.1899        .10179E-02   -1.5312    
  12  Prefactor     .10000E-03    5.2467        .15468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.0312        4.2064        .12394E-03   -1.5259    
  14  Prefactor     .10000E-03    20.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.5695        8.9815        .16928E-02   -1.5457    
  16  Prefactor     .10000E-03    6.2418        .16927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.7728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     21.973        48.277        .85435E-04   -1.4770    
  19  Prefactor     5.9802        13.759        .16412E-03   -1.5219    
  20  Prefactor     .10000E-03    88.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.0394        .11802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.5306        138.94        .17071E-03   -1.5238    
  23  Prefactor     .10000E-03    25.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     54.388        32.575        .54386E-04   -1.4232    
  25  norm          .10000E-03    29.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    7.7356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    3.9611        .13467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10009E-03    6.7445        .59407E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    25.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          7.9899        5.9055        .14019E-03   -1.5143    
  31  Prefactor     .10000E-03    8.9835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          7.5177        2.9975        .69023E-04   -1.5160    
  33  Normalizat    .85884        .25767        .27171E-03   -.97922    
  34  Prefactor     .81861        .21809        .23780E-03   -.99046    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72225e-09
Minuit parameter uncertainties:
  1  10.723
  2  24.0201
  3  5.29222
  4  6.08721
  5  3.41419e-06
  6  3.1535e-05
  7  49.4665
  8  1.58001e-05
  9  4.73357e-07
  10  143.37
  11  6.19093
  12  3.80747e-06
  13  4.20661
  14  2.17119e-05
  15  7.51047
  16  6.09304e-06
  17  1.47217e-05
  18  48.3632
  19  13.7663
  20  0.000105652
  21  7.17621e-07
  22  55.5844
  23  3.77142e-05
  24  32.5859
  25  6.48571e-05
  26  3.73469e-06
  27  1.99172e-06
  28  0.00158434
  29  3.26622e-05
  30  5.9059
  31  5.67642e-06
  32  2.99753
  33  0.25804
  34  0.218319
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
585    Prefactor:  8.186e-01  2.183e-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:  8.588e-01  2.580e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.68
Ra Dec: 337.758 -44.279
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 4.62e-08 +/- 3.86e-08
Energy Flux (Fixed Index): 1.46e-05 +/- 1.22e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4812.31954001
delta logL = 0.61797597399

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4812.31409548
delta logL = 0.623420505811

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1975       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7225       1.0000          .0000       10.000    
     3 'Normalizat'    .88848       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80294       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.

 FCN=   4812.314     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      202 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1975        4.6296        .44082E-02   -.22529E-04
   2  Index         1.7224        .44825        .21253       -.37952E-04
   3  Normalizat    .88845        .20720        .44754E-01    .11749E-04
   4  Prefactor     .80297        .17808        .43755E-01    .10137E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.19751
  Index      = 1.7224
  Normalizat = 0.888446
  Prefactor  = 0.802965
 **********
 **   18 **HESSE 
 **********

 FCN=   4812.314     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1975        5.0813        .13427E-03   -1.5252    
   2  Index         1.7224        .58487        .78837E-02   -.71487    
   3  Normalizat    .88845        .24263        .26745E-03   -.96867    
   4  Prefactor     .80297        .20840        .23981E-03   -.99619    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.58297e-10
Minuit parameter uncertainties:
  1  5.08177
  2  0.587239
  3  0.242932
  4  0.208608
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/334000': 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) = 4812.31409546
delta logL = 0.62342052376

Extracting fit parameters...

4FGL J2231.0-4416
   Spectrum: PowerLaw
305    Prefactor:  5.198e+00  5.082e+00  1.000e-04  1.000e+04 ( 1.000e-12)
306        Index:  1.722e+00  5.872e-01  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:  8.030e-01  2.086e-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:  8.884e-01  2.429e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.92
Ra Dec: 337.758 -44.279
Photon Index (Free Index): 1.72 +/- 0.59
Photon Flux (Free Index): 2.27e-08 +/- 2.74e-08
Energy Flux (Free Index): 3.46e-05 +/- 4.66e-05

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/334000/cmap_HighResolution_419212801_419472001_4FGL_J2231.0-4416_daily_bin694.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.62e-08', energy_flux2='3.46e-05', photon_flux_error='3.86e-08', dlogl='6.23e-01', energy_flux='1.46e-05', photon_flux2='2.27e-08', job_status='DONE', time_completed='2021-09-28 13:27:43.465407', photon_index_error2='0.59', photon_index2='1.72', ts='4.68', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='4.66e-05', EG='0.86', time_epoch_completed='1632860863.47', return_code='0', job_id='334000', GAL2='0.80', EG2='0.89', return_code2='0', energy_flux_error='1.22e-05', photon_flux_error2='2.74e-08', ts2='5.92', photon_index='2.43' WHERE bin_id='694' AND source_name='4FGL J2231.0-4416' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 13:27:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 334000: <4FGL_J2231.0-4416_daily_bin694> in cluster <slac> Done

Job <4FGL_J2231.0-4416_daily_bin694> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 13:15:45 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 13:15:46 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:15:46 2021
Terminated at Tue Sep 28 13:27:44 2021
Results reported at Tue Sep 28 13:27:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2231.0-4416_daily_bin694 337.758 -44.2791 419212801 419472001 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 :                                   697.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   717 sec.
    Turnaround time :                            719 sec.

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

