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


Performing analysis on: 4FGL_J2318.2+1915_daily_bin570
RA = 349.557, Dec = 19.256
tmin = 387072001, tmax = 387331201
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='745175', job_status='RUN', time_executed='2021-09-29 11:13:29.236289', time_epoch_executed='1632939209.24' WHERE source_name='4FGL J2318.2+1915' and cadence='daily' and bin_id='570'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/745175

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/745175/ft1_4FGL_J2318.2+1915_daily_bin570.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/745175/ft2_4FGL_J2318.2+1915_daily_bin570.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/745175/ft1_4FGL_J2318.2+1915_daily_bin570.fits outfile=/scratch/kocevski/745175/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin570.fits ra=349.557 dec=19.256 rad=12.0 tmin=387072001.0 tmax=387331201.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.37
user 3.16
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/745175/ft1_filtered_4FGL_J2318.2+1915_daily_bin570.fits" evtable="EVENTS" scfile=/scratch/kocevski/745175/ft2_4FGL_J2318.2+1915_daily_bin570.fits sctable="SC_DATA" outfile=/scratch/kocevski/745175/ltcube_387072001_387331201_4FGL_J2318.2+1915_daily_bin570.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/745175/ft2_4FGL_J2318.2+1915_daily_bin570.fits
.....................!
real 11.64
user 11.29
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/745175/ft1_filtered_4FGL_J2318.2+1915_daily_bin570.fits evtable="EVENTS" scfile=/scratch/kocevski/745175/ft2_4FGL_J2318.2+1915_daily_bin570.fits sctable="SC_DATA" expcube=/scratch/kocevski/745175/ltcube_387072001_387331201_4FGL_J2318.2+1915_daily_bin570.fits outfile=/scratch/kocevski/745175/expmap_387072001_387331201_4FGL_J2318.2+1915_daily_bin570.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/745175/ltcube_387072001_387331201_4FGL_J2318.2+1915_daily_bin570.fits
.....................!
real 191.21
user 185.48
sys 5.42

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/745175/ft1_filtered_4FGL_J2318.2+1915_daily_bin570.fits scfile=/scratch/kocevski/745175/ft2_4FGL_J2318.2+1915_daily_bin570.fits outfile=/scratch/kocevski/745175/cmap_387072001_387331201_4FGL_J2318.2+1915_daily_bin570.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/745175/ft1_filtered_4FGL_J2318.2+1915_daily_bin570.fits scfile=/scratch/kocevski/745175/ft2_4FGL_J2318.2+1915_daily_bin570.fits outfile=/scratch/kocevski/745175/cmap_HighResolution_387072001_387331201_4FGL_J2318.2+1915_daily_bin570.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/745175/ft1_filtered_4FGL_J2318.2+1915_daily_bin570.fits evtable="EVENTS" scfile=/scratch/kocevski/745175/ft2_4FGL_J2318.2+1915_daily_bin570.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/745175/Model_4FGL_J2318.2+1915_daily_bin570.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/745175/ft1_filtered_4FGL_J2318.2+1915_daily_bin570.fits.....................!
real 114.52
user 113.14
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7934       1.0000         .10000E-03   10000.    
     2 'norm      '    1.3649       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.9059       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.0924       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .50041       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.4902       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10589E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.157       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11519E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .19297E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.549       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13858E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.1748       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3572       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0264       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=   10477.56     FROM MIGRAD    STATUS=CONVERGED    403 CALLS     1774 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7930        3.0089       -.31614E-07   -.37673E-03
   2  norm          1.3650        1.1652        .28020E-08    .41685E-04
   3  Prefactor     .10000E-03    10.833        .46557E-05** at limit **
   4  Prefactor     6.9056        7.0220        .46918E-07   -.65315E-07
   5  Prefactor     .10000E-03    5.8655       -.24379E-06** at limit **
   6  Prefactor     2.0925        .24542        .34165E-08    .24780E-04
   7  Prefactor     .51176        4.1531        .69071E-08   -.20908E-03
   8  Prefactor     3.4910        2.7118        .50830E-06   -.19512E-02
   9  Prefactor     .10000E-03    25.680       -.11799E-05** at limit **
  10  Prefactor     .10000E-03    9.9706       -.34309E-05** at limit **
  11  Prefactor     10.157        24.472       -.72857E-07    .20789E-05
  12  Prefactor     .10000E-03    2.2086       -.37821E-07** at limit **
  13  Prefactor     .10000E-03    5.6548        .23800E-06** at limit **
  14  Prefactor     19.552        15.677        .13594E-05    .10554E-03
  15  norm          .10000E-03    2.9539        .76514E-08** at limit **
  16  Prefactor     .10000E-03    9.9485       -.13832E-05** at limit **
  17  norm          .10000E-03    7.9148        .10076E-05** at limit **
  18  Prefactor     7.1764        5.9553       -.30353E-07   -.20366E-04
  19  Normalizat    1.3571        .21037       -.21239E-06    .54473E-04
  20  Prefactor     1.0265        .11785       -.17648E-07    .51511E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.79301
  norm       = 1.36498
  Prefactor  = 0.0001
  Prefactor  = 6.90563
  Prefactor  = 0.0001
  Prefactor  = 2.09247
  Prefactor  = 0.511755
  Prefactor  = 3.49103
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.1567
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 19.5523
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.17638
  Normalizat = 1.35709
  Prefactor  = 1.0265
 **********
 **   18 **HESSE 
 **********

 FCN=   10477.56     FROM HESSE     STATUS=OK           295 CALLS     2069 TOTAL
                     EDM=   .72E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7930        3.0312        .22115E-03   -1.5440    
   2  norm          1.3650        1.1734        .99198E-04   -1.5474    
   3  Prefactor     .10000E-03    10.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.9056        7.0137        .15267E-03   -1.5182    
   5  Prefactor     .10000E-03    5.8679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.0925        .24601        .16513E-04   -1.5419    
   7  Prefactor     .51176        13.657        .40826E-02   -1.5565    
   8  Prefactor     3.4910        4.8295        .10821E-02   -1.5334    
   9  Prefactor     .10000E-03    26.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.157        24.483        .12573E-03   -1.5070    
  12  Prefactor     .10000E-03    2.2228        .14852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    25.686        .47089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     19.552        15.706        .90587E-04   -1.4823    
  15  norm          .10000E-03    2.9637        .17175E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.351        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    7.9444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.1764        5.9546        .14975E-03   -1.5172    
  19  Normalizat    1.3571        .24450        .35289E-03   -.81878    
  20  Prefactor     1.0265        .13786        .22702E-03   -.91851    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.24571e-08
