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


Performing analysis on: 4FGL_J1314.7+2348_daily_bin88
RA = 198.688, Dec = 23.8124
tmin = 262137601, tmax = 262396801
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='375628', job_status='RUN', time_executed='2021-09-07 06:14:54.709494', time_epoch_executed='1631020494.71' WHERE source_name='4FGL J1314.7+2348' and cadence='daily' and bin_id='88'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/375628

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/375628/ft1_4FGL_J1314.7+2348_daily_bin88.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/375628/ft2_4FGL_J1314.7+2348_daily_bin88.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/375628/ft1_4FGL_J1314.7+2348_daily_bin88.fits outfile=/scratch/kocevski/375628/ft1_filteredMKT_4FGL_J1314.7+2348_daily_bin88.fits ra=198.688 dec=23.8124 rad=12.0 tmin=262137601.0 tmax=262396801.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.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/375628/ft1_filtered_4FGL_J1314.7+2348_daily_bin88.fits" evtable="EVENTS" scfile=/scratch/kocevski/375628/ft2_4FGL_J1314.7+2348_daily_bin88.fits sctable="SC_DATA" outfile=/scratch/kocevski/375628/ltcube_262137601_262396801_4FGL_J1314.7+2348_daily_bin88.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/375628/ft2_4FGL_J1314.7+2348_daily_bin88.fits
.....................!
real 18.50
user 18.11
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/375628/ft1_filtered_4FGL_J1314.7+2348_daily_bin88.fits evtable="EVENTS" scfile=/scratch/kocevski/375628/ft2_4FGL_J1314.7+2348_daily_bin88.fits sctable="SC_DATA" expcube=/scratch/kocevski/375628/ltcube_262137601_262396801_4FGL_J1314.7+2348_daily_bin88.fits outfile=/scratch/kocevski/375628/expmap_262137601_262396801_4FGL_J1314.7+2348_daily_bin88.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/375628/ltcube_262137601_262396801_4FGL_J1314.7+2348_daily_bin88.fits
.....................!
real 192.46
user 187.02
sys 4.99

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/375628/ft1_filtered_4FGL_J1314.7+2348_daily_bin88.fits scfile=/scratch/kocevski/375628/ft2_4FGL_J1314.7+2348_daily_bin88.fits outfile=/scratch/kocevski/375628/cmap_262137601_262396801_4FGL_J1314.7+2348_daily_bin88.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.40
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .83043       1.0000         .10000E-03   10000.    
     2 'norm      '    .99268       1.0000         .10000E-03   10000.    
     3 'norm      '    1.2355       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.651       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.7338       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.7253       1.0000         .10000E-03   10000.    
     7 'norm      '    5.8032       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    11.369       1.0000         .10000E-03   10000.    
    12 'norm      '    2.3416       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11030E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    20.837       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .85911       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2082       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=   6172.722     FROM MIGRAD    STATUS=CONVERGED    561 CALLS     2462 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .82971        2.8013        .11572E-05    .27451E-03
   2  norm          .99272        .31736       -.14323E-07   -.63898E-03
   3  norm          1.2362        2.2872        .14858E-06    .54398E-04
   4  Prefactor     10.653        11.083        .18753E-05    .35364E-03
   5  Prefactor     8.6998        121.78       -.29353E-05   -.59316E-04
   6  Prefactor     4.7249        8.1850        .51233E-06    .58261E-04
   7  norm          5.8047        4.9821        .50329E-07   -.63588E-05
   8  Prefactor     .10000E-03    5.6865        .62648E-07** at limit **
   9  Prefactor     .10000E-03    10.848       -.18627E-06** at limit **
  10  norm          .10000E-03    4.5627        .17255E-06** at limit **
  11  norm          11.368        6.4202       -.47649E-06    .34763E-03
  12  norm          2.3417        7.3810        .16630E-05    .23356E-03
  13  norm          .10000E-03    7.5837        .11568E-06** at limit **
  14  Prefactor     .10000E-03    1.3581        .28233E-07** at limit **
  15  Prefactor     .10015E-03    11.195       -.25294E-05** at limit **
  16  norm          .10000E-03    2.1094        .29576E-07** at limit **
  17  Prefactor     .10000E-03    14.186        .15548E-06** at limit **
  18  Prefactor     .10000E-03    20.685        .91538E-07** at limit **
  19  norm          20.838        9.2355        .55759E-07   -.14315E-05
  20  Prefactor     .10000E-03    5.8370        .42115E-07** at limit **
  21  Prefactor     .10000E-03    8.2014        .10422E-06** at limit **
  22  Prefactor     .10000E-03    3.1165        .16622E-06** at limit **
  23  Prefactor     .10000E-03    3.5317        .43231E-07** at limit **
  24  Normalizat    .85912        .17138       -.31138E-07    .33940E-04
  25  Prefactor     1.2082        .17657       -.55239E-06    .15886E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.829713
  norm       = 0.992724
  norm       = 1.23619
  Prefactor  = 10.6528
  Prefactor  = 8.69981
  Prefactor  = 4.72495
  norm       = 5.80466
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 11.3685
  norm       = 2.3417
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100149
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 20.8379
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.859117
  Prefactor  = 1.2082
 **********
 **   18 **HESSE 
 **********

 FCN=   6172.722     FROM HESSE     STATUS=OK           423 CALLS     2885 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .82971        2.7780        .23430E-03   -1.5526    
   2  norm          .99272        .31696        .24204E-04   -1.5509    
   3  norm          1.2362        2.2221        .15592E-03   -1.5486    
   4  Prefactor     10.653        11.201        .61382E-03   -1.5055    
   5  Prefactor     8.6998        123.80        .13563E-03   -1.5118    
   6  Prefactor     4.7249        8.1718        .18511E-03   -1.5273    
   7  norm          5.8047        4.9684        .15074E-03   -1.5226    
   8  Prefactor     .10000E-03    5.7252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    4.7538        .32709E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          11.368        6.3023        .10935E-03   -1.5033    
  12  norm          2.3417        7.3631        .26793E-03   -1.5402    
  13  norm          .10000E-03    7.5896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.3752        .89300E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10015E-03    33.403        .39597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.1134        .11137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    20.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          20.838        9.2380        .87745E-04   -1.4795    
  20  Prefactor     .10000E-03    5.8525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.2250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.1719        .13541E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.5487        .14420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .85912        .19897        .26156E-03   -.97912    
  25  Prefactor     1.2082        .20571        .23966E-03   -.86079    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.88754e-09
