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


Performing analysis on: 4FGL_J1314.7+2348_daily_bin1021
RA = 198.688, Dec = 23.8124
tmin = 503971201, tmax = 504230401
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='381064', job_status='RUN', time_executed='2021-09-07 06:32:53.928057', time_epoch_executed='1631021573.93' WHERE source_name='4FGL J1314.7+2348' and cadence='daily' and bin_id='1021'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/381064

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/381064/ft1_4FGL_J1314.7+2348_daily_bin1021.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/381064/ft2_4FGL_J1314.7+2348_daily_bin1021.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/381064/ft1_4FGL_J1314.7+2348_daily_bin1021.fits outfile=/scratch/kocevski/381064/ft1_filteredMKT_4FGL_J1314.7+2348_daily_bin1021.fits ra=198.688 dec=23.8124 rad=12.0 tmin=503971201.0 tmax=504230401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.62
user 3.85
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/381064/ft1_filtered_4FGL_J1314.7+2348_daily_bin1021.fits" evtable="EVENTS" scfile=/scratch/kocevski/381064/ft2_4FGL_J1314.7+2348_daily_bin1021.fits sctable="SC_DATA" outfile=/scratch/kocevski/381064/ltcube_503971201_504230401_4FGL_J1314.7+2348_daily_bin1021.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/381064/ft2_4FGL_J1314.7+2348_daily_bin1021.fits
.....................!
real 16.99
user 16.51
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/381064/ft1_filtered_4FGL_J1314.7+2348_daily_bin1021.fits evtable="EVENTS" scfile=/scratch/kocevski/381064/ft2_4FGL_J1314.7+2348_daily_bin1021.fits sctable="SC_DATA" expcube=/scratch/kocevski/381064/ltcube_503971201_504230401_4FGL_J1314.7+2348_daily_bin1021.fits outfile=/scratch/kocevski/381064/expmap_503971201_504230401_4FGL_J1314.7+2348_daily_bin1021.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/381064/ltcube_503971201_504230401_4FGL_J1314.7+2348_daily_bin1021.fits
.....................!
real 193.84
user 188.20
sys 5.09

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/381064/ft1_filtered_4FGL_J1314.7+2348_daily_bin1021.fits scfile=/scratch/kocevski/381064/ft2_4FGL_J1314.7+2348_daily_bin1021.fits outfile=/scratch/kocevski/381064/cmap_503971201_504230401_4FGL_J1314.7+2348_daily_bin1021.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 1.27
user 0.40
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/381064/ft1_filtered_4FGL_J1314.7+2348_daily_bin1021.fits scfile=/scratch/kocevski/381064/ft2_4FGL_J1314.7+2348_daily_bin1021.fits outfile=/scratch/kocevski/381064/cmap_HighResolution_503971201_504230401_4FGL_J1314.7+2348_daily_bin1021.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 1.03
user 0.41
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/381064/ft1_filtered_4FGL_J1314.7+2348_daily_bin1021.fits evtable="EVENTS" scfile=/scratch/kocevski/381064/ft2_4FGL_J1314.7+2348_daily_bin1021.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/381064/Model_4FGL_J1314.7+2348_daily_bin1021.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/381064/ft1_filtered_4FGL_J1314.7+2348_daily_bin1021.fits.....................!
real 52.37
user 47.18
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22852       1.0000         .10000E-03   10000.    
     2 'norm      '    .46844       1.0000         .10000E-03   10000.    
     3 'norm      '    6.1613       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.7855       1.0000         .10000E-03   10000.    
     7 'norm      '    .10093E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10016E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.1060       1.0000         .10000E-03   10000.    
    10 'norm      '    1.2507       1.0000         .10000E-03   10000.    
    11 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.4295       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .91246E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    110.52       1.0000         .10000E-03   10000.    
    19 'norm      '    1.7296       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .42627       1.0000         .10000E-03   10000.    
    23 'Prefactor '    18.220       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2056       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .83086       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=   5510.332     FROM MIGRAD    STATUS=CONVERGED    605 CALLS     2982 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .23967        7.6102       -.22404E-05    .53729E-04
   2  norm          .46844        .28005       -.22160E-07    .43849E-03
   3  norm          6.1570        5.2468        .50455E-07    .21682E-03
   4  Prefactor     .10000E-03    2.9821       -.61740E-07** at limit **
   5  Prefactor     .10000E-03    80.375       -.11902E-05** at limit **
   6  Prefactor     7.7852        6.6735       -.67298E-07    .20075E-03
   7  norm          .10001E-03    11.411        .60990E-05** at limit **
   8  Prefactor     .10006E-03    27.048        .88939E-05** at limit **
   9  Prefactor     2.1552        74.943       -.23280E-05   -.45986E-04
  10  norm          1.2512        3.9775       -.15336E-05    .26783E-03
  11  norm          .10000E-03    1.9198       -.13704E-06** at limit **
  12  norm          .10000E-03    2.4135       -.71000E-07** at limit **
  13  norm          .10000E-03    8.6443        .15898E-06** at limit **
  14  Prefactor     3.4291        3.4088       -.43558E-07    .10141E-03
  15  Prefactor     .10000E-03    5.4645       -.14740E-07** at limit **
  16  norm          .12514        6.2749        .29234E-05   -.19810E-03
  17  Prefactor     .10000E-03    12.902        .86841E-07** at limit **
  18  Prefactor     110.52        82.106        .95083E-06   -.12333E-04
  19  norm          1.7174        6.1576        .28867E-06    .21353E-03
  20  Prefactor     .10000E-03    4.7812       -.17996E-06** at limit **
  21  Prefactor     .10000E-03    20.307        .17547E-05** at limit **
  22  Prefactor     .43533        2.8444       -.18210E-05   -.22257E-03
  23  Prefactor     18.223        17.369       -.11505E-05    .83020E-04
  24  Normalizat    1.2057        .19055        .14939E-05    .18788E-03
  25  Prefactor     .83067        .17807        .22499E-05    .48224E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.239675
  norm       = 0.468441
  norm       = 6.15704
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.78522
  norm       = 0.000100006
  Prefactor  = 0.000100055
  Prefactor  = 2.15518
  norm       = 1.25117
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.42907
  Prefactor  = 0.0001
  norm       = 0.125136
  Prefactor  = 0.0001
  Prefactor  = 110.52
  norm       = 1.71742
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.435327
  Prefactor  = 18.223
  Normalizat = 1.20571
  Prefactor  = 0.830669
 **********
 **   18 **HESSE 
 **********

 FCN=   5510.332     FROM HESSE     STATUS=OK           431 CALLS     3413 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .23967        45.224        .34280E-02   -1.5610    
   2  norm          .46844        .27906        .29283E-04   -1.5571    
   3  norm          6.1570        5.5495        .13711E-03   -1.5212    
   4  Prefactor     .10000E-03    2.9857        .12520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    80.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.7852        6.6628        .14371E-03   -1.5150    
   7  norm          .10001E-03    18.270        .31758E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10006E-03    54.707        .43904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.1552        73.380        .28433E-03   -1.5414    
  10  norm          1.2512        3.9582        .24947E-03   -1.5484    
  11  norm          .10000E-03    1.9696        .20080E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.4304        .11261E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    8.6504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.4291        3.3984        .12793E-03   -1.5338    
  15  Prefactor     .10000E-03    5.4733        .16942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .12514        28.084        .28948E-02   -1.5637    
  17  Prefactor     .10000E-03    12.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     110.52        81.899        .38260E-04   -1.3602    
  19  norm          1.7174        6.2245        .31923E-03   -1.5446    
  20  Prefactor     .10000E-03    4.7880        .15856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    20.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .43533        8.5446        .22617E-02   -1.5576    
  23  Prefactor     18.223        17.395        .93831E-04   -1.4854    
  24  Normalizat    1.2057        .22102        .22616E-03   -.86426    
  25  Prefactor     .83067        .21222        .26562E-03   -.98608    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.88435e-09
