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


Performing analysis on: 4FGL_J2320.8-0823_daily_bin735
RA = 350.223, Dec = -8.3918
tmin = 429840001, tmax = 430099201
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='752580', job_status='RUN', time_executed='2021-09-29 11:37:56.666444', time_epoch_executed='1632940676.67' WHERE source_name='4FGL J2320.8-0823' and cadence='daily' and bin_id='735'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/752580

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/752580/ft1_4FGL_J2320.8-0823_daily_bin735.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/752580/ft2_4FGL_J2320.8-0823_daily_bin735.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/752580/ft1_4FGL_J2320.8-0823_daily_bin735.fits outfile=/scratch/kocevski/752580/ft1_filteredMKT_4FGL_J2320.8-0823_daily_bin735.fits ra=350.223 dec=-8.3918 rad=12.0 tmin=429840001.0 tmax=430099201.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.93
user 5.62
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/752580/ft1_filtered_4FGL_J2320.8-0823_daily_bin735.fits" evtable="EVENTS" scfile=/scratch/kocevski/752580/ft2_4FGL_J2320.8-0823_daily_bin735.fits sctable="SC_DATA" outfile=/scratch/kocevski/752580/ltcube_429840001_430099201_4FGL_J2320.8-0823_daily_bin735.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/752580/ft2_4FGL_J2320.8-0823_daily_bin735.fits
.....................!
real 12.37
user 11.98
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/752580/ft1_filtered_4FGL_J2320.8-0823_daily_bin735.fits evtable="EVENTS" scfile=/scratch/kocevski/752580/ft2_4FGL_J2320.8-0823_daily_bin735.fits sctable="SC_DATA" expcube=/scratch/kocevski/752580/ltcube_429840001_430099201_4FGL_J2320.8-0823_daily_bin735.fits outfile=/scratch/kocevski/752580/expmap_429840001_430099201_4FGL_J2320.8-0823_daily_bin735.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/752580/ltcube_429840001_430099201_4FGL_J2320.8-0823_daily_bin735.fits
.....................!
real 191.56
user 186.16
sys 5.02

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/752580/ft1_filtered_4FGL_J2320.8-0823_daily_bin735.fits scfile=/scratch/kocevski/752580/ft2_4FGL_J2320.8-0823_daily_bin735.fits outfile=/scratch/kocevski/752580/cmap_429840001_430099201_4FGL_J2320.8-0823_daily_bin735.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/752580/ft1_filtered_4FGL_J2320.8-0823_daily_bin735.fits scfile=/scratch/kocevski/752580/ft2_4FGL_J2320.8-0823_daily_bin735.fits outfile=/scratch/kocevski/752580/cmap_HighResolution_429840001_430099201_4FGL_J2320.8-0823_daily_bin735.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/752580/ft1_filtered_4FGL_J2320.8-0823_daily_bin735.fits evtable="EVENTS" scfile=/scratch/kocevski/752580/ft2_4FGL_J2320.8-0823_daily_bin735.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/752580/Model_4FGL_J2320.8-0823_daily_bin735.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/752580/ft1_filtered_4FGL_J2320.8-0823_daily_bin735.fits.....................!
real 31.10
user 29.75
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    83.239       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.7506       1.0000         .10000E-03   10000.    
     5 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.4592       1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.330       1.0000         .10000E-03   10000.    
     9 'norm      '    2.9656       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.0186       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   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 '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10495E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.8034       1.0000         .10000E-03   10000.    
    24 'norm      '    2.3353       1.0000         .10000E-03   10000.    
    25 'norm      '    .49112E-01   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    9.9018       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .88694       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .84812       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=   2729.965     FROM MIGRAD    STATUS=CONVERGED    759 CALLS     3712 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.0269       -.82972E-08** at limit **
   2  Prefactor     .10000E-03    31.436       -.32181E-05** at limit **
   3  Prefactor     83.243        125.91        .15001E-05    .17545E-04
   4  Prefactor     4.7583        19.744        .88107E-06   -.35424E-04
   5  norm          .10000E-03    1.9180       -.37237E-06** at limit **
   6  Prefactor     .10001E-03    34.052        .78150E-05** at limit **
   7  Prefactor     1.4560        54.298        .81185E-06   -.56027E-04
   8  Prefactor     16.329        19.931        .12044E-06   -.30289E-04
   9  norm          2.9637        13.279        .69092E-05   -.68091E-03
  10  Prefactor     .10000E-03    9.8808       -.11915E-07** at limit **
  11  Prefactor     .10000E-03    32.266       -.13869E-05** at limit **
  12  Prefactor     .10000E-03    19.900       -.35335E-05** at limit **
  13  Prefactor     .10000E-03    3.7609       -.60140E-08** at limit **
  14  norm          1.0186        1.2324       -.16624E-07   -.19509E-03
  15  norm          .10000E-03    2.2142        .61589E-08** at limit **
  16  Prefactor     .10001E-03    27.025       -.54437E-05** at limit **
  17  Prefactor     .10000E-03    25.516       -.40080E-07** at limit **
  18  Prefactor     .10000E-03    20.731        .30643E-05** at limit **
  19  Prefactor     .10002E-03    97.668        .10437E-04** at limit **
  20  Prefactor     .10000E-03    15.526        .17813E-06** at limit **
  21  norm          .10000E-03    23.862        .44624E-05** at limit **
  22  Prefactor     .10001E-03    69.163       -.81698E-05** at limit **
  23  Prefactor     4.8034        7.0111        .53604E-06   -.37728E-04
  24  norm          2.3425        1.0563        .31649E-07    .27224E-03
  25  norm          .10059E-03    4.7025       -.13910E-06** at limit **
  26  Prefactor     .10000E-03    8.9940       -.26757E-07** at limit **
  27  Prefactor     9.9015        12.295        .87833E-07   -.35090E-04
  28  Normalizat    .88688        .26009       -.67831E-06   -.38127E-05
  29  Prefactor     .84817        .20160       -.53054E-06   -.20488E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 83.2426
  Prefactor  = 4.75826
  norm       = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 1.45604
  Prefactor  = 16.3294
  norm       = 2.96372
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 1.01863
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.00010002
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.000100012
  Prefactor  = 4.8034
  norm       = 2.34251
  norm       = 0.00010059
  Prefactor  = 0.0001
  Prefactor  = 9.90149
  Normalizat = 0.886878
  Prefactor  = 0.848169
 **********
 **   18 **HESSE 
 **********

 FCN=   2729.965     FROM HESSE     STATUS=OK           557 CALLS     4269 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.0339        .12525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    31.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     83.243        125.96        .44027E-04   -1.3881    
   4  Prefactor     4.7583        15.807        .18460E-03   -1.5272    
   5  norm          .10000E-03    2.6226        .11255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    35.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.4560        54.830        .35626E-03   -1.5467    
   8  Prefactor     16.329        19.962        .99111E-04   -1.4900    
   9  norm          2.9637        21.155        .11790E-02   -1.5364    
  10  Prefactor     .10000E-03    9.8841        .16043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    32.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    20.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.7626        .98960E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.0186        1.1797        .60640E-03   -1.5506    
  15  norm          .10000E-03    2.2152        .75929E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    27.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    25.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    20.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10002E-03    99.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    15.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    24.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10001E-03    70.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.8034        6.9749        .15472E-03   -1.5270    
  24  norm          2.3425        1.1199        .31823E-04   -1.5402    
  25  norm          .10059E-03    11.330        .35720E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    9.0005        .15305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     9.9015        12.402        .12734E-03   -1.5079    
  28  Normalizat    .88688        .30119        .25509E-03   -.96923    
  29  Prefactor     .84817        .23404        .21089E-03   -.97976    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.39345e-09
