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


Performing analysis on: 4FGL_J2318.2+1915_daily_bin703
RA = 349.557, Dec = 19.256
tmin = 421545601, tmax = 421804801
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='745368', job_status='RUN', time_executed='2021-09-29 11:14:23.248673', time_epoch_executed='1632939263.25' WHERE source_name='4FGL J2318.2+1915' and cadence='daily' and bin_id='703'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/745368

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/745368/ft1_4FGL_J2318.2+1915_daily_bin703.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/745368/ft2_4FGL_J2318.2+1915_daily_bin703.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/745368/ft1_4FGL_J2318.2+1915_daily_bin703.fits outfile=/scratch/kocevski/745368/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin703.fits ra=349.557 dec=19.256 rad=12.0 tmin=421545601.0 tmax=421804801.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.64
user 3.36
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/745368/ft2_4FGL_J2318.2+1915_daily_bin703.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/745368/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin703.fits evtable="EVENTS" outfile="/scratch/kocevski/745368/ft1_filtered_4FGL_J2318.2+1915_daily_bin703.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/745368/ft1_filtered_4FGL_J2318.2+1915_daily_bin703.fits" evtable="EVENTS" scfile=/scratch/kocevski/745368/ft2_4FGL_J2318.2+1915_daily_bin703.fits sctable="SC_DATA" outfile=/scratch/kocevski/745368/ltcube_421545601_421804801_4FGL_J2318.2+1915_daily_bin703.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/745368/ft2_4FGL_J2318.2+1915_daily_bin703.fits
.....................!
real 13.94
user 13.58
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/745368/ft1_filtered_4FGL_J2318.2+1915_daily_bin703.fits evtable="EVENTS" scfile=/scratch/kocevski/745368/ft2_4FGL_J2318.2+1915_daily_bin703.fits sctable="SC_DATA" expcube=/scratch/kocevski/745368/ltcube_421545601_421804801_4FGL_J2318.2+1915_daily_bin703.fits outfile=/scratch/kocevski/745368/expmap_421545601_421804801_4FGL_J2318.2+1915_daily_bin703.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/745368/ltcube_421545601_421804801_4FGL_J2318.2+1915_daily_bin703.fits
.....................!
real 192.46
user 187.26
sys 4.84

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/745368/ft1_filtered_4FGL_J2318.2+1915_daily_bin703.fits scfile=/scratch/kocevski/745368/ft2_4FGL_J2318.2+1915_daily_bin703.fits outfile=/scratch/kocevski/745368/cmap_421545601_421804801_4FGL_J2318.2+1915_daily_bin703.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/745368/ft1_filtered_4FGL_J2318.2+1915_daily_bin703.fits scfile=/scratch/kocevski/745368/ft2_4FGL_J2318.2+1915_daily_bin703.fits outfile=/scratch/kocevski/745368/cmap_HighResolution_421545601_421804801_4FGL_J2318.2+1915_daily_bin703.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.4348       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.8221       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.2963       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.3358       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.202       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.948       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10602E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.555       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.9468       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.0885       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .13519E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0323       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .92817       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=   9164.519     FROM MIGRAD    STATUS=CONVERGED    701 CALLS     2330 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.4340        3.2800        .12736E-03    .12997E-03
   2  norm          .10000E-03    .46060        .63159E-03** at limit **
   3  Prefactor     .10000E-03    13.311        .18142E-02** at limit **
   4  Prefactor     8.8217        7.3114        .13495E-03   -.32350E-04
   5  Prefactor     .10000E-03    5.3290        .18142E-02** at limit **
   6  Prefactor     3.2963        .28727        .14354E-04    .25485E-02
   7  Prefactor     5.3350        9.5393        .86992E-03    .22005E-03
   8  Prefactor     11.202        7.3339        .59850E-03    .28459E-03
   9  Prefactor     13.950        11.242        .10725E-03    .15116E-03
  10  Prefactor     .10000E-03    30.536        .18142E-02** at limit **
  11  Prefactor     21.551        19.731        .86272E-04   -.35806E-03
  12  Prefactor     3.9466        3.8700        .18031E-03   -.15170E-03
  13  Prefactor     3.1140        12.038        .23077E-03    .38583E-03
  14  Prefactor     .10000E-03    3.9764        .18142E-02** at limit **
  15  norm          .10000E-03    50.678        .35623E-02** at limit **
  16  Prefactor     .10000E-03    3.4220        .17212E-02** at limit **
  17  norm          .10000E-03    7.6364        .18142E-02** at limit **
  18  Prefactor     .10000E-03    1.6689        .12068E-02** at limit **
  19  Normalizat    1.0325        .23151        .34549E-03   -.12853E-03
  20  Prefactor     .92808        .13344        .21349E-03   -.22573E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.43401
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.82172
  Prefactor  = 0.0001
  Prefactor  = 3.29629
  Prefactor  = 5.33501
  Prefactor  = 11.2022
  Prefactor  = 13.9499
  Prefactor  = 0.000100003
  Prefactor  = 21.5507
  Prefactor  = 3.94657
  Prefactor  = 3.11405
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.03252
  Prefactor  = 0.928081
 **********
 **   18 **HESSE 
 **********

 FCN=   9164.519     FROM HESSE     STATUS=OK           271 CALLS     2601 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.4340        3.2799        .50943E-05   -1.5242    
   2  norm          .10000E-03    .46062        .12632E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.311        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.8217        7.3112        .53980E-05   -1.5114    
   5  Prefactor     .10000E-03    5.3290        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.2963        .28726        .28708E-05   -1.5345    
   7  Prefactor     5.3350        9.5369        .34797E-04   -1.5246    
   8  Prefactor     11.202        7.3333        .23940E-04   -1.5038    
   9  Prefactor     13.950        11.241        .42898E-05   -1.4961    
  10  Prefactor     .10000E-03    30.564        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     21.551        19.731        .17254E-04   -1.4779    
  12  Prefactor     3.9466        3.8699        .72123E-05   -1.5311    
  13  Prefactor     3.1140        12.016        .92310E-05   -1.5355    
  14  Prefactor     .10000E-03    3.9765        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    51.686        .71245E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.4230        .34423E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    7.6374        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.6689        .24137E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0325        .23166        .13820E-04   -.91949    
  20  Prefactor     .92808        .13356        .42697E-04   -.95167    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33096e-09
