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


Performing analysis on: 4FGL_J2318.2+1915_daily_bin400
RA = 349.557, Dec = 19.256
tmin = 343008001, tmax = 343267201
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='743887', job_status='RUN', time_executed='2021-09-29 11:08:59.983240', time_epoch_executed='1632938939.98' WHERE source_name='4FGL J2318.2+1915' and cadence='daily' and bin_id='400'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/743887

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/743887/ft1_4FGL_J2318.2+1915_daily_bin400.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/743887/ft2_4FGL_J2318.2+1915_daily_bin400.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/743887/ft1_4FGL_J2318.2+1915_daily_bin400.fits outfile=/scratch/kocevski/743887/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin400.fits ra=349.557 dec=19.256 rad=12.0 tmin=343008001.0 tmax=343267201.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.82
user 3.59
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/743887/ft1_filtered_4FGL_J2318.2+1915_daily_bin400.fits evtable="EVENTS" scfile=/scratch/kocevski/743887/ft2_4FGL_J2318.2+1915_daily_bin400.fits sctable="SC_DATA" expcube=/scratch/kocevski/743887/ltcube_343008001_343267201_4FGL_J2318.2+1915_daily_bin400.fits outfile=/scratch/kocevski/743887/expmap_343008001_343267201_4FGL_J2318.2+1915_daily_bin400.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/743887/ltcube_343008001_343267201_4FGL_J2318.2+1915_daily_bin400.fits
.....................!
real 191.51
user 185.74
sys 4.77

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/743887/ft1_filtered_4FGL_J2318.2+1915_daily_bin400.fits scfile=/scratch/kocevski/743887/ft2_4FGL_J2318.2+1915_daily_bin400.fits outfile=/scratch/kocevski/743887/cmap_343008001_343267201_4FGL_J2318.2+1915_daily_bin400.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/743887/ft1_filtered_4FGL_J2318.2+1915_daily_bin400.fits scfile=/scratch/kocevski/743887/ft2_4FGL_J2318.2+1915_daily_bin400.fits outfile=/scratch/kocevski/743887/cmap_HighResolution_343008001_343267201_4FGL_J2318.2+1915_daily_bin400.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/743887/ft1_filtered_4FGL_J2318.2+1915_daily_bin400.fits evtable="EVENTS" scfile=/scratch/kocevski/743887/ft2_4FGL_J2318.2+1915_daily_bin400.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/743887/Model_4FGL_J2318.2+1915_daily_bin400.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/743887/ft1_filtered_4FGL_J2318.2+1915_daily_bin400.fits.....................!
real 76.51
user 75.21
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .49815       1.0000         .10000E-03   10000.    
     2 'norm      '    4.6854       1.0000         .10000E-03   10000.    
     3 'Prefactor '    33.484       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .70914E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.7920       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.759       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.1845       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.350       1.0000         .10000E-03   10000.    
    15 'norm      '    .90059       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .65224       1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.4849       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .98766       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .97835       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=   6805.301     FROM MIGRAD    STATUS=CONVERGED    413 CALLS     2067 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .49974        1.8254       -.21733E-05    .12601E-02
   2  norm          4.6853        2.1740       -.11102E-06    .45993E-04
   3  Prefactor     33.484        22.574       -.11277E-06    .25976E-04
   4  Prefactor     .10000E-03    3.4914        .24717E-07** at limit **
   5  Prefactor     .10000E-03    4.2624        .14179E-05** at limit **
   6  Prefactor     .71045E-02    .48304E-01   -.57028E-07    .63008E-03
   7  Prefactor     7.7921        10.429       -.44902E-06    .19261E-04
   8  Prefactor     .10000E-03    1.5937       -.36501E-07** at limit **
   9  Prefactor     .10000E-03    5.8355       -.43912E-06** at limit **
  10  Prefactor     24.759        25.495        .29523E-06    .57012E-04
  11  Prefactor     5.1748        14.874       -.17654E-04   -.52927E-05
  12  Prefactor     .10000E-03    4.0891       -.63580E-06** at limit **
  13  Prefactor     .10000E-03    11.055        .53414E-06** at limit **
  14  Prefactor     10.343        21.364       -.12091E-04    .55497E-04
  15  norm          .89958        .99395        .20064E-06   -.56985E-03
  16  Prefactor     .65197        4.8590       -.54682E-06    .87904E-05
  17  norm          .10000E-03    7.9546       -.23393E-06** at limit **
  18  Prefactor     1.4845        4.8671       -.24367E-06    .67807E-04
  19  Normalizat    .98787        .20402        .33068E-05    .27688E-03
  20  Prefactor     .97825        .11627        .52258E-06    .44902E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.499741
  norm       = 4.68525
  Prefactor  = 33.4841
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00710451
  Prefactor  = 7.79206
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.7586
  Prefactor  = 5.17476
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 10.3432
  norm       = 0.899579
  Prefactor  = 0.651969
  norm       = 0.0001
  Prefactor  = 1.48447
  Normalizat = 0.987869
  Prefactor  = 0.978249
 **********
 **   18 **HESSE 
 **********

 FCN=   6805.301     FROM HESSE     STATUS=OK           297 CALLS     2364 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .49974        2.6706        .19719E-02   -1.5567    
   2  norm          4.6853        2.1741        .80378E-04   -1.5275    
   3  Prefactor     33.484        22.511        .69250E-04   -1.4550    
   4  Prefactor     .10000E-03    3.4966        .15052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.2631        .16633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .71045E-02    .10420        .34809E-03   -1.5691    
   7  Prefactor     7.7921        10.427        .14365E-03   -1.5150    
   8  Prefactor     .10000E-03    1.5954        .10170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.8600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     24.759        25.500        .80505E-04   -1.4712    
  11  Prefactor     5.1748        14.971        .17655E-03   -1.5253    
  12  Prefactor     .10000E-03    4.1084        .16219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.514        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.343        21.411        .12455E-03   -1.5065    
  15  norm          .89958        12.970        .25619E-02   -1.5518    
  16  Prefactor     .65197        11.602        .34036E-02   -1.5546    
  17  norm          .10000E-03    7.9851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.4845        4.8354        .31735E-03   -1.5464    
  19  Normalizat    .98787        .23732        .30805E-03   -.93438    
  20  Prefactor     .97825        .13762        .18500E-03   -.93458    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.12631e-09
