aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 2 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7465
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2322.8-4916_daily_bin1776
RA = 350.708, Dec = -49.2725
tmin = 699667201, tmax = 699926401
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='846322', job_status='RUN', time_executed='2023-03-08 01:25:30.210644', time_epoch_executed='1678267530.21' WHERE source_name='4FGL J2322.8-4916' and cadence='daily' and bin_id='1776'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/846322

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/846322/ft1_4FGL_J2322.8-4916_daily_bin1776.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/846322/ft2_4FGL_J2322.8-4916_daily_bin1776.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/846322/ft1_4FGL_J2322.8-4916_daily_bin1776.fits outfile=/scratch/kocevski/846322/ft1_filteredMKT_4FGL_J2322.8-4916_daily_bin1776.fits ra=350.708 dec=-49.2725 rad=12.0 tmin=699667201.0 tmax=699926401.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.92
user 3.69
sys 0.21

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

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

Number of photons that the gtmktime cut: 579

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/846322/ft1_filtered_4FGL_J2322.8-4916_daily_bin1776.fits" evtable="EVENTS" scfile=/scratch/kocevski/846322/ft2_4FGL_J2322.8-4916_daily_bin1776.fits sctable="SC_DATA" outfile=/scratch/kocevski/846322/ltcube_699667201_699926401_4FGL_J2322.8-4916_daily_bin1776.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/846322/ft2_4FGL_J2322.8-4916_daily_bin1776.fits
.....................!
real 11.81
user 11.46
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/846322/ft1_filtered_4FGL_J2322.8-4916_daily_bin1776.fits evtable="EVENTS" scfile=/scratch/kocevski/846322/ft2_4FGL_J2322.8-4916_daily_bin1776.fits sctable="SC_DATA" expcube=/scratch/kocevski/846322/ltcube_699667201_699926401_4FGL_J2322.8-4916_daily_bin1776.fits outfile=/scratch/kocevski/846322/expmap_699667201_699926401_4FGL_J2322.8-4916_daily_bin1776.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/846322/ltcube_699667201_699926401_4FGL_J2322.8-4916_daily_bin1776.fits
.....................!
real 190.72
user 185.41
sys 4.95

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/846322/ft1_filtered_4FGL_J2322.8-4916_daily_bin1776.fits scfile=/scratch/kocevski/846322/ft2_4FGL_J2322.8-4916_daily_bin1776.fits outfile=/scratch/kocevski/846322/cmap_699667201_699926401_4FGL_J2322.8-4916_daily_bin1776.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.54
user 0.36
sys 0.16

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/846322/ft1_filtered_4FGL_J2322.8-4916_daily_bin1776.fits evtable="EVENTS" scfile=/scratch/kocevski/846322/ft2_4FGL_J2322.8-4916_daily_bin1776.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/846322/Model_4FGL_J2322.8-4916_daily_bin1776.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/846322/ft1_filtered_4FGL_J2322.8-4916_daily_bin1776.fits.....................!
real 45.55
user 44.31
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/846322/ft1_filtered_4FGL_J2322.8-4916_daily_bin1776.fits', '/scratch/kocevski/846322/ft2_4FGL_J2322.8-4916_daily_bin1776.fits', expMap='/scratch/kocevski/846322/expmap_699667201_699926401_4FGL_J2322.8-4916_daily_bin1776.fits', expCube='/scratch/kocevski/846322/ltcube_699667201_699926401_4FGL_J2322.8-4916_daily_bin1776.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/846322/Model_4FGL_J2322.8-4916_daily_bin1776.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  0.000e+00  1.000e+06 ( 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 -5.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/846322/ft1_filtered_4FGL_J2322.8-4916_daily_bin1776.fits
Spacecraft file(s): /scratch/kocevski/846322/ft2_4FGL_J2322.8-4916_daily_bin1776.fits
Exposure map: /scratch/kocevski/846322/expmap_699667201_699926401_4FGL_J2322.8-4916_daily_bin1776.fits
Exposure cube: /scratch/kocevski/846322/ltcube_699667201_699926401_4FGL_J2322.8-4916_daily_bin1776.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/846322/Model_4FGL_J2322.8-4916_daily_bin1776.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) = 6264.36373857

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.764       1.0000          .0000       .10000E+07
     2 'Prefactor '    .66493E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    .46032       1.0000          .0000       .10000E+07
     4 'Prefactor '    .28309E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .32416E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    .42626E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    41.408       1.0000          .0000       .10000E+07
     8 'norm      '    .96849E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    1.1462       1.0000          .0000       .10000E+07
    10 'Prefactor '    .10622E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    4.9934       1.0000          .0000       .10000E+07
    12 'Prefactor '    .36785E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    2.8638       1.0000          .0000       .10000E+07
    14 'Prefactor '    48.355       1.0000          .0000       .10000E+07
    15 'Prefactor '    3.6399       1.0000          .0000       .10000E+07
    16 'norm      '    .70675E-03   1.0000          .0000       .10000E+07
    17 'norm      '    .47213E-04   1.0000          .0000       .10000E+07
    18 'norm      '    .16653E-08   1.0000          .0000       .10000E+07
    19 'Prefactor '    4.0817       1.0000          .0000       .10000E+07
    20 'Prefactor '    .71469E-05   1.0000          .0000       .10000E+07
    21 'norm      '    8.8663       1.0000          .0000       .10000E+07
    22 'Prefactor '    12.671       1.0000          .0000       .10000E+07
    23 'norm      '    .75277       1.0000          .0000       .10000E+07
    24 'norm      '    1.2745       1.0000          .0000       .10000E+07
    25 'Prefactor '    7.8351       1.0000          .0000       .10000E+07
    26 'Prefactor '    .28866E-08   1.0000          .0000       .10000E+07
    27 'Prefactor '    47.486       1.0000          .0000       .10000E+07
    28 'norm      '    .10005E-02   1.0000          .0000       .10000E+07
    29 'Prefactor '    .59007E-05   1.0000          .0000       .10000E+07
    30 'Prefactor '    1.9356       1.0000          .0000       .10000E+07
    31 'Normalizat'    .97828       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .90409       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5750E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6264.356     FROM MIGRAD    STATUS=CONVERGED    225 CALLS     3165 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.652        8.9539        .35897E-06   -.42619E-02
   2  Prefactor     .12068E-06    5.0010       -.33388E-06** at limit **
   3  Prefactor     .59452E-04    822.93        .82697E-05** at limit **
   4  Prefactor     .59064E-07    4.8498        .16850E-06** at limit **
   5  Prefactor     .36871E-06    5.0022       -.48670E-07** at limit **
   6  Prefactor     .28338E-06    17.098        .68525E-06** at limit **
   7  Prefactor     40.524        49.936        .11126E-05   -.59675E-02
   8  norm          .17764E-08    2.8193        .42471E-07** at limit **
   9  Prefactor     1.1457        1.8732       -.34853E-07   -.62518E-03
  10  Prefactor     .24808E-06    18.240        .30503E-06** at limit **
  11  Prefactor     5.0287        4.7297       -.64011E-07   -.19145E-02
  12  Prefactor     .11680E-06    8.2483       -.16481E-06** at limit **
  13  Prefactor     2.8535        6.1725        .84224E-08   -.86683E-03
  14  Prefactor     48.070        6.7502       -.11346E-06    .11784    
  15  Prefactor     3.6362        4.0708       -.10698E-06   -.16259E-01
  16  norm          .16098E-08    3.9927        .85089E-07** at limit **
  17  norm          .16653E-08    2.8909        .80206E-08** at limit **
  18  norm          .14988E-08    2.0048        .15165E-06** at limit **
  19  Prefactor     4.0838        6.2743        .12846E-06    .27240E-02
  20  Prefactor     .28577E-06    68.520        .13168E-05** at limit **
  21  norm          8.9335        5.2168       -.13138E-06   -.17756E-02
  22  Prefactor     12.652        5.4929       -.13380E-06   -.66772E-02
  23  norm          .75221        .92023       -.78666E-07   -.33441E-03
  24  norm          1.2514        4.2350       -.53974E-08   -.47283E-03
  25  Prefactor     7.8302        8.3346        .22180E-06   -.29388E-02
  26  Prefactor     .85859E-06    6.2597       -.26297E-06** at limit **
  27  Prefactor     47.581        14.019        .25865E-06   -.14629    
  28  norm          .29698E-07    6.5809       -.61256E-07** at limit **
  29  Prefactor     .13878E-08    1.6028       -.18069E-07** at limit **
  30  Prefactor     1.9387        3.5973       -.11336E-06   -.43150E-03
  31  Normalizat    .97824        .19979        .61971E-06   -.50677E-04
  32  Prefactor     .90434        .20636       -.11281E-05   -.39763E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.6518
  Prefactor  = 1.20681e-07
  Prefactor  = 5.94521e-05
  Prefactor  = 5.90639e-08
  Prefactor  = 3.68705e-07
  Prefactor  = 2.83384e-07
  Prefactor  = 40.5237
  norm       = 1.77636e-09
  Prefactor  = 1.14571
  Prefactor  = 2.48079e-07
  Prefactor  = 5.02865
  Prefactor  = 1.16795e-07
  Prefactor  = 2.85345
  Prefactor  = 48.0703
  Prefactor  = 3.63615
  norm       = 1.60982e-09
  norm       = 1.66533e-09
  norm       = 1.4988e-09
  Prefactor  = 4.08383
  Prefactor  = 2.85771e-07
  norm       = 8.93346
  Prefactor  = 12.6518
  norm       = 0.75221
  norm       = 1.25143
  Prefactor  = 7.83015
  Prefactor  = 8.58591e-07
  Prefactor  = 47.5813
  norm       = 2.96985e-08
  Prefactor  = 1.38778e-09
  Prefactor  = 1.93873
  Normalizat = 0.978244
  Prefactor  = 0.904344
 **********
 **   18 **HESSE 
 **********

 FCN=   6264.356     FROM HESSE     STATUS=OK           733 CALLS     3898 TOTAL
                     EDM=   .98E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.652        96.812        .28012E-03   -1.5637    
   2  Prefactor     .12068E-06    5.1884        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .59452E-04    34.297        .12043E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .59064E-07    4.9485        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .36871E-06    5.6855        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .28338E-06    17.305        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     40.524        78.379        .15542E-03   -1.5581    
   8  norm          .17764E-08    2.8249        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.1457        2.2470        .31186E-02   -1.5687    
  10  Prefactor     .24808E-06    18.838        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.0287        4.7692        .44979E-03   -1.5663    
  12  Prefactor     .11680E-06    8.6630        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.8535        6.2100        .60045E-03   -1.5674    
  14  Prefactor     48.070        36.195        .14382E-03   -1.5569    
  15  Prefactor     3.6362        15.065        .52926E-03   -1.5670    
  16  norm          .16098E-08    3.9990        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .16653E-08    2.8948        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .14988E-08    2.0089        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.0838        7.8737        .49879E-03   -1.5668    
  20  Prefactor     .28577E-06    68.891        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          8.9335        5.3396        .33638E-03   -1.5648    
  22  Prefactor     12.652        15.378        .28115E-03   -1.5637    
  23  norm          .75221        .96911        .56524E-03   -1.5691    
  24  norm          1.2514        4.3542        .98421E-03   -1.5686    
  25  Prefactor     7.8302        8.3416        .35799E-03   -1.5652    
  26  Prefactor     .85859E-06    1.6641        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     47.581        23.656        .14513E-03   -1.5570    
  28  norm          .29698E-07    6.6423        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .13878E-08    1.6093        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     1.9387        3.6203        .74610E-03   -1.5680    
  31  Normalizat    .97824        .17323        .45894E-01   -.93763    
  32  Prefactor     .90434        .17405        .45057E-01   -.95989    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.82502e-07
