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


Performing analysis on: 4FGL_J2317.4-4533_daily_bin1762
RA = 349.357, Dec = -45.5623
tmin = 696038401, tmax = 696297601
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='123339', job_status='RUN', time_executed='2023-01-25 01:46:10.125326', time_epoch_executed='1674639970.13' WHERE source_name='4FGL J2317.4-4533' and cadence='daily' and bin_id='1762'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/123339

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/123339/ft1_4FGL_J2317.4-4533_daily_bin1762.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/123339/ft2_4FGL_J2317.4-4533_daily_bin1762.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/123339/ft1_4FGL_J2317.4-4533_daily_bin1762.fits outfile=/scratch/kocevski/123339/ft1_filteredMKT_4FGL_J2317.4-4533_daily_bin1762.fits ra=349.357 dec=-45.5623 rad=12.0 tmin=696038401.0 tmax=696297601.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.69
user 3.44
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/123339/ft2_4FGL_J2317.4-4533_daily_bin1762.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/123339/ft2_4FGL_J2317.4-4533_daily_bin1762.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/123339/ft1_filteredMKT_4FGL_J2317.4-4533_daily_bin1762.fits evtable="EVENTS" outfile="/scratch/kocevski/123339/ft1_filtered_4FGL_J2317.4-4533_daily_bin1762.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.52
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 393

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/123339/ft1_filtered_4FGL_J2317.4-4533_daily_bin1762.fits" evtable="EVENTS" scfile=/scratch/kocevski/123339/ft2_4FGL_J2317.4-4533_daily_bin1762.fits sctable="SC_DATA" outfile=/scratch/kocevski/123339/ltcube_696038401_696297601_4FGL_J2317.4-4533_daily_bin1762.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/123339/ft2_4FGL_J2317.4-4533_daily_bin1762.fits
.....................!
real 13.75
user 13.27
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/123339/ft1_filtered_4FGL_J2317.4-4533_daily_bin1762.fits evtable="EVENTS" scfile=/scratch/kocevski/123339/ft2_4FGL_J2317.4-4533_daily_bin1762.fits sctable="SC_DATA" expcube=/scratch/kocevski/123339/ltcube_696038401_696297601_4FGL_J2317.4-4533_daily_bin1762.fits outfile=/scratch/kocevski/123339/expmap_696038401_696297601_4FGL_J2317.4-4533_daily_bin1762.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/123339/ltcube_696038401_696297601_4FGL_J2317.4-4533_daily_bin1762.fits
.....................!
real 191.49
user 186.13
sys 4.34

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 177 point sources and 0 extended sources

