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


Performing analysis on: 4FGL_J2318.2+1915_daily_bin933
RA = 349.557, Dec = 19.256
tmin = 481161601, tmax = 481420801
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='746768', job_status='RUN', time_executed='2021-09-29 11:15:54.917337', time_epoch_executed='1632939354.92' WHERE source_name='4FGL J2318.2+1915' and cadence='daily' and bin_id='933'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/746768

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/746768/ft1_4FGL_J2318.2+1915_daily_bin933.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/746768/ft2_4FGL_J2318.2+1915_daily_bin933.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/746768/ft1_4FGL_J2318.2+1915_daily_bin933.fits outfile=/scratch/kocevski/746768/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin933.fits ra=349.557 dec=19.256 rad=12.0 tmin=481161601.0 tmax=481420801.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.62
user 3.42
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/746768/ft1_filtered_4FGL_J2318.2+1915_daily_bin933.fits evtable="EVENTS" scfile=/scratch/kocevski/746768/ft2_4FGL_J2318.2+1915_daily_bin933.fits sctable="SC_DATA" expcube=/scratch/kocevski/746768/ltcube_481161601_481420801_4FGL_J2318.2+1915_daily_bin933.fits outfile=/scratch/kocevski/746768/expmap_481161601_481420801_4FGL_J2318.2+1915_daily_bin933.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/746768/ltcube_481161601_481420801_4FGL_J2318.2+1915_daily_bin933.fits
.....................!
real 190.39
user 185.54
sys 4.48

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/746768/ft1_filtered_4FGL_J2318.2+1915_daily_bin933.fits scfile=/scratch/kocevski/746768/ft2_4FGL_J2318.2+1915_daily_bin933.fits outfile=/scratch/kocevski/746768/cmap_481161601_481420801_4FGL_J2318.2+1915_daily_bin933.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.58
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/746768/ft1_filtered_4FGL_J2318.2+1915_daily_bin933.fits scfile=/scratch/kocevski/746768/ft2_4FGL_J2318.2+1915_daily_bin933.fits outfile=/scratch/kocevski/746768/cmap_HighResolution_481161601_481420801_4FGL_J2318.2+1915_daily_bin933.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    47.979       1.0000         .10000E-03   10000.    
     2 'norm      '    13.855       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .36533       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.505       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.1210       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .31844       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11462E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.316       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10756E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11088E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .33490       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10361E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .99502       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2085       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=   9704.227     FROM MIGRAD    STATUS=CONVERGED    458 CALLS     1793 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          47.977        6.5719        .28738E-07    .47989E-04
   2  norm          13.853        3.4190       -.50192E-06    .86181E-04
   3  Prefactor     .20823        30.635       -.18342E-05    .13130E-04
   4  Prefactor     13.516        11.709        .76472E-05    .53181E-05
   5  Prefactor     .10000E-03    6.3296        .15464E-06** at limit **
   6  Prefactor     2.1213        .27168        .85944E-08    .44315E-02
   7  Prefactor     .10000E-03    3.4558       -.14359E-06** at limit **
   8  Prefactor     .36536        5.0773       -.11184E-05    .15992E-03
   9  Prefactor     .10000E-03    4.2184        .22942E-07** at limit **
  10  Prefactor     .10000E-03    4.7441        .92454E-07** at limit **
  11  Prefactor     .10000E-03    14.694        .45296E-06** at limit **
  12  Prefactor     17.313        7.7647       -.24723E-05    .61974E-04
  13  Prefactor     .10000E-03    7.0735       -.32831E-07** at limit **
  14  Prefactor     .10000E-03    9.0774        .26859E-06** at limit **
  15  norm          .10000E-03    2.1996        .10001E-07** at limit **
  16  Prefactor     .10000E-03    2.1301        .72260E-07** at limit **
  17  norm          .34707        11.046       -.22705E-05    .21660E-03
  18  Prefactor     .10000E-03    5.1171        .13611E-06** at limit **
  19  Normalizat    .99517        .23104        .20274E-06    .16637E-03
  20  Prefactor     1.2085        .13103        .48724E-07    .34909E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 47.977
  norm       = 13.8535
  Prefactor  = 0.208234
  Prefactor  = 13.5158
  Prefactor  = 0.0001
  Prefactor  = 2.1213
  Prefactor  = 0.0001
  Prefactor  = 0.365357
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.3127
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.347069
  Prefactor  = 0.0001
  Normalizat = 0.995169
  Prefactor  = 1.20847
 **********
 **   18 **HESSE 
 **********

 FCN=   9704.227     FROM HESSE     STATUS=OK           305 CALLS     2098 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          47.977        6.5867        .57890E-04   -1.4322    
   2  norm          13.853        3.4189        .85818E-04   -1.4963    
   3  Prefactor     .20823        31.832        .15359       -1.5617    
   4  Prefactor     13.516        11.700        .10899E-03   -1.4973    
   5  Prefactor     .10000E-03    6.3331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.1213        .27380        .16695E-04   -1.5417    
   7  Prefactor     .10000E-03    3.4639        .17885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .36536        39.266        .41788E-02   -1.5587    
   9  Prefactor     .10000E-03    4.2258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.7474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.313        7.7869        .96248E-04   -1.4876    
  13  Prefactor     .10000E-03    7.1215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.0964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.2040        .14268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.1392        .14039E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .34707        11.369        .10247       -1.5590    
  18  Prefactor     .10000E-03    5.2003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .99517        .26745        .41692E-03   -.93192    
  20  Prefactor     1.2085        .15316        .22415E-03   -.86071    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23393e-09
