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


Performing analysis on: 4FGL_J1418.4+3543_daily_bin647
RA = 214.623, Dec = 35.7192
tmin = 407030401, tmax = 407289601
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='318767', job_status='RUN', time_executed='2021-09-09 08:10:38.773232', time_epoch_executed='1631200238.77' WHERE source_name='4FGL J1418.4+3543' and cadence='daily' and bin_id='647'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/318767

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/318767/ft1_4FGL_J1418.4+3543_daily_bin647.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/318767/ft2_4FGL_J1418.4+3543_daily_bin647.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/318767/ft1_4FGL_J1418.4+3543_daily_bin647.fits outfile=/scratch/kocevski/318767/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin647.fits ra=214.623 dec=35.7192 rad=12.0 tmin=407030401.0 tmax=407289601.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.55
user 3.30
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/318767/ft2_4FGL_J1418.4+3543_daily_bin647.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/318767/ft1_filteredMKT_4FGL_J1418.4+3543_daily_bin647.fits evtable="EVENTS" outfile="/scratch/kocevski/318767/ft1_filtered_4FGL_J1418.4+3543_daily_bin647.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.56
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/318767/ft1_filtered_4FGL_J1418.4+3543_daily_bin647.fits" evtable="EVENTS" scfile=/scratch/kocevski/318767/ft2_4FGL_J1418.4+3543_daily_bin647.fits sctable="SC_DATA" outfile=/scratch/kocevski/318767/ltcube_407030401_407289601_4FGL_J1418.4+3543_daily_bin647.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/318767/ft2_4FGL_J1418.4+3543_daily_bin647.fits
.....................!
real 11.81
user 11.42
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/318767/ft1_filtered_4FGL_J1418.4+3543_daily_bin647.fits evtable="EVENTS" scfile=/scratch/kocevski/318767/ft2_4FGL_J1418.4+3543_daily_bin647.fits sctable="SC_DATA" expcube=/scratch/kocevski/318767/ltcube_407030401_407289601_4FGL_J1418.4+3543_daily_bin647.fits outfile=/scratch/kocevski/318767/expmap_407030401_407289601_4FGL_J1418.4+3543_daily_bin647.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/318767/ltcube_407030401_407289601_4FGL_J1418.4+3543_daily_bin647.fits
.....................!
real 190.00
user 184.98
sys 4.65

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/318767/ft1_filtered_4FGL_J1418.4+3543_daily_bin647.fits scfile=/scratch/kocevski/318767/ft2_4FGL_J1418.4+3543_daily_bin647.fits outfile=/scratch/kocevski/318767/cmap_407030401_407289601_4FGL_J1418.4+3543_daily_bin647.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 0.60
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/318767/ft1_filtered_4FGL_J1418.4+3543_daily_bin647.fits scfile=/scratch/kocevski/318767/ft2_4FGL_J1418.4+3543_daily_bin647.fits outfile=/scratch/kocevski/318767/cmap_HighResolution_407030401_407289601_4FGL_J1418.4+3543_daily_bin647.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.54
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/318767/ft1_filtered_4FGL_J1418.4+3543_daily_bin647.fits', '/scratch/kocevski/318767/ft2_4FGL_J1418.4+3543_daily_bin647.fits', expMap='/scratch/kocevski/318767/expmap_407030401_407289601_4FGL_J1418.4+3543_daily_bin647.fits', expCube='/scratch/kocevski/318767/ltcube_407030401_407289601_4FGL_J1418.4+3543_daily_bin647.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/318767/Model_4FGL_J1418.4+3543_daily_bin647.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/318767/ft1_filtered_4FGL_J1418.4+3543_daily_bin647.fits
Spacecraft file(s): /scratch/kocevski/318767/ft2_4FGL_J1418.4+3543_daily_bin647.fits
Exposure map: /scratch/kocevski/318767/expmap_407030401_407289601_4FGL_J1418.4+3543_daily_bin647.fits
Exposure cube: /scratch/kocevski/318767/ltcube_407030401_407289601_4FGL_J1418.4+3543_daily_bin647.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/318767/Model_4FGL_J1418.4+3543_daily_bin647.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) = 5885.6990926

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.5919       1.0000         .10000E-03   10000.    
     3 'Prefactor '    36.285       1.0000         .10000E-03   10000.    
     4 'norm      '    4.9486       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    26.930       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10280E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.587       1.0000         .10000E-03   10000.    
     9 'norm      '    .10328E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.4054       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11672E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.3858       1.0000         .10000E-03   10000.    
    13 'norm      '    28.313       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.098       1.0000         .10000E-03   10000.    
    15 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.719       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.2051       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.9679       1.0000         .10000E-03   10000.    
    21 'norm      '    .97212       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1825       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .77912       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=   5885.691     FROM MIGRAD    STATUS=CONVERGED    537 CALLS     2725 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    61.191       -.18771E-05** at limit **
   2  Prefactor     5.5916        13.920        .82621E-07   -.18878E-04
   3  Prefactor     36.271        68.128       -.45745E-05   -.12255E-03
   4  norm          4.9485        1.7573        .15282E-07    .33669E-04
   5  Prefactor     .10000E-03    1.9412       -.47853E-08** at limit **
   6  norm          26.932        17.167        .13155E-06   -.35229E-05
   7  Prefactor     .10000E-03    15.993        .18742E-07** at limit **
   8  Prefactor     10.587        15.286       -.22913E-07   -.18463E-04
   9  norm          .10000E-03    2.6666        .10755E-06** at limit **
  10  Prefactor     5.3986        16.469       -.13008E-05   -.91418E-04
  11  Prefactor     .10000E-03    24.874        .31107E-07** at limit **
  12  Prefactor     7.3855        4.7549        .49133E-06    .59552E-03
  13  norm          28.327        21.917        .11183E-05    .21100E-03
  14  Prefactor     18.099        22.948        .84281E-06   -.56232E-04
  15  norm          .10000E-03    3.5599       -.40050E-07** at limit **
  16  Prefactor     16.706        48.495       -.63033E-05   -.13625E-03
  17  Prefactor     .10000E-03    32.501       -.23120E-05** at limit **
  18  norm          6.2052        6.0148        .57353E-06    .47507E-03
  19  Prefactor     .10000E-03    6.2775       -.53644E-07** at limit **
  20  Prefactor     5.9664        7.9099        .33738E-05   -.10853E-02
  21  norm          .97255        1.3618       -.71070E-06   -.13123E-02
  22  Prefactor     .10001E-03    40.538        .39725E-05** at limit **
  23  Normalizat    1.1826        .18954        .79703E-06   -.32352E-04
  24  Prefactor     .77910        .19907       -.13118E-05    .58383E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 5.59158
  Prefactor  = 36.2706
  norm       = 4.94853
  Prefactor  = 0.0001
  norm       = 26.9319
  Prefactor  = 0.0001
  Prefactor  = 10.5868
  norm       = 0.0001
  Prefactor  = 5.39857
  Prefactor  = 0.0001
  Prefactor  = 7.38551
  norm       = 28.3269
  Prefactor  = 18.0993
  norm       = 0.0001
  Prefactor  = 16.7057
  Prefactor  = 0.000100002
  norm       = 6.20523
  Prefactor  = 0.0001
  Prefactor  = 5.96639
  norm       = 0.972555
  Prefactor  = 0.000100005
  Normalizat = 1.18255
  Prefactor  = 0.779103
 **********
 **   18 **HESSE 
 **********

 FCN=   5885.691     FROM HESSE     STATUS=OK           401 CALLS     3126 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    61.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.5916        13.911        .16989E-03   -1.5235    
   3  Prefactor     36.271        69.873        .66532E-04   -1.4503    
   4  norm          4.9485        1.7584        .58605E-04   -1.5263    
   5  Prefactor     .10000E-03    1.9650        .10434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          26.932        17.175        .77197E-04   -1.4670    
   7  Prefactor     .10000E-03    16.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.587        15.294        .12314E-03   -1.5057    
   9  norm          .10000E-03    5.8762        .24009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.3986        16.364        .17284E-03   -1.5243    
  11  Prefactor     .10000E-03    25.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.3855        4.7950        .12633E-03   -1.5164    
  13  norm          28.327        21.955        .75292E-04   -1.4643    
  14  Prefactor     18.099        22.944        .47073E-03   -1.4857    
  15  norm          .10000E-03    3.5811        .14129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     16.706        49.159        .97952E-04   -1.4890    
  17  Prefactor     .10000E-03    32.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.2052        6.0975        .16116E-03   -1.5210    
  19  Prefactor     .10000E-03    6.2947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.9664        8.6118        .82185E-03   -1.5219    
  21  norm          .97255        1.2522        .99251E-03   -1.5511    
  22  Prefactor     .10001E-03    41.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1826        .22506        .22305E-03   -.87144    
  24  Prefactor     .77910        .23333        .29979E-03   -1.0050    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47505e-09
