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


Performing analysis on: 4FGL_J2320.8-0823_daily_bin1455
RA = 350.223, Dec = -8.3918
tmin = 616464001, tmax = 616723201
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='755657', job_status='RUN', time_executed='2021-09-29 11:46:11.412773', time_epoch_executed='1632941171.41' WHERE source_name='4FGL J2320.8-0823' and cadence='daily' and bin_id='1455'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/755657

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/755657/ft1_4FGL_J2320.8-0823_daily_bin1455.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/755657/ft2_4FGL_J2320.8-0823_daily_bin1455.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/755657/ft1_4FGL_J2320.8-0823_daily_bin1455.fits outfile=/scratch/kocevski/755657/ft1_filteredMKT_4FGL_J2320.8-0823_daily_bin1455.fits ra=350.223 dec=-8.3918 rad=12.0 tmin=616464001.0 tmax=616723201.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 2.87
user 2.66
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/755657/ft1_filtered_4FGL_J2320.8-0823_daily_bin1455.fits" evtable="EVENTS" scfile=/scratch/kocevski/755657/ft2_4FGL_J2320.8-0823_daily_bin1455.fits sctable="SC_DATA" outfile=/scratch/kocevski/755657/ltcube_616464001_616723201_4FGL_J2320.8-0823_daily_bin1455.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/755657/ft2_4FGL_J2320.8-0823_daily_bin1455.fits
.....................!
real 12.40
user 12.01
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/755657/ft1_filtered_4FGL_J2320.8-0823_daily_bin1455.fits evtable="EVENTS" scfile=/scratch/kocevski/755657/ft2_4FGL_J2320.8-0823_daily_bin1455.fits sctable="SC_DATA" expcube=/scratch/kocevski/755657/ltcube_616464001_616723201_4FGL_J2320.8-0823_daily_bin1455.fits outfile=/scratch/kocevski/755657/expmap_616464001_616723201_4FGL_J2320.8-0823_daily_bin1455.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/755657/ltcube_616464001_616723201_4FGL_J2320.8-0823_daily_bin1455.fits
.....................!
real 192.66
user 187.08
sys 5.23

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/755657/ft1_filtered_4FGL_J2320.8-0823_daily_bin1455.fits scfile=/scratch/kocevski/755657/ft2_4FGL_J2320.8-0823_daily_bin1455.fits outfile=/scratch/kocevski/755657/cmap_616464001_616723201_4FGL_J2320.8-0823_daily_bin1455.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/755657/ft1_filtered_4FGL_J2320.8-0823_daily_bin1455.fits scfile=/scratch/kocevski/755657/ft2_4FGL_J2320.8-0823_daily_bin1455.fits outfile=/scratch/kocevski/755657/cmap_HighResolution_616464001_616723201_4FGL_J2320.8-0823_daily_bin1455.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/755657/ft1_filtered_4FGL_J2320.8-0823_daily_bin1455.fits evtable="EVENTS" scfile=/scratch/kocevski/755657/ft2_4FGL_J2320.8-0823_daily_bin1455.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/755657/Model_4FGL_J2320.8-0823_daily_bin1455.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/755657/ft1_filtered_4FGL_J2320.8-0823_daily_bin1455.fits.....................!
real 41.05
user 39.67
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/755657/ft1_filtered_4FGL_J2320.8-0823_daily_bin1455.fits', '/scratch/kocevski/755657/ft2_4FGL_J2320.8-0823_daily_bin1455.fits', expMap='/scratch/kocevski/755657/expmap_616464001_616723201_4FGL_J2320.8-0823_daily_bin1455.fits', expCube='/scratch/kocevski/755657/ltcube_616464001_616723201_4FGL_J2320.8-0823_daily_bin1455.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/755657/Model_4FGL_J2320.8-0823_daily_bin1455.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/755657/ft1_filtered_4FGL_J2320.8-0823_daily_bin1455.fits
Spacecraft file(s): /scratch/kocevski/755657/ft2_4FGL_J2320.8-0823_daily_bin1455.fits
Exposure map: /scratch/kocevski/755657/expmap_616464001_616723201_4FGL_J2320.8-0823_daily_bin1455.fits
Exposure cube: /scratch/kocevski/755657/ltcube_616464001_616723201_4FGL_J2320.8-0823_daily_bin1455.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/755657/Model_4FGL_J2320.8-0823_daily_bin1455.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) = 4228.10704004

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3438       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .78203       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.622       1.0000         .10000E-03   10000.    
     5 'norm      '    .13009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    45.542       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13765E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.115       1.0000         .10000E-03   10000.    
     9 'norm      '    31.285       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.666       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .21589E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10240E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.3198       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10604E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.3491       1.0000         .10000E-03   10000.    
    24 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    27.454       1.0000         .10000E-03   10000.    
    26 'Prefactor '    12.015       1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.3499       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .94454       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .88628       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=   4228.063     FROM MIGRAD    STATUS=CONVERGED   1327 CALLS     4352 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3404        8.7685        .17385E-03   -.86318E-05
   2  Prefactor     .10000E-03    32.040        .18142E-02** at limit **
   3  Prefactor     .10307E-03    214.27        .30972    ** at limit **
   4  Prefactor     14.621        23.021        .10474E-03   -.22576E-04
   5  norm          .10000E-03    4.2501        .12709E-02** at limit **
   6  Prefactor     45.559        56.871        .59412E-04   -.13777E-04
   7  Prefactor     .10000E-03    19.927        .18142E-02** at limit **
   8  Prefactor     21.114        14.358        .87166E-04   -.65213E-05
   9  norm          31.286        18.794        .71635E-04   -.92048E-05
  10  Prefactor     15.663        16.690        .10119E-03   -.49433E-05
  11  Prefactor     .10000E-03    168.10        .18142E-02** at limit **
  12  Prefactor     .10000E-03    26.756        .18142E-02** at limit **
  13  Prefactor     .10000E-03    3.8622        .12459E-02** at limit **
  14  norm          .10000E-03    1.2233        .99008E-03** at limit **
  15  norm          1.3228        4.2011        .23126E-03    .23105E-04
  16  Prefactor     .10000E-03    24.610        .18142E-02** at limit **
  17  Prefactor     .10000E-03    92.978        .18142E-02** at limit **
  18  Prefactor     .10000E-03    22.750        .18142E-02** at limit **
  19  Prefactor     .10000E-03    88.667        .18142E-02** at limit **
  20  Prefactor     .10000E-03    15.001        .18142E-02** at limit **
  21  norm          .10000E-03    10.652        .18142E-02** at limit **
  22  Prefactor     .10000E-03    19.007        .18142E-02** at limit **
  23  Prefactor     8.3496        5.7941        .12002E-03   -.77766E-04
  24  norm          .10000E-03    .39836        .70302E-03** at limit **
  25  norm          27.449        7.3523        .76459E-04    .39105E-04
  26  Prefactor     12.012        14.187        .11557E-03   -.50169E-05
  27  Prefactor     5.3484        8.1522        .17375E-03   -.17208E-04
  28  Normalizat    .94431        .29097        .27831E-03   -.51796E-04
  29  Prefactor     .88677        .22078        .23016E-03   -.77055E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.34037
  Prefactor  = 0.0001
  Prefactor  = 0.000103073
  Prefactor  = 14.6213
  norm       = 0.0001
  Prefactor  = 45.5586
  Prefactor  = 0.0001
  Prefactor  = 21.1138
  norm       = 31.2858
  Prefactor  = 15.6635
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.32278
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.3496
  norm       = 0.0001
  norm       = 27.4486
  Prefactor  = 12.0119
  Prefactor  = 5.34837
  Normalizat = 0.944307
  Prefactor  = 0.886765
 **********
 **   18 **HESSE 
 **********

 FCN=   4228.063     FROM HESSE     STATUS=OK           533 CALLS     4885 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3404        8.7677        .69541E-05   -1.5246    
   2  Prefactor     .10000E-03    32.042        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10307E-03    214.27        .30972       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.621        22.980        .41898E-05   -1.4943    
   5  norm          .10000E-03    4.2513        .25418E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     45.559        56.911        .23765E-05   -1.4357    
   7  Prefactor     .10000E-03    19.932        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     21.114        14.359        .34866E-05   -1.4789    
   9  norm          31.286        18.794        .28654E-05   -1.4589    
  10  Prefactor     15.663        16.691        .40477E-05   -1.4916    
  11  Prefactor     .10000E-03    168.24        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    26.759        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.8623        .24917E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.2273        .19802E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.3228        4.2007        .92502E-05   -1.5478    
  16  Prefactor     .10000E-03    24.611        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    92.994        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    22.757        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    88.667        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    15.008        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    10.652        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    19.007        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     8.3496        5.7936        .48009E-05   -1.5130    
  24  norm          .10000E-03    .39846        .14060E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          27.449        7.3516        .30584E-05   -1.4660    
  26  Prefactor     12.012        14.187        .46228E-05   -1.5015    
  27  Prefactor     5.3484        8.1510        .69501E-05   -1.5245    
  28  Normalizat    .94431        .29128        .11133E-04   -.94920    
  29  Prefactor     .88677        .22103        .92065E-05   -.96605    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08691e-10