Minuit parameter uncertainties:
  1  6.58684
  2  3.41894
  3  5.15075
  4  11.7017
  5  1.10346e-06
  6  0.273796
  7  9.81278e-06
  8  7.57929
  9  2.24883e-06
  10  8.45284e-07
  11  3.19464e-06
  12  7.78737
  13  8.22931e-07
  14  5.46677e-05
  15  7.2466e-07
  16  1.95105e-06
  17  3.973
  18  1.92246e-06
  19  0.267809
  20  0.153212
Done.

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

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  1.731e+01  7.787e+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:  1.208e+00  1.532e-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.952e-01  2.678e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.53
Ra Dec: 349.557 19.256
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 1.26e-07 +/- 5.66e-08
Energy Flux (Fixed Index): 3.12e-05 +/- 1.40e-05

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) = 9704.00686679
delta logL = 0.220598395677

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9703.99362688
delta logL = 0.233838307338

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.894       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0865       1.0000          .0000       10.000    
     3 'Normalizat'    .95832       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2256       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=   9703.994     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      278 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.895        11.868        .11615E-03    .14525E-03
   2  Index         3.0866        .79214        .58278E-02    .45195E-04
   3  Normalizat    .95830        .26664        .42383E-03    .10477E-03
   4  Prefactor     1.2256        .15471        .22282E-03    .27007E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.8949
  Index      = 3.08662
  Normalizat = 0.958302
  Prefactor  = 1.22558
 **********
 **   18 **HESSE 
 **********

 FCN=   9703.994     FROM HESSE     STATUS=OK            25 CALLS      303 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.895        10.075        .46461E-05   -1.5018    
   2  Index         3.0866        .67278        .23311E-03   -.39269    
   3  Normalizat    .95830        .26571        .16953E-04   -.94441    
   4  Prefactor     1.2256        .15412        .44565E-04   -.85548    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.37833e-11
Minuit parameter uncertainties:
  1  10.0762
  2  0.67518
  3  0.266073
  4  0.154172
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/746768': 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) = 9703.99362673
delta logL = 0.233838450995

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  1.189e+01  1.008e+01  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  3.087e+00  6.752e-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.226e+00  1.542e-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.583e-01  2.661e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.01
Ra Dec: 349.557 19.256
Photon Index (Free Index): 3.09 +/- 0.68
Photon Flux (Free Index): 1.47e-07 +/- 6.75e-08
Energy Flux (Free Index): 2.82e-05 +/- 1.27e-05

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/746768/cmap_HighResolution_481161601_481420801_4FGL_J2318.2+1915_daily_bin933.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.26e-07', energy_flux2='2.82e-05', photon_flux_error='5.66e-08', dlogl='2.34e-01', energy_flux='3.12e-05', photon_flux2='1.47e-07', job_status='DONE', time_completed='2021-09-29 11:27:24.738418', photon_index_error2='0.68', photon_index2='3.09', ts='8.53', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', energy_flux_error2='1.27e-05', EG='1.00', time_epoch_completed='1632940044.74', return_code='0', job_id='746768', GAL2='1.23', EG2='0.96', return_code2='0', energy_flux_error='1.40e-05', photon_flux_error2='6.75e-08', ts2='9.01', photon_index='2.67' WHERE bin_id='933' AND source_name='4FGL J2318.2+1915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:27:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 746768: <4FGL_J2318.2+1915_daily_bin933> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2318.2+1915_daily_bin933 349.557 19.256 481161601 481420801 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 :                                   671.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             310.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   703 sec.
    Turnaround time :                            705 sec.

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

