/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 49 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 = 7402
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2318.2+1915_daily_bin47
RA = 349.557, Dec = 19.256
tmin = 251510401, tmax = 251769601
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='742341', job_status='RUN', time_executed='2021-09-29 11:02:01.608608', time_epoch_executed='1632938521.61' WHERE source_name='4FGL J2318.2+1915' and cadence='daily' and bin_id='47'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/742341

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/742341/ft1_4FGL_J2318.2+1915_daily_bin47.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/742341/ft2_4FGL_J2318.2+1915_daily_bin47.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/742341/ft1_4FGL_J2318.2+1915_daily_bin47.fits outfile=/scratch/kocevski/742341/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin47.fits ra=349.557 dec=19.256 rad=12.0 tmin=251510401.0 tmax=251769601.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.46
user 1.29
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/742341/ft1_filtered_4FGL_J2318.2+1915_daily_bin47.fits evtable="EVENTS" scfile=/scratch/kocevski/742341/ft2_4FGL_J2318.2+1915_daily_bin47.fits sctable="SC_DATA" expcube=/scratch/kocevski/742341/ltcube_251510401_251769601_4FGL_J2318.2+1915_daily_bin47.fits outfile=/scratch/kocevski/742341/expmap_251510401_251769601_4FGL_J2318.2+1915_daily_bin47.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/742341/ltcube_251510401_251769601_4FGL_J2318.2+1915_daily_bin47.fits
.....................!
real 190.42
user 185.77
sys 4.26

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/742341/ft1_filtered_4FGL_J2318.2+1915_daily_bin47.fits scfile=/scratch/kocevski/742341/ft2_4FGL_J2318.2+1915_daily_bin47.fits outfile=/scratch/kocevski/742341/cmap_251510401_251769601_4FGL_J2318.2+1915_daily_bin47.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.55
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/742341/ft1_filtered_4FGL_J2318.2+1915_daily_bin47.fits scfile=/scratch/kocevski/742341/ft2_4FGL_J2318.2+1915_daily_bin47.fits outfile=/scratch/kocevski/742341/cmap_HighResolution_251510401_251769601_4FGL_J2318.2+1915_daily_bin47.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/742341/ft1_filtered_4FGL_J2318.2+1915_daily_bin47.fits evtable="EVENTS" scfile=/scratch/kocevski/742341/ft2_4FGL_J2318.2+1915_daily_bin47.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/742341/Model_4FGL_J2318.2+1915_daily_bin47.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/742341/ft1_filtered_4FGL_J2318.2+1915_daily_bin47.fits.....................!
real 87.98
user 86.56
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .61435       1.0000         .10000E-03   10000.    
     2 'norm      '    2.5610       1.0000         .10000E-03   10000.    
     3 'Prefactor '    34.188       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.376       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.7947       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.8255       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   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 '    13.984       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.4247       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.0486       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.6447       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .78242       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0411       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=   7778.124     FROM MIGRAD    STATUS=CONVERGED    423 CALLS     1774 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .61404        1.7112       -.23567E-07   -.33443E-03
   2  norm          2.5610        1.5404       -.52650E-08    .13967E-02
   3  Prefactor     34.188        30.869       -.35814E-07    .33179E-03
   4  Prefactor     .10000E-03    6.7274        .80178E-08** at limit **
   5  Prefactor     10.377        17.121       -.11147E-07    .17592E-03
   6  Prefactor     2.7945        .29137        .47399E-09    .50409E-02
   7  Prefactor     .10000E-03    13.630        .58891E-08** at limit **
   8  Prefactor     4.8265        5.5466       -.21865E-06   -.21084E-03
   9  Prefactor     .10000E-03    5.1185       -.38132E-08** at limit **
  10  Prefactor     .10000E-03    18.524       -.16087E-07** at limit **
  11  Prefactor     .10000E-03    11.225        .15046E-07** at limit **
  12  Prefactor     13.988        7.8493        .11642E-09   -.15867E-03
  13  Prefactor     .10000E-03    5.2154       -.17656E-07** at limit **
  14  Prefactor     .10012E-03    87.169       -.21228E-06** at limit **
  15  norm          5.4217        7.5651       -.16071E-06   -.32052E-03
  16  Prefactor     7.0496        7.7324       -.18246E-07   -.32413E-03
  17  norm          .10000E-03    6.0658       -.11205E-07** at limit **
  18  Prefactor     8.6441        6.9044       -.43669E-07   -.12446E-03
  19  Normalizat    .78265        .20981        .11691E-06   -.28832E-03
  20  Prefactor     1.0410        .12189        .17461E-07   -.62290E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.61404
  norm       = 2.56104
  Prefactor  = 34.1875
  Prefactor  = 0.0001
  Prefactor  = 10.3773
  Prefactor  = 2.79453
  Prefactor  = 0.0001
  Prefactor  = 4.82649
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 13.9881
  Prefactor  = 0.000100002
  Prefactor  = 0.000100119
  norm       = 5.42166
  Prefactor  = 7.04959
  norm       = 0.0001
  Prefactor  = 8.64411
  Normalizat = 0.782652
  Prefactor  = 1.04105
 **********
 **   18 **HESSE 
 **********

 FCN=   7778.124     FROM HESSE     STATUS=OK           289 CALLS     2063 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .61404        1.6755        .18534E-03   -1.5551    
   2  norm          2.5610        1.5441        .82703E-04   -1.5388    
   3  Prefactor     34.188        30.924        .68535E-04   -1.4538    
   4  Prefactor     .10000E-03    6.7739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.377        17.127        .12439E-03   -1.5064    
   6  Prefactor     2.7945        .29284        .14291E-04   -1.5374    
   7  Prefactor     .10000E-03    13.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.8265        8.0910        .91567E-03   -1.5269    
   9  Prefactor     .10000E-03    5.1377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.988        7.8338        .10711E-03   -1.4960    
  13  Prefactor     .10000E-03    5.2282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10012E-03    89.684        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.4217        8.8325        .86265E-03   -1.5242    
  16  Prefactor     7.0496        7.7149        .75550E-03   -1.5177    
  17  norm          .10000E-03    6.0761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.6441        7.0700        .68167E-03   -1.5120    
  19  Normalizat    .78265        .23894        .37840E-03   -1.0072    
  20  Prefactor     1.0410        .13856        .20002E-03   -.91373    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8881e-09
