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


Performing analysis on: 4FGL_J2322.8-4916_daily_bin1271
RA = 350.708, Dec = -49.2725
tmin = 568771201, tmax = 569030401
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='805325', job_status='RUN', time_executed='2021-09-29 14:19:47.237092', time_epoch_executed='1632950387.24' WHERE source_name='4FGL J2322.8-4916' and cadence='daily' and bin_id='1271'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805325

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805325/ft1_4FGL_J2322.8-4916_daily_bin1271.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805325/ft2_4FGL_J2322.8-4916_daily_bin1271.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805325/ft1_4FGL_J2322.8-4916_daily_bin1271.fits outfile=/scratch/kocevski/805325/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1271.fits ra=350.708 dec=-49.2725 rad=12.0 tmin=568771201.0 tmax=569030401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.60
user 3.33
sys 0.21

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/805325/ft1_filtered_4FGL_J2322.8-4916_daily_bin1271.fits" evtable="EVENTS" scfile=/scratch/kocevski/805325/ft2_4FGL_J2322.8-4916_daily_bin1271.fits sctable="SC_DATA" outfile=/scratch/kocevski/805325/ltcube_568771201_569030401_4FGL_J2322.8-4916_daily_bin1271.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/805325/ft2_4FGL_J2322.8-4916_daily_bin1271.fits
.....................!
real 12.17
user 11.81
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805325/ft1_filtered_4FGL_J2322.8-4916_daily_bin1271.fits evtable="EVENTS" scfile=/scratch/kocevski/805325/ft2_4FGL_J2322.8-4916_daily_bin1271.fits sctable="SC_DATA" expcube=/scratch/kocevski/805325/ltcube_568771201_569030401_4FGL_J2322.8-4916_daily_bin1271.fits outfile=/scratch/kocevski/805325/expmap_568771201_569030401_4FGL_J2322.8-4916_daily_bin1271.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/805325/ltcube_568771201_569030401_4FGL_J2322.8-4916_daily_bin1271.fits
.....................!
real 193.12
user 187.54
sys 5.23

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/805325/ft1_filtered_4FGL_J2322.8-4916_daily_bin1271.fits scfile=/scratch/kocevski/805325/ft2_4FGL_J2322.8-4916_daily_bin1271.fits outfile=/scratch/kocevski/805325/cmap_568771201_569030401_4FGL_J2322.8-4916_daily_bin1271.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/805325/ft1_filtered_4FGL_J2322.8-4916_daily_bin1271.fits scfile=/scratch/kocevski/805325/ft2_4FGL_J2322.8-4916_daily_bin1271.fits outfile=/scratch/kocevski/805325/cmap_HighResolution_568771201_569030401_4FGL_J2322.8-4916_daily_bin1271.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.57
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/805325/ft1_filtered_4FGL_J2322.8-4916_daily_bin1271.fits evtable="EVENTS" scfile=/scratch/kocevski/805325/ft2_4FGL_J2322.8-4916_daily_bin1271.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/805325/Model_4FGL_J2322.8-4916_daily_bin1271.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/805325/ft1_filtered_4FGL_J2322.8-4916_daily_bin1271.fits.....................!
real 35.70
user 34.43
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.801       1.0000         .10000E-03   10000.    
     3 'Prefactor '    94.598       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.3036       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10579E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    146.33       1.0000         .10000E-03   10000.    
     8 'norm      '    .10422E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.259       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.6422       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.449       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    11.163       1.0000         .10000E-03   10000.    
    20 'norm      '    6.0337       1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.565       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10261E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    7.3882       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.4519       1.0000         .10000E-03   10000.    
    26 'norm      '    1.4180       1.0000         .10000E-03   10000.    
    27 'Prefactor '    20.466       1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.6475       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10421E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    3.5125       1.0000         .10000E-03   10000.    
    32 'Prefactor '    1.9437       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .85477       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .90481       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=   4237.208     FROM MIGRAD    STATUS=CONVERGED    895 CALLS     4788 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.713        .51453E-07** at limit **
   2  Prefactor     10.802        19.120       -.52574E-07   -.15464E-04
   3  Prefactor     94.580        58.434       -.27568E-05   -.74740E-04
   4  Prefactor     .10000E-03    14.947        .11274E-05** at limit **
   5  Prefactor     3.2992        7.8882        .11625E-04   -.11832E-03
   6  Prefactor     .10000E-03    7.4448        .30476E-06** at limit **
   7  Prefactor     145.83        152.06       -.25028E-05   -.18075E-03
   8  norm          .10000E-03    3.5100       -.11999E-05** at limit **
   9  Prefactor     .10000E-03    2.8128        .38368E-07** at limit **
  10  Prefactor     .10000E-03    35.273        .40763E-06** at limit **
  11  Prefactor     15.257        7.6756        .11965E-06   -.21049E-04
  12  Prefactor     .10000E-03    7.9848       -.48313E-06** at limit **
  13  Prefactor     6.6430        10.472        .36010E-06    .27261E-05
  14  Prefactor     .10000E-03    33.665        .64526E-07** at limit **
  15  Prefactor     .10000E-03    12.228        .14030E-05** at limit **
  16  Prefactor     .10000E-03    12.929        .51531E-07** at limit **
  17  Prefactor     13.438        22.160        .37428E-06   -.21664E-04
  18  norm          .10000E-03    3.9739        .43927E-07** at limit **
  19  norm          11.163        8.9486       -.17665E-06    .10018E-05
  20  norm          6.0342        6.1128       -.47015E-08   -.12463E-04
  21  Prefactor     11.564        8.2078        .60579E-06   -.43644E-04
  22  Prefactor     .10000E-03    47.055        .37814E-06** at limit **
  23  norm          7.3917        5.9184       -.66681E-07   -.69389E-04
  24  Prefactor     .10000E-03    9.8568        .41896E-07** at limit **
  25  norm          1.4524        1.3782       -.84500E-08   -.76222E-04
  26  norm          1.4173        4.3583        .11677E-05    .10377E-04
  27  Prefactor     20.463        19.443        .31529E-06   -.29722E-04
  28  Prefactor     2.6447        5.1819        .36710E-06   -.26295E-04
  29  Prefactor     .10000E-03    22.797        .12180E-06** at limit **
  30  norm          .10000E-03    17.812        .13549E-06** at limit **
  31  Prefactor     3.5077        7.7464        .31190E-06   -.71618E-04
  32  Prefactor     1.9418        4.1492        .63455E-06   -.31041E-04
  33  Normalizat    .85524        .22037       -.30231E-05   -.53614E-04
  34  Prefactor     .90449        .21731        .33946E-06   -.14431E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.8016
  Prefactor  = 94.5798
  Prefactor  = 0.0001
  Prefactor  = 3.2992
  Prefactor  = 0.0001
  Prefactor  = 145.827
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 15.2572
  Prefactor  = 0.0001
  Prefactor  = 6.64301
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.4378
  norm       = 0.0001
  norm       = 11.1632
  norm       = 6.03415
  Prefactor  = 11.5636
  Prefactor  = 0.0001
  norm       = 7.39173
  Prefactor  = 0.0001
  norm       = 1.45243
  norm       = 1.41729
  Prefactor  = 20.4633
  Prefactor  = 2.64472
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.50765
  Prefactor  = 1.9418
  Normalizat = 0.855236
  Prefactor  = 0.904494
 **********
 **   18 **HESSE 
 **********

 FCN=   4237.208     FROM HESSE     STATUS=OK           734 CALLS     5522 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.802        19.074        .12191E-03   -1.5051    
   3  Prefactor     94.580        58.319        .41323E-04   -1.3760    
   4  Prefactor     .10000E-03    15.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.2992        7.8891        .11137E-02   -1.5345    
   6  Prefactor     .10000E-03    7.5092        .17342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     145.83        152.66        .16656E-03   -1.3287    
   8  norm          .10000E-03    3.5149        .11906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.820        .20922E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    35.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.257        7.6618        .10253E-03   -1.4927    
  12  Prefactor     .10000E-03    7.9884        .17964E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.6430        10.462        .15570E-03   -1.5192    
  14  Prefactor     .10000E-03    33.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.438        22.066        .10922E-03   -1.4975    
  18  norm          .10000E-03    3.9742        .12674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          11.163        8.9576        .59955E-03   -1.5040    
  20  norm          6.0342        6.1231        .15228E-03   -1.5217    
  21  Prefactor     11.564        8.1855        .58899E-03   -1.5028    
  22  Prefactor     .10000E-03    47.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          7.3917        5.8787        .12562E-03   -1.5164    
  24  Prefactor     .10000E-03    9.8751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.4524        1.3481        .67628E-04   -1.5467    
  26  norm          1.4173        4.2905        .21898E-03   -1.5470    
  27  Prefactor     20.463        19.482        .88535E-04   -1.4803    
  28  Prefactor     2.6447        5.0716        .17882E-03   -1.5383    
  29  Prefactor     .10000E-03    22.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    17.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     3.5077        7.6150        .21571E-03   -1.5333    
  32  Prefactor     1.9418        4.1111        .18332E-03   -1.5429    
  33  Normalizat    .85524        .26148        .24754E-03   -.98051    
  34  Prefactor     .90449        .25917        .25297E-03   -.95984    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00892e-09
