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


Performing analysis on: 4FGL_J2320.8-0823_daily_bin1136
RA = 350.223, Dec = -8.3918
tmin = 533779201, tmax = 534038401
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='754229', job_status='RUN', time_executed='2021-09-29 11:41:17.421455', time_epoch_executed='1632940877.42' WHERE source_name='4FGL J2320.8-0823' and cadence='daily' and bin_id='1136'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/754229

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/754229/ft1_4FGL_J2320.8-0823_daily_bin1136.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/754229/ft2_4FGL_J2320.8-0823_daily_bin1136.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/754229/ft1_4FGL_J2320.8-0823_daily_bin1136.fits outfile=/scratch/kocevski/754229/ft1_filteredMKT_4FGL_J2320.8-0823_daily_bin1136.fits ra=350.223 dec=-8.3918 rad=12.0 tmin=533779201.0 tmax=534038401.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.48
user 3.25
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/754229/ft1_filtered_4FGL_J2320.8-0823_daily_bin1136.fits" evtable="EVENTS" scfile=/scratch/kocevski/754229/ft2_4FGL_J2320.8-0823_daily_bin1136.fits sctable="SC_DATA" outfile=/scratch/kocevski/754229/ltcube_533779201_534038401_4FGL_J2320.8-0823_daily_bin1136.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/754229/ft2_4FGL_J2320.8-0823_daily_bin1136.fits
.....................!
real 11.95
user 11.59
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/754229/ft1_filtered_4FGL_J2320.8-0823_daily_bin1136.fits evtable="EVENTS" scfile=/scratch/kocevski/754229/ft2_4FGL_J2320.8-0823_daily_bin1136.fits sctable="SC_DATA" expcube=/scratch/kocevski/754229/ltcube_533779201_534038401_4FGL_J2320.8-0823_daily_bin1136.fits outfile=/scratch/kocevski/754229/expmap_533779201_534038401_4FGL_J2320.8-0823_daily_bin1136.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/754229/ltcube_533779201_534038401_4FGL_J2320.8-0823_daily_bin1136.fits
.....................!
real 191.62
user 186.64
sys 4.64

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/754229/ft1_filtered_4FGL_J2320.8-0823_daily_bin1136.fits scfile=/scratch/kocevski/754229/ft2_4FGL_J2320.8-0823_daily_bin1136.fits outfile=/scratch/kocevski/754229/cmap_533779201_534038401_4FGL_J2320.8-0823_daily_bin1136.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/754229/ft1_filtered_4FGL_J2320.8-0823_daily_bin1136.fits scfile=/scratch/kocevski/754229/ft2_4FGL_J2320.8-0823_daily_bin1136.fits outfile=/scratch/kocevski/754229/cmap_HighResolution_533779201_534038401_4FGL_J2320.8-0823_daily_bin1136.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.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3290       1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.351       1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.544       1.0000         .10000E-03   10000.    
     4 'Prefactor '    70.250       1.0000         .10000E-03   10000.    
     5 'norm      '    11.714       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12048E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.151       1.0000         .10000E-03   10000.    
     9 'norm      '    13.488       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .69158E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.552       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.485       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .81449       1.0000         .10000E-03   10000.    
    15 'norm      '    5.0526       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    64.568       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    34.548       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .15181E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .27186       1.0000         .10000E-03   10000.    
    25 'norm      '    4.7508       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    21.594       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .72631       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .93755       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=   7507.643     FROM MIGRAD    STATUS=CONVERGED    747 CALLS     3837 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3308        5.7614        .40747E-06    .82820E-04
   2  Prefactor     17.355        22.177        .50721E-07    .81170E-05
   3  Prefactor     23.548        33.651        .14676E-07    .14817E-04
   4  Prefactor     70.362        40.142        .10391E-05    .40477E-05
   5  norm          11.703        3.5994       -.19356E-06    .33340E-04
   6  Prefactor     .10000E-03    28.442        .25036E-06** at limit **
   7  Prefactor     .10000E-03    3.7265       -.41124E-07** at limit **
   8  Prefactor     11.153        7.5165        .66446E-07    .36933E-04
   9  norm          13.483        9.0061        .11666E-06   -.24050E-04
  10  Prefactor     .38624        14.511        .12678E-05   -.18583E-03
  11  Prefactor     12.570        35.332        .90241E-06    .11381E-04
  12  Prefactor     13.484        18.851        .22811E-07   -.76544E-04
  13  Prefactor     .10000E-03    4.0664        .14462E-05** at limit **
  14  norm          .81487        .93763        .20782E-06    .41895E-03
  15  norm          5.0546        4.9805        .18297E-06   -.42246E-04
  16  Prefactor     .10000E-03    14.509       -.10176E-06** at limit **
  17  Prefactor     64.600        48.429        .73497E-06    .88214E-05
  18  Prefactor     .10000E-03    17.300        .37225E-05** at limit **
  19  Prefactor     34.561        100.49        .25441E-07    .64568E-05
  20  Prefactor     .10000E-03    2.0378       -.38652E-07** at limit **
  21  norm          .10000E-03    4.2017       -.29833E-07** at limit **
  22  Prefactor     .10000E-03    109.18       -.16998E-06** at limit **
  23  Prefactor     .10000E-03    1.0721       -.77475E-07** at limit **
  24  norm          .27196        .36828        .26153E-06    .17188E-02
  25  norm          4.7521        3.4594       -.72205E-07   -.95502E-04
  26  Prefactor     .10000E-03    6.9361       -.22023E-06** at limit **
  27  Prefactor     21.600        7.6358        .15455E-06   -.87967E-05
  28  Normalizat    .72602        .19446       -.47360E-05   -.52890E-04
  29  Prefactor     .93742        .14866        .28917E-05   -.32326E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.33083
  Prefactor  = 17.355
  Prefactor  = 23.5483
  Prefactor  = 70.3622
  norm       = 11.703
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.1527
  norm       = 13.4825
  Prefactor  = 0.386244
  Prefactor  = 12.5698
  Prefactor  = 13.4837
  Prefactor  = 0.0001
  norm       = 0.814866
  norm       = 5.05457
  Prefactor  = 0.0001
  Prefactor  = 64.6004
  Prefactor  = 0.0001
  Prefactor  = 34.5612
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.271955
  norm       = 4.75212
  Prefactor  = 0.0001
  Prefactor  = 21.6004
  Normalizat = 0.72602
  Prefactor  = 0.93742
 **********
 **   18 **HESSE 
 **********

 FCN=   7507.643     FROM HESSE     STATUS=OK           561 CALLS     4398 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3308        5.7539        .22185E-03   -1.5343    
   2  Prefactor     17.355        22.174        .96150E-04   -1.4875    
   3  Prefactor     23.548        33.656        .82553E-04   -1.4737    
   4  Prefactor     70.362        42.245        .47894E-04   -1.4028    
   5  norm          11.703        3.7926        .47293E-04   -1.5024    
   6  Prefactor     .10000E-03    28.514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.7345        .16335E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.153        7.5165        .11997E-03   -1.5040    
   9  norm          13.483        9.0079        .10906E-03   -1.4973    
  10  Prefactor     .38624        17.621        .94054E-01   -1.5584    
  11  Prefactor     12.570        35.239        .11306E-03   -1.4999    
  12  Prefactor     13.484        18.865        .10908E-03   -1.4973    
  13  Prefactor     .10000E-03    4.0949        .17063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .81487        .88109        .81525E-03   -1.5527    
  15  norm          5.0546        4.9275        .17718E-03   -1.5258    
  16  Prefactor     .10000E-03    14.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     64.600        48.361        .49943E-04   -1.4099    
  18  Prefactor     .10000E-03    17.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     34.561        100.11        .68178E-04   -1.4532    
  20  Prefactor     .10000E-03    2.0395        .12078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    4.2031        .17346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    111.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.0790        .87551E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .27196        .34298        .56538E-03   -1.5604    
  25  norm          4.7521        3.3986        .12216E-03   -1.5272    
  26  Prefactor     .10000E-03    6.9705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     21.600        7.6363        .86195E-04   -1.4778    
  28  Normalizat    .72602        .20391        .30299E-03   -1.0287    
  29  Prefactor     .93742        .15634        .22236E-03   -.94846    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.5199e-10