Setting source of interest to:
4FGL J2317.4-4533 @ 349.357 -45.5623

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/123339/ft1_filtered_4FGL_J2317.4-4533_daily_bin1762.fits scfile=/scratch/kocevski/123339/ft2_4FGL_J2317.4-4533_daily_bin1762.fits outfile=/scratch/kocevski/123339/cmap_696038401_696297601_4FGL_J2317.4-4533_daily_bin1762.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=349.357 yref=-45.5623 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/123339/ft1_filtered_4FGL_J2317.4-4533_daily_bin1762.fits scfile=/scratch/kocevski/123339/ft2_4FGL_J2317.4-4533_daily_bin1762.fits outfile=/scratch/kocevski/123339/cmap_HighResolution_696038401_696297601_4FGL_J2317.4-4533_daily_bin1762.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=349.357 yref=-45.5623 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.57
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/123339/ft1_filtered_4FGL_J2317.4-4533_daily_bin1762.fits evtable="EVENTS" scfile=/scratch/kocevski/123339/ft2_4FGL_J2317.4-4533_daily_bin1762.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/123339/Model_4FGL_J2317.4-4533_daily_bin1762.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/123339/ft1_filtered_4FGL_J2317.4-4533_daily_bin1762.fits.....................!
real 36.67
user 35.20
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/123339/ft1_filtered_4FGL_J2317.4-4533_daily_bin1762.fits', '/scratch/kocevski/123339/ft2_4FGL_J2317.4-4533_daily_bin1762.fits', expMap='/scratch/kocevski/123339/expmap_696038401_696297601_4FGL_J2317.4-4533_daily_bin1762.fits', expCube='/scratch/kocevski/123339/ltcube_696038401_696297601_4FGL_J2317.4-4533_daily_bin1762.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/123339/Model_4FGL_J2317.4-4533_daily_bin1762.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2317.4-4533'

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  2.155e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
392        alpha:  1.793e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
393         beta:  1.780e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
394           Eb:  1.694e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/123339/ft1_filtered_4FGL_J2317.4-4533_daily_bin1762.fits
Spacecraft file(s): /scratch/kocevski/123339/ft2_4FGL_J2317.4-4533_daily_bin1762.fits
Exposure map: /scratch/kocevski/123339/expmap_696038401_696297601_4FGL_J2317.4-4533_daily_bin1762.fits
Exposure cube: /scratch/kocevski/123339/ltcube_696038401_696297601_4FGL_J2317.4-4533_daily_bin1762.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/123339/Model_4FGL_J2317.4-4533_daily_bin1762.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) = 4386.05375601

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .98457E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    .18463E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    108.44       1.0000          .0000       .10000E+07
     4 'Prefactor '    3.3076       1.0000          .0000       .10000E+07
     5 'norm      '    .69046E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .93203E-07   1.0000          .0000       .10000E+07
     7 'Prefactor '    .82488E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    3.8320       1.0000          .0000       .10000E+07
     9 'Prefactor '    .66619E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    17.207       1.0000          .0000       .10000E+07
    11 'Prefactor '    16.918       1.0000          .0000       .10000E+07
    12 'Prefactor '    .68579E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .24860E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    12.596       1.0000          .0000       .10000E+07
    15 'norm      '    .10685E-03   1.0000          .0000       .10000E+07
    16 'norm      '    .55025E-03   1.0000          .0000       .10000E+07
    17 'norm      '    .13452E-03   1.0000          .0000       .10000E+07
    18 'norm      '    6.0312       1.0000          .0000       .10000E+07
    19 'Prefactor '    3.6431       1.0000          .0000       .10000E+07
    20 'Prefactor '    25.179       1.0000          .0000       .10000E+07
    21 'norm      '    .71990E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    .71018E-03   1.0000          .0000       .10000E+07
    23 'norm      '    .86481       1.0000          .0000       .10000E+07
    24 'norm      '    .15764E-03   1.0000          .0000       .10000E+07
    25 'Prefactor '    .23024E-05   1.0000          .0000       .10000E+07
    26 'Prefactor '    .97776E-04   1.0000          .0000       .10000E+07
    27 'Prefactor '    .11737       1.0000          .0000       .10000E+07
    28 'norm      '    .32287E-02   1.0000          .0000       .10000E+07
    29 'Prefactor '    9.5972       1.0000          .0000       .10000E+07
    30 'Prefactor '    17.169       1.0000          .0000       .10000E+07
    31 'Normalizat'    1.2818       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .68032       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5640E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4386.051     FROM MIGRAD    STATUS=CONVERGED    188 CALLS     3202 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .48911E-06    2.1346        .19953E-06** at limit **
   2  Prefactor     .47481E-05    13.391       -.60449E-06** at limit **
   3  Prefactor     109.15        72.265        .12895E-05   -.93037E-02
   4  Prefactor     3.2809        21.044        .30493E-05    .23370E-01
   5  norm          .22204E-09    3.2140        .61780E-06** at limit **
   6  Prefactor      .0000        1.1043        .12780E-06** at limit **
   7  Prefactor     .11428E-05    31.163        .10162E-05** at limit **
   8  Prefactor     3.8320        4.3634       -.20867E-06    .11322E-03
   9  Prefactor     .11853E-05    25.393        .10734E-05** at limit **
  10  Prefactor     17.209        8.6307        .80337E-06   -.57515E-01
  11  Prefactor     16.839        4.8830        .29970E-06   -.49131E-01
  12  Prefactor     .29282E-06    3.2160       -.15884E-06** at limit **
  13  Prefactor      .0000        19.869        .12156E-05** at limit **
  14  Prefactor     12.585        1.4906        .10188E-06    .97626E-02
  15  norm          .16653E-09    4.2941        .26603E-06** at limit **
  16  norm          .21022E-06    3.8912       -.44985E-07** at limit **
  17  norm          .11102E-09    2.0414       -.27395E-06** at limit **
  18  norm          6.0303        6.7484        .12799E-05    .35936E-01
  19  Prefactor     3.5780        5.8785       -.11482E-06    .71567E-03
  20  Prefactor     24.845        3.7668        .18242E-06   -.53508E-01
  21  norm           .0000        2.2759       -.70056E-06** at limit **
  22  Prefactor     .12323E-07    5.1566        .30251E-06** at limit **
  23  norm          .86748        1.1764       -.15001E-06   -.16071E-02
  24  norm           .0000        2.8711        .33630E-06** at limit **
  25  Prefactor     .17653E-07    6.8201       -.31184E-06** at limit **
  26  Prefactor      .0000        2.0845       -.38272E-06** at limit **
  27  Prefactor     .45020E-07    .81863        .20186E-07** at limit **
  28  norm          .55511E-10    8.4815       -.93840E-06** at limit **
  29  Prefactor     9.5666        7.7612        .23179E-06    .20682E-01
  30  Prefactor     17.171        2.3801        .48181E-07   -.44912E-01
  31  Normalizat    1.2825        .26150       -.11611E-04    .71946E-06
  32  Prefactor     .68012        .25934        .10170E-04    .10254E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.89109e-07
  Prefactor  = 4.74809e-06
  Prefactor  = 109.146
  Prefactor  = 3.28085
  norm       = 2.22045e-10
  Prefactor  = 0
  Prefactor  = 1.14275e-06
  Prefactor  = 3.83201
  Prefactor  = 1.18527e-06
  Prefactor  = 17.2089
  Prefactor  = 16.8386
  Prefactor  = 2.92821e-07
  Prefactor  = 0
  Prefactor  = 12.5851
  norm       = 1.66533e-10
  norm       = 2.10221e-07
  norm       = 1.11022e-10
  norm       = 6.03033
  Prefactor  = 3.57799
  Prefactor  = 24.8447
  norm       = 0
  Prefactor  = 1.23235e-08
  norm       = 0.867479
  norm       = 0
  Prefactor  = 1.76525e-08
  Prefactor  = 0
  Prefactor  = 4.50195e-08
  norm       = 5.55112e-11
  Prefactor  = 9.56657
  Prefactor  = 17.1708
  Normalizat = 1.28252
  Prefactor  = 0.680117
 **********
 **   18 **HESSE 
 **********

 FCN=   4386.051     FROM HESSE     STATUS=OK           719 CALLS     3921 TOTAL
                     EDM=   .85E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .48911E-06    57.320        .13971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .47481E-05    33.531        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     109.15        73.725        .96037E-04   -1.5499    
   4  Prefactor     3.2809        28.081        .55640E-03   -1.5672    
   5  norm          .22204E-09    3.2184        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        1.1036        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .11428E-05    36.746        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.8320        4.4169        .51532E-03   -1.5669    
   9  Prefactor     .11853E-05    31.006        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.209        24.346        .24118E-03   -1.5625    
  11  Prefactor     16.839        32.625        .24323E-03   -1.5626    
  12  Prefactor     .29282E-06    6.0484        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        19.804        .16736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.585        13.347        .28199E-03   -1.5637    
  15  norm          .16653E-09    4.2981        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .21022E-06    6.2226        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .11102E-09    2.0417        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.0303        6.8793        .40861E-03   -1.5659    
  19  Prefactor     3.5780        5.9240        .52902E-03   -1.5670    
  20  Prefactor     24.845        35.922        .19933E-03   -1.5608    
  21  norm           .0000        2.2753        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .12323E-07    5.4032        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .86748        1.2002        .48224E-03   -1.5689    
  24  norm           .0000        2.8621        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .17653E-07    7.1173        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor      .0000        2.0801        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .45020E-07    63.304        .13484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .55511E-10    8.4960        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     9.5666        7.8286        .32324E-03   -1.5646    
  30  Prefactor     17.171        8.3287        .24144E-03   -1.5625    
  31  Normalizat    1.2825        .22663        .51128E-01   -.84090    
  32  Prefactor     .68012        .21702        .69356E-01   -1.0431    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.50525e-07
