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


Performing analysis on: 4FGL_J2318.2+1915_daily_bin770
RA = 349.557, Dec = 19.256
tmin = 438912001, tmax = 439171201
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='746533', job_status='RUN', time_executed='2021-09-29 11:18:58.329580', time_epoch_executed='1632939538.33' WHERE source_name='4FGL J2318.2+1915' and cadence='daily' and bin_id='770'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/746533

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/746533/ft1_4FGL_J2318.2+1915_daily_bin770.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/746533/ft2_4FGL_J2318.2+1915_daily_bin770.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/746533/ft1_4FGL_J2318.2+1915_daily_bin770.fits outfile=/scratch/kocevski/746533/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin770.fits ra=349.557 dec=19.256 rad=12.0 tmin=438912001.0 tmax=439171201.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 6.11
user 5.84
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/746533/ft1_filtered_4FGL_J2318.2+1915_daily_bin770.fits evtable="EVENTS" scfile=/scratch/kocevski/746533/ft2_4FGL_J2318.2+1915_daily_bin770.fits sctable="SC_DATA" expcube=/scratch/kocevski/746533/ltcube_438912001_439171201_4FGL_J2318.2+1915_daily_bin770.fits outfile=/scratch/kocevski/746533/expmap_438912001_439171201_4FGL_J2318.2+1915_daily_bin770.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/746533/ltcube_438912001_439171201_4FGL_J2318.2+1915_daily_bin770.fits
.....................!
real 190.94
user 186.14
sys 4.40

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

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/746533/ft1_filtered_4FGL_J2318.2+1915_daily_bin770.fits scfile=/scratch/kocevski/746533/ft2_4FGL_J2318.2+1915_daily_bin770.fits outfile=/scratch/kocevski/746533/cmap_HighResolution_438912001_439171201_4FGL_J2318.2+1915_daily_bin770.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.9713       1.0000         .10000E-03   10000.    
     2 'norm      '    1.9374       1.0000         .10000E-03   10000.    
     3 'Prefactor '    36.773       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .36831E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    36.594       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.2190       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.8421       1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.280       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.5892       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    40.755       1.0000         .10000E-03   10000.    
    15 'norm      '    11.987       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.7722       1.0000         .10000E-03   10000.    
    17 'norm      '    12.434       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.9424       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2398       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .84941       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=   4581.850     FROM MIGRAD    STATUS=CONVERGED    386 CALLS     2009 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.9730        5.9920        .39052E-05   -.73424E-04
   2  norm          1.9329        2.9290        .29224E-06    .72471E-03
   3  Prefactor     36.768        49.001       -.81624E-05    .23259E-04
   4  Prefactor     .10003E-03    76.480       -.70186E-04** at limit **
   5  Prefactor     36.595        49.957        .86073E-06    .20190E-04
   6  Prefactor     5.2189        .62090        .59406E-07    .33699E-02
   7  Prefactor     9.8358        15.942       -.39289E-05    .12201E-03
   8  Prefactor     24.281        14.775        .23340E-06    .62865E-04
   9  Prefactor     .10000E-03    27.268       -.66390E-05** at limit **
  10  Prefactor     .10000E-03    25.240        .12481E-04** at limit **
  11  Prefactor     .10000E-03    14.963       -.28197E-05** at limit **
  12  Prefactor     4.5935        11.223        .40649E-05   -.22805E-04
  13  Prefactor     .10000E-03    8.8918        .52297E-06** at limit **
  14  Prefactor     40.743        39.167       -.15679E-04   -.43668E-06
  15  norm          11.988        18.855        .54506E-06   -.13491E-04
  16  Prefactor     8.7745        13.105       -.12858E-05   -.37686E-04
  17  norm          12.435        12.879        .78220E-06    .45291E-03
  18  Prefactor     2.9439        8.6222       -.22759E-06   -.24116E-03
  19  Normalizat    1.2394        .32795        .11406E-06    .27573E-03
  20  Prefactor     .84950        .18241        .10840E-05    .42819E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.97303
  norm       = 1.93289
  Prefactor  = 36.7678
  Prefactor  = 0.000100031
  Prefactor  = 36.5951
  Prefactor  = 5.21888
  Prefactor  = 9.83577
  Prefactor  = 24.2806
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.59352
  Prefactor  = 0.0001
  Prefactor  = 40.743
  norm       = 11.9881
  Prefactor  = 8.7745
  norm       = 12.435
  Prefactor  = 2.94388
  Normalizat = 1.23942
  Prefactor  = 0.849497
 **********
 **   18 **HESSE 
 **********

 FCN=   4581.850     FROM HESSE     STATUS=OK           293 CALLS     2302 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.9730        5.9975        .12153E-03   -1.5076    
   2  norm          1.9329        2.9066        .13811E-03   -1.5430    
   3  Prefactor     36.768        49.089        .66090E-04   -1.4494    
   4  Prefactor     .10003E-03    76.665        .42602E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     36.595        50.102        .66251E-04   -1.4497    
   6  Prefactor     5.2189        .62498        .16884E-04   -1.5251    
   7  Prefactor     9.8358        15.948        .12773E-03   -1.5081    
   8  Prefactor     24.281        14.780        .81294E-04   -1.4722    
   9  Prefactor     .10000E-03    27.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    25.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.5935        11.153        .18790E-03   -1.5279    
  13  Prefactor     .10000E-03    8.8957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     40.743        39.216        .62790E-04   -1.4430    
  15  norm          11.988        18.777        .11571E-03   -1.5015    
  16  Prefactor     8.7745        13.063        .13533E-03   -1.5115    
  17  norm          12.435        12.896        .56800E-03   -1.5003    
  18  Prefactor     2.9439        8.5999        .23678E-03   -1.5365    
  19  Normalizat    1.2394        .37958        .38366E-03   -.85393    
  20  Prefactor     .84950        .21099        .25577E-03   -.97929    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4197e-09
