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


Performing analysis on: 4FGL_J2318.2+1915_daily_bin196
RA = 349.557, Dec = 19.256
tmin = 290131201, tmax = 290390401
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='743569', job_status='RUN', time_executed='2021-09-29 11:07:15.242251', time_epoch_executed='1632938835.24' WHERE source_name='4FGL J2318.2+1915' and cadence='daily' and bin_id='196'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/743569

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/743569/ft1_4FGL_J2318.2+1915_daily_bin196.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/743569/ft2_4FGL_J2318.2+1915_daily_bin196.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/743569/ft1_4FGL_J2318.2+1915_daily_bin196.fits outfile=/scratch/kocevski/743569/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin196.fits ra=349.557 dec=19.256 rad=12.0 tmin=290131201.0 tmax=290390401.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.42
user 3.22
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/743569/ft1_filtered_4FGL_J2318.2+1915_daily_bin196.fits" evtable="EVENTS" scfile=/scratch/kocevski/743569/ft2_4FGL_J2318.2+1915_daily_bin196.fits sctable="SC_DATA" outfile=/scratch/kocevski/743569/ltcube_290131201_290390401_4FGL_J2318.2+1915_daily_bin196.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/743569/ft2_4FGL_J2318.2+1915_daily_bin196.fits
.....................!
real 11.87
user 11.50
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/743569/ft1_filtered_4FGL_J2318.2+1915_daily_bin196.fits evtable="EVENTS" scfile=/scratch/kocevski/743569/ft2_4FGL_J2318.2+1915_daily_bin196.fits sctable="SC_DATA" expcube=/scratch/kocevski/743569/ltcube_290131201_290390401_4FGL_J2318.2+1915_daily_bin196.fits outfile=/scratch/kocevski/743569/expmap_290131201_290390401_4FGL_J2318.2+1915_daily_bin196.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/743569/ltcube_290131201_290390401_4FGL_J2318.2+1915_daily_bin196.fits
.....................!
real 190.07
user 185.19
sys 4.49

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/743569/ft1_filtered_4FGL_J2318.2+1915_daily_bin196.fits scfile=/scratch/kocevski/743569/ft2_4FGL_J2318.2+1915_daily_bin196.fits outfile=/scratch/kocevski/743569/cmap_290131201_290390401_4FGL_J2318.2+1915_daily_bin196.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/743569/ft1_filtered_4FGL_J2318.2+1915_daily_bin196.fits scfile=/scratch/kocevski/743569/ft2_4FGL_J2318.2+1915_daily_bin196.fits outfile=/scratch/kocevski/743569/cmap_HighResolution_290131201_290390401_4FGL_J2318.2+1915_daily_bin196.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=349.557 yref=19.256 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12983E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.8306       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12130E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .60410       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.341       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.4893       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.315       1.0000         .10000E-03   10000.    
    15 'norm      '    3.2636       1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.021       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.4059       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2885       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .87801       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9977.838     FROM MIGRAD    STATUS=CONVERGED    428 CALLS     2053 TOTAL
                     EDM=   .38E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.5886         .0000    ** at limit **
   2  norm          .10000E-03    .94795         .0000    ** at limit **
   3  Prefactor     .10000E-03    65.046         .0000    ** at limit **
   4  Prefactor     .10002E-03    14.039         .0000    ** at limit **
   5  Prefactor     .10002E-03    13.159         .0000    ** at limit **
   6  Prefactor     5.8306        .39809         .0000        .99222E-04
   7  Prefactor     .10000E-03    32.140         .0000    ** at limit **
   8  Prefactor     .60514        6.8605         .0000        .52423E-01
   9  Prefactor     .10000E-03    7.1083         .0000    ** at limit **
  10  Prefactor     22.334        21.850         .0000        .10576E-02
  11  Prefactor     .10001E-03    11.361         .0000    ** at limit **
  12  Prefactor     5.4889        6.7727         .0000        .34013E-03
  13  Prefactor     .10000E-03    8.4247         .0000    ** at limit **
  14  Prefactor     13.315        20.951         .0000        .10287E-03
  15  norm          3.2629        9.3465         .0000        .37990E-03
  16  Prefactor     18.027        10.403         .0000       -.18475E-03
  17  norm          .10000E-03    11.859         .0000    ** at limit **
  18  Prefactor     7.4053        5.2684         .0000       -.33284E-02
  19  Normalizat    1.2886        .23248         .0000        .10863E-03
  20  Prefactor     .87785        .12336         .0000        .85439E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100018
  Prefactor  = 0.000100021
  Prefactor  = 5.83061
  Prefactor  = 0.000100001
  Prefactor  = 0.605141
  Prefactor  = 0.000100001
  Prefactor  = 22.3336
  Prefactor  = 0.000100008
  Prefactor  = 5.48893
  Prefactor  = 0.0001
  Prefactor  = 13.3153
  norm       = 3.26288
  Prefactor  = 18.0267
  norm       = 0.000100005
  Prefactor  = 7.40532
  Normalizat = 1.28858
  Prefactor  = 0.877849
 **********
 **   18 **HESSE 
 **********

 FCN=   9977.838     FROM HESSE     STATUS=OK           289 CALLS     2342 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.8542        .23923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .97565        .18987E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    65.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10002E-03    14.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10002E-03    13.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.8306        .39837        .15610E-04   -1.5225    
   7  Prefactor     .10000E-03    33.321        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .60514        6.9187        .23377E-02   -1.5552    
   9  Prefactor     .10000E-03    7.1429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     22.334        21.848        .84744E-04   -1.4762    
  11  Prefactor     .10001E-03    11.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.4889        6.7474        .17149E-03   -1.5239    
  13  Prefactor     .10000E-03    8.5605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.315        20.914        .10977E-03   -1.4978    
  15  norm          3.2629        9.2243        .22417E-03   -1.5347    
  16  Prefactor     18.027        10.333        .94349E-04   -1.4859    
  17  norm          .10000E-03    11.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.4053        5.2709        .14738E-03   -1.5164    
  19  Normalizat    1.2886        .27366        .37686E-03   -.83908    
  20  Prefactor     .87785        .14641        .24688E-03   -.96919    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17523e-08
