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


Performing analysis on: 4FGL_J1418.4+3543_daily_bin868
RA = 214.623, Dec = 35.7192
tmin = 464313601, tmax = 464572801
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='319125', job_status='RUN', time_executed='2021-09-09 08:11:19.921534', time_epoch_executed='1631200279.92' WHERE source_name='4FGL J1418.4+3543' and cadence='daily' and bin_id='868'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/319125

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/319125/ft1_4FGL_J1418.4+3543_daily_bin868.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/319125/ft2_4FGL_J1418.4+3543_daily_bin868.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/319125/ft1_4FGL_J1418.4+3543_daily_bin868.fits outfile=/scratch/kocevski/319125/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin868.fits ra=214.623 dec=35.7192 rad=12.0 tmin=464313601.0 tmax=464572801.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.40
user 3.17
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/319125/ft2_4FGL_J1418.4+3543_daily_bin868.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/319125/ft2_4FGL_J1418.4+3543_daily_bin868.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/319125/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin868.fits evtable="EVENTS" outfile="/scratch/kocevski/319125/ft1_filtered_4FGL_J1418.4+3543_daily_bin868.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.51
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/319125/ft1_filtered_4FGL_J1418.4+3543_daily_bin868.fits" evtable="EVENTS" scfile=/scratch/kocevski/319125/ft2_4FGL_J1418.4+3543_daily_bin868.fits sctable="SC_DATA" outfile=/scratch/kocevski/319125/ltcube_464313601_464572801_4FGL_J1418.4+3543_daily_bin868.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/319125/ft2_4FGL_J1418.4+3543_daily_bin868.fits
.....................!
real 12.65
user 12.31
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/319125/ft1_filtered_4FGL_J1418.4+3543_daily_bin868.fits evtable="EVENTS" scfile=/scratch/kocevski/319125/ft2_4FGL_J1418.4+3543_daily_bin868.fits sctable="SC_DATA" expcube=/scratch/kocevski/319125/ltcube_464313601_464572801_4FGL_J1418.4+3543_daily_bin868.fits outfile=/scratch/kocevski/319125/expmap_464313601_464572801_4FGL_J1418.4+3543_daily_bin868.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/319125/ltcube_464313601_464572801_4FGL_J1418.4+3543_daily_bin868.fits
.....................!
real 190.50
user 185.34
sys 4.73

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