Minuit parameter uncertainties:
  1  2.31043
  2  2.17409
  3  22.5166
  4  3.95025e-06
  5  1.90656e-06
  6  0.0540312
  7  10.4293
  8  3.00329e-07
  9  1.20397e-05
  10  25.5108
  11  14.9823
  12  9.23702e-05
  13  4.29668e-05
  14  21.4264
  15  6.8329
  16  5.50145
  17  1.38387e-06
  18  4.83664
  19  0.237575
  20  0.137672
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  9.782e-01  1.377e-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.879e-01  2.376e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/743887/likelihoodResults_343008001_343267201_4FGL_J2318.2+1915_daily_bin400.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) = 6805.3022237
delta logL = -0.00116040018474

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6805.30106311
delta logL = 1.91341314348e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6900       1.0000          .0000       10.000    
     3 'Normalizat'    .98788       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97826       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=   6805.301     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      240 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    682.05        .16600E-02** at limit **
   2  Index         2.7148        5.3501        .50000       -.56106E-04
   3  Normalizat    .98787        .86142E-01    .30805E-03    .14353E-03
   4  Prefactor     .97825        .51793E-01    .18500E-03    .12643E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100014
  Index      = 2.71481
  Normalizat = 0.98787
  Prefactor  = 0.978248
 **********
 **   18 **HESSE 
 **********

 FCN=   6805.301     FROM HESSE     STATUS=OK            29 CALLS      269 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    5.2865        .33200E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7148        6.3572        .50000       -.47466    
   3  Normalizat    .98787        .22499        .12322E-04   -.93438    
   4  Prefactor     .97825        .13553        .37001E-04   -.93458    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.47685e-09
Minuit parameter uncertainties:
  1  0.000540453
  2  4.92616
  3  0.225209
  4  0.135575
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/743887': 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): 0
logL (Free Index) = 6805.30106272
delta logL = 5.81272615818e-07

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  1.000e-04  5.405e-04  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  2.715e+00  4.926e+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:  9.782e-01  1.356e-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.879e-01  2.252e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/743887/cmap_HighResolution_343008001_343267201_4FGL_J2318.2+1915_daily_bin400.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.08e-03', job_status='DONE', photon_flux_upper_limit='9.01e-08', time_completed='2021-09-29 11:19:22.517648', job_id='743887', GAL2='0.98', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1632939562.52', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='5.81e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='400' AND source_name='4FGL J2318.2+1915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:19:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 743887: <4FGL_J2318.2+1915_daily_bin400> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2318.2+1915_daily_bin400 349.557 19.256 343008001 343267201 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 :                                   616.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             264.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   815 sec.
    Turnaround time :                            817 sec.

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

