/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 25 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 = 7535
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2318.2+1915_daily_bin900
RA = 349.557, Dec = 19.256
tmin = 472608001, tmax = 472867201
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='746719', job_status='RUN', time_executed='2021-09-29 11:16:14.852442', time_epoch_executed='1632939374.85' WHERE source_name='4FGL J2318.2+1915' and cadence='daily' and bin_id='900'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/746719

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/746719/ft1_4FGL_J2318.2+1915_daily_bin900.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/746719/ft2_4FGL_J2318.2+1915_daily_bin900.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/746719/ft1_4FGL_J2318.2+1915_daily_bin900.fits outfile=/scratch/kocevski/746719/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin900.fits ra=349.557 dec=19.256 rad=12.0 tmin=472608001.0 tmax=472867201.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.50
user 3.29
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/746719/ft1_filtered_4FGL_J2318.2+1915_daily_bin900.fits evtable="EVENTS" scfile=/scratch/kocevski/746719/ft2_4FGL_J2318.2+1915_daily_bin900.fits sctable="SC_DATA" expcube=/scratch/kocevski/746719/ltcube_472608001_472867201_4FGL_J2318.2+1915_daily_bin900.fits outfile=/scratch/kocevski/746719/expmap_472608001_472867201_4FGL_J2318.2+1915_daily_bin900.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/746719/ltcube_472608001_472867201_4FGL_J2318.2+1915_daily_bin900.fits
.....................!
real 191.69
user 186.68
sys 4.48

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/746719/ft1_filtered_4FGL_J2318.2+1915_daily_bin900.fits scfile=/scratch/kocevski/746719/ft2_4FGL_J2318.2+1915_daily_bin900.fits outfile=/scratch/kocevski/746719/cmap_472608001_472867201_4FGL_J2318.2+1915_daily_bin900.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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/746719/ft1_filtered_4FGL_J2318.2+1915_daily_bin900.fits scfile=/scratch/kocevski/746719/ft2_4FGL_J2318.2+1915_daily_bin900.fits outfile=/scratch/kocevski/746719/cmap_HighResolution_472608001_472867201_4FGL_J2318.2+1915_daily_bin900.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.55
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/746719/ft1_filtered_4FGL_J2318.2+1915_daily_bin900.fits', '/scratch/kocevski/746719/ft2_4FGL_J2318.2+1915_daily_bin900.fits', expMap='/scratch/kocevski/746719/expmap_472608001_472867201_4FGL_J2318.2+1915_daily_bin900.fits', expCube='/scratch/kocevski/746719/ltcube_472608001_472867201_4FGL_J2318.2+1915_daily_bin900.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/746719/Model_4FGL_J2318.2+1915_daily_bin900.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/746719/ft1_filtered_4FGL_J2318.2+1915_daily_bin900.fits
Spacecraft file(s): /scratch/kocevski/746719/ft2_4FGL_J2318.2+1915_daily_bin900.fits
Exposure map: /scratch/kocevski/746719/expmap_472608001_472867201_4FGL_J2318.2+1915_daily_bin900.fits
Exposure cube: /scratch/kocevski/746719/ltcube_472608001_472867201_4FGL_J2318.2+1915_daily_bin900.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/746719/Model_4FGL_J2318.2+1915_daily_bin900.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) = 8312.65723574

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.6348       1.0000         .10000E-03   10000.    
     2 'norm      '    .10427E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.098       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.886       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .79412       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.6247       1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.361       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.0520       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.6605       1.0000         .10000E-03   10000.    
    10 'Prefactor '    25.712       1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.166       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13879E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.5040       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.9696       1.0000         .10000E-03   10000.    
    15 'norm      '    .31834E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.7610       1.0000         .10000E-03   10000.    
    17 'norm      '    9.6420       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0955       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .83291       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=   8312.593     FROM MIGRAD    STATUS=CONVERGED    432 CALLS     1836 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.6348        3.3398        .46177E-07   -.42058E-03
   2  norm          .10000E-03    .91009       -.26518E-06** at limit **
   3  Prefactor     18.098        24.968        .17340E-07    .40279E-05
   4  Prefactor     10.884        10.112       -.61734E-07   -.46493E-03
   5  Prefactor     .83685        16.625       -.44943E-05    .13457E-03
   6  Prefactor     3.6247        .33032       -.29469E-08    .75914E-03
   7  Prefactor     17.362        10.914       -.35769E-07   -.22210E-03
   8  Prefactor     2.0509        8.8800        .17046E-06   -.18040E-04
   9  Prefactor     4.6610        8.6370        .63288E-06   -.28403E-03
  10  Prefactor     25.712        19.717       -.20390E-07   -.33925E-04
  11  Prefactor     19.164        21.798        .50783E-07    .14838E-04
  12  Prefactor     .10000E-03    4.1699        .11365E-05** at limit **
  13  Prefactor     6.5143        10.370        .21371E-05    .60964E-03
  14  Prefactor     4.9619        19.112       -.14620E-05   -.75131E-04
  15  norm          .10037E-03    7.1605       -.39897E-05** at limit **
  16  Prefactor     3.7649        6.7932        .34501E-05    .10777E-03
  17  norm          9.6430        16.980       -.12127E-06    .16901E-04
  18  Prefactor     .10000E-03    3.4440        .77352E-07** at limit **
  19  Normalizat    1.0955        .21677       -.36755E-06    .39253E-03
  20  Prefactor     .83290        .12128        .90893E-08    .40476E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.63476
  norm       = 0.0001
  Prefactor  = 18.0981
  Prefactor  = 10.8837
  Prefactor  = 0.836851
  Prefactor  = 3.62472
  Prefactor  = 17.3616
  Prefactor  = 2.05089
  Prefactor  = 4.66102
  Prefactor  = 25.7119
  Prefactor  = 19.1644
  Prefactor  = 0.0001
  Prefactor  = 6.51435
  Prefactor  = 4.96192
  norm       = 0.000100374
  Prefactor  = 3.7649
  norm       = 9.64299
  Prefactor  = 0.0001
  Normalizat = 1.09551
  Prefactor  = 0.832896
 **********
 **   18 **HESSE 
 **********

 FCN=   8312.593     FROM HESSE     STATUS=OK           313 CALLS     2149 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.6348        3.3545        .49602E-03   -1.5120    
   2  norm          .10000E-03    .94429        .16969E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     18.098        24.984        .94146E-04   -1.4857    
   4  Prefactor     10.884        10.079        .12143E-03   -1.5048    
   5  Prefactor     .83685        70.333        .62867E-02   -1.5525    
   6  Prefactor     3.6247        .32999        .14528E-04   -1.5327    
   7  Prefactor     17.362        10.919        .96123E-04   -1.4874    
   8  Prefactor     2.0509        8.8206        .28857E-03   -1.5422    
   9  Prefactor     4.6610        8.6786        .93210E-03   -1.5276    
  10  Prefactor     25.712        19.735        .79001E-04   -1.4693    
  11  Prefactor     19.164        21.803        .91487E-04   -1.4832    
  12  Prefactor     .10000E-03    12.790        .33433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.5143        11.643        .15737E-03   -1.5197    
  14  Prefactor     4.9619        18.536        .18040E-03   -1.5262    
  15  norm          .10037E-03    13.413        .60822E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.7649        7.8085        .10409E-02   -1.5320    
  17  norm          9.6430        16.981        .12905E-03   -1.5087    
  18  Prefactor     .10000E-03    3.4666        .16518E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0955        .25255        .34032E-03   -.89896    
  20  Prefactor     .83290        .14172        .22481E-03   -.98527    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54862e-09