Minuit parameter uncertainties:
  1  8.76984
  2  1.16312e-06
  3  0.0515069
  4  22.9941
  5  2.79469e-05
  6  56.9793
  7  9.65646e-06
  8  14.361
  9  18.798
  10  16.696
  11  0.000255758
  12  4.73414e-05
  13  2.26246e-05
  14  2.12888e-05
  15  4.20168
  16  9.95093e-06
  17  8.01573e-05
  18  8.16465e-06
  19  9.97962e-05
  20  5.27113e-06
  21  1.12877e-06
  22  1.70652e-05
  23  5.79399
  24  2.7258e-07
  25  7.35181
  26  14.1914
  27  8.15274
  28  0.291772
  29  0.221257
Done.

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

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  1.000e-04  2.558e-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:  8.868e-01  2.213e-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:  9.443e-01  2.918e-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: 9.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.71e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/755657/likelihoodResults_616464001_616723201_4FGL_J2320.8-0823_daily_bin1455.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) = 4228.06293995
delta logL = -2.82124628939e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4228.06291187
delta logL = -1.3261433196e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11050E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8812       1.0000          .0000       10.000    
     3 'Normalizat'    .94430       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88677       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=   4228.063     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      280 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10241E-03    416.49        .36285E-02** at limit **
   2  Index         2.8024        5.7488        .50000        .22736E-05
   3  Normalizat    .94431        .96857E-02    .27831E-03   -.12573E-03
   4  Prefactor     .88677        .78285E-02    .23015E-03   -.71576E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102412
  Index      = 2.80239
  Normalizat = 0.944305
  Prefactor  = 0.886767
 **********
 **   18 **HESSE 
 **********

 FCN=   4228.063     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      309 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10241E-03    1839.3        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8024        6.3677        .50000       -.45507    
   3  Normalizat    .94431        .21071E-01    .11133E-04   -.94920    
   4  Prefactor     .88677        .17031E-01    .92060E-05   -.96605    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.9772e-10