Minuit parameter uncertainties:
  1  2.25304e-05
  2  19.0848
  3  58.3545
  4  8.31713e-06
  5  7.89159
  6  1.18765e-05
  7  153.08
  8  7.75186e-06
  9  0.000460305
  10  5.90564e-05
  11  7.66227
  12  1.81673e-05
  13  10.4647
  14  2.99713e-05
  15  4.04507e-05
  16  6.52381e-06
  17  22.079
  18  3.90614e-07
  19  8.95871
  20  6.12376
  21  8.18626
  22  2.2426e-05
  23  5.87915
  24  1.43297e-05
  25  1.34814
  26  4.29141
  27  19.4882
  28  5.07244
  29  2.59268e-05
  30  4.0788e-06
  31  7.61715
  32  4.11173
  33  0.26187
  34  0.259526
Done.

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

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.116e+01  8.959e+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.045e-01  2.595e-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.552e-01  2.619e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.93
Ra Dec: 350.708 -49.273
Photon Index (Fixed Index): 1.61 +/- 0.00
Photon Flux (Fixed Index): 1.75e-08 +/- 1.41e-08
Energy Flux (Fixed Index): 3.85e-05 +/- 3.09e-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) = 4236.74375536
delta logL = 0.46416111552

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4236.74037732
delta logL = 0.467539153661

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.2442       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3057       1.0000          .0000       5.0000    
     3 'Normalizat'    .84017       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90652       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=   4236.740     FROM MIGRAD    STATUS=CONVERGED     77 CALLS      258 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.2460        8.1380        .11362E-03   -.43374E-03
   2  alpha         2.3057        .69238        .87821E-02   -.56666E-04
   3  Normalizat    .84003        .24400        .24910E-03    .39974E-03
   4  Prefactor     .90669        .25578        .25216E-03    .50391E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.246
  alpha      = 2.30574
  Normalizat = 0.84003
  Prefactor  = 0.906689
 **********
 **   18 **HESSE 
 **********

 FCN=   4236.740     FROM HESSE     STATUS=OK            25 CALLS      283 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.2460        7.6545        .22725E-04   -1.5134    
   2  alpha         2.3057        .65203        .35128E-03   -.77784E-01
   3  Normalizat    .84003        .24400        .49819E-04   -.98601    
   4  Prefactor     .90669        .25596        .50433E-04   -.95908    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.09979e-10
