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


Performing analysis on: 4FGL_J2317.7+2839_daily_bin1671
RA = 349.438, Dec = 28.6589
tmin = 672451201, tmax = 672710401
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='43829', job_status='RUN', time_executed='2022-04-27 01:07:33.160481', time_epoch_executed='1651046853.16' WHERE source_name='4FGL J2317.7+2839' and cadence='daily' and bin_id='1671'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/43829

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/43829/ft1_4FGL_J2317.7+2839_daily_bin1671.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/43829/ft2_4FGL_J2317.7+2839_daily_bin1671.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/43829/ft1_4FGL_J2317.7+2839_daily_bin1671.fits outfile=/scratch/kocevski/43829/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin1671.fits ra=349.438 dec=28.6589 rad=12.0 tmin=672451201.0 tmax=672710401.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 2.99
user 2.74
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/43829/ft2_4FGL_J2317.7+2839_daily_bin1671.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/43829/ft2_4FGL_J2317.7+2839_daily_bin1671.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/43829/ft1_filteredMKT_4FGL_J2317.7+2839_daily_bin1671.fits evtable="EVENTS" outfile="/scratch/kocevski/43829/ft1_filtered_4FGL_J2317.7+2839_daily_bin1671.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.53
user 0.35
sys 0.14

Number of photons that the gtmktime cut: 920

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/43829/ft1_filtered_4FGL_J2317.7+2839_daily_bin1671.fits" evtable="EVENTS" scfile=/scratch/kocevski/43829/ft2_4FGL_J2317.7+2839_daily_bin1671.fits sctable="SC_DATA" outfile=/scratch/kocevski/43829/ltcube_672451201_672710401_4FGL_J2317.7+2839_daily_bin1671.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/43829/ft2_4FGL_J2317.7+2839_daily_bin1671.fits
.....................!
real 13.44
user 12.65
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/43829/ft1_filtered_4FGL_J2317.7+2839_daily_bin1671.fits evtable="EVENTS" scfile=/scratch/kocevski/43829/ft2_4FGL_J2317.7+2839_daily_bin1671.fits sctable="SC_DATA" expcube=/scratch/kocevski/43829/ltcube_672451201_672710401_4FGL_J2317.7+2839_daily_bin1671.fits outfile=/scratch/kocevski/43829/expmap_672451201_672710401_4FGL_J2317.7+2839_daily_bin1671.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/43829/ltcube_672451201_672710401_4FGL_J2317.7+2839_daily_bin1671.fits
.....................!
real 190.65
user 185.88
sys 4.23

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

