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


Performing analysis on: 4FGL_J2318.2+1915_daily_bin399
RA = 349.557, Dec = 19.256
tmin = 342748801, tmax = 343008001
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='743886', job_status='RUN', time_executed='2021-09-29 11:09:31.959218', time_epoch_executed='1632938971.96' WHERE source_name='4FGL J2318.2+1915' and cadence='daily' and bin_id='399'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/743886

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/743886/ft1_4FGL_J2318.2+1915_daily_bin399.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/743886/ft2_4FGL_J2318.2+1915_daily_bin399.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/743886/ft1_4FGL_J2318.2+1915_daily_bin399.fits outfile=/scratch/kocevski/743886/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin399.fits ra=349.557 dec=19.256 rad=12.0 tmin=342748801.0 tmax=343008001.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.35
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/743886/ft1_filtered_4FGL_J2318.2+1915_daily_bin399.fits" evtable="EVENTS" scfile=/scratch/kocevski/743886/ft2_4FGL_J2318.2+1915_daily_bin399.fits sctable="SC_DATA" outfile=/scratch/kocevski/743886/ltcube_342748801_343008001_4FGL_J2318.2+1915_daily_bin399.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/743886/ft2_4FGL_J2318.2+1915_daily_bin399.fits
.....................!
real 11.91
user 11.53
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/743886/ft1_filtered_4FGL_J2318.2+1915_daily_bin399.fits evtable="EVENTS" scfile=/scratch/kocevski/743886/ft2_4FGL_J2318.2+1915_daily_bin399.fits sctable="SC_DATA" expcube=/scratch/kocevski/743886/ltcube_342748801_343008001_4FGL_J2318.2+1915_daily_bin399.fits outfile=/scratch/kocevski/743886/expmap_342748801_343008001_4FGL_J2318.2+1915_daily_bin399.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/743886/ltcube_342748801_343008001_4FGL_J2318.2+1915_daily_bin399.fits
.....................!
real 192.82
user 187.00
sys 5.50

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6402       1.0000         .10000E-03   10000.    
     2 'norm      '    2.8937       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10706E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.7005       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .25638E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.0006       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.021       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.8665       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    16.057       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .38082E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .65689       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2165       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=   7239.849     FROM MIGRAD    STATUS=CONVERGED    431 CALLS     2044 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6400        3.1095        .12431E-05    .10215E-02
   2  norm          2.8938        1.8162        .24469E-07   -.17468E-04
   3  Prefactor     .10000E-03    42.021        .30349E-05** at limit **
   4  Prefactor     .10000E-03    6.8380        .27290E-07** at limit **
   5  Prefactor     .10000E-03    5.2314       -.16340E-07** at limit **
   6  Prefactor     .10000E-03    .33137E-01    .10046E-07** at limit **
   7  Prefactor     9.7005        8.7897       -.10379E-06   -.26756E-04
   8  Prefactor     .10002E-03    5.5504       -.17097E-05** at limit **
   9  Prefactor     9.0018        8.4208        .88015E-07    .14686E-04
  10  Prefactor     15.001        25.065        .41515E-05    .78555E-04
  11  Prefactor     .10000E-03    16.934        .69383E-07** at limit **
  12  Prefactor     1.8637        5.3873        .13635E-05    .28408E-03
  13  Prefactor     .10000E-03    2.5434        .17251E-08** at limit **
  14  Prefactor     .10000E-03    35.598       -.35648E-05** at limit **
  15  norm          .10000E-03    2.4037        .11138E-07** at limit **
  16  Prefactor     .10000E-03    1.8143       -.18654E-08** at limit **
  17  norm          16.055        14.836        .21131E-06   -.73138E-05
  18  Prefactor     .10002E-03    10.387        .48692E-05** at limit **
  19  Normalizat    .65707        .21470       -.19125E-05   -.11610E-03
  20  Prefactor     1.2165        .12632        .78805E-07   -.15838E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.64
  norm       = 2.89376
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.70055
  Prefactor  = 0.000100017
  Prefactor  = 9.00176
  Prefactor  = 15.0009
  Prefactor  = 0.0001
  Prefactor  = 1.86368
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 16.0551
  Prefactor  = 0.00010002
  Normalizat = 0.657067
  Prefactor  = 1.21654
 **********
 **   18 **HESSE 
 **********

 FCN=   7239.849     FROM HESSE     STATUS=OK           293 CALLS     2337 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6400        3.3378        .70380E-03   -1.5326    
   2  norm          2.8938        1.8157        .88163E-04   -1.5368    
   3  Prefactor     .10000E-03    42.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.8716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.2348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    .41358E-01    .30095E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.7005        8.7860        .12866E-03   -1.5085    
   8  Prefactor     .10002E-03    24.047        .35715E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.0018        8.4169        .13360E-03   -1.5108    
  10  Prefactor     15.001        25.254        .10334E-03   -1.4933    
  11  Prefactor     .10000E-03    16.995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.8637        5.4357        .30493E-03   -1.5435    
  13  Prefactor     .10000E-03    2.5445        .13253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    36.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.4093        .12882E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.8192        .11192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          16.055        14.839        .99953E-04   -1.4906    
  18  Prefactor     .10002E-03    18.581        .38479E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .65707        .23822        .38420E-03   -1.0561    
  20  Prefactor     1.2165        .14119        .17523E-03   -.85824    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44589e-09
