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


Performing analysis on: 4FGL_J2318.2+1915_daily_bin966
RA = 349.557, Dec = 19.256
tmin = 489715201, tmax = 489974401
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='746815', job_status='RUN', time_executed='2021-09-29 11:15:57.213980', time_epoch_executed='1632939357.21' WHERE source_name='4FGL J2318.2+1915' and cadence='daily' and bin_id='966'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/746815

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/746815/ft1_4FGL_J2318.2+1915_daily_bin966.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/746815/ft2_4FGL_J2318.2+1915_daily_bin966.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/746815/ft1_4FGL_J2318.2+1915_daily_bin966.fits outfile=/scratch/kocevski/746815/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin966.fits ra=349.557 dec=19.256 rad=12.0 tmin=489715201.0 tmax=489974401.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.08
user 3.84
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/746815/ft1_filtered_4FGL_J2318.2+1915_daily_bin966.fits" evtable="EVENTS" scfile=/scratch/kocevski/746815/ft2_4FGL_J2318.2+1915_daily_bin966.fits sctable="SC_DATA" outfile=/scratch/kocevski/746815/ltcube_489715201_489974401_4FGL_J2318.2+1915_daily_bin966.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/746815/ft2_4FGL_J2318.2+1915_daily_bin966.fits
.....................!
real 11.83
user 11.48
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/746815/ft1_filtered_4FGL_J2318.2+1915_daily_bin966.fits evtable="EVENTS" scfile=/scratch/kocevski/746815/ft2_4FGL_J2318.2+1915_daily_bin966.fits sctable="SC_DATA" expcube=/scratch/kocevski/746815/ltcube_489715201_489974401_4FGL_J2318.2+1915_daily_bin966.fits outfile=/scratch/kocevski/746815/expmap_489715201_489974401_4FGL_J2318.2+1915_daily_bin966.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/746815/ltcube_489715201_489974401_4FGL_J2318.2+1915_daily_bin966.fits
.....................!
real 190.19
user 185.11
sys 4.70

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/746815/ft1_filtered_4FGL_J2318.2+1915_daily_bin966.fits scfile=/scratch/kocevski/746815/ft2_4FGL_J2318.2+1915_daily_bin966.fits outfile=/scratch/kocevski/746815/cmap_489715201_489974401_4FGL_J2318.2+1915_daily_bin966.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/746815/ft1_filtered_4FGL_J2318.2+1915_daily_bin966.fits scfile=/scratch/kocevski/746815/ft2_4FGL_J2318.2+1915_daily_bin966.fits outfile=/scratch/kocevski/746815/cmap_HighResolution_489715201_489974401_4FGL_J2318.2+1915_daily_bin966.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    22.884       1.0000         .10000E-03   10000.    
     2 'norm      '    2.8523       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.798       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.7162       1.0000         .10000E-03   10000.    
     7 'Prefactor '    27.256       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.375       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.419       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.888       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8554       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    15.779       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .25730       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.3528       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=   11389.86     FROM MIGRAD    STATUS=CONVERGED    689 CALLS     2308 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          22.885        4.8481        .83733E-04   -.14582E-03
   2  norm          2.8526        1.9926        .12021E-03   -.12351E-03
   3  Prefactor     .10000E-03    12.112        .18142E-02** at limit **
   4  Prefactor     15.797        13.047        .10077E-03   -.57539E-04
   5  Prefactor     .10000E-03    11.455        .18142E-02** at limit **
   6  Prefactor     7.7162        .43983        .15982E-04   -.17513E-02
   7  Prefactor     27.258        14.598        .76735E-04   -.27260E-04
   8  Prefactor     .10000E-03    12.928        .36285E-03** at limit **
   9  Prefactor     28.376        16.529        .75211E-04   -.45952E-04
  10  Prefactor     15.419        20.989        .10200E-03   -.33883E-04
  11  Prefactor     .10000E-03    5.0329        .18142E-02** at limit **
  12  Prefactor     11.891        8.7767        .11618E-03   -.16517E-03
  13  Prefactor     2.8561        12.180        .24059E-03   -.13231E-03
  14  Prefactor     .10000E-03    22.919        .18142E-02** at limit **
  15  norm          15.783        10.284        .10083E-03   -.13530E-05
  16  Prefactor     .10000E-03    4.9994        .18142E-02** at limit **
  17  norm          .10000E-03    9.6504        .18142E-02** at limit **
  18  Prefactor     .10000E-03    4.6738        .18142E-02** at limit **
  19  Normalizat    .25734        .26147        .81396E-03   -.70003E-04
  20  Prefactor     1.3528        .15106        .22521E-03   -.14367E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 22.8848
  norm       = 2.85257
  Prefactor  = 0.0001
  Prefactor  = 15.7967
  Prefactor  = 0.0001
  Prefactor  = 7.71623
  Prefactor  = 27.2584
  Prefactor  = 0.0001
  Prefactor  = 28.3764
  Prefactor  = 15.4195
  Prefactor  = 0.0001
  Prefactor  = 11.8913
  Prefactor  = 2.85608
  Prefactor  = 0.0001
  norm       = 15.7827
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.257341
  Prefactor  = 1.35276
 **********
 **   18 **HESSE 
 **********

 FCN=   11389.86     FROM HESSE     STATUS=OK           271 CALLS     2579 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          22.885        4.8475        .33493E-05   -1.4751    
   2  norm          2.8526        1.9925        .48084E-05   -1.5370    
   3  Prefactor     .10000E-03    12.113        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.797        13.047        .40307E-05   -1.4913    
   5  Prefactor     .10000E-03    11.456        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.7162        .43981        .63929E-06   -1.5152    
   7  Prefactor     27.258        14.599        .30694E-05   -1.4663    
   8  Prefactor     .10000E-03    12.929        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     28.376        16.529        .30084E-05   -1.4642    
  10  Prefactor     15.419        20.989        .40800E-05   -1.4922    
  11  Prefactor     .10000E-03    5.0330        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.891        8.7755        .46473E-05   -1.5018    
  13  Prefactor     2.8561        12.170        .96237E-05   -1.5370    
  14  Prefactor     .10000E-03    22.926        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          15.783        10.280        .40331E-05   -1.4913    
  16  Prefactor     .10000E-03    5.0008        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    9.6530        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.6765        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .25734        .26094        .32559E-04   -1.2548    
  20  Prefactor     1.3528        .15082        .90084E-05   -.81752    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41764e-10