Minuit parameter uncertainties:
  1  6.58819
  2  0.279057
  3  5.54993
  4  5.63754e-06
  5  6.8897e-05
  6  6.66339
  7  0.000671458
  8  0.0034738
  9  25.1843
  10  3.95903
  11  3.18918e-06
  12  1.57293e-06
  13  2.81658e-06
  14  3.39855
  15  1.99659e-05
  16  3.74957
  17  3.69601e-05
  18  81.9833
  19  6.22686
  20  1.54484e-05
  21  0.000279629
  22  3.8575
  23  17.4001
  24  0.221196
  25  0.212427
Done.

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

Extracting fit parameters...

4FGL J1314.7+2348
   Spectrum: LogParabola
308         norm:  1.000e-04  2.817e-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:  8.307e-01  2.124e-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.206e+00  2.212e-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.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.04e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/381064/likelihoodResults_503971201_504230401_4FGL_J1314.7+2348_daily_bin1021.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) = 5510.33211615
delta logL = -0.000549851571122

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5510.33156629
delta logL = 6.46650732961e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9022       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2057       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83067       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=   5510.331     FROM MIGRAD    STATUS=FAILED       167 CALLS      311 TOTAL
                     EDM=   .50E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .32289E-01    30.157        .22149E-01   -.90776E-03
   2  alpha         4.1164        3.2675        .17099        .93544E-04
   3  Normalizat    1.2034        .27962E-01    .22616E-03   -.37299E-04
   4  Prefactor     .83200        .27948E-01    .26562E-03   -.36723E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5510.331     FROM SIMPLEX   STATUS=UNCHANGED     79 CALLS      390 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .32289E-01    30.157        .37582E-03   -.90776E-03
   2  alpha         4.1164        3.2675        .22271E-01    .93544E-04
   3  Normalizat    1.2034        .27962E-01    .11217E-03   -.37299E-04
   4  Prefactor     .83200        .27948E-01    .34381E-04   -.36723E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5510.331     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      436 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .32289E-01    7.6195         .0000       -.36325E-02
   2  alpha         4.1164        2.9769         .0000        .16257E-06
   3  Normalizat    1.2034        .22037         .0000       -.37450E-04
   4  Prefactor     .83200        .21472         .0000       -.36809E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0322886
  alpha      = 4.1164
  Normalizat = 1.20344
  Prefactor  = 0.832
 **********
 **   18 **HESSE 
 **********

 FCN=   5510.331     FROM HESSE     STATUS=OK            27 CALLS      463 TOTAL
                     EDM=   .81E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .32289E-01    9.0325        .26773E-03   -1.5744    
   2  alpha         4.1164        2.7392        .13679E-02    .70307    
   3  Normalizat    1.2034        .22313        .18093E-05   -.86497    
   4  Prefactor     .83200        .21599        .21250E-05   -.98559    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.09837e-11
