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


Performing analysis on: 4FGL_J1314.7+2348_daily_bin721
RA = 198.688, Dec = 23.8124
tmin = 426211201, tmax = 426470401
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='379847', job_status='RUN', time_executed='2021-09-07 06:27:43.711799', time_epoch_executed='1631021263.71' WHERE source_name='4FGL J1314.7+2348' and cadence='daily' and bin_id='721'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/379847

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/379847/ft1_4FGL_J1314.7+2348_daily_bin721.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/379847/ft2_4FGL_J1314.7+2348_daily_bin721.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/379847/ft1_4FGL_J1314.7+2348_daily_bin721.fits outfile=/scratch/kocevski/379847/ft1_filteredMKT_4FGL_J1314.7+2348_daily_bin721.fits ra=198.688 dec=23.8124 rad=12.0 tmin=426211201.0 tmax=426470401.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.61
user 3.36
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/379847/ft1_filtered_4FGL_J1314.7+2348_daily_bin721.fits evtable="EVENTS" scfile=/scratch/kocevski/379847/ft2_4FGL_J1314.7+2348_daily_bin721.fits sctable="SC_DATA" expcube=/scratch/kocevski/379847/ltcube_426211201_426470401_4FGL_J1314.7+2348_daily_bin721.fits outfile=/scratch/kocevski/379847/expmap_426211201_426470401_4FGL_J1314.7+2348_daily_bin721.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/379847/ltcube_426211201_426470401_4FGL_J1314.7+2348_daily_bin721.fits
.....................!
real 193.93
user 187.73
sys 4.48

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/379847/ft1_filtered_4FGL_J1314.7+2348_daily_bin721.fits scfile=/scratch/kocevski/379847/ft2_4FGL_J1314.7+2348_daily_bin721.fits outfile=/scratch/kocevski/379847/cmap_426211201_426470401_4FGL_J1314.7+2348_daily_bin721.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/379847/ft1_filtered_4FGL_J1314.7+2348_daily_bin721.fits scfile=/scratch/kocevski/379847/ft2_4FGL_J1314.7+2348_daily_bin721.fits outfile=/scratch/kocevski/379847/cmap_HighResolution_426211201_426470401_4FGL_J1314.7+2348_daily_bin721.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/379847/ft1_filtered_4FGL_J1314.7+2348_daily_bin721.fits evtable="EVENTS" scfile=/scratch/kocevski/379847/ft2_4FGL_J1314.7+2348_daily_bin721.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/379847/Model_4FGL_J1314.7+2348_daily_bin721.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/379847/ft1_filtered_4FGL_J1314.7+2348_daily_bin721.fits.....................!
real 52.69
user 51.11
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14027E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.4739       1.0000         .10000E-03   10000.    
     3 'norm      '    6.7492       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .14240E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .20302E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.3888       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13285E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.691       1.0000         .10000E-03   10000.    
    10 'norm      '    1.7187       1.0000         .10000E-03   10000.    
    11 'norm      '    .14218E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    26.322       1.0000         .10000E-03   10000.    
    13 'norm      '    8.2043       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.8003       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .24238E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    7.4057       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10828E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10418E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    .12152E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.9527       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .17235E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .34049E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.0149       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0609       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .86014       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=   5941.817     FROM MIGRAD    STATUS=CONVERGED    637 CALLS     2576 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.8761        .20395E-07** at limit **
   2  norm          3.4745        .61223       -.95662E-08    .54072E-03
   3  norm          6.7692        4.5235       -.20926E-08    .17232E-04
   4  Prefactor     .10000E-03    8.5356       -.11505E-06** at limit **
   5  Prefactor     .10000E-03    29.440       -.42711E-06** at limit **
   6  Prefactor     4.3981        6.6776        .23512E-06    .25103E-04
   7  norm          .10000E-03    1.4210       -.14150E-06** at limit **
   8  Prefactor     .11306E-03    18.610       -.35045E-05** at limit **
   9  Prefactor     15.774        28.046       -.12797E-05   -.55760E-04
  10  norm          1.7199        1.8979       -.26742E-07    .59664E-04
  11  norm          .10000E-03    2.9569       -.17496E-05** at limit **
  12  norm          26.357        9.0904        .13764E-05    .96386E-03
  13  norm          8.1968        12.632        .23391E-06    .33957E-04
  14  Prefactor     3.7974        5.0175        .10074E-05    .41313E-03
  15  Prefactor     .10000E-03    66.354       -.14185E-05** at limit **
  16  norm          7.4325        6.4382       -.24307E-06   -.12734E-03
  17  Prefactor     .10000E-03    13.587        .37087E-08** at limit **
  18  Prefactor     .10000E-03    42.222        .23290E-05** at limit **
  19  norm          .10000E-03    7.2410       -.19691E-06** at limit **
  20  Prefactor     1.9304        12.853        .76797E-06   -.18017E-04
  21  Prefactor     .10000E-03    10.360       -.33154E-06** at limit **
  22  Prefactor     .14341        3.1451       -.49987E-06    .27762E-03
  23  Prefactor     4.0454        11.495        .11927E-05    .92910E-04
  24  Normalizat    1.0596        .19814        .17968E-05    .67125E-03
  25  Prefactor     .86082        .18560       -.18125E-05    .68007E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.47449
  norm       = 6.76925
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.3981
  norm       = 0.0001
  Prefactor  = 0.000113065
  Prefactor  = 15.7741
  norm       = 1.71993
  norm       = 0.000100001
  norm       = 26.3569
  norm       = 8.19675
  Prefactor  = 3.79739
  Prefactor  = 0.000100003
  norm       = 7.43254
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 1.93037
  Prefactor  = 0.0001
  Prefactor  = 0.143414
  Prefactor  = 4.04544
  Normalizat = 1.05957
  Prefactor  = 0.860819
 **********
 **   18 **HESSE 
 **********

 FCN=   5941.817     FROM HESSE     STATUS=OK           437 CALLS     3013 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.8943        .14814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.4745        .61452        .24254E-04   -1.5335    
   3  norm          6.7692        4.5240        .12965E-03   -1.5188    
   4  Prefactor     .10000E-03    8.7996        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    29.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.3981        6.6610        .19225E-03   -1.5289    
   7  norm          .10000E-03    1.4233        .89689E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .11306E-03    20.660        .77405E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.774        28.247        .10111E-03   -1.4913    
  10  norm          1.7199        1.9013        .10851E-03   -1.5446    
  11  norm          .10000E-03    10.145        .23349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          26.357        9.2634        .78082E-04   -1.4681    
  13  norm          8.1968        12.621        .13997E-03   -1.5135    
  14  Prefactor     3.7974        5.0208        .18264E-03   -1.5318    
  15  Prefactor     .10000E-03    69.023        .36574E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.4325        6.4571        .14738E-03   -1.5163    
  17  Prefactor     .10000E-03    13.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    42.213        .20735E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    7.3335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.9304        12.796        .29694E-03   -1.5430    
  21  Prefactor     .10000E-03    10.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .14341        56.394        .25219E-02   -1.5632    
  23  Prefactor     4.0454        11.413        .20126E-03   -1.5306    
  24  Normalizat    1.0596        .23481        .24566E-03   -.91061    
  25  Prefactor     .86082        .21411        .26730E-03   -.97524    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.66143e-09
