/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 27 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 = 7474
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2322.8-4916_daily_bin438
RA = 350.708, Dec = -49.2725
tmin = 352857601, tmax = 353116801
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='799239', job_status='RUN', time_executed='2021-09-29 14:01:13.601006', time_epoch_executed='1632949273.6' WHERE source_name='4FGL J2322.8-4916' and cadence='daily' and bin_id='438'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/799239

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/799239/ft1_4FGL_J2322.8-4916_daily_bin438.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/799239/ft2_4FGL_J2322.8-4916_daily_bin438.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/799239/ft1_4FGL_J2322.8-4916_daily_bin438.fits outfile=/scratch/kocevski/799239/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin438.fits ra=350.708 dec=-49.2725 rad=12.0 tmin=352857601.0 tmax=353116801.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.46
user 3.24
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/799239/ft1_filtered_4FGL_J2322.8-4916_daily_bin438.fits" evtable="EVENTS" scfile=/scratch/kocevski/799239/ft2_4FGL_J2322.8-4916_daily_bin438.fits sctable="SC_DATA" outfile=/scratch/kocevski/799239/ltcube_352857601_353116801_4FGL_J2322.8-4916_daily_bin438.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/799239/ft2_4FGL_J2322.8-4916_daily_bin438.fits
.....................!
real 12.34
user 11.94
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/799239/ft1_filtered_4FGL_J2322.8-4916_daily_bin438.fits evtable="EVENTS" scfile=/scratch/kocevski/799239/ft2_4FGL_J2322.8-4916_daily_bin438.fits sctable="SC_DATA" expcube=/scratch/kocevski/799239/ltcube_352857601_353116801_4FGL_J2322.8-4916_daily_bin438.fits outfile=/scratch/kocevski/799239/expmap_352857601_353116801_4FGL_J2322.8-4916_daily_bin438.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/799239/ltcube_352857601_353116801_4FGL_J2322.8-4916_daily_bin438.fits
.....................!
real 191.06
user 185.78
sys 4.93

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/799239/ft1_filtered_4FGL_J2322.8-4916_daily_bin438.fits scfile=/scratch/kocevski/799239/ft2_4FGL_J2322.8-4916_daily_bin438.fits outfile=/scratch/kocevski/799239/cmap_352857601_353116801_4FGL_J2322.8-4916_daily_bin438.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/799239/ft1_filtered_4FGL_J2322.8-4916_daily_bin438.fits scfile=/scratch/kocevski/799239/ft2_4FGL_J2322.8-4916_daily_bin438.fits outfile=/scratch/kocevski/799239/cmap_HighResolution_352857601_353116801_4FGL_J2322.8-4916_daily_bin438.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/799239/ft1_filtered_4FGL_J2322.8-4916_daily_bin438.fits evtable="EVENTS" scfile=/scratch/kocevski/799239/ft2_4FGL_J2322.8-4916_daily_bin438.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/799239/Model_4FGL_J2322.8-4916_daily_bin438.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/799239/ft1_filtered_4FGL_J2322.8-4916_daily_bin438.fits.....................!
real 22.00
user 20.84
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10702E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11307E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    129.74       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .34461       1.0000         .10000E-03   10000.    
    12 'Prefactor '    62.681       1.0000         .10000E-03   10000.    
    13 'Prefactor '    32.302       1.0000         .10000E-03   10000.    
    14 'Prefactor '    418.20       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12858E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .86080E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.0497       1.0000         .10000E-03   10000.    
    18 'norm      '    14.006       1.0000         .10000E-03   10000.    
    19 'norm      '    13.276       1.0000         .10000E-03   10000.    
    20 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10516E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    83.721       1.0000         .10000E-03   10000.    
    25 'norm      '    7.1670       1.0000         .10000E-03   10000.    
    26 'norm      '    .10187E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    7.1517       1.0000         .10000E-03   10000.    
    28 'Prefactor '    7.8342       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10153E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    1.2334       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .61326E-01   1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.7449       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=   1582.383     FROM MIGRAD    STATUS=CONVERGED   1673 CALLS     5842 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    55.540        .18142E-02** at limit **
   2  Prefactor     .10000E-03    25.472        .18142E-02** at limit **
   3  Prefactor     .10000E-03    61.444        .18142E-02** at limit **
   4  Prefactor     .10000E-03    19.991        .17344E-02** at limit **
   5  Prefactor     .10000E-03    21.824        .18087E-02** at limit **
   6  Prefactor     .10000E-03    9.1410        .11739E-02** at limit **
   7  Prefactor     .10000E-03    982.67        .18142E-02** at limit **
   8  norm          .10000E-03    10.557        .12622E-02** at limit **
   9  Prefactor     .10000E-03    4.8677        .85443E-03** at limit **
  10  Prefactor     129.75        125.48        .17674E-03   -.16483E-04
  11  Prefactor     .27583        243.73        .29771E-02   -.13053E-03
  12  Prefactor     62.651        86.789        .50684E-04   -.37795E-04
  13  Prefactor     32.267        35.531        .70502E-04   -.20237E-04
  14  Prefactor     418.25        373.50        .99911E-04    .19685E-05
  15  Prefactor     .10000E-03    34.536        .18142E-02** at limit **
  16  Prefactor     .10000E-03    379.67        .20858E-02** at limit **
  17  Prefactor     4.0390        83.614        .20037E-03   -.46384E-05
  18  norm          14.000        20.586        .10703E-03   -.53112E-05
  19  norm          13.275        13.707        .10993E-03   -.59206E-05
  20  norm          .10000E-03    5.7529        .93150E-03** at limit **
  21  Prefactor     .10000E-03    7.7076        .10782E-02** at limit **
  22  Prefactor     .10000E-03    35.833        .18142E-02** at limit **
  23  norm          .10000E-03    8.5687        .11276E-02** at limit **
  24  Prefactor     83.728        44.611        .43901E-04   -.27916E-04
  25  norm          7.1663        3.7703        .51018E-04   -.85424E-04
  26  norm          .10000E-03    6.1358        .95786E-03** at limit **
  27  Prefactor     7.1559        63.563        .15000E-03   -.21374E-04
  28  Prefactor     7.8310        7.7628        .10554E-03   -.60108E-04
  29  Prefactor     .10000E-03    19.162        .17012E-02** at limit **
  30  norm          .10000E-03    22.425        .18142E-02** at limit **
  31  Prefactor     .10000E-03    6.0253        .95285E-03** at limit **
  32  Prefactor     1.2318        6.4377        .19605E-03    .24674E-04
  33  Normalizat    .61118E-01    1.1861        .82167E-02   -.18955E-04
  34  Prefactor     1.7456        .55759        .20702E-03   -.11577E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 129.754
  Prefactor  = 0.275832
  Prefactor  = 62.6511
  Prefactor  = 32.2675
  Prefactor  = 418.25
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.03901
  norm       = 14.0003
  norm       = 13.2755
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 83.7281
  norm       = 7.16627
  norm       = 0.0001
  Prefactor  = 7.1559
  Prefactor  = 7.83101
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.2318
  Normalizat = 0.0611181
  Prefactor  = 1.74557
 **********
 **   18 **HESSE 
 **********

 FCN=   1582.383     FROM HESSE     STATUS=OK           702 CALLS     6544 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    55.541        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    25.472        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    61.446        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    19.993        .34688E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    21.829        .36175E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.1413        .23477E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    982.72        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    10.557        .25245E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.8680        .17089E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     129.75        125.47        .70696E-05   -1.3425    
  11  Prefactor     .27583        234.40        .11909E-03   -1.5603    
  12  Prefactor     62.651        85.770        .10137E-04   -1.4123    
  13  Prefactor     32.267        35.519        .28201E-05   -1.4571    
  14  Prefactor     418.25        373.41        .19982E-04   -1.1589    
  15  Prefactor     .10000E-03    34.554        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    379.77        .41716E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.0390        83.417        .80148E-05   -1.5306    
  18  norm          14.000        20.584        .42811E-05   -1.4959    
  19  norm          13.275        13.706        .43972E-05   -1.4979    
  20  norm          .10000E-03    5.7529        .18630E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.7076        .21565E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    35.834        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    8.5707        .22553E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     83.728        44.526        .87803E-05   -1.3875    
  25  norm          7.1663        3.7677        .10204E-04   -1.5173    
  26  norm          .10000E-03    6.1363        .19157E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     7.1559        62.628        .59999E-05   -1.5173    
  28  Prefactor     7.8310        7.7564        .42215E-05   -1.5148    
  29  Prefactor     .10000E-03    19.163        .34023E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    22.425        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    6.0254        .19057E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     1.2318        6.4323        .78420E-05   -1.5486    
  33  Normalizat    .61118E-01    .90520        .32867E-03   -1.4276    
  34  Prefactor     1.7456        .48689        .41403E-04   -.70875    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69191e-09
