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


Performing analysis on: 4FGL_J2318.2+1915_daily_bin86
RA = 349.557, Dec = 19.256
tmin = 261619201, tmax = 261878401
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='742402', job_status='RUN', time_executed='2021-09-29 11:02:05.012907', time_epoch_executed='1632938525.01' WHERE source_name='4FGL J2318.2+1915' and cadence='daily' and bin_id='86'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/742402

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/742402/ft1_4FGL_J2318.2+1915_daily_bin86.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/742402/ft2_4FGL_J2318.2+1915_daily_bin86.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/742402/ft1_4FGL_J2318.2+1915_daily_bin86.fits outfile=/scratch/kocevski/742402/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin86.fits ra=349.557 dec=19.256 rad=12.0 tmin=261619201.0 tmax=261878401.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.50
user 1.25
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/742402/ft2_4FGL_J2318.2+1915_daily_bin86.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/742402/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin86.fits evtable="EVENTS" outfile="/scratch/kocevski/742402/ft1_filtered_4FGL_J2318.2+1915_daily_bin86.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/742402/ft1_filtered_4FGL_J2318.2+1915_daily_bin86.fits evtable="EVENTS" scfile=/scratch/kocevski/742402/ft2_4FGL_J2318.2+1915_daily_bin86.fits sctable="SC_DATA" expcube=/scratch/kocevski/742402/ltcube_261619201_261878401_4FGL_J2318.2+1915_daily_bin86.fits outfile=/scratch/kocevski/742402/expmap_261619201_261878401_4FGL_J2318.2+1915_daily_bin86.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/742402/ltcube_261619201_261878401_4FGL_J2318.2+1915_daily_bin86.fits
.....................!
real 193.01
user 186.10
sys 4.63

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/742402/ft1_filtered_4FGL_J2318.2+1915_daily_bin86.fits scfile=/scratch/kocevski/742402/ft2_4FGL_J2318.2+1915_daily_bin86.fits outfile=/scratch/kocevski/742402/cmap_261619201_261878401_4FGL_J2318.2+1915_daily_bin86.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/742402/ft1_filtered_4FGL_J2318.2+1915_daily_bin86.fits scfile=/scratch/kocevski/742402/ft2_4FGL_J2318.2+1915_daily_bin86.fits outfile=/scratch/kocevski/742402/cmap_HighResolution_261619201_261878401_4FGL_J2318.2+1915_daily_bin86.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .72873       1.0000         .10000E-03   10000.    
     2 'norm      '    .92021       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .25070E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.3998       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .71799       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10389E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.0283       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.1283       1.0000         .10000E-03   10000.    
    15 'norm      '    11.557       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .41506E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.1288       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .82353       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1332       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=   7651.092     FROM MIGRAD    STATUS=CONVERGED    435 CALLS     1816 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .73006        2.7275        .45694E-06   -.62153E-04
   2  norm          .92074        1.3962        .39661E-06    .17703E-02
   3  Prefactor     .10000E-03    60.372        .50308E-04** at limit **
   4  Prefactor     .10000E-03    4.1066        .39319E-07** at limit **
   5  Prefactor     4.4097        11.622        .31961E-05   -.26732E-03
   6  Prefactor     .71803        .16744        .74138E-07   -.14172E-02
   7  Prefactor     .10000E-03    2.9109       -.12997E-08** at limit **
   8  Prefactor     .10000E-03    2.4019       -.86160E-07** at limit **
   9  Prefactor     .10000E-03    4.8229       -.15914E-06** at limit **
  10  Prefactor     .10000E-03    17.360        .15344E-05** at limit **
  11  Prefactor     .10000E-03    12.545       -.64664E-06** at limit **
  12  Prefactor     .10000E-03    2.4735       -.29553E-06** at limit **
  13  Prefactor     3.0379        11.781        .67746E-05   -.10747E-03
  14  Prefactor     3.1375        31.376        .28635E-05   -.69952E-04
  15  norm          11.549        8.5227       -.20823E-05   -.80529E-03
  16  Prefactor     .10000E-03    8.5805        .17406E-05** at limit **
  17  norm          .10006E-03    9.9760       -.21550E-05** at limit **
  18  Prefactor     1.1286        1.0049        .31445E-06   -.14037E-02
  19  Normalizat    .82336        .20531       -.18913E-05   -.53114E-03
  20  Prefactor     1.1333        .11965        .27410E-06   -.74991E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.730062
  norm       = 0.920741
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 4.40973
  Prefactor  = 0.718026
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.0379
  Prefactor  = 3.13751
  norm       = 11.5494
  Prefactor  = 0.000100004
  norm       = 0.000100058
  Prefactor  = 1.12864
  Normalizat = 0.823357
  Prefactor  = 1.13326
 **********
 **   18 **HESSE 
 **********

 FCN=   7651.092     FROM HESSE     STATUS=OK           303 CALLS     2119 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .73006        2.7526        .25801E-03   -1.5537    
   2  norm          .92074        1.1505        .12420E-02   -1.5516    
   3  Prefactor     .10000E-03    58.945        .63381E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.1289        .17307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.4097        11.586        .19200E-03   -1.5288    
   6  Prefactor     .71803        .16592        .16328E-04   -1.5539    
   7  Prefactor     .10000E-03    2.9153        .14574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.4166        .13237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.8373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    17.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.4845        .13423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.0379        11.779        .23319E-03   -1.5359    
  14  Prefactor     3.1375        31.315        .22922E-03   -1.5354    
  15  norm          11.549        8.5277        .11784E-03   -1.5028    
  16  Prefactor     .10000E-03    8.9239        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10006E-03    10.300        .88758E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.1286        6.0287        .20510E-02   -1.5495    
  19  Normalizat    .82336        .23388        .34574E-03   -.99208    
  20  Prefactor     1.1333        .13760        .18324E-03   -.88411    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.01053e-09