Minuit parameter uncertainties:
  1  7.65544
  2  0.659707
  3  0.244321
  4  0.256299
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805325': 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) = 4236.74037703
delta logL = 0.467539444568

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  8.246e+00  7.655e+00  1.000e-04  1.000e+04 ( 1.000e-13)
435        alpha:  2.306e+00  6.597e-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.067e-01  2.563e-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.400e-01  2.443e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.87
Ra Dec: 350.708 -49.273
Photon Index (Free Index): 2.31 +/- 0.66
Photon Flux (Free Index): 4.19e-08 +/- 3.90e-08
Energy Flux (Free Index): 2.60e-05 +/- 1.77e-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/805325/cmap_HighResolution_568771201_569030401_4FGL_J2322.8-4916_daily_bin1271.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.75e-08', energy_flux2='2.60e-05', photon_flux_error='1.41e-08', dlogl='4.68e-01', energy_flux='3.85e-05', photon_flux2='4.19e-08', job_status='DONE', time_completed='2021-09-29 14:30:57.149702', photon_index_error2='0.66', photon_index2='2.31', ts='6.93', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='1.77e-05', EG='0.86', time_epoch_completed='1632951057.15', return_code='0', job_id='805325', GAL2='0.91', EG2='0.84', return_code2='0', energy_flux_error='3.09e-05', photon_flux_error2='3.90e-08', ts2='7.87', photon_index='1.61' WHERE bin_id='1271' AND source_name='4FGL J2322.8-4916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:30:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 805325: <4FGL_J2322.8-4916_daily_bin1271> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.8-4916_daily_bin1271 350.708 -49.2725 568771201 569030401 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 :                                   664.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             245.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            915 sec.

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

