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


Performing analysis on: 4FGL_J2318.2+1915_daily_bin1495
RA = 349.557, Dec = 19.256
tmin = 626832001, tmax = 627091201
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='749552', job_status='RUN', time_executed='2021-09-29 11:25:28.040969', time_epoch_executed='1632939928.04' WHERE source_name='4FGL J2318.2+1915' and cadence='daily' and bin_id='1495'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/749552

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/749552/ft1_4FGL_J2318.2+1915_daily_bin1495.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/749552/ft2_4FGL_J2318.2+1915_daily_bin1495.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/749552/ft1_4FGL_J2318.2+1915_daily_bin1495.fits outfile=/scratch/kocevski/749552/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin1495.fits ra=349.557 dec=19.256 rad=12.0 tmin=626832001.0 tmax=627091201.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 2.99
user 2.76
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/749552/ft2_4FGL_J2318.2+1915_daily_bin1495.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/749552/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin1495.fits evtable="EVENTS" outfile="/scratch/kocevski/749552/ft1_filtered_4FGL_J2318.2+1915_daily_bin1495.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/749552/ft1_filtered_4FGL_J2318.2+1915_daily_bin1495.fits" evtable="EVENTS" scfile=/scratch/kocevski/749552/ft2_4FGL_J2318.2+1915_daily_bin1495.fits sctable="SC_DATA" outfile=/scratch/kocevski/749552/ltcube_626832001_627091201_4FGL_J2318.2+1915_daily_bin1495.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/749552/ft2_4FGL_J2318.2+1915_daily_bin1495.fits
.....................!
real 12.34
user 11.95
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/749552/ft1_filtered_4FGL_J2318.2+1915_daily_bin1495.fits evtable="EVENTS" scfile=/scratch/kocevski/749552/ft2_4FGL_J2318.2+1915_daily_bin1495.fits sctable="SC_DATA" expcube=/scratch/kocevski/749552/ltcube_626832001_627091201_4FGL_J2318.2+1915_daily_bin1495.fits outfile=/scratch/kocevski/749552/expmap_626832001_627091201_4FGL_J2318.2+1915_daily_bin1495.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/749552/ltcube_626832001_627091201_4FGL_J2318.2+1915_daily_bin1495.fits
.....................!
real 189.97
user 185.08
sys 4.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/749552/ft1_filtered_4FGL_J2318.2+1915_daily_bin1495.fits scfile=/scratch/kocevski/749552/ft2_4FGL_J2318.2+1915_daily_bin1495.fits outfile=/scratch/kocevski/749552/cmap_626832001_627091201_4FGL_J2318.2+1915_daily_bin1495.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/749552/ft1_filtered_4FGL_J2318.2+1915_daily_bin1495.fits scfile=/scratch/kocevski/749552/ft2_4FGL_J2318.2+1915_daily_bin1495.fits outfile=/scratch/kocevski/749552/cmap_HighResolution_626832001_627091201_4FGL_J2318.2+1915_daily_bin1495.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.512       1.0000         .10000E-03   10000.    
     2 'norm      '    2.5483       1.0000         .10000E-03   10000.    
     3 'Prefactor '    58.006       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .39785E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.7822       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12489       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .82712E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .15992E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.756       1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.539       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.064       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.2550       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.5632       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.1107       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.746       1.0000         .10000E-03   10000.    
    17 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4984       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .69746       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=   6552.139     FROM MIGRAD    STATUS=CONVERGED    787 CALLS     2876 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.511        6.2970        .10514E-03    .26762E-03
   2  norm          2.5490        1.5141        .74613E-04    .16060E-03
   3  Prefactor     58.018        31.150        .52675E-04   -.90259E-04
   4  Prefactor     .10000E-03    27.112        .39394E-02** at limit **
   5  Prefactor     9.7843        13.087        .12812E-03    .13372E-03
   6  Prefactor     .12485        .12352        .27421E-03   -.76547E-02
   7  Prefactor     .33569E-01    13.400        .71212E-01    .14768E-03
   8  Prefactor     .10008E-03    56.359        .33208E-02** at limit **
   9  Prefactor     17.752        12.092        .95049E-04    .30261E-04
  10  Prefactor     23.570        38.984        .82562E-04    .28504E-04
  11  Prefactor     16.012        35.681        .99928E-04    .20478E-05
  12  Prefactor     7.2553        8.8555        .14892E-03    .63204E-03
  13  Prefactor     4.5614        9.2029        .18845E-03   -.32638E-04
  14  Prefactor     .10000E-03    12.450        .18142E-02** at limit **
  15  norm          1.1114        6.0928        .37929E-03   -.95316E-04
  16  Prefactor     10.746        8.2621        .12222E-03    .36640E-03
  17  norm          .10001E-03    17.810        .96826E-01** at limit **
  18  Prefactor     .10000E-03    4.0463        .15868E-02** at limit **
  19  Normalizat    1.4984        .27965        .29209E-03   -.17847E-03
  20  Prefactor     .69756        .14597        .22388E-03   -.19789E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 14.5113
  norm       = 2.54901
  Prefactor  = 58.0176
  Prefactor  = 0.0001
  Prefactor  = 9.78427
  Prefactor  = 0.124846
  Prefactor  = 0.0335689
  Prefactor  = 0.000100083
  Prefactor  = 17.7525
  Prefactor  = 23.5698
  Prefactor  = 16.0119
  Prefactor  = 7.25529
  Prefactor  = 4.56144
  Prefactor  = 0.000100003
  norm       = 1.11142
  Prefactor  = 10.7461
  norm       = 0.000100007
  Prefactor  = 0.0001
  Normalizat = 1.49842
  Prefactor  = 0.697561
 **********
 **   18 **HESSE 
 **********

 FCN=   6552.139     FROM HESSE     STATUS=OK           293 CALLS     3169 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.511        6.2968        .42056E-05   -1.4946    
   2  norm          2.5490        1.5138        .29845E-05   -1.5389    
   3  Prefactor     58.018        31.146        .10535E-04   -1.4183    
   4  Prefactor     .10000E-03    27.470        .78788E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.7843        13.085        .51249E-05   -1.5082    
   6  Prefactor     .12485        .12338        .10969E-04   -1.5637    
   7  Prefactor     .33569E-01    11.837        .77424E-01   -1.5671    
   8  Prefactor     .10008E-03    57.480        .66415E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     17.752        12.091        .38020E-05   -1.4865    
  10  Prefactor     23.570        39.009        .33025E-05   -1.4737    
  11  Prefactor     16.012        35.690        .39971E-05   -1.4907    
  12  Prefactor     7.2553        8.8547        .59566E-05   -1.5169    
  13  Prefactor     4.5614        9.2007        .75378E-05   -1.5281    
  14  Prefactor     .10000E-03    12.451        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.1114        6.0864        .15172E-04   -1.5497    
  16  Prefactor     10.746        8.2601        .48888E-05   -1.5052    
  17  norm          .10001E-03    17.105        .99853E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.0468        .31736E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.4984        .27982        .58419E-04   -.77823    
  20  Prefactor     .69756        .14603        .89551E-05   -1.0362    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.40929e-09