Minuit parameter uncertainties:
  1  2.75309
  2  1.15057
  3  0.000421626
  4  5.94855e-06
  5  11.5922
  6  0.165924
  7  6.23469e-06
  8  8.66012e-06
  9  4.86239e-07
  10  0.000170535
  11  0.000114484
  12  3.61253e-05
  13  11.7879
  14  19.8375
  15  8.52864
  16  0.000364459
  17  0.00153957
  18  5.21757
  19  0.234164
  20  0.137647
Done.

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

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  1.000e-04  3.613e-05  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.133e+00  1.376e-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.234e-01  2.342e-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: 7.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.00e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/742402/likelihoodResults_261619201_261878401_4FGL_J2318.2+1915_daily_bin86.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) = 7651.09389812
delta logL = -0.00191492390331

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7651.09198322
delta logL = -1.96614564629e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6610       1.0000          .0000       10.000    
     3 'Normalizat'    .82337       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1333       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7651.092     FROM MIGRAD    STATUS=FAILED        85 CALLS      236 TOTAL
                     EDM=   .68E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10067E-03    180.37        .13443E-02** at limit **
   2  Index         2.5779        5.4256        .50000        .15144E-04
   3  Normalizat    .82336        .45574E-01    .34574E-03   -.62838E-04
   4  Prefactor     1.1333        .28085E-01    .18324E-03   -.77987E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7651.092     FROM SIMPLEX   STATUS=PROGRESS     144 CALLS      380 TOTAL
                     EDM=   .57E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    180.37        .19244E-03** at limit **
   2  Index         2.5778        5.4256        .49089E-04    .15144E-04
   3  Normalizat    .82336        .45574E-01    .14399E-05   -.62838E-04
   4  Prefactor     1.1333        .28085E-01    .74210E-06   -.77987E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7651.092     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      425 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.8847        .26886E-03** at limit **
   2  Index         2.3724        5.3386        .50000       -.13285E-06
   3  Normalizat    .82336        .22082        .13830E-04    .37815E-04
   4  Prefactor     1.1333        .13619        .36648E-04    .92008E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.37245
  Normalizat = 0.82336
  Prefactor  = 1.13326
 **********
 **   18 **HESSE 
 **********

 FCN=   7651.092     FROM HESSE     STATUS=OK            29 CALLS      454 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.6371        .53771E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3724        8.8110        .50000       -.55332    
   3  Normalizat    .82336        .22080        .27659E-05   -.99208    
   4  Prefactor     1.1333        .13618        .73297E-05   -.88411    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99083e-11
Minuit parameter uncertainties:
  1  8.12722e-06
  2  124.807
  3  0.221038
  4  0.136224
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/742402': 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) = 7651.09198247
delta logL = 7.2937564255e-07

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  1.000e-04  8.127e-06  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  2.372e+00  1.248e+02  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.133e+00  1.362e-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.234e-01  2.210e-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/742402/cmap_HighResolution_261619201_261878401_4FGL_J2318.2+1915_daily_bin86.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.00e-03', job_status='DONE', photon_flux_upper_limit='7.63e-08', time_completed='2021-09-29 11:12:44.284136', job_id='742402', GAL2='1.13', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1632939164.28', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='7.29e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='86' AND source_name='4FGL J2318.2+1915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:12:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0294>
Subject: Job 742402: <4FGL_J2318.2+1915_daily_bin86> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2318.2+1915_daily_bin86 349.557 19.256 261619201 261878401 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 :                                   634.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             299.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   693 sec.
    Turnaround time :                            695 sec.

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

