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


Performing analysis on: 4FGL_J2318.2+1915_daily_bin396
RA = 349.557, Dec = 19.256
tmin = 341971201, tmax = 342230401
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='743881', job_status='RUN', time_executed='2021-09-29 11:09:49.387517', time_epoch_executed='1632938989.39' WHERE source_name='4FGL J2318.2+1915' and cadence='daily' and bin_id='396'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/743881

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/743881/ft1_4FGL_J2318.2+1915_daily_bin396.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/743881/ft2_4FGL_J2318.2+1915_daily_bin396.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/743881/ft1_4FGL_J2318.2+1915_daily_bin396.fits outfile=/scratch/kocevski/743881/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin396.fits ra=349.557 dec=19.256 rad=12.0 tmin=341971201.0 tmax=342230401.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.41
user 3.18
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/743881/ft2_4FGL_J2318.2+1915_daily_bin396.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/743881/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin396.fits evtable="EVENTS" outfile="/scratch/kocevski/743881/ft1_filtered_4FGL_J2318.2+1915_daily_bin396.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/743881/ft1_filtered_4FGL_J2318.2+1915_daily_bin396.fits" evtable="EVENTS" scfile=/scratch/kocevski/743881/ft2_4FGL_J2318.2+1915_daily_bin396.fits sctable="SC_DATA" outfile=/scratch/kocevski/743881/ltcube_341971201_342230401_4FGL_J2318.2+1915_daily_bin396.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/743881/ft2_4FGL_J2318.2+1915_daily_bin396.fits
.....................!
real 12.20
user 11.82
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/743881/ft1_filtered_4FGL_J2318.2+1915_daily_bin396.fits evtable="EVENTS" scfile=/scratch/kocevski/743881/ft2_4FGL_J2318.2+1915_daily_bin396.fits sctable="SC_DATA" expcube=/scratch/kocevski/743881/ltcube_341971201_342230401_4FGL_J2318.2+1915_daily_bin396.fits outfile=/scratch/kocevski/743881/expmap_341971201_342230401_4FGL_J2318.2+1915_daily_bin396.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/743881/ltcube_341971201_342230401_4FGL_J2318.2+1915_daily_bin396.fits
.....................!
real 191.13
user 185.92
sys 4.81

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/743881/ft1_filtered_4FGL_J2318.2+1915_daily_bin396.fits scfile=/scratch/kocevski/743881/ft2_4FGL_J2318.2+1915_daily_bin396.fits outfile=/scratch/kocevski/743881/cmap_341971201_342230401_4FGL_J2318.2+1915_daily_bin396.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.57
user 0.37
sys 0.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6467       1.0000         .10000E-03   10000.    
     2 'norm      '    .92453       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.1975       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.4283       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.2849       1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.620       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.893       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.7586       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.985       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .56060E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    28.062       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .27632       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1341       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .68905       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=   6685.889     FROM MIGRAD    STATUS=CONVERGED    409 CALLS     1828 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6464        2.6773        .86814E-07   -.47787E-06
   2  norm          .92459        1.2254        .38612E-07   -.69572E-04
   3  Prefactor     8.2066        25.639        .25433E-05    .17779E-03
   4  Prefactor     .10000E-03    7.9869        .10358E-07** at limit **
   5  Prefactor     .10000E-03    5.2313       -.46499E-06** at limit **
   6  Prefactor     .10000E-03    .60599E-01    .14512E-06** at limit **
   7  Prefactor     .10000E-03    3.5328       -.52830E-08** at limit **
   8  Prefactor     9.4299        8.1180       -.26864E-06   -.24715E-03
   9  Prefactor     5.2846        10.193        .41176E-06   -.16334E-04
  10  Prefactor     16.618        21.599       -.10669E-06   -.10692E-03
  11  Prefactor     .10000E-03    5.1084        .58213E-06** at limit **
  12  Prefactor     10.892        8.3963        .20212E-05    .16881E-03
  13  Prefactor     5.7592        6.8417        .11559E-06   -.14276E-04
  14  Prefactor     10.984        13.787       -.61930E-06   -.46886E-04
  15  norm          .10000E-03    2.1084        .38307E-07** at limit **
  16  Prefactor     .10001E-03    3.2533       -.17476E-06** at limit **
  17  norm          28.063        17.536        .23002E-06    .81172E-04
  18  Prefactor     .29221        5.1996       -.17745E-05    .49945E-03
  19  Normalizat    1.1342        .19207       -.10170E-05   -.13556E-03
  20  Prefactor     .68902        .10505       -.53877E-06   -.25579E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.6464
  norm       = 0.924593
  Prefactor  = 8.20655
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.42991
  Prefactor  = 5.28457
  Prefactor  = 16.6179
  Prefactor  = 0.0001
  Prefactor  = 10.8924
  Prefactor  = 5.75918
  Prefactor  = 10.9841
  norm       = 0.0001
  Prefactor  = 0.000100014
  norm       = 28.0626
  Prefactor  = 0.292212
  Normalizat = 1.13421
  Prefactor  = 0.689025
 **********
 **   18 **HESSE 
 **********

 FCN=   6685.889     FROM HESSE     STATUS=OK           299 CALLS     2127 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6464        2.6759        .12905E-03   -1.5383    
   2  norm          .92459        1.2254        .51585E-04   -1.5516    
   3  Prefactor     8.2066        26.106        .14003E-03   -1.5135    
   4  Prefactor     .10000E-03    8.0655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.2719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    .10357        .35908E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.5380        .15009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.4299        8.1082        .13052E-03   -1.5094    
   9  Prefactor     5.2846        10.194        .17484E-03   -1.5248    
  10  Prefactor     16.618        21.625        .98244E-04   -1.4892    
  11  Prefactor     .10000E-03    5.1543        .18127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.892        8.7540        .60696E-03   -1.5048    
  13  Prefactor     5.7592        6.8301        .16737E-03   -1.5228    
  14  Prefactor     10.984        13.793        .12088E-03   -1.5045    
  15  norm          .10000E-03    2.1121        .11592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    24.760        .27909E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          28.063        17.517        .75628E-04   -1.4648    
  18  Prefactor     .29221        12.604        .31119E-02   -1.5600    
  19  Normalizat    1.1342        .22274        .27534E-03   -.88661    
  20  Prefactor     .68902        .12320        .19350E-03   -1.0396    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.57141e-09