Minuit parameter uncertainties:
  1  0.0105898
  2  0.0252355
  3  73.7257
  4  19.1968
  5  5.20292e-05
  6  1.30019e-06
  7  0.0129604
  8  4.41691
  9  0.0121244
  10  24.3463
  11  32.6252
  12  0.00266166
  13  1.4411e-05
  14  13.3466
  15  5.67389e-05
  16  0.0022873
  17  2.65019e-05
  18  6.87929
  19  5.92404
  20  35.9223
  21  2.72276e-07
  22  0.000516112
  23  1.2002
  24  1.11736e-05
  25  0.000709067
  26  9.45282e-06
  27  0.00337575
  28  4.89801e-05
  29  7.82863
  30  8.3287
  31  0.226801
  32  0.21729
Done.

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

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  1.665e-10  5.674e-05  0.000e+00  1.000e+06 ( 1.000e-13)
392        alpha:  1.793e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
393         beta:  1.780e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
394           Eb:  1.694e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
561    Prefactor:  6.801e-01  2.173e-01  0.000e+00  1.000e+01 ( 1.000e+00)
562        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
563        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
560   Normalization:  1.283e+00  2.268e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 349.357 -45.562
Photon Flux Upper Limit: 2.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.09e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/123339/likelihoodResults_696038401_696297601_4FGL_J2317.4-4533_daily_bin1762.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) = 4386.05141147
delta logL = -0.000106299159597

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4386.0513071
delta logL = -1.92854167835e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .50551E-05   1.0000          .0000       .10000E+07
     2 'alpha     '    .39361       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2825       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68024       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5640E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4386.051     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      284 TOTAL
                     EDM=   .18E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11102E-09    .74516E-02    .42118E-03** at limit **
   2  alpha         3.8356        2.8803        .50000        .26830E-09
   3  Normalizat    1.2825        .58303E-03    .51128E-01   -.37614E-03
   4  Prefactor     .68012        .59841E-03    .69356E-01   -.29024E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.11022e-10
  alpha      = 3.8356
  Normalizat = 1.28252
  Prefactor  = 0.680115
 **********
 **   18 **HESSE 
 **********

 FCN=   4386.051     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      311 TOTAL
                     EDM=   .24E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .11102E-09    .94669E-01    .49815E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.8356        4.3674        .50000        .56361    
   3  Normalizat    1.2825        .20559E-02    .22605E-03   -.84090    
   4  Prefactor     .68012        .21070E-02    .30693E-03   -1.0431    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.3725e-12
