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


Performing analysis on: 4FGL_J1314.7+2348_daily_bin5
RA = 198.688, Dec = 23.8124
tmin = 240624001, tmax = 240883201
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='375507', job_status='RUN', time_executed='2021-09-07 06:13:49.742883', time_epoch_executed='1631020429.74' WHERE source_name='4FGL J1314.7+2348' and cadence='daily' and bin_id='5'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/375507

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/375507/ft1_4FGL_J1314.7+2348_daily_bin5.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/375507/ft2_4FGL_J1314.7+2348_daily_bin5.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/375507/ft1_4FGL_J1314.7+2348_daily_bin5.fits outfile=/scratch/kocevski/375507/ft1_filteredMKT_4FGL_J1314.7+2348_daily_bin5.fits ra=198.688 dec=23.8124 rad=12.0 tmin=240624001.0 tmax=240883201.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.39
user 1.20
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/375507/ft2_4FGL_J1314.7+2348_daily_bin5.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/375507/ft2_4FGL_J1314.7+2348_daily_bin5.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/375507/ft1_filteredMKT_4FGL_J1314.7+2348_daily_bin5.fits evtable="EVENTS" outfile="/scratch/kocevski/375507/ft1_filtered_4FGL_J1314.7+2348_daily_bin5.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.51
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/375507/ft1_filtered_4FGL_J1314.7+2348_daily_bin5.fits" evtable="EVENTS" scfile=/scratch/kocevski/375507/ft2_4FGL_J1314.7+2348_daily_bin5.fits sctable="SC_DATA" outfile=/scratch/kocevski/375507/ltcube_240624001_240883201_4FGL_J1314.7+2348_daily_bin5.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/375507/ft2_4FGL_J1314.7+2348_daily_bin5.fits
.....................!
real 17.79
user 17.36
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/375507/ft1_filtered_4FGL_J1314.7+2348_daily_bin5.fits evtable="EVENTS" scfile=/scratch/kocevski/375507/ft2_4FGL_J1314.7+2348_daily_bin5.fits sctable="SC_DATA" expcube=/scratch/kocevski/375507/ltcube_240624001_240883201_4FGL_J1314.7+2348_daily_bin5.fits outfile=/scratch/kocevski/375507/expmap_240624001_240883201_4FGL_J1314.7+2348_daily_bin5.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/375507/ltcube_240624001_240883201_4FGL_J1314.7+2348_daily_bin5.fits
.....................!
real 192.17
user 186.38
sys 5.23

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 173 point sources and 0 extended sources

Setting source of interest to:
4FGL J1314.7+2348 @ 198.688 23.8124

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/375507/ft1_filtered_4FGL_J1314.7+2348_daily_bin5.fits scfile=/scratch/kocevski/375507/ft2_4FGL_J1314.7+2348_daily_bin5.fits outfile=/scratch/kocevski/375507/cmap_240624001_240883201_4FGL_J1314.7+2348_daily_bin5.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=198.688 yref=23.8124 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.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/375507/ft1_filtered_4FGL_J1314.7+2348_daily_bin5.fits scfile=/scratch/kocevski/375507/ft2_4FGL_J1314.7+2348_daily_bin5.fits outfile=/scratch/kocevski/375507/cmap_HighResolution_240624001_240883201_4FGL_J1314.7+2348_daily_bin5.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=198.688 yref=23.8124 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.58
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/375507/ft1_filtered_4FGL_J1314.7+2348_daily_bin5.fits evtable="EVENTS" scfile=/scratch/kocevski/375507/ft2_4FGL_J1314.7+2348_daily_bin5.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/375507/Model_4FGL_J1314.7+2348_daily_bin5.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/375507/ft1_filtered_4FGL_J1314.7+2348_daily_bin5.fits.....................!
real 50.51
user 49.17
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/375507/ft1_filtered_4FGL_J1314.7+2348_daily_bin5.fits', '/scratch/kocevski/375507/ft2_4FGL_J1314.7+2348_daily_bin5.fits', expMap='/scratch/kocevski/375507/expmap_240624001_240883201_4FGL_J1314.7+2348_daily_bin5.fits', expCube='/scratch/kocevski/375507/ltcube_240624001_240883201_4FGL_J1314.7+2348_daily_bin5.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/375507/Model_4FGL_J1314.7+2348_daily_bin5.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1314.7+2348'

4FGL J1314.7+2348
   Spectrum: LogParabola
