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


Performing analysis on: 4FGL_J2322.8-4916_daily_bin1402
RA = 350.708, Dec = -49.2725
tmin = 602726401, tmax = 602985601
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='805520', job_status='RUN', time_executed='2021-09-29 14:17:17.700204', time_epoch_executed='1632950237.7' WHERE source_name='4FGL J2322.8-4916' and cadence='daily' and bin_id='1402'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805520

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805520/ft1_4FGL_J2322.8-4916_daily_bin1402.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805520/ft2_4FGL_J2322.8-4916_daily_bin1402.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805520/ft1_4FGL_J2322.8-4916_daily_bin1402.fits outfile=/scratch/kocevski/805520/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1402.fits ra=350.708 dec=-49.2725 rad=12.0 tmin=602726401.0 tmax=602985601.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.09
user 2.91
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/805520/ft1_filtered_4FGL_J2322.8-4916_daily_bin1402.fits" evtable="EVENTS" scfile=/scratch/kocevski/805520/ft2_4FGL_J2322.8-4916_daily_bin1402.fits sctable="SC_DATA" outfile=/scratch/kocevski/805520/ltcube_602726401_602985601_4FGL_J2322.8-4916_daily_bin1402.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/805520/ft2_4FGL_J2322.8-4916_daily_bin1402.fits
.....................!
real 12.08
user 11.66
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805520/ft1_filtered_4FGL_J2322.8-4916_daily_bin1402.fits evtable="EVENTS" scfile=/scratch/kocevski/805520/ft2_4FGL_J2322.8-4916_daily_bin1402.fits sctable="SC_DATA" expcube=/scratch/kocevski/805520/ltcube_602726401_602985601_4FGL_J2322.8-4916_daily_bin1402.fits outfile=/scratch/kocevski/805520/expmap_602726401_602985601_4FGL_J2322.8-4916_daily_bin1402.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/805520/ltcube_602726401_602985601_4FGL_J2322.8-4916_daily_bin1402.fits
.....................!
real 190.97
user 185.07
sys 5.58

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/805520/ft1_filtered_4FGL_J2322.8-4916_daily_bin1402.fits scfile=/scratch/kocevski/805520/ft2_4FGL_J2322.8-4916_daily_bin1402.fits outfile=/scratch/kocevski/805520/cmap_602726401_602985601_4FGL_J2322.8-4916_daily_bin1402.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.55
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/805520/ft1_filtered_4FGL_J2322.8-4916_daily_bin1402.fits scfile=/scratch/kocevski/805520/ft2_4FGL_J2322.8-4916_daily_bin1402.fits outfile=/scratch/kocevski/805520/cmap_HighResolution_602726401_602985601_4FGL_J2322.8-4916_daily_bin1402.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.59
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12179E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    133.79       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.1239       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.334       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .46217E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    .82648E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    465.75       1.0000         .10000E-03   10000.    
    10 'Prefactor '    88.861       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13982E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    13 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .18470E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10758E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.5759       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11278E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.3451       1.0000         .10000E-03   10000.    
    24 'Prefactor '    22.406       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10296E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .51108E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    2.2358       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.0245       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=   1843.996     FROM MIGRAD    STATUS=CONVERGED    948 CALLS     5695 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    355.79        .19074E-03** at limit **
   2  Prefactor     .10000E-03    8.1592        .46861E-08** at limit **
   3  Prefactor     133.83        56.600        .26251E-05    .20045E-04
   4  Prefactor     2.1238        9.0358        .16060E-05   -.18167E-03
   5  Prefactor     .10000E-03    2.4206        .18705E-07** at limit **
   6  Prefactor     10.332        9.4938        .91257E-06   -.59506E-04
   7  Prefactor     .10000E-03    6540.4       -.92854E-03** at limit **
   8  norm          .10000E-03    535.90        .46542E-04** at limit **
   9  Prefactor     465.91        277.30        .65887E-04    .20004E-04
  10  Prefactor     89.635        685.89        .80222E-03    .16101E-04
  11  Prefactor     .10000E-03    205.38       -.56457E-04** at limit **
  12  Prefactor    10000.0        942.95        .20866E-03** at limit **
  13  Prefactor    10000.0        7996.2        .90764E-03** at limit **
  14  Prefactor     .10000E-03    641.28       -.11337E-03** at limit **
  15  Prefactor     .10001E-03    12.622       -.12551E-05** at limit **
  16  Prefactor     .10000E-03    84.462        .37402E-05** at limit **
  17  Prefactor     .10000E-03    7.7882       -.41180E-08** at limit **
  18  norm          .10000E-03    9.3579       -.21473E-07** at limit **
  19  norm          .10000E-03    4.0782        .44384E-08** at limit **
  20  norm          3.5787        7.3974        .82438E-06   -.76811E-04
  21  Prefactor     .10000E-03    3.6167       -.13546E-07** at limit **
  22  Prefactor     .10000E-03    38.506       -.11743E-05** at limit **
  23  norm          1.3466        5.0294       -.68141E-06   -.33396E-03
  24  Prefactor     22.403        17.462        .92065E-06    .25985E-04
  25  norm          .10000E-03    .44498        .46037E-08** at limit **
  26  norm          .10000E-03    2.1166        .37656E-07** at limit **
  27  Prefactor     .10000E-03    20.167        .10491E-05** at limit **
  28  Prefactor     .10001E-03    3.9900        .25165E-06** at limit **
  29  Prefactor     .10000E-03    22.981       -.23495E-05** at limit **
  30  norm          .10000E-03    25.623        .23910E-05** at limit **
  31  Prefactor     .10000E-03    6.7037        .23311E-06** at limit **
  32  Prefactor     2.2354        3.4222        .29235E-06   -.22693E-03
  33  Normalizat    .10000E-01    .13703       -.31465E-05** at limit **
  34  Prefactor     1.0244        .17981       -.88764E-05    .22564E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 133.827
  Prefactor  = 2.12381
  Prefactor  = 0.0001
  Prefactor  = 10.332
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 465.912
  Prefactor  = 89.6352
  Prefactor  = 0.000100001
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.57872
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.3466
  Prefactor  = 22.403
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.23544
  Normalizat = 0.01
  Prefactor  = 1.02441
 **********
 **   18 **HESSE 
 **********

 FCN=   1843.996     FROM HESSE     STATUS=OK           714 CALLS     6409 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    359.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.1610        .11981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     133.83        55.565        .34815E-04   -1.3389    
   4  Prefactor     2.1238        8.9292        .24134E-03   -1.5416    
   5  Prefactor     .10000E-03    2.4240        .65244E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.332        9.4881        .11851E-03   -1.5065    
   7  Prefactor     .10000E-03    6539.8        .19309E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    535.89        .20883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     465.91        277.10        .94910E-04   -1.1357    
  10  Prefactor     89.635        680.83        .21312E-03   -1.3812    
  11  Prefactor     .10000E-03    205.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor    10000.0        943.00        .19550E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor    10000.0        7997.7        .19842E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    641.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    12.644        .14903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    84.461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.7897        .11706E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    9.3592        .12832E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.0783        .84704E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.5787        7.2896        .14900E-03   -1.5330    
  21  Prefactor     .10000E-03    3.6190        .79749E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    38.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.3466        4.9187        .16225E-03   -1.5476    
  24  Prefactor     22.403        17.445        .84620E-04   -1.4761    
  25  norm          .10000E-03    .44593        .27966E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    2.1196        .60910E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    20.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10001E-03    17.387        .16079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    23.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    25.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    6.8367        .10834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     2.2354        3.4023        .94334E-04   -1.5409    
  33  Normalizat    .10000E-01    .15895        .84263E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     1.0244        .16360        .19762E-03   -.91920    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76334e-09
