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


Performing analysis on: 4FGL_J2318.2+1915_daily_bin974
RA = 349.557, Dec = 19.256
tmin = 491788801, tmax = 492048001
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='746827', job_status='RUN', time_executed='2021-09-29 11:18:52.510626', time_epoch_executed='1632939532.51' WHERE source_name='4FGL J2318.2+1915' and cadence='daily' and bin_id='974'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/746827

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/746827/ft1_4FGL_J2318.2+1915_daily_bin974.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/746827/ft2_4FGL_J2318.2+1915_daily_bin974.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/746827/ft1_4FGL_J2318.2+1915_daily_bin974.fits outfile=/scratch/kocevski/746827/ft1_filteredMKT_4FGL_J2318.2+1915_daily_bin974.fits ra=349.557 dec=19.256 rad=12.0 tmin=491788801.0 tmax=492048001.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 4.23
user 3.99
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/746827/ft1_filtered_4FGL_J2318.2+1915_daily_bin974.fits" evtable="EVENTS" scfile=/scratch/kocevski/746827/ft2_4FGL_J2318.2+1915_daily_bin974.fits sctable="SC_DATA" outfile=/scratch/kocevski/746827/ltcube_491788801_492048001_4FGL_J2318.2+1915_daily_bin974.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/746827/ft2_4FGL_J2318.2+1915_daily_bin974.fits
.....................!
real 11.73
user 11.34
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/746827/ft1_filtered_4FGL_J2318.2+1915_daily_bin974.fits evtable="EVENTS" scfile=/scratch/kocevski/746827/ft2_4FGL_J2318.2+1915_daily_bin974.fits sctable="SC_DATA" expcube=/scratch/kocevski/746827/ltcube_491788801_492048001_4FGL_J2318.2+1915_daily_bin974.fits outfile=/scratch/kocevski/746827/expmap_491788801_492048001_4FGL_J2318.2+1915_daily_bin974.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/746827/ltcube_491788801_492048001_4FGL_J2318.2+1915_daily_bin974.fits
.....................!
real 191.37
user 186.12
sys 4.94

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/746827/ft1_filtered_4FGL_J2318.2+1915_daily_bin974.fits scfile=/scratch/kocevski/746827/ft2_4FGL_J2318.2+1915_daily_bin974.fits outfile=/scratch/kocevski/746827/cmap_491788801_492048001_4FGL_J2318.2+1915_daily_bin974.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/746827/ft1_filtered_4FGL_J2318.2+1915_daily_bin974.fits scfile=/scratch/kocevski/746827/ft2_4FGL_J2318.2+1915_daily_bin974.fits outfile=/scratch/kocevski/746827/cmap_HighResolution_491788801_492048001_4FGL_J2318.2+1915_daily_bin974.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.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11058E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.601       1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.820       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10421E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.631       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    28.780       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    41.435       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .92729       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .65740       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=   1255.172     FROM MIGRAD    STATUS=CONVERGED    405 CALLS     1967 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    16.843        .23393E-05** at limit **
   2  norm          .10000E-03    10.194       -.58282E-06** at limit **
   3  Prefactor     .10000E-03    94.398        .49176E-07** at limit **
   4  Prefactor     .10000E-03    66.262       -.36124E-05** at limit **
   5  Prefactor     .10000E-03    48.492        .96668E-07** at limit **
   6  Prefactor     10.601        1.8158       -.54700E-07   -.73441E-04
   7  Prefactor     26.578        95.388       -.72684E-05   -.63154E-04
   8  Prefactor     .10000E-03    31.179        .94668E-06** at limit **
   9  Prefactor     .10000E-03    21.787        .56807E-06** at limit **
  10  Prefactor     .10001E-03    94.104       -.49856E-05** at limit **
  11  Prefactor     .10000E-03    89.015       -.85328E-06** at limit **
  12  Prefactor     .10000E-03    13.561       -.33788E-06** at limit **
  13  Prefactor     17.631        20.847        .70215E-07    .11182E-04
  14  Prefactor     .10000E-03    34.298        .12754E-06** at limit **
  15  norm          28.759        24.521       -.11922E-05    .44552E-04
  16  Prefactor     .10000E-03    16.212        .47764E-06** at limit **
  17  norm          41.440        35.723        .17115E-06   -.53731E-05
  18  Prefactor     .10000E-03    7.7681        .33917E-06** at limit **
  19  Normalizat    .92886        .74633        .33371E-04   -.61224E-04
  20  Prefactor     .65668        .39415       -.21346E-04   -.46759E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 10.6007
  Prefactor  = 26.578
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.6308
  Prefactor  = 0.0001
  norm       = 28.7588
  Prefactor  = 0.0001
  norm       = 41.4402
  Prefactor  = 0.0001
  Normalizat = 0.928856
  Prefactor  = 0.656679
 **********
 **   18 **HESSE 
 **********

 FCN=   1255.172     FROM HESSE     STATUS=OK           285 CALLS     2252 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    17.269        .14221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    10.219        .11056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    94.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    66.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    48.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.601        1.8158        .18955E-04   -1.5057    
   7  Prefactor     26.578        96.224        .38678E-03   -1.4676    
   8  Prefactor     .10000E-03    31.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    21.809        .16160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    95.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    89.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.572        .12749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     17.631        20.841        .95385E-04   -1.4868    
  14  Prefactor     .10000E-03    34.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          28.759        24.516        .74681E-04   -1.4635    
  16  Prefactor     .10000E-03    16.238        .13910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          41.440        35.725        .62275E-04   -1.4420    
  18  Prefactor     .10000E-03    7.7727        .96468E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .92886        .74462        .38556E-03   -.95453    
  20  Prefactor     .65668        .39507        .24911E-03   -1.0525    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.88254e-10