Minuit parameter uncertainties:
  1  9.0331e-08
  2  0.614517
  3  4.52427
  4  1.02887e-05
  5  5.71938e-05
  6  6.66209
  7  2.80566e-06
  8  0.0328695
  9  28.2711
  10  1.90138
  11  0.00017401
  12  9.26393
  13  12.6255
  14  5.02136
  15  0.00090127
  16  6.45768
  17  1.92998e-06
  18  0.000479702
  19  1.84562e-05
  20  9.94296
  21  3.91872e-05
  22  5.69119
  23  11.4187
  24  0.235039
  25  0.214317
Done.

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

Extracting fit parameters...

4FGL J1314.7+2348
   Spectrum: LogParabola
308         norm:  8.197e+00  1.263e+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:  8.608e-01  2.143e-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.060e+00  2.350e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/379847/likelihoodResults_426211201_426470401_4FGL_J1314.7+2348_daily_bin721.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) = 5941.81364635
delta logL = 0.00304007650811

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5941.81364041
delta logL = 0.00304601397238

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.1967       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9785       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0588       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86108       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=   5941.814     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      181 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.0444        12.985        .35009E-02    .57555E-03
   2  alpha         1.9799        1.0639        .42344E-01    .15096E-03
   3  Normalizat    1.0588        .18023        .40002E-01    .70230E-05
   4  Prefactor     .86115        .17946        .44507E-01    .11771E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.04445
  alpha      = 1.97986
  Normalizat = 1.05884
  Prefactor  = 0.861145
 **********
 **   18 **HESSE 
 **********

 FCN=   5941.814     FROM HESSE     STATUS=OK            31 CALLS      212 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.0444        12.593        .70017E-03   -1.5141    
   2  alpha         1.9799        1.0360        .84688E-02   -.20959    
   3  Normalizat    1.0588        .20905        .24573E-03   -.91084    
   4  Prefactor     .86115        .20810        .26725E-03   -.97512    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77497e-12
Minuit parameter uncertainties:
  1  12.5974
  2  1.06982
  3  0.209217
  4  0.208287
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/379847': 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) = 5941.81356617
delta logL = 0.00312025526455

Extracting fit parameters...

4FGL J1314.7+2348
   Spectrum: LogParabola
308         norm:  8.044e+00  1.260e+01  1.000e-04  1.000e+04 ( 1.000e-13)
309        alpha:  1.980e+00  1.070e+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:  8.611e-01  2.083e-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.059e+00  2.092e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.74
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/379847/cmap_HighResolution_426211201_426470401_4FGL_J1314.7+2348_daily_bin721.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.66e-05', job_status='DONE', photon_flux_upper_limit='4.70e-08', time_completed='2021-09-07 06:38:45.041190', job_id='379847', GAL2='0.86', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1631021925.04', return_code2='0', ts='0.74', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='3.12e-03', ts2='0.75', photon_index_error='0.00', photon_index='1.90' WHERE bin_id='721' AND source_name='4FGL J1314.7+2348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 06:38:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 379847: <4FGL_J1314.7+2348_daily_bin721> in cluster <slac> Done

Job <4FGL_J1314.7+2348_daily_bin721> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Tue Sep  7 06:25:36 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 06:27:35 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:27:35 2021
Terminated at Tue Sep  7 06:38:45 2021
Results reported at Tue Sep  7 06:38:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1314.7+2348_daily_bin721 198.688 23.8124 426211201 426470401 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 :                                   656.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             351.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   670 sec.
    Turnaround time :                            789 sec.

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

