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


Performing analysis on: 4FGL_J2318.2+1915_daily_bin392
RA = 349.557, Dec = 19.256
tmin = 340934401, tmax = 341193601
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='743875', job_status='RUN', time_executed='2021-09-29 11:08:04.998461', time_epoch_executed='1632938885.0' WHERE source_name='4FGL J2318.2+1915' and cadence='daily' and bin_id='392'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/743875

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/743875/ft1_4FGL_J2318.2+1915_daily_bin392.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/743875/ft2_4FGL_J2318.2+1915_daily_bin392.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/743875/ft1_4FGL_J2318.2+1915_daily_bin392.fits outfile=/scratch/kocevski/743875/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin392.fits ra=349.557 dec=19.256 rad=12.0 tmin=340934401.0 tmax=341193601.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.39
user 3.14
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/743875/ft1_filtered_4FGL_J2318.2+1915_daily_bin392.fits" evtable="EVENTS" scfile=/scratch/kocevski/743875/ft2_4FGL_J2318.2+1915_daily_bin392.fits sctable="SC_DATA" outfile=/scratch/kocevski/743875/ltcube_340934401_341193601_4FGL_J2318.2+1915_daily_bin392.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/743875/ft2_4FGL_J2318.2+1915_daily_bin392.fits
.....................!
real 12.11
user 11.76
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/743875/ft1_filtered_4FGL_J2318.2+1915_daily_bin392.fits evtable="EVENTS" scfile=/scratch/kocevski/743875/ft2_4FGL_J2318.2+1915_daily_bin392.fits sctable="SC_DATA" expcube=/scratch/kocevski/743875/ltcube_340934401_341193601_4FGL_J2318.2+1915_daily_bin392.fits outfile=/scratch/kocevski/743875/expmap_340934401_341193601_4FGL_J2318.2+1915_daily_bin392.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/743875/ltcube_340934401_341193601_4FGL_J2318.2+1915_daily_bin392.fits
.....................!
real 190.61
user 184.96
sys 5.22

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/743875/ft1_filtered_4FGL_J2318.2+1915_daily_bin392.fits scfile=/scratch/kocevski/743875/ft2_4FGL_J2318.2+1915_daily_bin392.fits outfile=/scratch/kocevski/743875/cmap_340934401_341193601_4FGL_J2318.2+1915_daily_bin392.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.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/743875/ft1_filtered_4FGL_J2318.2+1915_daily_bin392.fits scfile=/scratch/kocevski/743875/ft2_4FGL_J2318.2+1915_daily_bin392.fits outfile=/scratch/kocevski/743875/cmap_HighResolution_340934401_341193601_4FGL_J2318.2+1915_daily_bin392.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8297       1.0000         .10000E-03   10000.    
     2 'norm      '    2.0479       1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.079       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.234       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12718E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.0262       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .85665       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.4604       1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.086       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.6737       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10199E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    29.882       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0151       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .85826       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=   7039.446     FROM MIGRAD    STATUS=CONVERGED    467 CALLS     1863 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8301        2.9630       -.30037E-07   -.66343E-04
   2  norm          2.0480        1.3896        .18476E-07    .46714E-04
   3  Prefactor     19.078        17.743       -.14757E-05   -.12156E-03
   4  Prefactor     11.236        8.9309       -.56455E-06   -.11958E-03
   5  Prefactor     .61325E-01    10.513       -.53304E-07   -.52121E-05
   6  Prefactor     .10000E-03    .33240E-01    .51161E-08** at limit **
   7  Prefactor     3.0219        10.800       -.16809E-05   -.11150E-03
   8  Prefactor     .86165        3.3953       -.48835E-08   -.55670E-04
   9  Prefactor     .10000E-03    4.9476       -.11863E-08** at limit **
  10  Prefactor     .10000E-03    9.4097        .70513E-07** at limit **
  11  Prefactor     4.4483        10.419        .17408E-05   -.41344E-03
  12  Prefactor     18.088        8.5231       -.74938E-06   -.24908E-03
  13  Prefactor     .10000E-03    6.1886       -.33448E-07** at limit **
  14  Prefactor     .10000E-03    9.0396       -.69255E-07** at limit **
  15  norm          2.6809        9.2080       -.49159E-07   -.78165E-04
  16  Prefactor     .10000E-03    7.0797       -.38769E-07** at limit **
  17  norm          29.885        18.599       -.34676E-06   -.31257E-04
  18  Prefactor     .10000E-03    2.6102        .43810E-08** at limit **
  19  Normalizat    1.0148        .20128        .62180E-06    .66196E-05
  20  Prefactor     .85841        .11096        .66641E-07    .48786E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.83008
  norm       = 2.04801
  Prefactor  = 19.0777
  Prefactor  = 11.236
  Prefactor  = 0.061325
  Prefactor  = 0.0001
  Prefactor  = 3.02188
  Prefactor  = 0.861654
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.44826
  Prefactor  = 18.0878
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.68094
  Prefactor  = 0.0001
  norm       = 29.8846
  Prefactor  = 0.0001
  Normalizat = 1.01481
  Prefactor  = 0.858407
 **********
 **   18 **HESSE 
 **********

 FCN=   7039.446     FROM HESSE     STATUS=OK           307 CALLS     2170 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8301        2.9693        .12199E-03   -1.5317    
   2  norm          2.0480        1.3880        .78997E-04   -1.5422    
   3  Prefactor     19.078        17.936        .91694E-04   -1.4834    
   4  Prefactor     11.236        8.9563        .11953E-03   -1.5037    
   5  Prefactor     .61325E-01    10.573        .90310E-01   -1.5658    
   6  Prefactor     .10000E-03    .38735E-01    .29644E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.0219        11.026        .23327E-03   -1.5360    
   8  Prefactor     .86165        10.501        .29199E-02   -1.5522    
   9  Prefactor     .10000E-03    4.9661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.4285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.4483        15.023        .95330E-03   -1.5286    
  12  Prefactor     18.088        8.6425        .94179E-04   -1.4857    
  13  Prefactor     .10000E-03    6.1974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.0496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.6809        9.2705        .24923E-03   -1.5380    
  16  Prefactor     .10000E-03    7.1377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          29.885        18.635        .73293E-04   -1.4614    
  18  Prefactor     .10000E-03    2.6262        .13237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0148        .23639        .30868E-03   -.92536    
  20  Prefactor     .85841        .13202        .19007E-03   -.97610    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8633e-08
