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


Performing analysis on: 4FGL_J2322.8-4916_daily_bin1590
RA = 350.708, Dec = -49.2725
tmin = 651456001, tmax = 651715201
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='806818', job_status='RUN', time_executed='2021-09-29 14:20:57.707427', time_epoch_executed='1632950457.71' WHERE source_name='4FGL J2322.8-4916' and cadence='daily' and bin_id='1590'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/806818

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/806818/ft1_4FGL_J2322.8-4916_daily_bin1590.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/806818/ft2_4FGL_J2322.8-4916_daily_bin1590.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/806818/ft1_4FGL_J2322.8-4916_daily_bin1590.fits outfile=/scratch/kocevski/806818/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1590.fits ra=350.708 dec=-49.2725 rad=12.0 tmin=651456001.0 tmax=651715201.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.50
user 3.29
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/806818/ft2_4FGL_J2322.8-4916_daily_bin1590.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/806818/ft2_4FGL_J2322.8-4916_daily_bin1590.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/806818/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1590.fits evtable="EVENTS" outfile="/scratch/kocevski/806818/ft1_filtered_4FGL_J2322.8-4916_daily_bin1590.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.55
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/806818/ft1_filtered_4FGL_J2322.8-4916_daily_bin1590.fits" evtable="EVENTS" scfile=/scratch/kocevski/806818/ft2_4FGL_J2322.8-4916_daily_bin1590.fits sctable="SC_DATA" outfile=/scratch/kocevski/806818/ltcube_651456001_651715201_4FGL_J2322.8-4916_daily_bin1590.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/806818/ft2_4FGL_J2322.8-4916_daily_bin1590.fits
.....................!
real 11.88
user 11.54
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/806818/ft1_filtered_4FGL_J2322.8-4916_daily_bin1590.fits evtable="EVENTS" scfile=/scratch/kocevski/806818/ft2_4FGL_J2322.8-4916_daily_bin1590.fits sctable="SC_DATA" expcube=/scratch/kocevski/806818/ltcube_651456001_651715201_4FGL_J2322.8-4916_daily_bin1590.fits outfile=/scratch/kocevski/806818/expmap_651456001_651715201_4FGL_J2322.8-4916_daily_bin1590.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/806818/ltcube_651456001_651715201_4FGL_J2322.8-4916_daily_bin1590.fits
.....................!
real 190.44
user 185.91
sys 4.21

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 180 point sources and 0 extended sources