Setting source of interest to:
4FGL J2317.7+2839 @ 349.438 28.6589

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/43829/ft1_filtered_4FGL_J2317.7+2839_daily_bin1671.fits scfile=/scratch/kocevski/43829/ft2_4FGL_J2317.7+2839_daily_bin1671.fits outfile=/scratch/kocevski/43829/cmap_672451201_672710401_4FGL_J2317.7+2839_daily_bin1671.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.438 yref=28.6589 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/43829/ft1_filtered_4FGL_J2317.7+2839_daily_bin1671.fits scfile=/scratch/kocevski/43829/ft2_4FGL_J2317.7+2839_daily_bin1671.fits outfile=/scratch/kocevski/43829/cmap_HighResolution_672451201_672710401_4FGL_J2317.7+2839_daily_bin1671.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.438 yref=28.6589 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.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/43829/ft1_filtered_4FGL_J2317.7+2839_daily_bin1671.fits evtable="EVENTS" scfile=/scratch/kocevski/43829/ft2_4FGL_J2317.7+2839_daily_bin1671.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/43829/Model_4FGL_J2317.7+2839_daily_bin1671.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/43829/ft1_filtered_4FGL_J2317.7+2839_daily_bin1671.fits....................!
real 110.49
user 109.13
sys 1.10

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/43829/ft1_filtered_4FGL_J2317.7+2839_daily_bin1671.fits', '/scratch/kocevski/43829/ft2_4FGL_J2317.7+2839_daily_bin1671.fits', expMap='/scratch/kocevski/43829/expmap_672451201_672710401_4FGL_J2317.7+2839_daily_bin1671.fits', expCube='/scratch/kocevski/43829/ltcube_672451201_672710401_4FGL_J2317.7+2839_daily_bin1671.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/43829/Model_4FGL_J2317.7+2839_daily_bin1671.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2317.7+2839'

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  2.207e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  2.003e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
414        Scale:  3.565e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/43829/ft1_filtered_4FGL_J2317.7+2839_daily_bin1671.fits
Spacecraft file(s): /scratch/kocevski/43829/ft2_4FGL_J2317.7+2839_daily_bin1671.fits
Exposure map: /scratch/kocevski/43829/expmap_672451201_672710401_4FGL_J2317.7+2839_daily_bin1671.fits
Exposure cube: /scratch/kocevski/43829/ltcube_672451201_672710401_4FGL_J2317.7+2839_daily_bin1671.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/43829/Model_4FGL_J2317.7+2839_daily_bin1671.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) = 10022.92976

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3433       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .68581       1.0000         .10000E-03   10000.    
     4 'Prefactor '    67.444       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .87072       1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.408       1.0000         .10000E-03   10000.    
     8 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.4317       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.1888       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.6751       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .11394E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.1514       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.6495       1.0000         .10000E-03   10000.    
    18 'Prefactor '    29.376       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2600       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .81503       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5440E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10022.93     FROM MIGRAD    STATUS=CONVERGED    411 CALLS     2043 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3434        .68762        .49953E-07    .80398E-04
   2  Prefactor     .10000E-03    4.0096       -.62715E-06** at limit **
   3  norm          .68625        1.4800        .58869E-06    .54370E-03
   4  Prefactor     67.442        15.412       -.16152E-05   -.15149E-03
   5  Prefactor     .10000E-03    3.6983        .70086E-06** at limit **
   6  Prefactor     .86976        .73539       -.24423E-07   -.55381E-03
   7  Prefactor     22.408        17.817        .82925E-07   -.17466E-04
   8  norm          .10000E-03    .48559        .10831E-06** at limit **
   9  Prefactor     .10000E-03    4.7226        .59960E-07** at limit **
  10  Prefactor     8.4288        10.451       -.17649E-05   -.70186E-04
  11  Prefactor     8.1886        13.209       -.21806E-06   -.87796E-05
  12  Prefactor     .10000E-03    2.8269       -.44107E-06** at limit **
  13  norm          3.6747        4.0112        .93153E-09   -.71283E-04
  14  Prefactor     .10000E-03    8.2620        .52245E-07** at limit **
  15  norm          .10000E-03    1.1975        .30594E-06** at limit **
  16  Prefactor     6.1525        16.847        .37735E-05    .36423E-05
  17  Prefactor     1.6507        32.960        .26586E-05   -.38042E-04
  18  Prefactor     29.390        45.988        .23014E-04   -.20599E-04
  19  Normalizat    1.2597        .18668       -.33394E-05    .76667E-04
  20  Prefactor     .81517        .89458E-01    .60794E-06   -.42914E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.34337
  Prefactor  = 0.0001
  norm       = 0.686255
  Prefactor  = 67.4421
  Prefactor  = 0.0001
  Prefactor  = 0.869762
  Prefactor  = 22.4079
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.42878
  Prefactor  = 8.18859
  Prefactor  = 0.0001
  norm       = 3.67474
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.15249
  Prefactor  = 1.65072
  Prefactor  = 29.3896
  Normalizat = 1.25966
  Prefactor  = 0.815173
 **********
 **   18 **HESSE 
 **********

 FCN=   10022.93     FROM HESSE     STATUS=OK           295 CALLS     2338 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3434        .68240        .57610E-04   -1.5476    
   2  Prefactor     .10000E-03    4.0141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .68625        1.4171        .16574E-03   -1.5542    
   4  Prefactor     67.442        15.220        .48873E-04   -1.4064    
   5  Prefactor     .10000E-03    3.7014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .86976        14.056        .25402E-02   -1.5521    
   7  Prefactor     22.408        17.809        .84616E-04   -1.4761    
   8  norm          .10000E-03    .74391        .13440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.7310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.4288        10.407        .13806E-03   -1.5127    
  11  Prefactor     8.1886        13.205        .14010E-03   -1.5136    
  12  Prefactor     .10000E-03    2.8595        .16416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.6747        3.9986        .20137E-03   -1.5325    
  14  Prefactor     .10000E-03    8.2958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.7673        .21188E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.1525        16.867        .16187E-03   -1.5212    
  17  Prefactor     1.6507        33.035        .32876E-03   -1.5451    
  18  Prefactor     29.390        45.932        .73921E-04   -1.4623    
  19  Normalizat    1.2597        .21883        .31382E-03   -.84779    
  20  Prefactor     .81517        .10560        .18904E-03   -.99171    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00585e-09
