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


Performing analysis on: 4FGL_J2318.2+1915_daily_bin1169
RA = 349.557, Dec = 19.256
tmin = 542332801, tmax = 542592001
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='748091', job_status='RUN', time_executed='2021-09-29 11:20:32.448266', time_epoch_executed='1632939632.45' WHERE source_name='4FGL J2318.2+1915' and cadence='daily' and bin_id='1169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/748091

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/748091/ft1_4FGL_J2318.2+1915_daily_bin1169.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/748091/ft2_4FGL_J2318.2+1915_daily_bin1169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/748091/ft1_4FGL_J2318.2+1915_daily_bin1169.fits outfile=/scratch/kocevski/748091/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin1169.fits ra=349.557 dec=19.256 rad=12.0 tmin=542332801.0 tmax=542592001.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 4.14
user 3.90
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/748091/ft1_filtered_4FGL_J2318.2+1915_daily_bin1169.fits" evtable="EVENTS" scfile=/scratch/kocevski/748091/ft2_4FGL_J2318.2+1915_daily_bin1169.fits sctable="SC_DATA" outfile=/scratch/kocevski/748091/ltcube_542332801_542592001_4FGL_J2318.2+1915_daily_bin1169.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/748091/ft2_4FGL_J2318.2+1915_daily_bin1169.fits
.....................!
real 12.14
user 11.76
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/748091/ft1_filtered_4FGL_J2318.2+1915_daily_bin1169.fits evtable="EVENTS" scfile=/scratch/kocevski/748091/ft2_4FGL_J2318.2+1915_daily_bin1169.fits sctable="SC_DATA" expcube=/scratch/kocevski/748091/ltcube_542332801_542592001_4FGL_J2318.2+1915_daily_bin1169.fits outfile=/scratch/kocevski/748091/expmap_542332801_542592001_4FGL_J2318.2+1915_daily_bin1169.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/748091/ltcube_542332801_542592001_4FGL_J2318.2+1915_daily_bin1169.fits
.....................!
real 191.09
user 185.24
sys 5.45

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/748091/ft1_filtered_4FGL_J2318.2+1915_daily_bin1169.fits scfile=/scratch/kocevski/748091/ft2_4FGL_J2318.2+1915_daily_bin1169.fits outfile=/scratch/kocevski/748091/cmap_542332801_542592001_4FGL_J2318.2+1915_daily_bin1169.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/748091/ft1_filtered_4FGL_J2318.2+1915_daily_bin1169.fits scfile=/scratch/kocevski/748091/ft2_4FGL_J2318.2+1915_daily_bin1169.fits outfile=/scratch/kocevski/748091/cmap_HighResolution_542332801_542592001_4FGL_J2318.2+1915_daily_bin1169.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/748091/ft1_filtered_4FGL_J2318.2+1915_daily_bin1169.fits evtable="EVENTS" scfile=/scratch/kocevski/748091/ft2_4FGL_J2318.2+1915_daily_bin1169.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/748091/Model_4FGL_J2318.2+1915_daily_bin1169.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/748091/ft1_filtered_4FGL_J2318.2+1915_daily_bin1169.fits.....................!
real 90.58
user 89.09
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.7189       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 '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.7365       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.7363       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.546       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.3561       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.2594       1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.361       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10101E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.315       1.0000         .10000E-03   10000.    
    17 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.0524       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .91820       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0568       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=   7938.562     FROM MIGRAD    STATUS=CONVERGED    420 CALLS     2012 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.7179        4.0342       -.53723E-08    .19831E-03
   2  norm          .10000E-03    .66680       -.10894E-08** at limit **
   3  Prefactor     .10000E-03    11.377       -.46736E-08** at limit **
   4  Prefactor     .10000E-03    2.5642        .13387E-08** at limit **
   5  Prefactor     .10000E-03    6.8134       -.11071E-08** at limit **
   6  Prefactor     1.7365        .24770       -.46879E-09    .51891E-02
   7  Prefactor     2.7344        1.8457       -.38692E-06   -.22183E-03
   8  Prefactor     .10000E-03    2.5359        .28313E-09** at limit **
   9  Prefactor     .10000E-03    4.6514       -.19932E-09** at limit **
  10  Prefactor     22.542        22.951        .74068E-07   -.98162E-03
  11  Prefactor     5.2975        19.952       -.35295E-07    .56509E-04
  12  Prefactor     7.2575        6.2315       -.65669E-08    .27012E-03
  13  Prefactor     18.362        13.923       -.20497E-07    .65209E-03
  14  Prefactor     .10000E-03    4.8456       -.21136E-09** at limit **
  15  norm          .10000E-03    16.507       -.83513E-08** at limit **
  16  Prefactor     14.314        9.1716        .32360E-08   -.27415E-03
  17  norm          .10000E-03    19.838       -.86037E-08** at limit **
  18  Prefactor     5.0521        4.5948        .28163E-07    .18268E-03
  19  Normalizat    .91845        .22760       -.43812E-08    .15587E-03
  20  Prefactor     1.0567        .12540        .23512E-07    .19643E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.71787
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.7365
  Prefactor  = 2.7344
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.5415
  Prefactor  = 5.29747
  Prefactor  = 7.25754
  Prefactor  = 18.3619
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.3139
  norm       = 0.0001
  Prefactor  = 5.05209
  Normalizat = 0.918446
  Prefactor  = 1.05667
 **********
 **   18 **HESSE 
 **********

 FCN=   7938.562     FROM HESSE     STATUS=OK           285 CALLS     2297 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.7179        4.0563        .12196E-03   -1.5152    
   2  norm          .10000E-03    .67959        .71037E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.5663        .13933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.8161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.7365        .24810        .15902E-04   -1.5444    
   7  Prefactor     2.7344        7.8686        .12307E-02   -1.5377    
   8  Prefactor     .10000E-03    2.5473        .13855E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.6625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     22.542        22.982        .84357E-04   -1.4758    
  11  Prefactor     5.2975        19.960        .17365E-03   -1.5248    
  12  Prefactor     7.2575        6.2329        .14887E-03   -1.5169    
  13  Prefactor     18.362        13.900        .93471E-04   -1.4851    
  14  Prefactor     .10000E-03    4.8479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    16.712        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.314        9.1819        .10586E-03   -1.4951    
  17  norm          .10000E-03    20.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.0521        4.6632        .89445E-03   -1.5258    
  19  Normalizat    .91845        .26176        .37067E-03   -.95815    
  20  Prefactor     1.0567        .14482        .20161E-03   -.90863    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.24133e-09
