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


Performing analysis on: 4FGL_J2318.2+1915_daily_bin325
RA = 349.557, Dec = 19.256
tmin = 323568001, tmax = 323827201
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='743770', job_status='RUN', time_executed='2021-09-29 11:07:58.109718', time_epoch_executed='1632938878.11' WHERE source_name='4FGL J2318.2+1915' and cadence='daily' and bin_id='325'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/743770

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/743770/ft1_4FGL_J2318.2+1915_daily_bin325.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/743770/ft2_4FGL_J2318.2+1915_daily_bin325.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/743770/ft1_4FGL_J2318.2+1915_daily_bin325.fits outfile=/scratch/kocevski/743770/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin325.fits ra=349.557 dec=19.256 rad=12.0 tmin=323568001.0 tmax=323827201.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.35
user 3.08
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/743770/ft1_filtered_4FGL_J2318.2+1915_daily_bin325.fits evtable="EVENTS" scfile=/scratch/kocevski/743770/ft2_4FGL_J2318.2+1915_daily_bin325.fits sctable="SC_DATA" expcube=/scratch/kocevski/743770/ltcube_323568001_323827201_4FGL_J2318.2+1915_daily_bin325.fits outfile=/scratch/kocevski/743770/expmap_323568001_323827201_4FGL_J2318.2+1915_daily_bin325.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/743770/ltcube_323568001_323827201_4FGL_J2318.2+1915_daily_bin325.fits
.....................!
real 192.46
user 186.75
sys 5.28

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/743770/ft1_filtered_4FGL_J2318.2+1915_daily_bin325.fits scfile=/scratch/kocevski/743770/ft2_4FGL_J2318.2+1915_daily_bin325.fits outfile=/scratch/kocevski/743770/cmap_323568001_323827201_4FGL_J2318.2+1915_daily_bin325.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.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.7922       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.1792       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.5751       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.3924       1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.185       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.9080       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.664       1.0000         .10000E-03   10000.    
    17 'norm      '    24.994       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .99828       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0406       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=   10452.51     FROM MIGRAD    STATUS=CONVERGED    392 CALLS     1731 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.4336       -.69734E-07** at limit **
   2  norm          .10000E-03    .59351        .93064E-08** at limit **
   3  Prefactor     .10000E-03    8.6958       -.22299E-05** at limit **
   4  Prefactor     .10000E-03    15.636       -.22951E-05** at limit **
   5  Prefactor     .10000E-03    9.5929       -.39669E-05** at limit **
   6  Prefactor     2.7922        .26176       -.13689E-08    .92373E-03
   7  Prefactor     2.1747        12.947       -.15113E-05   -.15661E-04
   8  Prefactor     2.5749        2.5736        .18065E-06   -.14290E-02
   9  Prefactor     3.3918        6.9480       -.30359E-07   -.55767E-03
  10  Prefactor     19.185        15.779        .66011E-06    .14340E-04
  11  Prefactor     .10000E-03    10.146       -.16153E-05** at limit **
  12  Prefactor     5.9079        6.6815       -.13237E-06   -.14065E-03
  13  Prefactor     .10000E-03    2.4297        .29072E-07** at limit **
  14  Prefactor     .10000E-03    11.602        .71180E-05** at limit **
  15  norm          .10000E-03    8.1453        .30389E-05** at limit **
  16  Prefactor     12.663        7.2436       -.17420E-06   -.28522E-03
  17  norm          24.993        14.874       -.59061E-06   -.27714E-04
  18  Prefactor     .10000E-03    3.2780        .81173E-07** at limit **
  19  Normalizat    .99836        .20336        .22903E-07   -.31765E-04
  20  Prefactor     1.0406        .11421        .15455E-06   -.38979E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.79224
  Prefactor  = 2.17469
  Prefactor  = 2.57494
  Prefactor  = 3.39177
  Prefactor  = 19.1855
  Prefactor  = 0.0001
  Prefactor  = 5.90789
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.6632
  norm       = 24.9932
  Prefactor  = 0.0001
  Normalizat = 0.99836
  Prefactor  = 1.04063
 **********
 **   18 **HESSE 
 **********

 FCN=   10452.51     FROM HESSE     STATUS=OK           289 CALLS     2020 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.4627        .11946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .59937        .76898E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.7007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.6168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.7922        .26269        .15225E-04   -1.5374    
   7  Prefactor     2.1747        12.984        .27889E-03   -1.5413    
   8  Prefactor     2.5749        4.4775        .12717E-02   -1.5387    
   9  Prefactor     3.3918        7.8393        .10983E-02   -1.5340    
  10  Prefactor     19.185        15.786        .91443E-04   -1.4832    
  11  Prefactor     .10000E-03    10.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.9079        6.6846        .16521E-03   -1.5222    
  13  Prefactor     .10000E-03    2.4331        .15562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    8.2619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.663        7.2550        .11256E-03   -1.4996    
  17  norm          24.993        14.877        .80126E-04   -1.4708    
  18  Prefactor     .10000E-03    3.3038        .18073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .99836        .23630        .37588E-03   -.93085    
  20  Prefactor     1.0406        .13355        .21229E-03   -.91387    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08414e-09