Minuit parameter uncertainties:
  1  0.000507252
  2  13.9194
  3  70.031
  4  1.7584
  5  3.86699e-06
  6  17.1778
  7  3.34948e-05
  8  15.2996
  9  8.07325e-05
  10  16.3778
  11  0.000118886
  12  4.79521
  13  21.9614
  14  22.955
  15  9.62215e-06
  16  49.2786
  17  0.000522485
  18  6.09815
  19  1.26763e-05
  20  8.61363
  21  1.25223
  22  0.000922891
  23  0.225244
  24  0.233627
Done.

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

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.000e-04  8.073e-05  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:  7.791e-01  2.336e-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.183e+00  2.252e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/318767/likelihoodResults_407030401_407289601_4FGL_J1418.4+3543_daily_bin647.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) = 5885.69229565
delta logL = -0.000809428936918

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5885.69148599
delta logL = 2.40507688432e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10232E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0662       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1825       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77924       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=   5885.691     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      288 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    8.2361        .24764E-02** at limit **
   2  alpha         2.1124        3.4887        .50000       -.36096E-04
   3  Normalizat    1.1826        .20344        .22305E-03    .16248E-03
   4  Prefactor     .77910        .22738        .29980E-03    .16447E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100023
  alpha      = 2.11237
  Normalizat = 1.18255
  Prefactor  = 0.779102
 **********
 **   18 **HESSE 
 **********

 FCN=   5885.691     FROM HESSE     STATUS=OK            29 CALLS      317 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    7.0965        .49528E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1124        3.4516        .50000       -.15568    
   3  Normalizat    1.1826        .20362        .44610E-04   -.87144    
   4  Prefactor     .77910        .22759        .11992E-04   -1.0050    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.9912e-09