Minuit parameter uncertainties:
  1  4.05644
  2  4.01713e-06
  3  6.41035e-05
  4  2.36695e-06
  5  1.18081e-05
  6  0.248102
  7  7.8716
  8  2.45601e-06
  9  2.79712e-07
  10  22.9905
  11  19.9854
  12  6.23344
  13  13.9026
  14  1.75e-06
  15  0.000156389
  16  9.18276
  17  0.000125617
  18  4.66355
  19  0.262125
  20  0.144874
Done.

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

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  7.258e+00  6.233e+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.057e+00  1.449e-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.184e-01  2.621e-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.28e-08 +/- 4.53e-08
Energy Flux (Fixed Index): 1.31e-05 +/- 1.12e-05

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

Saving results to:
/scratch/kocevski/748091/likelihoodResults_542332801_542592001_4FGL_J2318.2+1915_daily_bin1169.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) = 7937.90650217
delta logL = 0.655598299396

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7937.89606973
delta logL = 0.666030742616

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.4081       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8900       1.0000          .0000       10.000    
     3 'Normalizat'    .95293       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0431       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=   7937.896     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      210 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.4081        8.3475        .34563E-02   -.38819E-02
   2  Index         1.8900        .45961        .26463       -.13500E-03
   3  Normalizat    .95290        .21336        .82355E-01   -.21371E-03
   4  Prefactor     1.0431        .12415        .40333E-01   -.11079E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.40811
  Index      = 1.88997
  Normalizat = 0.952901
  Prefactor  = 1.0431
 **********
 **   18 **HESSE 
 **********

 FCN=   7937.896     FROM HESSE     STATUS=OK            29 CALLS      239 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.4081        8.2161        .13825E-03   -1.5128    
   2  Index         1.8900        .58970        .90894E-02   -.67130    
   3  Normalizat    .95290        .24418        .36458E-03   -.94625    
   4  Prefactor     1.0431        .14229        .20272E-03   -.91306    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35983e-08
Minuit parameter uncertainties:
  1  8.21716
  2  0.591952
  3  0.244463
  4  0.142344
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/748091': 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) = 7937.89606972
delta logL = 0.666030751439

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  8.408e+00  8.217e+00  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  1.890e+00  5.920e-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.043e+00  1.423e-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.529e-01  2.445e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.96
Ra Dec: 349.557 19.256
Photon Index (Free Index): 1.89 +/- 0.59
Photon Flux (Free Index): 2.83e-08 +/- 3.41e-08
Energy Flux (Free Index): 2.61e-05 +/- 3.17e-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/748091/cmap_HighResolution_542332801_542592001_4FGL_J2318.2+1915_daily_bin1169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.23e-02', comment='SUCCESS', photon_flux='5.28e-08', energy_flux2='2.61e-05', photon_flux_error='4.53e-08', dlogl='6.66e-01', energy_flux='1.31e-05', photon_flux2='2.83e-08', job_status='DONE', time_completed='2021-09-29 11:31:41.236083', photon_index_error2='0.59', photon_index2='1.89', ts='2.63', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='1.56e-07', energy_flux_error2='3.17e-05', EG='0.92', time_epoch_completed='1632940301.24', return_code='0', job_id='748091', GAL2='1.04', EG2='0.95', return_code2='0', energy_flux_error='1.12e-05', photon_flux_error2='3.41e-08', ts2='3.96', photon_index='2.67' WHERE bin_id='1169' AND source_name='4FGL J2318.2+1915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:31:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 748091: <4FGL_J2318.2+1915_daily_bin1169> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2318.2+1915_daily_bin1169 349.557 19.256 542332801 542592001 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 :                                   665.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             312.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   679 sec.
    Turnaround time :                            681 sec.

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

