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


Performing analysis on: 4FGL_J2322.8-4916_daily_bin1097
RA = 350.708, Dec = -49.2725
tmin = 523670401, tmax = 523929601
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='805071', job_status='RUN', time_executed='2021-09-29 14:16:43.828959', time_epoch_executed='1632950203.83' WHERE source_name='4FGL J2322.8-4916' and cadence='daily' and bin_id='1097'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805071

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805071/ft1_4FGL_J2322.8-4916_daily_bin1097.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805071/ft2_4FGL_J2322.8-4916_daily_bin1097.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805071/ft1_4FGL_J2322.8-4916_daily_bin1097.fits outfile=/scratch/kocevski/805071/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1097.fits ra=350.708 dec=-49.2725 rad=12.0 tmin=523670401.0 tmax=523929601.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.54
user 3.31
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/805071/ft1_filtered_4FGL_J2322.8-4916_daily_bin1097.fits" evtable="EVENTS" scfile=/scratch/kocevski/805071/ft2_4FGL_J2322.8-4916_daily_bin1097.fits sctable="SC_DATA" outfile=/scratch/kocevski/805071/ltcube_523670401_523929601_4FGL_J2322.8-4916_daily_bin1097.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/805071/ft2_4FGL_J2322.8-4916_daily_bin1097.fits
.....................!
real 12.00
user 11.66
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805071/ft1_filtered_4FGL_J2322.8-4916_daily_bin1097.fits evtable="EVENTS" scfile=/scratch/kocevski/805071/ft2_4FGL_J2322.8-4916_daily_bin1097.fits sctable="SC_DATA" expcube=/scratch/kocevski/805071/ltcube_523670401_523929601_4FGL_J2322.8-4916_daily_bin1097.fits outfile=/scratch/kocevski/805071/expmap_523670401_523929601_4FGL_J2322.8-4916_daily_bin1097.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/805071/ltcube_523670401_523929601_4FGL_J2322.8-4916_daily_bin1097.fits
.....................!
real 190.33
user 185.71
sys 4.30

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/805071/ft1_filtered_4FGL_J2322.8-4916_daily_bin1097.fits scfile=/scratch/kocevski/805071/ft2_4FGL_J2322.8-4916_daily_bin1097.fits outfile=/scratch/kocevski/805071/cmap_523670401_523929601_4FGL_J2322.8-4916_daily_bin1097.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/805071/ft1_filtered_4FGL_J2322.8-4916_daily_bin1097.fits scfile=/scratch/kocevski/805071/ft2_4FGL_J2322.8-4916_daily_bin1097.fits outfile=/scratch/kocevski/805071/cmap_HighResolution_523670401_523929601_4FGL_J2322.8-4916_daily_bin1097.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/805071/ft1_filtered_4FGL_J2322.8-4916_daily_bin1097.fits evtable="EVENTS" scfile=/scratch/kocevski/805071/ft2_4FGL_J2322.8-4916_daily_bin1097.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/805071/Model_4FGL_J2322.8-4916_daily_bin1097.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/805071/ft1_filtered_4FGL_J2322.8-4916_daily_bin1097.fits.....................!
real 40.15
user 38.95
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    178.31       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    89.501       1.0000         .10000E-03   10000.    
     8 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.845       1.0000         .10000E-03   10000.    
    10 'Prefactor '    28.191       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.3773       1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.623       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .18339E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    12.473       1.0000         .10000E-03   10000.    
    19 'norm      '    3.8494       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.1659       1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.143       1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    6.3339       1.0000         .10000E-03   10000.    
    27 'Prefactor '    10.205       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    5.1605       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .48751E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.2442       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .78687       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=   5097.356     FROM MIGRAD    STATUS=CONVERGED    930 CALLS     4873 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     178.31        89.048        .82580E-07    .51997E-04
   2  Prefactor     .10000E-03    15.789       -.29643E-06** at limit **
   3  Prefactor     .10000E-03    51.649       -.14802E-05** at limit **
   4  Prefactor     .10000E-03    7.0026       -.34685E-06** at limit **
   5  Prefactor     .10000E-03    3.6295       -.28005E-06** at limit **
   6  Prefactor     .10000E-03    5.1773       -.42383E-06** at limit **
   7  Prefactor     89.643        126.00        .17883E-05    .11943E-03
   8  norm          .10000E-03    8.2958        .19271E-05** at limit **
   9  Prefactor     12.845        5.5166       -.66791E-07    .10171E-03
  10  Prefactor     28.191        32.093       -.72720E-07   -.28044E-05
  11  Prefactor     4.3768        5.6272        .49069E-06    .60516E-03
  12  Prefactor     20.615        33.372       -.52816E-06    .68832E-04
  13  Prefactor     .10000E-03    6.2381       -.34349E-06** at limit **
  14  Prefactor     .10001E-03    236.91       -.22017E-05** at limit **
  15  Prefactor     .10001E-03    19.598       -.21623E-05** at limit **
  16  Prefactor     .10000E-03    51.588       -.13206E-05** at limit **
  17  Prefactor     .10010E-03    42.879        .13401E-04** at limit **
  18  norm          12.473        18.038        .81899E-07    .35928E-05
  19  norm          3.8493        3.8501       -.28407E-06   -.58239E-03
  20  norm          .10000E-03    1.8692       -.50060E-07** at limit **
  21  Prefactor     .10000E-03    8.2841       -.98167E-06** at limit **
  22  Prefactor     .10000E-03    16.138        .60989E-07** at limit **
  23  norm          3.1658        3.3993        .12293E-06    .38005E-03
  24  Prefactor     16.142        15.069       -.11485E-05   -.58923E-03
  25  norm          .10000E-03    .49573       -.16145E-06** at limit **
  26  norm          6.3340        4.4738        .83655E-07    .39321E-03
  27  Prefactor     10.204        16.755       -.36173E-07    .14481E-03
  28  Prefactor     .10000E-03    2.6110       -.43802E-06** at limit **
  29  Prefactor     .10000E-03    8.8468       -.95099E-07** at limit **
  30  norm          .10000E-03    13.071       -.20929E-06** at limit **
  31  Prefactor     5.1600        5.3228        .39711E-06    .78422E-03
  32  Prefactor     .10001E-03    3.2399        .19460E-05** at limit **
  33  Normalizat    1.2444        .21020        .30517E-05    .50404E-03
  34  Prefactor     .78672        .20940       -.24198E-05    .27832E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 178.309
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 89.6433
  norm       = 0.000100005
  Prefactor  = 12.8449
  Prefactor  = 28.1911
  Prefactor  = 4.37679
  Prefactor  = 20.6149
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.000100006
  Prefactor  = 0.000100003
  Prefactor  = 0.000100103
  norm       = 12.4733
  norm       = 3.84927
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 3.16583
  Prefactor  = 16.1416
  norm       = 0.0001
  norm       = 6.33395
  Prefactor  = 10.2037
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.15997
  Prefactor  = 0.000100007
  Normalizat = 1.2444
  Prefactor  = 0.78672
 **********
 **   18 **HESSE 
 **********

 FCN=   5097.356     FROM HESSE     STATUS=OK           722 CALLS     5595 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     178.31        89.097        .30226E-04   -1.3029    
   2  Prefactor     .10000E-03    15.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    52.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.0683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.6749        .13296E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.2439        .15889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     89.643        126.80        .21236E-03   -1.3812    
   8  norm          .10000E-03    8.8121        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.845        5.5160        .10572E-03   -1.4991    
  10  Prefactor     28.191        32.091        .75454E-04   -1.4646    
  11  Prefactor     4.3768        5.6366        .18156E-03   -1.5290    
  12  Prefactor     20.615        33.467        .88199E-04   -1.4800    
  13  Prefactor     .10000E-03    6.2645        .17416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    238.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    20.765        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    51.854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10010E-03    53.502        .45649E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          12.473        18.042        .11342E-03   -1.5001    
  19  norm          3.8493        3.8705        .13724E-03   -1.5316    
  20  norm          .10000E-03    1.8701        .95325E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.4962        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    16.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.1658        3.3965        .13135E-03   -1.5352    
  24  Prefactor     16.142        15.166        .99684E-04   -1.4904    
  25  norm          .10000E-03    .51304        .98080E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          6.3340        4.4722        .12195E-03   -1.5205    
  27  Prefactor     10.204        16.775        .12543E-03   -1.5069    
  28  Prefactor     .10000E-03    2.7052        .22585E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    8.8591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    13.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     5.1600        5.3634        .15931E-03   -1.5254    
  32  Prefactor     .10001E-03    12.881        .21213E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    1.2444        .25301        .22330E-03   -.85242    
  34  Prefactor     .78672        .25363        .28815E-03   -1.0022    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.77987e-09
