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


Performing analysis on: 4FGL_J2322.8-4916_daily_bin1010
RA = 350.708, Dec = -49.2725
tmin = 501120001, tmax = 501379201
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='804940', job_status='RUN', time_executed='2021-09-29 14:16:57.631790', time_epoch_executed='1632950217.63' WHERE source_name='4FGL J2322.8-4916' and cadence='daily' and bin_id='1010'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/804940

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/804940/ft1_4FGL_J2322.8-4916_daily_bin1010.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/804940/ft2_4FGL_J2322.8-4916_daily_bin1010.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/804940/ft1_4FGL_J2322.8-4916_daily_bin1010.fits outfile=/scratch/kocevski/804940/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1010.fits ra=350.708 dec=-49.2725 rad=12.0 tmin=501120001.0 tmax=501379201.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.52
user 3.28
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/804940/ft2_4FGL_J2322.8-4916_daily_bin1010.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/804940/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1010.fits evtable="EVENTS" outfile="/scratch/kocevski/804940/ft1_filtered_4FGL_J2322.8-4916_daily_bin1010.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/804940/ft1_filtered_4FGL_J2322.8-4916_daily_bin1010.fits" evtable="EVENTS" scfile=/scratch/kocevski/804940/ft2_4FGL_J2322.8-4916_daily_bin1010.fits sctable="SC_DATA" outfile=/scratch/kocevski/804940/ltcube_501120001_501379201_4FGL_J2322.8-4916_daily_bin1010.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/804940/ft2_4FGL_J2322.8-4916_daily_bin1010.fits
.....................!
real 12.28
user 11.93
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/804940/ft1_filtered_4FGL_J2322.8-4916_daily_bin1010.fits evtable="EVENTS" scfile=/scratch/kocevski/804940/ft2_4FGL_J2322.8-4916_daily_bin1010.fits sctable="SC_DATA" expcube=/scratch/kocevski/804940/ltcube_501120001_501379201_4FGL_J2322.8-4916_daily_bin1010.fits outfile=/scratch/kocevski/804940/expmap_501120001_501379201_4FGL_J2322.8-4916_daily_bin1010.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/804940/ltcube_501120001_501379201_4FGL_J2322.8-4916_daily_bin1010.fits
.....................!
real 190.46
user 185.52
sys 4.50

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/804940/ft1_filtered_4FGL_J2322.8-4916_daily_bin1010.fits scfile=/scratch/kocevski/804940/ft2_4FGL_J2322.8-4916_daily_bin1010.fits outfile=/scratch/kocevski/804940/cmap_501120001_501379201_4FGL_J2322.8-4916_daily_bin1010.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/804940/ft1_filtered_4FGL_J2322.8-4916_daily_bin1010.fits scfile=/scratch/kocevski/804940/ft2_4FGL_J2322.8-4916_daily_bin1010.fits outfile=/scratch/kocevski/804940/cmap_HighResolution_501120001_501379201_4FGL_J2322.8-4916_daily_bin1010.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/804940/ft1_filtered_4FGL_J2322.8-4916_daily_bin1010.fits evtable="EVENTS" scfile=/scratch/kocevski/804940/ft2_4FGL_J2322.8-4916_daily_bin1010.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/804940/Model_4FGL_J2322.8-4916_daily_bin1010.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/804940/ft1_filtered_4FGL_J2322.8-4916_daily_bin1010.fits....................!
real 42.01
user 40.60
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19198E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.1169       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .19818E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10360E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.1380       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .24071       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.5499       1.0000         .10000E-03   10000.    
    14 'Prefactor '    31.949       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10439E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10281E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.7578       1.0000         .10000E-03   10000.    
    18 'norm      '    10.253       1.0000         .10000E-03   10000.    
    19 'norm      '    2.5983       1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12310E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.8115       1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    4.5993       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    6.3427       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10774E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    2.6173       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .99300       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .91385       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5750E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5703.330     FROM MIGRAD    STATUS=CONVERGED    185 CALLS     4122 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10018E-03    44.874       -.86059E-05** at limit **
   2  Prefactor     .10000E-03    8.1282       -.13897E-06** at limit **
   3  Prefactor     .10000E-03    11.937       -.15444E-05** at limit **
   4  Prefactor     .10000E-03    4.2594        .60576E-06** at limit **
   5  Prefactor     4.1160        4.1528       -.45574E-06    .10484E-03
   6  Prefactor     .10000E-03    4.9892       -.60049E-07** at limit **
   7  Prefactor     .10017E-03    45.929       -.19895E-04** at limit **
   8  norm          .10000E-03    5.9495        .63104E-06** at limit **
   9  Prefactor     5.1380        4.6048        .39487E-05    .12003E-03
  10  Prefactor     .10000E-03    54.177        .16396E-04** at limit **
  11  Prefactor     .10000E-03    3.4154       -.22316E-06** at limit **
  12  Prefactor     .23258E-03    1750.0       -.15368E-03** at limit **
  13  Prefactor     9.6247        11.976       -.12555E-04   -.12957E-02
  14  Prefactor     31.762        19.840       -.97570E-05    .68106E-02
  15  Prefactor     .10001E-03    6.5983        .32254E-05** at limit **
  16  Prefactor     .10001E-03    5.2183       -.11248E-05** at limit **
  17  Prefactor     8.7665        2.9732        .39085E-05    .10939E-02
  18  norm          10.255        1.3711        .11824E-05    .86499E-03
  19  norm          2.5974        3.3730       -.40754E-06   -.15047E-04
  20  norm          .10000E-03    1.4199       -.35404E-07** at limit **
  21  Prefactor     .10000E-03    1.4405        .73715E-07** at limit **
  22  Prefactor     .10000E-03    33.258       -.16940E-05** at limit **
  23  norm          .10000E-03    1.5156       -.22524E-06** at limit **
  24  Prefactor     9.8094        1.2437       -.10334E-05   -.49510E-03
  25  norm          .10000E-03    .22226        .99902E-08** at limit **
  26  norm          4.5996        3.7803       -.72646E-07    .99933E-04
  27  Prefactor     .10000E-03    18.058        .20034E-05** at limit **
  28  Prefactor     .10000E-03    .95376       -.15590E-07** at limit **
  29  Prefactor     .10000E-03    7.7705       -.31999E-06** at limit **
  30  norm          6.3379        1.7300       -.23662E-05   -.46890E-03
  31  Prefactor     .10000E-03    4.8489        .39341E-06** at limit **
  32  Prefactor     2.6162        2.8405       -.20441E-06   -.11143E-03
  33  Normalizat    .99345        .20265        .46383E-05   -.32341E-03
  34  Prefactor     .91349        .21577       -.37547E-05   -.43802E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100179
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.11599
  Prefactor  = 0.0001
  Prefactor  = 0.000100166
  norm       = 0.0001
  Prefactor  = 5.13796
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000232581
  Prefactor  = 9.62474
  Prefactor  = 31.7622
  Prefactor  = 0.000100013
  Prefactor  = 0.00010001
  Prefactor  = 8.7665
  norm       = 10.2546
  norm       = 2.59741
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 9.80943
  norm       = 0.0001
  norm       = 4.59964
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.33788
  Prefactor  = 0.0001
  Prefactor  = 2.61622
  Normalizat = 0.993451
  Prefactor  = 0.913494
 **********
 **   18 **HESSE 
 **********

 FCN=   5703.330     FROM HESSE     STATUS=OK           804 CALLS     4926 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10018E-03    90.679        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.1150        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.036        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.2313        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.1160        4.1563        .49669E-02   -1.5302    
   6  Prefactor     .10000E-03    4.9253        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10017E-03    89.069        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    5.9133        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.1380        4.6194        .44341E-02   -1.5255    
  10  Prefactor     .10000E-03    54.417        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.3937        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .23258E-03    35.341        .11658       -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.6247        16.106        .32420E-02   -1.5087    
  14  Prefactor     31.762        88.720        .17722E-02   -1.4580    
  15  Prefactor     .10001E-03    10.889        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    11.419        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.7665        11.820        .33862E-02   -1.5116    
  18  norm          10.255        10.569        .31284E-02   -1.5067    
  19  norm          2.5974        3.3922        .63277E-02   -1.5386    
  20  norm          .10000E-03    1.4191        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.4394        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    33.170        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.5066        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     9.8094        8.8642        .31983E-02   -1.5081    
  25  norm          .10000E-03    .21928        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          4.5996        3.7893        .46921E-02   -1.5279    
  27  Prefactor     .10000E-03    17.810        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    .94506        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    7.7537        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          6.3379        11.905        .39844E-02   -1.5204    
  31  Prefactor     .10000E-03    2.6687        .42381E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     2.6162        2.8443        .63028E-02   -1.5384    
  33  Normalizat    .99345        .17145        .46079E-01   -.93250    
  34  Prefactor     .91349        .17952        .45181E-01   -.95671    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22664e-06