Minuit parameter uncertainties:
  1  5.75481
  2  22.1844
  3  33.6834
  4  42.263
  5  3.79272
  6  2.17495e-05
  7  1.16102e-06
  8  7.51716
  9  9.00885
  10  5.21855
  11  35.2978
  12  18.8735
  13  2.92206e-05
  14  0.881107
  15  4.92794
  16  6.81688e-06
  17  48.3907
  18  0.000167102
  19  100.603
  20  3.403e-07
  21  8.89897e-07
  22  3.0776e-06
  23  1.56606e-07
  24  0.342984
  25  3.39872
  26  5.24444e-07
  27  7.6366
  28  0.204128
  29  0.156413
Done.

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

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  1.257e+01  3.530e+01  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:  9.374e-01  1.564e-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:  7.260e-01  2.041e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.16
Ra Dec: 350.223 -8.392
Photon Flux Upper Limit: 8.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/754229/likelihoodResults_533779201_534038401_4FGL_J2320.8-0823_daily_bin1136.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): 0
logL (Free Index) = 7507.33636876
delta logL = 0.306897829653

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7507.28585858
delta logL = 0.357408008852

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19651E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    9.9925       1.0000          .0000       10.000    
     3 'Normalizat'    .68432       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96380       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=   7507.286     FROM MIGRAD    STATUS=CONVERGED    125 CALLS      600 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19385E-03    .25808E-03    .17400E-04** at limit **
   2  Index        10.0000        1.9423        .50000    ** at limit **
   3  Normalizat    .68391        .19805        .31157E-03    .38890E-03
   4  Prefactor     .96414        .15895        .21966E-03    .80010E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000193845
  Index      = 10
  Normalizat = 0.683911
  Prefactor  = 0.964144
 **********
 **   18 **HESSE 
 **********

 FCN=   7507.286     FROM HESSE     STATUS=OK            31 CALLS      631 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19385E-03    .24971E-03    .69600E-06   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        1.8379        .50000        1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .68391        .19849        .12463E-04   -1.0453    
   4  Prefactor     .96414        .15919        .43932E-04   -.93934    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.4387e-10