Minuit parameter uncertainties:
  1  6.73916e-06
  2  32125.7
  3  0.00205586
  4  0.00210702
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/123339': 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): 102
logL (Free Index) = 4386.05130517
delta logL = -1.78260961547e-10

Extracting fit parameters...

4FGL J2317.4-4533
   Spectrum: LogParabola
391         norm:  1.110e-10  6.739e-06  0.000e+00  1.000e+06 ( 1.000e-13)
392        alpha:  3.836e+00  3.213e+04  0.000e+00  5.000e+00 ( 1.000e+00)
393         beta:  1.780e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
394           Eb:  1.694e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
561    Prefactor:  6.801e-01  2.107e-03  0.000e+00  1.000e+01 ( 1.000e+00)
562        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
563        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
560   Normalization:  1.283e+00  2.056e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 349.357 -45.562

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/123339/cmap_HighResolution_696038401_696297601_4FGL_J2317.4-4533_daily_bin1762.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.09e-05', job_status='DONE', photon_flux_upper_limit='2.77e-08', time_completed='2023-01-25 01:56:44.925779', job_id='123339', GAL2='0.68', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1674640604.93', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='-1.78e-10', ts2='-0.00', photon_index_error='0.00', photon_index='1.79' WHERE bin_id='1762' AND source_name='4FGL J2317.4-4533' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jan 25 01:56:44 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0170>
Subject: Job 123339: <4FGL_J2317.4-4533_daily_bin1762> in cluster <slac> Done

Job <4FGL_J2317.4-4533_daily_bin1762> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Jan 25 01:45:18 2023
Job was executed on host(s) <bullet0170>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jan 25 01:45:53 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jan 25 01:45:53 2023
Terminated at Wed Jan 25 01:56:45 2023
Results reported at Wed Jan 25 01:56:45 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.4-4533_daily_bin1762 349.357 -45.5623 696038401 696297601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2317.4-4533 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   635.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             362.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   652 sec.
    Turnaround time :                            687 sec.

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

