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


Performing analysis on: 4FGL_J2318.2+1915_daily_bin528
RA = 349.557, Dec = 19.256
tmin = 376185601, tmax = 376444801
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='745114', job_status='RUN', time_executed='2021-09-29 11:14:22.399886', time_epoch_executed='1632939262.4' WHERE source_name='4FGL J2318.2+1915' and cadence='daily' and bin_id='528'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/745114

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/745114/ft1_4FGL_J2318.2+1915_daily_bin528.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/745114/ft2_4FGL_J2318.2+1915_daily_bin528.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/745114/ft1_4FGL_J2318.2+1915_daily_bin528.fits outfile=/scratch/kocevski/745114/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin528.fits ra=349.557 dec=19.256 rad=12.0 tmin=376185601.0 tmax=376444801.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.36
user 3.15
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/745114/ft1_filtered_4FGL_J2318.2+1915_daily_bin528.fits" evtable="EVENTS" scfile=/scratch/kocevski/745114/ft2_4FGL_J2318.2+1915_daily_bin528.fits sctable="SC_DATA" outfile=/scratch/kocevski/745114/ltcube_376185601_376444801_4FGL_J2318.2+1915_daily_bin528.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/745114/ft2_4FGL_J2318.2+1915_daily_bin528.fits
.....................!
real 11.82
user 11.47
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/745114/ft1_filtered_4FGL_J2318.2+1915_daily_bin528.fits evtable="EVENTS" scfile=/scratch/kocevski/745114/ft2_4FGL_J2318.2+1915_daily_bin528.fits sctable="SC_DATA" expcube=/scratch/kocevski/745114/ltcube_376185601_376444801_4FGL_J2318.2+1915_daily_bin528.fits outfile=/scratch/kocevski/745114/expmap_376185601_376444801_4FGL_J2318.2+1915_daily_bin528.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/745114/ltcube_376185601_376444801_4FGL_J2318.2+1915_daily_bin528.fits
.....................!
real 193.13
user 187.63
sys 5.12

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/745114/ft1_filtered_4FGL_J2318.2+1915_daily_bin528.fits scfile=/scratch/kocevski/745114/ft2_4FGL_J2318.2+1915_daily_bin528.fits outfile=/scratch/kocevski/745114/cmap_376185601_376444801_4FGL_J2318.2+1915_daily_bin528.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/745114/ft1_filtered_4FGL_J2318.2+1915_daily_bin528.fits scfile=/scratch/kocevski/745114/ft2_4FGL_J2318.2+1915_daily_bin528.fits outfile=/scratch/kocevski/745114/cmap_HighResolution_376185601_376444801_4FGL_J2318.2+1915_daily_bin528.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/745114/ft1_filtered_4FGL_J2318.2+1915_daily_bin528.fits evtable="EVENTS" scfile=/scratch/kocevski/745114/ft2_4FGL_J2318.2+1915_daily_bin528.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/745114/Model_4FGL_J2318.2+1915_daily_bin528.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/745114/ft1_filtered_4FGL_J2318.2+1915_daily_bin528.fits....................!
real 78.79
user 77.39
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5512       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.7240       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .60571       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.700       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.9829       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.481       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.177       1.0000         .10000E-03   10000.    
    14 'Prefactor '    38.350       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .30750E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    10.668       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .61519       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1468       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.

 FCN=   7188.160     FROM MIGRAD    STATUS=CONVERGED    409 CALLS     2044 TOTAL
                     EDM=   .43E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5518        2.6457       -.12893E-06   -.11700E-04
   2  norm          .10000E-03    .48113       -.16555E-06** at limit **
   3  Prefactor     .10000E-03    23.822        .48822E-06** at limit **
   4  Prefactor     7.7251        12.178       -.14945E-05   -.81965E-05
   5  Prefactor     .10000E-03    8.8536       -.15430E-06** at limit **
   6  Prefactor     .60571        .16054       -.29757E-08   -.14281E-04
   7  Prefactor     10.698        13.477       -.30018E-07    .77782E-05
   8  Prefactor     .10000E-03    2.7883        .37132E-07** at limit **
   9  Prefactor     .10000E-03    3.8736        .42103E-07** at limit **
  10  Prefactor     .10000E-03    8.9801        .16889E-06** at limit **
  11  Prefactor     5.9774        18.548       -.13386E-05   -.59145E-07
  12  Prefactor     14.483        8.8425        .60326E-06   -.11828E-05
  13  Prefactor     11.176        10.544       -.30370E-06   -.39504E-04
  14  Prefactor     38.333        25.720       -.23411E-05   -.48499E-05
  15  norm          .10000E-03    6.1759        .10559E-06** at limit **
  16  Prefactor     .10000E-03    47.257       -.76742E-05** at limit **
  17  norm          10.668        14.343       -.68541E-07   -.86426E-05
  18  Prefactor     .10000E-03    4.4025        .27556E-07** at limit **
  19  Normalizat    .61497        .21294       -.26899E-06   -.22186E-04
  20  Prefactor     1.1469        .12390        .25561E-06   -.80861E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.5518
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.72514
  Prefactor  = 0.0001
  Prefactor  = 0.605709
  Prefactor  = 10.6984
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.97738
  Prefactor  = 14.4832
  Prefactor  = 11.1762
  Prefactor  = 38.3332
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10.6679
  Prefactor  = 0.0001
  Normalizat = 0.614966
  Prefactor  = 1.14694
 **********
 **   18 **HESSE 
 **********

 FCN=   7188.160     FROM HESSE     STATUS=OK           295 CALLS     2339 TOTAL
                     EDM=   .73E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5518        2.6260        .16981E-03   -1.5459    
   2  norm          .10000E-03    .48348        .57407E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    23.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.7251        12.171        .72143E-03   -1.5152    
   5  Prefactor     .10000E-03    8.8728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .60571        .15966        .16641E-04   -1.5552    
   7  Prefactor     10.698        13.430        .12248E-03   -1.5054    
   8  Prefactor     .10000E-03    2.8043        .13824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.8927        .16297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.0077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.9774        18.529        .16416E-03   -1.5219    
  12  Prefactor     14.483        8.8351        .10525E-03   -1.4947    
  13  Prefactor     11.176        10.440        .11983E-03   -1.5039    
  14  Prefactor     38.333        25.703        .64721E-04   -1.4469    
  15  norm          .10000E-03    6.2171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    45.804        .40141E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          10.668        14.310        .12267E-03   -1.5055    
  18  Prefactor     .10000E-03    4.4988        .17366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .61497        .22776        .37933E-03   -1.0735    
  20  Prefactor     1.1469        .13704        .17688E-03   -.87980    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.31621e-12