Minuit parameter uncertainties:
  1  2.96941
  2  1.38803
  3  17.9412
  4  8.95734
  5  1.60946
  6  2.41656e-07
  7  11.0335
  8  6.01692
  9  1.62542e-06
  10  3.51552e-06
  11  15.0354
  12  8.64305
  13  1.5731e-06
  14  8.37965e-06
  15  9.27547
  16  7.32636e-07
  17  18.6388
  18  1.17261e-06
  19  0.236631
  20  0.132073
Done.

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

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  1.809e+01  8.643e+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:  8.584e-01  1.321e-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.015e+00  2.366e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.88
Ra Dec: 349.557 19.256
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 1.32e-07 +/- 6.28e-08
Energy Flux (Fixed Index): 3.26e-05 +/- 1.56e-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) = 7038.99744115
delta logL = 0.44811012548

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7038.89672744
delta logL = 0.548823838255

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.441       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1579       1.0000          .0000       10.000    
     3 'Normalizat'    1.0595       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84081       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=   7038.897     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      220 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.429        28.740        .21139E-02    .23223E-04
   2  Index         2.1585        .95728        .18886       -.25816E-04
   3  Normalizat    1.0595        .20240        .68442E-01    .20026E-04
   4  Prefactor     .84079        .11472        .44246E-01    .13270E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.4294
  Index      = 2.15854
  Normalizat = 1.0595
  Prefactor  = 0.840791
 **********
 **   18 **HESSE 
 **********

 FCN=   7038.897     FROM HESSE     STATUS=OK            33 CALLS      253 TOTAL
                     EDM=   .87E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.429        10.682        .84555E-04   -1.4760    
   2  Index         2.1585        .42933        .68996E-02   -.60443    
   3  Normalizat    1.0595        .22969        .30280E-03   -.91063    
   4  Prefactor     .84079        .12991        .19174E-03   -.98242    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.74732e-13
Minuit parameter uncertainties:
  1  10.6825
  2  0.430114
  3  0.229904
  4  0.129961
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/743875': 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) = 7038.89672557
delta logL = 0.548825702865

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  2.243e+01  1.068e+01  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  2.159e+00  4.301e-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:  8.408e-01  1.300e-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.059e+00  2.299e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.92
Ra Dec: 349.557 19.256
Photon Index (Free Index): 2.16 +/- 0.43
Photon Flux (Free Index): 9.41e-08 +/- 5.95e-08
Energy Flux (Free Index): 4.57e-05 +/- 2.94e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/743875/cmap_HighResolution_340934401_341193601_4FGL_J2318.2+1915_daily_bin392.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.32e-07', energy_flux2='4.57e-05', photon_flux_error='6.28e-08', dlogl='5.49e-01', energy_flux='3.26e-05', photon_flux2='9.41e-08', job_status='DONE', time_completed='2021-09-29 11:17:17.839628', photon_index_error2='0.43', photon_index2='2.16', ts='7.88', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='2.94e-05', EG='1.01', time_epoch_completed='1632939437.84', return_code='0', job_id='743875', GAL2='0.84', EG2='1.06', return_code2='0', energy_flux_error='1.56e-05', photon_flux_error2='5.95e-08', ts2='8.92', photon_index='2.67' WHERE bin_id='392' AND source_name='4FGL J2318.2+1915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:17:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 743875: <4FGL_J2318.2+1915_daily_bin392> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2318.2+1915_daily_bin392 349.557 19.256 340934401 341193601 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 :                                   548.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   691 sec.
    Turnaround time :                            693 sec.

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

