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


Performing analysis on: 4FGL_J1314.7+2348_daily_bin1171
RA = 198.688, Dec = 23.8124
tmin = 542851201, tmax = 543110401
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='381276', job_status='RUN', time_executed='2021-09-07 06:38:12.180664', time_epoch_executed='1631021892.18' WHERE source_name='4FGL J1314.7+2348' and cadence='daily' and bin_id='1171'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/381276

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

Retrieving the FT1 file...

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

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

Retrieving 4 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/381276/ft1_4FGL_J1314.7+2348_daily_bin1171.fits


Retrieving the FT1 file...

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

Retrieving 4 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/381276/ft2_4FGL_J1314.7+2348_daily_bin1171.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/381276/ft1_4FGL_J1314.7+2348_daily_bin1171.fits outfile=/scratch/kocevski/381276/ft1_filteredMKT_4FGL_J1314.7+2348_daily_bin1171.fits ra=198.688 dec=23.8124 rad=12.0 tmin=542851201.0 tmax=543110401.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 0.79
user 0.64
sys 0.13

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/381276/ft1_filtered_4FGL_J1314.7+2348_daily_bin1171.fits" evtable="EVENTS" scfile=/scratch/kocevski/381276/ft2_4FGL_J1314.7+2348_daily_bin1171.fits sctable="SC_DATA" outfile=/scratch/kocevski/381276/ltcube_542851201_543110401_4FGL_J1314.7+2348_daily_bin1171.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/381276/ft2_4FGL_J1314.7+2348_daily_bin1171.fits
.....................!
real 2.26
user 1.86
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/381276/ft1_filtered_4FGL_J1314.7+2348_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/381276/ft2_4FGL_J1314.7+2348_daily_bin1171.fits sctable="SC_DATA" expcube=/scratch/kocevski/381276/ltcube_542851201_543110401_4FGL_J1314.7+2348_daily_bin1171.fits outfile=/scratch/kocevski/381276/expmap_542851201_543110401_4FGL_J1314.7+2348_daily_bin1171.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/381276/ltcube_542851201_543110401_4FGL_J1314.7+2348_daily_bin1171.fits
.....................!
real 192.63
user 187.26
sys 4.82

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/381276/ft1_filtered_4FGL_J1314.7+2348_daily_bin1171.fits scfile=/scratch/kocevski/381276/ft2_4FGL_J1314.7+2348_daily_bin1171.fits outfile=/scratch/kocevski/381276/cmap_542851201_543110401_4FGL_J1314.7+2348_daily_bin1171.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/381276/ft1_filtered_4FGL_J1314.7+2348_daily_bin1171.fits scfile=/scratch/kocevski/381276/ft2_4FGL_J1314.7+2348_daily_bin1171.fits outfile=/scratch/kocevski/381276/cmap_HighResolution_542851201_543110401_4FGL_J1314.7+2348_daily_bin1171.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.54
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    60.888       1.0000         .10000E-03   10000.    
     2 'norm      '    .11700E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    77.558       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .14733E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15280E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10674E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .56960E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.6397       1.0000         .10000E-03   10000.    
     9 'Prefactor '    741.91       1.0000         .10000E-03   10000.    
    10 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10080E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .11567E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    75.965       1.0000         .10000E-03   10000.    
    16 'norm      '    .10352E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12303E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .91392E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .16444E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    295.31       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12203E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10743E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .10004E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.6626       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=   207.2210     FROM MIGRAD    STATUS=CONVERGED    548 CALLS     3841 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     60.887        934.69        .30591E-05   -.34847E-04
   2  norm          .10000E-03    10.335        .48627E-05** at limit **
   3  norm          77.743        280.18       -.39325E-06   -.59712E-04
   4  Prefactor     .10002E-03    734.77        .16326E-04** at limit **
   5  Prefactor     .10002E-03    6451.4        .27004E-04** at limit **
   6  Prefactor     .10000E-03    48.040        .42635E-06** at limit **
   7  norm          .10005E-03    178.48        .12694E-04** at limit **
   8  Prefactor     3.8141        1083.1        .33365E-04   -.16353E-05
   9  Prefactor     742.62        485.54       -.10963E-05   -.11345E-04
  10  norm          .10000E-03    36.355       -.36301E-06** at limit **
  11  norm          .10000E-03    32.036        .20339E-05** at limit **
  12  norm          .10000E-03    44.346        .29395E-06** at limit **
  13  norm          .10000E-03    148.54       -.10335E-05** at limit **
  14  Prefactor     .10000E-03    40.808        .20741E-05** at limit **
  15  Prefactor     76.071        174.56        .14096E-05    .44574E-05
  16  norm          .10000E-03    22.591        .16089E-06** at limit **
  17  Prefactor     .10000E-03    221.08       -.45149E-06** at limit **
  18  Prefactor     .10000E-03    593.18        .21984E-05** at limit **
  19  norm          .10000E-03    26.253       -.42380E-07** at limit **
  20  Prefactor     295.39        217.35        .14395E-05    .29763E-05
  21  Prefactor     .10000E-03    86.004        .40889E-06** at limit **
  22  Prefactor     .10000E-03    17.724        .23679E-06** at limit **
  23  Prefactor     .10000E-03    64.667       -.58852E-06** at limit **
  24  Normalizat    .10000E-01    1.0467        .48540E-04** at limit **
  25  Prefactor     1.6612        .63044        .13572E-04   -.62470E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 60.8867
  norm       = 0.000100003
  norm       = 77.7428
  Prefactor  = 0.000100024
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  norm       = 0.000100049
  Prefactor  = 3.81412
  Prefactor  = 742.621
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 76.0712
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 295.392
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 0.01
  Prefactor  = 1.66122
 **********
 **   18 **HESSE 
 **********

 FCN=   207.2210     FROM HESSE     STATUS=OK           413 CALLS     4254 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     60.887        947.22        .25710E-03   -1.4146    
   2  norm          .10000E-03    10.679        .90711E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          77.743        282.78        .22799E-03   -1.3942    
   4  Prefactor     .10002E-03    736.07        .20485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10002E-03    6446.4        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    48.019        .97626E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10005E-03    181.79        .19043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.8141        1049.7        .21175E-02   -1.5317    
   9  Prefactor     742.62        485.72        .76312E-04   -1.0188    
  10  norm          .10000E-03    36.414        .84924E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    32.101        .79805E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    44.336        .93796E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    148.53        .17195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    40.848        .90012E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     76.071        174.35        .23035E-03   -1.3961    
  16  norm          .10000E-03    22.589        .66922E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    221.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    592.90        .20820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    26.249        .72145E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     295.39        217.34        .11814E-03   -1.2253    
  21  Prefactor     .10000E-03    85.993        .13071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    17.724        .59269E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    64.724        .11331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .10000E-01    1.0848        .83008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.6612        .63126        .22443E-03   -.73119    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26438e-09