Minuit parameter uncertainties:
  1  2.62615
  2  1.04578e-06
  3  1.64115e-06
  4  12.1752
  5  8.41416e-07
  6  0.159664
  7  13.4342
  8  7.5415e-07
  9  5.54135e-08
  10  4.88592e-06
  11  18.5468
  12  8.83585
  13  10.4421
  14  25.7105
  15  2.81811e-06
  16  1.35816e-05
  17  14.3147
  18  2.94407e-06
  19  0.228109
  20  0.13708
Done.

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

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  1.448e+01  8.836e+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.147e+00  1.371e-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:  6.150e-01  2.281e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.46
Ra Dec: 349.557 19.256
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 1.05e-07 +/- 6.42e-08
Energy Flux (Fixed Index): 2.61e-05 +/- 1.59e-05

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) = 7187.89227441
delta logL = 0.267409640642

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7187.87853939
delta logL = 0.281144661087

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.5748       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0984       1.0000          .0000       10.000    
     3 'Normalizat'    .59110       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1585       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=   7187.879     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      238 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.5748        88.945        .32377E-02    .28451E-03
   2  Index         3.0985        3.3153        .14129        .12410E-03
   3  Normalizat    .59113        .80587E-01    .87210E-01    .41734E-04
   4  Prefactor     1.1585        .49502E-01    .35696E-01   -.30573E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.5748
  Index      = 3.09854
  Normalizat = 0.59113
  Prefactor  = 1.15846
 **********
 **   18 **HESSE 
 **********

 FCN=   7187.879     FROM HESSE     STATUS=OK            33 CALLS      271 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.5748        10.335        .12951E-03   -1.5089    
   2  Index         3.0985        .73667        .55073E-02   -.39011    
   3  Normalizat    .59113        .22272        .38632E-03   -1.0836    
   4  Prefactor     1.1585        .13732        .17611E-03   -.87619    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.293e-09
Minuit parameter uncertainties:
  1  10.3365
  2  0.73982
  3  0.223056
  4  0.137362
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/745114': 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) = 7187.8785393
delta logL = 0.281144746325

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
511    Prefactor:  1.158e+00  1.374e-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:  5.911e-01  2.231e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.13
Ra Dec: 349.557 19.256
Photon Index (Free Index): 3.10 +/- 0.74
Photon Flux (Free Index): 1.20e-07 +/- 6.41e-08
Energy Flux (Free Index): 2.30e-05 +/- 1.38e-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/745114/cmap_HighResolution_376185601_376444801_4FGL_J2318.2+1915_daily_bin528.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.05e-07', energy_flux2='2.30e-05', photon_flux_error='6.42e-08', dlogl='2.81e-01', energy_flux='2.61e-05', photon_flux2='1.20e-07', job_status='DONE', time_completed='2021-09-29 11:24:05.101891', photon_index_error2='0.74', photon_index2='3.10', ts='4.46', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='1.38e-05', EG='0.61', time_epoch_completed='1632939845.1', return_code='0', job_id='745114', GAL2='1.16', EG2='0.59', return_code2='0', energy_flux_error='1.59e-05', photon_flux_error2='6.41e-08', ts2='5.13', photon_index='2.67' WHERE bin_id='528' AND source_name='4FGL J2318.2+1915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:24:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 745114: <4FGL_J2318.2+1915_daily_bin528> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2318.2+1915_daily_bin528 349.557 19.256 376185601 376444801 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 :                                   583.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            822 sec.

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