Minuit parameter uncertainties:
  1  5.99791
  2  2.90683
  3  49.143
  4  0.00307824
  5  50.1595
  6  0.624985
  7  15.9553
  8  14.7822
  9  4.09031e-05
  10  2.17662e-05
  11  3.16418e-06
  12  11.158
  13  1.96135e-06
  14  39.2411
  15  18.7863
  16  13.0677
  17  12.8984
  18  8.60355
  19  0.380435
  20  0.211194
Done.

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

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  4.594e+00  1.116e+01  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:  8.495e-01  2.112e-01  0.000e+00  1.000e+01 ( 1.000e+00)
512        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
513        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
510   Normalization:  1.239e+00  3.804e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.23
Ra Dec: 349.557 19.256
Photon Flux Upper Limit: 2.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.78e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/746533/likelihoodResults_438912001_439171201_4FGL_J2318.2+1915_daily_bin770.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): 0
logL (Free Index) = 4581.60234498
delta logL = 0.247957354366

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4581.48817917
delta logL = 0.362123163473

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.357       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9541       1.0000          .0000       10.000    
     3 'Normalizat'    1.2560       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83519       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=   4581.488     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      212 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.322        23.841        .31126E-02    .45653E-04
   2  Index         1.9539        .96848        .24813       -.17250E-04
   3  Normalizat    1.2552        .31770        .86134E-01    .44164E-04
   4  Prefactor     .83580        .18188        .44174E-01   -.32789E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.3223
  Index      = 1.95388
  Normalizat = 1.25517
  Prefactor  = 0.835803
 **********
 **   18 **HESSE 
 **********

 FCN=   4581.488     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.322        13.209        .12450E-03   -1.5065    
   2  Index         1.9539        .66110        .89452E-02   -.65508    
   3  Normalizat    1.2552        .36465        .38139E-03   -.84915    
   4  Prefactor     .83580        .20738        .25723E-03   -.98422    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06632e-10
Minuit parameter uncertainties:
  1  13.2126
  2  0.664206
  3  0.365399
  4  0.207571
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/746533': 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) = 4581.48817198
delta logL = 0.362130351878

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  1.032e+01  1.321e+01  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  1.954e+00  6.642e-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:  8.358e-01  2.076e-01  0.000e+00  1.000e+01 ( 1.000e+00)
512        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
513        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
510   Normalization:  1.255e+00  3.654e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.23
Ra Dec: 349.557 19.256

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/746533/cmap_HighResolution_438912001_439171201_4FGL_J2318.2+1915_daily_bin770.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.78e-02', job_status='DONE', photon_flux_upper_limit='2.27e-07', time_completed='2021-09-29 11:27:44.980337', job_id='746533', GAL2='0.84', fit_tolerance='1e-08', EG2='1.26', EG='1.24', time_epoch_completed='1632940064.98', return_code2='0', ts='0.23', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='3.62e-01', ts2='0.96', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='770' AND source_name='4FGL J2318.2+1915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:27:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 746533: <4FGL_J2318.2+1915_daily_bin770> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2318.2+1915_daily_bin770 349.557 19.256 438912001 439171201 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 :                                   524.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             281.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   742 sec.
    Turnaround time :                            744 sec.

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

