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


Performing analysis on: 4FGL_J2318.2+1915_daily_bin138
RA = 349.557, Dec = 19.256
tmin = 275097601, tmax = 275356801
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='742489', job_status='RUN', time_executed='2021-09-29 11:03:23.285487', time_epoch_executed='1632938603.29' WHERE source_name='4FGL J2318.2+1915' and cadence='daily' and bin_id='138'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/742489

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/742489/ft1_4FGL_J2318.2+1915_daily_bin138.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/742489/ft2_4FGL_J2318.2+1915_daily_bin138.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/742489/ft1_4FGL_J2318.2+1915_daily_bin138.fits outfile=/scratch/kocevski/742489/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin138.fits ra=349.557 dec=19.256 rad=12.0 tmin=275097601.0 tmax=275356801.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.95
user 4.68
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/742489/ft1_filtered_4FGL_J2318.2+1915_daily_bin138.fits" evtable="EVENTS" scfile=/scratch/kocevski/742489/ft2_4FGL_J2318.2+1915_daily_bin138.fits sctable="SC_DATA" outfile=/scratch/kocevski/742489/ltcube_275097601_275356801_4FGL_J2318.2+1915_daily_bin138.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/742489/ft2_4FGL_J2318.2+1915_daily_bin138.fits
.....................!
real 13.59
user 13.16
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/742489/ft1_filtered_4FGL_J2318.2+1915_daily_bin138.fits evtable="EVENTS" scfile=/scratch/kocevski/742489/ft2_4FGL_J2318.2+1915_daily_bin138.fits sctable="SC_DATA" expcube=/scratch/kocevski/742489/ltcube_275097601_275356801_4FGL_J2318.2+1915_daily_bin138.fits outfile=/scratch/kocevski/742489/expmap_275097601_275356801_4FGL_J2318.2+1915_daily_bin138.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/742489/ltcube_275097601_275356801_4FGL_J2318.2+1915_daily_bin138.fits
.....................!
real 191.19
user 187.15
sys 3.66

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/742489/ft1_filtered_4FGL_J2318.2+1915_daily_bin138.fits scfile=/scratch/kocevski/742489/ft2_4FGL_J2318.2+1915_daily_bin138.fits outfile=/scratch/kocevski/742489/cmap_275097601_275356801_4FGL_J2318.2+1915_daily_bin138.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/742489/ft1_filtered_4FGL_J2318.2+1915_daily_bin138.fits scfile=/scratch/kocevski/742489/ft2_4FGL_J2318.2+1915_daily_bin138.fits outfile=/scratch/kocevski/742489/cmap_HighResolution_275097601_275356801_4FGL_J2318.2+1915_daily_bin138.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6521       1.0000         .10000E-03   10000.    
     2 'norm      '    2.9356       1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.720       1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.183       1.0000         .10000E-03   10000.    
     5 'Prefactor '    42.840       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.6630       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.5346       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.1985       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.4223       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.0761       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.2233       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    15.538       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    11.181       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.5590       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .53040       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2028       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=   10676.32     FROM MIGRAD    STATUS=CONVERGED    395 CALLS     2020 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6516        2.6373        .58437E-06   -.12952E-03
   2  norm          2.9361        2.1815        .18404E-06    .18850E-05
   3  Prefactor     19.723        19.306        .59330E-06    .13607E-03
   4  Prefactor     18.174        17.414       -.14706E-05   -.41996E-03
   5  Prefactor     42.841        27.886        .24517E-06    .52047E-04
   6  Prefactor     7.6628        .43558        .28872E-08   -.62500E-04
   7  Prefactor     2.5380        11.302        .16785E-05    .41388E-04
   8  Prefactor     5.1984        5.3303        .64060E-08   -.11798E-04
   9  Prefactor     .10000E-03    4.2115       -.27622E-07** at limit **
  10  Prefactor     8.4184        15.941       -.65939E-06   -.14512E-03
  11  Prefactor     .10000E-03    4.9730        .35324E-06** at limit **
  12  Prefactor     9.0752        7.0953        .19002E-05   -.49263E-03
  13  Prefactor     6.2232        8.0999       -.10589E-06   -.75981E-04
  14  Prefactor     .10000E-03    5.7923       -.87354E-06** at limit **
  15  norm          15.543        9.0553        .28321E-06    .30052E-04
  16  Prefactor     .10000E-03    6.5556        .73581E-06** at limit **
  17  norm          11.180        12.422       -.29149E-08   -.36876E-04
  18  Prefactor     5.5587        4.7241       -.22800E-07   -.11326E-04
  19  Normalizat    .53051        .22739       -.12035E-05   -.43809E-04
  20  Prefactor     1.2027        .12951       -.70429E-07   -.33275E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.65159
  norm       = 2.93614
  Prefactor  = 19.7227
  Prefactor  = 18.1742
  Prefactor  = 42.8411
  Prefactor  = 7.66285
  Prefactor  = 2.53803
  Prefactor  = 5.19836
  Prefactor  = 0.0001
  Prefactor  = 8.41841
  Prefactor  = 0.0001
  Prefactor  = 9.07518
  Prefactor  = 6.22322
  Prefactor  = 0.0001
  norm       = 15.5428
  Prefactor  = 0.0001
  norm       = 11.1798
  Prefactor  = 5.55872
  Normalizat = 0.530513
  Prefactor  = 1.20273
 **********
 **   18 **HESSE 
 **********

 FCN=   10676.32     FROM HESSE     STATUS=OK           299 CALLS     2319 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6516        2.6234        .19860E-03   -1.5451    
   2  norm          2.9361        2.1812        .12232E-03   -1.5365    
   3  Prefactor     19.723        19.402        .90194E-04   -1.4819    
   4  Prefactor     18.174        18.142        .93927E-04   -1.4855    
   5  Prefactor     42.841        27.939        .61249E-04   -1.4398    
   6  Prefactor     7.6628        .43633        .15145E-04   -1.5154    
   7  Prefactor     2.5380        11.373        .25654E-03   -1.5389    
   8  Prefactor     5.1984        5.3303        .17631E-03   -1.5252    
   9  Prefactor     .10000E-03    4.2241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.4184        16.071        .13813E-03   -1.5128    
  11  Prefactor     .10000E-03    4.9945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.0752        7.2723        .66518E-03   -1.5105    
  13  Prefactor     6.2232        8.0980        .16092E-03   -1.5209    
  14  Prefactor     .10000E-03    5.9061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          15.543        9.0030        .10161E-03   -1.4919    
  16  Prefactor     .10000E-03    6.7224        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          11.180        12.423        .11981E-03   -1.5039    
  18  Prefactor     5.5587        4.7228        .17040E-03   -1.5236    
  19  Normalizat    .53051        .24349        .52605E-03   -1.1102    
  20  Prefactor     1.2027        .14181        .21891E-03   -.86247    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.77471e-10
