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


Performing analysis on: 4FGL_J2322.8-4916_daily_bin1292
RA = 350.708, Dec = -49.2725
tmin = 574214401, tmax = 574473601
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='805356', job_status='RUN', time_executed='2021-09-29 14:16:08.576858', time_epoch_executed='1632950168.58' WHERE source_name='4FGL J2322.8-4916' and cadence='daily' and bin_id='1292'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805356

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805356/ft1_4FGL_J2322.8-4916_daily_bin1292.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805356/ft2_4FGL_J2322.8-4916_daily_bin1292.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805356/ft1_4FGL_J2322.8-4916_daily_bin1292.fits outfile=/scratch/kocevski/805356/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1292.fits ra=350.708 dec=-49.2725 rad=12.0 tmin=574214401.0 tmax=574473601.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.58
user 3.37
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/805356/ft2_4FGL_J2322.8-4916_daily_bin1292.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/805356/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1292.fits evtable="EVENTS" outfile="/scratch/kocevski/805356/ft1_filtered_4FGL_J2322.8-4916_daily_bin1292.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/805356/ft1_filtered_4FGL_J2322.8-4916_daily_bin1292.fits" evtable="EVENTS" scfile=/scratch/kocevski/805356/ft2_4FGL_J2322.8-4916_daily_bin1292.fits sctable="SC_DATA" outfile=/scratch/kocevski/805356/ltcube_574214401_574473601_4FGL_J2322.8-4916_daily_bin1292.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/805356/ft2_4FGL_J2322.8-4916_daily_bin1292.fits
.....................!
real 11.92
user 11.52
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805356/ft1_filtered_4FGL_J2322.8-4916_daily_bin1292.fits evtable="EVENTS" scfile=/scratch/kocevski/805356/ft2_4FGL_J2322.8-4916_daily_bin1292.fits sctable="SC_DATA" expcube=/scratch/kocevski/805356/ltcube_574214401_574473601_4FGL_J2322.8-4916_daily_bin1292.fits outfile=/scratch/kocevski/805356/expmap_574214401_574473601_4FGL_J2322.8-4916_daily_bin1292.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/805356/ltcube_574214401_574473601_4FGL_J2322.8-4916_daily_bin1292.fits
.....................!
real 190.08
user 184.56
sys 5.07

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/805356/ft1_filtered_4FGL_J2322.8-4916_daily_bin1292.fits scfile=/scratch/kocevski/805356/ft2_4FGL_J2322.8-4916_daily_bin1292.fits outfile=/scratch/kocevski/805356/cmap_574214401_574473601_4FGL_J2322.8-4916_daily_bin1292.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/805356/ft1_filtered_4FGL_J2322.8-4916_daily_bin1292.fits scfile=/scratch/kocevski/805356/ft2_4FGL_J2322.8-4916_daily_bin1292.fits outfile=/scratch/kocevski/805356/cmap_HighResolution_574214401_574473601_4FGL_J2322.8-4916_daily_bin1292.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/805356/ft1_filtered_4FGL_J2322.8-4916_daily_bin1292.fits evtable="EVENTS" scfile=/scratch/kocevski/805356/ft2_4FGL_J2322.8-4916_daily_bin1292.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/805356/Model_4FGL_J2322.8-4916_daily_bin1292.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/805356/ft1_filtered_4FGL_J2322.8-4916_daily_bin1292.fits.....................!
real 41.31
user 39.99
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    85.795       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .33214       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.148       1.0000         .10000E-03   10000.    
    12 'Prefactor '    33.781       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12281E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.1991       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.966       1.0000         .10000E-03   10000.    
    18 'norm      '    19.773       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.5163       1.0000         .10000E-03   10000.    
    22 'Prefactor '    17.541       1.0000         .10000E-03   10000.    
    23 'norm      '    3.9272       1.0000         .10000E-03   10000.    
    24 'Prefactor '    12.716       1.0000         .10000E-03   10000.    
    25 'norm      '    .14750       1.0000         .10000E-03   10000.    
    26 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.4960       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .48623       1.0000         .10000E-03   10000.    
    30 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    6.6937       1.0000         .10000E-03   10000.    
    32 'Prefactor '    5.2505       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.1153       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .68899       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=   5476.482     FROM MIGRAD    STATUS=CONVERGED    933 CALLS     4832 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     85.800        66.275       -.73326E-06   -.24007E-04
   2  Prefactor     .10000E-03    9.1919        .14384E-06** at limit **
   3  Prefactor     .10001E-03    66.786       -.38790E-06** at limit **
   4  Prefactor     .10000E-03    2.7571        .99962E-07** at limit **
   5  Prefactor     .10000E-03    2.7762        .58083E-09** at limit **
   6  Prefactor     .10000E-03    11.739       -.38918E-07** at limit **
   7  Prefactor     .10000E-03    37.663        .17609E-05** at limit **
   8  norm          .10000E-03    2.4738       -.49794E-07** at limit **
   9  Prefactor     .34025        2.2757        .90143E-06    .51767E-03
  10  Prefactor     .10000E-03    25.623       -.57308E-06** at limit **
  11  Prefactor     12.150        7.6354       -.11222E-07    .62425E-03
  12  Prefactor     33.781        29.111        .12099E-05    .55622E-03
  13  Prefactor     .10000E-03    10.137       -.10353E-05** at limit **
  14  Prefactor     .10000E-03    41.250        .41125E-06** at limit **
  15  Prefactor     1.1988        1.0107        .70316E-06   -.71422E-03
  16  Prefactor     .10000E-03    45.472       -.97282E-06** at limit **
  17  Prefactor     19.966        13.855       -.13979E-08    .17947E-03
  18  norm          19.773        12.182       -.13408E-07    .31749E-04
  19  norm          .10000E-03    2.5902        .25113E-07** at limit **
  20  norm          .10000E-03    1.7571        .11648E-06** at limit **
  21  Prefactor     5.5160        5.8085        .16635E-06    .19114E-03
  22  Prefactor     17.546        35.644       -.57179E-06   -.54267E-05
  23  norm          3.9267        3.8181        .52680E-08   -.24080E-03
  24  Prefactor     12.724        17.987       -.33536E-06   -.67968E-04
  25  norm          .14784        1.0630        .31409E-06    .68325E-03
  26  norm          .10000E-03    1.4374        .41139E-06** at limit **
  27  Prefactor     .10000E-03    6.2075        .73798E-07** at limit **
  28  Prefactor     4.5009        3.9886        .64231E-06   -.12438E-03
  29  Prefactor     .39969        152.28       -.50537E-04    .57030E-04
  30  norm          .10000E-03    10.972        .48950E-06** at limit **
  31  Prefactor     6.6954        5.7922        .15331E-06    .60809E-03
  32  Prefactor     5.2525        4.0095        .15297E-06    .24999E-03
  33  Normalizat    1.1149        .18826       -.86269E-06    .78270E-03
  34  Prefactor     .68944        .18296        .24568E-05    .82924E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 85.8004
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.340246
  Prefactor  = 0.0001
  Prefactor  = 12.1497
  Prefactor  = 33.7807
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 1.19877
  Prefactor  = 0.0001
  Prefactor  = 19.9659
  norm       = 19.7728
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 5.51603
  Prefactor  = 17.5458
  norm       = 3.92669
  Prefactor  = 12.7235
  norm       = 0.147836
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.50094
  Prefactor  = 0.399691
  norm       = 0.0001
  Prefactor  = 6.69538
  Prefactor  = 5.25248
  Normalizat = 1.11495
  Prefactor  = 0.689441
 **********
 **   18 **HESSE 
 **********

 FCN=   5476.482     FROM HESSE     STATUS=OK           730 CALLS     5562 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     85.800        66.355        .43372E-04   -1.3853    
   2  Prefactor     .10000E-03    9.2042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    67.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.7642        .12000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.7849        .12040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    37.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.4775        .11368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .34025        4.4112        .21364E-02   -1.5591    
  10  Prefactor     .10000E-03    25.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.150        7.6254        .11493E-03   -1.5011    
  12  Prefactor     33.781        29.325        .68946E-04   -1.4545    
  13  Prefactor     .10000E-03    10.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    41.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.1988        4.7345        .15570E-02   -1.5489    
  16  Prefactor     .10000E-03    45.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     19.966        13.714        .89637E-04   -1.4814    
  18  norm          19.773        12.182        .90073E-04   -1.4818    
  19  norm          .10000E-03    2.5949        .11627E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.7589        .95789E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.5160        5.7791        .16117E-03   -1.5238    
  22  Prefactor     17.546        35.873        .95631E-04   -1.4870    
  23  norm          3.9267        3.8323        .59191E-03   -1.5312    
  24  Prefactor     12.724        17.832        .11233E-03   -1.4994    
  25  norm          .14784        1.0228        .13721E-03   -1.5631    
  26  norm          .10000E-03    1.4543        .86815E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    6.2220        .18005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     4.5009        3.9570        .60802E-03   -1.5284    
  29  Prefactor     .39969        158.52        .52580E-02   -1.5582    
  30  norm          .10000E-03    10.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     6.6954        5.8033        .15246E-03   -1.5190    
  32  Prefactor     5.2525        4.0053        .12348E-03   -1.5250    
  33  Normalizat    1.1149        .22604        .21688E-03   -.89273    
  34  Prefactor     .68944        .21950        .28074E-03   -1.0394    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.78057e-09