Minuit parameter uncertainties:
  1  2.67602
  2  1.22542
  3  26.142
  4  2.22162e-06
  5  7.10146e-05
  6  3.92344e-06
  7  1.45031e-06
  8  8.10916
  9  10.1973
  10  21.6351
  11  7.71624e-05
  12  8.75503
  13  6.83105
  14  13.7973
  15  4.60851e-06
  16  0.00118855
  17  17.5206
  18  3.83853
  19  0.222926
  20  0.123252
Done.

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

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  1.089e+01  8.755e+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:  6.890e-01  1.233e-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.134e+00  2.229e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.18
Ra Dec: 349.557 19.256
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 7.93e-08 +/- 6.37e-08
Energy Flux (Fixed Index): 1.96e-05 +/- 1.58e-05

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

Saving results to:
/scratch/kocevski/743881/likelihoodResults_341971201_342230401_4FGL_J2318.2+1915_daily_bin396.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) = 6685.77570935
delta logL = 0.113582115195

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6685.77063481
delta logL = 0.118656648253

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.5580       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9937       1.0000          .0000       10.000    
     3 'Normalizat'    1.1166       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69643       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=   6685.771     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      287 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.5587        9.6009        .13703E-03   -.23803E-03
   2  Index         2.9938        .76966        .67997E-02   -.56323E-04
   3  Normalizat    1.1166        .22168        .27719E-03    .33238E-03
   4  Prefactor     .69636        .12267        .19257E-03    .52057E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.55868
  Index      = 2.99379
  Normalizat = 1.11664
  Prefactor  = 0.696363
 **********
 **   18 **HESSE 
 **********

 FCN=   6685.771     FROM HESSE     STATUS=OK            25 CALLS      312 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.5587        8.9096        .54811E-05   -1.5123    
   2  Index         2.9938        .71385        .27199E-03   -.41287    
   3  Normalizat    1.1166        .22178        .55437E-04   -.89219    
   4  Prefactor     .69636        .12259        .38513E-04   -1.0367    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74571e-10
Minuit parameter uncertainties:
  1  8.91102
  2  0.716777
  3  0.221965
  4  0.122637
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/743881': 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) = 6685.77063464
delta logL = 0.118656821448

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  8.559e+00  8.911e+00  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  2.994e+00  7.168e-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:  6.964e-01  1.226e-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.117e+00  2.220e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.44
Ra Dec: 349.557 19.256
Photon Index (Free Index): 2.99 +/- 0.72
Photon Flux (Free Index): 9.38e-08 +/- 7.28e-08
Energy Flux (Free Index): 1.88e-05 +/- 1.43e-05

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/743881/cmap_HighResolution_341971201_342230401_4FGL_J2318.2+1915_daily_bin396.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.57e-02', comment='SUCCESS', photon_flux='7.93e-08', energy_flux2='1.88e-05', photon_flux_error='6.37e-08', dlogl='1.19e-01', energy_flux='1.96e-05', photon_flux2='9.38e-08', job_status='DONE', time_completed='2021-09-29 11:19:31.657234', photon_index_error2='0.72', photon_index2='2.99', ts='2.18', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', photon_flux_upper_limit='2.00e-07', energy_flux_error2='1.43e-05', EG='1.13', time_epoch_completed='1632939571.66', return_code='0', job_id='743881', GAL2='0.70', EG2='1.12', return_code2='0', energy_flux_error='1.58e-05', photon_flux_error2='7.28e-08', ts2='2.44', photon_index='2.67' WHERE bin_id='396' AND source_name='4FGL J2318.2+1915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:19:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 743881: <4FGL_J2318.2+1915_daily_bin396> in cluster <slac> Done

Job <4FGL_J2318.2+1915_daily_bin396> 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) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 11:05:47 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:47 2021
Terminated at Wed Sep 29 11:19:32 2021
Results reported at Wed Sep 29 11:19:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2318.2+1915_daily_bin396 349.557 19.256 341971201 342230401 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 :                                   581.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   824 sec.
    Turnaround time :                            826 sec.

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

