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


Performing analysis on: 4FGL_J2318.2+1915_daily_bin459
RA = 349.557, Dec = 19.256
tmin = 358300801, tmax = 358560001
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='745008', job_status='RUN', time_executed='2021-09-29 11:14:15.853119', time_epoch_executed='1632939255.85' WHERE source_name='4FGL J2318.2+1915' and cadence='daily' and bin_id='459'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/745008

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/745008/ft1_4FGL_J2318.2+1915_daily_bin459.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/745008/ft2_4FGL_J2318.2+1915_daily_bin459.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/745008/ft1_4FGL_J2318.2+1915_daily_bin459.fits outfile=/scratch/kocevski/745008/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin459.fits ra=349.557 dec=19.256 rad=12.0 tmin=358300801.0 tmax=358560001.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 5.34
user 5.06
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/745008/ft2_4FGL_J2318.2+1915_daily_bin459.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/745008/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin459.fits evtable="EVENTS" outfile="/scratch/kocevski/745008/ft1_filtered_4FGL_J2318.2+1915_daily_bin459.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.51
user 0.33
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/745008/ft1_filtered_4FGL_J2318.2+1915_daily_bin459.fits evtable="EVENTS" scfile=/scratch/kocevski/745008/ft2_4FGL_J2318.2+1915_daily_bin459.fits sctable="SC_DATA" expcube=/scratch/kocevski/745008/ltcube_358300801_358560001_4FGL_J2318.2+1915_daily_bin459.fits outfile=/scratch/kocevski/745008/expmap_358300801_358560001_4FGL_J2318.2+1915_daily_bin459.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/745008/ltcube_358300801_358560001_4FGL_J2318.2+1915_daily_bin459.fits
.....................!
real 191.80
user 187.15
sys 4.29

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/745008/ft1_filtered_4FGL_J2318.2+1915_daily_bin459.fits scfile=/scratch/kocevski/745008/ft2_4FGL_J2318.2+1915_daily_bin459.fits outfile=/scratch/kocevski/745008/cmap_358300801_358560001_4FGL_J2318.2+1915_daily_bin459.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/745008/ft1_filtered_4FGL_J2318.2+1915_daily_bin459.fits scfile=/scratch/kocevski/745008/ft2_4FGL_J2318.2+1915_daily_bin459.fits outfile=/scratch/kocevski/745008/cmap_HighResolution_358300801_358560001_4FGL_J2318.2+1915_daily_bin459.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=349.557 yref=19.256 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8535       1.0000         .10000E-03   10000.    
     2 'norm      '    .76378       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.3362       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.136       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.4468       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.5090       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.3017       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .20452E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.1674       1.0000         .10000E-03   10000.    
    17 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .95362       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .98000       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=   7108.924     FROM MIGRAD    STATUS=CONVERGED    410 CALLS     1769 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8531        2.8705        .60169E-02    .48503E-03
   2  norm          .76405        1.1295        .20532E-01    .64968E-04
   3  Prefactor     .10000E-03    10.406        .90712E-02** at limit **
   4  Prefactor     .10000E-03    6.5320        .90712E-02** at limit **
   5  Prefactor     7.3378        12.313        .37020E-02    .12644E-02
   6  Prefactor     .10000E-03    .33074E-01    .75230E-02** at limit **
   7  Prefactor     10.135        8.7354        .31465E-02    .72967E-04
   8  Prefactor     8.4471        7.6142        .34483E-02   -.14066E-03
   9  Prefactor     5.5091        7.9583        .42795E-02    .93565E-04
  10  Prefactor     .10001E-03    9.3778        .90712E-02** at limit **
  11  Prefactor     .10003E-03    9.7937        .90712E-02** at limit **
  12  Prefactor     3.3017        6.1554        .55702E-02   -.10438E-02
  13  Prefactor     .10000E-03    3.1803        .90712E-02** at limit **
  14  Prefactor     .10000E-03    13.405        .91249E-01** at limit **
  15  norm          .10000E-03    2.8508        .90712E-02** at limit **
  16  Prefactor     4.1677        5.9819        .49358E-02    .10143E-02
  17  norm          .10001E-03    10.491        .90712E-02** at limit **
  18  Prefactor     .10000E-03    3.0722        .90712E-02** at limit **
  19  Normalizat    .95367        .19184        .69065E-01    .67266E-03
  20  Prefactor     .97998        .11046        .46017E-01    .57474E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.85314
  norm       = 0.764049
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 7.33782
  Prefactor  = 0.0001
  Prefactor  = 10.1354
  Prefactor  = 8.44709
  Prefactor  = 5.50907
  Prefactor  = 0.000100006
  Prefactor  = 0.000100028
  Prefactor  = 3.30165
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.16773
  norm       = 0.000100008
  Prefactor  = 0.0001
  Normalizat = 0.953669
  Prefactor  = 0.979975
 **********
 **   18 **HESSE 
 **********

 FCN=   7108.924     FROM HESSE     STATUS=OK           299 CALLS     2068 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8531        2.8710        .13614E-03   -1.5370    
   2  norm          .76405        .93199        .10597E-02   -1.5533    
   3  Prefactor     .10000E-03    10.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.5880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.3378        12.279        .14808E-03   -1.5166    
   6  Prefactor     .10000E-03    .40937E-01    .29640E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.135        8.7365        .12586E-03   -1.5071    
   8  Prefactor     8.4471        7.5917        .13793E-03   -1.5127    
   9  Prefactor     5.5091        7.9513        .17118E-03   -1.5238    
  10  Prefactor     .10001E-03    9.4098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10003E-03    9.8245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.3017        6.1263        .22281E-03   -1.5345    
  13  Prefactor     .10000E-03    3.1863        .14684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.768        .88545E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.8585        .13891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.1677        5.9763        .19743E-03   -1.5300    
  17  norm          .10001E-03    10.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.0854        .14430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .95367        .22494        .30554E-03   -.94599    
  20  Prefactor     .97998        .13004        .18176E-03   -.93400    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22881e-08