Minuit parameter uncertainties:
  1  6.29704
  2  1.51382
  3  31.1543
  4  0.000163147
  5  13.0888
  6  0.123383
  7  1.25911
  8  0.00437266
  9  12.093
  10  39.0516
  11  35.7374
  12  8.85627
  13  9.20352
  14  0.000415914
  15  5.20234
  16  8.26102
  17  0.000709211
  18  1.9794e-05
  19  0.280111
  20  0.146115
Done.

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

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  7.255e+00  8.856e+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:  6.976e-01  1.461e-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.498e+00  2.801e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/749552/likelihoodResults_626832001_627091201_4FGL_J2318.2+1915_daily_bin1495.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) = 6552.07856547
delta logL = 0.0601584646165

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6552.07443658
delta logL = 0.0642873502038

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1534       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1342       1.0000          .0000       10.000    
     3 'Normalizat'    1.4750       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70748       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6552.074     FROM MIGRAD    STATUS=FAILED       100 CALLS      304 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1672        14.527        .88547E-03   -.38389E-04
   2  Index         3.1300        2.0962        .96273E-02    .30315E-03
   3  Normalizat    1.4756        .27824        .29397E-03   -.34535E-04
   4  Prefactor     .70726        .14977        .22248E-03   -.76035E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6552.074     FROM SIMPLEX   STATUS=UNCHANGED     77 CALLS      381 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1672        14.527        .25391E-03   -1.5253    
   2  Index         3.1300        2.0962        .12232E-02   -.38332    
   3  Normalizat    1.4756        .27824        .15326E-03   -.78465    
   4  Prefactor     .70726        .14977        .15501E-03   -1.0324    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6552.074     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      411 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1672        10.057        .35419E-04   -.28888E-05
   2  Index         3.1300        1.4768        .19255E-02    .12040E-04
   3  Normalizat    1.4756        .27557        .11759E-04   -.19337E-06
   4  Prefactor     .70726        .14742        .88994E-05   -.15330E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.16721
  Index      = 3.12998
  Normalizat = 1.47565
  Prefactor  = 0.707255
 **********
 **   18 **HESSE 
 **********

 FCN=   6552.074     FROM HESSE     STATUS=OK            25 CALLS      436 TOTAL
                     EDM=   .40E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1672        9.7451        .14168E-05   -1.5253    
   2  Index         3.1300        1.4314        .38509E-03   -.38332    
   3  Normalizat    1.4756        .27565        .23518E-05   -.78465    
   4  Prefactor     .70726        .14737        .88994E-05   -1.0324    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.04495e-15
Minuit parameter uncertainties:
  1  9.74813
  2  1.45518
  3  0.275933
  4  0.147448
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/749552': 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) = 6552.07442989
delta logL = 0.0642940432181

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  5.167e+00  9.748e+00  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  3.130e+00  1.455e+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:  7.073e-01  1.474e-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.476e+00  2.759e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.01
Ra Dec: 349.557 19.256
Photon Index (Free Index): 3.13 +/- 1.46
Photon Flux (Free Index): 6.78e-08 +/- 8.15e-08
Energy Flux (Free Index): 1.28e-05 +/- 1.46e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/749552/cmap_HighResolution_626832001_627091201_4FGL_J2318.2+1915_daily_bin1495.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.47e-02', comment='SUCCESS', energy_flux2='1.28e-05', dlogl='6.43e-02', photon_flux2='6.78e-08', job_status='DONE', time_completed='2021-09-29 11:37:19.745416', photon_index_error2='1.46', photon_index2='3.13', ts='0.87', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', photon_flux_upper_limit='1.87e-07', energy_flux_error2='1.46e-05', EG='1.50', time_epoch_completed='1632940639.75', return_code='0', job_id='749552', GAL2='0.71', EG2='1.48', return_code2='0', photon_flux_error2='8.15e-08', ts2='1.01', photon_index='2.67' WHERE bin_id='1495' AND source_name='4FGL J2318.2+1915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:37:19 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2318.2+1915_daily_bin1495 349.557 19.256 626832001 627091201 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 :                                   662.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             304.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   723 sec.
    Turnaround time :                            725 sec.

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

