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


Performing analysis on: 4FGL_J2318.2+1915_daily_bin525
RA = 349.557, Dec = 19.256
tmin = 375408001, tmax = 375667201
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='745110', job_status='RUN', time_executed='2021-09-29 11:12:17.632664', time_epoch_executed='1632939137.63' WHERE source_name='4FGL J2318.2+1915' and cadence='daily' and bin_id='525'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/745110

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/745110/ft1_4FGL_J2318.2+1915_daily_bin525.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/745110/ft2_4FGL_J2318.2+1915_daily_bin525.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/745110/ft1_4FGL_J2318.2+1915_daily_bin525.fits outfile=/scratch/kocevski/745110/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin525.fits ra=349.557 dec=19.256 rad=12.0 tmin=375408001.0 tmax=375667201.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.49
user 3.25
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/745110/ft2_4FGL_J2318.2+1915_daily_bin525.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/745110/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin525.fits evtable="EVENTS" outfile="/scratch/kocevski/745110/ft1_filtered_4FGL_J2318.2+1915_daily_bin525.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/745110/ft1_filtered_4FGL_J2318.2+1915_daily_bin525.fits evtable="EVENTS" scfile=/scratch/kocevski/745110/ft2_4FGL_J2318.2+1915_daily_bin525.fits sctable="SC_DATA" expcube=/scratch/kocevski/745110/ltcube_375408001_375667201_4FGL_J2318.2+1915_daily_bin525.fits outfile=/scratch/kocevski/745110/expmap_375408001_375667201_4FGL_J2318.2+1915_daily_bin525.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/745110/ltcube_375408001_375667201_4FGL_J2318.2+1915_daily_bin525.fits
.....................!
real 190.80
user 186.02
sys 4.41

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/745110/ft1_filtered_4FGL_J2318.2+1915_daily_bin525.fits scfile=/scratch/kocevski/745110/ft2_4FGL_J2318.2+1915_daily_bin525.fits outfile=/scratch/kocevski/745110/cmap_375408001_375667201_4FGL_J2318.2+1915_daily_bin525.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=349.557 yref=19.256 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/745110/ft1_filtered_4FGL_J2318.2+1915_daily_bin525.fits scfile=/scratch/kocevski/745110/ft2_4FGL_J2318.2+1915_daily_bin525.fits outfile=/scratch/kocevski/745110/cmap_HighResolution_375408001_375667201_4FGL_J2318.2+1915_daily_bin525.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/745110/ft1_filtered_4FGL_J2318.2+1915_daily_bin525.fits evtable="EVENTS" scfile=/scratch/kocevski/745110/ft2_4FGL_J2318.2+1915_daily_bin525.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/745110/Model_4FGL_J2318.2+1915_daily_bin525.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/745110/ft1_filtered_4FGL_J2318.2+1915_daily_bin525.fits.....................!
real 76.92
user 75.53
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3208       1.0000         .10000E-03   10000.    
     2 'norm      '    2.5853       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .34622       1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.989       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .41773E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .65152E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10354E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.3216       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11045E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.8496       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .67945       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1340       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=   6921.621     FROM MIGRAD    STATUS=CONVERGED    422 CALLS     1761 TOTAL
                     EDM=   .85E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3211        2.7433       -.51745E-07   -.21268E-04
   2  norm          2.5854        1.8508       -.44693E-08   -.91939E-04
   3  Prefactor     .10000E-03    14.723       -.29023E-05** at limit **
   4  Prefactor     .10000E-03    17.222        .28639E-05** at limit **
   5  Prefactor     .10000E-03    11.273        .19755E-05** at limit **
   6  Prefactor     .34620        .14594        .36045E-08    .15165E-03
   7  Prefactor     20.005        11.608       -.36438E-06   -.30856E-04
   8  Prefactor     .10000E-03    6.0739       -.17328E-06** at limit **
   9  Prefactor     .10000E-03    6.1354       -.20159E-06** at limit **
  10  Prefactor     .10000E-03    9.0190        .11642E-05** at limit **
  11  Prefactor     .10000E-03    8.2624       -.16650E-05** at limit **
  12  Prefactor     .10000E-03    4.5334       -.32482E-08** at limit **
  13  Prefactor     2.3229        3.8326        .40015E-08   -.23095E-03
  14  Prefactor     .10000E-03    12.671       -.12668E-05** at limit **
  15  norm          2.8483        4.1725        .11943E-07   -.22846E-03
  16  Prefactor     .10000E-03    1.8425       -.20478E-08** at limit **
  17  norm          .10000E-03    6.3810        .63446E-06** at limit **
  18  Prefactor     .10000E-03    5.8383       -.41752E-06** at limit **
  19  Normalizat    .67928        .19996        .29636E-06    .11978E-04
  20  Prefactor     1.1339        .12119       -.59003E-07    .31819E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.32106
  norm       = 2.5854
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.346197
  Prefactor  = 20.0048
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.32293
  Prefactor  = 0.0001
  norm       = 2.84828
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.67928
  Prefactor  = 1.13395
 **********
 **   18 **HESSE 
 **********

 FCN=   6921.621     FROM HESSE     STATUS=OK           291 CALLS     2052 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3211        2.7350        .18776E-03   -1.5478    
   2  norm          2.5854        1.8478        .92864E-04   -1.5386    
   3  Prefactor     .10000E-03    14.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .34620        .14358        .19529E-04   -1.5590    
   7  Prefactor     20.005        11.624        .89586E-04   -1.4813    
   8  Prefactor     .10000E-03    20.406        .38652E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    33.917        .39666E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.0452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.2857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.6137        .17285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.3229        5.7150        .13460E-02   -1.5403    
  14  Prefactor     .10000E-03    12.740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.8483        5.1154        .12043E-02   -1.5370    
  16  Prefactor     .10000E-03    1.8487        .11026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    6.4375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.0268        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .67928        .22468        .35314E-03   -1.0472    
  20  Prefactor     1.1339        .13855        .17262E-03   -.88389    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68419e-10