Minuit parameter uncertainties:
  1  0.000249713
  2  0.000865833
  3  0.198703
  4  0.15927
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/754229': 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) = 7507.28582828
delta logL = 0.35743830502

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  1.938e-04  2.497e-04  1.000e-04  1.000e+04 ( 1.000e-13)
361        Index:  1.000e+01  8.658e-04  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:  9.641e-01  1.593e-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:  6.839e-01  1.987e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/754229/cmap_HighResolution_533779201_534038401_4FGL_J2320.8-0823_daily_bin1136.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.93e-03', job_status='DONE', photon_flux_upper_limit='8.83e-08', time_completed='2021-09-29 11:56:30.233086', job_id='754229', GAL2='0.96', fit_tolerance='1e-08', EG2='0.68', EG='0.73', time_epoch_completed='1632941790.23', return_code2='0', ts='0.16', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='3.57e-01', ts2='0.94', photon_index_error='0.00', photon_index='2.65' WHERE bin_id='1136' AND source_name='4FGL J2320.8-0823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:56:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 754229: <4FGL_J2320.8-0823_daily_bin1136> in cluster <slac> Done

Job <4FGL_J2320.8-0823_daily_bin1136> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 11:41:07 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 11:41:09 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:09 2021
Terminated at Wed Sep 29 11:56:31 2021
Results reported at Wed Sep 29 11:56:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2320.8-0823_daily_bin1136 350.223 -8.3918 533779201 534038401 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 :                                   896.33 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             307.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            924 sec.

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

