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


Performing analysis on: 4FGL_J2318.2+1915_daily_bin226
RA = 349.557, Dec = 19.256
tmin = 297907201, tmax = 298166401
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='743614', job_status='RUN', time_executed='2021-09-29 11:08:54.353951', time_epoch_executed='1632938934.35' WHERE source_name='4FGL J2318.2+1915' and cadence='daily' and bin_id='226'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/743614

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/743614/ft1_4FGL_J2318.2+1915_daily_bin226.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/743614/ft2_4FGL_J2318.2+1915_daily_bin226.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/743614/ft1_4FGL_J2318.2+1915_daily_bin226.fits outfile=/scratch/kocevski/743614/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin226.fits ra=349.557 dec=19.256 rad=12.0 tmin=297907201.0 tmax=298166401.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.52
user 3.29
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/743614/ft1_filtered_4FGL_J2318.2+1915_daily_bin226.fits evtable="EVENTS" scfile=/scratch/kocevski/743614/ft2_4FGL_J2318.2+1915_daily_bin226.fits sctable="SC_DATA" expcube=/scratch/kocevski/743614/ltcube_297907201_298166401_4FGL_J2318.2+1915_daily_bin226.fits outfile=/scratch/kocevski/743614/expmap_297907201_298166401_4FGL_J2318.2+1915_daily_bin226.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/743614/ltcube_297907201_298166401_4FGL_J2318.2+1915_daily_bin226.fits
.....................!
real 191.14
user 185.44
sys 5.33

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/743614/ft1_filtered_4FGL_J2318.2+1915_daily_bin226.fits scfile=/scratch/kocevski/743614/ft2_4FGL_J2318.2+1915_daily_bin226.fits outfile=/scratch/kocevski/743614/cmap_297907201_298166401_4FGL_J2318.2+1915_daily_bin226.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/743614/ft1_filtered_4FGL_J2318.2+1915_daily_bin226.fits scfile=/scratch/kocevski/743614/ft2_4FGL_J2318.2+1915_daily_bin226.fits outfile=/scratch/kocevski/743614/cmap_HighResolution_297907201_298166401_4FGL_J2318.2+1915_daily_bin226.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/743614/ft1_filtered_4FGL_J2318.2+1915_daily_bin226.fits evtable="EVENTS" scfile=/scratch/kocevski/743614/ft2_4FGL_J2318.2+1915_daily_bin226.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/743614/Model_4FGL_J2318.2+1915_daily_bin226.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/743614/ft1_filtered_4FGL_J2318.2+1915_daily_bin226.fits.....................!
real 113.65
user 112.15
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5664       1.0000         .10000E-03   10000.    
     2 'norm      '    1.2940       1.0000         .10000E-03   10000.    
     3 'Prefactor '    38.709       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.0040       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.2501       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.153       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.801       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.6664       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.7597       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .75655       1.0000         .10000E-03   10000.    
    17 'norm      '    32.955       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.9597       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .96198       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .99065       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=   9723.815     FROM MIGRAD    STATUS=CONVERGED    405 CALLS     1779 TOTAL
                     EDM=   .76E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5666        2.6530       -.43675E-08   -.63579E-05
   2  norm          1.2941        1.2023       -.26791E-07   -.19146E-03
   3  Prefactor     38.711        27.010        .23172E-05   -.53993E-06
   4  Prefactor     .10000E-03    20.975        .52903E-05** at limit **
   5  Prefactor     .10000E-03    21.922       -.52776E-05** at limit **
   6  Prefactor     6.0039        .38563       -.90146E-08    .97891E-04
   7  Prefactor     .10000E-03    4.0430        .77868E-08** at limit **
   8  Prefactor     6.2497        7.7148        .60106E-08    .12345E-05
   9  Prefactor     .10000E-03    10.794       -.54581E-06** at limit **
  10  Prefactor     22.154        22.115        .41915E-06   -.33065E-05
  11  Prefactor     15.800        18.541       -.19976E-05   -.13360E-05
  12  Prefactor     1.6622        1.5347       -.54941E-07   -.23782E-03
  13  Prefactor     3.7563        9.2059        .25902E-06   -.50899E-04
  14  Prefactor     .10000E-03    9.0889        .30359E-06** at limit **
  15  norm          .10000E-03    6.4511       -.33363E-07** at limit **
  16  Prefactor     .75783        4.5720        .19786E-06   -.57142E-04
  17  norm          32.954        16.925       -.76049E-06   -.98546E-05
  18  Prefactor     4.9597        5.9025        .11959E-07   -.55177E-04
  19  Normalizat    .96191        .21117        .42972E-07   -.52392E-04
  20  Prefactor     .99070        .12052        .20424E-07   -.77247E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.56656
  norm       = 1.29406
  Prefactor  = 38.711
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.00395
  Prefactor  = 0.0001
  Prefactor  = 6.24968
  Prefactor  = 0.0001
  Prefactor  = 22.1539
  Prefactor  = 15.7996
  Prefactor  = 1.6622
  Prefactor  = 3.75627
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.757834
  norm       = 32.9536
  Prefactor  = 4.95973
  Normalizat = 0.961914
  Prefactor  = 0.9907
 **********
 **   18 **HESSE 
 **********

 FCN=   9723.815     FROM HESSE     STATUS=OK           299 CALLS     2078 TOTAL
                     EDM=   .64E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5666        2.6505        .13297E-03   -1.5330    
   2  norm          1.2941        1.2246        .10150E-03   -1.5480    
   3  Prefactor     38.711        27.054        .64422E-04   -1.4463    
   4  Prefactor     .10000E-03    21.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    22.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.0039        .38652        .14612E-04   -1.5218    
   7  Prefactor     .10000E-03    4.0624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.2497        7.7093        .16057E-03   -1.5208    
   9  Prefactor     .10000E-03    10.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     22.154        22.153        .85101E-04   -1.4766    
  11  Prefactor     15.800        18.549        .10076E-03   -1.4913    
  12  Prefactor     1.6622        6.2183        .16333E-02   -1.5450    
  13  Prefactor     3.7563        9.3599        .10411E-02   -1.5320    
  14  Prefactor     .10000E-03    9.1227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.5105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .75783        10.803        .38888E-02   -1.5534    
  17  norm          32.954        16.916        .69802E-04   -1.4559    
  18  Prefactor     4.9597        5.9784        .90294E-03   -1.5263    
  19  Normalizat    .96191        .25045        .38993E-03   -.94318    
  20  Prefactor     .99070        .14055        .22771E-03   -.93040    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.43379e-08
