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


Performing analysis on: 4FGL_J1314.7+2348_daily_bin1352
RA = 198.688, Dec = 23.8124
tmin = 589766401, tmax = 590025601
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='384524', job_status='RUN', time_executed='2021-09-07 06:43:00.504386', time_epoch_executed='1631022180.5' WHERE source_name='4FGL J1314.7+2348' and cadence='daily' and bin_id='1352'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/384524

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/384524/ft1_4FGL_J1314.7+2348_daily_bin1352.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/384524/ft2_4FGL_J1314.7+2348_daily_bin1352.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/384524/ft1_4FGL_J1314.7+2348_daily_bin1352.fits outfile=/scratch/kocevski/384524/ft1_filteredMKT_4FGL_J1314.7+2348_daily_bin1352.fits ra=198.688 dec=23.8124 rad=12.0 tmin=589766401.0 tmax=590025601.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 5.27
user 5.01
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/384524/ft1_filtered_4FGL_J1314.7+2348_daily_bin1352.fits" evtable="EVENTS" scfile=/scratch/kocevski/384524/ft2_4FGL_J1314.7+2348_daily_bin1352.fits sctable="SC_DATA" outfile=/scratch/kocevski/384524/ltcube_589766401_590025601_4FGL_J1314.7+2348_daily_bin1352.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/384524/ft2_4FGL_J1314.7+2348_daily_bin1352.fits
.....................!
real 13.62
user 13.06
sys 0.46

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/384524/ft1_filtered_4FGL_J1314.7+2348_daily_bin1352.fits evtable="EVENTS" scfile=/scratch/kocevski/384524/ft2_4FGL_J1314.7+2348_daily_bin1352.fits sctable="SC_DATA" expcube=/scratch/kocevski/384524/ltcube_589766401_590025601_4FGL_J1314.7+2348_daily_bin1352.fits outfile=/scratch/kocevski/384524/expmap_589766401_590025601_4FGL_J1314.7+2348_daily_bin1352.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/384524/ltcube_589766401_590025601_4FGL_J1314.7+2348_daily_bin1352.fits
.....................!
real 191.47
user 185.85
sys 5.04

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/384524/ft1_filtered_4FGL_J1314.7+2348_daily_bin1352.fits scfile=/scratch/kocevski/384524/ft2_4FGL_J1314.7+2348_daily_bin1352.fits outfile=/scratch/kocevski/384524/cmap_589766401_590025601_4FGL_J1314.7+2348_daily_bin1352.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/384524/ft1_filtered_4FGL_J1314.7+2348_daily_bin1352.fits scfile=/scratch/kocevski/384524/ft2_4FGL_J1314.7+2348_daily_bin1352.fits outfile=/scratch/kocevski/384524/cmap_HighResolution_589766401_590025601_4FGL_J1314.7+2348_daily_bin1352.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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/384524/ft1_filtered_4FGL_J1314.7+2348_daily_bin1352.fits evtable="EVENTS" scfile=/scratch/kocevski/384524/ft2_4FGL_J1314.7+2348_daily_bin1352.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/384524/Model_4FGL_J1314.7+2348_daily_bin1352.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/384524/ft1_filtered_4FGL_J1314.7+2348_daily_bin1352.fits....................!
real 45.14
user 43.72
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5836       1.0000         .10000E-03   10000.    
     2 'norm      '    .19007       1.0000         .10000E-03   10000.    
     3 'norm      '    .85563       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.332       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.3028       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.0947       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.1270       1.0000         .10000E-03   10000.    
    10 'norm      '    7.9979       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.2793       1.0000         .10000E-03   10000.    
    13 'norm      '    .11127E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .70605       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.7330       1.0000         .10000E-03   10000.    
    16 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    40.389       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.977       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10534E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.8287       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3690       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .73114       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5106.155     FROM MIGRAD    STATUS=CONVERGED    593 CALLS     2988 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5830        5.8627         .0000        .24834E-02
   2  norm          .19002        .31499         .0000        .20261E-02
   3  norm          .85657        4.0619         .0000        .10101E-02
   4  Prefactor     15.331        12.360         .0000       -.17872E-03
   5  Prefactor     .10001E-03    26.189         .0000    ** at limit **
   6  Prefactor     2.3023        6.9922         .0000        .10255E-01
   7  norm          .10000E-03    1.2622         .0000    ** at limit **
   8  Prefactor     9.0948        9.1727         .0000        .20469E-04
   9  Prefactor     9.1264        13.470         .0000       -.42906E-04
  10  norm          7.9976        4.6812         .0000        .15042E-03
  11  norm          .10000E-03    1.9171         .0000    ** at limit **
  12  norm          2.2789        3.3845         .0000        .11588E-03
  13  norm          .10000E-03    80.829         .0000    ** at limit **
  14  Prefactor     .70627        1.9368         .0000        .91406E-03
  15  Prefactor     2.7328        8.3018         .0000        .60470E-02
  16  norm          .10000E-03    7.1260         .0000    ** at limit **
  17  Prefactor     .10000E-03    17.381         .0000    ** at limit **
  18  Prefactor     40.389        45.259         .0000        .21265E-03
  19  norm          .10000E-03    4.2204         .0000    ** at limit **
  20  Prefactor     .10001E-03    26.287         .0000    ** at limit **
  21  Prefactor     11.978        12.279         .0000        .11135E-03
  22  Prefactor     .10000E-03    2.4897         .0000    ** at limit **
  23  Prefactor     4.8286        15.243         .0000        .17277E-02
  24  Normalizat    1.3690        .18869         .0000        .24019E-05
  25  Prefactor     .73113        .19029         .0000        .19590E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.58296
  norm       = 0.190018
  norm       = 0.856571
  Prefactor  = 15.331
  Prefactor  = 0.000100013
  Prefactor  = 2.30227
  norm       = 0.0001
  Prefactor  = 9.09479
  Prefactor  = 9.12641
  norm       = 7.99761
  norm       = 0.0001
  norm       = 2.27889
  norm       = 0.0001
  Prefactor  = 0.706274
  Prefactor  = 2.73276
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.3888
  norm       = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 11.9778
  Prefactor  = 0.0001
  Prefactor  = 4.82862
  Normalizat = 1.36898
  Prefactor  = 0.731126
 **********
 **   18 **HESSE 
 **********

 FCN=   5106.155     FROM HESSE     STATUS=OK           435 CALLS     3423 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5830        5.7887        .82234E-03   -1.5235    
   2  norm          .19002        .29981        .49034E-03   -1.5621    
   3  norm          .85657        3.8782        .26457E-03   -1.5523    
   4  Prefactor     15.331        12.357        .10229E-03   -1.4925    
   5  Prefactor     .10001E-03    26.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.3023        6.9622        .13521E-02   -1.5404    
   7  norm          .10000E-03    1.2664        .78390E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.0948        9.1739        .13290E-03   -1.5105    
   9  Prefactor     9.1264        13.455        .13266E-03   -1.5104    
  10  norm          7.9976        4.6807        .11334E-03   -1.5142    
  11  norm          .10000E-03    1.9415        .19178E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.2789        3.3432        .15467E-03   -1.5406    
  13  norm          .10000E-03    82.818        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .70627        1.5811        .15636E-02   -1.5540    
  15  Prefactor     2.7328        8.2039        .12315E-02   -1.5377    
  16  norm          .10000E-03    7.2351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     40.389        45.212        .63073E-04   -1.4436    
  19  norm          .10000E-03    4.2372        .14334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    26.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.978        12.285        .11575E-03   -1.5016    
  22  Prefactor     .10000E-03    8.3947        .21710E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.8286        15.238        .91536E-03   -1.5268    
  24  Normalizat    1.3690        .21927        .21716E-03   -.81530    
  25  Prefactor     .73113        .22201        .29363E-03   -1.0232    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37771e-09
