/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 238 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 = 7548
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2318.2+1915_daily_bin845
RA = 349.557, Dec = 19.256
tmin = 458352001, tmax = 458611201
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='746641', job_status='RUN', time_executed='2021-09-29 11:19:38.082384', time_epoch_executed='1632939578.08' WHERE source_name='4FGL J2318.2+1915' and cadence='daily' and bin_id='845'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/746641

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/746641/ft1_4FGL_J2318.2+1915_daily_bin845.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/746641/ft2_4FGL_J2318.2+1915_daily_bin845.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/746641/ft1_4FGL_J2318.2+1915_daily_bin845.fits outfile=/scratch/kocevski/746641/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin845.fits ra=349.557 dec=19.256 rad=12.0 tmin=458352001.0 tmax=458611201.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 4.46
user 4.21
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/746641/ft2_4FGL_J2318.2+1915_daily_bin845.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/746641/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin845.fits evtable="EVENTS" outfile="/scratch/kocevski/746641/ft1_filtered_4FGL_J2318.2+1915_daily_bin845.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.50
user 0.32
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/746641/ft1_filtered_4FGL_J2318.2+1915_daily_bin845.fits evtable="EVENTS" scfile=/scratch/kocevski/746641/ft2_4FGL_J2318.2+1915_daily_bin845.fits sctable="SC_DATA" expcube=/scratch/kocevski/746641/ltcube_458352001_458611201_4FGL_J2318.2+1915_daily_bin845.fits outfile=/scratch/kocevski/746641/expmap_458352001_458611201_4FGL_J2318.2+1915_daily_bin845.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/746641/ltcube_458352001_458611201_4FGL_J2318.2+1915_daily_bin845.fits
.....................!
real 190.82
user 184.92
sys 5.53

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/746641/ft1_filtered_4FGL_J2318.2+1915_daily_bin845.fits scfile=/scratch/kocevski/746641/ft2_4FGL_J2318.2+1915_daily_bin845.fits outfile=/scratch/kocevski/746641/cmap_458352001_458611201_4FGL_J2318.2+1915_daily_bin845.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/746641/ft1_filtered_4FGL_J2318.2+1915_daily_bin845.fits scfile=/scratch/kocevski/746641/ft2_4FGL_J2318.2+1915_daily_bin845.fits outfile=/scratch/kocevski/746641/cmap_HighResolution_458352001_458611201_4FGL_J2318.2+1915_daily_bin845.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/746641/ft1_filtered_4FGL_J2318.2+1915_daily_bin845.fits evtable="EVENTS" scfile=/scratch/kocevski/746641/ft2_4FGL_J2318.2+1915_daily_bin845.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/746641/Model_4FGL_J2318.2+1915_daily_bin845.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/746641/ft1_filtered_4FGL_J2318.2+1915_daily_bin845.fits.....................!
real 81.82
user 80.41
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3897       1.0000         .10000E-03   10000.    
     2 'norm      '    1.5048       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.8641       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.1442       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.0916       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.966       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.6674       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.144       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.4855       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.446       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10564E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.8552       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.8402       1.0000         .10000E-03   10000.    
    17 'norm      '    8.7826       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .71792       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0853       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .84453       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=   7260.187     FROM MIGRAD    STATUS=CONVERGED    399 CALLS     1771 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3906        3.3185       -.15278E-06    .37463E-04
   2  norm          1.5045        1.7923       -.73689E-07   -.74907E-04
   3  Prefactor     .10000E-03    11.840       -.65757E-06** at limit **
   4  Prefactor     6.8647        9.8721       -.20027E-06   -.80914E-06
   5  Prefactor     7.1308        21.405       -.25932E-04   -.63931E-04
   6  Prefactor     2.0916        .27250        .10488E-06   -.87401E-03
   7  Prefactor     14.966        11.439       -.36812E-07    .15446E-04
   8  Prefactor     3.6678        7.2920        .35283E-06   -.85574E-03
   9  Prefactor     12.144        10.073        .10074E-06    .15815E-04
  10  Prefactor     9.4813        19.791       -.62443E-05   -.23139E-04
  11  Prefactor     .10000E-03    8.0173        .25068E-06** at limit **
  12  Prefactor     16.446        8.1837       -.22462E-06    .35100E-04
  13  Prefactor     .10000E-03    16.847        .14744E-05** at limit **
  14  Prefactor     .10000E-03    5.5246       -.12627E-06** at limit **
  15  norm          5.8501        8.8527       -.10298E-05   -.50441E-04
  16  Prefactor     1.8425        3.6547        .96425E-06   -.18710E-02
  17  norm          8.7848        15.478        .13599E-05    .19744E-04
  18  Prefactor     .71567        6.0285       -.80903E-06    .37169E-04
  19  Normalizat    1.0851        .21623        .69312E-06    .12003E-03
  20  Prefactor     .84467        .12185        .86626E-06    .11459E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.39061
  norm       = 1.50454
  Prefactor  = 0.0001
  Prefactor  = 6.86471
  Prefactor  = 7.13083
  Prefactor  = 2.0916
  Prefactor  = 14.966
  Prefactor  = 3.66779
  Prefactor  = 12.144
  Prefactor  = 9.4813
  Prefactor  = 0.0001
  Prefactor  = 16.4464
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.8501
  Prefactor  = 1.84247
  norm       = 8.78476
  Prefactor  = 0.715673
  Normalizat = 1.08514
  Prefactor  = 0.844666
 **********
 **   18 **HESSE 
 **********

 FCN=   7260.187     FROM HESSE     STATUS=OK           303 CALLS     2074 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3906        3.3206        .14433E-03   -1.5340    
   2  norm          1.5045        1.7686        .11849E-03   -1.5463    
   3  Prefactor     .10000E-03    11.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.8647        9.8456        .15314E-03   -1.5184    
   5  Prefactor     7.1308        21.438        .15008E-03   -1.5174    
   6  Prefactor     2.0916        .27289        .14923E-04   -1.5419    
   7  Prefactor     14.966        11.443        .10353E-03   -1.4934    
   8  Prefactor     3.6678        7.5817        .10546E-02   -1.5325    
   9  Prefactor     12.144        10.075        .11495E-03   -1.5011    
  10  Prefactor     9.4813        19.859        .13012E-03   -1.5092    
  11  Prefactor     .10000E-03    8.0246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.446        8.1967        .98763E-04   -1.4897    
  13  Prefactor     .10000E-03    17.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.5310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.8501        9.5254        .16597E-03   -1.5224    
  16  Prefactor     1.8425        8.5680        .15375E-02   -1.5436    
  17  norm          8.7848        15.498        .13525E-03   -1.5115    
  18  Prefactor     .71567        15.573        .39010E-02   -1.5539    
  19  Normalizat    1.0851        .25396        .32264E-03   -.90230    
  20  Prefactor     .84467        .14154        .21307E-03   -.98102    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30442e-08