Minuit parameter uncertainties:
  1  0.00166837
  2  1.84278e-07
  3  55.5869
  4  8.71155
  5  3.08746e-06
  6  9.48953
  7  0.000781883
  8  8.16242e-05
  9  277.909
  10  502.242
  11  0.000987545
  12  0.000947632
  13  0.0156023
  14  3.30645e-05
  15  0.000545052
  16  1.80769e-05
  17  8.21391e-07
  18  5.37632e-06
  19  2.74013e-08
  20  7.29141
  21  3.19879e-06
  22  7.37289e-05
  23  4.92013
  24  17.4487
  25  4.52159e-07
  26  5.3467e-06
  27  0.000125904
  28  0.000920978
  29  3.93028e-05
  30  8.96669e-05
  31  5.99767e-05
  32  3.40258
  33  3.92744e-06
  34  0.163676
Done.

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

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.000e-04  2.740e-08  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.024e+00  1.637e-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.000e-02  3.927e-06  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/805520/likelihoodResults_602726401_602985601_4FGL_J2322.8-4916_daily_bin1402.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): 102
logL (Free Index) = 1843.99683312
delta logL = -0.0010802195045

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1843.99575475
delta logL = -1.84807890946e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5961       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0241       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=   1843.996     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      255 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    248.73        .85592E-02** at limit **
   2  alpha         1.1871        3.0084        .18083        .37092E-07
   3  Normalizat    .10000E-01    .18899E-01    .84263E-02** at limit **
   4  Prefactor     1.0244        .49176E-01    .19762E-03    .94595E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.18711
  Normalizat = 0.01
  Prefactor  = 1.02441
 **********
 **   18 **HESSE 
 **********

 FCN=   1843.996     FROM HESSE     STATUS=OK            23 CALLS      278 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.7329        .91190E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.1871        4.2205        .72334E-02   -.55290    
   3  Normalizat    .10000E-01    .15899        .16853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0244        .14281        .39525E-04   -.91920    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.7547e-11
Minuit parameter uncertainties:
  1  5.993e-06
  2  234.923
  3  3.64822e-07
  4  0.14286
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805520': 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) = 1843.99575122
delta logL = 1.68158771885e-06

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.000e-04  5.993e-06  1.000e-04  1.000e+04 ( 1.000e-13)
435        alpha:  1.187e+00  2.349e+02  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.024e+00  1.429e-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.000e-02  3.648e-07  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/805520/cmap_HighResolution_602726401_602985601_4FGL_J2322.8-4916_daily_bin1402.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.40e-05', job_status='DONE', photon_flux_upper_limit='3.83e-08', time_completed='2021-09-29 14:26:29.822926', job_id='805520', GAL2='1.02', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632950789.82', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='1.68e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='1402' AND source_name='4FGL J2322.8-4916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 14:26:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 805520: <4FGL_J2322.8-4916_daily_bin1402> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.8-4916_daily_bin1402 350.708 -49.2725 602726401 602985601 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 :                                   530.31 sec.
    Max Memory :                                 1009 MB
    Average Memory :                             241.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   631 sec.
    Turnaround time :                            633 sec.

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