Setting source of interest to:
4FGL J2322.8-4916 @ 350.708 -49.2725

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/806818/ft1_filtered_4FGL_J2322.8-4916_daily_bin1590.fits scfile=/scratch/kocevski/806818/ft2_4FGL_J2322.8-4916_daily_bin1590.fits outfile=/scratch/kocevski/806818/cmap_651456001_651715201_4FGL_J2322.8-4916_daily_bin1590.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.708 yref=-49.2725 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/806818/ft1_filtered_4FGL_J2322.8-4916_daily_bin1590.fits scfile=/scratch/kocevski/806818/ft2_4FGL_J2322.8-4916_daily_bin1590.fits outfile=/scratch/kocevski/806818/cmap_HighResolution_651456001_651715201_4FGL_J2322.8-4916_daily_bin1590.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.708 yref=-49.2725 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/806818/ft1_filtered_4FGL_J2322.8-4916_daily_bin1590.fits evtable="EVENTS" scfile=/scratch/kocevski/806818/ft2_4FGL_J2322.8-4916_daily_bin1590.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/806818/Model_4FGL_J2322.8-4916_daily_bin1590.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/806818/ft1_filtered_4FGL_J2322.8-4916_daily_bin1590.fits.....................!
real 37.03
user 35.83
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/806818/ft1_filtered_4FGL_J2322.8-4916_daily_bin1590.fits', '/scratch/kocevski/806818/ft2_4FGL_J2322.8-4916_daily_bin1590.fits', expMap='/scratch/kocevski/806818/expmap_651456001_651715201_4FGL_J2322.8-4916_daily_bin1590.fits', expCube='/scratch/kocevski/806818/ltcube_651456001_651715201_4FGL_J2322.8-4916_daily_bin1590.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/806818/Model_4FGL_J2322.8-4916_daily_bin1590.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2322.8-4916'

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.139e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
435        alpha:  1.612e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
436         beta:  1.751e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
437           Eb:  2.660e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/806818/ft1_filtered_4FGL_J2322.8-4916_daily_bin1590.fits
Spacecraft file(s): /scratch/kocevski/806818/ft2_4FGL_J2322.8-4916_daily_bin1590.fits
Exposure map: /scratch/kocevski/806818/expmap_651456001_651715201_4FGL_J2322.8-4916_daily_bin1590.fits
Exposure cube: /scratch/kocevski/806818/ltcube_651456001_651715201_4FGL_J2322.8-4916_daily_bin1590.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/806818/Model_4FGL_J2322.8-4916_daily_bin1590.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) = 4693.78536732

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.312       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.4716       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.8287       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.9276       1.0000         .10000E-03   10000.    
     7 'Prefactor '    175.71       1.0000         .10000E-03   10000.    
     8 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.0588       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.5773       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.8812       1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.688       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .34275E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .13943E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .12925E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.878       1.0000         .10000E-03   10000.    
    25 'norm      '    3.1134       1.0000         .10000E-03   10000.    
    26 'norm      '    6.0333       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10440E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    8.8218       1.0000         .10000E-03   10000.    
    30 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .17112E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.1293       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .74652       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5750E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4693.773     FROM MIGRAD    STATUS=CONVERGED    918 CALLS     4827 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.089       -.16319E-06** at limit **
   2  Prefactor     17.289        20.109        .16082E-05    .20939E-03
   3  Prefactor     .10000E-03    21.512        .47250E-06** at limit **
   4  Prefactor     4.4720        7.2948        .15407E-05    .21085E-04
   5  Prefactor     9.8303        9.8057        .44984E-06    .15854E-04
   6  Prefactor     3.9278        6.2211        .39786E-07    .37289E-04
   7  Prefactor     175.72        159.31       -.10919E-05    .80780E-05
   8  norm          .10000E-03    5.6440       -.16603E-06** at limit **
   9  Prefactor     1.0589        2.9798        .24919E-06    .15445E-04
  10  Prefactor     .10000E-03    19.529        .76530E-08** at limit **
  11  Prefactor     9.5786        6.3381        .84568E-07    .18744E-04
  12  Prefactor     .10000E-03    9.8928        .72651E-06** at limit **
  13  Prefactor     .10000E-03    11.192       -.56823E-06** at limit **
  14  Prefactor     .10000E-03    33.301       -.15310E-05** at limit **
  15  Prefactor     1.8815        6.7118        .46354E-06    .19711E-05
  16  Prefactor     22.693        43.216       -.42111E-06    .34938E-05
  17  Prefactor     .10000E-03    9.3414        .86814E-06** at limit **
  18  norm          .10000E-03    8.0025        .78909E-07** at limit **
  19  norm          .10000E-03    2.2329       -.19970E-08** at limit **
  20  norm          .10004E-03    4.8646       -.14323E-05** at limit **
  21  Prefactor     .10000E-03    5.0753        .48790E-08** at limit **
  22  Prefactor     .10000E-03    20.171        .36794E-06** at limit **
  23  norm          .10000E-03    4.3442        .95288E-06** at limit **
  24  Prefactor     16.882        13.175        .48448E-07    .30062E-04
  25  norm          3.1137        1.2939        .18885E-07    .24252E-04
  26  norm          6.0290        6.5466        .16335E-05    .56174E-04
  27  Prefactor     .10000E-03    8.3593        .42162E-06** at limit **
  28  Prefactor     .10000E-03    2.2217        .75111E-06** at limit **
  29  Prefactor     8.8205        12.549        .11431E-06    .35058E-04
  30  norm          .10000E-03    6.1407        .53271E-06** at limit **
  31  Prefactor     .10000E-03    1.6628       -.15791E-07** at limit **
  32  Prefactor     .10000E-03    4.0576       -.11784E-05** at limit **
  33  Normalizat    1.1291        .19815        .94853E-07    .26667E-03
  34  Prefactor     .74668        .20323       -.64977E-06    .14443E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 17.2891
  Prefactor  = 0.0001
  Prefactor  = 4.47197
  Prefactor  = 9.83026
  Prefactor  = 3.92778
  Prefactor  = 175.725
  norm       = 0.0001
  Prefactor  = 1.0589
  Prefactor  = 0.0001
  Prefactor  = 9.57862
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.88151
  Prefactor  = 22.6925
  Prefactor  = 0.000100004
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100045
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.8824
  norm       = 3.11373
  norm       = 6.029
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 8.82051
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.12905
  Prefactor  = 0.746685
 **********
 **   18 **HESSE 
 **********

 FCN=   4693.773     FROM HESSE     STATUS=OK           742 CALLS     5569 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.289        20.300        .96258E-04   -1.4876    
   3  Prefactor     .10000E-03    21.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.4720        7.3584        .95207E-03   -1.5285    
   5  Prefactor     9.8303        9.8283        .63909E-03   -1.5081    
   6  Prefactor     3.9278        6.2090        .20356E-03   -1.5312    
   7  Prefactor     175.72        159.11        .15222E-03   -1.3049    
   8  norm          .10000E-03    5.6685        .15879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.0589        2.9226        .19132E-03   -1.5502    
  10  Prefactor     .10000E-03    19.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.5786        6.3377        .12949E-03   -1.5089    
  12  Prefactor     .10000E-03    9.8924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    33.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.8815        6.6791        .30351E-03   -1.5434    
  16  Prefactor     22.693        43.198        .84093E-04   -1.4755    
  17  Prefactor     .10000E-03    47.727        .39388E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    8.0192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.2332        .99981E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10004E-03    3.8338        .47515E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.1346        .15027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    20.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    7.2193        .25283E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     16.882        13.145        .97490E-04   -1.4886    
  25  norm          3.1137        1.2886        .47836E-04   -1.5355    
  26  norm          6.0290        6.5961        .81732E-03   -1.5217    
  27  Prefactor     .10000E-03    8.3769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    7.5925        .18841E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     8.8205        12.502        .13495E-03   -1.5114    
  30  norm          .10000E-03    6.1268        .16563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    1.6695        .86257E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    7.8424        .26037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    1.1291        .23458        .21768E-03   -.88824    
  34  Prefactor     .74668        .24044        .27496E-03   -1.0172    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.80037e-10
