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


Performing analysis on: 4FGL_J2320.8-0823_daily_bin1202
RA = 350.223, Dec = -8.3918
tmin = 550886401, tmax = 551145601
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='754330', job_status='RUN', time_executed='2021-09-29 11:43:55.808090', time_epoch_executed='1632941035.81' WHERE source_name='4FGL J2320.8-0823' and cadence='daily' and bin_id='1202'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/754330

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/754330/ft1_4FGL_J2320.8-0823_daily_bin1202.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/754330/ft2_4FGL_J2320.8-0823_daily_bin1202.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/754330/ft1_4FGL_J2320.8-0823_daily_bin1202.fits outfile=/scratch/kocevski/754330/ft1_filteredMKT_4FGL_J2320.8-0823_daily_bin1202.fits ra=350.223 dec=-8.3918 rad=12.0 tmin=550886401.0 tmax=551145601.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.77
user 3.56
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/754330/ft2_4FGL_J2320.8-0823_daily_bin1202.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/754330/ft2_4FGL_J2320.8-0823_daily_bin1202.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/754330/ft1_filteredMKT_4FGL_J2320.8-0823_daily_bin1202.fits evtable="EVENTS" outfile="/scratch/kocevski/754330/ft1_filtered_4FGL_J2320.8-0823_daily_bin1202.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/754330/ft1_filtered_4FGL_J2320.8-0823_daily_bin1202.fits" evtable="EVENTS" scfile=/scratch/kocevski/754330/ft2_4FGL_J2320.8-0823_daily_bin1202.fits sctable="SC_DATA" outfile=/scratch/kocevski/754330/ltcube_550886401_551145601_4FGL_J2320.8-0823_daily_bin1202.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/754330/ft2_4FGL_J2320.8-0823_daily_bin1202.fits
.....................!
real 11.51
user 11.16
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/754330/ft1_filtered_4FGL_J2320.8-0823_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/754330/ft2_4FGL_J2320.8-0823_daily_bin1202.fits sctable="SC_DATA" expcube=/scratch/kocevski/754330/ltcube_550886401_551145601_4FGL_J2320.8-0823_daily_bin1202.fits outfile=/scratch/kocevski/754330/expmap_550886401_551145601_4FGL_J2320.8-0823_daily_bin1202.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/754330/ltcube_550886401_551145601_4FGL_J2320.8-0823_daily_bin1202.fits
.....................!
real 191.28
user 186.32
sys 4.66

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 161 point sources and 0 extended sources