Minuit parameter uncertainties:
  1  3.33795
  2  1.81572
  3  0.000109671
  4  2.53976e-06
  5  1.96208e-06
  6  2.68314e-07
  7  8.78713
  8  0.00127634
  9  8.418
  10  25.2722
  11  6.42611e-05
  12  5.43718
  13  1.05764e-06
  14  0.000192842
  15  2.4695e-06
  16  1.78839e-06
  17  14.8422
  18  0.00122669
  19  0.238592
  20  0.141234
Done.

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

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  1.864e+00  5.437e+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.217e+00  1.412e-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:  6.571e-01  2.386e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.14
Ra Dec: 349.557 19.256
Photon Flux Upper Limit: 1.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/743886/likelihoodResults_342748801_343008001_4FGL_J2318.2+1915_daily_bin399.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) = 7239.79520995
delta logL = 0.0533544258215

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7239.79045062
delta logL = 0.0581137610443

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4722       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2662       1.0000          .0000       10.000    
     3 'Normalizat'    .64554       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2204       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=   7239.790     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      269 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4764        5.2002        .20820E-03   -.12886E-04
   2  Index         3.2624        2.1609        .10307E-01    .12549E-03
   3  Normalizat    .64549        .23573        .38747E-03   -.16431E-05
   4  Prefactor     1.2205        .14115        .17498E-03   -.12344E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.47639
  Index      = 3.2624
  Normalizat = 0.645495
  Prefactor  = 1.22046
 **********
 **   18 **HESSE 
 **********

 FCN=   7239.790     FROM HESSE     STATUS=OK            25 CALLS      294 TOTAL
                     EDM=   .15E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4764        4.4970        .83282E-05   -1.5465    
   2  Index         3.2624        1.8860        .20614E-02   -.35492    
   3  Normalizat    .64549        .23592        .15499E-04   -1.0609    
   4  Prefactor     1.2205        .14115        .69994E-05   -.85704    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54529e-13
Minuit parameter uncertainties:
  1  4.49803
  2  1.94095
  3  0.236293
  4  0.141196
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/743886': 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) = 7239.79044833
delta logL = 0.0581160485945

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  1.476e+00  4.498e+00  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  3.262e+00  1.941e+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.220e+00  1.412e-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:  6.455e-01  2.363e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/743886/cmap_HighResolution_342748801_343008001_4FGL_J2318.2+1915_daily_bin399.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.62e-03', job_status='DONE', photon_flux_upper_limit='1.10e-07', time_completed='2021-09-29 11:19:57.738382', job_id='743886', GAL2='1.22', fit_tolerance='1e-08', EG2='0.65', EG='0.66', time_epoch_completed='1632939597.74', return_code2='0', ts='0.14', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='5.81e-02', ts2='0.27', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='399' AND source_name='4FGL J2318.2+1915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:19:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 743886: <4FGL_J2318.2+1915_daily_bin399> in cluster <slac> Done

Job <4FGL_J2318.2+1915_daily_bin399> 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) <bullet0052>, 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:58 2021
Results reported at Wed Sep 29 11:19:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2318.2+1915_daily_bin399 349.557 19.256 342748801 343008001 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 :                                   622.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             245.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            852 sec.

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