Minuit parameter uncertainties:
  1  0.00806726
  2  3.02583e-05
  3  4.68014e-05
  4  3.94861e-05
  5  4.15654
  6  2.44212e-05
  7  0.00770657
  8  6.32466e-05
  9  4.61976
  10  0.000652793
  11  1.0584e-05
  12  0.136983
  13  16.1128
  14  89.0913
  15  0.000747659
  16  0.000681358
  17  11.8229
  18  10.5706
  19  3.39248
  20  5.32094e-07
  21  1.98404e-06
  22  0.000714241
  23  1.06203e-05
  24  8.86536
  25  3.83799e-07
  26  3.78947
  27  4.40093e-05
  28  2.98359e-07
  29  0.000104027
  30  11.9094
  31  1.11905e-05
  32  2.84449
  33  0.171548
  34  0.179634
Done.

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

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  2.597e+00  3.392e+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

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  9.135e-01  1.796e-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.935e-01  1.715e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.37
Ra Dec: 350.708 -49.273
Photon Index (Fixed Index): 1.61 +/- 0.00
Photon Flux (Fixed Index): 4.08e-09 +/- 5.33e-09
Energy Flux (Fixed Index): 8.95e-06 +/- 1.17e-05

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

Saving results to:
/scratch/kocevski/804940/likelihoodResults_501120001_501379201_4FGL_J2322.8-4916_daily_bin1010.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) = 5703.15267602
delta logL = 0.177564211133

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5703.15263054
delta logL = 0.177609689789

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6362       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2217       1.0000          .0000       5.0000    
     3 'Normalizat'    .99170       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91349       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=   5703.153     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      293 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6362        3.1531        .11478E-03    .64777E-04
   2  alpha         2.2217        1.1053        .15624E-01    .94671E-05
   3  Normalizat    .99170        .19826        .22013E-03    .35533E-04
   4  Prefactor     .91347        .21534        .24690E-03    .65384E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.63622
  alpha      = 2.22173
  Normalizat = 0.991698
  Prefactor  = 0.913473
 **********
 **   18 **HESSE 
 **********

 FCN=   5703.153     FROM HESSE     STATUS=OK            25 CALLS      318 TOTAL
                     EDM=   .53E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6362        2.9143        .45912E-05   -1.5452    
   2  alpha         2.2217        1.0272        .62498E-03   -.11154    
   3  Normalizat    .99170        .19848        .88051E-05   -.93309    
   4  Prefactor     .91347        .21559        .98761E-05   -.95672    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.27609e-12