Setting source of interest to:
4FGL J1418.4+3543 @ 214.623 35.7192

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/319125/ft1_filtered_4FGL_J1418.4+3543_daily_bin868.fits scfile=/scratch/kocevski/319125/ft2_4FGL_J1418.4+3543_daily_bin868.fits outfile=/scratch/kocevski/319125/cmap_464313601_464572801_4FGL_J1418.4+3543_daily_bin868.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=214.623 yref=35.7192 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 1.20
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/319125/ft1_filtered_4FGL_J1418.4+3543_daily_bin868.fits scfile=/scratch/kocevski/319125/ft2_4FGL_J1418.4+3543_daily_bin868.fits outfile=/scratch/kocevski/319125/cmap_HighResolution_464313601_464572801_4FGL_J1418.4+3543_daily_bin868.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=214.623 yref=35.7192 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/319125/ft1_filtered_4FGL_J1418.4+3543_daily_bin868.fits evtable="EVENTS" scfile=/scratch/kocevski/319125/ft2_4FGL_J1418.4+3543_daily_bin868.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/319125/Model_4FGL_J1418.4+3543_daily_bin868.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/319125/ft1_filtered_4FGL_J1418.4+3543_daily_bin868.fits.....................!
real 51.80
user 50.37
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/319125/ft1_filtered_4FGL_J1418.4+3543_daily_bin868.fits', '/scratch/kocevski/319125/ft2_4FGL_J1418.4+3543_daily_bin868.fits', expMap='/scratch/kocevski/319125/expmap_464313601_464572801_4FGL_J1418.4+3543_daily_bin868.fits', expCube='/scratch/kocevski/319125/ltcube_464313601_464572801_4FGL_J1418.4+3543_daily_bin868.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/319125/Model_4FGL_J1418.4+3543_daily_bin868.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1418.4+3543'

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  4.095e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  2.016e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
285         beta:  6.612e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
286           Eb:  8.292e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/319125/ft1_filtered_4FGL_J1418.4+3543_daily_bin868.fits
Spacecraft file(s): /scratch/kocevski/319125/ft2_4FGL_J1418.4+3543_daily_bin868.fits
Exposure map: /scratch/kocevski/319125/expmap_464313601_464572801_4FGL_J1418.4+3543_daily_bin868.fits
Exposure cube: /scratch/kocevski/319125/ltcube_464313601_464572801_4FGL_J1418.4+3543_daily_bin868.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/319125/Model_4FGL_J1418.4+3543_daily_bin868.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) = 6765.57749237

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    51.632       1.0000         .10000E-03   10000.    
     2 'Prefactor '    25.469       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    13.976       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.8999       1.0000         .10000E-03   10000.    
     6 'norm      '    35.657       1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.368       1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.874       1.0000         .10000E-03   10000.    
     9 'norm      '    4.1890       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11167E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.319       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.538       1.0000         .10000E-03   10000.    
    13 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.0886       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.1838       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.7469       1.0000         .10000E-03   10000.    
    21 'norm      '    1.6349       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0526       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .86637       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5780E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6765.574     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2672 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     51.603        66.767       -.38128E-04    .19275E-05
   2  Prefactor     25.472        21.072        .27361E-05    .31812E-05
   3  Prefactor     .10000E-03    21.810        .15428E-05** at limit **
   4  norm          13.976        2.5150       -.62525E-07    .57879E-04
   5  Prefactor     3.9002        3.8044       -.74552E-06   -.34377E-03
   6  norm          35.660        19.890        .18502E-05    .18058E-04
   7  Prefactor     15.367        17.969       -.18886E-05    .28184E-04
   8  Prefactor     18.877        19.606        .21253E-05   -.17503E-05
   9  norm          4.1890        3.8988       -.59696E-06   -.29272E-03
  10  Prefactor     .10000E-03    14.125       -.30365E-05** at limit **
  11  Prefactor     13.322        19.290        .45987E-05    .81245E-04
  12  Prefactor     12.539        4.3244        .11204E-05    .78858E-04
  13  norm          .10000E-03    4.7951        .86335E-07** at limit **
  14  Prefactor     .10000E-03    14.045       -.29008E-05** at limit **
  15  norm          4.0888        5.0588       -.20241E-05   -.36531E-03
  16  Prefactor     .10000E-03    12.741       -.26794E-05** at limit **
  17  Prefactor     .10000E-03    23.182       -.97054E-05** at limit **
  18  norm          6.1836        5.8761        .12454E-06    .43803E-04
  19  Prefactor     .10000E-03    11.637        .33034E-05** at limit **
  20  Prefactor     2.7469        3.4315       -.64546E-06   -.61611E-04
  21  norm          1.6348        1.1369        .53287E-08   -.27840E-03
  22  Prefactor     .10000E-03    18.982        .11755E-04** at limit **
  23  Normalizat    1.0524        .17409        .74301E-06    .62213E-04
  24  Prefactor     .86662        .18300        .39399E-06    .42656E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 51.6032
  Prefactor  = 25.4721
  Prefactor  = 0.0001
  norm       = 13.9759
  Prefactor  = 3.90018
  norm       = 35.6602
  Prefactor  = 15.367
  Prefactor  = 18.8767
  norm       = 4.18901
  Prefactor  = 0.000100001
  Prefactor  = 13.3216
  Prefactor  = 12.5388
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.08882
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.18357
  Prefactor  = 0.0001
  Prefactor  = 2.74693
  norm       = 1.63485
  Prefactor  = 0.0001
  Normalizat = 1.0524
  Prefactor  = 0.86662
 **********
 **   18 **HESSE 
 **********

 FCN=   6765.574     FROM HESSE     STATUS=OK           403 CALLS     3075 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     51.603        66.836        .55814E-04   -1.4270    
   2  Prefactor     25.472        21.077        .79376E-04   -1.4698    
   3  Prefactor     .10000E-03    21.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          13.976        2.5174        .53489E-04   -1.4960    
   5  Prefactor     3.9002        3.8095        .15098E-03   -1.5313    
   6  norm          35.660        19.939        .67113E-04   -1.4513    
   7  Prefactor     15.367        17.939        .10217E-03   -1.4924    
   8  Prefactor     18.877        19.686        .92192E-04   -1.4839    
   9  norm          4.1890        3.8925        .14974E-03   -1.5299    
  10  Prefactor     .10000E-03    14.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.322        19.389        .10975E-03   -1.4978    
  12  Prefactor     12.539        4.3332        .95823E-04   -1.5000    
  13  norm          .10000E-03    4.7969        .17589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.0888        5.0668        .19727E-03   -1.5304    
  16  Prefactor     .10000E-03    12.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    23.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.1836        5.8765        .16144E-03   -1.5211    
  19  Prefactor     .10000E-03    11.960        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.7469        3.4237        .16470E-03   -1.5376    
  21  norm          1.6348        1.1298        .70248E-04   -1.5452    
  22  Prefactor     .10000E-03    18.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0524        .20573        .23805E-03   -.91295    
  24  Prefactor     .86662        .21408        .29526E-03   -.97317    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.67138e-10
