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


Performing analysis on: 4FGL_J1314.7+2348_daily_bin75
RA = 198.688, Dec = 23.8124
tmin = 258768001, tmax = 259027201
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='375609', job_status='RUN', time_executed='2021-09-07 06:14:47.668895', time_epoch_executed='1631020487.67' WHERE source_name='4FGL J1314.7+2348' and cadence='daily' and bin_id='75'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/375609

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/375609/ft1_4FGL_J1314.7+2348_daily_bin75.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/375609/ft2_4FGL_J1314.7+2348_daily_bin75.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/375609/ft1_4FGL_J1314.7+2348_daily_bin75.fits outfile=/scratch/kocevski/375609/ft1_filteredMKT_4FGL_J1314.7+2348_daily_bin75.fits ra=198.688 dec=23.8124 rad=12.0 tmin=258768001.0 tmax=259027201.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.16
user 0.97
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/375609/ft1_filtered_4FGL_J1314.7+2348_daily_bin75.fits" evtable="EVENTS" scfile=/scratch/kocevski/375609/ft2_4FGL_J1314.7+2348_daily_bin75.fits sctable="SC_DATA" outfile=/scratch/kocevski/375609/ltcube_258768001_259027201_4FGL_J1314.7+2348_daily_bin75.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/375609/ft2_4FGL_J1314.7+2348_daily_bin75.fits
.....................!
real 13.05
user 12.68
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/375609/ft1_filtered_4FGL_J1314.7+2348_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/375609/ft2_4FGL_J1314.7+2348_daily_bin75.fits sctable="SC_DATA" expcube=/scratch/kocevski/375609/ltcube_258768001_259027201_4FGL_J1314.7+2348_daily_bin75.fits outfile=/scratch/kocevski/375609/expmap_258768001_259027201_4FGL_J1314.7+2348_daily_bin75.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/375609/ltcube_258768001_259027201_4FGL_J1314.7+2348_daily_bin75.fits
.....................!
real 192.27
user 186.93
sys 4.97

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/375609/ft1_filtered_4FGL_J1314.7+2348_daily_bin75.fits scfile=/scratch/kocevski/375609/ft2_4FGL_J1314.7+2348_daily_bin75.fits outfile=/scratch/kocevski/375609/cmap_258768001_259027201_4FGL_J1314.7+2348_daily_bin75.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.55
user 0.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/375609/ft1_filtered_4FGL_J1314.7+2348_daily_bin75.fits scfile=/scratch/kocevski/375609/ft2_4FGL_J1314.7+2348_daily_bin75.fits outfile=/scratch/kocevski/375609/cmap_HighResolution_258768001_259027201_4FGL_J1314.7+2348_daily_bin75.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.57
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/375609/ft1_filtered_4FGL_J1314.7+2348_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/375609/ft2_4FGL_J1314.7+2348_daily_bin75.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/375609/Model_4FGL_J1314.7+2348_daily_bin75.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/375609/ft1_filtered_4FGL_J1314.7+2348_daily_bin75.fits......................!
real 38.30
user 37.01
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/375609/ft1_filtered_4FGL_J1314.7+2348_daily_bin75.fits', '/scratch/kocevski/375609/ft2_4FGL_J1314.7+2348_daily_bin75.fits', expMap='/scratch/kocevski/375609/expmap_258768001_259027201_4FGL_J1314.7+2348_daily_bin75.fits', expCube='/scratch/kocevski/375609/ltcube_258768001_259027201_4FGL_J1314.7+2348_daily_bin75.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/375609/Model_4FGL_J1314.7+2348_daily_bin75.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/375609/ft1_filtered_4FGL_J1314.7+2348_daily_bin75.fits
Spacecraft file(s): /scratch/kocevski/375609/ft2_4FGL_J1314.7+2348_daily_bin75.fits
Exposure map: /scratch/kocevski/375609/expmap_258768001_259027201_4FGL_J1314.7+2348_daily_bin75.fits
Exposure cube: /scratch/kocevski/375609/ltcube_258768001_259027201_4FGL_J1314.7+2348_daily_bin75.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/375609/Model_4FGL_J1314.7+2348_daily_bin75.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 3907.62009714

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .87259E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .70883       1.0000         .10000E-03   10000.    
     3 'norm      '    .10168E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10208E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .32975E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10688E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10552E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10770E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .52962       1.0000         .10000E-03   10000.    
    11 'norm      '    .44169E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    11.247       1.0000         .10000E-03   10000.    
    13 'norm      '    34.315       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .17570E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .12231E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11774E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    15.151       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.2135       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .47603E-01   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4500       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .79877       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=   3907.487     FROM MIGRAD    STATUS=CONVERGED    598 CALLS     2517 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.9870       -.63439E-07** at limit **
   2  norm          .70914        .46112        .18103E-07   -.40597E-03
   3  norm          .10000E-03    4.3174        .50394E-05** at limit **
   4  Prefactor     .10000E-03    4.3120       -.27686E-05** at limit **
   5  Prefactor     .10000E-03    46.561        .51807E-06** at limit **
   6  Prefactor     .10000E-03    2.9050       -.97280E-08** at limit **
   7  norm          .10000E-03    1.9196       -.36302E-07** at limit **
   8  Prefactor     .10000E-03    4.6011       -.24892E-05** at limit **
   9  Prefactor     .10000E-03    20.791        .90279E-05** at limit **
  10  norm          .54039        3.9390       -.46963E-05    .12372E-02
  11  norm          .10000E-03    3.6142       -.52793E-06** at limit **
  12  norm          11.222        9.6393        .10307E-05    .28386E-03
  13  norm          34.430        25.024        .26199E-04    .16962E-03
  14  Prefactor     .10000E-03    2.6564        .69392E-08** at limit **
  15  Prefactor     .10000E-03    23.371       -.45593E-05** at limit **
  16  norm          .10000E-03    3.7052       -.27730E-07** at limit **
  17  Prefactor     .10000E-03    33.576        .28580E-05** at limit **
  18  Prefactor     .10000E-03    29.634       -.10814E-04** at limit **
  19  norm          15.212        10.854       -.22926E-06    .74330E-04
  20  Prefactor     8.1808        18.988        .22309E-05    .21226E-04
  21  Prefactor     .10000E-03    12.245       -.14978E-05** at limit **
  22  Prefactor     .10000E-03    1.7724       -.46117E-07** at limit **
  23  Prefactor     .10098E-03    11.868        .34094E-05** at limit **
  24  Normalizat    1.4494        .23126       -.68615E-06    .29570E-03
  25  Prefactor     .79918        .22983       -.94833E-06    .23455E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.709135
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.540385
  norm       = 0.000100001
  norm       = 11.2222
  norm       = 34.4301
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.2123
  Prefactor  = 8.18078
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100978
  Normalizat = 1.44943
  Prefactor  = 0.79918
 **********
 **   18 **HESSE 
 **********

 FCN=   3907.487     FROM HESSE     STATUS=OK           421 CALLS     2938 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.842        .29707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .70914        .45312        .32803E-04   -1.5540    
   3  norm          .10000E-03    4.4523        .25324E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.3161        .12677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    46.687        .21349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.9089        .10405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.9289        .84574E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.6058        .13095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    20.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .54039        14.351        .23070E-02   -1.5561    
  11  norm          .10000E-03    17.661        .20405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          11.222        8.6423        .11946E-03   -1.5038    
  13  norm          34.430        25.085        .68409E-04   -1.4534    
  14  Prefactor     .10000E-03    2.6989        .99376E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    23.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.7115        .11746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    33.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    29.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          15.212        10.867        .10290E-03   -1.4928    
  20  Prefactor     8.1808        19.003        .13989E-03   -1.5136    
  21  Prefactor     .10000E-03    12.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.7783        .81266E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10098E-03    84.851        .41057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.4494        .27565        .21993E-03   -.79210    
  25  Prefactor     .79918        .27345        .29325E-03   -.99759    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04107e-08
