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


Performing analysis on: 4FGL_J2322.8-4916_daily_bin1431
RA = 350.708, Dec = -49.2725
tmin = 610243201, tmax = 610502401
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='806566', job_status='RUN', time_executed='2021-09-29 14:21:31.543982', time_epoch_executed='1632950491.54' WHERE source_name='4FGL J2322.8-4916' and cadence='daily' and bin_id='1431'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/806566

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/806566/ft1_4FGL_J2322.8-4916_daily_bin1431.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/806566/ft2_4FGL_J2322.8-4916_daily_bin1431.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/806566/ft1_4FGL_J2322.8-4916_daily_bin1431.fits outfile=/scratch/kocevski/806566/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1431.fits ra=350.708 dec=-49.2725 rad=12.0 tmin=610243201.0 tmax=610502401.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.93
user 3.70
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/806566/ft2_4FGL_J2322.8-4916_daily_bin1431.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/806566/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1431.fits evtable="EVENTS" outfile="/scratch/kocevski/806566/ft1_filtered_4FGL_J2322.8-4916_daily_bin1431.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/806566/ft1_filtered_4FGL_J2322.8-4916_daily_bin1431.fits" evtable="EVENTS" scfile=/scratch/kocevski/806566/ft2_4FGL_J2322.8-4916_daily_bin1431.fits sctable="SC_DATA" outfile=/scratch/kocevski/806566/ltcube_610243201_610502401_4FGL_J2322.8-4916_daily_bin1431.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/806566/ft2_4FGL_J2322.8-4916_daily_bin1431.fits
.....................!
real 13.58
user 13.18
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/806566/ft1_filtered_4FGL_J2322.8-4916_daily_bin1431.fits evtable="EVENTS" scfile=/scratch/kocevski/806566/ft2_4FGL_J2322.8-4916_daily_bin1431.fits sctable="SC_DATA" expcube=/scratch/kocevski/806566/ltcube_610243201_610502401_4FGL_J2322.8-4916_daily_bin1431.fits outfile=/scratch/kocevski/806566/expmap_610243201_610502401_4FGL_J2322.8-4916_daily_bin1431.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/806566/ltcube_610243201_610502401_4FGL_J2322.8-4916_daily_bin1431.fits
.....................!
real 190.14
user 184.57
sys 5.19

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/806566/ft1_filtered_4FGL_J2322.8-4916_daily_bin1431.fits scfile=/scratch/kocevski/806566/ft2_4FGL_J2322.8-4916_daily_bin1431.fits outfile=/scratch/kocevski/806566/cmap_610243201_610502401_4FGL_J2322.8-4916_daily_bin1431.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.64
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/806566/ft1_filtered_4FGL_J2322.8-4916_daily_bin1431.fits scfile=/scratch/kocevski/806566/ft2_4FGL_J2322.8-4916_daily_bin1431.fits outfile=/scratch/kocevski/806566/cmap_HighResolution_610243201_610502401_4FGL_J2322.8-4916_daily_bin1431.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=350.708 yref=-49.2725 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/806566/ft1_filtered_4FGL_J2322.8-4916_daily_bin1431.fits evtable="EVENTS" scfile=/scratch/kocevski/806566/ft2_4FGL_J2322.8-4916_daily_bin1431.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/806566/Model_4FGL_J2322.8-4916_daily_bin1431.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/806566/ft1_filtered_4FGL_J2322.8-4916_daily_bin1431.fits.....................!
real 41.47
user 39.98
sys 1.41

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10347E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.2068       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.4167       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.668       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.1010       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10443E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.2012       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.1072       1.0000         .10000E-03   10000.    
    12 'Prefactor '    25.430       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13782E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.1989       1.0000         .10000E-03   10000.    
    19 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.0001       1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.467       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.5700       1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.9278       1.0000         .10000E-03   10000.    
    25 'norm      '    1.1525       1.0000         .10000E-03   10000.    
    26 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .85768       1.0000         .10000E-03   10000.    
    29 'Prefactor '    13.208       1.0000         .10000E-03   10000.    
    30 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.1518       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.0092       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=   5441.184     FROM MIGRAD    STATUS=CONVERGED    921 CALLS     4786 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    45.635        .14106E-05** at limit **
   2  Prefactor     3.2135        30.446       -.95489E-06    .12297E-05
   3  Prefactor     9.4186        32.015       -.16074E-05    .16374E-04
   4  Prefactor     16.668        11.703        .23681E-07    .63626E-05
   5  Prefactor     .10000E-03    2.7407        .35884E-07** at limit **
   6  Prefactor     2.1030        9.4273        .80029E-05   -.15171E-03
   7  Prefactor     .10001E-03    108.48        .29736E-05** at limit **
   8  norm          3.2017        4.7352        .10971E-06    .33227E-05
   9  Prefactor     .10000E-03    1.8215        .64104E-07** at limit **
  10  Prefactor     .10000E-03    67.417       -.31300E-05** at limit **
  11  Prefactor     3.1092        7.2255       -.10000E-05    .58023E-04
  12  Prefactor     25.365        33.676        .79244E-05    .17944E-03
  13  Prefactor     .10108E-03    8.0252        .59090E-06** at limit **
  14  Prefactor     .10000E-03    41.603        .17231E-05** at limit **
  15  Prefactor     .10000E-03    3.7365        .36338E-07** at limit **
  16  Prefactor     .10000E-03    17.995       -.74165E-07** at limit **
  17  Prefactor     .10000E-03    6.7404       -.83147E-07** at limit **
  18  norm          3.2026        12.806        .31396E-06   -.18276E-05
  19  norm          .10000E-03    3.7413        .81203E-08** at limit **
  20  norm          4.0001        4.2114        .23337E-07   -.26093E-04
  21  Prefactor     16.466        11.406        .13739E-07    .53785E-04
  22  Prefactor     3.5740        24.553        .20850E-06   -.55596E-05
  23  norm          .10000E-03    1.1398        .91975E-09** at limit **
  24  Prefactor     3.9267        21.922       -.22291E-06    .81499E-05
  25  norm          1.1524        1.1187        .30465E-08    .14603E-03
  26  norm          .10000E-03    1.1880        .10151E-07** at limit **
  27  Prefactor     .10000E-03    10.223        .78355E-07** at limit **
  28  Prefactor     .85966        5.2751       -.10540E-05   -.26255E-03
  29  Prefactor     13.185        30.473        .25504E-05    .71582E-04
  30  norm          .10000E-03    30.951       -.81334E-06** at limit **
  31  Prefactor     .10000E-03    1.7183        .61194E-07** at limit **
  32  Prefactor     .10000E-03    3.7539       -.49603E-07** at limit **
  33  Normalizat    1.1522        .20356        .16619E-05    .56917E-03
  34  Prefactor     1.0087        .20985       -.19977E-05    .35287E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 3.2135
  Prefactor  = 9.41856
  Prefactor  = 16.6677
  Prefactor  = 0.0001
  Prefactor  = 2.10296
  Prefactor  = 0.000100006
  norm       = 3.20169
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 3.10921
  Prefactor  = 25.3654
  Prefactor  = 0.000101083
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.20264
  norm       = 0.0001
  norm       = 4.00011
  Prefactor  = 16.4656
  Prefactor  = 3.57401
  norm       = 0.0001
  Prefactor  = 3.92672
  norm       = 1.15236
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.859661
  Prefactor  = 13.1848
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.1522
  Prefactor  = 1.00873
 **********
 **   18 **HESSE 
 **********

 FCN=   5441.184     FROM HESSE     STATUS=OK           730 CALLS     5516 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    45.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.2135        30.224        .22625E-03   -1.5349    
   3  Prefactor     9.4186        31.992        .13060E-03   -1.5094    
   4  Prefactor     16.668        11.705        .98103E-04   -1.4891    
   5  Prefactor     .10000E-03    2.7531        .11925E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.1030        9.9296        .14236E-02   -1.5418    
   7  Prefactor     .10001E-03    107.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.2017        4.7262        .19028E-03   -1.5350    
   9  Prefactor     .10000E-03    1.8373        .97191E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    66.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.1092        7.1996        .23004E-03   -1.5355    
  12  Prefactor     25.365        33.689        .79437E-04   -1.4700    
  13  Prefactor     .10108E-03    80.399        .36901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    41.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.7555        .13924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    18.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.7512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.2026        12.798        .22654E-03   -1.5350    
  19  norm          .10000E-03    3.7543        .13930E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.0001        4.2163        .14276E-03   -1.5308    
  21  Prefactor     16.466        11.217        .98698E-04   -1.4896    
  22  Prefactor     3.5740        24.520        .21390E-03   -1.5330    
  23  norm          .10000E-03    1.1427        .76869E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.9267        21.141        .20356E-03   -1.5312    
  25  norm          1.1524        1.0907        .71845E-04   -1.5493    
  26  norm          .10000E-03    1.1909        .78504E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    10.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .85966        4.5935        .24898E-03   -1.5523    
  29  Prefactor     13.185        28.361        .11021E-03   -1.4982    
  30  norm          .10000E-03    31.047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    1.7283        .94396E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    3.8248        .13930E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    1.1522        .24931        .23725E-03   -.88093    
  34  Prefactor     1.0087        .25280        .26674E-03   -.92439    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39388e-08
