/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 213 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 = 7431
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2318.2+1915_daily_bin352
RA = 349.557, Dec = 19.256
tmin = 330566401, tmax = 330825601
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='743810', job_status='RUN', time_executed='2021-09-29 11:09:22.598950', time_epoch_executed='1632938962.6' WHERE source_name='4FGL J2318.2+1915' and cadence='daily' and bin_id='352'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/743810

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/743810/ft1_4FGL_J2318.2+1915_daily_bin352.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/743810/ft2_4FGL_J2318.2+1915_daily_bin352.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/743810/ft1_4FGL_J2318.2+1915_daily_bin352.fits outfile=/scratch/kocevski/743810/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin352.fits ra=349.557 dec=19.256 rad=12.0 tmin=330566401.0 tmax=330825601.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.99
user 3.77
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/743810/ft2_4FGL_J2318.2+1915_daily_bin352.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/743810/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin352.fits evtable="EVENTS" outfile="/scratch/kocevski/743810/ft1_filtered_4FGL_J2318.2+1915_daily_bin352.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/743810/ft1_filtered_4FGL_J2318.2+1915_daily_bin352.fits" evtable="EVENTS" scfile=/scratch/kocevski/743810/ft2_4FGL_J2318.2+1915_daily_bin352.fits sctable="SC_DATA" outfile=/scratch/kocevski/743810/ltcube_330566401_330825601_4FGL_J2318.2+1915_daily_bin352.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/743810/ft2_4FGL_J2318.2+1915_daily_bin352.fits
.....................!
real 11.72
user 11.33
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/743810/ft1_filtered_4FGL_J2318.2+1915_daily_bin352.fits evtable="EVENTS" scfile=/scratch/kocevski/743810/ft2_4FGL_J2318.2+1915_daily_bin352.fits sctable="SC_DATA" expcube=/scratch/kocevski/743810/ltcube_330566401_330825601_4FGL_J2318.2+1915_daily_bin352.fits outfile=/scratch/kocevski/743810/expmap_330566401_330825601_4FGL_J2318.2+1915_daily_bin352.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/743810/ltcube_330566401_330825601_4FGL_J2318.2+1915_daily_bin352.fits
.....................!
real 192.45
user 187.24
sys 4.86

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/743810/ft1_filtered_4FGL_J2318.2+1915_daily_bin352.fits scfile=/scratch/kocevski/743810/ft2_4FGL_J2318.2+1915_daily_bin352.fits outfile=/scratch/kocevski/743810/cmap_330566401_330825601_4FGL_J2318.2+1915_daily_bin352.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/743810/ft1_filtered_4FGL_J2318.2+1915_daily_bin352.fits scfile=/scratch/kocevski/743810/ft2_4FGL_J2318.2+1915_daily_bin352.fits outfile=/scratch/kocevski/743810/cmap_HighResolution_330566401_330825601_4FGL_J2318.2+1915_daily_bin352.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.54
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1874       1.0000         .10000E-03   10000.    
     2 'norm      '    2.1849       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13091E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.0053       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .56665       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.744       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.8076       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.905       1.0000         .10000E-03   10000.    
    11 'Prefactor '    32.421       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.137       1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.635       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.746       1.0000         .10000E-03   10000.    
    15 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    25.127       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.4737       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0279       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .75821       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=   6289.828     FROM MIGRAD    STATUS=CONVERGED    398 CALLS     2026 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1872        2.1308       -.15040E-06   -.17611E-03
   2  norm          2.1849        1.5663       -.10468E-06    .63280E-05
   3  Prefactor     .10000E-03    64.979       -.14351E-05** at limit **
   4  Prefactor     2.0043        3.3051        .11804E-05   -.17750E-02
   5  Prefactor     .10000E-03    8.4119        .84807E-07** at limit **
   6  Prefactor     .56659        .17165       -.12033E-07    .33136E-03
   7  Prefactor     13.745        10.200       -.10815E-05   -.35434E-04
   8  Prefactor     7.8076        8.7549       -.80399E-06   -.37384E-04
   9  Prefactor     .10000E-03    5.8353        .57254E-07** at limit **
  10  Prefactor     17.907        16.895        .57809E-06    .16352E-04
  11  Prefactor     32.414        27.495       -.52059E-05   -.69461E-04
  12  Prefactor     12.138        7.3453       -.25097E-06    .23465E-05
  13  Prefactor     18.639        11.328       -.55999E-05   -.28354E-03
  14  Prefactor     12.747        19.690       -.66673E-07    .68069E-05
  15  norm          .10000E-03    3.7474        .13850E-06** at limit **
  16  Prefactor     .10000E-03    1.7096        .12196E-06** at limit **
  17  norm          25.128        16.649       -.37666E-06   -.96034E-06
  18  Prefactor     4.4739        4.5984        .28098E-07   -.18155E-05
  19  Normalizat    1.0280        .20446        .12859E-05    .61523E-05
  20  Prefactor     .75818        .11740        .61960E-06    .32144E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.1872
  norm       = 2.18494
  Prefactor  = 0.0001
  Prefactor  = 2.00434
  Prefactor  = 0.0001
  Prefactor  = 0.566591
  Prefactor  = 13.7453
  Prefactor  = 7.80764
  Prefactor  = 0.0001
  Prefactor  = 17.9073
  Prefactor  = 32.4136
  Prefactor  = 12.1382
  Prefactor  = 18.6392
  Prefactor  = 12.7466
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 25.1282
  Prefactor  = 4.47392
  Normalizat = 1.02797
  Prefactor  = 0.758177
 **********
 **   18 **HESSE 
 **********

 FCN=   6289.828     FROM HESSE     STATUS=OK           299 CALLS     2325 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1872        2.0918        .14872E-03   -1.5490    
   2  norm          2.1849        1.5841        .81556E-04   -1.5412    
   3  Prefactor     .10000E-03    66.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.0043        8.1270        .14620E-02   -1.5425    
   5  Prefactor     .10000E-03    8.4234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .56659        .17089        .16995E-04   -1.5557    
   7  Prefactor     13.745        10.205        .10804E-03   -1.4966    
   8  Prefactor     7.8076        8.7476        .14351E-03   -1.5149    
   9  Prefactor     .10000E-03    5.8686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.907        16.900        .94652E-04   -1.4861    
  11  Prefactor     32.414        27.540        .70373E-04   -1.4569    
  12  Prefactor     12.138        7.3440        .11498E-03   -1.5011    
  13  Prefactor     18.639        11.369        .92780E-04   -1.4844    
  14  Prefactor     12.747        19.690        .11220E-03   -1.4994    
  15  norm          .10000E-03    3.7781        .14995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.7147        .10127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          25.128        16.657        .79914E-04   -1.4705    
  18  Prefactor     4.4739        4.5963        .16723E-03   -1.5285    
  19  Normalizat    1.0280        .23789        .29365E-03   -.92099    
  20  Prefactor     .75818        .13669        .19873E-03   -1.0129    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02645e-08
