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


Performing analysis on: 4FGL_J1314.7+2348_daily_bin907
RA = 198.688, Dec = 23.8124
tmin = 474422401, tmax = 474681601
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='380111', job_status='RUN', time_executed='2021-09-07 06:29:58.719494', time_epoch_executed='1631021398.72' WHERE source_name='4FGL J1314.7+2348' and cadence='daily' and bin_id='907'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/380111

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/380111/ft1_4FGL_J1314.7+2348_daily_bin907.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/380111/ft2_4FGL_J1314.7+2348_daily_bin907.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/380111/ft1_4FGL_J1314.7+2348_daily_bin907.fits outfile=/scratch/kocevski/380111/ft1_filteredMKT_4FGL_J1314.7+2348_daily_bin907.fits ra=198.688 dec=23.8124 rad=12.0 tmin=474422401.0 tmax=474681601.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 3.50
user 3.26
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/380111/ft2_4FGL_J1314.7+2348_daily_bin907.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/380111/ft1_filteredMKT_4FGL_J1314.7+2348_daily_bin907.fits evtable="EVENTS" outfile="/scratch/kocevski/380111/ft1_filtered_4FGL_J1314.7+2348_daily_bin907.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.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/380111/ft1_filtered_4FGL_J1314.7+2348_daily_bin907.fits" evtable="EVENTS" scfile=/scratch/kocevski/380111/ft2_4FGL_J1314.7+2348_daily_bin907.fits sctable="SC_DATA" outfile=/scratch/kocevski/380111/ltcube_474422401_474681601_4FGL_J1314.7+2348_daily_bin907.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/380111/ft2_4FGL_J1314.7+2348_daily_bin907.fits
.....................!
real 15.90
user 15.49
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/380111/ft1_filtered_4FGL_J1314.7+2348_daily_bin907.fits evtable="EVENTS" scfile=/scratch/kocevski/380111/ft2_4FGL_J1314.7+2348_daily_bin907.fits sctable="SC_DATA" expcube=/scratch/kocevski/380111/ltcube_474422401_474681601_4FGL_J1314.7+2348_daily_bin907.fits outfile=/scratch/kocevski/380111/expmap_474422401_474681601_4FGL_J1314.7+2348_daily_bin907.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/380111/ltcube_474422401_474681601_4FGL_J1314.7+2348_daily_bin907.fits
.....................!
real 193.57
user 187.52
sys 5.46

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/380111/ft1_filtered_4FGL_J1314.7+2348_daily_bin907.fits scfile=/scratch/kocevski/380111/ft2_4FGL_J1314.7+2348_daily_bin907.fits outfile=/scratch/kocevski/380111/cmap_474422401_474681601_4FGL_J1314.7+2348_daily_bin907.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.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/380111/ft1_filtered_4FGL_J1314.7+2348_daily_bin907.fits scfile=/scratch/kocevski/380111/ft2_4FGL_J1314.7+2348_daily_bin907.fits outfile=/scratch/kocevski/380111/cmap_HighResolution_474422401_474681601_4FGL_J1314.7+2348_daily_bin907.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.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/380111/ft1_filtered_4FGL_J1314.7+2348_daily_bin907.fits evtable="EVENTS" scfile=/scratch/kocevski/380111/ft2_4FGL_J1314.7+2348_daily_bin907.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/380111/Model_4FGL_J1314.7+2348_daily_bin907.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/380111/ft1_filtered_4FGL_J1314.7+2348_daily_bin907.fits.....................!
real 49.33
user 47.88
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/380111/ft1_filtered_4FGL_J1314.7+2348_daily_bin907.fits', '/scratch/kocevski/380111/ft2_4FGL_J1314.7+2348_daily_bin907.fits', expMap='/scratch/kocevski/380111/expmap_474422401_474681601_4FGL_J1314.7+2348_daily_bin907.fits', expCube='/scratch/kocevski/380111/ltcube_474422401_474681601_4FGL_J1314.7+2348_daily_bin907.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/380111/Model_4FGL_J1314.7+2348_daily_bin907.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/380111/ft1_filtered_4FGL_J1314.7+2348_daily_bin907.fits
Spacecraft file(s): /scratch/kocevski/380111/ft2_4FGL_J1314.7+2348_daily_bin907.fits
Exposure map: /scratch/kocevski/380111/expmap_474422401_474681601_4FGL_J1314.7+2348_daily_bin907.fits
Exposure cube: /scratch/kocevski/380111/ltcube_474422401_474681601_4FGL_J1314.7+2348_daily_bin907.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/380111/Model_4FGL_J1314.7+2348_daily_bin907.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) = 5929.98048639

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .78180       1.0000         .10000E-03   10000.    
     2 'norm      '    .23450       1.0000         .10000E-03   10000.    
     3 'norm      '    10.030       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13258E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.3786       1.0000         .10000E-03   10000.    
     7 'norm      '    4.2055       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .98430       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.8318       1.0000         .10000E-03   10000.    
    12 'norm      '    21.025       1.0000         .10000E-03   10000.    
    13 'norm      '    10.899       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.6643       1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.222       1.0000         .10000E-03   10000.    
    16 'norm      '    4.2601       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.7117       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.1505       1.0000         .10000E-03   10000.    
    19 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.675       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.3051       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.0835       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .85978       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1959       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=   5929.871     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     2549 TOTAL
                     EDM=   .82E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .78153        2.8254        .27247E-06   -.61596E-04
   2  norm          .23447        .26447       -.91654E-08   -.24710E-03
   3  norm          10.030        4.3968        .13658E-07   -.15918E-04
   4  Prefactor     .10000E-03    12.424       -.34081E-06** at limit **
   5  Prefactor     .10000E-03    51.375       -.27140E-06** at limit **
   6  Prefactor     3.3787        8.2300        .35003E-06   -.91098E-05
   7  norm          4.2055        3.7791       -.65355E-07   -.23452E-04
   8  Prefactor     .98219        17.615        .25020E-05   -.14761E-04
   9  Prefactor     .10000E-03    16.159       -.31177E-06** at limit **
  10  norm          .10000E-03    1.4202       -.55823E-07** at limit **
  11  norm          3.8314        5.2509       -.32110E-06   -.79757E-04
  12  norm          21.025        12.005        .12004E-07   -.56020E-04
  13  norm          10.900        12.254        .37426E-07   -.29498E-06
  14  Prefactor     1.6637        3.1515        .21478E-05    .11222E-03
  15  Prefactor     21.227        15.649       -.97693E-06   -.77145E-04
  16  norm          4.2590        5.3768        .27792E-07   -.41165E-05
  17  Prefactor     5.7103        19.703        .33498E-06   -.30177E-05
  18  Prefactor     9.0720        106.76       -.40416E-06    .31127E-05
  19  norm          .10000E-03    2.3407        .58457E-07** at limit **
  20  Prefactor     .10000E-03    8.1519       -.53701E-07** at limit **
  21  Prefactor     18.676        17.556        .26184E-09   -.35650E-05
  22  Prefactor     2.3049        2.8460        .49697E-07   -.19240E-04
  23  Prefactor     3.0826        10.638        .43054E-06   -.69771E-05
  24  Normalizat    .85969        .18163        .12365E-05   -.11836E-03
  25  Prefactor     1.1960        .18911       -.16843E-05    .80536E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.781527
  norm       = 0.234472
  norm       = 10.0297
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.37869
  norm       = 4.20548
  Prefactor  = 0.982189
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.83137
  norm       = 21.025
  norm       = 10.8996
  Prefactor  = 1.66369
  Prefactor  = 21.2268
  norm       = 4.25899
  Prefactor  = 5.71026
  Prefactor  = 9.07196
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.6763
  Prefactor  = 2.30487
  Prefactor  = 3.08261
  Normalizat = 0.859689
  Prefactor  = 1.19605
 **********
 **   18 **HESSE 
 **********

 FCN=   5929.871     FROM HESSE     STATUS=OK           441 CALLS     2990 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .78153        2.9772        .23641E-02   -1.5531    
   2  norm          .23447        .24605        .40109E-03   -1.5611    
   3  norm          10.030        4.3808        .10287E-03   -1.5074    
   4  Prefactor     .10000E-03    12.786        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    51.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.3787        8.2344        .11007E-02   -1.5340    
   7  norm          4.2055        3.7767        .13679E-03   -1.5298    
   8  Prefactor     .98219        17.638        .26220E-02   -1.5510    
   9  Prefactor     .10000E-03    16.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.4310        .89583E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.8314        5.2613        .15274E-03   -1.5316    
  12  norm          21.025        12.071        .87351E-04   -1.4791    
  13  norm          10.900        12.252        .12136E-03   -1.5048    
  14  Prefactor     1.6637        3.1957        .17397E-03   -1.5450    
  15  Prefactor     21.227        15.631        .86946E-04   -1.4786    
  16  norm          4.2590        5.3670        .19160E-03   -1.5295    
  17  Prefactor     5.7103        19.726        .16807E-03   -1.5230    
  18  Prefactor     9.0720        107.19        .13249E-03   -1.5105    
  19  norm          .10000E-03    2.3436        .11498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.2349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     18.676        17.564        .92681E-04   -1.4843    
  22  Prefactor     2.3049        2.8330        .13987E-03   -1.5404    
  23  Prefactor     3.0826        10.655        .11549E-02   -1.5357    
  24  Normalizat    .85969        .20756        .25656E-03   -.97891    
  25  Prefactor     1.1960        .21703        .23914E-03   -.86453    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2504e-08