Setting source of interest to:
4FGL J2320.8-0823 @ 350.223 -8.3918

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/754330/ft1_filtered_4FGL_J2320.8-0823_daily_bin1202.fits scfile=/scratch/kocevski/754330/ft2_4FGL_J2320.8-0823_daily_bin1202.fits outfile=/scratch/kocevski/754330/cmap_550886401_551145601_4FGL_J2320.8-0823_daily_bin1202.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=350.223 yref=-8.3918 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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/754330/ft1_filtered_4FGL_J2320.8-0823_daily_bin1202.fits scfile=/scratch/kocevski/754330/ft2_4FGL_J2320.8-0823_daily_bin1202.fits outfile=/scratch/kocevski/754330/cmap_HighResolution_550886401_551145601_4FGL_J2320.8-0823_daily_bin1202.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=350.223 yref=-8.3918 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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/754330/ft1_filtered_4FGL_J2320.8-0823_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/754330/ft2_4FGL_J2320.8-0823_daily_bin1202.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/754330/Model_4FGL_J2320.8-0823_daily_bin1202.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/754330/ft1_filtered_4FGL_J2320.8-0823_daily_bin1202.fits.....................!
real 35.70
user 34.47
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/754330/ft1_filtered_4FGL_J2320.8-0823_daily_bin1202.fits', '/scratch/kocevski/754330/ft2_4FGL_J2320.8-0823_daily_bin1202.fits', expMap='/scratch/kocevski/754330/expmap_550886401_551145601_4FGL_J2320.8-0823_daily_bin1202.fits', expCube='/scratch/kocevski/754330/ltcube_550886401_551145601_4FGL_J2320.8-0823_daily_bin1202.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/754330/Model_4FGL_J2320.8-0823_daily_bin1202.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2320.8-0823'

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  7.383e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
361        Index:  2.648e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
362        Scale:  6.667e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/754330/ft1_filtered_4FGL_J2320.8-0823_daily_bin1202.fits
Spacecraft file(s): /scratch/kocevski/754330/ft2_4FGL_J2320.8-0823_daily_bin1202.fits
Exposure map: /scratch/kocevski/754330/expmap_550886401_551145601_4FGL_J2320.8-0823_daily_bin1202.fits
Exposure cube: /scratch/kocevski/754330/ltcube_550886401_551145601_4FGL_J2320.8-0823_daily_bin1202.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/754330/Model_4FGL_J2320.8-0823_daily_bin1202.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) = 3297.59465019

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.579       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    43.718       1.0000         .10000E-03   10000.    
     4 'Prefactor '    70.427       1.0000         .10000E-03   10000.    
     5 'norm      '    .16688E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.3934       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    21.479       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.181       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    144.49       1.0000         .10000E-03   10000.    
    17 'Prefactor '    87.346       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .23347E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11190E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    34.208       1.0000         .10000E-03   10000.    
    22 'Prefactor '    37.525       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10149E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    25.280       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    4.8332       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .39461       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1336       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3297.560     FROM MIGRAD    STATUS=CONVERGED    739 CALLS     3789 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.577        14.279       -.18160E-06    .40474E-05
   2  Prefactor     .10000E-03    66.332       -.10281E-05** at limit **
   3  Prefactor     43.716        107.22       -.27173E-06   -.46524E-05
   4  Prefactor     70.389        36.904       -.44359E-05   -.14131E-02
   5  norm          .10001E-03    1.9661        .54960E-05** at limit **
   6  Prefactor     6.2395        198.70       -.18580E-04   -.21569E-03
   7  Prefactor     .10000E-03    8.4086       -.38010E-06** at limit **
   8  Prefactor     .10000E-03    9.9258        .12907E-06** at limit **
   9  norm          21.482        20.946       -.30549E-06   -.18841E-04
  10  Prefactor     .10000E-03    11.942       -.15249E-06** at limit **
  11  Prefactor     .10000E-03    54.927       -.41128E-05** at limit **
  12  Prefactor     14.105        51.869       -.10356E-04    .78449E-04
  13  Prefactor     .10000E-03    4.4569        .58409E-07** at limit **
  14  norm          .10000E-03    .57313        .11106E-06** at limit **
  15  norm          .10000E-03    2.5662        .26737E-07** at limit **
  16  Prefactor     144.48        123.33       -.61354E-06   -.41271E-04
  17  Prefactor     87.324        85.017       -.39130E-07   -.86745E-04
  18  Prefactor     .10000E-03    82.266        .37041E-05** at limit **
  19  Prefactor     .10000E-03    175.93       -.11123E-05** at limit **
  20  Prefactor     .10000E-03    28.139        .38521E-05** at limit **
  21  norm          34.196        37.778       -.65512E-06   -.10760E-03
  22  Prefactor     37.512        67.356       -.20056E-05    .19011E-04
  23  Prefactor     .10000E-03    13.431        .49945E-06** at limit **
  24  norm          .10000E-03    .64087       -.90695E-07** at limit **
  25  norm          25.279        9.0450        .96209E-07   -.35554E-03
  26  Prefactor     .10000E-03    25.199       -.25617E-05** at limit **
  27  Prefactor     4.8326        5.5270       -.52795E-06    .14307E-03
  28  Normalizat    .39474        .29916        .27561E-05   -.78534E-04
  29  Prefactor     1.1336        .23452        .12872E-06   -.37066E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.5765
  Prefactor  = 0.0001
  Prefactor  = 43.716
  Prefactor  = 70.3893
  norm       = 0.000100012
  Prefactor  = 6.23948
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 21.4824
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 14.1047
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 144.477
  Prefactor  = 87.3244
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 34.1958
  Prefactor  = 37.5116
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 25.279
  Prefactor  = 0.0001
  Prefactor  = 4.83257
  Normalizat = 0.394742
  Prefactor  = 1.13359
 **********
 **   18 **HESSE 
 **********

 FCN=   3297.560     FROM HESSE     STATUS=OK           535 CALLS     4324 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.577        14.265        .98366E-04   -1.4893    
   2  Prefactor     .10000E-03    66.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     43.716        107.29        .60633E-04   -1.4385    
   4  Prefactor     70.389        37.978        .47834E-04   -1.4028    
   5  norm          .10001E-03    3.6098        .14319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.2395        197.17        .15874E-03   -1.5208    
   7  Prefactor     .10000E-03    8.4298        .16259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.9718        .17669E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          21.482        20.952        .86424E-04   -1.4781    
  10  Prefactor     .10000E-03    11.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    54.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     14.105        51.739        .10636E-03   -1.4957    
  13  Prefactor     .10000E-03    4.4622        .11839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .78973        .84326E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.5695        .89833E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     144.48        123.28        .33520E-04   -1.3298    
  17  Prefactor     87.324        84.627        .42988E-04   -1.3836    
  18  Prefactor     .10000E-03    83.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    175.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    28.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          34.196        37.584        .68515E-04   -1.4538    
  22  Prefactor     37.512        67.327        .65427E-04   -1.4482    
  23  Prefactor     .10000E-03    13.787        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    5.5509        .75590E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          25.279        7.8692        .79673E-04   -1.4702    
  26  Prefactor     .10000E-03    25.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     4.8326        5.5200        .13920E-03   -1.5268    
  28  Normalizat    .39474        .31167        .40138E-03   -1.1757    
  29  Prefactor     1.1336        .25149        .20319E-03   -.88400    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.22577e-09