Minuit parameter uncertainties:
  1  69.9971
  2  0.00158273
  3  0.0903119
  4  0.00108118
  5  0.00289569
  6  0.00442898
  7  78.3806
  8  0.00014176
  9  2.24695
  10  0.00432362
  11  4.76917
  12  0.00201196
  13  6.21001
  14  36.1956
  15  14.8025
  16  0.000161754
  17  0.000137836
  18  0.000109762
  19  7.87372
  20  0.00887375
  21  5.33964
  22  15.3776
  23  0.969109
  24  4.35423
  25  8.34166
  26  0.00239059
  27  23.6565
  28  0.000888524
  29  9.48994e-05
  30  3.62025
  31  0.173331
  32  0.174153
Done.

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

Extracting fit parameters...

4FGL J2322.8-4916
   Spectrum: LogParabola
434         norm:  1.665e-09  1.378e-04  0.000e+00  1.000e+06 ( 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 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
437           Eb:  2.660e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  9.043e-01  1.742e-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:  9.782e-01  1.733e-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.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.63e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/846322/likelihoodResults_699667201_699926401_4FGL_J2322.8-4916_daily_bin1776.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) = 6264.35651286
delta logL = -4.98159051858e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6264.35647037
delta logL = -7.33029537514e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96548E-05   1.0000          .0000       .10000E+07
     2 'alpha     '    .36531       1.0000          .0000       5.0000    
     3 'Normalizat'    .97871       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90386       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6264.356     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      240 TOTAL
                     EDM=   .29E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        1.9965        .42118E-03** at limit **
   2  alpha         2.3528        1.3020        .26659E-03     .0000    
   3  Normalizat    .97824        1.3094       -.77187E-05   -.13197E-04
   4  Prefactor     .90434        1.2489       -.45098E-05   -.16421E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  alpha      = 2.35276
  Normalizat = 0.978244
  Prefactor  = 0.904344
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6264.356     FROM HESSE     STATUS=FAILED         7 CALLS      247 TOTAL
                     EDM=   .29E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        1.9965        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.1532        1.3020        .26659E-03   -.58932E-01
   3  Normalizat    .97824        1.3094       -.77187E-05   -.93763    
   4  Prefactor     .90434        1.2489       -.45098E-05   -.95989    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.9313e-13