Minuit parameter uncertainties:
  1  0.137688
  2  935.495
  3  0.0210713
  4  0.0170308
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/755657': 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) = 4228.06291179
delta logL = -5.18930391991e-08

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  1.024e-04  1.377e-01  1.000e-04  1.000e+04 ( 1.000e-13)
361        Index:  2.802e+00  9.355e+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:  8.868e-01  1.703e-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:  9.443e-01  2.107e-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/755657/cmap_HighResolution_616464001_616723201_4FGL_J2320.8-0823_daily_bin1455.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.71e-03', job_status='DONE', photon_flux_upper_limit='9.82e-08', time_completed='2021-09-29 11:57:21.799635', job_id='755657', GAL2='0.89', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1632941841.8', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='-5.19e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.65' WHERE bin_id='1455' AND source_name='4FGL J2320.8-0823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:57:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 755657: <4FGL_J2320.8-0823_daily_bin1455> in cluster <slac> Done

Job <4FGL_J2320.8-0823_daily_bin1455> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep 29 11:45:52 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 11:45:54 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:45:54 2021
Terminated at Wed Sep 29 11:57:22 2021
Results reported at Wed Sep 29 11:57:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2320.8-0823_daily_bin1455 350.223 -8.3918 616464001 616723201 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 :                                   629.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   688 sec.
    Turnaround time :                            690 sec.

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