Minuit parameter uncertainties:
  1  3.32074
  2  1.76862
  3  6.21967e-06
  4  9.84796
  5  21.4606
  6  0.27289
  7  11.4445
  8  7.58371
  9  10.0769
  10  19.8727
  11  7.58431e-06
  12  8.19727
  13  4.09401e-06
  14  2.00111e-06
  15  9.5279
  16  7.94803
  17  15.5046
  18  6.67833
  19  0.254243
  20  0.141598
Done.

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

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  1.645e+01  8.197e+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.447e-01  1.416e-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.085e+00  2.542e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.11
Ra Dec: 349.557 19.256
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 1.20e-07 +/- 5.96e-08
Energy Flux (Fixed Index): 2.96e-05 +/- 1.47e-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) = 7260.15133429
delta logL = 0.035396790614

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7260.14683777
delta logL = 0.039893314266

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.204       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5290       1.0000          .0000       10.000    
     3 'Normalizat'    1.0958       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83976       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=   7260.147     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      270 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.204        10.837        .93873E-04   -.37386E-03
   2  Index         2.5289        .48508        .64643E-02   -.13187E-03
   3  Normalizat    1.0958        .23919        .32131E-03    .57885E-04
   4  Prefactor     .83976        .14037        .21359E-03    .13035E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.2039
  Index      = 2.52893
  Normalizat = 1.09577
  Prefactor  = 0.839759
 **********
 **   18 **HESSE 
 **********

 FCN=   7260.147     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.204        10.573        .37549E-05   -1.4854    
   2  Index         2.5289        .47298        .25857E-03   -.51693    
   3  Normalizat    1.0958        .23926        .12852E-04   -.89888    
   4  Prefactor     .83976        .14039        .85438E-05   -.98279    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03216e-10
Minuit parameter uncertainties:
  1  10.5739
  2  0.473915
  3  0.239495
  4  0.140452
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/746641': 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) = 7260.14683776
delta logL = 0.0398933212737

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  1.820e+01  1.057e+01  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  2.529e+00  4.739e-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.398e-01  1.405e-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.395e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.12
Ra Dec: 349.557 19.256
Photon Index (Free Index): 2.53 +/- 0.47
Photon Flux (Free Index): 1.13e-07 +/- 6.23e-08
Energy Flux (Free Index): 3.17e-05 +/- 1.77e-05

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/746641/cmap_HighResolution_458352001_458611201_4FGL_J2318.2+1915_daily_bin845.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.20e-07', energy_flux2='3.17e-05', photon_flux_error='5.96e-08', dlogl='3.99e-02', energy_flux='2.96e-05', photon_flux2='1.13e-07', job_status='DONE', time_completed='2021-09-29 11:29:13.276464', photon_index_error2='0.47', photon_index2='2.53', ts='6.11', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='1.77e-05', EG='1.09', time_epoch_completed='1632940153.28', return_code='0', job_id='746641', GAL2='0.84', EG2='1.10', return_code2='0', energy_flux_error='1.47e-05', photon_flux_error2='6.23e-08', ts2='6.12', photon_index='2.67' WHERE bin_id='845' AND source_name='4FGL J2318.2+1915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:29:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 746641: <4FGL_J2318.2+1915_daily_bin845> in cluster <slac> Done

Job <4FGL_J2318.2+1915_daily_bin845> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 11:15:30 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 11:15:31 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:31 2021
Terminated at Wed Sep 29 11:29:14 2021
Results reported at Wed Sep 29 11:29:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2318.2+1915_daily_bin845 349.557 19.256 458352001 458611201 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 :                                   572.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             243.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            824 sec.

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

