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


Performing analysis on: 4FGL_J1814.4+2953_daily_bin161
RA = 273.615, Dec = 29.8943
tmin = 281059201, tmax = 281318401
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='731218', job_status='RUN', time_executed='2021-09-20 00:45:34.325044', time_epoch_executed='1632123934.33' WHERE source_name='4FGL J1814.4+2953' and cadence='daily' and bin_id='161'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/731218

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/731218/ft1_4FGL_J1814.4+2953_daily_bin161.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/731218/ft2_4FGL_J1814.4+2953_daily_bin161.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/731218/ft1_4FGL_J1814.4+2953_daily_bin161.fits outfile=/scratch/kocevski/731218/ft1_filteredMKT_4FGL_J1814.4+2953_daily_bin161.fits ra=273.615 dec=29.8943 rad=12.0 tmin=281059201.0 tmax=281318401.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 4.44
user 4.20
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/731218/ft2_4FGL_J1814.4+2953_daily_bin161.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/731218/ft2_4FGL_J1814.4+2953_daily_bin161.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/731218/ft1_filteredMKT_4FGL_J1814.4+2953_daily_bin161.fits evtable="EVENTS" outfile="/scratch/kocevski/731218/ft1_filtered_4FGL_J1814.4+2953_daily_bin161.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.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/731218/ft1_filtered_4FGL_J1814.4+2953_daily_bin161.fits" evtable="EVENTS" scfile=/scratch/kocevski/731218/ft2_4FGL_J1814.4+2953_daily_bin161.fits sctable="SC_DATA" outfile=/scratch/kocevski/731218/ltcube_281059201_281318401_4FGL_J1814.4+2953_daily_bin161.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/731218/ft2_4FGL_J1814.4+2953_daily_bin161.fits
.....................!
real 11.68
user 11.32
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/731218/ft1_filtered_4FGL_J1814.4+2953_daily_bin161.fits evtable="EVENTS" scfile=/scratch/kocevski/731218/ft2_4FGL_J1814.4+2953_daily_bin161.fits sctable="SC_DATA" expcube=/scratch/kocevski/731218/ltcube_281059201_281318401_4FGL_J1814.4+2953_daily_bin161.fits outfile=/scratch/kocevski/731218/expmap_281059201_281318401_4FGL_J1814.4+2953_daily_bin161.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/731218/ltcube_281059201_281318401_4FGL_J1814.4+2953_daily_bin161.fits
.....................!
real 189.86
user 184.64
sys 4.85

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

Setting source of interest to:
4FGL J1814.4+2953 @ 273.615 29.8943

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/731218/ft1_filtered_4FGL_J1814.4+2953_daily_bin161.fits scfile=/scratch/kocevski/731218/ft2_4FGL_J1814.4+2953_daily_bin161.fits outfile=/scratch/kocevski/731218/cmap_281059201_281318401_4FGL_J1814.4+2953_daily_bin161.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=273.615 yref=29.8943 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/731218/ft1_filtered_4FGL_J1814.4+2953_daily_bin161.fits scfile=/scratch/kocevski/731218/ft2_4FGL_J1814.4+2953_daily_bin161.fits outfile=/scratch/kocevski/731218/cmap_HighResolution_281059201_281318401_4FGL_J1814.4+2953_daily_bin161.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=273.615 yref=29.8943 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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/731218/ft1_filtered_4FGL_J1814.4+2953_daily_bin161.fits evtable="EVENTS" scfile=/scratch/kocevski/731218/ft2_4FGL_J1814.4+2953_daily_bin161.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/731218/Model_4FGL_J1814.4+2953_daily_bin161.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/731218/ft1_filtered_4FGL_J1814.4+2953_daily_bin161.fits.....................!
real 80.36
user 78.92
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/731218/ft1_filtered_4FGL_J1814.4+2953_daily_bin161.fits', '/scratch/kocevski/731218/ft2_4FGL_J1814.4+2953_daily_bin161.fits', expMap='/scratch/kocevski/731218/expmap_281059201_281318401_4FGL_J1814.4+2953_daily_bin161.fits', expCube='/scratch/kocevski/731218/ltcube_281059201_281318401_4FGL_J1814.4+2953_daily_bin161.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/731218/Model_4FGL_J1814.4+2953_daily_bin161.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1814.4+2953'