308         norm:  9.277e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
309        alpha:  1.896e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  9.683e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  1.210e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/375507/ft1_filtered_4FGL_J1314.7+2348_daily_bin5.fits
Spacecraft file(s): /scratch/kocevski/375507/ft2_4FGL_J1314.7+2348_daily_bin5.fits
Exposure map: /scratch/kocevski/375507/expmap_240624001_240883201_4FGL_J1314.7+2348_daily_bin5.fits
Exposure cube: /scratch/kocevski/375507/ltcube_240624001_240883201_4FGL_J1314.7+2348_daily_bin5.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/375507/Model_4FGL_J1314.7+2348_daily_bin5.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) = 6026.51295842

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .76776       1.0000         .10000E-03   10000.    
     3 'norm      '    .34460E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10077E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14303E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .69558       1.0000         .10000E-03   10000.    
    11 'norm      '    45.517       1.0000         .10000E-03   10000.    
    12 'norm      '    8.4357       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.7364       1.0000         .10000E-03   10000.    
    16 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.4291       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.631       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2106       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .66571       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5520E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6026.326     FROM MIGRAD    STATUS=CONVERGED    588 CALLS     2491 TOTAL
                     EDM=   .21E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.2069        .13622E-06** at limit **
   2  norm          .76752        .31734       -.92019E-08   -.11486E-03
   3  norm          .95523E-01    36.527       -.35334E-05    .26379E-05
   4  Prefactor     .10000E-03    7.4514       -.24460E-06** at limit **
   5  Prefactor     .10000E-03    16.137        .17322E-05** at limit **
   6  Prefactor     .10000E-03    2.9869       -.31199E-08** at limit **
   7  norm          .10000E-03    3.5516        .42738E-06** at limit **
   8  Prefactor     .10000E-03    11.367       -.36084E-06** at limit **
   9  Prefactor     .10000E-03    62.715       -.15685E-05** at limit **
  10  norm          .69667        3.1422       -.12325E-05   -.29290E-04
  11  norm          45.514        9.5010        .76594E-07    .60092E-04
  12  norm          8.4369        13.419       -.15701E-06    .35683E-05
  13  norm          .10000E-03    8.8159       -.44104E-06** at limit **
  14  Prefactor     .10000E-03    1.4469        .56080E-07** at limit **
  15  Prefactor     3.7373        8.5528       -.28349E-06   -.72552E-05
  16  norm          .10000E-03    2.8550       -.13976E-06** at limit **
  17  Prefactor     .10000E-03    68.044       -.57799E-05** at limit **
  18  Prefactor     .10000E-03    17.138        .93185E-06** at limit **
  19  norm          4.4302        4.8728        .98595E-07    .20729E-04
  20  Prefactor     .10000E-03    12.497        .97698E-06** at limit **
  21  Prefactor     .10000E-03    25.024       -.25818E-05** at limit **
  22  Prefactor     13.634        5.6312       -.49000E-07    .17172E-04
  23  Prefactor     .10000E-03    7.8060        .10903E-05** at limit **
  24  Normalizat    1.2106        .16752        .94764E-06   -.65669E-04
  25  Prefactor     .66544        .16127       -.13630E-05    .34388E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.767517
  norm       = 0.0955227
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.696668
  norm       = 45.5143
  norm       = 8.43693
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.73726
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.43022
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.6337
  Prefactor  = 0.0001
  Normalizat = 1.21055
  Prefactor  = 0.665438
 **********
 **   18 **HESSE 
 **********

 FCN=   6026.326     FROM HESSE     STATUS=OK           417 CALLS     2908 TOTAL
                     EDM=   .81E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.2584        .15526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .76752        .31736        .27164E-04   -1.5533    
   3  norm          .95523E-01    36.007        .23000E-02   -1.5646    
   4  Prefactor     .10000E-03    7.4945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.0160        .13100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.6485        .28574E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    64.487        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .69667        3.1577        .26405E-03   -1.5541    
  11  norm          45.514        9.5182        .59428E-04   -1.4358    
  12  norm          8.4369        13.407        .13802E-03   -1.5127    
  13  norm          .10000E-03    8.8295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.4663        .91062E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.7373        8.5270        .20889E-03   -1.5321    
  16  norm          .10000E-03    2.8837        .12785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    68.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    17.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.4302        4.8623        .17381E-03   -1.5287    
  20  Prefactor     .10000E-03    12.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    25.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     13.634        5.6470        .10849E-03   -1.4969    
  23  Prefactor     .10000E-03    8.0719        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2106        .19263        .21962E-03   -.86277    
  25  Prefactor     .66544        .18476        .28405E-03   -1.0490    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.14491e-11
Minuit parameter uncertainties:
  1  4.45571e-06
  2  0.31736
  3  3.70948
  4  1.63052e-06
  5  2.82335e-05
  6  3.2133e-06
  7  6.893e-06
  8  1.31559e-05
  9  5.21166e-05
  10  2.96645
  11  9.51851
  12  13.4116
  13  1.47519e-06
  14  6.1103e-07
  15  8.52973
  16  5.72237e-07
  17  2.38848e-06
  18  1.5785e-05
  19  4.86269
  20  2.06301e-05
  21  2.34034e-05
  22  5.64726
  23  1.67411e-05
  24  0.192745
  25  0.184933
