/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 17 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_bin1019
RA = 350.708, Dec = -49.2725
tmin = 503452801, tmax = 503712001
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='804953', job_status='RUN', time_executed='2021-09-29 14:15:40.235594', time_epoch_executed='1632950140.24' WHERE source_name='4FGL J2322.8-4916' and cadence='daily' and bin_id='1019'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/804953

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/804953/ft1_4FGL_J2322.8-4916_daily_bin1019.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/804953/ft2_4FGL_J2322.8-4916_daily_bin1019.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/804953/ft1_4FGL_J2322.8-4916_daily_bin1019.fits outfile=/scratch/kocevski/804953/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1019.fits ra=350.708 dec=-49.2725 rad=12.0 tmin=503452801.0 tmax=503712001.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 7.85
user 7.55
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/804953/ft1_filtered_4FGL_J2322.8-4916_daily_bin1019.fits" evtable="EVENTS" scfile=/scratch/kocevski/804953/ft2_4FGL_J2322.8-4916_daily_bin1019.fits sctable="SC_DATA" outfile=/scratch/kocevski/804953/ltcube_503452801_503712001_4FGL_J2322.8-4916_daily_bin1019.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/804953/ft2_4FGL_J2322.8-4916_daily_bin1019.fits
.....................!
real 12.35
user 11.89
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/804953/ft1_filtered_4FGL_J2322.8-4916_daily_bin1019.fits evtable="EVENTS" scfile=/scratch/kocevski/804953/ft2_4FGL_J2322.8-4916_daily_bin1019.fits sctable="SC_DATA" expcube=/scratch/kocevski/804953/ltcube_503452801_503712001_4FGL_J2322.8-4916_daily_bin1019.fits outfile=/scratch/kocevski/804953/expmap_503452801_503712001_4FGL_J2322.8-4916_daily_bin1019.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/804953/ltcube_503452801_503712001_4FGL_J2322.8-4916_daily_bin1019.fits
.....................!
real 190.08
user 185.18
sys 4.44

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/804953/ft1_filtered_4FGL_J2322.8-4916_daily_bin1019.fits scfile=/scratch/kocevski/804953/ft2_4FGL_J2322.8-4916_daily_bin1019.fits outfile=/scratch/kocevski/804953/cmap_503452801_503712001_4FGL_J2322.8-4916_daily_bin1019.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/804953/ft1_filtered_4FGL_J2322.8-4916_daily_bin1019.fits scfile=/scratch/kocevski/804953/ft2_4FGL_J2322.8-4916_daily_bin1019.fits outfile=/scratch/kocevski/804953/cmap_HighResolution_503452801_503712001_4FGL_J2322.8-4916_daily_bin1019.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/804953/ft1_filtered_4FGL_J2322.8-4916_daily_bin1019.fits evtable="EVENTS" scfile=/scratch/kocevski/804953/ft2_4FGL_J2322.8-4916_daily_bin1019.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/804953/Model_4FGL_J2322.8-4916_daily_bin1019.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/804953/ft1_filtered_4FGL_J2322.8-4916_daily_bin1019.fits.....................!
real 38.28
user 36.96
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    39.859       1.0000         .10000E-03   10000.    
     3 'Prefactor '    29.249       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.9349       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    38.333       1.0000         .10000E-03   10000.    
     8 'norm      '    6.2192       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.9334       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.4664       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.257       1.0000         .10000E-03   10000.    
    12 'Prefactor '    37.085       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.9540       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.7148       1.0000         .10000E-03   10000.    
    20 'norm      '    1.6635       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.9414       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.2698       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .81799E-02   1.0000         .10000E-03   10000.    
    25 'norm      '    2.1272       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.5487       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10594E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    8.7266       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.1106       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .85772       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=   4620.825     FROM MIGRAD    STATUS=CONVERGED    921 CALLS     4814 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    52.387        .22674E-05** at limit **
   2  Prefactor     39.863        38.309        .29060E-06   -.22456E-04
   3  Prefactor     29.247        51.560        .36826E-06   -.11531E-04
   4  Prefactor     7.9361        9.2499       -.87737E-08    .45659E-05
   5  Prefactor     .10000E-03    3.5481       -.22265E-07** at limit **
   6  Prefactor     .10000E-03    3.9892       -.14100E-07** at limit **
   7  Prefactor     38.435        133.67       -.59692E-05   -.10713E-03
   8  norm          6.2190        6.2155        .16046E-05   -.62525E-05
   9  Prefactor     5.9336        4.7463       -.10976E-06    .41683E-04
  10  Prefactor     4.4662        46.650       -.34271E-06    .20273E-05
  11  Prefactor     16.257        9.3415       -.67855E-07   -.47264E-04
  12  Prefactor     37.088        37.189       -.25118E-06   -.24046E-04
  13  Prefactor     .10000E-03    8.5527       -.10620E-06** at limit **
  14  Prefactor     .10000E-03    63.231       -.56696E-06** at limit **
  15  Prefactor     .10000E-03    1.5659        .18751E-07** at limit **
  16  Prefactor     .10000E-03    35.833       -.34997E-06** at limit **
  17  Prefactor     4.9540        31.094       -.89164E-06   -.11040E-04
  18  norm          .10000E-03    5.2633        .36056E-07** at limit **
  19  norm          4.7158        7.2249       -.12994E-06    .12857E-03
  20  norm          1.6639        5.3013       -.56987E-06    .76082E-04
  21  Prefactor     4.9312        8.5907        .17507E-05    .44267E-04
  22  Prefactor     .10000E-03    67.435       -.24020E-07** at limit **
  23  norm          1.2696        3.8317       -.77305E-06   -.50202E-05
  24  Prefactor     .10001E-03    142.04        .34234E-04** at limit **
  25  norm          2.1263        2.2006        .22162E-06   -.82617E-04
  26  norm          .10000E-03    1.5090        .16594E-06** at limit **
  27  Prefactor     .10000E-03    6.4019       -.22876E-07** at limit **
  28  Prefactor     3.5452        5.7444        .12598E-05   -.20216E-04
  29  Prefactor     .10002E-03    192.73        .57281E-06** at limit **
  30  norm          .10000E-03    15.401       -.10941E-06** at limit **
  31  Prefactor     .10000E-03    3.6572       -.24013E-06** at limit **
  32  Prefactor     8.7248        7.5800        .13202E-06    .63701E-04
  33  Normalizat    1.1106        .22071        .10269E-05    .11539E-03
  34  Prefactor     .85773        .21773       -.40440E-06   -.10480E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100011
  Prefactor  = 39.8633
  Prefactor  = 29.2472
  Prefactor  = 7.93611
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.4348
  norm       = 6.21897
  Prefactor  = 5.93357
  Prefactor  = 4.46618
  Prefactor  = 16.2567
  Prefactor  = 37.0878
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.95402
  norm       = 0.0001
  norm       = 4.7158
  norm       = 1.66393
  Prefactor  = 4.93125
  Prefactor  = 0.0001
  norm       = 1.26955
  Prefactor  = 0.000100007
  norm       = 2.12631
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.54518
  Prefactor  = 0.000100021
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.72484
  Normalizat = 1.11057
  Prefactor  = 0.857734
 **********
 **   18 **HESSE 
 **********

 FCN=   4620.825     FROM HESSE     STATUS=OK           740 CALLS     5554 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    52.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     39.863        38.295        .63489E-04   -1.4444    
   3  Prefactor     29.247        51.496        .74081E-04   -1.4626    
   4  Prefactor     7.9361        9.2502        .14234E-03   -1.5144    
   5  Prefactor     .10000E-03    3.5497        .12505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.9929        .13260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     38.435        134.55        .32368E-03   -1.4467    
   8  norm          6.2190        6.2324        .80486E-03   -1.5209    
   9  Prefactor     5.9336        4.7440        .12389E-03   -1.5221    
  10  Prefactor     4.4662        46.591        .19053E-03   -1.5285    
  11  Prefactor     16.257        9.3389        .99334E-04   -1.4901    
  12  Prefactor     37.088        37.251        .65812E-04   -1.4489    
  13  Prefactor     .10000E-03    8.6900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    63.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.5669        .83071E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    35.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.9540        30.290        .18069E-03   -1.5263    
  18  norm          .10000E-03    5.2840        .15231E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.7158        7.2155        .18532E-03   -1.5274    
  20  norm          1.6639        5.1182        .23087E-03   -1.5450    
  21  Prefactor     4.9312        8.6755        .18093E-03   -1.5264    
  22  Prefactor     .10000E-03    68.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.2696        3.6764        .18928E-03   -1.5483    
  24  Prefactor     .10001E-03    141.92        .56103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.1263        2.1399        .82608E-04   -1.5416    
  26  norm          .10000E-03    1.5216        .81516E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    6.4043        .16799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     3.5452        5.6765        .18629E-03   -1.5331    
  29  Prefactor     .10002E-03    193.68        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    15.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    3.6832        .12696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     8.7248        7.5967        .13569E-03   -1.5117    
  33  Normalizat    1.1106        .27126        .24474E-03   -.89413    
  34  Prefactor     .85773        .26511        .28246E-03   -.97634    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1892e-09
