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


Performing analysis on: 4FGL_J2322.8-4916_daily_bin1127
RA = 350.708, Dec = -49.2725
tmin = 531446401, tmax = 531705601
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='805118', job_status='RUN', time_executed='2021-09-29 14:16:15.860769', time_epoch_executed='1632950175.86' WHERE source_name='4FGL J2322.8-4916' and cadence='daily' and bin_id='1127'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805118

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805118/ft1_4FGL_J2322.8-4916_daily_bin1127.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805118/ft2_4FGL_J2322.8-4916_daily_bin1127.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805118/ft1_4FGL_J2322.8-4916_daily_bin1127.fits outfile=/scratch/kocevski/805118/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1127.fits ra=350.708 dec=-49.2725 rad=12.0 tmin=531446401.0 tmax=531705601.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.62
user 3.41
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/805118/ft2_4FGL_J2322.8-4916_daily_bin1127.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/805118/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1127.fits evtable="EVENTS" outfile="/scratch/kocevski/805118/ft1_filtered_4FGL_J2322.8-4916_daily_bin1127.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/805118/ft1_filtered_4FGL_J2322.8-4916_daily_bin1127.fits" evtable="EVENTS" scfile=/scratch/kocevski/805118/ft2_4FGL_J2322.8-4916_daily_bin1127.fits sctable="SC_DATA" outfile=/scratch/kocevski/805118/ltcube_531446401_531705601_4FGL_J2322.8-4916_daily_bin1127.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/805118/ft2_4FGL_J2322.8-4916_daily_bin1127.fits
.....................!
real 12.13
user 11.76
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805118/ft1_filtered_4FGL_J2322.8-4916_daily_bin1127.fits evtable="EVENTS" scfile=/scratch/kocevski/805118/ft2_4FGL_J2322.8-4916_daily_bin1127.fits sctable="SC_DATA" expcube=/scratch/kocevski/805118/ltcube_531446401_531705601_4FGL_J2322.8-4916_daily_bin1127.fits outfile=/scratch/kocevski/805118/expmap_531446401_531705601_4FGL_J2322.8-4916_daily_bin1127.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/805118/ltcube_531446401_531705601_4FGL_J2322.8-4916_daily_bin1127.fits
.....................!
real 191.03
user 185.87
sys 4.71

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/805118/ft1_filtered_4FGL_J2322.8-4916_daily_bin1127.fits scfile=/scratch/kocevski/805118/ft2_4FGL_J2322.8-4916_daily_bin1127.fits outfile=/scratch/kocevski/805118/cmap_531446401_531705601_4FGL_J2322.8-4916_daily_bin1127.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/805118/ft1_filtered_4FGL_J2322.8-4916_daily_bin1127.fits scfile=/scratch/kocevski/805118/ft2_4FGL_J2322.8-4916_daily_bin1127.fits outfile=/scratch/kocevski/805118/cmap_HighResolution_531446401_531705601_4FGL_J2322.8-4916_daily_bin1127.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/805118/ft1_filtered_4FGL_J2322.8-4916_daily_bin1127.fits evtable="EVENTS" scfile=/scratch/kocevski/805118/ft2_4FGL_J2322.8-4916_daily_bin1127.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/805118/Model_4FGL_J2322.8-4916_daily_bin1127.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/805118/ft1_filtered_4FGL_J2322.8-4916_daily_bin1127.fits.....................!
real 36.12
user 34.78
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/805118/ft1_filtered_4FGL_J2322.8-4916_daily_bin1127.fits', '/scratch/kocevski/805118/ft2_4FGL_J2322.8-4916_daily_bin1127.fits', expMap='/scratch/kocevski/805118/expmap_531446401_531705601_4FGL_J2322.8-4916_daily_bin1127.fits', expCube='/scratch/kocevski/805118/ltcube_531446401_531705601_4FGL_J2322.8-4916_daily_bin1127.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/805118/Model_4FGL_J2322.8-4916_daily_bin1127.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/805118/ft1_filtered_4FGL_J2322.8-4916_daily_bin1127.fits
Spacecraft file(s): /scratch/kocevski/805118/ft2_4FGL_J2322.8-4916_daily_bin1127.fits
Exposure map: /scratch/kocevski/805118/expmap_531446401_531705601_4FGL_J2322.8-4916_daily_bin1127.fits
Exposure cube: /scratch/kocevski/805118/ltcube_531446401_531705601_4FGL_J2322.8-4916_daily_bin1127.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/805118/Model_4FGL_J2322.8-4916_daily_bin1127.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) = 4394.49575342

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.778       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    11.027       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.1554       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .94389E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.568       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10281E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.827       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.0653       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      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .58736E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    51.366       1.0000         .10000E-03   10000.    
    23 'norm      '    1.9781       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.8859       1.0000         .10000E-03   10000.    
    26 'norm      '    5.1856       1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.1192       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .80706       1.0000         .10000E-03   10000.    
    30 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    5.3021       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .31083       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.2618       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .60891       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=   4394.484     FROM MIGRAD    STATUS=CONVERGED   1691 CALLS     5606 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    38.905        .18142E-02** at limit **
   2  Prefactor     10.796        23.332        .12204E-03    .11179E-05
   3  Prefactor     .10000E-03    52.239        .18142E-02** at limit **
   4  Prefactor     .10000E-03    6.9565        .17042E-02** at limit **
   5  Prefactor     .10000E-03    6.6501        .16606E-02** at limit **
   6  Prefactor     .10000E-03    24.198        .36285E-03** at limit **
   7  Prefactor     .10000E-03    40.372        .18142E-02** at limit **
   8  norm          11.028        7.4683        .12065E-03    .28835E-04
   9  Prefactor     5.1535        3.6830        .10371E-03    .51738E-04
  10  Prefactor     .10000E-03    34.347        .18142E-02** at limit **
  11  Prefactor     .17550        41.758        .24062E-02    .87347E-03
  12  Prefactor     13.456        30.075        .10874E-03    .17564E-04
  13  Prefactor     .10000E-03    5.6596        .15369E-02** at limit **
  14  Prefactor     .10000E-03    45.106        .18142E-02** at limit **
  15  Prefactor     15.831        12.421        .10067E-03    .39298E-04
  16  Prefactor     .10000E-03    25.586        .18142E-02** at limit **
  17  Prefactor     2.0710        19.231        .14375E-02    .16229E-03
  18  norm          .10000E-03    4.7422        .14096E-02** at limit **
  19  norm          .10000E-03    3.0506        .11298E-02** at limit **
  20  norm          .10000E-03    2.4440        .10114E-02** at limit **
  21  Prefactor     .10002E-03    27.186        .28037E-02** at limit **
  22  Prefactor     51.375        61.471        .55958E-04    .14831E-04
  23  norm          1.9810        6.4839        .24890E-03    .74452E-05
  24  Prefactor     .10000E-03    16.926        .36285E-03** at limit **
  25  norm          1.8877        1.1955        .54518E-04    .32072E-03
  26  norm          5.1861        5.7514        .15018E-03    .42997E-04
  27  Prefactor     8.1238        13.762        .14070E-03    .13574E-04
  28  Prefactor     .10000E-03    3.8710        .25021E-03** at limit **
  29  Prefactor     .56632        272.92        .57160E-02   -.53880E-04
  30  norm          .10000E-03    16.019        .18142E-02** at limit **
  31  Prefactor     5.3104        6.5856        .17443E-03    .36890E-04
  32  Prefactor     .31736        11.795        .21451E-02   -.42093E-03
  33  Normalizat    1.2616        .26691        .20981E-03    .39262E-04
  34  Prefactor     .60890        .24802        .29726E-03    .21062E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.7955
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 11.0279
  Prefactor  = 5.15348
  Prefactor  = 0.0001
  Prefactor  = 0.175496
  Prefactor  = 13.4557
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.8306
  Prefactor  = 0.0001
  Prefactor  = 2.07105
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100022
  Prefactor  = 51.3746
  norm       = 1.98099
  Prefactor  = 0.0001
  norm       = 1.88771
  norm       = 5.18613
  Prefactor  = 8.12382
  Prefactor  = 0.0001
  Prefactor  = 0.566323
  norm       = 0.0001
  Prefactor  = 5.31043
  Prefactor  = 0.317363
  Normalizat = 1.26156
  Prefactor  = 0.608904
 **********
 **   18 **HESSE 
 **********

 FCN=   4394.484     FROM HESSE     STATUS=OK           706 CALLS     6312 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    38.906        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.796        23.208        .48816E-05   -1.5051    
   3  Prefactor     .10000E-03    52.245        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.9575        .34084E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.6525        .33212E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    24.200        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    40.373        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          11.028        7.4682        .48258E-05   -1.5044    
   9  Prefactor     5.1535        3.6821        .41486E-05   -1.5254    
  10  Prefactor     .10000E-03    34.348        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .17550        41.521        .48125E-03   -1.5624    
  12  Prefactor     13.456        29.930        .43497E-05   -1.4974    
  13  Prefactor     .10000E-03    5.6600        .30738E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    45.106        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     15.831        12.413        .40270E-05   -1.4912    
  16  Prefactor     .10000E-03    25.587        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.0710        19.185        .28751E-03   -1.5420    
  18  norm          .10000E-03    4.7423        .28192E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.0507        .22597E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.4440        .20229E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10002E-03    28.060        .11215E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     51.375        61.323        .22383E-05   -1.4273    
  23  norm          1.9810        6.4731        .99559E-05   -1.5426    
  24  Prefactor     .10000E-03    16.926        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.8877        1.1918        .21807E-05   -1.5433    
  26  norm          5.1861        5.7495        .60073E-05   -1.5252    
  27  Prefactor     8.1238        13.757        .56282E-05   -1.5138    
  28  Prefactor     .10000E-03    3.8710        .50043E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .56632        270.83        .22864E-03   -1.5557    
  30  norm          .10000E-03    16.021        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     5.3104        6.5681        .69772E-05   -1.5247    
  32  Prefactor     .31736        11.671        .85803E-04   -1.5595    
  33  Normalizat    1.2616        .26592        .41963E-04   -.84721    
  34  Prefactor     .60890        .24803        .11890E-04   -1.0721    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.92912e-09
