/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 0 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7432
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1314.7+2348_daily_bin514
RA = 198.688, Dec = 23.8124
tmin = 372556801, tmax = 372816001
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='379547', job_status='RUN', time_executed='2021-09-07 06:25:30.344494', time_epoch_executed='1631021130.34' WHERE source_name='4FGL J1314.7+2348' and cadence='daily' and bin_id='514'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/379547

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/379547/ft1_4FGL_J1314.7+2348_daily_bin514.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/379547/ft2_4FGL_J1314.7+2348_daily_bin514.fits


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

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

Done.
real 3.43
user 3.18
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/379547/ft1_filtered_4FGL_J1314.7+2348_daily_bin514.fits" evtable="EVENTS" scfile=/scratch/kocevski/379547/ft2_4FGL_J1314.7+2348_daily_bin514.fits sctable="SC_DATA" outfile=/scratch/kocevski/379547/ltcube_372556801_372816001_4FGL_J1314.7+2348_daily_bin514.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/379547/ft2_4FGL_J1314.7+2348_daily_bin514.fits
.....................!
real 18.45
user 17.89
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/379547/ft1_filtered_4FGL_J1314.7+2348_daily_bin514.fits evtable="EVENTS" scfile=/scratch/kocevski/379547/ft2_4FGL_J1314.7+2348_daily_bin514.fits sctable="SC_DATA" expcube=/scratch/kocevski/379547/ltcube_372556801_372816001_4FGL_J1314.7+2348_daily_bin514.fits outfile=/scratch/kocevski/379547/expmap_372556801_372816001_4FGL_J1314.7+2348_daily_bin514.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/379547/ltcube_372556801_372816001_4FGL_J1314.7+2348_daily_bin514.fits
.....................!
real 193.26
user 187.40
sys 4.42

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/379547/ft1_filtered_4FGL_J1314.7+2348_daily_bin514.fits scfile=/scratch/kocevski/379547/ft2_4FGL_J1314.7+2348_daily_bin514.fits outfile=/scratch/kocevski/379547/cmap_372556801_372816001_4FGL_J1314.7+2348_daily_bin514.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.58
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/379547/ft1_filtered_4FGL_J1314.7+2348_daily_bin514.fits scfile=/scratch/kocevski/379547/ft2_4FGL_J1314.7+2348_daily_bin514.fits outfile=/scratch/kocevski/379547/cmap_HighResolution_372556801_372816001_4FGL_J1314.7+2348_daily_bin514.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.58
user 0.43
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/379547/ft1_filtered_4FGL_J1314.7+2348_daily_bin514.fits evtable="EVENTS" scfile=/scratch/kocevski/379547/ft2_4FGL_J1314.7+2348_daily_bin514.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/379547/Model_4FGL_J1314.7+2348_daily_bin514.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/379547/ft1_filtered_4FGL_J1314.7+2348_daily_bin514.fits.....................!
real 53.98
user 52.25
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.0357       1.0000         .10000E-03   10000.    
     3 'norm      '    5.1078       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.6931       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .22054E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10524E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.0169       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10082E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.1613       1.0000         .10000E-03   10000.    
    12 'norm      '    .11545E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    11.299       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .28827       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    15.220       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    13.347       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .43644       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.3721       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .75747E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    29.524       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4523       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .78301       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.

 FCN=   6033.919     FROM MIGRAD    STATUS=CONVERGED   1064 CALLS     3417 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.0445        .13193E-02** at limit **
   2  norm          1.0355        .36999        .27303E-04    .23064E-02
   3  norm          5.1046        3.6809        .12270E-03    .13157E-03
   4  Prefactor     4.6911        6.3404        .92878E-03   -.20626E-03
   5  Prefactor     .10000E-03    26.168        .18142E-02** at limit **
   6  Prefactor     .10007E-03    33.821        .32870E-02** at limit **
   7  norm          .10000E-03    3.8659        .14744E-02** at limit **
   8  Prefactor     7.0078        12.537        .15144E-03    .15779E-03
   9  Prefactor     .10000E-03    8.8703        .18142E-02** at limit **
  10  norm          .10000E-03    4.9243        .32948E-03** at limit **
  11  norm          2.1560        2.9103        .14689E-03   -.60315E-03
  12  norm          .10000E-03    3.8198        .14732E-02** at limit **
  13  norm          11.300        17.357        .11918E-03   -.34340E-05
  14  Prefactor     .29422        7.7884        .19445E-02   -.11306E-03
  15  Prefactor     .10000E-03    5.1821        .17253E-02** at limit **
  16  norm          15.225        10.576        .10266E-03   -.33277E-03
  17  Prefactor     .10000E-03    8.4404        .18142E-02** at limit **
  18  Prefactor     .10001E-03    28.277        .18142E-02** at limit **
  19  norm          13.336        13.232        .10964E-03   -.14227E-03
  20  Prefactor     .32893        228.77        .53599E-02   -.45792E-04
  21  Prefactor     5.4026        24.838        .17339E-03   -.12517E-03
  22  Prefactor     .46863E-01    7.2521        .38068E-01    .29610E-03
  23  Prefactor     29.514        15.100        .73735E-04    .21792E-03
  24  Normalizat    1.4532        .23989        .22792E-03   -.56774E-04
  25  Prefactor     .78259        .22774        .30685E-03    .72951E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.03545
  norm       = 5.10465
  Prefactor  = 4.69113
  Prefactor  = 0.000100005
  Prefactor  = 0.000100071
  norm       = 0.0001
  Prefactor  = 7.00784
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.15603
  norm       = 0.0001
  norm       = 11.3004
  Prefactor  = 0.294219
  Prefactor  = 0.0001
  norm       = 15.2249
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  norm       = 13.3361
  Prefactor  = 0.328931
  Prefactor  = 5.4026
  Prefactor  = 0.046863
  Prefactor  = 29.5144
  Normalizat = 1.45323
  Prefactor  = 0.782587
 **********
 **   18 **HESSE 
 **********

 FCN=   6033.919     FROM HESSE     STATUS=OK           417 CALLS     3834 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.0449        .26387E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.0355        .36987        .10921E-05   -1.5504    
   3  norm          5.1046        3.6804        .49081E-05   -1.5256    
   4  Prefactor     4.6911        6.3396        .37151E-04   -1.5275    
   5  Prefactor     .10000E-03    26.169        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10007E-03    34.179        .65740E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.8680        .29488E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.0078        12.531        .60578E-05   -1.5178    
   9  Prefactor     .10000E-03    8.8706        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    4.9246        .65896E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.1560        2.9055        .58756E-05   -1.5414    
  12  norm          .10000E-03    3.8199        .29465E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          11.300        17.357        .47673E-05   -1.5036    
  14  Prefactor     .29422        7.7376        .77780E-04   -1.5599    
  15  Prefactor     .10000E-03    5.1822        .34507E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          15.225        10.573        .41065E-05   -1.4927    
  17  Prefactor     .10000E-03    8.4404        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    28.277        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          13.336        13.228        .43855E-05   -1.4977    
  20  Prefactor     .32893        230.70        .21440E-02   -1.5593    
  21  Prefactor     5.4026        24.472        .69355E-05   -1.5243    
  22  Prefactor     .46863E-01    4.9356        .47826E-01   -1.5665    
  23  Prefactor     29.514        15.095        .14747E-04   -1.4621    
  24  Normalizat    1.4532        .23812        .45584E-04   -.79101    
  25  Prefactor     .78259        .22751        .12274E-04   -1.0037    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.77387e-09
