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


Performing analysis on: 4FGL_J2320.8-0823_daily_bin857
RA = 350.223, Dec = -8.3918
tmin = 461462401, tmax = 461721601
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='753786', job_status='RUN', time_executed='2021-09-29 11:40:35.883600', time_epoch_executed='1632940835.88' WHERE source_name='4FGL J2320.8-0823' and cadence='daily' and bin_id='857'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/753786

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/753786/ft1_4FGL_J2320.8-0823_daily_bin857.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/753786/ft2_4FGL_J2320.8-0823_daily_bin857.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/753786/ft1_4FGL_J2320.8-0823_daily_bin857.fits outfile=/scratch/kocevski/753786/ft1_filteredMKT_4FGL_J2320.8-0823_daily_bin857.fits ra=350.223 dec=-8.3918 rad=12.0 tmin=461462401.0 tmax=461721601.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.96
user 3.67
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/753786/ft1_filtered_4FGL_J2320.8-0823_daily_bin857.fits" evtable="EVENTS" scfile=/scratch/kocevski/753786/ft2_4FGL_J2320.8-0823_daily_bin857.fits sctable="SC_DATA" outfile=/scratch/kocevski/753786/ltcube_461462401_461721601_4FGL_J2320.8-0823_daily_bin857.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/753786/ft2_4FGL_J2320.8-0823_daily_bin857.fits
.....................!
real 11.84
user 11.47
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/753786/ft1_filtered_4FGL_J2320.8-0823_daily_bin857.fits evtable="EVENTS" scfile=/scratch/kocevski/753786/ft2_4FGL_J2320.8-0823_daily_bin857.fits sctable="SC_DATA" expcube=/scratch/kocevski/753786/ltcube_461462401_461721601_4FGL_J2320.8-0823_daily_bin857.fits outfile=/scratch/kocevski/753786/expmap_461462401_461721601_4FGL_J2320.8-0823_daily_bin857.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/753786/ltcube_461462401_461721601_4FGL_J2320.8-0823_daily_bin857.fits
.....................!
real 191.34
user 185.96
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/753786/ft1_filtered_4FGL_J2320.8-0823_daily_bin857.fits scfile=/scratch/kocevski/753786/ft2_4FGL_J2320.8-0823_daily_bin857.fits outfile=/scratch/kocevski/753786/cmap_461462401_461721601_4FGL_J2320.8-0823_daily_bin857.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/753786/ft1_filtered_4FGL_J2320.8-0823_daily_bin857.fits scfile=/scratch/kocevski/753786/ft2_4FGL_J2320.8-0823_daily_bin857.fits outfile=/scratch/kocevski/753786/cmap_HighResolution_461462401_461721601_4FGL_J2320.8-0823_daily_bin857.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/753786/ft1_filtered_4FGL_J2320.8-0823_daily_bin857.fits evtable="EVENTS" scfile=/scratch/kocevski/753786/ft2_4FGL_J2320.8-0823_daily_bin857.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/753786/Model_4FGL_J2320.8-0823_daily_bin857.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/753786/ft1_filtered_4FGL_J2320.8-0823_daily_bin857.fits.....................!
real 63.12
user 61.68
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    29.352       1.0000         .10000E-03   10000.    
     3 'Prefactor '    154.33       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.9741       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .82299E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    16.261       1.0000         .10000E-03   10000.    
    10 'Prefactor '    39.444       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.579       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.3356       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.0269       1.0000         .10000E-03   10000.    
    15 'norm      '    6.4912       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.1685       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    24.307       1.0000         .10000E-03   10000.    
    22 'Prefactor '    31.591       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.6833       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    11.086       1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.7253       1.0000         .10000E-03   10000.    
    27 'Prefactor '    10.410       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .82002       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .91289       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=   7104.839     FROM MIGRAD    STATUS=CONVERGED    707 CALLS     3676 TOTAL
                     EDM=   .58E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.9208       -.20841E-06** at limit **
   2  Prefactor     29.332        47.436       -.47497E-06   -.40733E-04
   3  Prefactor     154.33        82.916        .98053E-07   -.12335E-04
   4  Prefactor     .10000E-03    2.8478        .11210E-06** at limit **
   5  norm          .10000E-03    .20809        .76535E-08** at limit **
   6  Prefactor     .10000E-03    4.6340        .93230E-07** at limit **
   7  Prefactor     5.9742        5.8018        .89508E-08   -.44846E-05
   8  Prefactor     .10000E-03    3.9896        .33537E-06** at limit **
   9  norm          16.259        12.133        .11885E-06   -.14684E-04
  10  Prefactor     39.442        19.214        .37679E-07   -.92236E-05
  11  Prefactor     15.574        25.660        .62301E-07   -.10425E-04
  12  Prefactor     6.3267        18.541        .12416E-06   -.49226E-05
  13  Prefactor     .10000E-03    2.4849       -.17325E-06** at limit **
  14  norm          2.0268        .91999        .11218E-08   -.82621E-04
  15  norm          6.4908        4.6682        .36906E-07   -.12632E-05
  16  Prefactor     .10000E-03    35.339        .10709E-06** at limit **
  17  Prefactor     .10000E-03    69.474        .23319E-06** at limit **
  18  Prefactor     4.1522        8.8058       -.16365E-06   -.36750E-06
  19  Prefactor     .10000E-03    59.458        .37963E-06** at limit **
  20  Prefactor     .10000E-03    6.1009        .10317E-06** at limit **
  21  norm          24.313        19.046       -.89819E-07   -.74954E-05
  22  Prefactor     31.544        64.786       -.96500E-06   -.64642E-04
  23  Prefactor     2.6819        4.8591        .32971E-06   -.25886E-04
  24  norm          .10000E-03    .15092        .60603E-07** at limit **
  25  norm          11.085        3.9291       -.68737E-07   -.18249E-03
  26  Prefactor     6.7240        13.306        .37932E-05   -.54899E-04
  27  Prefactor     10.406        7.2991        .63055E-07    .92276E-05
  28  Normalizat    .82022        .17267        .57842E-06   -.10661E-03
  29  Prefactor     .91280        .13288       -.10491E-05   -.26557E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 29.3318
  Prefactor  = 154.326
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.97416
  Prefactor  = 0.0001
  norm       = 16.2594
  Prefactor  = 39.4424
  Prefactor  = 15.574
  Prefactor  = 6.32669
  Prefactor  = 0.0001
  norm       = 2.02679
  norm       = 6.49078
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.15218
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 24.3134
  Prefactor  = 31.5444
  Prefactor  = 2.68191
  norm       = 0.0001
  norm       = 11.0847
  Prefactor  = 6.72403
  Prefactor  = 10.4057
  Normalizat = 0.820215
  Prefactor  = 0.912803
 **********
 **   18 **HESSE 
 **********

 FCN=   7104.839     FROM HESSE     STATUS=OK           557 CALLS     4233 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.9289        .16288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     29.332        47.435        .73951E-04   -1.4624    
   3  Prefactor     154.33        82.917        .16225E-03   -1.3217    
   4  Prefactor     .10000E-03    2.8602        .13892E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .20818        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.6395        .17721E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.9742        5.8042        .16428E-03   -1.5219    
   8  Prefactor     .10000E-03    9.8302        .32487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          16.259        12.133        .99321E-04   -1.4901    
  10  Prefactor     39.442        19.213        .63821E-04   -1.4451    
  11  Prefactor     15.574        25.639        .10147E-03   -1.4918    
  12  Prefactor     6.3267        18.526        .15947E-03   -1.5205    
  13  Prefactor     .10000E-03    2.4894        .12961E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.0268        .91358        .51456E-04   -1.5423    
  15  norm          6.4908        4.6613        .14709E-03   -1.5198    
  16  Prefactor     .10000E-03    35.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    70.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.1522        8.7785        .19741E-03   -1.5300    
  19  Prefactor     .10000E-03    59.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.1159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          24.313        18.912        .81249E-04   -1.4721    
  22  Prefactor     31.544        64.975        .71289E-04   -1.4584    
  23  Prefactor     2.6819        4.8053        .21532E-03   -1.5380    
  24  norm          .10000E-03    .22894        .61336E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          11.085        3.7937        .92346E-04   -1.5042    
  26  Prefactor     6.7240        13.364        .77363E-03   -1.5189    
  27  Prefactor     10.406        7.3187        .12418E-03   -1.5063    
  28  Normalizat    .82022        .19606        .27082E-03   -.99323    
  29  Prefactor     .91280        .15031        .21357E-03   -.95695    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47863e-10