Minuit parameter uncertainties:
  1  1.11851e-06
  2  20.3076
  3  4.76749e-05
  4  7.35987
  5  9.8299
  6  6.21001
  7  159.498
  8  1.60969e-05
  9  2.92298
  10  1.25874e-06
  11  6.33815
  12  1.09867e-05
  13  6.2511e-05
  14  1.48503e-05
  15  6.6817
  16  43.258
  17  0.000861848
  18  2.74303e-06
  19  3.51425e-07
  20  0.000828892
  21  7.35602e-06
  22  4.60407e-07
  23  7.14959e-06
  24  13.1477
  25  1.28865
  26  6.59689
  27  9.72486e-06
  28  0.000152167
  29  12.506
  30  1.68493e-06
  31  2.22205e-06
  32  9.73573e-05
  33  0.234801
  34  0.240776
Done.

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

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.000e-04  3.514e-07  1.000e-04  1.000e+04 ( 1.000e-13)
435        alpha:  1.612e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
436         beta:  1.751e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
437           Eb:  2.660e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  7.467e-01  2.408e-01  0.000e+00  1.000e+01 ( 1.000e+00)
573        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
574        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
571   Normalization:  1.129e+00  2.348e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 350.708 -49.273
Photon Flux Upper Limit: 2.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.52e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/806818/likelihoodResults_651456001_651715201_4FGL_J2322.8-4916_daily_bin1590.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) = 4693.77428112
delta logL = -0.00173263198212

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4693.77254851
delta logL = -2.91438482236e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6058       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1290       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74667       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5750E+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=   4693.773     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      237 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    11.271        .10017E-02** at limit **
   2  alpha         1.3883        4.1267        .18042        .94519E-09
   3  Normalizat    1.1291        .22547        .21768E-03    .61626E-05
   4  Prefactor     .74669        .23717        .27496E-03    .48789E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.3883
  Normalizat = 1.12905
  Prefactor  = 0.746685
 **********
 **   18 **HESSE 
 **********

 FCN=   4693.773     FROM HESSE     STATUS=OK            23 CALLS      260 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.3072        .20034E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.3883        3.1084        .72167E-02   -.46082    
   3  Normalizat    1.1291        .22575        .87074E-05   -.88824    
   4  Prefactor     .74669        .23747        .10998E-04   -1.0172    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12389e-10
Minuit parameter uncertainties:
  1  4.89123e-05
  2  186.223
  3  0.225946
  4  0.237795
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/806818': 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) = 4693.77254777
delta logL = 7.16787326382e-07

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.000e-04  4.891e-05  1.000e-04  1.000e+04 ( 1.000e-13)
435        alpha:  1.388e+00  1.862e+02  0.000e+00  5.000e+00 ( 1.000e+00)
436         beta:  1.751e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
437           Eb:  2.660e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  7.467e-01  2.378e-01  0.000e+00  1.000e+01 ( 1.000e+00)
573        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
574        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
571   Normalization:  1.129e+00  2.259e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 350.708 -49.273

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/806818/cmap_HighResolution_651456001_651715201_4FGL_J2322.8-4916_daily_bin1590.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.52e-05', job_status='DONE', photon_flux_upper_limit='2.06e-08', time_completed='2021-09-29 14:34:22.643701', job_id='806818', GAL2='0.75', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1632951262.64', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='7.17e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='1590' AND source_name='4FGL J2322.8-4916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:34:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 806818: <4FGL_J2322.8-4916_daily_bin1590> in cluster <slac> Done

Job <4FGL_J2322.8-4916_daily_bin1590> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep 29 14:20:41 2021
Job was executed on host(s) <bullet0120>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:20:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 14:20:43 2021
Terminated at Wed Sep 29 14:34:25 2021
Results reported at Wed Sep 29 14:34:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.8-4916_daily_bin1590 350.708 -49.2725 651456001 651715201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2322.8-4916 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   794.37 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             299.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            824 sec.

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