Minuit parameter uncertainties:
  1  5.98318e-05
  2  0.453123
  3  2.79174e-05
  4  1.47851e-06
  5  1.51033e-05
  6  2.82366e-06
  7  9.17128e-07
  8  2.49958e-06
  9  1.03652e-05
  10  5.57052
  11  0.000271629
  12  8.64327
  13  25.093
  14  1.69471e-06
  15  1.06829e-05
  16  2.38822e-05
  17  1.72165e-05
  18  2.76924e-06
  19  10.8689
  20  19.0174
  21  1.18375e-05
  22  2.1069e-07
  23  0.0182433
  24  0.275932
  25  0.273912
Done.

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

Extracting fit parameters...

4FGL J1314.7+2348
   Spectrum: LogParabola
308         norm:  3.443e+01  2.509e+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:  7.992e-01  2.739e-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.449e+00  2.759e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.13
Ra Dec: 198.688 23.812
Photon Index (Fixed Index): 1.90 +/- 0.00
Photon Flux (Fixed Index): 3.28e-08 +/- 2.39e-08
Energy Flux (Fixed Index): 2.55e-05 +/- 1.86e-05

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) = 3906.59329501
delta logL = 0.893710985679

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3906.51250186
delta logL = 0.97450413547

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    23.768       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.0496       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4697       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79068       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=   3906.513     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      213 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          23.768        19.207        .20541E-02   -.24652E-02
   2  alpha         1.0496        .43214        .28881        .32249E-05
   3  Normalizat    1.4697        .22174        .49474E-01    .61593E-04
   4  Prefactor     .79064        .22845        .66640E-01   -.27429E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 23.7675
  alpha      = 1.04956
  Normalizat = 1.46968
  Prefactor  = 0.790635
 **********
 **   18 **HESSE 
 **********

 FCN=   3906.513     FROM HESSE     STATUS=OK            29 CALLS      242 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          23.768        23.634        .82164E-04   -1.4733    
   2  alpha         1.0496        .54452        .12422E-01   -.61895    
   3  Normalizat    1.4697        .26459        .21871E-03   -.78634    
   4  Prefactor     .79064        .27219        .29482E-03   -1.0007    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3525e-08
