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


Performing analysis on: 4FGL_J1514.8+4448_daily_bin2
RA = 228.719, Dec = 44.8105
tmin = 239846401, tmax = 240105601
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='360344', job_status='RUN', time_executed='2021-09-11 17:43:18.812615', time_epoch_executed='1631407398.81' WHERE source_name='4FGL J1514.8+4448' and cadence='daily' and bin_id='2'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/360344

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/360344/ft1_4FGL_J1514.8+4448_daily_bin2.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/360344/ft2_4FGL_J1514.8+4448_daily_bin2.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/360344/ft1_4FGL_J1514.8+4448_daily_bin2.fits outfile=/scratch/kocevski/360344/ft1_filteredMKT_4FGL_J1514.8+4448_daily_bin2.fits ra=228.719 dec=44.8105 rad=12.0 tmin=239846401.0 tmax=240105601.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.44
user 1.25
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/360344/ft2_4FGL_J1514.8+4448_daily_bin2.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/360344/ft2_4FGL_J1514.8+4448_daily_bin2.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/360344/ft1_filteredMKT_4FGL_J1514.8+4448_daily_bin2.fits evtable="EVENTS" outfile="/scratch/kocevski/360344/ft1_filtered_4FGL_J1514.8+4448_daily_bin2.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.48
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/360344/ft1_filtered_4FGL_J1514.8+4448_daily_bin2.fits" evtable="EVENTS" scfile=/scratch/kocevski/360344/ft2_4FGL_J1514.8+4448_daily_bin2.fits sctable="SC_DATA" outfile=/scratch/kocevski/360344/ltcube_239846401_240105601_4FGL_J1514.8+4448_daily_bin2.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/360344/ft2_4FGL_J1514.8+4448_daily_bin2.fits
.....................!
real 12.31
user 11.98
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/360344/ft1_filtered_4FGL_J1514.8+4448_daily_bin2.fits evtable="EVENTS" scfile=/scratch/kocevski/360344/ft2_4FGL_J1514.8+4448_daily_bin2.fits sctable="SC_DATA" expcube=/scratch/kocevski/360344/ltcube_239846401_240105601_4FGL_J1514.8+4448_daily_bin2.fits outfile=/scratch/kocevski/360344/expmap_239846401_240105601_4FGL_J1514.8+4448_daily_bin2.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/360344/ltcube_239846401_240105601_4FGL_J1514.8+4448_daily_bin2.fits
.....................!
real 190.55
user 185.32
sys 4.87

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 198 point sources and 0 extended sources

Setting source of interest to:
4FGL J1514.8+4448 @ 228.719 44.8105

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/360344/ft1_filtered_4FGL_J1514.8+4448_daily_bin2.fits scfile=/scratch/kocevski/360344/ft2_4FGL_J1514.8+4448_daily_bin2.fits outfile=/scratch/kocevski/360344/cmap_239846401_240105601_4FGL_J1514.8+4448_daily_bin2.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=228.719 yref=44.8105 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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/360344/ft1_filtered_4FGL_J1514.8+4448_daily_bin2.fits scfile=/scratch/kocevski/360344/ft2_4FGL_J1514.8+4448_daily_bin2.fits outfile=/scratch/kocevski/360344/cmap_HighResolution_239846401_240105601_4FGL_J1514.8+4448_daily_bin2.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=228.719 yref=44.8105 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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/360344/ft1_filtered_4FGL_J1514.8+4448_daily_bin2.fits evtable="EVENTS" scfile=/scratch/kocevski/360344/ft2_4FGL_J1514.8+4448_daily_bin2.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/360344/Model_4FGL_J1514.8+4448_daily_bin2.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/360344/ft1_filtered_4FGL_J1514.8+4448_daily_bin2.fits.....................!
real 40.38
user 39.01
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/360344/ft1_filtered_4FGL_J1514.8+4448_daily_bin2.fits', '/scratch/kocevski/360344/ft2_4FGL_J1514.8+4448_daily_bin2.fits', expMap='/scratch/kocevski/360344/expmap_239846401_240105601_4FGL_J1514.8+4448_daily_bin2.fits', expCube='/scratch/kocevski/360344/ltcube_239846401_240105601_4FGL_J1514.8+4448_daily_bin2.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/360344/Model_4FGL_J1514.8+4448_daily_bin2.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1514.8+4448'

4FGL J1514.8+4448
   Spectrum: LogParabola