Minuit parameter uncertainties:
  1  3.28001
  2  1.85429e-06
  3  5.04156e-05
  4  7.31196
  5  6.56445e-06
  6  0.287258
  7  9.53964
  8  7.33389
  9  11.2426
  10  0.000645474
  11  19.7366
  12  3.8701
  13  12.0255
  14  1.41693e-06
  15  0.000480637
  16  2.26097e-05
  17  2.92289e-05
  18  7.56547e-06
  19  0.231885
  20  0.133606
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
510   Normalization:  1.033e+00  2.319e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.85
Ra Dec: 349.557 19.256
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 2.87e-08 +/- 2.81e-08
Energy Flux (Fixed Index): 7.10e-06 +/- 6.96e-06

TS (Fixed Index): 1.85
Ra Dec: 349.557 19.256
Photon Flux Upper Limit: 9.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/745368/likelihoodResults_421545601_421804801_4FGL_J2318.2+1915_daily_bin703.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) = 9164.50488589
delta logL = 0.0137614389623

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9164.50238159
delta logL = 0.0162657339843

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1988       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4523       1.0000          .0000       10.000    
     3 'Normalizat'    1.0394       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92551       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=   9164.502     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      224 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2003        91.603        .49168E-02    .25064E-03
   2  Index         2.4509        6.2154        .40002        .18774E-06
   3  Normalizat    1.0393        .64962E-01    .77833E-01    .22643E-04
   4  Prefactor     .92559        .32070E-01    .45329E-01    .15702E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.20027
  Index      = 2.45094
  Normalizat = 1.03928
  Prefactor  = 0.925586
 **********
 **   18 **HESSE 
 **********

 FCN=   9164.502     FROM HESSE     STATUS=OK            33 CALLS      257 TOTAL
                     EDM=   .51E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2003        4.2878        .18936E-03   -1.5298    
   2  Index         2.4509        1.1383        .11094E-01   -.53497    
   3  Normalizat    1.0393        .22585        .34450E-03   -.91726    
   4  Prefactor     .92559        .13264        .21374E-03   -.95253    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.10217e-13
Minuit parameter uncertainties:
  1  4.28809
  2  1.152
  3  0.226055
  4  0.132684
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/745368': 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) = 9164.50238063
delta logL = 0.0162666965643

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  4.200e+00  4.288e+00  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  2.451e+00  1.152e+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:  9.256e-01  1.327e-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.039e+00  2.261e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.87
Ra Dec: 349.557 19.256
Photon Index (Free Index): 2.45 +/- 1.15
Photon Flux (Free Index): 2.38e-08 +/- 3.43e-08
Energy Flux (Free Index): 7.32e-06 +/- 7.70e-06

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/745368/cmap_HighResolution_421545601_421804801_4FGL_J2318.2+1915_daily_bin703.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.84e-03', comment='SUCCESS', photon_flux='2.87e-08', energy_flux2='7.32e-06', photon_flux_error='2.81e-08', dlogl='1.63e-02', energy_flux='7.10e-06', photon_flux2='2.38e-08', job_status='DONE', time_completed='2021-09-29 11:27:14.297242', photon_index_error2='1.15', photon_index2='2.45', ts='1.85', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='9.98e-08', energy_flux_error2='7.70e-06', EG='1.03', time_epoch_completed='1632940034.3', return_code='0', job_id='745368', GAL2='0.93', EG2='1.04', return_code2='0', energy_flux_error='6.96e-06', photon_flux_error2='3.43e-08', ts2='1.87', photon_index='2.67' WHERE bin_id='703' AND source_name='4FGL J2318.2+1915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:27:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 745368: <4FGL_J2318.2+1915_daily_bin703> in cluster <slac> Done

Job <4FGL_J2318.2+1915_daily_bin703> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 11:10:44 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 11:10:46 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:10:46 2021
Terminated at Wed Sep 29 11:27:15 2021
Results reported at Wed Sep 29 11:27:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2318.2+1915_daily_bin703 349.557 19.256 421545601 421804801 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 :                                   769.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             255.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            991 sec.

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

