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


Performing analysis on: 4FGL_J2322.8-4916_daily_bin1276
RA = 350.708, Dec = -49.2725
tmin = 570067201, tmax = 570326401
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='805333', job_status='RUN', time_executed='2021-09-29 14:16:17.833691', time_epoch_executed='1632950177.83' WHERE source_name='4FGL J2322.8-4916' and cadence='daily' and bin_id='1276'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805333

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805333/ft1_4FGL_J2322.8-4916_daily_bin1276.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805333/ft2_4FGL_J2322.8-4916_daily_bin1276.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805333/ft1_4FGL_J2322.8-4916_daily_bin1276.fits outfile=/scratch/kocevski/805333/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1276.fits ra=350.708 dec=-49.2725 rad=12.0 tmin=570067201.0 tmax=570326401.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.60
user 3.39
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/805333/ft1_filtered_4FGL_J2322.8-4916_daily_bin1276.fits" evtable="EVENTS" scfile=/scratch/kocevski/805333/ft2_4FGL_J2322.8-4916_daily_bin1276.fits sctable="SC_DATA" outfile=/scratch/kocevski/805333/ltcube_570067201_570326401_4FGL_J2322.8-4916_daily_bin1276.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/805333/ft2_4FGL_J2322.8-4916_daily_bin1276.fits
.....................!
real 12.04
user 11.67
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805333/ft1_filtered_4FGL_J2322.8-4916_daily_bin1276.fits evtable="EVENTS" scfile=/scratch/kocevski/805333/ft2_4FGL_J2322.8-4916_daily_bin1276.fits sctable="SC_DATA" expcube=/scratch/kocevski/805333/ltcube_570067201_570326401_4FGL_J2322.8-4916_daily_bin1276.fits outfile=/scratch/kocevski/805333/expmap_570067201_570326401_4FGL_J2322.8-4916_daily_bin1276.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/805333/ltcube_570067201_570326401_4FGL_J2322.8-4916_daily_bin1276.fits
.....................!
real 189.55
user 185.03
sys 4.19

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/805333/ft1_filtered_4FGL_J2322.8-4916_daily_bin1276.fits scfile=/scratch/kocevski/805333/ft2_4FGL_J2322.8-4916_daily_bin1276.fits outfile=/scratch/kocevski/805333/cmap_570067201_570326401_4FGL_J2322.8-4916_daily_bin1276.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/805333/ft1_filtered_4FGL_J2322.8-4916_daily_bin1276.fits scfile=/scratch/kocevski/805333/ft2_4FGL_J2322.8-4916_daily_bin1276.fits outfile=/scratch/kocevski/805333/cmap_HighResolution_570067201_570326401_4FGL_J2322.8-4916_daily_bin1276.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/805333/ft1_filtered_4FGL_J2322.8-4916_daily_bin1276.fits evtable="EVENTS" scfile=/scratch/kocevski/805333/ft2_4FGL_J2322.8-4916_daily_bin1276.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/805333/Model_4FGL_J2322.8-4916_daily_bin1276.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/805333/ft1_filtered_4FGL_J2322.8-4916_daily_bin1276.fits.....................!
real 30.08
user 28.79
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10262E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.576       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .66585E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.563       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10220E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.2385       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.039       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13391E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    40.670       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.770       1.0000         .10000E-03   10000.    
    18 'norm      '    30.898       1.0000         .10000E-03   10000.    
    19 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.0170       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10564E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .23507       1.0000         .10000E-03   10000.    
    23 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.2607       1.0000         .10000E-03   10000.    
    25 'norm      '    .70809       1.0000         .10000E-03   10000.    
    26 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    24.608       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10323E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    6.2479       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .90482       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .57638       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=   3392.954     FROM MIGRAD    STATUS=CONVERGED   1716 CALLS     5643 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.374        .18142E-02** at limit **
   2  Prefactor     .10000E-03    5.7316        .13619E-02** at limit **
   3  Prefactor     .10000E-03    13.574        .18142E-02** at limit **
   4  Prefactor     12.574        9.7551        .11295E-03   -.27678E-05
   5  Prefactor     .10001E-03    14.853        .53991E-01** at limit **
   6  Prefactor     11.561        9.7026        .11781E-03   -.42942E-05
   7  Prefactor     .10000E-03    36.857        .18142E-02** at limit **
   8  norm          .10000E-03    2.8350        .95781E-03** at limit **
   9  Prefactor     .10000E-03    2.8096        .94506E-03** at limit **
  10  Prefactor     .10000E-03    19.315        .18142E-02** at limit **
  11  Prefactor     9.2358        7.4110        .13186E-03    .19529E-04
  12  Prefactor     .10000E-03    26.537        .18142E-02** at limit **
  13  Prefactor     22.040        14.436        .85321E-04    .24517E-04
  14  Prefactor     .10000E-03    75.672        .18142E-02** at limit **
  15  Prefactor     .10000E-03    19.603        .28450E-02** at limit **
  16  Prefactor     40.633        49.642        .62855E-04   -.12480E-04
  17  Prefactor     14.759        16.727        .10422E-03    .63269E-05
  18  norm          30.897        18.571        .72081E-04    .16245E-04
  19  norm          .10000E-03    2.6368        .92366E-03** at limit **
  20  norm          4.0192        4.0686        .11445E-03    .21059E-04
  21  Prefactor     .10000E-03    6.9668        .14895E-02** at limit **
  22  Prefactor     .14650        34.232        .86451E-01    .88388E-04
  23  norm          .10000E-03    1.3965        .67041E-03** at limit **
  24  Prefactor     8.2445        16.855        .13949E-03    .40466E-04
  25  norm          .70919        .98067        .66478E-03    .14075E-02
  26  norm          .10000E-03    1.0074        .57064E-03** at limit **
  27  Prefactor     24.592        21.700        .80752E-04    .12530E-04
  28  Prefactor     .10000E-03    5.1965        .17282E-02** at limit **
  29  Prefactor     .10000E-03    6.5005        .14502E-02** at limit **
  30  norm          .10000E-03    64.939        .18142E-02** at limit **
  31  Prefactor     6.2496        6.2672        .13606E-03   -.29244E-04
  32  Prefactor     .10000E-03    6.0538        .20217E-02** at limit **
  33  Normalizat    .90501        .24141        .19987E-03    .69052E-04
  34  Prefactor     .57644        .23977        .26213E-03    .77461E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.5743
  Prefactor  = 0.000100006
  Prefactor  = 11.5605
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.2358
  Prefactor  = 0.0001
  Prefactor  = 22.0398
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 40.6332
  Prefactor  = 14.7593
  norm       = 30.8969
  norm       = 0.0001
  norm       = 4.01917
  Prefactor  = 0.0001
  Prefactor  = 0.146495
  norm       = 0.0001
  Prefactor  = 8.24451
  norm       = 0.709186
  norm       = 0.0001
  Prefactor  = 24.5924
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 6.24962
  Prefactor  = 0.0001
  Normalizat = 0.905009
  Prefactor  = 0.576444
 **********
 **   18 **HESSE 
 **********

 FCN=   3392.954     FROM HESSE     STATUS=OK           720 CALLS     6363 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.374        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.7316        .27238E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.574        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.574        9.7550        .45182E-05   -1.4999    
   5  Prefactor     .10001E-03    13.499        .57446E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.561        9.7026        .47125E-05   -1.5028    
   7  Prefactor     .10000E-03    36.857        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.8350        .19156E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.8101        .18901E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    19.315        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.2358        7.4106        .52743E-05   -1.5100    
  12  Prefactor     .10000E-03    26.539        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     22.040        14.435        .34128E-05   -1.4769    
  14  Prefactor     .10000E-03    75.673        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    19.801        .56900E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     40.633        49.639        .25142E-05   -1.4432    
  17  Prefactor     14.759        16.725        .41687E-05   -1.4939    
  18  norm          30.897        18.571        .28833E-05   -1.4596    
  19  norm          .10000E-03    2.6368        .18473E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.0192        4.0674        .45780E-05   -1.5307    
  21  Prefactor     .10000E-03    6.9677        .29790E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .14650        31.929        .90513E-01   -1.5631    
  23  norm          .10000E-03    1.3965        .13408E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     8.2445        16.844        .55795E-05   -1.5134    
  25  norm          .70919        .97975        .13296E-03   -1.5540    
  26  norm          .10000E-03    1.0074        .11413E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     24.592        21.698        .32301E-05   -1.4716    
  28  Prefactor     .10000E-03    5.2224        .34564E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    6.5006        .29005E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    64.980        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     6.2496        6.2658        .54425E-05   -1.5208    
  32  Prefactor     .10000E-03    6.0715        .40434E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .90501        .24159        .79949E-05   -.96284    
  34  Prefactor     .57644        .24002        .10485E-04   -1.0859    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.38021e-10
