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


Performing analysis on: 4FGL_J2318.2+1915_daily_bin334
RA = 349.557, Dec = 19.256
tmin = 325900801, tmax = 326160001
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='743783', job_status='RUN', time_executed='2021-09-29 11:09:33.190130', time_epoch_executed='1632938973.19' WHERE source_name='4FGL J2318.2+1915' and cadence='daily' and bin_id='334'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/743783

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/743783/ft1_4FGL_J2318.2+1915_daily_bin334.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/743783/ft2_4FGL_J2318.2+1915_daily_bin334.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/743783/ft1_4FGL_J2318.2+1915_daily_bin334.fits outfile=/scratch/kocevski/743783/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin334.fits ra=349.557 dec=19.256 rad=12.0 tmin=325900801.0 tmax=326160001.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.45
user 3.24
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/743783/ft1_filtered_4FGL_J2318.2+1915_daily_bin334.fits evtable="EVENTS" scfile=/scratch/kocevski/743783/ft2_4FGL_J2318.2+1915_daily_bin334.fits sctable="SC_DATA" expcube=/scratch/kocevski/743783/ltcube_325900801_326160001_4FGL_J2318.2+1915_daily_bin334.fits outfile=/scratch/kocevski/743783/expmap_325900801_326160001_4FGL_J2318.2+1915_daily_bin334.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/743783/ltcube_325900801_326160001_4FGL_J2318.2+1915_daily_bin334.fits
.....................!
real 193.43
user 187.97
sys 5.15

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/743783/ft1_filtered_4FGL_J2318.2+1915_daily_bin334.fits scfile=/scratch/kocevski/743783/ft2_4FGL_J2318.2+1915_daily_bin334.fits outfile=/scratch/kocevski/743783/cmap_325900801_326160001_4FGL_J2318.2+1915_daily_bin334.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.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/743783/ft1_filtered_4FGL_J2318.2+1915_daily_bin334.fits scfile=/scratch/kocevski/743783/ft2_4FGL_J2318.2+1915_daily_bin334.fits outfile=/scratch/kocevski/743783/cmap_HighResolution_325900801_326160001_4FGL_J2318.2+1915_daily_bin334.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1190       1.0000         .10000E-03   10000.    
     2 'norm      '    1.6025       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.4323       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.1988       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.6623       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.9035       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.2512       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .22001E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.8578       1.0000         .10000E-03   10000.    
    17 'norm      '    24.913       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .44707E-01   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .61321       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0858       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=   7592.942     FROM MIGRAD    STATUS=CONVERGED    419 CALLS     1800 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1186        2.9936       -.16168E-06   -.38864E-03
   2  norm          1.6028        1.2648        .18129E-06    .18102E-03
   3  Prefactor     .10000E-03    8.1758        .10741E-04** at limit **
   4  Prefactor     5.4295        9.6590       -.37716E-05   -.14241E-03
   5  Prefactor     .10000E-03    4.8342       -.15268E-06** at limit **
   6  Prefactor     1.1988        .19272        .14663E-07    .19895E-03
   7  Prefactor     .10000E-03    2.7781        .32391E-07** at limit **
   8  Prefactor     2.6621        6.3815       -.10738E-05   -.46531E-03
   9  Prefactor     .10000E-03    9.4523       -.29695E-05** at limit **
  10  Prefactor     .10000E-03    6.4093        .19110E-05** at limit **
  11  Prefactor     .10000E-03    7.5162       -.47185E-05** at limit **
  12  Prefactor     6.9041        5.9127        .66730E-07    .65528E-05
  13  Prefactor     4.2389        10.153       -.36600E-05    .29800E-03
  14  Prefactor     .10000E-03    7.5057       -.48355E-05** at limit **
  15  norm          .10179E-03    8.6763       -.29487E-05** at limit **
  16  Prefactor     2.8337        8.1605        .27102E-05    .50603E-03
  17  norm          24.915        14.386       -.20217E-07    .95100E-04
  18  Prefactor     .67811E-01    3.1654       -.21529E-05    .10092E-02
  19  Normalizat    .61318        .20124        .89133E-06    .44401E-03
  20  Prefactor     1.0858        .11701        .30972E-06    .76016E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.11864
  norm       = 1.60284
  Prefactor  = 0.0001
  Prefactor  = 5.42948
  Prefactor  = 0.0001
  Prefactor  = 1.19879
  Prefactor  = 0.0001
  Prefactor  = 2.66213
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.90412
  Prefactor  = 4.23886
  Prefactor  = 0.0001
  norm       = 0.000101794
  Prefactor  = 2.83368
  norm       = 24.9147
  Prefactor  = 0.0678108
  Normalizat = 0.613178
  Prefactor  = 1.08577
 **********
 **   18 **HESSE 
 **********

 FCN=   7592.942     FROM HESSE     STATUS=OK           303 CALLS     2103 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1186        2.9976        .13903E-03   -1.5355    
   2  norm          1.6028        1.2643        .83262E-04   -1.5455    
   3  Prefactor     .10000E-03    8.1276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.4295        9.7238        .17241E-03   -1.5242    
   5  Prefactor     .10000E-03    4.8361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.1988        .19261        .14541E-04   -1.5489    
   7  Prefactor     .10000E-03    2.7837        .14183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.6621        6.4379        .24980E-03   -1.5382    
   9  Prefactor     .10000E-03    9.8779        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.4147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.5247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.9041        5.9064        .15270E-03   -1.5182    
  13  Prefactor     4.2389        9.7581        .19542E-03   -1.5296    
  14  Prefactor     .10000E-03    7.5197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10179E-03    69.398        .39457E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.8337        7.0341        .24049E-03   -1.5371    
  17  norm          24.915        14.381        .80256E-04   -1.4709    
  18  Prefactor     .67811E-01    3.0520        .53452E-01   -1.5656    
  19  Normalizat    .61318        .22506        .37558E-03   -1.0743    
  20  Prefactor     1.0858        .13235        .17741E-03   -.89923    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76156e-08
