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


Performing analysis on: 4FGL_J2318.2+1915_daily_bin958
RA = 349.557, Dec = 19.256
tmin = 487641601, tmax = 487900801
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='746804', job_status='RUN', time_executed='2021-09-29 11:18:41.827814', time_epoch_executed='1632939521.83' WHERE source_name='4FGL J2318.2+1915' and cadence='daily' and bin_id='958'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/746804

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/746804/ft1_4FGL_J2318.2+1915_daily_bin958.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/746804/ft2_4FGL_J2318.2+1915_daily_bin958.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/746804/ft1_4FGL_J2318.2+1915_daily_bin958.fits outfile=/scratch/kocevski/746804/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin958.fits ra=349.557 dec=19.256 rad=12.0 tmin=487641601.0 tmax=487900801.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.03
user 4.80
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/746804/ft2_4FGL_J2318.2+1915_daily_bin958.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/746804/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin958.fits evtable="EVENTS" outfile="/scratch/kocevski/746804/ft1_filtered_4FGL_J2318.2+1915_daily_bin958.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.50
user 0.35
sys 0.13

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/746804/ft1_filtered_4FGL_J2318.2+1915_daily_bin958.fits evtable="EVENTS" scfile=/scratch/kocevski/746804/ft2_4FGL_J2318.2+1915_daily_bin958.fits sctable="SC_DATA" expcube=/scratch/kocevski/746804/ltcube_487641601_487900801_4FGL_J2318.2+1915_daily_bin958.fits outfile=/scratch/kocevski/746804/expmap_487641601_487900801_4FGL_J2318.2+1915_daily_bin958.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/746804/ltcube_487641601_487900801_4FGL_J2318.2+1915_daily_bin958.fits
.....................!
real 189.56
user 185.11
sys 4.14

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/746804/ft1_filtered_4FGL_J2318.2+1915_daily_bin958.fits scfile=/scratch/kocevski/746804/ft2_4FGL_J2318.2+1915_daily_bin958.fits outfile=/scratch/kocevski/746804/cmap_487641601_487900801_4FGL_J2318.2+1915_daily_bin958.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/746804/ft1_filtered_4FGL_J2318.2+1915_daily_bin958.fits scfile=/scratch/kocevski/746804/ft2_4FGL_J2318.2+1915_daily_bin958.fits outfile=/scratch/kocevski/746804/cmap_HighResolution_487641601_487900801_4FGL_J2318.2+1915_daily_bin958.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/746804/ft1_filtered_4FGL_J2318.2+1915_daily_bin958.fits evtable="EVENTS" scfile=/scratch/kocevski/746804/ft2_4FGL_J2318.2+1915_daily_bin958.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/746804/Model_4FGL_J2318.2+1915_daily_bin958.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/746804/ft1_filtered_4FGL_J2318.2+1915_daily_bin958.fits.....................!
real 100.77
user 99.34
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    79.777       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.140       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.791       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.1444       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.982       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.1243       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10975       1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.964       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13402       1.0000         .10000E-03   10000.    
    15 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .90947       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1292       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=   8393.844     FROM MIGRAD    STATUS=CONVERGED    436 CALLS     2076 TOTAL
                     EDM=   .16E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          79.777        10.022       -.10839E-05    .39424E-04
   2  norm          .10000E-03    .69313       -.20866E-07** at limit **
   3  Prefactor     25.117        47.673       -.17849E-04    .17022E-05
   4  Prefactor     14.792        16.504        .71271E-06   -.11279E-04
   5  Prefactor     .10000E-03    9.7524       -.10285E-05** at limit **
   6  Prefactor     8.1445        .57202        .58894E-07   -.77838E-04
   7  Prefactor     .10000E-03    9.5688        .76173E-06** at limit **
   8  Prefactor     .10000E-03    3.5773       -.66734E-09** at limit **
   9  Prefactor     22.984        20.336       -.13857E-05    .10916E-05
  10  Prefactor     .10000E-03    17.585        .34926E-09** at limit **
  11  Prefactor     6.1155        26.920        .70770E-06   -.20197E-04
  12  Prefactor     .14099        5.0867       -.74516E-06    .38777E-04
  13  Prefactor     15.965        15.648        .18206E-05   -.10522E-04
  14  Prefactor     .10000E-03    23.393        .24381E-06** at limit **
  15  norm          .10000E-03    6.6553       -.91538E-07** at limit **
  16  Prefactor     .10000E-03    9.5188        .21817E-06** at limit **
  17  norm          .10000E-03    7.6078       -.39579E-07** at limit **
  18  Prefactor     .10000E-03    5.0643        .47963E-07** at limit **
  19  Normalizat    .90915        .30579        .14343E-05    .29778E-04
  20  Prefactor     1.1294        .16375        .87747E-07    .11392E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 79.7771
  norm       = 0.0001
  Prefactor  = 25.1172
  Prefactor  = 14.7918
  Prefactor  = 0.0001
  Prefactor  = 8.14453
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.9838
  Prefactor  = 0.0001
  Prefactor  = 6.11552
  Prefactor  = 0.140991
  Prefactor  = 15.9651
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.909152
  Prefactor  = 1.12937
 **********
 **   18 **HESSE 
 **********

 FCN=   8393.844     FROM HESSE     STATUS=OK           307 CALLS     2383 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          79.777        10.045        .44964E-04   -1.3919    
   2  norm          .10000E-03    .69370        .74445E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     25.117        47.798        .79893E-04   -1.4705    
   4  Prefactor     14.792        16.484        .10414E-03   -1.4939    
   5  Prefactor     .10000E-03    9.7534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.1445        .57330        .17183E-04   -1.5137    
   7  Prefactor     .10000E-03    9.6488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.5847        .16922E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     22.984        20.338        .83554E-04   -1.4749    
  10  Prefactor     .10000E-03    17.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.1155        27.020        .16223E-03   -1.5213    
  12  Prefactor     .14099        8.3710        .65482E-01   -1.5633    
  13  Prefactor     15.965        15.630        .10024E-03   -1.4909    
  14  Prefactor     .10000E-03    26.356        .12249       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.6834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.6721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    7.6141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.0818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .90915        .36151        .51048E-03   -.96139    
  20  Prefactor     1.1294        .19582        .25977E-03   -.88533    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.9387e-10
