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


Performing analysis on: 4FGL_J2318.2+1915_daily_bin882
RA = 349.557, Dec = 19.256
tmin = 467942401, tmax = 468201601
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='746693', job_status='RUN', time_executed='2021-09-29 11:15:45.853184', time_epoch_executed='1632939345.85' WHERE source_name='4FGL J2318.2+1915' and cadence='daily' and bin_id='882'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/746693

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/746693/ft1_4FGL_J2318.2+1915_daily_bin882.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/746693/ft2_4FGL_J2318.2+1915_daily_bin882.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/746693/ft1_4FGL_J2318.2+1915_daily_bin882.fits outfile=/scratch/kocevski/746693/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin882.fits ra=349.557 dec=19.256 rad=12.0 tmin=467942401.0 tmax=468201601.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.60
user 3.37
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/746693/ft1_filtered_4FGL_J2318.2+1915_daily_bin882.fits evtable="EVENTS" scfile=/scratch/kocevski/746693/ft2_4FGL_J2318.2+1915_daily_bin882.fits sctable="SC_DATA" expcube=/scratch/kocevski/746693/ltcube_467942401_468201601_4FGL_J2318.2+1915_daily_bin882.fits outfile=/scratch/kocevski/746693/expmap_467942401_468201601_4FGL_J2318.2+1915_daily_bin882.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/746693/ltcube_467942401_468201601_4FGL_J2318.2+1915_daily_bin882.fits
.....................!
real 190.96
user 185.86
sys 4.79

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

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

This is gtbin version HEAD
real 0.52
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.424       1.0000         .10000E-03   10000.    
     2 'norm      '    1.5120       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.387       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.650       1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.881       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.904       1.0000         .10000E-03   10000.    
    10 'Prefactor '    31.043       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.1605       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10551E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.516       1.0000         .10000E-03   10000.    
    15 'norm      '    23.658       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.7227       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .42839       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2611       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=   12337.65     FROM MIGRAD    STATUS=CONVERGED    426 CALLS     1795 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.425        3.6403        .55492E-07   -.23297E-03
   2  norm          1.5121        1.1391        .48314E-07    .32031E-03
   3  Prefactor     12.518        43.198        .11611E-03   -.20343E-05
   4  Prefactor     .10000E-03    4.3236        .69824E-08** at limit **
   5  Prefactor     .10000E-03    14.828       -.44320E-06** at limit **
   6  Prefactor     11.651        .51091       -.24889E-06    .23788E-02
   7  Prefactor     19.886        12.124       -.57961E-05   -.86751E-04
   8  Prefactor     .10000E-03    5.0209        .15994E-06** at limit **
   9  Prefactor     15.909        12.257       -.26615E-05   -.69116E-04
  10  Prefactor     31.031        23.072        .27767E-04    .11656E-03
  11  Prefactor     1.4098        87.678       -.32109E-04   -.21150E-03
  12  Prefactor     .10001E-03    7.1136        .20276E-05** at limit **
  13  Prefactor     .10000E-03    10.273       -.27886E-06** at limit **
  14  Prefactor     12.533        18.488       -.19999E-04   -.11157E-03
  15  norm          23.661        12.235       -.27835E-05   -.12302E-03
  16  Prefactor     4.7245        7.7604        .34539E-05   -.24282E-03
  17  norm          .10000E-03    3.5954        .72994E-07** at limit **
  18  Prefactor     .10000E-03    1.8452        .75633E-07** at limit **
  19  Normalizat    .42831        .26391        .38535E-05   -.13466E-03
  20  Prefactor     1.2610        .14811       -.22949E-05    .28633E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.4251
  norm       = 1.51214
  Prefactor  = 12.5181
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.6505
  Prefactor  = 19.886
  Prefactor  = 0.0001
  Prefactor  = 15.9095
  Prefactor  = 31.0313
  Prefactor  = 1.40976
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 12.533
  norm       = 23.661
  Prefactor  = 4.72452
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.428308
  Prefactor  = 1.26102
 **********
 **   18 **HESSE 
 **********

 FCN=   12337.65     FROM HESSE     STATUS=OK           293 CALLS     2088 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.425        3.6158        .11755E-03   -1.5062    
   2  norm          1.5121        1.1456        .10037E-03   -1.5462    
   3  Prefactor     12.518        43.001        .11381E-03   -1.5000    
   4  Prefactor     .10000E-03    4.3343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.651        .50822        .15486E-04   -1.5025    
   7  Prefactor     19.886        12.103        .89827E-04   -1.4816    
   8  Prefactor     .10000E-03    5.1448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.909        12.244        .10043E-03   -1.4910    
  10  Prefactor     31.031        22.989        .71914E-04   -1.4593    
  11  Prefactor     1.4098        90.230        .42776E-03   -1.5470    
  12  Prefactor     .10001E-03    7.2434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.533        18.324        .11323E-03   -1.5000    
  15  norm          23.661        12.124        .82354E-04   -1.4735    
  16  Prefactor     4.7245        7.6822        .18516E-03   -1.5273    
  17  norm          .10000E-03    3.5963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.8482        .14732E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .42831        .25817        .65216E-03   -1.1586    
  20  Prefactor     1.2610        .15066        .23857E-03   -.84474    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54895e-09