Minuit parameter uncertainties:
  1  0.00151064
  2  38.319
  3  51.5748
  4  9.25187
  5  6.86512e-06
  6  7.74145e-06
  7  135.629
  8  6.233
  9  4.74431
  10  28.8789
  11  9.33975
  12  37.2743
  13  3.06483e-06
  14  0.000431465
  15  5.70128e-07
  16  0.000212195
  17  24.5178
  18  4.86125e-07
  19  7.21686
  20  5.11956
  21  8.67773
  22  0.000153579
  23  3.67701
  24  0.00204961
  25  2.14
  26  1.53494e-05
  27  9.56146e-06
  28  5.67736
  29  0.00402913
  30  4.87258e-05
  31  5.47903e-05
  32  7.59758
  33  0.271599
  34  0.265512
Done.

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

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  4.716e+00  7.217e+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:  8.577e-01  2.655e-01  0.000e+00  1.000e+01 ( 1.000e+00)
573        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
574        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
571   Normalization:  1.111e+00  2.716e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/804953/likelihoodResults_503452801_503712001_4FGL_J2322.8-4916_daily_bin1019.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4620.16680317
delta logL = 0.657728137039

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4620.16417295
delta logL = 0.660358360115

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1882       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8267       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0802       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86191       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=   4620.164     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      278 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1888        5.4593        .10143E-03    .24502E-03
   2  alpha         2.8267        .90882        .10064E-01    .32663E-04
   3  Normalizat    1.0803        .25548        .24721E-03    .22195E-03
   4  Prefactor     .86194        .25955        .28086E-03    .28145E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.18877
  alpha      = 2.82667
  Normalizat = 1.08027
  Prefactor  = 0.861942
 **********
 **   18 **HESSE 
 **********

 FCN=   4620.164     FROM HESSE     STATUS=OK            25 CALLS      303 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1888        4.6531        .40572E-05   -1.5351    
   2  alpha         2.8267        .77863        .40257E-03    .13104    
   3  Normalizat    1.0803        .25457        .49441E-04   -.90388    
   4  Prefactor     .86194        .25930        .56172E-04   -.97484    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73087e-10