Done.

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

Extracting fit parameters...

4FGL J1314.7+2348
   Spectrum: LogParabola
308         norm:  1.000e-04  1.475e-06  1.000e-04  1.000e+04 ( 1.000e-13)
309        alpha:  1.896e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  9.683e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  1.210e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  6.654e-01  1.849e-01  0.000e+00  1.000e+01 ( 1.000e+00)
550        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
551        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
548   Normalization:  1.211e+00  1.927e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 198.688 23.812
Photon Flux Upper Limit: 3.65e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.84e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/375507/likelihoodResults_240624001_240883201_4FGL_J1314.7+2348_daily_bin5.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) = 6026.32639075
delta logL = -0.000538455843525

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6026.32585231
delta logL = -1.39943949762e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9103       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2106       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66542       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5520E+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=   6026.320     FROM MIGRAD    STATUS=FAILED       141 CALLS      289 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .97941E-01    6.5438        .22343E-01    .81686E-03
   2  alpha         4.0848        2.7066        .50000        .46599E-04
   3  Normalizat    1.2039        .13909E-01    .21962E-03   -.50523E-04
   4  Prefactor     .66918        .13785E-01    .28405E-03   -.15609E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6026.320     FROM SIMPLEX   STATUS=UNCHANGED     69 CALLS      358 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .97941E-01    6.5438        .22071E-03    .81686E-03
   2  alpha         4.0848        2.7066        .16788E-01    .46599E-04
   3  Normalizat    1.2039        .13909E-01    .86536E-04   -.50523E-04
   4  Prefactor     .66918        .13785E-01    .54778E-04   -.15609E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6026.320     FROM MIGRAD    STATUS=CONVERGED     71 CALLS      429 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .97944E-01    18.557        .47413E-04   -.43928E-03
   2  alpha         4.0848        2.9572        .22026E-01   -.66056E-05
   3  Normalizat    1.2039        .19589        .87848E-05   -.17859E-04
   4  Prefactor     .66918        .18655        .22724E-05    .10006E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0979443
  alpha      = 4.08475
  Normalizat = 1.20389
  Prefactor  = 0.669176
 **********
 **   18 **HESSE 
 **********

 FCN=   6026.320     FROM HESSE     STATUS=OK            23 CALLS      452 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .97944E-01    5.8750        .18965E-05   -1.5645    
   2  alpha         4.0848        4.1735        .88104E-03    13.253    
   3  Normalizat    1.2039        .19724        .17570E-05   -.86483    
   4  Prefactor     .66918        .18920        .45448E-06   -1.0475    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81004e-10
Minuit parameter uncertainties:
  1  1.51651
  2  5.88928
  3  0.197362
  4  0.189381
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/375507': 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) = 6026.32024739
delta logL = 0.0056049080822

Extracting fit parameters...

4FGL J1314.7+2348
   Spectrum: LogParabola
308         norm:  9.794e-02  1.517e+00  1.000e-04  1.000e+04 ( 1.000e-13)
309        alpha:  4.085e+00  5.889e+00  0.000e+00  5.000e+00 ( 1.000e+00)
310         beta:  9.683e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  1.210e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  6.692e-01  1.894e-01  0.000e+00  1.000e+01 ( 1.000e+00)
550        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
551        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
548   Normalization:  1.204e+00  1.974e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 198.688 23.812

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/375507/cmap_HighResolution_240624001_240883201_4FGL_J1314.7+2348_daily_bin5.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.84e-05', job_status='DONE', photon_flux_upper_limit='3.65e-08', time_completed='2021-09-07 06:24:56.087079', job_id='375507', GAL2='0.67', fit_tolerance='1e-08', EG2='1.20', EG='1.21', time_epoch_completed='1631021096.09', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='5.60e-03', ts2='0.01', photon_index_error='0.00', photon_index='1.90' WHERE bin_id='5' AND source_name='4FGL J1314.7+2348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 06:24:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0185>
Subject: Job 375507: <4FGL_J1314.7+2348_daily_bin5> in cluster <slac> Done

Job <4FGL_J1314.7+2348_daily_bin5> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 06:10:33 2021
Job was executed on host(s) <bullet0185>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 06:11:17 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 06:11:17 2021
Terminated at Tue Sep  7 06:24:56 2021
Results reported at Tue Sep  7 06:24:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1314.7+2348_daily_bin5 198.688 23.8124 240624001 240883201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1314.7+2348 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   663.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            863 sec.

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