Minuit parameter uncertainties:
  1  489.835
  2  0.000385821
  3  287.911
  4  0.00859646
  5  0.0145093
  6  0.00010745
  7  0.00598248
  8  128.902
  9  488.541
  10  0.000180588
  11  0.000263267
  12  0.000154667
  13  0.000369703
  14  0.000479966
  15  175.542
  16  2.47116e-06
  17  0.000130414
  18  0.00080783
  19  4.27872e-05
  20  217.941
  21  6.2e-05
  22  2.62735e-05
  23  0.000498718
  24  4.51905e-05
  25  0.634324
Done.

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

Extracting fit parameters...

4FGL J1314.7+2348
   Spectrum: LogParabola
308         norm:  1.000e-04  3.697e-04  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.661e+00  6.343e-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.000e-02  4.519e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 198.688 23.812
Photon Flux Upper Limit: 7.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.51e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/381276/likelihoodResults_542851201_543110401_4FGL_J1314.7+2348_daily_bin1171.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 207.221074425
delta logL = -3.1542702942e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 207.221042939
delta logL = -5.70079521367e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9896       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.6612       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=   207.2210     FROM MIGRAD    STATUS=FAILED       129 CALLS      331 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .81563E-03    6167.9        .16442E-01** at limit **
   2  alpha         .85995        1.0554        .16917        .15982E-05
   3  Normalizat    .10000E-01    .48226        .82936E-02** at limit **
   4  Prefactor     1.6612        .57220        .22443E-03   -.10177E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   207.2184     FROM SIMPLEX   STATUS=PROGRESS     135 CALLS      466 TOTAL
                     EDM=   .73E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.086        6167.9        .21426E-02   -1.6459    
   2  alpha         .85997        1.0554        .64821E-05   -.71553    
   3  Normalizat    .10002E-01    .48226        .40417E-02   -1.5718    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.6612        .57220        .70539E-06   -.73120    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   207.2179     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      516 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.194        624.09        .32885E-01   -.68706E-05
   2  alpha         .81467        2.8153        .67666E-01   -.33448E-05
   3  Normalizat    .10000E-01    1.0846        .16587E-02** at limit **
   4  Prefactor     1.6465        .61140        .44886E-04   -.26683E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 15.1936
  alpha      = 0.814669
  Normalizat = 0.01
  Prefactor  = 1.6465
 **********
 **   18 **HESSE 
 **********

 FCN=   207.2179     FROM HESSE     STATUS=OK            27 CALLS      543 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.194        646.27        .67515E-03   -1.6488    
   2  alpha         .81467        2.8167        .16689E-02   -.73979    
   3  Normalizat    .10000E-01    1.0846        .33174E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.6465        .61584        .89772E-05   -.73515    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.774e-11
Minuit parameter uncertainties:
  1  200.542
  2  2.24212
  3  1.58976e-06
  4  0.618709
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/381276': 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) = 207.21791672
delta logL = 0.00312616271555

Extracting fit parameters...

4FGL J1314.7+2348
   Spectrum: LogParabola
308         norm:  1.519e+01  2.005e+02  1.000e-04  1.000e+04 ( 1.000e-13)
309        alpha:  8.147e-01  2.242e+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.647e+00  6.187e-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.000e-02  1.590e-06  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/381276/cmap_HighResolution_542851201_543110401_4FGL_J1314.7+2348_daily_bin1171.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.51e-04', job_status='DONE', photon_flux_upper_limit='7.07e-07', time_completed='2021-09-07 06:43:25.675530', job_id='381276', GAL2='1.65', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631022205.68', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.66', dlogl='3.13e-03', ts2='0.01', photon_index_error='0.00', photon_index='1.90' WHERE bin_id='1171' AND source_name='4FGL J1314.7+2348' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 06:43:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0194>
Subject: Job 381276: <4FGL_J1314.7+2348_daily_bin1171> in cluster <slac> Done

Job <4FGL_J1314.7+2348_daily_bin1171> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Tue Sep  7 06:30:43 2021
Job was executed on host(s) <bullet0194>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 06:35:59 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:35:59 2021
Terminated at Tue Sep  7 06:43:26 2021
Results reported at Tue Sep  7 06:43:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1314.7+2348_daily_bin1171 198.688 23.8124 542851201 543110401 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 :                                   312.53 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   446 sec.
    Turnaround time :                            763 sec.

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