Minuit parameter uncertainties:
  1  0.000364539
  2  19.7232
  3  32.0501
  4  11.7067
  5  3.05762e-07
  6  9.14153
  7  0.00163759
  8  4.72672
  9  1.55726e-06
  10  0.00114261
  11  7.20155
  12  33.714
  13  0.0186877
  14  0.000611109
  15  2.29213e-06
  16  5.09015e-05
  17  1.56197e-05
  18  12.8087
  19  2.31673e-06
  20  4.21661
  21  11.2181
  22  18.7334
  23  1.09393e-07
  24  18.2323
  25  1.09077
  26  1.22425e-07
  27  6.92082e-06
  28  3.97459
  29  28.3896
  30  0.000371222
  31  2.61375e-06
  32  1.29664e-05
  33  0.249564
  34  0.253096
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  1.009e+00  2.531e-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.152e+00  2.496e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/806566/likelihoodResults_610243201_610502401_4FGL_J2322.8-4916_daily_bin1431.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) = 5441.18519319
delta logL = -0.00125072422634

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5441.18394257
delta logL = -1.06332663563e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6143       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1521       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0088       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=   5441.184     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      193 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.0462        .90712E-02** at limit **
   2  alpha         1.6169        3.2907        .45015       -.32281E-05
   3  Normalizat    1.1522        .19168        .53655E-01    .36187E-04
   4  Prefactor     1.0087        .20411        .43501E-01    .41991E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.61693
  Normalizat = 1.1522
  Prefactor  = 1.00873
 **********
 **   18 **HESSE 
 **********

 FCN=   5441.184     FROM HESSE     STATUS=OK            33 CALLS      226 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.7668        .13934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6169        3.2816        .50000       -.36102    
   3  Normalizat    1.1522        .23105        .23724E-03   -.88093    
   4  Prefactor     1.0087        .24608        .26674E-03   -.92439    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18685e-11
Minuit parameter uncertainties:
  1  2.65354e-06
  2  2.3439
  3  0.231257
  4  0.24635
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/806566': 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) = 5441.18394245
delta logL = 7.2868715506e-09

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  1.009e+00  2.463e-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.152e+00  2.313e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 350.708 -49.273

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/806566/cmap_HighResolution_610243201_610502401_4FGL_J2322.8-4916_daily_bin1431.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.75e-05', job_status='DONE', photon_flux_upper_limit='2.62e-08', time_completed='2021-09-29 14:36:10.922316', job_id='806566', GAL2='1.01', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1632951370.92', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='7.29e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='1431' AND source_name='4FGL J2322.8-4916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:36:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 806566: <4FGL_J2322.8-4916_daily_bin1431> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.8-4916_daily_bin1431 350.708 -49.2725 610243201 610502401 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 :                                   873.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             336.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   951 sec.
    Turnaround time :                            953 sec.

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