Minuit parameter uncertainties:
  1  1.10961e-06
  2  47.4959
  3  82.9798
  4  9.25983e-07
  5  2.52727e-08
  6  6.78565e-07
  7  5.80477
  8  0.000111196
  9  12.1351
  10  19.216
  11  25.6572
  12  18.5423
  13  1.42003e-06
  14  0.91359
  15  4.66157
  16  2.3959e-05
  17  0.000235579
  18  8.78118
  19  0.000298983
  20  8.59015e-06
  21  18.9171
  22  65.1208
  23  4.80604
  24  4.59426e-07
  25  3.79376
  26  13.37
  27  7.31929
  28  0.196226
  29  0.150378
Done.

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

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  1.557e+01  2.566e+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.128e-01  1.504e-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.202e-01  1.962e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/753786/likelihoodResults_461462401_461721601_4FGL_J2320.8-0823_daily_bin857.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) = 7104.60385955
delta logL = 0.234736610658

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7104.55817702
delta logL = 0.280419140767

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.513       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9284       1.0000          .0000       10.000    
     3 'Normalizat'    .82871       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90676       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.

 FCN=   7104.558     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      214 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.513        52.018        .20227E-02   -.10454E-02
   2  Index         1.9282        1.0304        .26218       -.30359E-04
   3  Normalizat    .82874        .15646        .43984E-01    .12859E-04
   4  Prefactor     .90672        .13013        .45091E-01    .14253E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.5125
  Index      = 1.9282
  Normalizat = 0.828741
  Prefactor  = 0.906723
 **********
 **   18 **HESSE 
 **********

 FCN=   7104.558     FROM HESSE     STATUS=OK            31 CALLS      245 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.513        31.945        .80908E-04   -1.4717    
   2  Index         1.9282        .80288        .13121E-01   -.66157    
   3  Normalizat    .82874        .17758        .26950E-03   -.99011    
   4  Prefactor     .90672        .14774        .21412E-03   -.95907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.73979e-09