286         norm:  1.475e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        alpha:  2.210e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
288         beta:  1.666e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
289           Eb:  8.626e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/360344/ft1_filtered_4FGL_J1514.8+4448_daily_bin2.fits
Spacecraft file(s): /scratch/kocevski/360344/ft2_4FGL_J1514.8+4448_daily_bin2.fits
Exposure map: /scratch/kocevski/360344/expmap_239846401_240105601_4FGL_J1514.8+4448_daily_bin2.fits
Exposure cube: /scratch/kocevski/360344/ltcube_239846401_240105601_4FGL_J1514.8+4448_daily_bin2.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/360344/Model_4FGL_J1514.8+4448_daily_bin2.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) = 4667.24753457

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.1917       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.410       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.6178       1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.014       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.1015       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.546       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.4170       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.4756       1.0000         .10000E-03   10000.    
    18 'norm      '    .93801       1.0000         .10000E-03   10000.    
    19 'norm      '    3.4874       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    56.673       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.078       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.863       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    10.516       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .13238E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.4443       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .21265       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4667.243     FROM MIGRAD    STATUS=CONVERGED    823 CALLS     4136 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.133       -.22658E-06** at limit **
   2  Prefactor     4.1901        5.0754        .57810E-07   -.13025E-03
   3  Prefactor     12.407        17.969       -.95225E-08    .49649E-04
   4  Prefactor     .10000E-03    4.2180       -.20590E-07** at limit **
   5  Prefactor     .10001E-03    43.560       -.57200E-06** at limit **
   6  Prefactor     .10000E-03    36.545        .11767E-06** at limit **
   7  Prefactor     4.6151        19.075       -.31156E-06    .32184E-04
   8  norm          .10000E-03    6.2031       -.93692E-07** at limit **
   9  Prefactor     .10000E-03    36.048        .13670E-06** at limit **
  10  Prefactor     11.013        10.798        .24458E-06    .42088E-04
  11  norm          .10000E-03    3.2875       -.90195E-09** at limit **
  12  Prefactor     .10000E-03    5.0529       -.22231E-07** at limit **
  13  Prefactor     .10000E-03    66.871        .13519E-04** at limit **
  14  norm          4.1008        1.9776        .15940E-06    .32680E-03
  15  Prefactor     12.543        9.7933       -.12341E-06    .15977E-03
  16  Prefactor     6.4139        13.034       -.21000E-05    .73193E-04
  17  Prefactor     5.4727        5.8330       -.76986E-06    .10744E-03
  18  norm          .93801        1.9575        .11492E-06    .31224E-03
  19  norm          3.4867        2.9657        .73603E-07    .15281E-03
  20  Prefactor     .10000E-03    2.4905       -.27568E-07** at limit **
  21  Prefactor     56.650        67.292       -.37556E-06    .18932E-03
  22  Prefactor     10.074        13.188        .12851E-07    .76322E-04
  23  Prefactor     10.858        10.675       -.31437E-08    .15878E-03
  24  Prefactor     .10000E-03    10.477       -.15563E-08** at limit **
  25  norm          .10000E-03    8.1863        .15261E-07** at limit **
  26  Prefactor     .10000E-03    12.086       -.27131E-07** at limit **
  27  Prefactor     .10000E-03    23.820        .22242E-07** at limit **
  28  Prefactor     10.509        7.7677        .50521E-06    .10165E-02
  29  Prefactor     .10015E-03    69.096       -.14195E-04** at limit **
  30  Normalizat    1.4440        .24176        .37099E-05    .33302E-03
  31  Prefactor     .21291        .24175       -.75417E-05    .27192E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 4.19005
  Prefactor  = 12.4075
  Prefactor  = 0.0001
  Prefactor  = 0.000100015
  Prefactor  = 0.000100002
  Prefactor  = 4.61511
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 11.0127
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 4.10082
  Prefactor  = 12.5427
  Prefactor  = 6.4139
  Prefactor  = 5.47275
  norm       = 0.938015
  norm       = 3.4867
  Prefactor  = 0.0001
  Prefactor  = 56.6498
  Prefactor  = 10.0742
  Prefactor  = 10.8584
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.5086
  Prefactor  = 0.000100151
  Normalizat = 1.44401
  Prefactor  = 0.212905
 **********
 **   18 **HESSE 
 **********

 FCN=   4667.243     FROM HESSE     STATUS=OK           624 CALLS     4760 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.1901        5.0644        .16332E-03   -1.5299    
   3  Prefactor     12.407        17.976        .11371E-03   -1.5003    
   4  Prefactor     .10000E-03    4.2187        .13704E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    43.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    36.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.6151        19.078        .18730E-03   -1.5278    
   8  norm          .10000E-03    6.4474        .33223E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    36.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.013        10.765        .12072E-03   -1.5044    
  11  norm          .10000E-03    3.2888        .12098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.0594        .14998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    85.088        .50043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.1008        1.9457        .63273E-04   -1.5303    
  15  Prefactor     12.543        9.5236        .11309E-03   -1.5000    
  16  Prefactor     6.4139        12.953        .79221E-03   -1.5201    
  17  Prefactor     5.4727        5.7850        .81401E-03   -1.5240    
  18  norm          .93801        1.8489        .11580E-03   -1.5514    
  19  norm          3.4867        2.9610        .10457E-03   -1.5334    
  20  Prefactor     .10000E-03    2.4928        .10526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     56.650        66.180        .53287E-04   -1.4201    
  22  Prefactor     10.074        13.174        .12622E-03   -1.5073    
  23  Prefactor     10.858        10.683        .12156E-03   -1.5049    
  24  Prefactor     .10000E-03    10.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    8.2163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    12.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    23.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     10.509        7.3252        .61777E-03   -1.5060    
  29  Prefactor     .10015E-03    171.02        .59311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.4440        .23024        .18415E-03   -.79364    
  31  Prefactor     .21291        .22473        .45305E-03   -1.2779    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31681e-09
