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


Performing analysis on: 4FGL_J2320.8-0823_daily_bin1182
RA = 350.223, Dec = -8.3918
tmin = 545702401, tmax = 545961601
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='754300', job_status='RUN', time_executed='2021-09-29 11:44:53.886035', time_epoch_executed='1632941093.89' WHERE source_name='4FGL J2320.8-0823' and cadence='daily' and bin_id='1182'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/754300

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/754300/ft1_4FGL_J2320.8-0823_daily_bin1182.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/754300/ft2_4FGL_J2320.8-0823_daily_bin1182.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/754300/ft1_4FGL_J2320.8-0823_daily_bin1182.fits outfile=/scratch/kocevski/754300/ft1_filteredMKT_4FGL_J2320.8-0823_daily_bin1182.fits ra=350.223 dec=-8.3918 rad=12.0 tmin=545702401.0 tmax=545961601.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 4.00
user 3.74
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/754300/ft1_filtered_4FGL_J2320.8-0823_daily_bin1182.fits" evtable="EVENTS" scfile=/scratch/kocevski/754300/ft2_4FGL_J2320.8-0823_daily_bin1182.fits sctable="SC_DATA" outfile=/scratch/kocevski/754300/ltcube_545702401_545961601_4FGL_J2320.8-0823_daily_bin1182.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/754300/ft2_4FGL_J2320.8-0823_daily_bin1182.fits
.....................!
real 11.62
user 11.24
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/754300/ft1_filtered_4FGL_J2320.8-0823_daily_bin1182.fits evtable="EVENTS" scfile=/scratch/kocevski/754300/ft2_4FGL_J2320.8-0823_daily_bin1182.fits sctable="SC_DATA" expcube=/scratch/kocevski/754300/ltcube_545702401_545961601_4FGL_J2320.8-0823_daily_bin1182.fits outfile=/scratch/kocevski/754300/expmap_545702401_545961601_4FGL_J2320.8-0823_daily_bin1182.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/754300/ltcube_545702401_545961601_4FGL_J2320.8-0823_daily_bin1182.fits
.....................!
real 190.72
user 184.93
sys 5.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/754300/ft1_filtered_4FGL_J2320.8-0823_daily_bin1182.fits scfile=/scratch/kocevski/754300/ft2_4FGL_J2320.8-0823_daily_bin1182.fits outfile=/scratch/kocevski/754300/cmap_545702401_545961601_4FGL_J2320.8-0823_daily_bin1182.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/754300/ft1_filtered_4FGL_J2320.8-0823_daily_bin1182.fits scfile=/scratch/kocevski/754300/ft2_4FGL_J2320.8-0823_daily_bin1182.fits outfile=/scratch/kocevski/754300/cmap_HighResolution_545702401_545961601_4FGL_J2320.8-0823_daily_bin1182.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.56
user 0.37
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/754300/ft1_filtered_4FGL_J2320.8-0823_daily_bin1182.fits evtable="EVENTS" scfile=/scratch/kocevski/754300/ft2_4FGL_J2320.8-0823_daily_bin1182.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/754300/Model_4FGL_J2320.8-0823_daily_bin1182.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/754300/ft1_filtered_4FGL_J2320.8-0823_daily_bin1182.fits........................!
real 20.70
user 19.32
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15228       1.0000         .10000E-03   10000.    
     2 'Prefactor '    186.79       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .46784E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1626       1.0000         .10000E-03   10000.    
     5 'norm      '    5.2012       1.0000         .10000E-03   10000.    
     6 'Prefactor '    146.64       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .29477E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    148.09       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .31179       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14036       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .19678E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.1147       1.0000         .10000E-03   10000.    
    14 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .20794E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .52041       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .44403E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12778E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.523       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .21824E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .13526E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10276E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .14691E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .42317       1.0000         .10000E-03   10000.    
    25 'norm      '    40.438       1.0000         .10000E-03   10000.    
    26 'Prefactor '    28.802       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .27420E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .76324E-01   1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1128       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1152.555     FROM MIGRAD    STATUS=CONVERGED    493 CALLS     2956 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .31404        449.30       -.14322E-03    .27383E-04
   2  Prefactor     153.85        187.72       -.12290E-04   -.67565E-04
   3  Prefactor     .10000E-03    154.28       -.12925E-04** at limit **
   4  Prefactor     .10000E-03    189.36       -.52206E-05** at limit **
   5  norm          4.9519        5.1233        .25058E-05    .25900E-03
   6  Prefactor     160.13        156.40       -.14163E-04   -.17043E-02
   7  Prefactor     .10000E-03    11.526        .84568E-06** at limit **
   8  Prefactor     .10000E-03    24.211        .48167E-06** at limit **
   9  norm          146.90        20.337        .14402E-05   -.13744E-01
  10  Prefactor     .10000E-03    597.93       -.48688E-04** at limit **
  11  Prefactor     .10002E-03    392.45       -.67404E-04** at limit **
  12  Prefactor     .10000E-03    24.039        .94179E-07** at limit **
  13  Prefactor     9.5224        32.930       -.19993E-05    .11743E-04
  14  norm          .10000E-03    2.7194        .14890E-06** at limit **
  15  norm          .10000E-03    14.629       -.17290E-05** at limit **
  16  Prefactor     .10000E-03    877.20       -.19975E-04** at limit **
  17  Prefactor     .10000E-03    39.532       -.33370E-05** at limit **
  18  Prefactor     .10000E-03    16.943       -.14800E-05** at limit **
  19  Prefactor     435.19        975.48       -.98064E-05    .99876E-05
  20  Prefactor     .10000E-03    41.517       -.87226E-06** at limit **
  21  norm          .10000E-03    103.75        .12393E-06** at limit **
  22  Prefactor     .10000E-03    107.60        .21408E-04** at limit **
  23  Prefactor     .10000E-03    12.579        .12024E-05** at limit **
  24  norm          .44037        1.4597        .10622E-05    .22986E-03
  25  norm          40.490        16.547        .74726E-06    .13829E-03
  26  Prefactor     29.295        108.14       -.14232E-04    .32801E-03
  27  Prefactor     .10000E-03    21.808       -.49544E-05** at limit **
  28  Normalizat    .90620E-01    .81083        .43145E-04    .13853E-04
  29  Prefactor     1.0855        .43734       -.23689E-05   -.67538E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.314041
  Prefactor  = 153.847
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 4.95188
  Prefactor  = 160.13
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 146.897
  Prefactor  = 0.000100001
  Prefactor  = 0.000100025
  Prefactor  = 0.0001
  Prefactor  = 9.52243
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 435.191
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.440372
  norm       = 40.4896
  Prefactor  = 29.2952
  Prefactor  = 0.0001
  Normalizat = 0.0906201
  Prefactor  = 1.08553
 **********
 **   18 **HESSE 
 **********

 FCN=   1152.555     FROM HESSE     STATUS=NOT POSDEF   605 CALLS     3561 TOTAL
                     EDM=   .32E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .31404        43.469        .97576E-01   -1.5820    
   2  Prefactor     153.85        178.31        .73861E-03   -1.3221    
   3  Prefactor     .10000E-03    144.96        .92544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    174.26        .10675E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.9519        5.3751        .44066E-02   -1.5263    
   6  Prefactor     160.13        287.11        .83194E-03   -1.3170    
   7  Prefactor     .10000E-03    10.682        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    23.455        .10699E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          146.90        136.01        .82790E-03   -1.3278    
  10  Prefactor     .10000E-03    570.50        .10477E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10002E-03    367.07        .97019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    22.488        .10122E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.5224        52.099        .33188E-02   -1.5091    
  14  norm          .10000E-03    2.4093        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    13.506        .10097E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    833.55        .11354E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    36.845        .96808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.091        .10296E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     435.19        947.81        .22662E-02   -1.1505    
  20  Prefactor     .10000E-03    37.577        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    95.009        .10275E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    99.870        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    10.947        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .44037        1.5230        .10953E-01   -1.5575    
  25  norm          40.490        24.046        .15759E-02   -1.4434    
  26  Prefactor     29.295        103.92        .18663E-02   -1.4625    
  27  Prefactor     .10000E-03    21.002        .10714E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .90620E-01    9.9420        .19039       -1.3909    
  29  Prefactor     1.0855        2.1465        .37120E-01   -.89930    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.20393e-06
