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


Performing analysis on: 4FGL_J2318.2+1915_daily_bin1694
RA = 349.557, Dec = 19.256
tmin = 678412801, tmax = 678672001
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='698687', job_status='RUN', time_executed='2022-07-05 04:03:47.257531', time_epoch_executed='1657019027.26' WHERE source_name='4FGL J2318.2+1915' and cadence='daily' and bin_id='1694'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/698687

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/698687/ft1_4FGL_J2318.2+1915_daily_bin1694.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/698687/ft2_4FGL_J2318.2+1915_daily_bin1694.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/698687/ft1_4FGL_J2318.2+1915_daily_bin1694.fits outfile=/scratch/kocevski/698687/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin1694.fits ra=349.557 dec=19.256 rad=12.0 tmin=678412801.0 tmax=678672001.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.68
user 3.46
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/698687/ft2_4FGL_J2318.2+1915_daily_bin1694.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/698687/ft2_4FGL_J2318.2+1915_daily_bin1694.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/698687/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin1694.fits evtable="EVENTS" outfile="/scratch/kocevski/698687/ft1_filtered_4FGL_J2318.2+1915_daily_bin1694.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.35
sys 0.14

Number of photons that the gtmktime cut: 775

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/698687/ft1_filtered_4FGL_J2318.2+1915_daily_bin1694.fits" evtable="EVENTS" scfile=/scratch/kocevski/698687/ft2_4FGL_J2318.2+1915_daily_bin1694.fits sctable="SC_DATA" outfile=/scratch/kocevski/698687/ltcube_678412801_678672001_4FGL_J2318.2+1915_daily_bin1694.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/698687/ft2_4FGL_J2318.2+1915_daily_bin1694.fits
.....................!
real 14.04
user 13.63
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/698687/ft1_filtered_4FGL_J2318.2+1915_daily_bin1694.fits evtable="EVENTS" scfile=/scratch/kocevski/698687/ft2_4FGL_J2318.2+1915_daily_bin1694.fits sctable="SC_DATA" expcube=/scratch/kocevski/698687/ltcube_678412801_678672001_4FGL_J2318.2+1915_daily_bin1694.fits outfile=/scratch/kocevski/698687/expmap_678412801_678672001_4FGL_J2318.2+1915_daily_bin1694.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/698687/ltcube_678412801_678672001_4FGL_J2318.2+1915_daily_bin1694.fits
.....................!
real 195.57
user 188.14
sys 4.44

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