Minuit parameter uncertainties:
  1  0.000243259
  2  5.06491
  3  17.9842
  4  2.8653e-06
  5  0.00160303
  6  0.00046864
  7  18.7767
  8  1.66866e-05
  9  0.000619969
  10  10.7674
  11  2.57301e-07
  12  4.16548e-06
  13  0.000882238
  14  1.94575
  15  9.52474
  16  12.9583
  17  5.78559
  18  1.84906
  19  2.96108
  20  2.90201e-06
  21  66.2656
  22  13.1775
  23  10.6844
  24  3.02764e-06
  25  1.36e-05
  26  3.42057e-05
  27  0.000215699
  28  7.3258
  29  0.0101824
  30  0.230405
  31  0.225645
Done.

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

Extracting fit parameters...

4FGL J1514.8+4448
   Spectrum: LogParabola
286         norm:  3.487e+00  2.961e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        alpha:  2.210e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
288         beta:  1.666e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
289           Eb:  8.626e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
633    Prefactor:  2.129e-01  2.256e-01  0.000e+00  1.000e+01 ( 1.000e+00)
634        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
635        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
632   Normalization:  1.444e+00  2.304e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.79
Ra Dec: 228.719 44.810
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 2.31e-08 +/- 1.97e-08
Energy Flux (Fixed Index): 9.75e-06 +/- 8.28e-06

TS (Fixed Index): 3.79
Ra Dec: 228.719 44.810
Photon Flux Upper Limit: 7.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.19e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/360344/likelihoodResults_239846401_240105601_4FGL_J1514.8+4448_daily_bin2.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) = 4666.88165643
delta logL = 0.360924125694

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4666.88099099
delta logL = 0.361589567503

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4918       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5478       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4527       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .20996       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4666.881     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      198 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5379        3.5216        .54094E-02   -.70511E-03
   2  alpha         1.5527        .69910        .45760       -.42545E-04
   3  Normalizat    1.4528        .25968        .30515E-01   -.97839E-03
   4  Prefactor     .20975        .26201        .10316       -.23768E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.53788
  alpha      = 1.55273
  Normalizat = 1.45276
  Prefactor  = 0.209753
 **********
 **   18 **HESSE 
 **********

 FCN=   4666.881     FROM HESSE     STATUS=OK            31 CALLS      229 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5379        3.4086        .11117E-03   -1.5332    
   2  alpha         1.5527        .76672        .18226E-01   -.38862    
   3  Normalizat    1.4528        .22160        .18372E-03   -.79115    
   4  Prefactor     .20975        .22388        .45634E-03   -1.2801    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10332e-09
Minuit parameter uncertainties:
  1  3.40874
  2  0.781494
  3  0.221743
  4  0.224805
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/360344': 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) = 4666.88090136
delta logL = 0.361679192049

Extracting fit parameters...

4FGL J1514.8+4448
   Spectrum: LogParabola
286         norm:  3.538e+00  3.409e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        alpha:  1.553e+00  7.815e-01  0.000e+00  5.000e+00 ( 1.000e+00)
288         beta:  1.666e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
289           Eb:  8.626e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
633    Prefactor:  2.098e-01  2.248e-01  0.000e+00  1.000e+01 ( 1.000e+00)
634        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
635        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
632   Normalization:  1.453e+00  2.217e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.52
Ra Dec: 228.719 44.810
Photon Index (Free Index): 1.55 +/- 0.78
Photon Flux (Free Index): 1.28e-08 +/- 1.56e-08
Energy Flux (Free Index): 1.47e-05 +/- 1.64e-05

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/360344/cmap_HighResolution_239846401_240105601_4FGL_J1514.8+4448_daily_bin2.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.19e-05', comment='SUCCESS', photon_flux='2.31e-08', energy_flux2='1.47e-05', photon_flux_error='1.97e-08', dlogl='3.62e-01', energy_flux='9.75e-06', photon_flux2='1.28e-08', job_status='DONE', time_completed='2021-09-11 17:56:01.015468', photon_index_error2='0.78', photon_index2='1.55', ts='3.79', fit_tolerance='1e-08', GAL='0.21', photon_index_error='0.00', photon_flux_upper_limit='7.57e-08', energy_flux_error2='1.64e-05', EG='1.44', time_epoch_completed='1631408161.02', return_code='0', job_id='360344', GAL2='0.21', EG2='1.45', return_code2='0', energy_flux_error='8.28e-06', photon_flux_error2='1.56e-08', ts2='4.52', photon_index='2.21' WHERE bin_id='2' AND source_name='4FGL J1514.8+4448' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 17:56:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 360344: <4FGL_J1514.8+4448_daily_bin2> in cluster <slac> Done

Job <4FGL_J1514.8+4448_daily_bin2> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 11 17:41:07 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 17:41:08 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 17:41:08 2021
Terminated at Sat Sep 11 17:56:04 2021
Results reported at Sat Sep 11 17:56:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1514.8+4448_daily_bin2 228.719 44.8105 239846401 240105601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1514.8+4448 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   761.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            897 sec.

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