Minuit parameter uncertainties:
  1  0.6824
  2  3.94627e-06
  3  1.41715
  4  15.2209
  5  1.65644e-06
  6  6.99439
  7  17.8128
  8  9.28357e-06
  9  5.59089e-06
  10  10.4094
  11  13.2095
  12  4.07188e-06
  13  3.99887
  14  1.37921e-05
  15  4.91281e-07
  16  16.8801
  17  14.778
  18  45.9874
  19  0.21899
  20  0.105627
Done.

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

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  8.189e+00  1.321e+01  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  2.003e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
414        Scale:  3.565e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
541    Prefactor:  8.152e-01  1.056e-01  0.000e+00  1.000e+01 ( 1.000e+00)
542        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
543        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
540   Normalization:  1.260e+00  2.190e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.60
Ra Dec: 349.438 28.659
Photon Flux Upper Limit: 6.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/43829/likelihoodResults_672451201_672710401_4FGL_J2317.7+2839_daily_bin1671.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) = 10022.9282302
delta logL = 0.000538845479241

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10022.9279128
delta logL = 0.000856199474583

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.5995       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9603       1.0000          .0000       10.000    
     3 'Normalizat'    1.2603       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81519       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5440E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   10022.93     FROM MIGRAD    STATUS=FAILED       106 CALLS      284 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.6222        19.473        .68347E-03    .24931E-04
   2  Index         1.9623        1.0841        .14059E-01    .52632E-03
   3  Normalizat    1.2602        .20757        .31376E-03   -.37755E-04
   4  Prefactor     .81505        .10348        .18905E-03   -.75530E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   10022.93     FROM SIMPLEX   STATUS=UNCHANGED     71 CALLS      355 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.6222        19.473        .22636E-03   -1.5121    
   2  Index         1.9623        1.0841        .86672E-03   -.65296    
   3  Normalizat    1.2602        .20757        .26264E-03   -.84762    
   4  Prefactor     .81505        .10348        .18709E-03   -.99176    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10022.93     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      388 TOTAL
                     EDM=   .45E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.6222        17.530        .13669E-03   -.53228E-05
   2  Index         1.9623        .97936        .28118E-02    .16981E-05
   3  Normalizat    1.2602        .20753        .12550E-04   -.72467E-06
   4  Prefactor     .81505        .10353        .75620E-05   -.12027E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.62221
  Index      = 1.9623
  Normalizat = 1.26023
  Prefactor  = 0.815052
 **********
 **   18 **HESSE 
 **********

 FCN=   10022.93     FROM HESSE     STATUS=OK            25 CALLS      413 TOTAL
                     EDM=   .24E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.6222        17.195        .54678E-05   -1.5121    
   2  Index         1.9623        .96092        .11247E-03   -.65296    
   3  Normalizat    1.2602        .20743        .25101E-05   -.84762    
   4  Prefactor     .81505        .10349        .15124E-05   -.99176    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3581e-13
Minuit parameter uncertainties:
  1  17.2045
  2  0.970555
  3  0.207571
  4  0.103514
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/43829': 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) = 10022.9279014
delta logL = 0.000867643506353

Extracting fit parameters...

4FGL J2317.7+2839
   Spectrum: PowerLaw
412    Prefactor:  8.622e+00  1.720e+01  1.000e-04  1.000e+04 ( 1.000e-14)
413        Index:  1.962e+00  9.706e-01  0.000e+00  1.000e+01 (-1.000e+00)
414        Scale:  3.565e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
541    Prefactor:  8.151e-01  1.035e-01  0.000e+00  1.000e+01 ( 1.000e+00)
542        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
543        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
540   Normalization:  1.260e+00  2.076e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.60
Ra Dec: 349.438 28.659

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/43829/cmap_HighResolution_672451201_672710401_4FGL_J2317.7+2839_daily_bin1671.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.50e-03', job_status='DONE', photon_flux_upper_limit='6.00e-08', time_completed='2022-04-27 01:20:49.191553', job_id='43829', GAL2='0.82', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1651047649.19', return_code2='0', ts='0.60', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='8.68e-04', ts2='0.60', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1671' AND source_name='4FGL J2317.7+2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Apr 27 01:20:49 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 43829: <4FGL_J2317.7+2839_daily_bin1671> in cluster <slac> Done

Job <4FGL_J2317.7+2839_daily_bin1671> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Apr 27 01:05:39 2022
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Apr 27 01:05:50 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Apr 27 01:05:50 2022
Terminated at Wed Apr 27 01:20:50 2022
Results reported at Wed Apr 27 01:20:50 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2317.7+2839_daily_bin1671 349.438 28.6589 672451201 672710401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2317.7+2839 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   791.05 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             326.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            911 sec.

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