Setting source of interest to:
4FGL J2318.2+1915 @ 349.557 19.256

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/698687/ft1_filtered_4FGL_J2318.2+1915_daily_bin1694.fits scfile=/scratch/kocevski/698687/ft2_4FGL_J2318.2+1915_daily_bin1694.fits outfile=/scratch/kocevski/698687/cmap_678412801_678672001_4FGL_J2318.2+1915_daily_bin1694.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.557 yref=19.256 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.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/698687/ft1_filtered_4FGL_J2318.2+1915_daily_bin1694.fits scfile=/scratch/kocevski/698687/ft2_4FGL_J2318.2+1915_daily_bin1694.fits outfile=/scratch/kocevski/698687/cmap_HighResolution_678412801_678672001_4FGL_J2318.2+1915_daily_bin1694.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.557 yref=19.256 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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/698687/ft1_filtered_4FGL_J2318.2+1915_daily_bin1694.fits evtable="EVENTS" scfile=/scratch/kocevski/698687/ft2_4FGL_J2318.2+1915_daily_bin1694.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/698687/Model_4FGL_J2318.2+1915_daily_bin1694.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/698687/ft1_filtered_4FGL_J2318.2+1915_daily_bin1694.fits.....................!
real 89.97
user 88.45
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/698687/ft1_filtered_4FGL_J2318.2+1915_daily_bin1694.fits', '/scratch/kocevski/698687/ft2_4FGL_J2318.2+1915_daily_bin1694.fits', expMap='/scratch/kocevski/698687/expmap_678412801_678672001_4FGL_J2318.2+1915_daily_bin1694.fits', expCube='/scratch/kocevski/698687/ltcube_678412801_678672001_4FGL_J2318.2+1915_daily_bin1694.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/698687/Model_4FGL_J2318.2+1915_daily_bin1694.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2318.2+1915'

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  2.396e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  2.667e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
374        Scale:  6.043e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/698687/ft1_filtered_4FGL_J2318.2+1915_daily_bin1694.fits
Spacecraft file(s): /scratch/kocevski/698687/ft2_4FGL_J2318.2+1915_daily_bin1694.fits
Exposure map: /scratch/kocevski/698687/expmap_678412801_678672001_4FGL_J2318.2+1915_daily_bin1694.fits
Exposure cube: /scratch/kocevski/698687/ltcube_678412801_678672001_4FGL_J2318.2+1915_daily_bin1694.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/698687/Model_4FGL_J2318.2+1915_daily_bin1694.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) = 8178.02617085

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.349       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.051       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.0460       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8129       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.859       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.9838       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.6024       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .86069       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.7009       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10897E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .89611       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0781       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8177.965     FROM MIGRAD    STATUS=CONVERGED    400 CALLS     1757 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .49252        .12491E-07** at limit **
   2  norm          .10000E-03    .78117        .28929E-06** at limit **
   3  Prefactor     26.354        24.422        .73203E-05    .23637E-04
   4  Prefactor     14.051        10.698        .10399E-06   -.69108E-04
   5  Prefactor     .10000E-03    6.1049        .31267E-05** at limit **
   6  Prefactor     1.0458        .20639       -.41999E-07    .89644E-03
   7  Prefactor     .10000E-03    8.1395        .43663E-05** at limit **
   8  Prefactor     1.8116        2.1082        .35796E-06   -.20382E-02
   9  Prefactor     11.858        12.838       -.14035E-05    .14106E-03
  10  Prefactor     .10000E-03    12.505        .53534E-05** at limit **
  11  Prefactor     .10000E-03    13.133       -.38482E-05** at limit **
  12  Prefactor     4.9830        6.3182        .98465E-07   -.71344E-03
  13  Prefactor     9.6114        9.4645        .50401E-05    .60940E-03
  14  Prefactor     .10000E-03    7.5197       -.22235E-05** at limit **
  15  norm          .84094        5.3264       -.39028E-05    .10258E-02
  16  Prefactor     6.7108        6.6999        .13764E-05    .10902E-02
  17  norm          .10000E-03    4.4678       -.77892E-07** at limit **
  18  Prefactor     .10002E-03    2.9915       -.18637E-05** at limit **
  19  Normalizat    .89622        .19975       -.31133E-06    .40054E-03
  20  Prefactor     1.0780        .11626        .10318E-06    .52832E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 26.3542
  Prefactor  = 14.0511
  Prefactor  = 0.0001
  Prefactor  = 1.04583
  Prefactor  = 0.0001
  Prefactor  = 1.81159
  Prefactor  = 11.858
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.983
  Prefactor  = 9.61139
  Prefactor  = 0.0001
  norm       = 0.840935
  Prefactor  = 6.71081
  norm       = 0.0001
  Prefactor  = 0.000100018
  Normalizat = 0.896218
  Prefactor  = 1.07804
 **********
 **   18 **HESSE 
 **********

 FCN=   8177.965     FROM HESSE     STATUS=OK           295 CALLS     2052 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .49394        .61970E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .79198        .77907E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     26.354        24.396        .78043E-04   -1.4681    
   4  Prefactor     14.051        10.680        .10685E-03   -1.4958    
   5  Prefactor     .10000E-03    6.1030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.0458        .20713        .17094E-04   -1.5503    
   7  Prefactor     .10000E-03    8.2558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.8116        5.3237        .15513E-02   -1.5439    
   9  Prefactor     11.858        12.840        .11633E-03   -1.5019    
  10  Prefactor     .10000E-03    12.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.9830        6.5038        .90070E-03   -1.5261    
  13  Prefactor     9.6114        9.6226        .12932E-03   -1.5088    
  14  Prefactor     .10000E-03    7.5326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .84094        22.932        .33357E-02   -1.5525    
  16  Prefactor     6.7108        6.9271        .15501E-03   -1.5190    
  17  norm          .10000E-03    4.4710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10002E-03    6.8819        .29809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .89622        .22760        .34511E-03   -.96593    
  20  Prefactor     1.0780        .13350        .19206E-03   -.90172    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74699e-08
Minuit parameter uncertainties:
  1  3.38717e-07
  2  1.17304e-06
  3  24.4056
  4  10.6815
  5  4.54534e-06
  6  0.207133
  7  1.45385e-05
  8  5.32511
  9  12.8427
  10  9.08617e-06
  11  1.01919e-05
  12  6.50472
  13  9.62415
  14  2.71021e-06
  15  8.78597
  16  6.92797
  17  4.86685e-09
  18  0.00070393
  19  0.227844
  20  0.133545
