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


Performing analysis on: 4FGL_J2318.2+1915_daily_bin753
RA = 349.557, Dec = 19.256
tmin = 434505601, tmax = 434764801
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='746508', job_status='RUN', time_executed='2021-09-29 11:18:02.716443', time_epoch_executed='1632939482.72' WHERE source_name='4FGL J2318.2+1915' and cadence='daily' and bin_id='753'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/746508

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/746508/ft1_4FGL_J2318.2+1915_daily_bin753.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/746508/ft2_4FGL_J2318.2+1915_daily_bin753.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/746508/ft1_4FGL_J2318.2+1915_daily_bin753.fits outfile=/scratch/kocevski/746508/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin753.fits ra=349.557 dec=19.256 rad=12.0 tmin=434505601.0 tmax=434764801.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.90
user 5.60
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/746508/ft1_filtered_4FGL_J2318.2+1915_daily_bin753.fits" evtable="EVENTS" scfile=/scratch/kocevski/746508/ft2_4FGL_J2318.2+1915_daily_bin753.fits sctable="SC_DATA" outfile=/scratch/kocevski/746508/ltcube_434505601_434764801_4FGL_J2318.2+1915_daily_bin753.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/746508/ft2_4FGL_J2318.2+1915_daily_bin753.fits
.....................!
real 12.61
user 12.23
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/746508/ft1_filtered_4FGL_J2318.2+1915_daily_bin753.fits evtable="EVENTS" scfile=/scratch/kocevski/746508/ft2_4FGL_J2318.2+1915_daily_bin753.fits sctable="SC_DATA" expcube=/scratch/kocevski/746508/ltcube_434505601_434764801_4FGL_J2318.2+1915_daily_bin753.fits outfile=/scratch/kocevski/746508/expmap_434505601_434764801_4FGL_J2318.2+1915_daily_bin753.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/746508/ltcube_434505601_434764801_4FGL_J2318.2+1915_daily_bin753.fits
.....................!
real 190.09
user 185.39
sys 4.34

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/746508/ft1_filtered_4FGL_J2318.2+1915_daily_bin753.fits scfile=/scratch/kocevski/746508/ft2_4FGL_J2318.2+1915_daily_bin753.fits outfile=/scratch/kocevski/746508/cmap_434505601_434764801_4FGL_J2318.2+1915_daily_bin753.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/746508/ft1_filtered_4FGL_J2318.2+1915_daily_bin753.fits scfile=/scratch/kocevski/746508/ft2_4FGL_J2318.2+1915_daily_bin753.fits outfile=/scratch/kocevski/746508/cmap_HighResolution_434505601_434764801_4FGL_J2318.2+1915_daily_bin753.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/746508/ft1_filtered_4FGL_J2318.2+1915_daily_bin753.fits evtable="EVENTS" scfile=/scratch/kocevski/746508/ft2_4FGL_J2318.2+1915_daily_bin753.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/746508/Model_4FGL_J2318.2+1915_daily_bin753.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/746508/ft1_filtered_4FGL_J2318.2+1915_daily_bin753.fits.....................!
real 47.64
user 46.11
sys 1.37

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11837E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.7071       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    51.605       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.3805       1.0000         .10000E-03   10000.    
    13 'Prefactor '    32.222       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.2260       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.8955       1.0000         .10000E-03   10000.    
    17 'norm      '    1.9872       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4402       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .76003       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=   3489.722     FROM MIGRAD    STATUS=CONVERGED    398 CALLS     1999 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.0314       -.24075E-06** at limit **
   2  norm          .10000E-03    .81744       -.13204E-06** at limit **
   3  Prefactor     .10000E-03    29.692        .69928E-06** at limit **
   4  Prefactor     .10000E-03    8.5469        .14964E-06** at limit **
   5  Prefactor     .10000E-03    19.651       -.55719E-05** at limit **
   6  Prefactor     3.7069        .54238        .17266E-08    .12439E-02
   7  Prefactor     .10000E-03    36.655        .93466E-05** at limit **
   8  Prefactor     .10000E-03    26.726       -.61604E-05** at limit **
   9  Prefactor     .10000E-03    44.966       -.13028E-04** at limit **
  10  Prefactor     .10000E-03    17.416        .62554E-05** at limit **
  11  Prefactor     51.601        45.675       -.47456E-05   -.12476E-04
  12  Prefactor     7.3795        9.2044       -.84021E-07   -.60375E-04
  13  Prefactor     32.232        22.308        .49774E-05    .49854E-04
  14  Prefactor     .10000E-03    37.282        .91689E-05** at limit **
  15  norm          2.2109        19.403       -.44677E-05   -.17960E-03
  16  Prefactor     8.9042        12.410        .52308E-07    .22328E-04
  17  norm          1.9856        61.132       -.54241E-05   -.54316E-04
  18  Prefactor     .10000E-03    8.2791       -.16080E-06** at limit **
  19  Normalizat    1.4401        .35065       -.14594E-05    .71720E-04
  20  Prefactor     .76007        .19318        .94450E-06   -.83323E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.70693
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 51.6008
  Prefactor  = 7.37952
  Prefactor  = 32.2316
  Prefactor  = 0.0001
  norm       = 2.21094
  Prefactor  = 8.90423
  norm       = 1.98564
  Prefactor  = 0.0001
  Normalizat = 1.44012
  Prefactor  = 0.760072
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    13.501        .19773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .81756        .52162E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    29.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.5554        .16868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    19.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.7069        .54352        .15825E-04   -1.5323    
   7  Prefactor     .10000E-03    36.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    27.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    45.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    17.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     51.601        45.703        .55829E-04   -1.4270    
  12  Prefactor     7.3795        9.2016        .14763E-03   -1.5165    
  13  Prefactor     32.232        22.388        .70589E-04   -1.4572    
  14  Prefactor     .10000E-03    37.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.2109        19.492        .27558E-03   -1.5411    
  16  Prefactor     8.9042        12.299        .13439E-03   -1.5111    
  17  norm          1.9856        61.987        .29395E-03   -1.5426    
  18  Prefactor     .10000E-03    8.3154        .16597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.4401        .41301        .32959E-03   -.79475    
  20  Prefactor     .76007        .22855        .24165E-03   -1.0122    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.61766e-10