Minuit parameter uncertainties:
  1  0.000813694
  2  2.47736
  3  0.203761
  4  0.227863
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/318767': 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) = 5885.69148483
delta logL = 1.39105941344e-06

Extracting fit parameters...

4FGL J1418.4+3543
   Spectrum: LogParabola
283         norm:  1.000e-04  8.137e-04  1.000e-04  1.000e+04 ( 1.000e-12)
284        alpha:  2.112e+00  2.477e+00  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:  7.791e-01  2.279e-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.183e+00  2.038e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 214.623 35.719

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/318767/cmap_HighResolution_407030401_407289601_4FGL_J1418.4+3543_daily_bin647.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.20e-05', job_status='DONE', photon_flux_upper_limit='5.62e-08', time_completed='2021-09-09 08:21:35.759170', job_id='318767', GAL2='0.78', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1631200895.76', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='1.39e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='647' AND source_name='4FGL J1418.4+3543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 08:21:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0021>
Subject: Job 318767: <4FGL_J1418.4+3543_daily_bin647> in cluster <slac> Done

Job <4FGL_J1418.4+3543_daily_bin647> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 08:10:27 2021
Job was executed on host(s) <bullet0021>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 08:10:28 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:28 2021
Terminated at Thu Sep  9 08:21:36 2021
Results reported at Thu Sep  9 08:21:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1418.4+3543_daily_bin647 214.623 35.7192 407030401 407289601 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 :                                   653.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             345.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   668 sec.
    Turnaround time :                            669 sec.

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