Minuit parameter uncertainties:
  1  0.000128379
  2  1.96978e-05
  3  0.000107005
  4  4.77888e-06
  5  1.89829e-05
  6  1.68565e-06
  7  0.00174709
  8  3.76963e-06
  9  1.81135e-06
  10  125.733
  11  16.1423
  12  85.9397
  13  35.5422
  14  375.614
  15  1.86607e-05
  16  0.000851822
  17  36.7691
  18  20.5943
  19  13.7097
  20  8.98911e-07
  21  6.99433e-06
  22  2.00905e-05
  23  9.99876e-06
  24  44.5437
  25  3.76785
  26  5.0393e-06
  27  42.3987
  28  7.75743
  29  1.45016e-05
  30  5.05708e-06
  31  1.62343e-06
  32  5.6304
  33  0.438197
  34  0.488233
Done.

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

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.328e+01  1.371e+01  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:  1.746e+00  4.882e-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:  6.112e-02  4.382e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.88
Ra Dec: 350.708 -49.273
Photon Index (Fixed Index): 1.61 +/- 0.00
Photon Flux (Fixed Index): 2.09e-08 +/- 2.15e-08
Energy Flux (Fixed Index): 4.57e-05 +/- 4.72e-05

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) = 1582.34483672
delta logL = 0.0378138415128

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1582.33448916
delta logL = 0.0481613951515

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.123       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9113       1.0000          .0000       5.0000    
     3 'Normalizat'    .58039E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.7466       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=   1582.334     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      265 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.137        14.427        .12012E-03   -.40057E-04
   2  alpha         1.9105        .97395        .11255E-01   -.11064E-04
   3  Normalizat    .59054E-01    1.0606        .82672E-02    .13709E-03
   4  Prefactor     1.7455        .52517        .20695E-03    .98298E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.1368
  alpha      = 1.91049
  Normalizat = 0.0590536
  Prefactor  = 1.74551
 **********
 **   18 **HESSE 
 **********

 FCN=   1582.334     FROM HESSE     STATUS=OK            27 CALLS      292 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.137        14.149        .48050E-05   -1.5040    
   2  alpha         1.9105        .95624        .45020E-03   -.23804    
   3  Normalizat    .59054E-01    .87160        .16534E-02   -1.4305    
   4  Prefactor     1.7455        .47463        .41391E-04   -.70877    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35854e-10