Minuit parameter uncertainties:
  1  2.91451
  2  1.05899
  3  0.198625
  4  0.215795
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/804940': 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) = 5703.15263052
delta logL = 0.177609714079

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.636e+00  2.915e+00  1.000e-04  1.000e+04 ( 1.000e-13)
435        alpha:  2.222e+00  1.059e+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:  9.135e-01  2.158e-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.917e-01  1.986e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.73
Ra Dec: 350.708 -49.273
Photon Index (Free Index): 2.22 +/- 1.06
Photon Flux (Free Index): 7.01e-09 +/- 1.03e-08
Energy Flux (Free Index): 4.92e-06 +/- 7.22e-06

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/804940/cmap_HighResolution_501120001_501379201_4FGL_J2322.8-4916_daily_bin1010.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.14e-05', comment='SUCCESS', photon_flux='4.08e-09', energy_flux2='4.92e-06', photon_flux_error='5.33e-09', dlogl='1.78e-01', energy_flux='8.95e-06', photon_flux2='7.01e-09', job_status='DONE', time_completed='2021-09-29 14:31:26.420515', photon_index_error2='1.06', photon_index2='2.22', ts='1.37', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='2.35e-08', energy_flux_error2='7.22e-06', EG='0.99', time_epoch_completed='1632951086.42', return_code='0', job_id='804940', GAL2='0.91', EG2='0.99', return_code2='0', energy_flux_error='1.17e-05', photon_flux_error2='1.03e-08', ts2='1.73', photon_index='1.61' WHERE bin_id='1010' AND source_name='4FGL J2322.8-4916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:31:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 804940: <4FGL_J2322.8-4916_daily_bin1010> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.8-4916_daily_bin1010 350.708 -49.2725 501120001 501379201 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 :                                   864.07 sec.
    Max Memory :                                 1070 MB
    Average Memory :                             303.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   973 sec.
    Turnaround time :                            976 sec.

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

