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


Performing analysis on: 4FGL_J2320.8-0823_daily_bin674
RA = 350.223, Dec = -8.3918
tmin = 414028801, tmax = 414288001
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='752491', job_status='RUN', time_executed='2021-09-29 11:38:44.424847', time_epoch_executed='1632940724.42' WHERE source_name='4FGL J2320.8-0823' and cadence='daily' and bin_id='674'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/752491

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/752491/ft1_4FGL_J2320.8-0823_daily_bin674.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/752491/ft2_4FGL_J2320.8-0823_daily_bin674.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/752491/ft1_4FGL_J2320.8-0823_daily_bin674.fits outfile=/scratch/kocevski/752491/ft1_filteredMKT_4FGL_J2320.8-0823_daily_bin674.fits ra=350.223 dec=-8.3918 rad=12.0 tmin=414028801.0 tmax=414288001.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.17
user 4.89
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/752491/ft1_filtered_4FGL_J2320.8-0823_daily_bin674.fits" evtable="EVENTS" scfile=/scratch/kocevski/752491/ft2_4FGL_J2320.8-0823_daily_bin674.fits sctable="SC_DATA" outfile=/scratch/kocevski/752491/ltcube_414028801_414288001_4FGL_J2320.8-0823_daily_bin674.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/752491/ft2_4FGL_J2320.8-0823_daily_bin674.fits
.....................!
real 12.07
user 11.75
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/752491/ft1_filtered_4FGL_J2320.8-0823_daily_bin674.fits evtable="EVENTS" scfile=/scratch/kocevski/752491/ft2_4FGL_J2320.8-0823_daily_bin674.fits sctable="SC_DATA" expcube=/scratch/kocevski/752491/ltcube_414028801_414288001_4FGL_J2320.8-0823_daily_bin674.fits outfile=/scratch/kocevski/752491/expmap_414028801_414288001_4FGL_J2320.8-0823_daily_bin674.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/752491/ltcube_414028801_414288001_4FGL_J2320.8-0823_daily_bin674.fits
.....................!
real 192.08
user 187.43
sys 4.33

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/752491/ft1_filtered_4FGL_J2320.8-0823_daily_bin674.fits scfile=/scratch/kocevski/752491/ft2_4FGL_J2320.8-0823_daily_bin674.fits outfile=/scratch/kocevski/752491/cmap_414028801_414288001_4FGL_J2320.8-0823_daily_bin674.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/752491/ft1_filtered_4FGL_J2320.8-0823_daily_bin674.fits scfile=/scratch/kocevski/752491/ft2_4FGL_J2320.8-0823_daily_bin674.fits outfile=/scratch/kocevski/752491/cmap_HighResolution_414028801_414288001_4FGL_J2320.8-0823_daily_bin674.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/752491/ft1_filtered_4FGL_J2320.8-0823_daily_bin674.fits evtable="EVENTS" scfile=/scratch/kocevski/752491/ft2_4FGL_J2320.8-0823_daily_bin674.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/752491/Model_4FGL_J2320.8-0823_daily_bin674.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/752491/ft1_filtered_4FGL_J2320.8-0823_daily_bin674.fits.....................!
real 33.21
user 31.97
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.984       1.0000         .10000E-03   10000.    
     2 'Prefactor '    49.514       1.0000         .10000E-03   10000.    
     3 'Prefactor '    100.16       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10287E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10729       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.285       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.9935       1.0000         .10000E-03   10000.    
     9 'norm      '    29.390       1.0000         .10000E-03   10000.    
    10 'Prefactor '    49.962       1.0000         .10000E-03   10000.    
    11 'Prefactor '    65.931       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .21971       1.0000         .10000E-03   10000.    
    15 'norm      '    .10362E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    30.678       1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.266       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11388E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    68.663       1.0000         .10000E-03   10000.    
    22 'Prefactor '    77.171       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.2019       1.0000         .10000E-03   10000.    
    24 'norm      '    .52179       1.0000         .10000E-03   10000.    
    25 'norm      '    .12214       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.5691       1.0000         .10000E-03   10000.    
    27 'Prefactor '    4.4264       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .61949       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1772       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=   2671.592     FROM MIGRAD    STATUS=CONVERGED    772 CALLS     4472 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.984        14.774        .16111E-07   -.82599E-06
   2  Prefactor     49.508        66.753        .10355E-06   -.12237E-05
   3  Prefactor     100.15        106.05        .62779E-07   -.55629E-06
   4  Prefactor     .10000E-03    67.744       -.14881E-06** at limit **
   5  norm          .11228        2.0342       -.24107E-06    .10630E-03
   6  Prefactor     .10000E-03    36.930       -.10019E-06** at limit **
   7  Prefactor     24.275        21.448       -.26046E-07    .15828E-04
   8  Prefactor     3.9920        13.090        .25992E-05    .13471E-03
   9  norm          29.376        32.687        .86321E-07    .18045E-04
  10  Prefactor     49.960        40.074       -.31596E-06    .98713E-05
  11  Prefactor     65.875        108.84        .24750E-05    .43135E-05
  12  Prefactor     .10000E-03    15.914        .11492E-06** at limit **
  13  Prefactor     .10000E-03    18.860       -.11114E-05** at limit **
  14  norm          .21923        1.8554       -.23928E-06    .64334E-05
  15  norm          .10000E-03    8.8772       -.36940E-06** at limit **
  16  Prefactor     30.561        103.07        .25253E-05   -.51171E-05
  17  Prefactor     18.461        156.95       -.81939E-06   -.20903E-04
  18  Prefactor     .10000E-03    22.679        .12542E-05** at limit **
  19  Prefactor     .10000E-03    167.10        .69635E-06** at limit **
  20  Prefactor     .10000E-03    27.605       -.56216E-06** at limit **
  21  norm          68.669        60.454       -.21810E-06    .14694E-04
  22  Prefactor     77.135        91.258        .88519E-06   -.30954E-05
  23  Prefactor     1.2058        16.465        .50237E-06    .47288E-04
  24  norm          .53201        .89879        .63354E-06   -.65721E-03
  25  norm          .11275E-03    7.1797       -.28721E-06** at limit **
  26  Prefactor     2.5526        58.927        .87050E-06    .25458E-05
  27  Prefactor     4.4262        8.5068        .15510E-06   -.22413E-05
  28  Normalizat    .61968        .39670       -.68322E-05   -.82010E-05
  29  Prefactor     1.1772        .28965        .38087E-05   -.51761E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.9835
  Prefactor  = 49.5076
  Prefactor  = 100.149
  Prefactor  = 0.0001
  norm       = 0.112277
  Prefactor  = 0.0001
  Prefactor  = 24.2748
  Prefactor  = 3.99197
  norm       = 29.3765
  Prefactor  = 49.9602
  Prefactor  = 65.8748
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.219233
  norm       = 0.0001
  Prefactor  = 30.5614
  Prefactor  = 18.4608
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 68.6685
  Prefactor  = 77.135
  Prefactor  = 1.20578
  norm       = 0.532014
  norm       = 0.000112747
  Prefactor  = 2.55264
  Prefactor  = 4.42623
  Normalizat = 0.61968
  Prefactor  = 1.17722
 **********
 **   18 **HESSE 
 **********

 FCN=   2671.592     FROM HESSE     STATUS=OK           565 CALLS     5037 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.984        14.770        .10347E-03   -1.4934    
   2  Prefactor     49.508        66.750        .56990E-04   -1.4300    
   3  Prefactor     100.15        106.05        .20085E-03   -1.3703    
   4  Prefactor     .10000E-03    68.167        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .11228        4.6004        .13466E-02   -1.5641    
   6  Prefactor     .10000E-03    37.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     24.275        21.409        .81285E-04   -1.4722    
   8  Prefactor     3.9920        13.376        .10091E-02   -1.5308    
   9  norm          29.376        32.685        .73903E-04   -1.4623    
  10  Prefactor     49.960        40.097        .56735E-04   -1.4293    
  11  Prefactor     65.875        109.14        .49427E-04   -1.4083    
  12  Prefactor     .10000E-03    15.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    19.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .21923        1.8427        .13077E-03   -1.5614    
  15  norm          .10000E-03    8.9448        .15033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     30.561        102.84        .72339E-04   -1.4602    
  17  Prefactor     18.461        158.64        .93712E-04   -1.4848    
  18  Prefactor     .10000E-03    22.877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    167.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    27.695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          68.669        57.600        .48440E-04   -1.4049    
  22  Prefactor     77.135        91.152        .22856E-03   -1.3949    
  23  Prefactor     1.2058        14.769        .32185E-03   -1.5488    
  24  norm          .53201        1.2522        .45438E-04   -1.5562    
  25  norm          .11275E-03    41.523        .37272E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     2.5526        58.527        .25467E-03   -1.5388    
  27  Prefactor     4.4262        8.4877        .19141E-03   -1.5287    
  28  Normalizat    .61968        .41710        .35255E-03   -1.0715    
  29  Prefactor     1.1772        .30828        .21428E-03   -.87035    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69708e-09