Minuit parameter uncertainties:
  1  66.4123
  2  3.08849e-05
  3  0.00158225
  4  3.52011e-06
  5  1.24279e-05
  6  3.80991e-05
  7  0.000217325
  8  7.22241e-06
  9  2.45009
  10  6.76636e-05
  11  7.626
  12  29.3375
  13  0.000239799
  14  2.38731e-06
  15  4.736
  16  3.36946e-05
  17  13.7161
  18  12.1831
  19  5.45805e-06
  20  1.39622e-05
  21  5.77968
  22  35.9175
  23  3.83252
  24  17.8399
  25  0.77748
  26  4.43603e-05
  27  1.8167e-05
  28  3.95718
  29  15.9606
  30  0.000129748
  31  5.8038
  32  4.00555
  33  0.226232
  34  0.21978
Done.

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

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.000e-04  5.458e-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.894e-01  2.198e-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.115e+00  2.262e-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.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.55e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/805356/likelihoodResults_574214401_574473601_4FGL_J2322.8-4916_daily_bin1292.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) = 5476.48343287
delta logL = -0.00177272183919

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5476.48166014
delta logL = 8.47649062052e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6157       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1149       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68943       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=   5476.443     FROM MIGRAD    STATUS=CONVERGED    150 CALLS      293 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .50721E-02    .14725E-01    .30652E-02   -.10633E-01
   2  alpha         4.6688        2.8169        .50000       -.80784E-04
   3  Normalizat    1.0999        .20981        .21688E-03   -.12761E-03
   4  Prefactor     .69877        .21675        .28074E-03   -.83827E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0050721
  alpha      = 4.66878
  Normalizat = 1.09991
  Prefactor  = 0.698766
 **********
 **   18 **HESSE 
 **********

 FCN=   5476.443     FROM HESSE     STATUS=OK            31 CALLS      324 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .50721E-02    .20906E-01    .15088E-03   -1.5722    
   2  alpha         4.6688        2.5594        .10077        2.0914    
   3  Normalizat    1.0999        .21505        .43375E-04   -.89755    
   4  Prefactor     .69877        .21893        .11229E-04   -1.0358    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16081e-07
Minuit parameter uncertainties:
  1  0.020391
  2  1.40523
  3  0.215218
  4  0.219198
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805356': 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) = 5476.44302056
delta logL = 0.0386395877167

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  5.072e-03  2.039e-02  1.000e-04  1.000e+04 ( 1.000e-13)
435        alpha:  4.669e+00  1.405e+00  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.988e-01  2.192e-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.100e+00  2.152e-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/805356/cmap_HighResolution_574214401_574473601_4FGL_J2322.8-4916_daily_bin1292.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.55e-05', job_status='DONE', photon_flux_upper_limit='2.07e-08', time_completed='2021-09-29 14:31:19.480597', job_id='805356', GAL2='0.70', fit_tolerance='1e-08', EG2='1.10', EG='1.11', time_epoch_completed='1632951079.48', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='3.86e-02', ts2='0.08', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='1292' AND source_name='4FGL J2322.8-4916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:31:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 805356: <4FGL_J2322.8-4916_daily_bin1292> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.8-4916_daily_bin1292 350.708 -49.2725 574214401 574473601 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 :                                   895.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             326.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            935 sec.

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

