/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 59 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 = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2318.2+1915_daily_bin78
RA = 349.557, Dec = 19.256
tmin = 259545601, tmax = 259804801
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='742389', job_status='RUN', time_executed='2021-09-29 11:02:19.050854', time_epoch_executed='1632938539.05' WHERE source_name='4FGL J2318.2+1915' and cadence='daily' and bin_id='78'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/742389

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/742389/ft1_4FGL_J2318.2+1915_daily_bin78.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/742389/ft2_4FGL_J2318.2+1915_daily_bin78.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/742389/ft1_4FGL_J2318.2+1915_daily_bin78.fits outfile=/scratch/kocevski/742389/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin78.fits ra=349.557 dec=19.256 rad=12.0 tmin=259545601.0 tmax=259804801.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 1.70
user 1.48
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/742389/ft1_filtered_4FGL_J2318.2+1915_daily_bin78.fits evtable="EVENTS" scfile=/scratch/kocevski/742389/ft2_4FGL_J2318.2+1915_daily_bin78.fits sctable="SC_DATA" expcube=/scratch/kocevski/742389/ltcube_259545601_259804801_4FGL_J2318.2+1915_daily_bin78.fits outfile=/scratch/kocevski/742389/expmap_259545601_259804801_4FGL_J2318.2+1915_daily_bin78.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/742389/ltcube_259545601_259804801_4FGL_J2318.2+1915_daily_bin78.fits
.....................!
real 190.96
user 185.09
sys 5.51

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/742389/ft1_filtered_4FGL_J2318.2+1915_daily_bin78.fits scfile=/scratch/kocevski/742389/ft2_4FGL_J2318.2+1915_daily_bin78.fits outfile=/scratch/kocevski/742389/cmap_259545601_259804801_4FGL_J2318.2+1915_daily_bin78.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.67
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/742389/ft1_filtered_4FGL_J2318.2+1915_daily_bin78.fits scfile=/scratch/kocevski/742389/ft2_4FGL_J2318.2+1915_daily_bin78.fits outfile=/scratch/kocevski/742389/cmap_HighResolution_259545601_259804801_4FGL_J2318.2+1915_daily_bin78.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/742389/ft1_filtered_4FGL_J2318.2+1915_daily_bin78.fits evtable="EVENTS" scfile=/scratch/kocevski/742389/ft2_4FGL_J2318.2+1915_daily_bin78.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/742389/Model_4FGL_J2318.2+1915_daily_bin78.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/742389/ft1_filtered_4FGL_J2318.2+1915_daily_bin78.fits.....................!
real 111.73
user 110.27
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.5365       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.1815       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .63557E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .25462       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.0413       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.9824       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    42.007       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10266E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.4823       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10644E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    11.044       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.9466       1.0000         .10000E-03   10000.    
    17 'norm      '    4.5331       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1194       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0421       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=   10490.87     FROM MIGRAD    STATUS=CONVERGED    406 CALLS     2038 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .63970        .33445E-07** at limit **
   2  norm          1.5358        1.1747        .61399E-09    .22391E-03
   3  Prefactor     3.1786        12.400        .31331E-06    .79510E-05
   4  Prefactor     .10008E-03    4.9257       -.22411E-05** at limit **
   5  Prefactor     .10000E-03    12.344        .43737E-07** at limit **
   6  Prefactor     .25460        .11833        .67592E-08    .35985E-04
   7  Prefactor     .10000E-03    7.7618        .94404E-07** at limit **
   8  Prefactor     7.0422        4.8453        .16740E-06    .58152E-04
   9  Prefactor     2.9818        9.3892        .24572E-06    .52201E-05
  10  Prefactor     .10000E-03    8.8577       -.79299E-06** at limit **
  11  Prefactor     41.991        27.073        .22508E-05    .18876E-03
  12  Prefactor     .10000E-03    9.8166        .49317E-06** at limit **
  13  Prefactor     3.4835        7.0142        .26922E-05    .11563E-03
  14  Prefactor     .10000E-03    25.061       -.61260E-06** at limit **
  15  norm          11.044        10.074       -.10258E-05    .56422E-04
  16  Prefactor     4.9481        8.2679        .29179E-05    .13401E-03
  17  norm          4.5330        7.5774       -.15359E-07    .57863E-05
  18  Prefactor     .10000E-03    2.6016        .50966E-07** at limit **
  19  Normalizat    1.1194        .17844       -.14403E-05    .69271E-04
  20  Prefactor     1.0420        .10263        .16281E-06    .12849E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.53578
  Prefactor  = 3.17856
  Prefactor  = 0.000100083
  Prefactor  = 0.0001
  Prefactor  = 0.254599
  Prefactor  = 0.0001
  Prefactor  = 7.04223
  Prefactor  = 2.9818
  Prefactor  = 0.0001
  Prefactor  = 41.9911
  Prefactor  = 0.0001
  Prefactor  = 3.48352
  Prefactor  = 0.0001
  norm       = 11.0435
  Prefactor  = 4.94813
  norm       = 4.53304
  Prefactor  = 0.0001
  Normalizat = 1.11944
  Prefactor  = 1.04202
 **********
 **   18 **HESSE 
 **********

 FCN=   10490.87     FROM HESSE     STATUS=OK           293 CALLS     2331 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .64423        .79991E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.5358        1.1638        .93554E-04   -1.5460    
   3  Prefactor     3.1786        12.379        .22719E-03   -1.5351    
   4  Prefactor     .10008E-03    28.898        .37707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .25460        .11577        .22604E-04   -1.5607    
   7  Prefactor     .10000E-03    7.8556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.0422        4.8395        .15118E-03   -1.5177    
   9  Prefactor     2.9818        9.3731        .23509E-03   -1.5363    
  10  Prefactor     .10000E-03    8.9224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     41.991        27.162        .61851E-04   -1.4411    
  12  Prefactor     .10000E-03    10.266        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.4835        7.0500        .10834E-02   -1.5335    
  14  Prefactor     .10000E-03    25.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          11.044        10.073        .60279E-03   -1.5043    
  16  Prefactor     4.9481        8.3211        .90415E-03   -1.5263    
  17  norm          4.5330        7.5668        .18908E-03   -1.5282    
  18  Prefactor     .10000E-03    2.6272        .16131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1194        .20493        .32159E-03   -.89130    
  20  Prefactor     1.0420        .11930        .19596E-03   -.91342    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.89709e-09