Minuit parameter uncertainties:
  1  4.65362
  2  0.792038
  3  0.254861
  4  0.259671
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/804953': 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) = 4620.16417263
delta logL = 0.660358674868

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  3.189e+00  4.654e+00  1.000e-04  1.000e+04 ( 1.000e-13)
435        alpha:  2.827e+00  7.920e-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:  8.619e-01  2.597e-01  0.000e+00  1.000e+01 ( 1.000e+00)
573        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
574        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
571   Normalization:  1.080e+00  2.549e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.12
Ra Dec: 350.708 -49.273
Photon Index (Free Index): 2.83 +/- 0.79
Photon Flux (Free Index): 5.31e-08 +/- 6.15e-08
Energy Flux (Free Index): 1.79e-05 +/- 1.56e-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/804953/cmap_HighResolution_503452801_503712001_4FGL_J2322.8-4916_daily_bin1019.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.49e-05', comment='SUCCESS', energy_flux2='1.79e-05', dlogl='6.60e-01', photon_flux2='5.31e-08', job_status='DONE', time_completed='2021-09-29 14:29:15.284930', photon_index_error2='0.79', photon_index2='2.83', ts='0.80', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='4.32e-08', energy_flux_error2='1.56e-05', EG='1.11', time_epoch_completed='1632950955.29', return_code='0', job_id='804953', GAL2='0.86', EG2='1.08', return_code2='0', photon_flux_error2='6.15e-08', ts2='2.12', photon_index='1.61' WHERE bin_id='1019' AND source_name='4FGL J2322.8-4916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:29:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 804953: <4FGL_J2322.8-4916_daily_bin1019> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.8-4916_daily_bin1019 350.708 -49.2725 503452801 503712001 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 :                                   799.23 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             290.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   841 sec.
    Turnaround time :                            846 sec.

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