Minuit parameter uncertainties:
  1  1.67565
  2  1.54411
  3  30.9387
  4  8.77807e-05
  5  17.1352
  6  0.292843
  7  0.000152041
  8  8.09287
  9  4.08247e-05
  10  0.000143049
  11  0.000185085
  12  7.8344
  13  0.000186491
  14  0.00653011
  15  8.83461
  16  7.71597
  17  8.96269e-05
  18  7.07068
  19  0.23926
  20  0.138604
Done.

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

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  1.399e+01  7.834e+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.041e+00  1.386e-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:  7.827e-01  2.393e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.09
Ra Dec: 349.557 19.256
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 1.02e-07 +/- 5.70e-08
Energy Flux (Fixed Index): 2.52e-05 +/- 1.41e-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) = 7777.531902
delta logL = 0.592583593303

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7777.52823201
delta logL = 0.596253577346

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9665       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5145       1.0000          .0000       10.000    
     3 'Normalizat'    .71501       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0685       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=   7777.528     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      247 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9637        48.989        .37999E-02    .31196E-03
   2  Index         3.5154        3.1767        .14541        .14651E-03
   3  Normalizat    .71504        .87675E-01    .88913E-01    .36639E-04
   4  Prefactor     1.0686        .46200E-01    .38929E-01   -.64183E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.96371
  Index      = 3.51541
  Normalizat = 0.715043
  Prefactor  = 1.0686
 **********
 **   18 **HESSE 
 **********

 FCN=   7777.528     FROM HESSE     STATUS=OK            33 CALLS      280 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9637        11.711        .10517E-03   -1.5180    
   2  Index         3.5154        1.3098        .54394E-02   -.30146    
   3  Normalizat    .71504        .24455        .39389E-03   -1.0330    
   4  Prefactor     1.0686        .14331        .19768E-03   -.90477    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.2092e-11
Minuit parameter uncertainties:
  1  11.7145
  2  1.32679
  3  0.244922
  4  0.143364
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/742341': 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) = 7777.52822882
delta logL = 0.596256775186

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  6.964e+00  1.171e+01  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  3.515e+00  1.327e+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.069e+00  1.434e-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:  7.150e-01  2.449e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.48
Ra Dec: 349.557 19.256
Photon Index (Free Index): 3.52 +/- 1.33
Photon Flux (Free Index): 1.55e-07 +/- 8.47e-08
Energy Flux (Free Index): 2.57e-05 +/- 1.28e-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/742341/cmap_HighResolution_251510401_251769601_4FGL_J2318.2+1915_daily_bin47.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.02e-07', energy_flux2='2.57e-05', photon_flux_error='5.70e-08', dlogl='5.96e-01', energy_flux='2.52e-05', photon_flux2='1.55e-07', job_status='DONE', time_completed='2021-09-29 11:11:42.289907', photon_index_error2='1.33', photon_index2='3.52', ts='5.09', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='1.28e-05', EG='0.78', time_epoch_completed='1632939102.29', return_code='0', job_id='742341', GAL2='1.07', EG2='0.72', return_code2='0', energy_flux_error='1.41e-05', photon_flux_error2='8.47e-08', ts2='6.48', photon_index='2.67' WHERE bin_id='47' AND source_name='4FGL J2318.2+1915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:11:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 742341: <4FGL_J2318.2+1915_daily_bin47> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2318.2+1915_daily_bin47 349.557 19.256 251510401 251769601 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 :                                   578.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             344.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   639 sec.
    Turnaround time :                            642 sec.

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