Minuit parameter uncertainties:
  1  89.1649
  2  0.00010458
  3  0.000832349
  4  6.88575e-05
  5  3.94655e-05
  6  7.27375e-05
  7  127.183
  8  0.000406228
  9  5.51624
  10  32.1103
  11  5.63728
  12  33.4977
  13  6.58168e-05
  14  0.00251903
  15  0.000719938
  16  0.000768308
  17  0.00469992
  18  18.0501
  19  3.8708
  20  5.13116e-06
  21  0.000230023
  22  1.65454e-05
  23  3.39672
  24  15.1697
  25  1.14737e-05
  26  4.47241
  27  16.7824
  28  5.90011e-05
  29  2.12168e-05
  30  6.45572e-05
  31  5.36388
  32  0.000620164
  33  0.253261
  34  0.254005
Done.

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

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  3.849e+00  3.871e+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:  7.867e-01  2.540e-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.244e+00  2.533e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.86
Ra Dec: 350.708 -49.273
Photon Index (Fixed Index): 1.61 +/- 0.00
Photon Flux (Fixed Index): 6.05e-09 +/- 6.08e-09
Energy Flux (Fixed Index): 1.33e-05 +/- 1.33e-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) = 5097.176037
delta logL = 0.180158878179

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5097.17504719
delta logL = 0.181148694061

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0109       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.0981       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2458       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78636       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=   5097.175     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      203 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0109        4.7298        .50342E-02   -.34357E-02
   2  alpha         1.0980        .86043        .50000       -.92483E-05
   3  Normalizat    1.2458        .19328        .50483E-01    .28810E-05
   4  Prefactor     .78632        .20403        .65152E-01    .16554E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.01086
  alpha      = 1.09804
  Normalizat = 1.24584
  Prefactor  = 0.786325
 **********
 **   18 **HESSE 
 **********

 FCN=   5097.175     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0109        4.1081        .14022E-03   -1.5307    
   2  alpha         1.0980        .78531        .25411E-01   -.59533    
   3  Normalizat    1.2458        .23628        .22319E-03   -.85198    
   4  Prefactor     .78632        .24928        .28822E-03   -1.0023    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.47722e-09
