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


Performing analysis on: 4FGL_J1314.7+2348_daily_bin330
RA = 198.688, Dec = 23.8124
tmin = 324864001, tmax = 325123201
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='378242', job_status='RUN', time_executed='2021-09-07 06:20:55.642809', time_epoch_executed='1631020855.64' WHERE source_name='4FGL J1314.7+2348' and cadence='daily' and bin_id='330'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/378242

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/378242/ft1_4FGL_J1314.7+2348_daily_bin330.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/378242/ft2_4FGL_J1314.7+2348_daily_bin330.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/378242/ft1_4FGL_J1314.7+2348_daily_bin330.fits outfile=/scratch/kocevski/378242/ft1_filteredMKT_4FGL_J1314.7+2348_daily_bin330.fits ra=198.688 dec=23.8124 rad=12.0 tmin=324864001.0 tmax=325123201.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.69
user 5.39
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/378242/ft2_4FGL_J1314.7+2348_daily_bin330.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/378242/ft1_filteredMKT_4FGL_J1314.7+2348_daily_bin330.fits evtable="EVENTS" outfile="/scratch/kocevski/378242/ft1_filtered_4FGL_J1314.7+2348_daily_bin330.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.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/378242/ft1_filtered_4FGL_J1314.7+2348_daily_bin330.fits" evtable="EVENTS" scfile=/scratch/kocevski/378242/ft2_4FGL_J1314.7+2348_daily_bin330.fits sctable="SC_DATA" outfile=/scratch/kocevski/378242/ltcube_324864001_325123201_4FGL_J1314.7+2348_daily_bin330.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/378242/ft2_4FGL_J1314.7+2348_daily_bin330.fits
.....................!
real 15.44
user 14.96
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/378242/ft1_filtered_4FGL_J1314.7+2348_daily_bin330.fits evtable="EVENTS" scfile=/scratch/kocevski/378242/ft2_4FGL_J1314.7+2348_daily_bin330.fits sctable="SC_DATA" expcube=/scratch/kocevski/378242/ltcube_324864001_325123201_4FGL_J1314.7+2348_daily_bin330.fits outfile=/scratch/kocevski/378242/expmap_324864001_325123201_4FGL_J1314.7+2348_daily_bin330.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/378242/ltcube_324864001_325123201_4FGL_J1314.7+2348_daily_bin330.fits
.....................!
real 195.08
user 188.37
sys 5.38

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/378242/ft1_filtered_4FGL_J1314.7+2348_daily_bin330.fits scfile=/scratch/kocevski/378242/ft2_4FGL_J1314.7+2348_daily_bin330.fits outfile=/scratch/kocevski/378242/cmap_324864001_325123201_4FGL_J1314.7+2348_daily_bin330.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/378242/ft1_filtered_4FGL_J1314.7+2348_daily_bin330.fits scfile=/scratch/kocevski/378242/ft2_4FGL_J1314.7+2348_daily_bin330.fits outfile=/scratch/kocevski/378242/cmap_HighResolution_324864001_325123201_4FGL_J1314.7+2348_daily_bin330.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.55
user 0.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/378242/ft1_filtered_4FGL_J1314.7+2348_daily_bin330.fits evtable="EVENTS" scfile=/scratch/kocevski/378242/ft2_4FGL_J1314.7+2348_daily_bin330.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/378242/Model_4FGL_J1314.7+2348_daily_bin330.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/378242/ft1_filtered_4FGL_J1314.7+2348_daily_bin330.fits.....................!
real 43.01
user 41.51
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6958       1.0000         .10000E-03   10000.    
     2 'norm      '    1.0122       1.0000         .10000E-03   10000.    
     3 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.0978       1.0000         .10000E-03   10000.    
     7 'norm      '    3.7088       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.553       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.7501       1.0000         .10000E-03   10000.    
    11 'norm      '    .39480E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10776E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    23.232       1.0000         .10000E-03   10000.    
    16 'norm      '    .10096E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    30.030       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11096E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    20.980       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.2601       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .55758E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    13.332       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4955       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .52913       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=   4485.174     FROM MIGRAD    STATUS=CONVERGED    584 CALLS     2935 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6973        7.8421       -.27156E-05   -.32805E-03
   2  norm          1.0123        .46358       -.85615E-08    .10360E-03
   3  norm          .10000E-03    2.2625        .86746E-07** at limit **
   4  Prefactor     .10000E-03    4.9097        .37605E-07** at limit **
   5  Prefactor     .10000E-03    30.937       -.61009E-07** at limit **
   6  Prefactor     8.0995        8.8507       -.60638E-06   -.74950E-04
   7  norm          3.7089        4.0168       -.51513E-07    .11604E-03
   8  Prefactor     12.556        12.974       -.43664E-06   -.15320E-04
   9  Prefactor     .10000E-03    18.838       -.66597E-07** at limit **
  10  norm          4.7505        3.6509       -.62950E-07    .30938E-04
  11  norm          .10036E-03    2.6022       -.41999E-06** at limit **
  12  norm          .10000E-03    4.8753       -.20059E-06** at limit **
  13  norm          .10000E-03    7.1190       -.45631E-06** at limit **
  14  Prefactor     .10000E-03    5.6418       -.16969E-05** at limit **
  15  Prefactor     23.217        23.653       -.23104E-06    .17213E-03
  16  norm          .10000E-03    5.1667        .71663E-06** at limit **
  17  Prefactor     30.013        42.088       -.17419E-04    .20924E-05
  18  Prefactor     .10000E-03    101.77        .21960E-05** at limit **
  19  norm          20.984        12.706       -.43019E-06   -.29228E-04
  20  Prefactor     .10000E-03    6.0856        .15043E-05** at limit **
  21  Prefactor     8.2591        17.708       -.32950E-06   -.17339E-04
  22  Prefactor     .10000E-03    3.4287       -.17568E-06** at limit **
  23  Prefactor     13.336        16.996       -.24572E-05   -.17294E-04
  24  Normalizat    1.4952        .21961        .59708E-06    .15930E-03
  25  Prefactor     .52923        .20329        .33873E-05    .50548E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.69727
  norm       = 1.01228
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.09948
  norm       = 3.70888
  Prefactor  = 12.5559
  Prefactor  = 0.0001
  norm       = 4.75049
  norm       = 0.000100363
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.2167
  norm       = 0.0001
  Prefactor  = 30.0131
  Prefactor  = 0.0001
  norm       = 20.9842
  Prefactor  = 0.0001
  Prefactor  = 8.25908
  Prefactor  = 0.000100002
  Prefactor  = 13.3358
  Normalizat = 1.49523
  Prefactor  = 0.52923
 **********
 **   18 **HESSE 
 **********

 FCN=   4485.174     FROM HESSE     STATUS=OK           437 CALLS     3372 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6973        7.9427        .24812E-03   -1.5379    
   2  norm          1.0123        .46202        .29358E-04   -1.5507    
   3  norm          .10000E-03    2.2686        .98275E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.9196        .14493E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    30.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.0995        8.8542        .14089E-03   -1.5139    
   7  norm          3.7089        4.0250        .13483E-03   -1.5323    
   8  Prefactor     12.556        12.978        .11306E-03   -1.4999    
   9  Prefactor     .10000E-03    18.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.7505        3.6510        .10855E-03   -1.5272    
  11  norm          .10036E-03    7.4651        .34750E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    4.9135        .14420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    7.1208        .17453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.7189        .30841E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     23.217        23.698        .83104E-04   -1.4744    
  16  norm          .10000E-03    5.1820        .14841E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     30.013        41.773        .73113E-04   -1.4612    
  18  Prefactor     .10000E-03    101.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          20.984        12.741        .87446E-04   -1.4791    
  20  Prefactor     .10000E-03    6.0833        .16129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.2591        17.712        .13949E-03   -1.5133    
  22  Prefactor     .10000E-03    11.552        .23783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     13.336        17.019        .10970E-03   -1.4977    
  24  Normalizat    1.4952        .25344        .21835E-03   -.77912    
  25  Prefactor     .52923        .23129        .33190E-03   -1.1065    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.67074e-10