Minuit parameter uncertainties:
  1  2.87113
  2  0.932012
  3  0.000200807
  4  7.99108e-05
  5  12.2832
  6  2.30728e-07
  7  8.73759
  8  7.59256
  9  7.95283
  10  0.000463848
  11  0.00104381
  12  6.12749
  13  2.29078e-06
  14  0.000140914
  15  8.74626e-07
  16  5.97715
  17  0.000594128
  18  2.94737e-06
  19  0.22516
  20  0.130086
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
510   Normalization:  9.537e-01  2.252e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.40
Ra Dec: 349.557 19.256
Photon Flux Upper Limit: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/745008/likelihoodResults_358300801_358560001_4FGL_J2318.2+1915_daily_bin459.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): 102
logL (Free Index) = 7106.87652889
delta logL = 2.04751011933

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7106.66666563
delta logL = 2.25737337917

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16129E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    8.4679       1.0000          .0000       10.000    
     3 'Normalizat'    .85619       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0211       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=   7106.667     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      345 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15757E-02    .14911E-01    .50325E-03** at limit **
   2  Index         8.4823        2.8432        .17194        .11932E-03
   3  Normalizat    .85578        .56941E-01    .72361E-01   -.76072E-04
   4  Prefactor     1.0214        .34479E-01    .42038E-01    .11650E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00157569
  Index      = 8.4823
  Normalizat = 0.855777
  Prefactor  = 1.02139
 **********
 **   18 **HESSE 
 **********

 FCN=   7106.667     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      378 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15757E-02    .28820E-01    .19751E-04   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.4823        8.1354        .73972E-02    .77045    
   3  Normalizat    .85578        .17709        .32021E-03   -.98032    
   4  Prefactor     1.0214        .10610        .17835E-03   -.92020    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.40333e-10
Minuit parameter uncertainties:
  1  0.013043
  2  4.88703
  3  0.17721
  4  0.106122
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/745008': 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): 102
logL (Free Index) = 7106.66665573
delta logL = 2.25738328324

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  1.576e-03  1.304e-02  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  8.482e+00  4.887e+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.021e+00  1.061e-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:  8.558e-01  1.772e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.19
Ra Dec: 349.557 19.256
Photon Index (Free Index): 8.48 +/- 4.89
Photon Flux (Free Index): 9.12e-08 +/- 5.05e-08
Energy Flux (Free Index): 1.05e-05 +/- 6.14e-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/745008/cmap_HighResolution_358300801_358560001_4FGL_J2318.2+1915_daily_bin459.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.93e-03', comment='SUCCESS', energy_flux2='1.05e-05', dlogl='2.26e+00', photon_flux2='9.12e-08', job_status='DONE', time_completed='2021-09-29 11:24:34.255228', photon_index_error2='4.89', photon_index2='8.48', ts='0.40', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.14e-07', energy_flux_error2='6.14e-06', EG='0.95', time_epoch_completed='1632939874.26', return_code='0', job_id='745008', GAL2='1.02', EG2='0.86', return_code2='102', photon_flux_error2='5.05e-08', ts2='5.19', photon_index='2.67' WHERE bin_id='459' AND source_name='4FGL J2318.2+1915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:24:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 745008: <4FGL_J2318.2+1915_daily_bin459> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2318.2+1915_daily_bin459 349.557 19.256 358300801 358560001 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 :                                   616.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   857 sec.
    Turnaround time :                            860 sec.

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