Minuit parameter uncertainties:
  1  2.62354
  2  2.18122
  3  19.4079
  4  18.1473
  5  27.9474
  6  0.436334
  7  10.7483
  8  5.33076
  9  6.0734e-06
  10  16.0793
  11  3.60662e-05
  12  7.27302
  13  8.09939
  14  9.65041e-05
  15  9.00382
  16  3.80894e-05
  17  12.4261
  18  4.72314
  19  0.243985
  20  0.141851
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  1.203e+00  1.419e-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:  5.305e-01  2.440e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.11
Ra Dec: 349.557 19.256
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 6.61e-08 +/- 5.29e-08
Energy Flux (Fixed Index): 1.63e-05 +/- 1.31e-05

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

Saving results to:
/scratch/kocevski/742489/likelihoodResults_275097601_275356801_4FGL_J2318.2+1915_daily_bin138.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10676.0192575
delta logL = 0.303242017078

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10676.0120395
delta logL = 0.310460051442

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4851       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3131       1.0000          .0000       10.000    
     3 'Normalizat'    .49599       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2170       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=   10676.01     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      280 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4850        9.1692        .15742E-03   -.38809E-03
   2  Index         3.3137        1.2051        .73963E-02   -.59510E-04
   3  Normalizat    .49596        .23622        .54279E-03   -.71171E-04
   4  Prefactor     1.2170        .14207        .21774E-03   -.14638E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.48501
  Index      = 3.31375
  Normalizat = 0.495964
  Prefactor  = 1.217
 **********
 **   18 **HESSE 
 **********

 FCN=   10676.01     FROM HESSE     STATUS=OK            25 CALLS      305 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4850        7.1421        .62970E-05   -1.5240    
   2  Index         3.3137        .94144        .29585E-03   -.34400    
   3  Normalizat    .49596        .23543        .21711E-04   -1.1260    
   4  Prefactor     1.2170        .14140        .43547E-04   -.85810    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.88798e-11
Minuit parameter uncertainties:
  1  7.14317
  2  0.947829
  3  0.235907
  4  0.141443
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/742489': 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) = 10676.0120386
delta logL = 0.310460955447

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  5.485e+00  7.143e+00  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  3.314e+00  9.478e-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:  1.217e+00  1.414e-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:  4.960e-01  2.359e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.78
Ra Dec: 349.557 19.256
Photon Index (Free Index): 3.31 +/- 0.95
Photon Flux (Free Index): 9.22e-08 +/- 6.66e-08
Energy Flux (Free Index): 1.62e-05 +/- 1.14e-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/742489/cmap_HighResolution_275097601_275356801_4FGL_J2318.2+1915_daily_bin138.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.34e-02', comment='SUCCESS', photon_flux='6.61e-08', energy_flux2='1.62e-05', photon_flux_error='5.29e-08', dlogl='3.10e-01', energy_flux='1.63e-05', photon_flux2='9.22e-08', job_status='DONE', time_completed='2021-09-29 11:17:18.618423', photon_index_error2='0.95', photon_index2='3.31', ts='2.11', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', photon_flux_upper_limit='1.70e-07', energy_flux_error2='1.14e-05', EG='0.53', time_epoch_completed='1632939438.62', return_code='0', job_id='742489', GAL2='1.22', EG2='0.50', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='6.66e-08', ts2='2.78', photon_index='2.67' WHERE bin_id='138' AND source_name='4FGL J2318.2+1915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:17:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 742489: <4FGL_J2318.2+1915_daily_bin138> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2318.2+1915_daily_bin138 349.557 19.256 275097601 275356801 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 :                                   833.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   960 sec.
    Turnaround time :                            962 sec.

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