Minuit parameter uncertainties:
  1  7.94576
  2  0.462019
  3  8.15639e-06
  4  4.53603e-06
  5  1.13847e-05
  6  8.85564
  7  4.02526
  8  12.9811
  9  8.30411e-06
  10  3.65113
  11  0.00329175
  12  1.59375e-06
  13  2.35023e-06
  14  1.9362e-06
  15  23.7074
  16  1.64617e-06
  17  41.8138
  18  1.95979e-05
  19  12.7425
  20  3.85278e-06
  21  17.7235
  22  0.000270598
  23  17.0256
  24  0.253653
  25  0.231699
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  5.292e-01  2.317e-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.495e+00  2.537e-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.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.95e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/378242/likelihoodResults_324864001_325123201_4FGL_J1314.7+2348_daily_bin330.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) = 4485.17505275
delta logL = -0.000641809322588

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4485.17441097
delta logL = -3.84789018426e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8942       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4953       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52918       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=   4485.174     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      236 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10007E-03    1365.7        .17456E-02** at limit **
   2  alpha         1.8570        3.4108        .17117        .70674E-06
   3  Normalizat    1.4952        .11887        .21835E-03   -.82264E-05
   4  Prefactor     .52923        .11353        .33190E-03   -.17469E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100073
  alpha      = 1.85695
  Normalizat = 1.49523
  Prefactor  = 0.529231
 **********
 **   18 **HESSE 
 **********

 FCN=   4485.174     FROM HESSE     STATUS=OK            23 CALLS      259 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10007E-03    7.1666        .34911E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8570        3.8970        .68469E-02   -.26014    
   3  Normalizat    1.4952        .23703        .87341E-05   -.77913    
   4  Prefactor     .52923        .22622        .13276E-04   -1.1065    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08652e-08