Minuit parameter uncertainties:
  1  2.73528
  2  1.84784
  3  1.6845e-07
  4  1.89196e-05
  5  2.12513e-06
  6  0.143584
  7  11.6256
  8  0.000144589
  9  0.000505303
  10  2.29862e-07
  11  7.96801e-07
  12  2.22586e-07
  13  5.71631
  14  6.61428e-07
  15  5.11623
  16  1.90448e-07
  17  1.68304e-06
  18  1.98581e-06
  19  0.224983
  20  0.138598
Done.

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

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  1.000e-04  2.226e-07  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.134e+00  1.386e-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:  6.793e-01  2.250e-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: 8.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/745110/likelihoodResults_375408001_375667201_4FGL_J2318.2+1915_daily_bin525.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) = 6921.62191794
delta logL = -0.00103309162478

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6921.62088515
delta logL = -3.02435182675e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6536       1.0000          .0000       10.000    
     3 'Normalizat'    .67914       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1341       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=   6921.621     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      250 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.242        .17413E-01** at limit **
   2  Index         2.1642        6.2571        .50000        .33547E-06
   3  Normalizat    .67928        .88252E-02    .35314E-03   -.38935E-03
   4  Prefactor     1.1339        .54899E-02    .17262E-03   -.77278E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.16416
  Normalizat = 0.679279
  Prefactor  = 1.13395
 **********
 **   18 **HESSE 
 **********

 FCN=   6921.621     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      279 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1167.0        .37128E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1642        6.9144        .50000       -.60306    
   3  Normalizat    .67928        .13740        .14126E-04   -1.0472    
   4  Prefactor     1.1339        .85485E-01    .34525E-04   -.88389    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.07123e-08
Minuit parameter uncertainties:
  1  0.00328463
  2  1575.02
  3  0.137466
  4  0.085495
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/745110': 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) = 6921.62088324
delta logL = 1.61309253599e-06

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  1.000e-04  3.285e-03  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  2.164e+00  1.575e+03  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.134e+00  8.550e-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:  6.793e-01  1.375e-01  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/745110/cmap_HighResolution_375408001_375667201_4FGL_J2318.2+1915_daily_bin525.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.95e-03', job_status='DONE', photon_flux_upper_limit='8.85e-08', time_completed='2021-09-29 11:22:16.684435', job_id='745110', GAL2='1.13', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1632939736.68', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='1.61e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='525' AND source_name='4FGL J2318.2+1915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:22:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 745110: <4FGL_J2318.2+1915_daily_bin525> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2318.2+1915_daily_bin525 349.557 19.256 375408001 375667201 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 :                                   596.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             316.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   713 sec.
    Turnaround time :                            714 sec.

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