Minuit parameter uncertainties:
  1  2.97779
  2  0.246055
  3  4.38093
  4  2.66386e-06
  5  2.23258e-06
  6  8.23717
  7  3.7769
  8  8.32684
  9  1.62289e-05
  10  2.82141e-07
  11  5.26194
  12  12.0719
  13  12.2544
  14  3.19601
  15  15.6341
  16  5.36762
  17  19.7489
  18  62.5081
  19  3.80023e-07
  20  2.87006e-06
  21  17.5686
  22  2.83316
  23  10.6613
  24  0.207749
  25  0.217197
Done.

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

Extracting fit parameters...

4FGL J1314.7+2348
   Spectrum: LogParabola
308         norm:  1.090e+01  1.225e+01  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:  1.196e+00  2.172e-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:  8.597e-01  2.077e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.29
Ra Dec: 198.688 23.812
Photon Index (Fixed Index): 1.90 +/- 0.00
Photon Flux (Fixed Index): 1.04e-08 +/- 1.17e-08
Energy Flux (Fixed Index): 8.09e-06 +/- 9.09e-06

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

Saving results to:
/scratch/kocevski/380111/likelihoodResults_474422401_474681601_4FGL_J1314.7+2348_daily_bin907.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) = 5929.86494246
delta logL = 0.00564124761877

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5929.86477177
delta logL = 0.00581193375547

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.767       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0213       1.0000          .0000       5.0000    
     3 'Normalizat'    .85760       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1970       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.

 FCN=   5929.865     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      223 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.737        539.18        .30525E-02   -.15322E-03
   2  alpha         2.0162        3.9559        .42148        .28363E-05
   3  Normalizat    .85773        .13857        .44357E-01   -.13857E-04
   4  Prefactor     1.1970        .86544E-01    .54066E-01   -.14587E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.7367
  alpha      = 2.01623
  Normalizat = 0.857734
  Prefactor  = 1.19704
 **********
 **   18 **HESSE 
 **********

 FCN=   5929.865     FROM HESSE     STATUS=OK            31 CALLS      254 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.737        12.302        .12210E-03   -1.5053    
   2  alpha         2.0162        1.0954        .24646E-01   -.19474    
   3  Normalizat    .85773        .19765        .25683E-03   -.97962    
   4  Prefactor     1.1970        .21345        .23905E-03   -.86423    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.98262e-11
