/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 142 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 = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2318.2+1915_daily_bin126
RA = 349.557, Dec = 19.256
tmin = 271987201, tmax = 272246401
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='742471', job_status='RUN', time_executed='2021-09-29 11:03:48.845530', time_epoch_executed='1632938628.85' WHERE source_name='4FGL J2318.2+1915' and cadence='daily' and bin_id='126'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/742471

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/742471/ft1_4FGL_J2318.2+1915_daily_bin126.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/742471/ft2_4FGL_J2318.2+1915_daily_bin126.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/742471/ft1_4FGL_J2318.2+1915_daily_bin126.fits outfile=/scratch/kocevski/742471/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin126.fits ra=349.557 dec=19.256 rad=12.0 tmin=271987201.0 tmax=272246401.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 1.61
user 1.45
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/742471/ft1_filtered_4FGL_J2318.2+1915_daily_bin126.fits" evtable="EVENTS" scfile=/scratch/kocevski/742471/ft2_4FGL_J2318.2+1915_daily_bin126.fits sctable="SC_DATA" outfile=/scratch/kocevski/742471/ltcube_271987201_272246401_4FGL_J2318.2+1915_daily_bin126.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/742471/ft2_4FGL_J2318.2+1915_daily_bin126.fits
.....................!
real 12.51
user 12.15
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/742471/ft1_filtered_4FGL_J2318.2+1915_daily_bin126.fits evtable="EVENTS" scfile=/scratch/kocevski/742471/ft2_4FGL_J2318.2+1915_daily_bin126.fits sctable="SC_DATA" expcube=/scratch/kocevski/742471/ltcube_271987201_272246401_4FGL_J2318.2+1915_daily_bin126.fits outfile=/scratch/kocevski/742471/expmap_271987201_272246401_4FGL_J2318.2+1915_daily_bin126.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/742471/ltcube_271987201_272246401_4FGL_J2318.2+1915_daily_bin126.fits
.....................!
real 190.23
user 185.53
sys 4.38

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/742471/ft1_filtered_4FGL_J2318.2+1915_daily_bin126.fits scfile=/scratch/kocevski/742471/ft2_4FGL_J2318.2+1915_daily_bin126.fits outfile=/scratch/kocevski/742471/cmap_271987201_272246401_4FGL_J2318.2+1915_daily_bin126.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/742471/ft1_filtered_4FGL_J2318.2+1915_daily_bin126.fits scfile=/scratch/kocevski/742471/ft2_4FGL_J2318.2+1915_daily_bin126.fits outfile=/scratch/kocevski/742471/cmap_HighResolution_271987201_272246401_4FGL_J2318.2+1915_daily_bin126.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10462E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.430       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .46801E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.8082       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.3107       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.142       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13934       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.5675       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.9757       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.137       1.0000         .10000E-03   10000.    
    17 'norm      '    24.673       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.2058       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0286       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .97930       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12092.32     FROM MIGRAD    STATUS=CONVERGED     92 CALLS     1491 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.1289       -.85245E-07** at limit **
   2  norm          .10000E-03    .56881        .95053E-06** at limit **
   3  Prefactor     14.429        1.3322       -.44972E-06   -.18896E-03
   4  Prefactor     .10000E-03    4.9232        .67534E-07** at limit **
   5  Prefactor     .10490E-03    99.658        .61127E-04** at limit **
   6  Prefactor     2.8082        .24088       -.46102E-07   -.93311E-03
   7  Prefactor     .10000E-03    3.8076       -.66447E-06** at limit **
   8  Prefactor     6.3105        2.4113        .40360E-05    .32336E-02
   9  Prefactor     12.142        1.2460        .12951E-05    .16421E-02
  10  Prefactor     .10042E-03    399.51        .19337E-04** at limit **
  11  Prefactor     .10000E-03    8.5755        .13529E-05** at limit **
  12  Prefactor     .10000E-03    1.1437       -.41425E-06** at limit **
  13  Prefactor     1.5624        10.776       -.18564E-04   -.25429E-02
  14  Prefactor     .10000E-03    4.2575        .13173E-05** at limit **
  15  norm          8.9757        8.8020        .12844E-04   -.44423E-02
  16  Prefactor     11.138        3.9894        .14617E-05    .10992E-01
  17  norm          24.670        2.7420        .93618E-06   -.28582E-02
  18  Prefactor     7.2048        2.1165       -.42000E-05   -.83600E-02
  19  Normalizat    1.0285        .20265       -.40413E-05   -.16548E-03
  20  Prefactor     .97941        .11619        .12875E-05   -.23777E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 14.4288
  Prefactor  = 0.0001
  Prefactor  = 0.000104898
  Prefactor  = 2.80823
  Prefactor  = 0.0001
  Prefactor  = 6.31045
  Prefactor  = 12.142
  Prefactor  = 0.000100417
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 1.56244
  Prefactor  = 0.0001
  norm       = 8.97572
  Prefactor  = 11.1377
  norm       = 24.6702
  Prefactor  = 7.20481
  Normalizat = 1.02849
  Prefactor  = 0.979408
 **********
 **   18 **HESSE 
 **********

 FCN=   12092.32     FROM HESSE     STATUS=OK           357 CALLS     1848 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .91737        .56416E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .54978        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.429        18.445        .26360E-02   -1.4948    
   4  Prefactor     .10000E-03    4.8649        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10490E-03    11.283        .13276       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.8082        .24975        .34059E-02   -1.5373    
   7  Prefactor     .10000E-03    3.7920        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.3105        5.4979        .39946E-02   -1.5206    
   9  Prefactor     12.142        8.3907        .28740E-02   -1.5011    
  10  Prefactor     .10042E-03    12.003        .12028       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.5751        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.1404        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.5624        11.954        .84913E-02   -1.5458    
  14  Prefactor     .10000E-03    4.2564        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.9757        11.422        .33446E-02   -1.5109    
  16  Prefactor     11.138        8.8091        .30012E-02   -1.5040    
  17  norm          24.670        14.049        .20161E-02   -1.4714    
  18  Prefactor     7.2048        4.9601        .37357E-02   -1.5171    
  19  Normalizat    1.0285        .18013        .81416E-01   -.92082    
  20  Prefactor     .97941        .10034        .46008E-01   -.93419    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02695e-07