Minuit parameter uncertainties:
  1  31.9669
  2  0.808533
  3  0.177701
  4  0.147808
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/753786': 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) = 7104.55817695
delta logL = 0.280419202929

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  2.451e+01  3.197e+01  1.000e-04  1.000e+04 ( 1.000e-13)
361        Index:  1.928e+00  8.085e-01  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.067e-01  1.478e-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.287e-01  1.777e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.06
Ra Dec: 350.223 -8.392
Photon Index (Free Index): 1.93 +/- 0.81
Photon Flux (Free Index): 1.02e-08 +/- 1.59e-08
Energy Flux (Free Index): 8.50e-06 +/- 1.55e-05

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/753786/cmap_HighResolution_461462401_461721601_4FGL_J2320.8-0823_daily_bin857.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.99e-03', comment='SUCCESS', energy_flux2='8.50e-06', dlogl='2.80e-01', photon_flux2='1.02e-08', job_status='DONE', time_completed='2021-09-29 11:54:19.386797', photon_index_error2='0.81', photon_index2='1.93', ts='0.50', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='7.63e-08', energy_flux_error2='1.55e-05', EG='0.82', time_epoch_completed='1632941659.39', return_code='0', job_id='753786', GAL2='0.91', EG2='0.83', return_code2='0', photon_flux_error2='1.59e-08', ts2='1.06', photon_index='2.65' WHERE bin_id='857' AND source_name='4FGL J2320.8-0823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:54:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 753786: <4FGL_J2320.8-0823_daily_bin857> in cluster <slac> Done

Job <4FGL_J2320.8-0823_daily_bin857> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 11:40:20 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 11:40:21 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:40:21 2021
Terminated at Wed Sep 29 11:54:20 2021
Results reported at Wed Sep 29 11:54:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2320.8-0823_daily_bin857 350.223 -8.3918 461462401 461721601 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 :                                   820.17 sec.
    Max Memory :                                 1136 MB
    Average Memory :                             357.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            840 sec.

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