Minuit parameter uncertainties:
  1  1.62452e-06
  2  1.16379
  3  12.3886
  4  0.0031005
  5  1.03481e-05
  6  0.115769
  7  1.44823e-05
  8  4.83978
  9  9.37773
  10  9.22363e-05
  11  27.1696
  12  6.09475e-05
  13  7.05171
  14  6.32152e-05
  15  10.0745
  16  8.32308
  17  7.56842
  18  6.91419e-06
  19  0.205071
  20  0.119327
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  1.042e+00  1.193e-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.119e+00  2.051e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/742389/likelihoodResults_259545601_259804801_4FGL_J2318.2+1915_daily_bin78.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10490.8752489
delta logL = -0.000465229386464

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10490.8747839
delta logL = -2.24537870963e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15082E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7799       1.0000          .0000       10.000    
     3 'Normalizat'    1.1198       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0418       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=   10490.12     FROM MIGRAD    STATUS=CONVERGED    132 CALLS      300 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12636        1.3337        .68510E-02    .44822E-02
   2  Index         5.6161        2.8632        .15773        .19525E-03
   3  Normalizat    1.0343        .35534E-01    .75269E-01   -.23882E-04
   4  Prefactor     1.0716        .21071E-01    .40415E-01    .10256E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.12636
  Index      = 5.61606
  Normalizat = 1.03433
  Prefactor  = 1.07161
 **********
 **   18 **HESSE 
 **********

 FCN=   10490.12     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      335 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12636        4.5771        .31336E-03   -1.5637    
   2  Index         5.6161        7.7472        .83459E-02    .12353    
   3  Normalizat    1.0343        .14486        .33315E-03   -.91889    
   4  Prefactor     1.0716        .83760E-01    .19358E-03   -.90379    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.53436e-07
Minuit parameter uncertainties:
  1  1.52052
  2  7.30979
  3  0.144911
  4  0.0837707
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/742389': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10490.1213006
delta logL = 0.753483133938

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  1.072e+00  8.377e-02  0.000e+00  1.000e+01 ( 1.000e+00)
512        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
513        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
510   Normalization:  1.034e+00  1.449e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.75
Ra Dec: 349.557 19.256
Photon Index (Free Index): 5.62 +/- 7.31
Photon Flux (Free Index): 6.74e-08 +/- 6.23e-08
Energy Flux (Free Index): 8.58e-06 +/- 1.03e-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/742389/cmap_HighResolution_259545601_259804801_4FGL_J2318.2+1915_daily_bin78.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.48e-03', comment='SUCCESS', energy_flux2='8.58e-06', dlogl='7.53e-01', photon_flux2='6.74e-08', job_status='DONE', time_completed='2021-09-29 11:15:18.696583', photon_index_error2='7.31', photon_index2='5.62', ts='-0.00', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='9.52e-08', energy_flux_error2='1.03e-05', EG='1.12', time_epoch_completed='1632939318.7', return_code='0', job_id='742389', GAL2='1.07', EG2='1.03', return_code2='102', photon_flux_error2='6.23e-08', ts2='1.75', photon_index='2.67' WHERE bin_id='78' AND source_name='4FGL J2318.2+1915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:15:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 742389: <4FGL_J2318.2+1915_daily_bin78> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2318.2+1915_daily_bin78 349.557 19.256 259545601 259804801 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 :                                   771.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             371.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   848 sec.
    Turnaround time :                            851 sec.

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