Minuit parameter uncertainties:
  1  3.6159
  2  1.14557
  3  43.1082
  4  9.6159e-06
  5  2.28981e-05
  6  0.508216
  7  12.1045
  8  4.24184e-05
  9  12.2461
  10  22.9954
  11  22.5917
  12  0.000399128
  13  0.000102497
  14  18.3326
  15  12.1253
  16  7.68377
  17  6.52656e-06
  18  3.8823e-06
  19  0.258888
  20  0.15071
Done.

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

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  1.000e-04  3.991e-04  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.261e+00  1.507e-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.283e-01  2.589e-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: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/746693/likelihoodResults_467942401_468201601_4FGL_J2318.2+1915_daily_bin882.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) = 12337.6469263
delta logL = -0.000658092298181

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12337.6462687
delta logL = -5.1262031775e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7326       1.0000          .0000       10.000    
     3 'Normalizat'    .42787       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2613       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=   12337.65     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      225 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10006E-03    3.7277        .90712E-01** at limit **
   2  Index         2.8168        6.3849        .50000       -.96762E-04
   3  Normalizat    .42831        .67537E-02    .14694        .13326E-03
   4  Prefactor     1.2610        .41049E-02    .53972E-01    .12332E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100056
  Index      = 2.81684
  Normalizat = 0.428314
  Prefactor  = 1.26102
 **********
 **   18 **HESSE 
 **********

 FCN=   12337.65     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      260 TOTAL
                     EDM=   .19E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10006E-03    886.40        .33358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8168        5.0094        .50000       -.45185    
   3  Normalizat    .42831        .49940E-01    .65215E-03   -1.1586    
   4  Prefactor     1.2610        .30412E-01    .23858E-03   -.84474    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.91683e-06
Minuit parameter uncertainties:
  1  0.0143111
  2  38.3108
  3  0.0499452
  4  0.0304127
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/746693': 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) = 12337.6462652
delta logL = 2.98032318824e-06

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  1.001e-04  1.431e-02  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  2.817e+00  3.831e+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.261e+00  3.041e-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:  4.283e-01  4.995e-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/746693/cmap_HighResolution_467942401_468201601_4FGL_J2318.2+1915_daily_bin882.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.34e-03', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2021-09-29 11:31:09.534418', job_id='746693', GAL2='1.26', fit_tolerance='1e-08', EG2='0.43', EG='0.43', time_epoch_completed='1632940269.53', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.26', dlogl='2.98e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='882' AND source_name='4FGL J2318.2+1915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:31:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 746693: <4FGL_J2318.2+1915_daily_bin882> in cluster <slac> Done

Job <4FGL_J2318.2+1915_daily_bin882> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 11:15:34 2021
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 11:15:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 11:15:35 2021
Terminated at Wed Sep 29 11:31:10 2021
Results reported at Wed Sep 29 11:31:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2318.2+1915_daily_bin882 349.557 19.256 467942401 468201601 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 :                                   920.05 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             353.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            936 sec.

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