Minuit parameter uncertainties:
  1  9.47885e-05
  2  23.2269
  3  7.72791e-06
  4  2.64255e-05
  5  2.25216e-05
  6  0.000263331
  7  7.26919e-05
  8  7.4688
  9  3.68225
  10  4.80969e-05
  11  5.40105
  12  29.963
  13  9.43975e-06
  14  1.79038e-06
  15  12.4152
  16  3.43717e-05
  17  12.612
  18  3.54931e-06
  19  1.87543e-06
  20  6.34767e-06
  21  0.00157262
  22  61.3987
  23  6.47535
  24  0.000120542
  25  1.19186
  26  5.75013
  27  13.7622
  28  2.43924e-05
  29  24.8806
  30  4.04349e-05
  31  6.56898
  32  3.84928
  33  0.266203
  34  0.248473
Done.

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

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.000e-04  1.875e-06  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:  6.089e-01  2.485e-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.262e+00  2.662e-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.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.48e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/805118/likelihoodResults_531446401_531705601_4FGL_J2322.8-4916_daily_bin1127.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) = 4394.48529083
delta logL = -0.00141913600328

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4394.48387168
delta logL = 8.9239620138e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6173       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2616       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60888       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=   4394.482     FROM MIGRAD    STATUS=CONVERGED    150 CALLS      298 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .31481E-01    3.4625        .16224E-01    .15584E-02
   2  alpha         3.3252        4.1552        .50000        .23261E-04
   3  Normalizat    1.2599        .12628E-01    .20981E-03   -.18748E-04
   4  Prefactor     .60945        .12913E-01    .29726E-03   -.12659E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0314814
  alpha      = 3.3252
  Normalizat = 1.25994
  Prefactor  = 0.60945
 **********
 **   18 **HESSE 
 **********

 FCN=   4394.482     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      329 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .31481E-01    367.26        .91996E-03   -1.5673    
   2  alpha         3.3252        3.9077        .49834E-01    12.903    
   3  Normalizat    1.2599        .12002        .83925E-05   -.84770    
   4  Prefactor     .60945        .11425        .11890E-04   -1.0719    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.61293e-09