Minuit parameter uncertainties:
  1  1.45426e-06
  2  1.36979
  3  1.35658
  4  1.29217
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/846322': 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): 101
logL (Free Index) = 6264.35646304
delta logL = 2.88309820462e-10

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  9.043e-01  1.292e+00  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:  9.782e-01  1.357e+00  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/846322/cmap_HighResolution_699667201_699926401_4FGL_J2322.8-4916_daily_bin1776.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.63e-05', job_status='DONE', photon_flux_upper_limit='2.11e-08', time_completed='2023-03-08 01:38:25.648982', job_id='846322', GAL2='0.90', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1678268305.65', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='2.88e-10', ts2='0.00', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='1776' AND source_name='4FGL J2322.8-4916' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Mar  8 01:38:25 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0005>
Subject: Job 846322: <4FGL_J2322.8-4916_daily_bin1776> in cluster <slac> Done

Job <4FGL_J2322.8-4916_daily_bin1776> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Mar  8 01:25:18 2023
Job was executed on host(s) <bullet0005>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Mar  8 01:25:19 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Mar  8 01:25:19 2023
Terminated at Wed Mar  8 01:38:26 2023
Results reported at Wed Mar  8 01:38:26 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2322.8-4916_daily_bin1776 350.708 -49.2725 699667201 699926401 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 :                                   777.08 sec.
    Max Memory :                                 1064 MB
    Average Memory :                             293.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   786 sec.
    Turnaround time :                            788 sec.

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