Minuit parameter uncertainties:
  1  0.000410682
  2  3.93139e-09
  3  1.80902e-06
  4  4.11975e-08
  5  4.16061e-06
  6  0.543519
  7  6.94642e-05
  8  8.63256e-05
  9  9.63952e-05
  10  1.6068e-05
  11  45.7343
  12  9.20338
  13  22.3935
  14  6.23289e-06
  15  13.135
  16  12.3025
  17  22.2133
  18  7.40264e-06
  19  0.413974
  20  0.228837
Done.

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

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  7.380e+00  9.203e+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:  7.601e-01  2.288e-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.440e+00  4.140e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.26
Ra Dec: 349.557 19.256
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 5.37e-08 +/- 6.69e-08
Energy Flux (Fixed Index): 1.33e-05 +/- 1.66e-05

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

Saving results to:
/scratch/kocevski/746508/likelihoodResults_434505601_434764801_4FGL_J2318.2+1915_daily_bin753.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3489.23697843
delta logL = 0.485181865173

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3489.09136663
delta logL = 0.630793666348

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.869       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8546       1.0000          .0000       10.000    
     3 'Normalizat'    1.4793       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73406       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=   3489.091     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      211 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.882        15.396        .26888E-02   -.10232E-03
   2  Index         1.8547        .55312        .18782        .60418E-04
   3  Normalizat    1.4792        .34439        .73654E-01    .11029E-04
   4  Prefactor     .73414        .19240        .42853E-01   -.87609E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.8818
  Index      = 1.85468
  Normalizat = 1.47917
  Prefactor  = 0.734143
 **********
 **   18 **HESSE 
 **********

 FCN=   3489.091     FROM HESSE     STATUS=OK            31 CALLS      242 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.882        13.842        .10755E-03   -1.4963    
   2  Index         1.8547        .56322        .73332E-02   -.68035    
   3  Normalizat    1.4792        .40734        .32589E-03   -.78365    
   4  Prefactor     .73414        .22739        .24526E-03   -1.0220    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04784e-10
Minuit parameter uncertainties:
  1  13.8453
  2  0.565205
  3  0.408242
  4  0.227678
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/746508': 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) = 3489.09136608
delta logL = 0.630794212535

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  1.388e+01  1.385e+01  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  1.855e+00  5.652e-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:  7.341e-01  2.277e-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.479e+00  4.082e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.54
Ra Dec: 349.557 19.256
Photon Index (Free Index): 1.85 +/- 0.57
Photon Flux (Free Index): 4.56e-08 +/- 5.01e-08
Energy Flux (Free Index): 4.64e-05 +/- 7.03e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.91e-02', comment='SUCCESS', photon_flux='5.37e-08', energy_flux2='4.64e-05', photon_flux_error='6.69e-08', dlogl='6.31e-01', energy_flux='1.33e-05', photon_flux2='4.56e-08', job_status='DONE', time_completed='2021-09-29 11:26:03.655089', photon_index_error2='0.57', photon_index2='1.85', ts='1.26', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='2.44e-07', energy_flux_error2='7.03e-05', EG='1.44', time_epoch_completed='1632939963.66', return_code='0', job_id='746508', GAL2='0.73', EG2='1.48', return_code2='0', energy_flux_error='1.66e-05', photon_flux_error2='5.01e-08', ts2='2.54', photon_index='2.67' WHERE bin_id='753' AND source_name='4FGL J2318.2+1915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:26:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 746508: <4FGL_J2318.2+1915_daily_bin753> in cluster <slac> Done

Job <4FGL_J2318.2+1915_daily_bin753> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 11:15:19 2021
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 11:15:21 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:15:21 2021
Terminated at Wed Sep 29 11:26:04 2021
Results reported at Wed Sep 29 11:26:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2318.2+1915_daily_bin753 349.557 19.256 434505601 434764801 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 :                                   478.23 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             315.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   642 sec.
    Turnaround time :                            645 sec.

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