Minuit parameter uncertainties:
  1  6.83202
  2  50.5173
  3  0.120047
  4  0.114296
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805118': 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) = 4394.48183554
delta logL = 0.00203615020473

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  3.148e-02  6.832e+00  1.000e-04  1.000e+04 ( 1.000e-13)
435        alpha:  3.325e+00  5.052e+01  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:  6.095e-01  1.143e-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.260e+00  1.200e-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/805118/cmap_HighResolution_531446401_531705601_4FGL_J2322.8-4916_daily_bin1127.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.48e-05', job_status='DONE', photon_flux_upper_limit='2.50e-08', time_completed='2021-09-29 14:30:16.065165', job_id='805118', GAL2='0.61', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1632951016.07', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.61', dlogl='2.04e-03', ts2='0.00', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='1127' AND source_name='4FGL J2322.8-4916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:30:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 805118: <4FGL_J2322.8-4916_daily_bin1127> in cluster <slac> Done

Job <4FGL_J2322.8-4916_daily_bin1127> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 14:15:25 2021
Job was executed on host(s) <bullet0295>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:15:27 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:15:27 2021
Terminated at Wed Sep 29 14:30:16 2021
Results reported at Wed Sep 29 14:30:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.8-4916_daily_bin1127 350.708 -49.2725 531446401 531705601 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 :                                   809.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             298.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            891 sec.

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