Minuit parameter uncertainties:
  1  0.00144928
  2  373.771
  3  0.237203
  4  0.226605
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/378242': 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) = 4485.17441092
delta logL = 1.18097887025e-08

Extracting fit parameters...

4FGL J1314.7+2348
   Spectrum: LogParabola
308         norm:  1.001e-04  1.449e-03  1.000e-04  1.000e+04 ( 1.000e-13)
309        alpha:  1.857e+00  3.738e+02  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:  5.292e-01  2.266e-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.495e+00  2.372e-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/378242/cmap_HighResolution_324864001_325123201_4FGL_J1314.7+2348_daily_bin330.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.95e-05', job_status='DONE', photon_flux_upper_limit='3.78e-08', time_completed='2021-09-07 06:31:01.860583', job_id='378242', GAL2='0.53', fit_tolerance='1e-08', EG2='1.50', EG='1.50', time_epoch_completed='1631021461.86', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.53', dlogl='1.18e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.90' WHERE bin_id='330' AND source_name='4FGL J1314.7+2348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 06:31:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0191>
Subject: Job 378242: <4FGL_J1314.7+2348_daily_bin330> in cluster <slac> Done

Job <4FGL_J1314.7+2348_daily_bin330> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep  7 06:20:30 2021
Job was executed on host(s) <bullet0191>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 06:20:43 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:20:43 2021
Terminated at Tue Sep  7 06:31:02 2021
Results reported at Tue Sep  7 06:31:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1314.7+2348_daily_bin330 198.688 23.8124 324864001 325123201 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 :                                   600.00 sec.
    Max Memory :                                 1211 MB
    Average Memory :                             368.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   619 sec.
    Turnaround time :                            632 sec.

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