Minuit parameter uncertainties:
  1  4.84758
  2  1.99257
  3  1.21824e-05
  4  13.0497
  5  5.34334e-05
  6  0.439812
  7  14.6011
  8  1.66584e-05
  9  16.5313
  10  20.9994
  11  8.29213e-06
  12  8.77647
  13  11.7953
  14  2.04359e-06
  15  10.2807
  16  1.10449e-05
  17  1.15946e-05
  18  1.43012e-06
  19  0.262189
  20  0.150871
Done.

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

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  1.189e+01  8.776e+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.353e+00  1.509e-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:  2.573e-01  2.622e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.47
Ra Dec: 349.557 19.256
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 8.66e-08 +/- 6.38e-08
Energy Flux (Fixed Index): 2.14e-05 +/- 1.58e-05

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

Saving results to:
/scratch/kocevski/746815/likelihoodResults_489715201_489974401_4FGL_J2318.2+1915_daily_bin966.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) = 11389.6596472
delta logL = 0.195992674513

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11389.6501336
delta logL = 0.205506224469

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5872       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2842       1.0000          .0000       10.000    
     3 'Normalizat'    .21957       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3724       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=   11389.65     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      256 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5768        69.165        .39089E-02    .73256E-03
   2  Index         3.2852        3.1018        .21527        .19138E-03
   3  Normalizat    .21957        .64963E-01    .20087        .12675E-03
   4  Prefactor     1.3724        .38657E-01    .50638E-01   -.13411E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.57684
  Index      = 3.28519
  Normalizat = 0.219574
  Prefactor  = 1.37236
 **********
 **   18 **HESSE 
 **********

 FCN=   11389.65     FROM HESSE     STATUS=OK            33 CALLS      289 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5768        26.389        .15636E-03   -1.5195    
   2  Index         3.2852        2.7758        .75751E-02   -.35007    
   3  Normalizat    .21957        .27723        .87381E-03   -1.2801    
   4  Prefactor     1.3724        .17024        .22381E-03   -.81180    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.84887e-10
Minuit parameter uncertainties:
  1  26.3682
  2  2.96977
  3  0.278988
  4  0.17031
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/746815': 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) = 11389.6501331
delta logL = 0.205506741813

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  6.577e+00  2.637e+01  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  3.285e+00  2.970e+00  0.000e+00  1.000e+01 (-1.000e+00)
374        Scale:  6.043e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  1.372e+00  1.703e-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:  2.196e-01  2.790e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.94
Ra Dec: 349.557 19.256
Photon Index (Free Index): 3.29 +/- 2.97
Photon Flux (Free Index): 1.06e-07 +/- 7.37e-08
Energy Flux (Free Index): 1.89e-05 +/- 2.16e-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/746815/cmap_HighResolution_489715201_489974401_4FGL_J2318.2+1915_daily_bin966.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.64e-02', comment='SUCCESS', photon_flux='8.66e-08', energy_flux2='1.89e-05', photon_flux_error='6.38e-08', dlogl='2.06e-01', energy_flux='2.14e-05', photon_flux2='1.06e-07', job_status='DONE', time_completed='2021-09-29 11:31:09.911001', photon_index_error2='2.97', photon_index2='3.29', ts='2.47', fit_tolerance='1e-08', GAL='1.35', photon_index_error='0.00', photon_flux_upper_limit='2.09e-07', energy_flux_error2='2.16e-05', EG='0.26', time_epoch_completed='1632940269.91', return_code='0', job_id='746815', GAL2='1.37', EG2='0.22', return_code2='0', energy_flux_error='1.58e-05', photon_flux_error2='7.37e-08', ts2='2.94', photon_index='2.67' WHERE bin_id='966' AND source_name='4FGL J2318.2+1915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:31:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 746815: <4FGL_J2318.2+1915_daily_bin966> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2318.2+1915_daily_bin966 349.557 19.256 489715201 489974401 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 :                                   890.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             362.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            926 sec.

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