Minuit parameter uncertainties:
  1  2.09196
  2  1.58416
  3  0.000106839
  4  8.07367
  5  4.36603e-07
  6  0.170887
  7  10.2062
  8  8.74905
  9  3.4178e-06
  10  16.9041
  11  27.551
  12  7.34459
  13  11.3703
  14  19.6996
  15  4.47389e-05
  16  7.87362e-06
  17  16.6597
  18  4.59664
  19  0.238137
  20  0.136747
Done.

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

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  1.214e+01  7.345e+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:  7.582e-01  1.367e-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.028e+00  2.381e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.20
Ra Dec: 349.557 19.256
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 8.84e-08 +/- 5.34e-08
Energy Flux (Fixed Index): 2.18e-05 +/- 1.32e-05

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) = 6289.80229026
delta logL = 0.0257474729915

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6289.79902117
delta logL = 0.0290165664692

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6289.799     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      267 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.310        9.1727        .10979E-03    .14083E-02
   2  Index         2.5037        .67354        .83582E-02    .24713E-03
   3  Normalizat    1.0407        .23621        .29211E-03   -.14342E-03
   4  Prefactor     .75281        .13714        .19937E-03   -.32432E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.3103
  Index      = 2.50375
  Normalizat = 1.04072
  Prefactor  = 0.752807
 **********
 **   18 **HESSE 
 **********

 FCN=   6289.799     FROM HESSE     STATUS=OK            23 CALLS      290 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.310        8.9321        .21957E-04   -1.4978    
   2  Index         2.5037        .65509        .33433E-03   -.52273    
   3  Normalizat    1.0407        .23608        .11684E-04   -.91678    
   4  Prefactor     .75281        .13710        .39874E-04   -1.0149    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53583e-09
Minuit parameter uncertainties:
  1  8.933
  2  0.657608
  3  0.236316
  4  0.137158
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/743810': 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) = 6289.79901975
delta logL = 0.0290179803733

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  1.331e+01  8.933e+00  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  2.504e+00  6.576e-01  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:  7.528e-01  1.372e-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.041e+00  2.363e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.23
Ra Dec: 349.557 19.256
Photon Index (Free Index): 2.50 +/- 0.66
Photon Flux (Free Index): 8.01e-08 +/- 6.00e-08
Energy Flux (Free Index): 2.31e-05 +/- 1.53e-05

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/743810/cmap_HighResolution_330566401_330825601_4FGL_J2318.2+1915_daily_bin352.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.84e-08', energy_flux2='2.31e-05', photon_flux_error='5.34e-08', dlogl='2.90e-02', energy_flux='2.18e-05', photon_flux2='8.01e-08', job_status='DONE', time_completed='2021-09-29 11:18:35.091053', photon_index_error2='0.66', photon_index2='2.50', ts='6.20', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', energy_flux_error2='1.53e-05', EG='1.03', time_epoch_completed='1632939515.09', return_code='0', job_id='743810', GAL2='0.75', EG2='1.04', return_code2='0', energy_flux_error='1.32e-05', photon_flux_error2='6.00e-08', ts2='6.23', photon_index='2.67' WHERE bin_id='352' AND source_name='4FGL J2318.2+1915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:18:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 743810: <4FGL_J2318.2+1915_daily_bin352> in cluster <slac> Done

Job <4FGL_J2318.2+1915_daily_bin352> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 11:05:39 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 11:05:42 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:05:42 2021
Terminated at Wed Sep 29 11:18:35 2021
Results reported at Wed Sep 29 11:18:35 2021

Your job looked like:

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

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