Minuit parameter uncertainties:
  1  0.000140236
  2  2.615e-06
  3  0.000213801
  4  0.00102426
  5  0.0010418
  6  0.398368
  7  0.000373052
  8  4.09259
  9  0.00018233
  10  21.8555
  11  0.000585327
  12  6.74831
  13  1.06361e-05
  14  20.9256
  15  9.2283
  16  10.3337
  17  0.000482124
  18  5.27126
  19  0.273966
  20  0.14648
Done.

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

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  5.489e+00  6.748e+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:  8.778e-01  1.465e-01  0.000e+00  1.000e+01 ( 1.000e+00)
512        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
513        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
510   Normalization:  1.289e+00  2.740e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.03
Ra Dec: 349.557 19.256
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 4.00e-08 +/- 4.91e-08
Energy Flux (Fixed Index): 9.88e-06 +/- 1.21e-05

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

Saving results to:
/scratch/kocevski/743569/likelihoodResults_290131201_290390401_4FGL_J2318.2+1915_daily_bin196.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) = 9977.64035435
delta logL = 0.197344727569

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9977.62729214
delta logL = 0.210406933422

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5346       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0607       1.0000          .0000       10.000    
     3 'Normalizat'    1.3074       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87012       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=   9977.627     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      217 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5387        10.548        .39248E-02    .22379E-02
   2  Index         2.0621        .84426        .25451       -.70392E-04
   3  Normalizat    1.3073        .22244        .84615E-01   -.35939E-03
   4  Prefactor     .87014        .12356        .44623E-01   -.11775E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.53874
  Index      = 2.06205
  Normalizat = 1.30728
  Prefactor  = 0.870138
 **********
 **   18 **HESSE 
 **********

 FCN=   9977.627     FROM HESSE     STATUS=OK            31 CALLS      248 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5387        7.5029        .78496E-03   -1.5196    
   2  Index         2.0621        .80928        .14045E-01   -.62808    
   3  Normalizat    1.3073        .26206        .37463E-03   -.83349    
   4  Prefactor     .87014        .14542        .24782E-03   -.97193    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.60481e-10
Minuit parameter uncertainties:
  1  7.50399
  2  0.814777
  3  0.262323
  4  0.145482
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/743569': 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) = 9977.62729069
delta logL = 0.210408380875

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  6.539e+00  7.504e+00  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  2.062e+00  8.148e-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:  8.701e-01  1.455e-01  0.000e+00  1.000e+01 ( 1.000e+00)
512        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
513        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
510   Normalization:  1.307e+00  2.623e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.44
Ra Dec: 349.557 19.256
Photon Index (Free Index): 2.06 +/- 0.81
Photon Flux (Free Index): 2.51e-08 +/- 3.72e-08
Energy Flux (Free Index): 1.50e-05 +/- 2.12e-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/743569/cmap_HighResolution_290131201_290390401_4FGL_J2318.2+1915_daily_bin196.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.18e-02', comment='SUCCESS', photon_flux='4.00e-08', energy_flux2='1.50e-05', photon_flux_error='4.91e-08', dlogl='2.10e-01', energy_flux='9.88e-06', photon_flux2='2.51e-08', job_status='DONE', time_completed='2021-09-29 11:20:14.001023', photon_index_error2='0.81', photon_index2='2.06', ts='1.03', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='1.50e-07', energy_flux_error2='2.12e-05', EG='1.29', time_epoch_completed='1632939614.0', return_code='0', job_id='743569', GAL2='0.87', EG2='1.31', return_code2='0', energy_flux_error='1.21e-05', photon_flux_error2='3.72e-08', ts2='1.44', photon_index='2.67' WHERE bin_id='196' AND source_name='4FGL J2318.2+1915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:20:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 743569: <4FGL_J2318.2+1915_daily_bin196> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2318.2+1915_daily_bin196 349.557 19.256 290131201 290390401 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 :                                   776.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             342.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   896 sec.
    Turnaround time :                            897 sec.

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