Minuit parameter uncertainties:
  1  2.96912e-05
  2  0.369875
  3  3.68051
  4  6.34049
  5  0.000713899
  6  0.00312253
  7  6.47511e-05
  8  12.5355
  9  8.18547e-05
  10  4.9658e-05
  11  2.90574
  12  4.21615e-05
  13  17.3643
  14  3.01758
  15  3.62906e-05
  16  10.5744
  17  2.53515e-05
  18  0.000993401
  19  13.2311
  20  17.4877
  21  23.0122
  22  0.960924
  23  15.0973
  24  0.238303
  25  0.227788
Done.

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

Extracting fit parameters...

4FGL J1314.7+2348
   Spectrum: LogParabola
308         norm:  1.130e+01  1.736e+01  1.000e-04  1.000e+04 ( 1.000e-13)
309        alpha:  1.896e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  9.683e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  1.210e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  7.826e-01  2.278e-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.453e+00  2.383e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/379547/likelihoodResults_372556801_372816001_4FGL_J1314.7+2348_daily_bin514.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) = 6033.89556366
delta logL = 0.0237699411409

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6033.89513458
delta logL = 0.0241990180712

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.268       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1516       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4487       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78453       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.

 FCN=   6033.895     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      266 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.258        16.969        .11935E-03    .91731E-04
   2  alpha         2.1506        1.1307        .25009E-01   -.24380E-05
   3  Normalizat    1.4488        .21876        .22819E-03   -.16302E-04
   4  Prefactor     .78455        .22352        .30646E-03    .64547E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.2585
  alpha      = 2.15062
  Normalizat = 1.44875
  Prefactor  = 0.784547
 **********
 **   18 **HESSE 
 **********

 FCN=   6033.895     FROM HESSE     STATUS=OK            25 CALLS      291 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.258        16.712        .47740E-05   -1.5037    
   2  alpha         2.1506        1.1146        .10003E-02   -.14021    
   3  Normalizat    1.4488        .21878        .45638E-04   -.79229    
   4  Prefactor     .78455        .22362        .12259E-04   -1.0030    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.71048e-11
Minuit parameter uncertainties:
  1  16.719
  2  1.15621
  3  0.218924
  4  0.223883
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/379547': 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) = 6033.89513387
delta logL = 0.0241997233234

Extracting fit parameters...

4FGL J1314.7+2348
   Spectrum: LogParabola
308         norm:  1.126e+01  1.672e+01  1.000e-04  1.000e+04 ( 1.000e-13)
309        alpha:  2.151e+00  1.156e+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:  7.845e-01  2.239e-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.449e+00  2.189e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.64
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/379547/cmap_HighResolution_372556801_372816001_4FGL_J1314.7+2348_daily_bin514.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.53e-05', job_status='DONE', photon_flux_upper_limit='5.82e-08', time_completed='2021-09-07 06:37:57.256396', job_id='379547', GAL2='0.78', fit_tolerance='1e-08', EG2='1.45', EG='1.45', time_epoch_completed='1631021877.26', return_code2='0', ts='0.64', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='2.42e-02', ts2='0.69', photon_index_error='0.00', photon_index='1.90' WHERE bin_id='514' AND source_name='4FGL J1314.7+2348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 06:37:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 379547: <4FGL_J1314.7+2348_daily_bin514> in cluster <slac> Done

Job <4FGL_J1314.7+2348_daily_bin514> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Tue Sep  7 06:25:16 2021
Job was executed on host(s) <bullet0304>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 06:25:21 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:25:21 2021
Terminated at Tue Sep  7 06:37:58 2021
Results reported at Tue Sep  7 06:37:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1314.7+2348_daily_bin514 198.688 23.8124 372556801 372816001 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 :                                   740.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             348.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   756 sec.
    Turnaround time :                            762 sec.

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