Minuit parameter uncertainties:
  1  7.39374
  2  178.936
  3  0.000245879
  4  0.000733339
  5  5.37567
  6  289.671
  7  4.92369e-06
  8  0.000138916
  9  136.3
  10  0.00182312
  11  0.0060932
  12  3.3646e-06
  13  44.607
  14  6.94626e-07
  15  1.90256e-06
  16  0.0023193
  17  1.15742e-05
  18  1.38133e-05
  19  985.708
  20  1.39183e-05
  21  0.000175929
  22  0.000182868
  23  2.98058e-05
  24  1.5231
  25  24.0518
  26  104.576
  27  1.9445e-05
  28  2.89845
  29  2.36893
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 1152.55544956

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  1.000e-04  6.093e-03  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.086e+00  2.369e+00  0.000e+00  1.000e+01 ( 1.000e+00)
522        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
523        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
520   Normalization:  9.062e-02  2.898e+00  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/754300/likelihoodResults_545702401_545961601_4FGL_J2320.8-0823_daily_bin1182.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) = 1152.55546152
delta logL = -1.19606741009e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1152.55546152
delta logL = -1.19599519621e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96353E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6480       1.0000          .0000       10.000    
     3 'Normalizat'    .90620E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0855       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=   1152.555     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      247 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    374.42        .18143E-02** at limit **
   2  Index         2.6920        6.3384        .50000       -.10219E-05
   3  Normalizat    .90613E-01    .61644        .78640E-02    .18555E-04
   4  Prefactor     1.0855        .39871        .20792E-03    .54114E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.69197
  Normalizat = 0.090613
  Prefactor  = 1.08554
 **********
 **   18 **HESSE 
 **********

 FCN=   1152.555     FROM HESSE     STATUS=OK            31 CALLS      278 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    365.21        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6920        6.3358        .50000       -.47981    
   3  Normalizat    .90613E-01    .56022        .31456E-03   -1.3909    
   4  Prefactor     1.0855        .37977        .41585E-04   -.89930    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8175e-11