Minuit parameter uncertainties:
  1  12.3047
  2  1.13555
  3  0.197813
  4  0.213603
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/380111': 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) = 5929.86475484
delta logL = 0.0058288674536

Extracting fit parameters...

4FGL J1314.7+2348
   Spectrum: LogParabola
308         norm:  1.074e+01  1.230e+01  1.000e-04  1.000e+04 ( 1.000e-13)
309        alpha:  2.016e+00  1.136e+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:  1.197e+00  2.136e-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:  8.577e-01  1.978e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.30
Ra Dec: 198.688 23.812
Photon Index (Free Index): 2.02 +/- 1.14
Photon Flux (Free Index): 1.20e-08 +/- 2.05e-08
Energy Flux (Free Index): 7.45e-06 +/- 9.86e-06

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/380111/cmap_HighResolution_474422401_474681601_4FGL_J1314.7+2348_daily_bin907.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.81e-05', comment='SUCCESS', photon_flux='1.04e-08', energy_flux2='7.45e-06', photon_flux_error='1.17e-08', dlogl='5.83e-03', energy_flux='8.09e-06', photon_flux2='1.20e-08', job_status='DONE', time_completed='2021-09-07 06:41:06.933027', photon_index_error2='1.14', photon_index2='2.02', ts='2.29', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', photon_flux_upper_limit='4.89e-08', energy_flux_error2='9.86e-06', EG='0.86', time_epoch_completed='1631022066.93', return_code='0', job_id='380111', GAL2='1.20', EG2='0.86', return_code2='0', energy_flux_error='9.09e-06', photon_flux_error2='2.05e-08', ts2='2.30', photon_index='1.90' WHERE bin_id='907' AND source_name='4FGL J1314.7+2348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 06:41:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 380111: <4FGL_J1314.7+2348_daily_bin907> in cluster <slac> Done

Job <4FGL_J1314.7+2348_daily_bin907> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Tue Sep  7 06:25:54 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 06:29:44 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:29:44 2021
Terminated at Tue Sep  7 06:41:08 2021
Results reported at Tue Sep  7 06:41:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1314.7+2348_daily_bin907 198.688 23.8124 474422401 474681601 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 :                                   662.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             325.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   683 sec.
    Turnaround time :                            914 sec.

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