Minuit parameter uncertainties:
  1  7.15577e-05
  2  1.57121e-06
  3  8.28918e-06
  4  9.7562
  5  0.000560096
  6  9.70392
  7  8.38557e-06
  8  1.31782e-06
  9  4.49973e-06
  10  3.72367e-05
  11  7.41132
  12  6.48912e-05
  13  14.4372
  14  0.000256293
  15  0.000545377
  16  49.6899
  17  16.7302
  18  18.5741
  19  1.50717e-06
  20  4.0677
  21  4.35057e-05
  22  4.32635
  23  7.71244e-09
  24  16.8537
  25  0.979772
  26  2.27583e-07
  27  21.7054
  28  2.57135e-05
  29  2.48775e-06
  30  0.000546839
  31  6.26646
  32  1.33171e-05
  33  0.241875
  34  0.240443
Done.

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

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.000e-04  1.507e-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:  5.764e-01  2.404e-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:  9.050e-01  2.419e-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.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.27e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/805333/likelihoodResults_570067201_570326401_4FGL_J2322.8-4916_daily_bin1276.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) = 3392.95602127
delta logL = -0.00153494325878

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3392.95448636
delta logL = -2.43612703343e-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.6068       1.0000          .0000       5.0000    
     3 'Normalizat'    .90498       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57644       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=   3392.954     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      221 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    447.72        .92478E-03** at limit **
   2  alpha         1.3977        4.2863        .50000       -.31605E-08
   3  Normalizat    .90501        .79696E-01    .19987E-03    .88165E-05
   4  Prefactor     .57644        .85286E-01    .26213E-03    .68309E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.39768
  Normalizat = 0.905009
  Prefactor  = 0.576443
 **********
 **   18 **HESSE 
 **********

 FCN=   3392.954     FROM HESSE     STATUS=OK            27 CALLS      248 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.7739        .18496E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.3977        2.9895        .20000       -.45663    
   3  Normalizat    .90501        .22058        .79947E-05   -.96284    
   4  Prefactor     .57644        .23591        .10485E-04   -1.0859    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44859e-11