Minuit parameter uncertainties:
  1  5.78924
  2  0.299815
  3  3.64543
  4  12.3591
  5  0.00116871
  6  6.96468
  7  7.86645e-08
  8  9.17532
  9  13.4595
  10  4.68095
  11  3.87421e-07
  12  3.34349
  13  8.45099e-05
  14  1.5812
  15  8.20723
  16  1.31235e-06
  17  1.6139e-05
  18  45.2508
  19  4.5712e-07
  20  0.00117633
  21  12.2873
  22  1.98697e-06
  23  15.2506
  24  0.219418
  25  0.222277
Done.

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

Extracting fit parameters...

4FGL J1314.7+2348
   Spectrum: LogParabola
308         norm:  1.000e-04  8.451e-05  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.311e-01  2.223e-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.369e+00  2.194e-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: 6.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.74e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/384524/likelihoodResults_589766401_590025601_4FGL_J1314.7+2348_daily_bin1352.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5106.15520993
delta logL = -5.74790929022e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5105.95203783
delta logL = 0.203114617788

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2344       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4904       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3308       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74952       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=   5105.952     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      270 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2344        81.305        .68750E-02    .71750E-03
   2  alpha         3.4905        4.2164        .46238        .37815E-04
   3  Normalizat    1.3308        .39678E-01    .49691E-01    .10247E-05
   4  Prefactor     .74953        .40361E-01    .65602E-01    .16899E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.2344
  alpha      = 3.4905
  Normalizat = 1.33079
  Prefactor  = 0.749532
 **********
 **   18 **HESSE 
 **********

 FCN=   5105.952     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      303 TOTAL
                     EDM=   .54E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2344        273.87        .16427E-03   -1.5409    
   2  alpha         3.4905        3.2496        .16027E-01    .40738    
   3  Normalizat    1.3308        .21186        .21968E-03   -.82652    
   4  Prefactor     .74953        .21522        .29023E-03   -1.0162    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.40292e-07
Minuit parameter uncertainties:
  1  49.7075
  2  11.5443
  3  0.211996
  4  0.215457
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/384524': 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): 102
logL (Free Index) = 5105.95203782
delta logL = 0.203114626967

Extracting fit parameters...

4FGL J1314.7+2348
   Spectrum: LogParabola
308         norm:  2.234e+00  4.971e+01  1.000e-04  1.000e+04 ( 1.000e-13)
309        alpha:  3.491e+00  1.154e+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.495e-01  2.155e-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.331e+00  2.120e-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/384524/cmap_HighResolution_589766401_590025601_4FGL_J1314.7+2348_daily_bin1352.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.74e-05', job_status='DONE', photon_flux_upper_limit='6.08e-08', time_completed='2021-09-07 06:55:11.603473', job_id='384524', GAL2='0.75', fit_tolerance='1e-08', EG2='1.33', EG='1.37', time_epoch_completed='1631022911.6', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='2.03e-01', ts2='0.44', photon_index_error='0.00', photon_index='1.90' WHERE bin_id='1352' AND source_name='4FGL J1314.7+2348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 06:55:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 384524: <4FGL_J1314.7+2348_daily_bin1352> in cluster <slac> Done

Job <4FGL_J1314.7+2348_daily_bin1352> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Tue Sep  7 06:40:21 2021
Job was executed on host(s) <bullet0148>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 06:40:23 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:40:23 2021
Terminated at Tue Sep  7 06:55:12 2021
Results reported at Tue Sep  7 06:55:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1314.7+2348_daily_bin1352 198.688 23.8124 589766401 590025601 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 :                                   640.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            891 sec.

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

