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


Performing analysis on: 4FGL_J2322.8-4916_daily_bin898
RA = 350.708, Dec = -49.2725
tmin = 472089601, tmax = 472348801
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='802461', job_status='RUN', time_executed='2021-09-29 14:12:52.616676', time_epoch_executed='1632949972.62' WHERE source_name='4FGL J2322.8-4916' and cadence='daily' and bin_id='898'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/802461

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/802461/ft1_4FGL_J2322.8-4916_daily_bin898.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/802461/ft2_4FGL_J2322.8-4916_daily_bin898.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/802461/ft1_4FGL_J2322.8-4916_daily_bin898.fits outfile=/scratch/kocevski/802461/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin898.fits ra=350.708 dec=-49.2725 rad=12.0 tmin=472089601.0 tmax=472348801.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.50
user 3.28
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/802461/ft2_4FGL_J2322.8-4916_daily_bin898.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/802461/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin898.fits evtable="EVENTS" outfile="/scratch/kocevski/802461/ft1_filtered_4FGL_J2322.8-4916_daily_bin898.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.50
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/802461/ft1_filtered_4FGL_J2322.8-4916_daily_bin898.fits" evtable="EVENTS" scfile=/scratch/kocevski/802461/ft2_4FGL_J2322.8-4916_daily_bin898.fits sctable="SC_DATA" outfile=/scratch/kocevski/802461/ltcube_472089601_472348801_4FGL_J2322.8-4916_daily_bin898.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/802461/ft2_4FGL_J2322.8-4916_daily_bin898.fits
.....................!
real 12.31
user 11.96
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/802461/ft1_filtered_4FGL_J2322.8-4916_daily_bin898.fits evtable="EVENTS" scfile=/scratch/kocevski/802461/ft2_4FGL_J2322.8-4916_daily_bin898.fits sctable="SC_DATA" expcube=/scratch/kocevski/802461/ltcube_472089601_472348801_4FGL_J2322.8-4916_daily_bin898.fits outfile=/scratch/kocevski/802461/expmap_472089601_472348801_4FGL_J2322.8-4916_daily_bin898.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/802461/ltcube_472089601_472348801_4FGL_J2322.8-4916_daily_bin898.fits
.....................!
real 190.23
user 185.25
sys 4.60

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/802461/ft1_filtered_4FGL_J2322.8-4916_daily_bin898.fits scfile=/scratch/kocevski/802461/ft2_4FGL_J2322.8-4916_daily_bin898.fits outfile=/scratch/kocevski/802461/cmap_472089601_472348801_4FGL_J2322.8-4916_daily_bin898.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/802461/ft1_filtered_4FGL_J2322.8-4916_daily_bin898.fits scfile=/scratch/kocevski/802461/ft2_4FGL_J2322.8-4916_daily_bin898.fits outfile=/scratch/kocevski/802461/cmap_HighResolution_472089601_472348801_4FGL_J2322.8-4916_daily_bin898.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/802461/ft1_filtered_4FGL_J2322.8-4916_daily_bin898.fits evtable="EVENTS" scfile=/scratch/kocevski/802461/ft2_4FGL_J2322.8-4916_daily_bin898.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/802461/Model_4FGL_J2322.8-4916_daily_bin898.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/802461/ft1_filtered_4FGL_J2322.8-4916_daily_bin898.fits.....................!
real 35.84
user 34.57
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13360E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.068       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    28.889       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.8932       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.8490       1.0000         .10000E-03   10000.    
    14 'Prefactor '    41.058       1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.764       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.2658       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.0916       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    9.7050       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.0425       1.0000         .10000E-03   10000.    
    26 'norm      '    4.0855       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    9.1346       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    3.6927       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .86387       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .98713       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=   4339.901     FROM MIGRAD    STATUS=CONVERGED    919 CALLS     4773 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    102.97       -.11430E-05** at limit **
   2  Prefactor     .10000E-03    18.895        .66382E-07** at limit **
   3  Prefactor     .10000E-03    51.222        .90386E-06** at limit **
   4  Prefactor     .10000E-03    5.8960        .11428E-06** at limit **
   5  Prefactor     .10000E-03    38.103       -.14848E-04** at limit **
   6  Prefactor     15.065        14.834       -.38747E-06   -.38413E-04
   7  Prefactor     .10000E-03    47.001        .45454E-06** at limit **
   8  norm          .10000E-03    3.3449       -.33308E-07** at limit **
   9  Prefactor     .10000E-03    2.2640       -.35014E-07** at limit **
  10  Prefactor     28.887        40.809       -.82383E-07    .53203E-05
  11  Prefactor     .10000E-03    1.2024        .65802E-08** at limit **
  12  Prefactor     7.8943        15.077       -.17853E-07   -.10254E-04
  13  Prefactor     4.8471        13.412        .19760E-05    .19494E-03
  14  Prefactor     40.970        144.54       -.81095E-05    .81860E-05
  15  Prefactor     16.763        11.142       -.80321E-07    .10495E-04
  16  Prefactor     .10000E-03    14.252        .10173E-06** at limit **
  17  Prefactor     6.2658        16.994       -.10350E-05    .10554E-04
  18  norm          .10000E-03    3.9169       -.61371E-08** at limit **
  19  norm          5.0916        5.1074        .45244E-07    .59325E-05
  20  norm          .10000E-03    2.5025       -.10114E-07** at limit **
  21  Prefactor     .10000E-03    2.4429       -.13989E-07** at limit **
  22  Prefactor     .10000E-03    43.592       -.25766E-06** at limit **
  23  norm          9.7051        6.9108        .47100E-06    .67216E-04
  24  Prefactor     .10000E-03    5.4582       -.75326E-07** at limit **
  25  norm          2.0425        1.3497        .35650E-07    .11775E-03
  26  norm          4.0852        6.5867       -.16911E-05    .45615E-04
  27  Prefactor     .10000E-03    8.5013        .34586E-07** at limit **
  28  Prefactor     9.1339        4.9455        .24486E-08    .15498E-03
  29  Prefactor     .10000E-03    9.7057       -.91030E-07** at limit **
  30  norm          .10000E-03    8.2181        .57741E-07** at limit **
  31  Prefactor     .10000E-03    6.1951       -.68581E-07** at limit **
  32  Prefactor     3.6919        6.1134       -.62289E-07   -.12030E-04
  33  Normalizat    .86399        .21700       -.10696E-06   -.36073E-04
  34  Prefactor     .98699        .21701        .24791E-06    .16339E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.0646
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.8865
  Prefactor  = 0.0001
  Prefactor  = 7.89429
  Prefactor  = 4.84711
  Prefactor  = 40.9697
  Prefactor  = 16.7633
  Prefactor  = 0.0001
  Prefactor  = 6.26582
  norm       = 0.0001
  norm       = 5.09157
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.70514
  Prefactor  = 0.0001
  norm       = 2.04246
  norm       = 4.0852
  Prefactor  = 0.0001
  Prefactor  = 9.1339
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.69192
  Normalizat = 0.863986
  Prefactor  = 0.986993
 **********
 **   18 **HESSE 
 **********

 FCN=   4339.901     FROM HESSE     STATUS=OK           728 CALLS     5501 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    102.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    51.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.9118        .15617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    37.708        .32320E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.065        14.842        .10318E-03   -1.4932    
   7  Prefactor     .10000E-03    47.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.3582        .11767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.3549        .19351E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     28.887        40.814        .74539E-04   -1.4633    
  11  Prefactor     .10000E-03    1.2049        .70545E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.8943        15.041        .14272E-03   -1.5146    
  13  Prefactor     4.8471        13.410        .18268E-03   -1.5268    
  14  Prefactor     40.970        144.63        .62559E-04   -1.4427    
  15  Prefactor     16.763        11.141        .48911E-03   -1.4889    
  16  Prefactor     .10000E-03    14.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.2658        16.961        .80182E-03   -1.5207    
  18  norm          .10000E-03    3.9172        .12734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.0916        5.1116        .14486E-03   -1.5257    
  20  norm          .10000E-03    2.5045        .10177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.4495        .10054E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    43.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          9.7051        6.9187        .12863E-03   -1.5085    
  24  Prefactor     .10000E-03    5.4645        .15030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.0425        1.3442        .58274E-04   -1.5422    
  26  norm          4.0852        6.5890        .95896E-03   -1.5304    
  27  Prefactor     .10000E-03    8.5184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     9.1339        4.9421        .10173E-03   -1.5103    
  29  Prefactor     .10000E-03    9.7097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    8.2186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    6.3965        .31957E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     3.6919        6.1139        .19618E-03   -1.5324    
  33  Normalizat    .86399        .26130        .24766E-03   -.97737    
  34  Prefactor     .98699        .26175        .24623E-03   -.93164    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07106e-10