4FGL J1814.4+2953
   Spectrum: PowerLaw
352    Prefactor:  2.583e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
353        Index:  2.553e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
354        Scale:  1.024e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/731218/ft1_filtered_4FGL_J1814.4+2953_daily_bin161.fits
Spacecraft file(s): /scratch/kocevski/731218/ft2_4FGL_J1814.4+2953_daily_bin161.fits
Exposure map: /scratch/kocevski/731218/expmap_281059201_281318401_4FGL_J1814.4+2953_daily_bin161.fits
Exposure cube: /scratch/kocevski/731218/ltcube_281059201_281318401_4FGL_J1814.4+2953_daily_bin161.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/731218/Model_4FGL_J1814.4+2953_daily_bin161.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) = 9535.94291014

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.540       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.954       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .54339       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.053       1.0000         .10000E-03   10000.    
    11 'norm      '    9.1900       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.5503       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12284E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    29.925       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.0018       1.0000         .10000E-03   10000.    
    18 'norm      '    .15573       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.8728       1.0000         .10000E-03   10000.    
    20 'Prefactor '    58.761       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .49675       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1064       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9535.931     FROM MIGRAD    STATUS=CONVERGED    479 CALLS     2377 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.039        .27681E-06** at limit **
   2  Prefactor     .10000E-03    73.694        .12173E-05** at limit **
   3  Prefactor     20.538        12.961        .26868E-06    .18129E-03
   4  Prefactor     .10000E-03    64.081       -.32669E-06** at limit **
   5  Prefactor     24.945        22.625        .28833E-06    .21748E-04
   6  Prefactor     .10000E-03    21.143       -.54045E-06** at limit **
   7  Prefactor     .10000E-03    7.1543        .59063E-07** at limit **
   8  norm          .54344        1.3048       -.53643E-07   -.54867E-03
   9  norm          .10000E-03    48.715       -.12625E-05** at limit **
  10  Prefactor     14.052        6.7958        .14256E-06    .13825E-03
  11  norm          9.1874        8.3615       -.14874E-06   -.23293E-03
  12  Prefactor     5.5485        4.1820        .62296E-08   -.45274E-03
  13  Prefactor     .10000E-03    34.495       -.33341E-06** at limit **
  14  norm          29.924        24.618        .57120E-07    .57290E-05
  15  Prefactor     .10000E-03    8.1015       -.35739E-07** at limit **
  16  norm          .10000E-03    17.294        .90232E-07** at limit **
  17  norm          2.0151        3.2606        .44925E-06    .10689E-02
  18  norm          .13705        1.2860        .14479E-09    .40528E-04
  19  Prefactor     1.8695        12.121        .84670E-05   -.11725E-03
  20  Prefactor     58.750        67.601        .24564E-05    .24885E-03
  21  Normalizat    .49673        .23204       -.46792E-06    .77715E-04
  22  Prefactor     1.1063        .83811E-01   -.25785E-06    .59134E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 20.538
  Prefactor  = 0.0001
  Prefactor  = 24.9449
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.54344
  norm       = 0.000100001
  Prefactor  = 14.0525
  norm       = 9.18745
  Prefactor  = 5.54848
  Prefactor  = 0.000100002
  norm       = 29.924
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.01511
  norm       = 0.137047
  Prefactor  = 1.86947
  Prefactor  = 58.7497
  Normalizat = 0.496725
  Prefactor  = 1.10632
 **********
 **   18 **HESSE 
 **********

 FCN=   9535.931     FROM HESSE     STATUS=OK           342 CALLS     2719 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    73.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     20.538        12.943        .88377E-04   -1.4801    
   4  Prefactor     .10000E-03    64.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     24.945        22.602        .80190E-04   -1.4709    
   6  Prefactor     .10000E-03    21.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.2739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .54344        1.1364        .16764E-02   -1.5561    
   9  norm          .10000E-03    48.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.052        6.7813        .10684E-03   -1.4958    
  11  norm          9.1874        8.3662        .13221E-03   -1.5102    
  12  Prefactor     5.5485        4.1865        .83558E-03   -1.5237    
  13  Prefactor     .10000E-03    35.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          29.924        24.622        .73241E-04   -1.4613    
  15  Prefactor     .10000E-03    8.2910        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    17.298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.0151        12.150        .17827E-03   -1.5424    
  18  norm          .13705        126.97        .15869E-02   -1.5634    
  19  Prefactor     1.8695        12.026        .15216E-02   -1.5435    
  20  Prefactor     58.750        108.40        .52337E-04   -1.4173    
  21  Normalizat    .49673        .23772        .54448E-03   -1.1257    
  22  Prefactor     1.1063        .86784E-01    .13986E-03   -.89265    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65484e-08