Minuit parameter uncertainties:
  1  23.643
  2  0.55123
  3  0.264835
  4  0.272658
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/375609': 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) = 3906.51250181
delta logL = 0.974504188833

Extracting fit parameters...

4FGL J1314.7+2348
   Spectrum: LogParabola
308         norm:  2.377e+01  2.364e+01  1.000e-04  1.000e+04 ( 1.000e-13)
309        alpha:  1.050e+00  5.512e-01  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:  7.906e-01  2.727e-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.470e+00  2.648e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.08
Ra Dec: 198.688 23.812
Photon Index (Free Index): 1.05 +/- 0.55
Photon Flux (Free Index): 1.35e-08 +/- 1.21e-08
Energy Flux (Free Index): 8.45e-05 +/- 1.00e-04

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/375609/cmap_HighResolution_258768001_259027201_4FGL_J1314.7+2348_daily_bin75.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.28e-08', energy_flux2='8.45e-05', photon_flux_error='2.39e-08', dlogl='9.75e-01', energy_flux='2.55e-05', photon_flux2='1.35e-08', job_status='DONE', time_completed='2021-09-07 06:22:52.584453', photon_index_error2='0.55', photon_index2='1.05', ts='12.13', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='1.00e-04', EG='1.45', time_epoch_completed='1631020972.58', return_code='0', job_id='375609', GAL2='0.79', EG2='1.47', return_code2='0', energy_flux_error='1.86e-05', photon_flux_error2='1.21e-08', ts2='14.08', photon_index='1.90' WHERE bin_id='75' AND source_name='4FGL J1314.7+2348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 06:22:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0146>
Subject: Job 375609: <4FGL_J1314.7+2348_daily_bin75> in cluster <slac> Done

Job <4FGL_J1314.7+2348_daily_bin75> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 06:10:41 2021
Job was executed on host(s) <bullet0146>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 06:12:00 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:12:00 2021
Terminated at Tue Sep  7 06:22:53 2021
Results reported at Tue Sep  7 06:22:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1314.7+2348_daily_bin75 198.688 23.8124 258768001 259027201 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 :                                   485.28 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             267.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   654 sec.
    Turnaround time :                            732 sec.

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