Minuit parameter uncertainties:
  1  2.99772
  2  1.2643
  3  2.07682e-06
  4  9.72663
  5  6.59436e-07
  6  0.192614
  7  1.57073e-06
  8  6.43956
  9  4.46355e-05
  10  3.50335e-06
  11  1.68858e-06
  12  5.90686
  13  9.76175
  14  1.36475e-06
  15  0.0223417
  16  7.03612
  17  14.3831
  18  0.909237
  19  0.225393
  20  0.132392
Done.

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

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  6.904e+00  5.907e+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.086e+00  1.324e-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.132e-01  2.254e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.63
Ra Dec: 349.557 19.256
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 5.03e-08 +/- 4.29e-08
Energy Flux (Fixed Index): 1.24e-05 +/- 1.06e-05

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

Saving results to:
/scratch/kocevski/743783/likelihoodResults_325900801_326160001_4FGL_J2318.2+1915_daily_bin334.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) = 7591.37080396
delta logL = 1.57115163946

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7591.36362463
delta logL = 1.57833097298

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8001       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6507       1.0000          .0000       10.000    
     3 'Normalizat'    .65148       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0707       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=   7591.364     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      215 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8053        6.2753        .35894E-02    .52539E-04
   2  Index         1.6505        .34353        .21014       -.92759E-04
   3  Normalizat    .65149        .18657        .82402E-01    .24901E-04
   4  Prefactor     1.0707        .11525        .38823E-01   -.29478E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.80526
  Index      = 1.65046
  Normalizat = 0.651487
  Prefactor  = 1.07072
 **********
 **   18 **HESSE 
 **********

 FCN=   7591.364     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8053        7.7838        .14358E-03   -1.5149    
   2  Index         1.6505        .50280        .78655E-02   -.73408    
   3  Normalizat    .65149        .21143        .36494E-03   -1.0584    
   4  Prefactor     1.0707        .13111        .17841E-03   -.90408    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29974e-11
Minuit parameter uncertainties:
  1  7.78477
  2  0.50435
  3  0.21169
  4  0.13115
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/743783': 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) = 7591.36362386
delta logL = 1.57833174108

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  7.805e+00  7.785e+00  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  1.650e+00  5.043e-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.071e+00  1.312e-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.515e-01  2.117e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.73
Ra Dec: 349.557 19.256
Photon Index (Free Index): 1.65 +/- 0.50
Photon Flux (Free Index): 2.31e-08 +/- 2.56e-08
Energy Flux (Free Index): 4.43e-05 +/- 5.30e-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/743783/cmap_HighResolution_325900801_326160001_4FGL_J2318.2+1915_daily_bin334.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', comment='SUCCESS', photon_flux='5.03e-08', energy_flux2='4.43e-05', photon_flux_error='4.29e-08', dlogl='1.58e+00', energy_flux='1.24e-05', photon_flux2='2.31e-08', job_status='DONE', time_completed='2021-09-29 11:20:00.812232', photon_index_error2='0.50', photon_index2='1.65', ts='2.63', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='1.44e-07', energy_flux_error2='5.30e-05', EG='0.61', time_epoch_completed='1632939600.81', return_code='0', job_id='743783', GAL2='1.07', EG2='0.65', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='2.56e-08', ts2='5.73', photon_index='2.67' WHERE bin_id='334' AND source_name='4FGL J2318.2+1915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:20:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 743783: <4FGL_J2318.2+1915_daily_bin334> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2318.2+1915_daily_bin334 349.557 19.256 325900801 326160001 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 :                                   624.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            864 sec.

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

