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


Performing analysis on: 4FGL_J2320.8-0823_daily_bin1185
RA = 350.223, Dec = -8.3918
tmin = 546480001, tmax = 546739201
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='754304', job_status='RUN', time_executed='2021-09-29 11:45:03.913599', time_epoch_executed='1632941103.91' WHERE source_name='4FGL J2320.8-0823' and cadence='daily' and bin_id='1185'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/754304

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/754304/ft1_4FGL_J2320.8-0823_daily_bin1185.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/754304/ft2_4FGL_J2320.8-0823_daily_bin1185.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/754304/ft1_4FGL_J2320.8-0823_daily_bin1185.fits outfile=/scratch/kocevski/754304/ft1_filteredMKT_4FGL_J2320.8-0823_daily_bin1185.fits ra=350.223 dec=-8.3918 rad=12.0 tmin=546480001.0 tmax=546739201.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.85
user 3.64
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/754304/ft1_filtered_4FGL_J2320.8-0823_daily_bin1185.fits" evtable="EVENTS" scfile=/scratch/kocevski/754304/ft2_4FGL_J2320.8-0823_daily_bin1185.fits sctable="SC_DATA" outfile=/scratch/kocevski/754304/ltcube_546480001_546739201_4FGL_J2320.8-0823_daily_bin1185.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/754304/ft2_4FGL_J2320.8-0823_daily_bin1185.fits
.....................!
real 11.75
user 11.41
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/754304/ft1_filtered_4FGL_J2320.8-0823_daily_bin1185.fits evtable="EVENTS" scfile=/scratch/kocevski/754304/ft2_4FGL_J2320.8-0823_daily_bin1185.fits sctable="SC_DATA" expcube=/scratch/kocevski/754304/ltcube_546480001_546739201_4FGL_J2320.8-0823_daily_bin1185.fits outfile=/scratch/kocevski/754304/expmap_546480001_546739201_4FGL_J2320.8-0823_daily_bin1185.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/754304/ltcube_546480001_546739201_4FGL_J2320.8-0823_daily_bin1185.fits
.....................!
real 190.08
user 185.35
sys 4.37

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/754304/ft1_filtered_4FGL_J2320.8-0823_daily_bin1185.fits scfile=/scratch/kocevski/754304/ft2_4FGL_J2320.8-0823_daily_bin1185.fits outfile=/scratch/kocevski/754304/cmap_546480001_546739201_4FGL_J2320.8-0823_daily_bin1185.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/754304/ft1_filtered_4FGL_J2320.8-0823_daily_bin1185.fits scfile=/scratch/kocevski/754304/ft2_4FGL_J2320.8-0823_daily_bin1185.fits outfile=/scratch/kocevski/754304/cmap_HighResolution_546480001_546739201_4FGL_J2320.8-0823_daily_bin1185.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/754304/ft1_filtered_4FGL_J2320.8-0823_daily_bin1185.fits evtable="EVENTS" scfile=/scratch/kocevski/754304/ft2_4FGL_J2320.8-0823_daily_bin1185.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/754304/Model_4FGL_J2320.8-0823_daily_bin1185.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/754304/ft1_filtered_4FGL_J2320.8-0823_daily_bin1185.fits.....................!
real 40.21
user 38.88
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    211.69       1.0000         .10000E-03   10000.    
     4 'Prefactor '    42.457       1.0000         .10000E-03   10000.    
     5 'norm      '    .27574E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.6889       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.852       1.0000         .10000E-03   10000.    
     9 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.231       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.647       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.5727       1.0000         .10000E-03   10000.    
    15 'norm      '    .10227E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    129.44       1.0000         .10000E-03   10000.    
    17 'Prefactor '    31.362       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .33977E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    32.972       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.4058       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .84887       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .99641       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=   4209.439     FROM MIGRAD    STATUS=CONVERGED    731 CALLS     3842 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.647        .45198E-06** at limit **
   2  Prefactor     .10000E-03    69.949       -.31680E-05** at limit **
   3  Prefactor     211.64        203.60        .31738E-05   -.19605E-04
   4  Prefactor     42.482        24.804       -.54405E-06   -.29208E-03
   5  norm          .10000E-03    1.2329        .30135E-07** at limit **
   6  Prefactor     .10000E-03    22.569        .30940E-07** at limit **
   7  Prefactor     1.6858        19.167        .11198E-04   -.43116E-04
   8  Prefactor     13.855        17.172        .11277E-06   -.37921E-04
   9  norm          .10000E-03    9.7323       -.55109E-06** at limit **
  10  Prefactor     20.217        44.710        .20922E-05   -.18587E-04
  11  Prefactor     .10000E-03    27.782       -.11893E-05** at limit **
  12  Prefactor     18.649        21.190       -.40610E-06    .10126E-04
  13  Prefactor     .10000E-03    4.9530        .93720E-07** at limit **
  14  norm          1.5731        1.3317        .93361E-07   -.57402E-04
  15  norm          .10000E-03    7.7685        .20543E-06** at limit **
  16  Prefactor     129.45        115.19       -.11342E-05    .82074E-05
  17  Prefactor     31.274        58.677        .88230E-05   -.46262E-04
  18  Prefactor     .10001E-03    27.005       -.59085E-05** at limit **
  19  Prefactor     .10000E-03    145.16        .63923E-06** at limit **
  20  Prefactor     .10000E-03    10.812        .56454E-06** at limit **
  21  norm          .10000E-03    14.269       -.64419E-06** at limit **
  22  Prefactor     .10000E-03    47.527        .31965E-05** at limit **
  23  Prefactor     .10000E-03    8.6514        .69417E-06** at limit **
  24  norm          .10000E-03    .48821       -.22543E-06** at limit **
  25  norm          32.971        7.8150       -.10455E-07    .59636E-03
  26  Prefactor     .10000E-03    19.152        .12641E-05** at limit **
  27  Prefactor     2.4036        8.8848        .81550E-06    .11543E-04
  28  Normalizat    .84829        .25911        .15329E-05    .38479E-05
  29  Prefactor     .99694        .20449       -.31086E-05    .70576E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 211.643
  Prefactor  = 42.4817
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 1.68581
  Prefactor  = 13.8554
  norm       = 0.0001
  Prefactor  = 20.2165
  Prefactor  = 0.0001
  Prefactor  = 18.6486
  Prefactor  = 0.0001
  norm       = 1.57309
  norm       = 0.0001
  Prefactor  = 129.451
  Prefactor  = 31.274
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 32.9715
  Prefactor  = 0.0001
  Prefactor  = 2.4036
  Normalizat = 0.848294
  Prefactor  = 0.99694
 **********
 **   18 **HESSE 
 **********

 FCN=   4209.439     FROM HESSE     STATUS=OK           543 CALLS     4385 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    69.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     211.64        203.48        .13894E-03   -1.2788    
   4  Prefactor     42.482        19.920        .61523E-04   -1.4403    
   5  norm          .10000E-03    8.4319        .10981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.6858        19.323        .16197E-02   -1.5448    
   8  Prefactor     13.855        17.199        .10762E-03   -1.4963    
   9  norm          .10000E-03    9.7407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     20.217        44.787        .89047E-04   -1.4808    
  11  Prefactor     .10000E-03    27.788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     18.649        21.187        .92751E-04   -1.4844    
  13  Prefactor     .10000E-03    4.9671        .14100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.5731        1.3192        .65879E-04   -1.5457    
  15  norm          .10000E-03    8.1020        .35293E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     129.45        115.19        .17694E-03   -1.3427    
  17  Prefactor     31.274        59.252        .71548E-04   -1.4589    
  18  Prefactor     .10001E-03    28.377        .42673E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    145.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    14.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    47.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.9762        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .77602        .81942E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          32.971        7.3594        .69783E-04   -1.4559    
  26  Prefactor     .10000E-03    19.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.4036        8.8675        .26397E-03   -1.5398    
  28  Normalizat    .84829        .30542        .30614E-03   -.98302    
  29  Prefactor     .99694        .23953        .23468E-03   -.92832    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.75097e-10