Minuit parameter uncertainties:
  1  3.35455
  2  1.28516e-05
  3  24.9984
  4  10.081
  5  15.3616
  6  0.329992
  7  10.9205
  8  8.5084
  9  8.68094
  10  19.7402
  11  21.8116
  12  9.89973e-05
  13  11.6473
  14  18.557
  15  0.00448119
  16  7.81065
  17  16.9895
  18  7.16807e-06
  19  0.252829
  20  0.141785
Done.

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

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  1.000e-04  9.900e-05  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:  8.329e-01  1.418e-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:  1.096e+00  2.528e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 349.557 19.256
Photon Flux Upper Limit: 9.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/746719/likelihoodResults_472608001_472867201_4FGL_J2318.2+1915_daily_bin900.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) = 8312.59375624
delta logL = -0.000370754756659

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8312.59338553
delta logL = -4.9541995395e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11918E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7682       1.0000          .0000       10.000    
     3 'Normalizat'    1.0959       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83270       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.

 FCN=   8312.089     FROM MIGRAD    STATUS=CONVERGED    168 CALLS      342 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11837E-01    .14796        .23246E-02    .20342E-01
   2  Index         7.0115        2.7630        .22694        .17381E-03
   3  Normalizat    1.0192        .35955E-01    .79290E-01   -.29633E-03
   4  Prefactor     .86104        .21131E-01    .44141E-01    .13687E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0118368
  Index      = 7.01152
  Normalizat = 1.01918
  Prefactor  = 0.861038
 **********
 **   18 **HESSE 
 **********

 FCN=   8312.089     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      377 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11837E-01    .66599        .10599E-03   -1.5686    
   2  Index         7.0115        8.5054        .89284E-02    .41403    
   3  Normalizat    1.0192        .16383        .35101E-03   -.92391    
   4  Prefactor     .86104        .94681E-01    .22145E-03   -.97516    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.57308e-10
Minuit parameter uncertainties:
  1  0.176825
  2  9.00531
  3  0.163914
  4  0.0946986
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/746719': 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) = 8312.08855505
delta logL = 0.504830429585

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  1.184e-02  1.768e-01  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  7.012e+00  9.005e+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:  8.610e-01  9.470e-02  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:  1.019e+00  1.639e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.10
Ra Dec: 349.557 19.256
Photon Index (Free Index): 7.01 +/- 9.01
Photon Flux (Free Index): 6.00e-08 +/- 6.00e-08
Energy Flux (Free Index): 7.17e-06 +/- 7.90e-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/746719/cmap_HighResolution_472608001_472867201_4FGL_J2318.2+1915_daily_bin900.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.65e-03', comment='SUCCESS', energy_flux2='7.17e-06', dlogl='5.05e-01', photon_flux2='6.00e-08', job_status='DONE', time_completed='2021-09-29 11:28:30.041652', photon_index_error2='9.01', photon_index2='7.01', ts='-0.00', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='9.73e-08', energy_flux_error2='7.90e-06', EG='1.10', time_epoch_completed='1632940110.04', return_code='0', job_id='746719', GAL2='0.86', EG2='1.02', return_code2='102', photon_flux_error2='6.00e-08', ts2='1.10', photon_index='2.67' WHERE bin_id='900' AND source_name='4FGL J2318.2+1915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:28:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 746719: <4FGL_J2318.2+1915_daily_bin900> in cluster <slac> Done

Job <4FGL_J2318.2+1915_daily_bin900> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 11:15:35 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 11:15:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 11:15:37 2021
Terminated at Wed Sep 29 11:28:30 2021
Results reported at Wed Sep 29 11:28:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2318.2+1915_daily_bin900 349.557 19.256 472608001 472867201 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 :                                   701.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             322.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   773 sec.
    Turnaround time :                            775 sec.

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