Minuit parameter uncertainties:
  1  2.77847
  2  0.316956
  3  2.22225
  4  11.2031
  5  65.8019
  6  8.17372
  7  4.96876
  8  7.66794e-07
  9  4.42235e-05
  10  1.35628e-05
  11  6.30264
  12  7.36594
  13  2.51009e-05
  14  7.02042e-06
  15  0.00446488
  16  1.48987e-06
  17  4.19814e-05
  18  4.69611e-05
  19  9.23859
  20  3.14659e-06
  21  1.7367e-05
  22  1.12984e-05
  23  2.2522e-06
  24  0.199136
  25  0.205842
Done.

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

Extracting fit parameters...

4FGL J1314.7+2348
   Spectrum: LogParabola
308         norm:  1.000e-04  2.510e-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:  1.208e+00  2.058e-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:  8.591e-01  1.991e-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.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.90e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/375628/likelihoodResults_262137601_262396801_4FGL_J1314.7+2348_daily_bin88.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) = 6172.7222314
delta logL = -0.000625538069471

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6172.72160586
delta logL = 2.41561792791e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9028       1.0000          .0000       5.0000    
     3 'Normalizat'    .85913       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2082       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=   6172.716     FROM MIGRAD    STATUS=FAILED       126 CALLS      271 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .51652E-01    14.048        .18142E-01    .19326E-02
   2  alpha         4.3381        2.7523        .17097       -.31386E-03
   3  Normalizat    .85295        .30308E-01    .26156E-03    .18946E-03
   4  Prefactor     1.2119        .31225E-01    .23966E-03    .19676E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6172.716     FROM SIMPLEX   STATUS=UNCHANGED     73 CALLS      344 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .51652E-01    14.048        .19335E-03    .19326E-02
   2  alpha         4.3381        2.7523        .14700E-01   -.31386E-03
   3  Normalizat    .85295        .30308E-01    .17004E-04    .18946E-03
   4  Prefactor     1.2119        .31225E-01    .13380E-04    .19676E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6172.716     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      422 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .51653E-01    2.9351        .35849E-04    .57082E-05
   2  alpha         4.3381        4.4460        .68389E-02    .28094E-06
   3  Normalizat    .85295        .19961        .20925E-05    .17929E-03
   4  Prefactor     1.2119        .20763        .95864E-05    .18809E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.051653
  alpha      = 4.33808
  Normalizat = 0.852949
  Prefactor  = 1.21195
 **********
 **   18 **HESSE 
 **********

 FCN=   6172.716     FROM HESSE     STATUS=OK            23 CALLS      445 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .51653E-01    3.1267        .14340E-05   -1.5663    
   2  alpha         4.3381        4.5160        .27356E-03    8.5988    
   3  Normalizat    .85295        .20152        .41849E-06   -.98134    
   4  Prefactor     1.2119        .20894        .19173E-05   -.85964    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.27043e-11
Minuit parameter uncertainties:
  1  0.80301
  2  5.73833
  3  0.201695
  4  0.209088
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/375628': 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) = 6172.71612363
delta logL = 0.00548223127498

Extracting fit parameters...

4FGL J1314.7+2348
   Spectrum: LogParabola
308         norm:  5.165e-02  8.030e-01  1.000e-04  1.000e+04 ( 1.000e-13)
309        alpha:  4.338e+00  5.738e+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:  1.212e+00  2.091e-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:  8.529e-01  2.017e-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/375628/cmap_HighResolution_262137601_262396801_4FGL_J1314.7+2348_daily_bin88.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.90e-05', job_status='DONE', photon_flux_upper_limit='3.72e-08', time_completed='2021-09-07 06:26:05.346380', job_id='375628', GAL2='1.21', fit_tolerance='1e-08', EG2='0.85', EG='0.86', time_epoch_completed='1631021165.35', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='5.48e-03', ts2='0.01', photon_index_error='0.00', photon_index='1.90' WHERE bin_id='88' AND source_name='4FGL J1314.7+2348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 06:26:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0192>
Subject: Job 375628: <4FGL_J1314.7+2348_daily_bin88> in cluster <slac> Done

Job <4FGL_J1314.7+2348_daily_bin88> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 06:10:43 2021
Job was executed on host(s) <bullet0192>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 06:12:08 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 06:12:08 2021
Terminated at Tue Sep  7 06:26:06 2021
Results reported at Tue Sep  7 06:26:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1314.7+2348_daily_bin88 198.688 23.8124 262137601 262396801 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 :                                   668.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             281.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            923 sec.

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