Minuit parameter uncertainties:
  1  6.32754e-07
  2  2.79542e-07
  3  5.53246e-06
  4  1.80838e-05
  5  7.34769e-06
  6  0.262694
  7  10.6308
  8  4.47812
  9  7.84164
  10  15.7892
  11  6.84097e-06
  12  6.68548
  13  4.91766e-07
  14  1.16494e-05
  15  5.97841e-07
  16  7.25545
  17  14.8796
  18  7.04776e-07
  19  0.236545
  20  0.133592
Done.

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

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  5.908e+00  6.685e+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.041e+00  1.336e-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.984e-01  2.365e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.00
Ra Dec: 349.557 19.256
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 4.30e-08 +/- 4.86e-08
Energy Flux (Fixed Index): 1.06e-05 +/- 1.20e-05

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

Saving results to:
/scratch/kocevski/743770/likelihoodResults_323568001_323827201_4FGL_J2318.2+1915_daily_bin325.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) = 10452.4483616
delta logL = 0.0665970924747

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10452.4285778
delta logL = 0.0863809438706

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6106       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0518       1.0000          .0000       10.000    
     3 'Normalizat'    .98243       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0471       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=   10452.43     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      216 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5989        109.52        .46862E-02    .63887E-03
   2  Index         3.0535        6.5091        .21991        .11928E-03
   3  Normalizat    .98303        .57673E-01    .85472E-01    .32257E-04
   4  Prefactor     1.0469        .33422E-01    .40080E-01    .24614E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.59891
  Index      = 3.05346
  Normalizat = 0.983027
  Prefactor  = 1.04686
 **********
 **   18 **HESSE 
 **********

 FCN=   10452.43     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5989        7.8377        .18745E-03   -1.5279    
   2  Index         3.0535        1.1769        .10637E-01   -.39988    
   3  Normalizat    .98303        .23402        .37843E-03   -.93601    
   4  Prefactor     1.0469        .13363        .21173E-03   -.91183    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.81539e-11
Minuit parameter uncertainties:
  1  7.83942
  2  1.19012
  3  0.234264
  4  0.133671
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/743770': 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) = 10452.4285724
delta logL = 0.0863863262821

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  1.047e+00  1.337e-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.830e-01  2.343e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.21
Ra Dec: 349.557 19.256
Photon Index (Free Index): 3.05 +/- 1.19
Photon Flux (Free Index): 5.45e-08 +/- 5.72e-08
Energy Flux (Free Index): 1.06e-05 +/- 1.15e-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/743770/cmap_HighResolution_323568001_323827201_4FGL_J2318.2+1915_daily_bin325.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.12e-02', comment='SUCCESS', photon_flux='4.30e-08', energy_flux2='1.06e-05', photon_flux_error='4.86e-08', dlogl='8.64e-02', energy_flux='1.06e-05', photon_flux2='5.45e-08', job_status='DONE', time_completed='2021-09-29 11:20:30.697137', photon_index_error2='1.19', photon_index2='3.05', ts='1.00', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='1.43e-07', energy_flux_error2='1.15e-05', EG='1.00', time_epoch_completed='1632939630.7', return_code='0', job_id='743770', GAL2='1.05', EG2='0.98', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='5.72e-08', ts2='1.21', photon_index='2.67' WHERE bin_id='325' AND source_name='4FGL J2318.2+1915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:20:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 743770: <4FGL_J2318.2+1915_daily_bin325> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2318.2+1915_daily_bin325 349.557 19.256 323568001 323827201 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 :                                   746.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            895 sec.

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