Minuit parameter uncertainties:
  1  0.000211019
  2  5.93907e-05
  3  3.40334e-05
  4  0.000943864
  5  3.33588e-05
  6  1.81579
  7  96.7931
  8  0.000186291
  9  7.35356e-05
  10  0.00160876
  11  0.000221281
  12  5.48473e-05
  13  20.8498
  14  1.01073e-05
  15  24.5249
  16  4.02127e-05
  17  35.7439
  18  2.27114e-05
  19  0.753133
  20  0.39676
Done.

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

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  1.000e-04  5.485e-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:  6.567e-01  3.968e-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.289e-01  7.531e-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: 5.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.01e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/746827/likelihoodResults_491788801_492048001_4FGL_J2318.2+1915_daily_bin974.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) = 1255.17261305
delta logL = -0.000314944099728

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1255.17229815
delta logL = -4.25882262789e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5835       1.0000          .0000       10.000    
     3 'Normalizat'    .92874       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65678       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=   1255.172     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      201 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.354        .90712E-02** at limit **
   2  Index         2.5790        6.2792        .50000        .29378E-05
   3  Normalizat    .92886        .55897        .87048E-01   -.44851E-04
   4  Prefactor     .65668        .31218        .41823E-01   -.49826E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.57897
  Normalizat = 0.928859
  Prefactor  = 0.656678
 **********
 **   18 **HESSE 
 **********

 FCN=   1255.172     FROM HESSE     STATUS=OK            31 CALLS      232 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.849        .12862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5790        6.2848        .50000       -.50546    
   3  Normalizat    .92886        .66810        .38550E-03   -.95453    
   4  Prefactor     .65668        .37449        .24913E-03   -1.0525    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.91227e-11
Minuit parameter uncertainties:
  1  6.79327e-05
  2  4.39245
  3  0.67421
  4  0.375928
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/746827': 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) = 1255.17229804
delta logL = 6.43078692519e-08

Extracting fit parameters...

4FGL J2318.2+1915
   Spectrum: PowerLaw
372    Prefactor:  1.000e-04  6.793e-05  1.000e-04  1.000e+04 ( 1.000e-12)
373        Index:  2.579e+00  4.392e+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:  6.567e-01  3.759e-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.289e-01  6.742e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/746827/cmap_HighResolution_491788801_492048001_4FGL_J2318.2+1915_daily_bin974.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.01e-02', job_status='DONE', photon_flux_upper_limit='5.10e-07', time_completed='2021-09-29 11:25:09.794939', job_id='746827', GAL2='0.66', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1632939909.8', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='6.43e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='974' AND source_name='4FGL J2318.2+1915' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 11:25:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 746827: <4FGL_J2318.2+1915_daily_bin974> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2318.2+1915_daily_bin974 349.557 19.256 491788801 492048001 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 :                                   372.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             215.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   564 sec.
    Turnaround time :                            565 sec.

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