Minuit parameter uncertainties:
  1  0.000430639
  2  4.50322e-05
  3  0.000409937
  4  3.03618e-05
  5  0.000150799
  6  14.8461
  7  0.000175659
  8  3.6458e-06
  9  3.40881e-06
  10  40.8535
  11  3.14679e-08
  12  15.0482
  13  13.4186
  14  145.894
  15  11.1421
  16  3.32245e-05
  17  16.9744
  18  4.82548e-07
  19  5.11207
  20  3.89539e-07
  21  3.34029e-07
  22  5.50983e-06
  23  6.91923
  24  4.75684e-06
  25  1.3442
  26  6.5902
  27  2.31218e-05
  28  4.94236
  29  1.97487e-05
  30  5.24485e-06
  31  3.6509e-05
  32  6.11496
  33  0.261679
  34  0.262092
Done.

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

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  5.092e+00  5.112e+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.870e-01  2.621e-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:  8.640e-01  2.617e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.04
Ra Dec: 350.708 -49.273
Photon Index (Fixed Index): 1.61 +/- 0.00
Photon Flux (Fixed Index): 8.00e-09 +/- 8.03e-09
Energy Flux (Fixed Index): 1.75e-05 +/- 1.76e-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) = 4339.80360381
delta logL = 0.0974893761986

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4339.80312094
delta logL = 0.0979722416287

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.1972       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2343       1.0000          .0000       5.0000    
     3 'Normalizat'    .86432       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98788       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.

 FCN=   4339.803     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      217 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.1972        9.6736        .44083E-02   -.14410E-03
   2  alpha         1.2345        1.2520        .50000       -.13051E-05
   3  Normalizat    .86451        .20291        .44444E-01    .13552E-04
   4  Prefactor     .98786        .21485        .46115E-01    .97115E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.1972
  alpha      = 1.23452
  Normalizat = 0.864511
  Prefactor  = 0.987859
 **********
 **   18 **HESSE 
 **********

 FCN=   4339.803     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .34E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.1972        5.2877        .14737E-03   -1.5252    
   2  alpha         1.2345        .81206        .21439E-01   -.53076    
   3  Normalizat    .86451        .24182        .24761E-03   -.97719    
   4  Prefactor     .98786        .25679        .24616E-03   -.93135    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.36261e-14