Minuit parameter uncertainties:
  1  14.1535
  2  0.982834
  3  0.420913
  4  0.475877
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/799239': 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) = 1582.3344856
delta logL = 0.0481649538867

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  1.746e+00  4.759e-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:  5.905e-02  4.209e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.99
Ra Dec: 350.708 -49.273
Photon Index (Free Index): 1.91 +/- 0.98
Photon Flux (Free Index): 2.69e-08 +/- 3.62e-08
Energy Flux (Free Index): 3.24e-05 +/- 4.60e-05

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/799239/cmap_HighResolution_352857601_353116801_4FGL_J2322.8-4916_daily_bin438.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.09e-08', energy_flux2='3.24e-05', photon_flux_error='2.15e-08', dlogl='4.82e-02', energy_flux='4.57e-05', photon_flux2='2.69e-08', job_status='DONE', time_completed='2021-09-29 14:09:09.615652', photon_index_error2='0.98', photon_index2='1.91', ts='4.88', fit_tolerance='1e-08', GAL='1.75', photon_index_error='0.00', energy_flux_error2='4.60e-05', EG='0.06', time_epoch_completed='1632949749.62', return_code='0', job_id='799239', GAL2='1.75', EG2='0.06', return_code2='0', energy_flux_error='4.72e-05', photon_flux_error2='3.62e-08', ts2='4.99', photon_index='1.61' WHERE bin_id='438' AND source_name='4FGL J2322.8-4916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:09:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 799239: <4FGL_J2322.8-4916_daily_bin438> in cluster <slac> Done

Job <4FGL_J2322.8-4916_daily_bin438> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Sep 29 14:00:37 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:00:39 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:00:39 2021
Terminated at Wed Sep 29 14:09:10 2021
Results reported at Wed Sep 29 14:09:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.8-4916_daily_bin438 350.708 -49.2725 352857601 353116801 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 :                                   472.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             318.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   510 sec.
    Turnaround time :                            513 sec.

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