Minuit parameter uncertainties:
  1  1.07857
  2  8.23364
  3  0.223311
  4  0.216208
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/381064': 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) = 5510.33103591
delta logL = 0.000530380068994

Extracting fit parameters...

4FGL J1314.7+2348
   Spectrum: LogParabola
308         norm:  3.229e-02  1.079e+00  1.000e-04  1.000e+04 ( 1.000e-13)
309        alpha:  4.116e+00  8.234e+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.320e-01  2.162e-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.203e+00  2.233e-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/381064/cmap_HighResolution_503971201_504230401_4FGL_J1314.7+2348_daily_bin1021.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.04e-05', job_status='DONE', photon_flux_upper_limit='3.91e-08', time_completed='2021-09-07 06:44:08.771125', job_id='381064', GAL2='0.83', fit_tolerance='1e-08', EG2='1.20', EG='1.21', time_epoch_completed='1631022248.77', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='5.30e-04', ts2='0.00', photon_index_error='0.00', photon_index='1.90' WHERE bin_id='1021' AND source_name='4FGL J1314.7+2348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 06:44:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0187>
Subject: Job 381064: <4FGL_J1314.7+2348_daily_bin1021> in cluster <slac> Done

Job <4FGL_J1314.7+2348_daily_bin1021> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Tue Sep  7 06:30:27 2021
Job was executed on host(s) <bullet0187>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 06:32:36 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:32:36 2021
Terminated at Tue Sep  7 06:44:09 2021
Results reported at Tue Sep  7 06:44:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1314.7+2348_daily_bin1021 198.688 23.8124 503971201 504230401 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 :                                   664.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   693 sec.
    Turnaround time :                            822 sec.

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