Minuit parameter uncertainties:
  1  4.10839
  2  0.805487
  3  0.236488
  4  0.249641
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805071': 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) = 5097.17504716
delta logL = 0.181148722398

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  4.011e+00  4.108e+00  1.000e-04  1.000e+04 ( 1.000e-13)
435        alpha:  1.098e+00  8.055e-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:  7.863e-01  2.496e-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.246e+00  2.365e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.22
Ra Dec: 350.708 -49.273
Photon Index (Free Index): 1.10 +/- 0.81
Photon Flux (Free Index): 4.36e-09 +/- 4.63e-09
Energy Flux (Free Index): 2.81e-05 +/- 4.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/805071/cmap_HighResolution_523670401_523929601_4FGL_J2322.8-4916_daily_bin1097.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.05e-09', energy_flux2='2.81e-05', photon_flux_error='6.08e-09', dlogl='1.81e-01', energy_flux='1.33e-05', photon_flux2='4.36e-09', job_status='DONE', time_completed='2021-09-29 14:29:58.430646', photon_index_error2='0.81', photon_index2='1.10', ts='7.86', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', energy_flux_error2='4.56e-05', EG='1.24', time_epoch_completed='1632950998.43', return_code='0', job_id='805071', GAL2='0.79', EG2='1.25', return_code2='0', energy_flux_error='1.33e-05', photon_flux_error2='4.63e-09', ts2='8.22', photon_index='1.61' WHERE bin_id='1097' AND source_name='4FGL J2322.8-4916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:29:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 805071: <4FGL_J2322.8-4916_daily_bin1097> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.8-4916_daily_bin1097 350.708 -49.2725 523670401 523929601 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 :                                   737.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             298.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   874 sec.
    Turnaround time :                            877 sec.

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