Minuit parameter uncertainties:
  1  66.9338
  2  21.0833
  3  2.4438e-05
  4  2.51737
  5  3.80977
  6  19.9427
  7  17.9448
  8  19.693
  9  3.89274
  10  0.000195512
  11  19.3982
  12  4.33333
  13  7.47292e-06
  14  5.30058e-05
  15  5.0673
  16  5.1743e-06
  17  3.13605e-05
  18  5.87704
  19  4.01248e-05
  20  3.42399
  21  1.12984
  22  1.55237e-06
  23  0.205881
  24  0.214285
Done.

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

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  4.189e+00  3.893e+00  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  2.016e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
285         beta:  6.612e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
286           Eb:  8.292e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  8.666e-01  2.143e-01  0.000e+00  1.000e+01 ( 1.000e+00)
576        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
577        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
574   Normalization:  1.052e+00  2.059e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.86
Ra Dec: 214.623 35.719
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 2.55e-08 +/- 2.36e-08
Energy Flux (Fixed Index): 1.45e-05 +/- 1.35e-05

TS (Fixed Index): 1.86
Ra Dec: 214.623 35.719
Photon Flux Upper Limit: 7.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.55e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/319125/likelihoodResults_464313601_464572801_4FGL_J1418.4+3543_daily_bin868.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) = 6764.77589813
delta logL = 0.798561151284

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6764.77058637
delta logL = 0.8038729147

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9321       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9277       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0090       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89451       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5780E+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=   6764.771     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      286 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9320        3.6408        .89646E-04    .42738E-04
   2  alpha         2.9277        .85585        .12303E-01    .10577E-04
   3  Normalizat    1.0089        .19039        .24224E-03   -.63968E-04
   4  Prefactor     .89457        .21320        .29089E-03   -.14523E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.93196
  alpha      = 2.92774
  Normalizat = 1.00892
  Prefactor  = 0.894567
 **********
 **   18 **HESSE 
 **********

 FCN=   6764.771     FROM HESSE     STATUS=OK            25 CALLS      311 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9320        3.2203        .35858E-05   -1.5365    
   2  alpha         2.9277        .75951        .49213E-03    .17194    
   3  Normalizat    1.0089        .19013        .96896E-05   -.92732    
   4  Prefactor     .89457        .21295        .11636E-04   -.96331    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.79468e-11
Minuit parameter uncertainties:
  1  3.22053
  2  0.772093
  3  0.190254
  4  0.213145
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/319125': 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) = 6764.77058623
delta logL = 0.803873052157

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  2.932e+00  3.221e+00  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  2.928e+00  7.721e-01  0.000e+00  5.000e+00 ( 1.000e+00)
285         beta:  6.612e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
286           Eb:  8.292e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
575    Prefactor:  8.946e-01  2.131e-01  0.000e+00  1.000e+01 ( 1.000e+00)
576        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
577        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
574   Normalization:  1.009e+00  1.903e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.51
Ra Dec: 214.623 35.719
Photon Index (Free Index): 2.93 +/- 0.77
Photon Flux (Free Index): 6.21e-08 +/- 4.65e-08
Energy Flux (Free Index): 1.35e-05 +/- 9.12e-06

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/319125/cmap_HighResolution_464313601_464572801_4FGL_J1418.4+3543_daily_bin868.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.55e-05', comment='SUCCESS', photon_flux='2.55e-08', energy_flux2='1.35e-05', photon_flux_error='2.36e-08', dlogl='8.04e-01', energy_flux='1.45e-05', photon_flux2='6.21e-08', job_status='DONE', time_completed='2021-09-09 08:23:30.826433', photon_index_error2='0.77', photon_index2='2.93', ts='1.86', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='7.99e-08', energy_flux_error2='9.12e-06', EG='1.05', time_epoch_completed='1631201010.83', return_code='0', job_id='319125', GAL2='0.89', EG2='1.01', return_code2='0', energy_flux_error='1.35e-05', photon_flux_error2='4.65e-08', ts2='3.51', photon_index='2.02' WHERE bin_id='868' AND source_name='4FGL J1418.4+3543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:23:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 319125: <4FGL_J1418.4+3543_daily_bin868> in cluster <slac> Done

Job <4FGL_J1418.4+3543_daily_bin868> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 08:10:51 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 08:10:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 08:10:53 2021
Terminated at Thu Sep  9 08:23:31 2021
Results reported at Thu Sep  9 08:23:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4+3543_daily_bin868 214.623 35.7192 464313601 464572801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1418.4+3543 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   712.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             284.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            760 sec.

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