Minuit parameter uncertainties:
  1  14.2677
  2  9.29854e-05
  3  107.769
  4  37.9907
  5  0.000424358
  6  70.4044
  7  0.000123962
  8  3.52919e-05
  9  20.9595
  10  1.61186e-06
  11  0.000627843
  12  51.9042
  13  8.2784e-06
  14  1.94598e-05
  15  4.9775e-06
  16  123.497
  17  84.7445
  18  0.00112607
  19  0.000279797
  20  0.000558255
  21  37.6097
  22  67.4641
  23  0.000168542
  24  2.63771e-05
  25  7.8695
  26  0.000211993
  27  5.5206
  28  0.313056
  29  0.251751
Done.

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

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  1.000e-04  6.278e-04  1.000e-04  1.000e+04 ( 1.000e-13)
361        Index:  2.648e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
362        Scale:  6.667e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
521    Prefactor:  1.134e+00  2.518e-01  0.000e+00  1.000e+01 ( 1.000e+00)
522        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
523        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
520   Normalization:  3.947e-01  3.131e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 350.223 -8.392
Photon Flux Upper Limit: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/754330/likelihoodResults_550886401_551145601_4FGL_J2320.8-0823_daily_bin1202.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) = 3297.56003564
delta logL = -8.65427637109e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3297.55994936
delta logL = -2.65830294666e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1401       1.0000          .0000       10.000    
     3 'Normalizat'    .39474       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1336       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5240E+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=   3297.560     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      271 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10267E-03    39.931        .18142E-01** at limit **
   2  Index         3.0538        8.3024        .50000        .40862E-05
   3  Normalizat    .39474        .57565E-02    .40135E-03    .19276E-04
   4  Prefactor     1.1336        .48204E-02    .20319E-03    .28944E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102672
  Index      = 3.05382
  Normalizat = 0.394739
  Prefactor  = 1.13359
 **********
 **   18 **HESSE 
 **********

 FCN=   3297.560     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      300 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10267E-03    228.28        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.0538        8.2436        .50000       -.39980    
   3  Normalizat    .39474        .13718E-01    .16054E-04   -1.1757    
   4  Prefactor     1.1336        .11487E-01    .40638E-04   -.88400    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.76533e-10
Minuit parameter uncertainties:
  1  0.0495881
  2  600.619
  3  0.0137181
  4  0.0114873
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/754330': 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) = 3297.55994929
delta logL = -1.98325324163e-07

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  1.027e-04  4.959e-02  1.000e-04  1.000e+04 ( 1.000e-13)
361        Index:  3.054e+00  6.006e+02  0.000e+00  1.000e+01 (-1.000e+00)
362        Scale:  6.667e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
521    Prefactor:  1.134e+00  1.149e-02  0.000e+00  1.000e+01 ( 1.000e+00)
522        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
523        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
520   Normalization:  3.947e-01  1.372e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 350.223 -8.392

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/754330/cmap_HighResolution_550886401_551145601_4FGL_J2320.8-0823_daily_bin1202.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.61e-03', job_status='DONE', photon_flux_upper_limit='1.22e-07', time_completed='2021-09-29 11:54:59.051585', job_id='754330', GAL2='1.13', fit_tolerance='1e-08', EG2='0.39', EG='0.39', time_epoch_completed='1632941699.05', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='-1.98e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.65' WHERE bin_id='1202' AND source_name='4FGL J2320.8-0823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:54:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 754330: <4FGL_J2320.8-0823_daily_bin1202> in cluster <slac> Done

Job <4FGL_J2320.8-0823_daily_bin1202> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 11:41:17 2021
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 11:41:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 11:41:18 2021
Terminated at Wed Sep 29 11:54:59 2021
Results reported at Wed Sep 29 11:54:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2320.8-0823_daily_bin1202 350.223 -8.3918 550886401 551145601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2320.8-0823 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   542.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             252.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            822 sec.

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