Done.

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

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  4.983e+00  6.505e+00  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  2.667e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
374        Scale:  6.043e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  1.078e+00  1.335e-01  0.000e+00  1.000e+01 ( 1.000e+00)
512        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
513        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
510   Normalization:  8.962e-01  2.278e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.74
Ra Dec: 349.557 19.256
Photon Flux Upper Limit: 1.34e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.06e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/698687/likelihoodResults_678412801_678672001_4FGL_J2318.2+1915_daily_bin1694.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) = 8177.70917617
delta logL = 0.255475573735

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8177.68585137
delta logL = 0.278800371879

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5008       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9010       1.0000          .0000       10.000    
     3 'Normalizat'    .86021       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0941       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8177.686     FROM MIGRAD    STATUS=FAILED        92 CALLS      289 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5010        67.307        .51253E-03   -.96408E-03
   2  Index         3.9015        6.6287        .80223E-02    .33396E-04
   3  Normalizat    .86005        .19241        .35156E-03    .71143E-06
   4  Prefactor     1.0941        .11926        .19081E-03    .58391E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8177.686     FROM SIMPLEX   STATUS=UNCHANGED     87 CALLS      376 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5010        67.307        .14867E-03   -.96408E-03
   2  Index         3.9015        6.6287        .16072E-02    .33396E-04
   3  Normalizat    .86005        .19241        .20322E-03    .71143E-06
   4  Prefactor     1.0941        .11926        .79868E-04    .58391E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8177.686     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      407 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5012        4.9191        .20501E-04   -.38873E-03
   2  Index         3.9014        2.1468        .32089E-03   -.34578E-04
   3  Normalizat    .86005        .22726        .14063E-04    .11156E-04
   4  Prefactor     1.0941        .13526        .76323E-05    .45580E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.50124
  Index      = 3.90142
  Normalizat = 0.860054
  Prefactor  = 1.09412
 **********
 **   18 **HESSE 
 **********

 FCN=   8177.686     FROM HESSE     STATUS=OK            23 CALLS      430 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5012        4.7010        .82005E-06   -1.5463    
   2  Index         3.9014        2.0576        .12836E-04   -.22152    
   3  Normalizat    .86005        .22738        .28125E-05   -.97878    
   4  Prefactor     1.0941        .13529        .15265E-05   -.89655    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.4564e-11
Minuit parameter uncertainties:
  1  4.70219
  2  2.12407
  3  0.227631
  4  0.135336
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/698687': 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) = 8177.68585089
delta logL = 0.278800850095

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  1.501e+00  4.702e+00  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  3.901e+00  2.124e+00  0.000e+00  1.000e+01 (-1.000e+00)
374        Scale:  6.043e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  1.094e+00  1.353e-01  0.000e+00  1.000e+01 ( 1.000e+00)
512        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
513        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
510   Normalization:  8.601e-01  2.276e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.36
Ra Dec: 349.557 19.256
Photon Index (Free Index): 3.90 +/- 2.12
Photon Flux (Free Index): 5.80e-08 +/- 5.77e-08
Energy Flux (Free Index): 8.83e-06 +/- 9.06e-06

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/698687/cmap_HighResolution_678412801_678672001_4FGL_J2318.2+1915_daily_bin1694.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', comment='SUCCESS', energy_flux2='8.83e-06', dlogl='2.79e-01', photon_flux2='5.80e-08', job_status='DONE', time_completed='2022-07-05 04:15:05.560987', photon_index_error2='2.12', photon_index2='3.90', ts='0.74', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='1.34e-07', energy_flux_error2='9.06e-06', EG='0.90', time_epoch_completed='1657019705.56', return_code='0', job_id='698687', GAL2='1.09', EG2='0.86', return_code2='0', photon_flux_error2='5.77e-08', ts2='1.36', photon_index='2.67' WHERE bin_id='1694' AND source_name='4FGL J2318.2+1915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul  5 04:15:05 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 698687: <4FGL_J2318.2+1915_daily_bin1694> in cluster <slac> Done

Job <4FGL_J2318.2+1915_daily_bin1694> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Jul  5 04:00:16 2022
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul  5 04:00:34 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul  5 04:00:34 2022
Terminated at Tue Jul  5 04:15:06 2022
Results reported at Tue Jul  5 04:15:06 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2318.2+1915_daily_bin1694 349.557 19.256 678412801 678672001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2318.2+1915 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   677.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   871 sec.
    Turnaround time :                            890 sec.

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