Minuit parameter uncertainties:
  1  14.7731
  2  66.8509
  3  106.252
  4  5.23493e-05
  5  1.43686
  6  9.61706e-06
  7  21.4157
  8  13.3858
  9  32.7053
  10  40.1188
  11  109.473
  12  1.3323e-05
  13  0.000126352
  14  1.27095
  15  2.43639e-05
  16  103.445
  17  108.623
  18  0.000160394
  19  0.000125165
  20  5.86496e-05
  21  57.6467
  22  91.3182
  23  8.44209
  24  1.25223
  25  0.0460446
  26  24.4724
  27  8.49001
  28  0.419249
  29  0.308748
Done.

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

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  6.587e+01  1.095e+02  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.177e+00  3.087e-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.197e-01  4.192e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.49
Ra Dec: 350.223 -8.392
Photon Flux Upper Limit: 2.82e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.22e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/752491/likelihoodResults_414028801_414288001_4FGL_J2320.8-0823_daily_bin674.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) = 2671.45067964
delta logL = 0.14177083615

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2671.44060338
delta logL = 0.151847097948

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.872       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5459       1.0000          .0000       10.000    
     3 'Normalizat'    .56163       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2108       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=   2671.441     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      296 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.930        567.61        .70974E-04    .37144E-03
   2  Index         3.5454        6.7582        .67711E-02    .14774E-03
   3  Normalizat    .56113        .37887        .36951E-03   -.12475E-03
   4  Prefactor     1.2113        .31085        .21165E-03   -.14784E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.9298
  Index      = 3.54545
  Normalizat = 0.561127
  Prefactor  = 1.21125
 **********
 **   18 **HESSE 
 **********

 FCN=   2671.441     FROM HESSE     STATUS=OK            25 CALLS      321 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.930        103.94        .14195E-04   -1.4577    
   2  Index         3.5454        2.0674        .27084E-03   -.29518    
   3  Normalizat    .56113        .37028        .14780E-04   -1.0966    
   4  Prefactor     1.2113        .29279        .42330E-04   -.85986    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10406e-09
Minuit parameter uncertainties:
  1  104.539
  2  2.13786
  3  0.371931
  4  0.293182
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/752491': 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) = 2671.44060214
delta logL = 0.151848335896

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  3.193e+01  1.045e+02  1.000e-04  1.000e+04 ( 1.000e-13)
361        Index:  3.545e+00  2.138e+00  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.211e+00  2.932e-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:  5.611e-01  3.719e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.49
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/752491/cmap_HighResolution_414028801_414288001_4FGL_J2320.8-0823_daily_bin674.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.22e-02', job_status='DONE', photon_flux_upper_limit='2.82e-07', time_completed='2021-09-29 11:47:30.312011', job_id='752491', GAL2='1.21', fit_tolerance='1e-08', EG2='0.56', EG='0.62', time_epoch_completed='1632941250.31', return_code2='0', ts='0.49', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='1.52e-01', ts2='0.86', photon_index_error='0.00', photon_index='2.65' WHERE bin_id='674' AND source_name='4FGL J2320.8-0823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:47:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 752491: <4FGL_J2320.8-0823_daily_bin674> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2320.8-0823_daily_bin674 350.223 -8.3918 414028801 414288001 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 :                                   524.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   715 sec.
    Turnaround time :                            717 sec.

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