Minuit parameter uncertainties:
  1  3.04143e-05
  2  0.000460717
  3  12.9444
  4  0.000166447
  5  22.6095
  6  2.37465e-05
  7  1.13735e-05
  8  1.13646
  9  0.000335917
  10  6.78169
  11  8.36724
  12  4.18669
  13  0.000550698
  14  24.6307
  15  1.64646e-05
  16  1.0605e-05
  17  9.89896
  18  8.35768
  19  9.48566
  20  108.77
  21  0.23821
  22  0.0867953
Done.

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

Extracting fit parameters...

4FGL J1814.4+2953
   Spectrum: PowerLaw
352    Prefactor:  1.000e-04  5.507e-04  1.000e-04  1.000e+04 ( 1.000e-13)
353        Index:  2.553e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
354        Scale:  1.024e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
766    Prefactor:  1.106e+00  8.680e-02  0.000e+00  1.000e+01 ( 1.000e+00)
767        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
768        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
765   Normalization:  4.967e-01  2.382e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 273.615 29.894
Photon Flux Upper Limit: 1.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/731218/likelihoodResults_281059201_281318401_4FGL_J1814.4+2953_daily_bin161.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) = 9535.93109963
delta logL = -0.000135898999361

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9535.93096374
delta logL = -3.82533471566e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5412       1.0000          .0000       10.000    
     3 'Normalizat'    .49670       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1063       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9535.931     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      215 TOTAL
                     EDM=   .76E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    56.077        .90712E-02** at limit **
   2  Index         2.5296        6.2019        .50000        .27615E-05
   3  Normalizat    .49673        .21753        .12279        .81261E-04
   4  Prefactor     1.1063        .81720E-01    .37351E-01    .75889E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.52958
  Normalizat = 0.496726
  Prefactor  = 1.10632
 **********
 **   18 **HESSE 
 **********

 FCN=   9535.931     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      248 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7628.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5296        6.2549        .50000       -.51678    
   3  Normalizat    .49673        .10961        .54448E-03   -1.1257    
   4  Prefactor     1.1063        .41264E-01    .13986E-03   -.89265    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.96522e-09
Minuit parameter uncertainties:
  1  0.000462432
  2  59.5946
  3  0.109655
  4  0.0412647
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/731218': 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): 102
logL (Free Index) = 9535.93096372
delta logL = 1.62490323419e-08

Extracting fit parameters...

4FGL J1814.4+2953
   Spectrum: PowerLaw
352    Prefactor:  1.000e-04  4.624e-04  1.000e-04  1.000e+04 ( 1.000e-13)
353        Index:  2.530e+00  5.959e+01  0.000e+00  1.000e+01 (-1.000e+00)
354        Scale:  1.024e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
766    Prefactor:  1.106e+00  4.126e-02  0.000e+00  1.000e+01 ( 1.000e+00)
767        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
768        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
765   Normalization:  4.967e-01  1.097e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 273.615 29.894

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/731218/cmap_HighResolution_281059201_281318401_4FGL_J1814.4+2953_daily_bin161.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.84e-03', job_status='DONE', photon_flux_upper_limit='1.00e-07', time_completed='2021-09-20 01:01:55.205067', job_id='731218', GAL2='1.11', fit_tolerance='1e-08', EG2='0.50', EG='0.50', time_epoch_completed='1632124915.21', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='1.62e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='161' AND source_name='4FGL J1814.4+2953' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 20 01:01:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 731218: <4FGL_J1814.4+2953_daily_bin161> in cluster <slac> Done

Job <4FGL_J1814.4+2953_daily_bin161> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Sep 20 00:45:22 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 20 00:45:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 20 00:45:24 2021
Terminated at Mon Sep 20 01:01:56 2021
Results reported at Mon Sep 20 01:01:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1814.4+2953_daily_bin161 273.615 29.8943 281059201 281318401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1814.4+2953 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   974.20 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             348.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   991 sec.
    Turnaround time :                            994 sec.

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