Minuit parameter uncertainties:
  1  2.65055
  2  1.22465
  3  27.063
  4  6.22385e-05
  5  1.32751e-05
  6  0.38652
  7  1.16447e-06
  8  7.71056
  9  4.72637e-07
  10  22.1613
  11  18.5554
  12  6.22076
  13  9.36353
  14  9.22087e-07
  15  6.51451e-06
  16  5.72342
  17  16.9185
  18  5.97912
  19  0.250759
  20  0.140598
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  9.907e-01  1.406e-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:  9.619e-01  2.508e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.08
Ra Dec: 349.557 19.256
Photon Flux Upper Limit: 1.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/743614/likelihoodResults_297907201_298166401_4FGL_J2318.2+1915_daily_bin226.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) = 9721.87357867
delta logL = 1.94143245048

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9721.75813551
delta logL = 2.05687560916

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .97047E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    6.0826       1.0000          .0000       10.000    
     3 'Normalizat'    .84724       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0331       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=   9721.758     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      254 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .96631E-01    .70522        .38615E-02   -.53020E-03
   2  Index         6.0859        2.5908        .15438        .78503E-04
   3  Normalizat    .84693        .54199E-01    .92878E-01    .10539E-04
   4  Prefactor     1.0333        .32292E-01    .41020E-01   -.12177E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.096631
  Index      = 6.0859
  Normalizat = 0.846927
  Prefactor  = 1.03331
 **********
 **   18 **HESSE 
 **********

 FCN=   9721.758     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      289 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .96631E-01    1.6746        .17631E-03   -1.5646    
   2  Index         6.0859        7.3694        .58734E-02    .21893    
   3  Normalizat    .84693        .18926        .41148E-03   -.98351    
   4  Prefactor     1.0333        .11150        .22324E-03   -.91627    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.75294e-11
Minuit parameter uncertainties:
  1  0.804143
  2  5.06646
  3  0.189404
  4  0.111521
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/743614': 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) = 9721.75813215
delta logL = 2.05687896509

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  9.663e-02  8.041e-01  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  6.086e+00  5.066e+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.033e+00  1.115e-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:  8.469e-01  1.894e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.46
Ra Dec: 349.557 19.256
Photon Index (Free Index): 6.09 +/- 5.07
Photon Flux (Free Index): 1.09e-07 +/- 6.36e-08
Energy Flux (Free Index): 1.35e-05 +/- 9.48e-06

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/743614/cmap_HighResolution_297907201_298166401_4FGL_J2318.2+1915_daily_bin226.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.02e-03', comment='SUCCESS', energy_flux2='1.35e-05', dlogl='2.06e+00', photon_flux2='1.09e-07', job_status='DONE', time_completed='2021-09-29 11:21:32.178712', photon_index_error2='5.07', photon_index2='6.09', ts='0.08', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.15e-07', energy_flux_error2='9.48e-06', EG='0.96', time_epoch_completed='1632939692.18', return_code='0', job_id='743614', GAL2='1.03', EG2='0.85', return_code2='102', photon_flux_error2='6.36e-08', ts2='4.46', photon_index='2.67' WHERE bin_id='226' AND source_name='4FGL J2318.2+1915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:21:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 743614: <4FGL_J2318.2+1915_daily_bin226> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2318.2+1915_daily_bin226 349.557 19.256 297907201 298166401 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 :                                   756.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   969 sec.
    Turnaround time :                            970 sec.

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