Minuit parameter uncertainties:
  1  2.03439e-05
  2  215.296
  3  0.2208
  4  0.236312
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805333': 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) = 3392.95448586
delta logL = 4.7320190788e-07

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.000e-04  2.034e-05  1.000e-04  1.000e+04 ( 1.000e-13)
435        alpha:  1.398e+00  2.153e+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:  5.764e-01  2.363e-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:  9.050e-01  2.208e-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/805333/cmap_HighResolution_570067201_570326401_4FGL_J2322.8-4916_daily_bin1276.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.27e-05', job_status='DONE', photon_flux_upper_limit='2.40e-08', time_completed='2021-09-29 14:28:08.710999', job_id='805333', GAL2='0.58', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1632950888.71', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.58', dlogl='4.73e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='1276' AND source_name='4FGL J2322.8-4916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:28:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 805333: <4FGL_J2322.8-4916_daily_bin1276> in cluster <slac> Done

Job <4FGL_J2322.8-4916_daily_bin1276> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 14:15:43 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:15:45 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:45 2021
Terminated at Wed Sep 29 14:28:09 2021
Results reported at Wed Sep 29 14:28:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.8-4916_daily_bin1276 350.708 -49.2725 570067201 570326401 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 :                                   699.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             309.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   743 sec.
    Turnaround time :                            746 sec.

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