Minuit parameter uncertainties:
  1  10.0455
  2  9.47393e-07
  3  47.8708
  4  16.4892
  5  1.85873e-06
  6  0.573305
  7  1.27289e-05
  8  5.09025e-07
  9  20.3446
  10  1.47162e-05
  11  25.7287
  12  2.17232
  13  15.634
  14  9.95526e-05
  15  2.21064e-05
  16  2.84539e-05
  17  1.82843e-06
  18  9.68681e-06
  19  0.362477
  20  0.195946
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
510   Normalization:  9.092e-01  3.625e-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: 1.52e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.19e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/746804/likelihoodResults_487641601_487900801_4FGL_J2318.2+1915_daily_bin958.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) = 8393.83613559
delta logL = 0.00775523430639

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8393.81961075
delta logL = 0.0242800710093

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .87457       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4485       1.0000          .0000       10.000    
     3 'Normalizat'    .89196       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1339       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8393.820     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      301 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .87829        9.0594        .36558E-03   -.78118E-04
   2  Index         3.4405        3.1894        .12163E-01   -.59765E-05
   3  Normalizat    .89224        .34976        .51483E-03   -.14619E-04
   4  Prefactor     1.1338        .19388        .25930E-03   -.24289E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.878287
  Index      = 3.44045
  Normalizat = 0.89224
  Prefactor  = 1.1338
 **********
 **   18 **HESSE 
 **********

 FCN=   8393.820     FROM HESSE     STATUS=OK            25 CALLS      326 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .87829        6.9492        .14623E-04   -1.5521    
   2  Index         3.4405        2.8538        .48651E-03   -.31720    
   3  Normalizat    .89224        .35041        .20593E-04   -.96733    
   4  Prefactor     1.1338        .19412        .10372E-04   -.88393    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8267e-11
Minuit parameter uncertainties:
  1  4.94153
  2  3.06131
  3  0.351312
  4  0.194237
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/746804': 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) = 8393.8196067
delta logL = 0.0242841223553

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  8.783e-01  4.942e+00  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  3.440e+00  3.061e+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.134e+00  1.942e-01  0.000e+00  1.000e+01 ( 1.000e+00)
512        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
513        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
510   Normalization:  8.922e-01  3.513e-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/746804/cmap_HighResolution_487641601_487900801_4FGL_J2318.2+1915_daily_bin958.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-02', job_status='DONE', photon_flux_upper_limit='1.52e-07', time_completed='2021-09-29 11:31:03.078202', job_id='746804', GAL2='1.13', fit_tolerance='1e-08', EG2='0.89', EG='0.91', time_epoch_completed='1632940263.08', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='2.43e-02', ts2='0.05', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='958' AND source_name='4FGL J2318.2+1915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:31:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 746804: <4FGL_J2318.2+1915_daily_bin958> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2318.2+1915_daily_bin958 349.557 19.256 487641601 487900801 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 :                                   732.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            920 sec.

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