Minuit parameter uncertainties:
  1  5.28819
  2  0.832597
  3  0.24212
  4  0.25711
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/802461': 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) = 4339.80311955
delta logL = 0.0979736374293

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  5.197e+00  5.288e+00  1.000e-04  1.000e+04 ( 1.000e-13)
435        alpha:  1.235e+00  8.326e-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:  9.879e-01  2.571e-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:  8.645e-01  2.421e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.24
Ra Dec: 350.708 -49.273
Photon Index (Free Index): 1.23 +/- 0.83
Photon Flux (Free Index): 5.91e-09 +/- 6.79e-09
Energy Flux (Free Index): 2.89e-05 +/- 4.48e-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/802461/cmap_HighResolution_472089601_472348801_4FGL_J2322.8-4916_daily_bin898.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.00e-09', energy_flux2='2.89e-05', photon_flux_error='8.03e-09', dlogl='9.80e-02', energy_flux='1.75e-05', photon_flux2='5.91e-09', job_status='DONE', time_completed='2021-09-29 14:24:02.846040', photon_index_error2='0.83', photon_index2='1.23', ts='7.04', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='4.48e-05', EG='0.86', time_epoch_completed='1632950642.85', return_code='0', job_id='802461', GAL2='0.99', EG2='0.86', return_code2='0', energy_flux_error='1.76e-05', photon_flux_error2='6.79e-09', ts2='7.24', photon_index='1.61' WHERE bin_id='898' AND source_name='4FGL J2322.8-4916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:24:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 802461: <4FGL_J2322.8-4916_daily_bin898> in cluster <slac> Done

Job <4FGL_J2322.8-4916_daily_bin898> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 14:10:27 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 14:10:28 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:10:28 2021
Terminated at Wed Sep 29 14:24:05 2021
Results reported at Wed Sep 29 14:24:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.8-4916_daily_bin898 350.708 -49.2725 472089601 472348801 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 :                                   669.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             280.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            818 sec.

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