Minuit parameter uncertainties:
  1  6.43742e-07
  2  0.000487245
  3  126.37
  4  15.8207
  5  2.58592e-05
  6  0.00128348
  7  17.887
  8  19.9702
  9  15.8442
  10  1.43512e-06
  11  0.000212954
  12  0.000427027
  13  4.40778e-07
  14  1.17977
  15  8.67087e-08
  16  0.000772508
  17  7.02432e-06
  18  0.000372943
  19  0.00280365
  20  2.21382e-05
  21  0.000560434
  22  0.00185061
  23  6.97612
  24  1.11987
  25  0.00517259
  26  3.72653e-06
  27  12.4048
  28  0.301761
  29  0.234313
Done.

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

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  1.000e-04  2.130e-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.482e-01  2.343e-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:  8.869e-01  3.018e-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.21e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/752580/likelihoodResults_429840001_430099201_4FGL_J2320.8-0823_daily_bin735.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) = 2729.96538477
delta logL = -0.00014732335103

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2729.96523832
delta logL = -8.74736542755e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10585E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.4143       1.0000          .0000       10.000    
     3 'Normalizat'    .88687       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84817       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=   2729.965     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      268 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10435E-03    22.575        .18142E-01** at limit **
   2  Index         3.2834        5.4423        .50000        .71719E-05
   3  Normalizat    .88688        .61418E-02    .25509E-03    .75765E-06
   4  Prefactor     .84817        .50048E-02    .21089E-03   -.96228E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104348
  Index      = 3.28337
  Normalizat = 0.886878
  Prefactor  = 0.848169
 **********
 **   18 **HESSE 
 **********

 FCN=   2729.965     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      297 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10435E-03    227.22        .24942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.2834        7.9595        .50000       -.35046    
   3  Normalizat    .88688        .19622E-01    .10203E-04   -.96923    
   4  Prefactor     .84817        .15990E-01    .84354E-05   -.97976    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.7543e-09
Minuit parameter uncertainties:
  1  0.0631029
  2  843.973
  3  0.0196225
  4  0.01599
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/752580': 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) = 2729.96523806
delta logL = -6.15648332314e-07

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  1.043e-04  6.310e-02  1.000e-04  1.000e+04 ( 1.000e-13)
361        Index:  3.283e+00  8.440e+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.482e-01  1.599e-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:  8.869e-01  1.962e-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/752580/cmap_HighResolution_429840001_430099201_4FGL_J2320.8-0823_daily_bin735.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.49e-03', job_status='DONE', photon_flux_upper_limit='1.21e-07', time_completed='2021-09-29 11:46:35.163397', job_id='752580', GAL2='0.85', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1632941195.16', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='-6.16e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.65' WHERE bin_id='735' AND source_name='4FGL J2320.8-0823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:46:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 752580: <4FGL_J2320.8-0823_daily_bin735> in cluster <slac> Done

Job <4FGL_J2320.8-0823_daily_bin735> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 11:35:42 2021
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 11:35:45 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:35:45 2021
Terminated at Wed Sep 29 11:46:35 2021
Results reported at Wed Sep 29 11:46:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2320.8-0823_daily_bin735 350.223 -8.3918 429840001 430099201 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 :                                   515.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             255.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   650 sec.
    Turnaround time :                            653 sec.

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