Minuit parameter uncertainties:
  1  3.47619e-05
  2  4.74818e-06
  3  18.4518
  4  1.16322e-05
  5  0.0148702
  6  0.249747
  7  1.44794e-05
  8  5.49833
  9  8.39154
  10  0.00447339
  11  0.000150641
  12  5.92162e-07
  13  8.64544
  14  2.44406e-05
  15  11.4249
  16  8.81008
  17  14.0504
  18  4.96039
  19  0.180236
  20  0.10036
Done.

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

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  1.000e-04  5.922e-07  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.794e-01  1.004e-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.028e+00  1.802e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/742471/likelihoodResults_271987201_272246401_4FGL_J2318.2+1915_daily_bin126.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) = 12092.3268208
delta logL = -0.00413596354701

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12092.3226844
delta logL = 4.73213731311e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6495       1.0000          .0000       10.000    
     3 'Normalizat'    1.0285       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97940       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=   12092.32     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      258 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    47.426        .11612E-01** at limit **
   2  Index         1.5279        8.6788        .50000       -.73646E-06
   3  Normalizat    1.0285        .23383E-01    .36042E-03   -.69444E-03
   4  Prefactor     .97941        .13610E-01    .21294E-03   -.11305E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.52792
  Normalizat = 1.02849
  Prefactor  = 0.979407
 **********
 **   18 **HESSE 
 **********

 FCN=   12092.32     FROM HESSE     STATUS=OK            29 CALLS      287 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.5493        .29420E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5279        7.5344        .50000       -.76761    
   3  Normalizat    1.0285        .19943        .72083E-04   -.92082    
   4  Prefactor     .97941        .11612        .42588E-04   -.93419    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.63359e-10
Minuit parameter uncertainties:
  1  1.53726e-05
  2  54.9228
  3  0.199574
  4  0.116145
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/742471': 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) = 12092.3226666
delta logL = 1.82935455086e-05

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  1.000e-04  1.537e-05  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  1.528e+00  5.492e+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:  9.794e-01  1.161e-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.028e+00  1.996e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 349.557 19.256

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/742471/cmap_HighResolution_271987201_272246401_4FGL_J2318.2+1915_daily_bin126.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.46e-03', job_status='DONE', photon_flux_upper_limit='4.40e-08', time_completed='2021-09-29 11:17:01.548842', job_id='742471', GAL2='0.98', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1632939421.55', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.83e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='126' AND source_name='4FGL J2318.2+1915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:17:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 742471: <4FGL_J2318.2+1915_daily_bin126> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2318.2+1915_daily_bin126 349.557 19.256 271987201 272246401 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 :                                   793.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             305.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   944 sec.
    Turnaround time :                            947 sec.

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