Minuit parameter uncertainties:
  1  0.00171499
  2  4.43776
  3  0.430924
  4  0.38072
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/754300': 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) = 1152.55544955
delta logL = 1.0199528333e-08

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  1.000e-04  1.715e-03  1.000e-04  1.000e+04 ( 1.000e-13)
361        Index:  2.692e+00  4.438e+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.086e+00  3.807e-01  0.000e+00  1.000e+01 ( 1.000e+00)
522        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
523        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
520   Normalization:  9.061e-02  4.309e-01  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/754300/cmap_HighResolution_545702401_545961601_4FGL_J2320.8-0823_daily_bin1182.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.58e-02', job_status='DONE', photon_flux_upper_limit='4.56e-07', time_completed='2021-09-29 11:53:13.153197', job_id='754300', GAL2='1.09', fit_tolerance='1e-08', EG2='0.09', EG='0.09', time_epoch_completed='1632941593.15', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='102', GAL='1.09', dlogl='1.02e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.65' WHERE bin_id='1182' AND source_name='4FGL J2320.8-0823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:53:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 754300: <4FGL_J2320.8-0823_daily_bin1182> in cluster <slac> Done

Job <4FGL_J2320.8-0823_daily_bin1182> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep 29 11:41:14 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 11:41:15 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:15 2021
Terminated at Wed Sep 29 11:53:13 2021
Results reported at Wed Sep 29 11:53:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2320.8-0823_daily_bin1182 350.223 -8.3918 545702401 545961601 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 :                                   392.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             251.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   718 sec.
    Turnaround time :                            719 sec.

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