Minuit parameter uncertainties:
  1  3.03147
  2  1.17337
  3  0.000147196
  4  7.01456
  5  6.01603e-06
  6  0.246012
  7  5.28809
  8  4.83003
  9  4.50401e-05
  10  0.000102177
  11  24.5068
  12  3.83918e-06
  13  0.000319454
  14  15.7093
  15  1.01345e-06
  16  2.57792e-05
  17  2.52571e-05
  18  5.95513
  19  0.244715
  20  0.137908
Done.

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

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  1.000e-04  3.839e-06  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.026e+00  1.379e-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.357e+00  2.447e-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: 6.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/745175/likelihoodResults_387072001_387331201_4FGL_J2318.2+1915_daily_bin570.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) = 10477.5639176
delta logL = -0.00213730741598

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10477.5617803
delta logL = -3.57867975254e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6663       1.0000          .0000       10.000    
     3 'Normalizat'    1.3571       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0265       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=   10477.56     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      201 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.685        .90712E-02** at limit **
   2  Index         2.6658        8.6646        .50000        .20052E-05
   3  Normalizat    1.3571        .11903E-01    .79727E-01    .32894E-04
   4  Prefactor     1.0265        .68111E-02    .41543E-01    .28776E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.66579
  Normalizat = 1.35709
  Prefactor  = 1.0265
 **********
 **   18 **HESSE 
 **********

 FCN=   10477.56     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      234 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    96.166        .14852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6658        5.2889        .50000       -.48572    
   3  Normalizat    1.3571        .37162E-01    .35289E-03   -.81878    
   4  Prefactor     1.0265        .21293E-01    .22702E-03   -.91851    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.29671e-07
Minuit parameter uncertainties:
  1  2.23111e-05
  2  805.129
  3  0.0371623
  4  0.0212935
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/745175': 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) = 10477.5617802
delta logL = 4.72937244922e-10

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  1.000e-04  2.231e-05  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  2.666e+00  8.051e+02  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.027e+00  2.129e-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.357e+00  3.716e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 349.557 19.256

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/745175/cmap_HighResolution_387072001_387331201_4FGL_J2318.2+1915_daily_bin570.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.43e-03', job_status='DONE', photon_flux_upper_limit='6.91e-08', time_completed='2021-09-29 11:25:51.109061', job_id='745175', GAL2='1.03', fit_tolerance='1e-08', EG2='1.36', EG='1.36', time_epoch_completed='1632939951.11', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='4.73e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='570' AND source_name='4FGL J2318.2+1915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:25:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 745175: <4FGL_J2318.2+1915_daily_bin570> in cluster <slac> Done

Job <4FGL_J2318.2+1915_daily_bin570> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 11:10:28 2021
Job was executed on host(s) <bullet0119>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 11:10:29 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:10:29 2021
Terminated at Wed Sep 29 11:25:51 2021
Results reported at Wed Sep 29 11:25:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2318.2+1915_daily_bin570 349.557 19.256 387072001 387331201 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 :                                   740.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            923 sec.

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