Minuit parameter uncertainties:
  1  1.32735e-05
  2  0.000466741
  3  204.163
  4  19.9228
  5  0.0001472
  6  3.65825e-05
  7  11.4193
  8  17.2056
  9  3.03935e-05
  10  44.8612
  11  0.000110597
  12  21.1957
  13  6.53385e-06
  14  1.3192
  15  2.66223e-05
  16  115.393
  17  59.3637
  18  0.0010761
  19  6.39194e-05
  20  4.39276e-06
  21  4.57599e-05
  22  0.000247178
  23  3.12376e-05
  24  2.94626e-06
  25  7.35956
  26  3.45612e-05
  27  8.87237
  28  0.306045
  29  0.239786
Done.

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

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  1.000e-04  1.106e-04  1.000e-04  1.000e+04 ( 1.000e-13)
361        Index:  2.648e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
362        Scale:  6.667e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
521    Prefactor:  9.969e-01  2.398e-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.483e-01  3.060e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/754304/likelihoodResults_546480001_546739201_4FGL_J2320.8-0823_daily_bin1185.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4209.43898973
delta logL = -0.000171379600033

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4209.43881984
delta logL = -1.49270908878e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10780E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1597       1.0000          .0000       10.000    
     3 'Normalizat'    .84829       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99694       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=   4209.439     FROM MIGRAD    STATUS=CONVERGED    112 CALLS      295 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    89.051        .18142E-01** at limit **
   2  Index         2.2135        7.0429        .50000        .28194E-07
   3  Normalizat    .84829        .98540E-02    .30613E-03    .25810E-04
   4  Prefactor     .99694        .81812E-02    .23468E-03    .36865E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.2135
  Normalizat = 0.848294
  Prefactor  = 0.99694
 **********
 **   18 **HESSE 
 **********

 FCN=   4209.439     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      324 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    451.69        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2135        8.8469        .50000       -.59113    
   3  Normalizat    .84829        .22559E-01    .12245E-04   -.98302    
   4  Prefactor     .99694        .18729E-01    .93872E-05   -.92832    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.15736e-10
Minuit parameter uncertainties:
  1  0.00167316
  2  1113.48
  3  0.0225594
  4  0.0187295
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/754304': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4209.43881806
delta logL = 2.84430825559e-07

Extracting fit parameters...

4FGL J2320.8-0823
   Spectrum: PowerLaw
360    Prefactor:  1.000e-04  1.673e-03  1.000e-04  1.000e+04 ( 1.000e-13)
361        Index:  2.213e+00  1.113e+03  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.969e-01  1.873e-02  0.000e+00  1.000e+01 ( 1.000e+00)
522        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
523        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
520   Normalization:  8.483e-01  2.256e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/754304/cmap_HighResolution_546480001_546739201_4FGL_J2320.8-0823_daily_bin1185.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.62e-03', job_status='DONE', photon_flux_upper_limit='9.70e-08', time_completed='2021-09-29 11:56:49.975644', job_id='754304', GAL2='1.00', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1632941809.98', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='2.84e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.65' WHERE bin_id='1185' AND source_name='4FGL J2320.8-0823' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:56:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 754304: <4FGL_J2320.8-0823_daily_bin1185> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2320.8-0823_daily_bin1185 350.223 -8.3918 546480001 546739201 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 :                                   605.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             252.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            935 sec.

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

